Archive for the Category: SQL Syntax

SQL RIGHT JOIN

SQL RIGHT JOIN clause is very similar with SQL LEFT JOIN clause, it is used to select all the matched records from the right side table, regardless if it has matched records in the left side table or not.

1 Comment

SQL LEFT JOIN

SQL LEFT JOIN clause is used to select all the matched records from the left side table, regardless if it has matched records in the right side table or not.

4 Comments

SQL INNER JOIN

SQL INNER JOIN clause is used to select data from 2 (or more) tables, at least one match in both tables.

Leave a comment

SQL Alias

SQL Alias is used to organize the output, to make it easy to read and more meaningful. SQL Alias can be used with database tables or database table columns.

4 Comments

SQL HAVING

The SQL HAVING clause is similar to SQL WHERE clause. The difference is that the SQL HAVING clause is used in aggregate functions but the SQL WHERE clause cannot be used in aggregate functions.

8 Comments

SQL BETWEEN

The SQL BETWEEN operator is used to select data within a range between 2 values.

Leave a comment

SQL IN

The SQL IN operator is used to search from a list of values in an SQL WHERE clause. The list could be the result of an SQL SELECT query.

2 Comments

SQL LIKE

SQL LIKE operator is used to search a table column based on a pattern.

3 Comments

SQL GROUP BY

The SQL GROUP BY statement is used along with the aggregate functions to group the result dataset by one or more database table columns.

3 Comments

SQL NOT

The SQL NOT operator is used to invert the result of an expression. Truth table for SQL NOT: Expression Value NOT True False False True Unknown Unknown

2 Comments