SUM() function
SELECT SUM(col) FROM table;
MIN() function
SELECT MIN(col) FROM table;
MAX() function
SELECT MAX(col) FROM table;
AVG() function
SELECT AVG(col) FROM table;
COUNT() function
SELECT COUNT(* or col) FROM table;
GROUP BY clause
SELECT col, COUNT(*) FROM table GROUP BY col;
HAVING clause
SELECT col, COUNT(*) FROM table GROUP BY col HAVING COUNT(*) > 10;
DISTINCT clause
SELECT DISTINCT col FROM table; SELECT COUNT(DISTINCT col) FROM table;
Addition (operator)
+
Subtraction (operator)
-
Multiplication (operator)
*
Division (operator)
/
Modulus (operator)
%
Exponention (operator)
Negation (operator)
Filter even numbers
WHERE col % 2 = 0
Filter odd numbers
WHERE col % = 1