SELECT column
FROM table
(Used with an operator: >, <, >=, <=, =, <>, BETWEEN, LIKE, IN
)
WHERE column = 'value'
(Used with: AND, OR
)
WHERE column = 'value' OR
column = 'other value'
(Used with: SUM, COUNT, MIN, MAX, AVG
)
SELECT
SUM(column)
FROM table
SELECT
column AS alias
FROM table