SQL Examples

SQL tutorials for Business Analyst – SQL | RIGHT JOINS

Hits: 9 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | RIGHT JOINS.   The SQL RIGHT JOIN returns all rows from the right table, even if there are no matches in the left table. This means that if the ON clause matches 0 …

SQL tutorials for Business Analyst – SQL | LEFT JOINS

Hits: 20 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | LEFT JOINS.   The SQL LEFT JOIN returns all rows from the left table, even if there are no matches in the right table. This means that if the ON clause matches 0 …

SQL tutorials for Business Analyst – SQL | INNER JOINS

Hits: 19 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | INNER JOINS.   The most important and frequently used of the joins is the INNER JOIN. They are also referred to as an EQUIJOIN. The INNER JOIN creates a new result table by …

SQL tutorials for Business Analyst – SQL | Using Joins

Hits: 13 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | Using Joins.   The SQL Joins clause is used to combine records from two or more tables in a database. A JOIN is a means for combining fields from two tables by using …

SQL tutorials for Business Analyst – SQL | SORTING Results

Hits: 15 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | SORTING Results.   The SQL ORDER BY clause is used to sort the data in ascending or descending order, based on one or more columns. Some databases sort the query results in an …

SQL tutorials for Business Analyst – SQL | Distinct Keyword

Hits: 14 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | Distinct Keyword.   The SQL DISTINCT keyword is used in conjunction with the SELECT statement to eliminate all the duplicate records and fetching only unique records. There may be a situation when you …

SQL tutorials for Business Analyst – SQL | Group By

Hits: 31 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | Group By.   The SQL GROUP BY clause is used in collaboration with the SELECT statement to arrange identical data into groups. This GROUP BY clause follows the WHERE clause in a SELECT …

SQL tutorials for Business Analyst – SQL | ORDER BY Clause

Hits: 21 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | TOP, LIMIT or ROWNUM Clause.   The SQL ORDER BY clause is used to sort the data in ascending or descending order, based on one or more columns. Some databases sort the query …

SQL tutorials for Business Analyst – SQL | TOP, LIMIT or ROWNUM Clause

Hits: 9 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | TOP, LIMIT or ROWNUM Clause.   The SQL TOP clause is used to fetch a TOP N number or X percent records from a table. Note − All the databases do not support the …

SQL tutorials for Business Analyst – SQL | LIKE Clause

Hits: 14 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | LIKE Clause.   The SQL LIKE clause is used to compare a value to similar values using wildcard operators. There are two wildcards used in conjunction with the LIKE operator. The percent sign …

SQL tutorials for Business Analyst – SQL | DELETE Query

Hits: 33 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | DELETE Query.   The SQL DELETE Query is used to delete the existing records from a table. You can use the WHERE clause with a DELETE query to delete the selected …

SQL tutorials for Business Analyst – SQL | UPDATE Query

Hits: 35 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | UPDATE Query.   The SQL UPDATE Query is used to modify the existing records in a table. You can use the WHERE clause with the UPDATE query to update the selected rows, otherwise …

SQL tutorials for Business Analyst – SQL | AND and OR Conjunctive Operators

Hits: 23 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | AND and OR Conjunctive Operators.   The SQL AND & OR operators are used to combine multiple conditions to narrow data in an SQL statement. These two operators are called as the conjunctive operators. These …

SQL tutorials for Business Analyst – SQL | WHERE Clause

Hits: 36 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | WHERE Clause.   The SQL WHERE clause is used to specify a condition while fetching the data from a single table or by joining with multiple tables. If the given condition is satisfied, …

SQL tutorials for Business Analyst – SQL | SELECT Query

Hits: 15 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | SELECT Query.   The SQL SELECT statement is used to fetch the data from a database table which returns this data in the form of a result table. These result tables are called …

SQL tutorials for Business Analyst – SQL | INSERT Query

Hits: 23 (SQL tutorials for Business Analyst & Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: SQL | INSERT Query.   The SQL INSERT INTO Statement is used to add new rows of data to a table in the database. Syntax There are two basic syntaxes of the INSERT INTO statement …