An SQL query is evaluated by:
- Including tables in
FROMclause - Applying conditions in
WHEREclause - Performing Grouping (SQL)
- Applying conditions in Having Clause (SQL)
- Selecting attributes in the
SELECTclause - Running
ORDER BYon the resulting tuples