FROM tableName
WHERE more filters on the rows
GROUP BY combines those rows into groups
HAVING filters groups
ORDER BY arranges the remaining rows/groups;
Posted in SQL.

Leave a reply