MySQL SQL

SQL DROP TABLE IF EXISTS

SQL SELECT DISTINCT Statement

SELECT DISTINCT Example

Demo Database

SQL WHERE Clause

WHERE Clause Example

Operators in The WHERE Clause

SQL AND, OR and NOT Operators

SQL ORDER BY Keyword

ORDER BY Example

      SELECT * FROM Customers
      ORDER BY Country;
		

ORDER BY DESC Example

			SELECT * FROM Customers
			ORDER BY Country DESC;
		

ORDER BY Several Columns Example 1

			SELECT * FROM Customers
			ORDER BY Country, CustomerName;
		

ORDER BY Several Columns Example 2

			SELECT * FROM Customers
			ORDER BY Country ASC, CustomerName DESC;
		

SQL SELECT LIMIT Clause

SQL MIN() and MAX() Functions

SQL COUNT(), AVG() and SUM() Functions

How to Test for NULL Values?

Reference