A simple cheat sheet for beginners trying to understand SQL server.
|
1
|
FROM
|
Choose and join tables to get base data
|
|
2
|
WHERE
|
Filters the base data
|
|
3
|
GROUP BY
|
Aggregates the base data
|
|
4
|
HAVING
|
Filters the aggregated data
|
|
5
|
SELECT
|
Returns the final data
|
|
6
|
ORDER BY
|
Sorts the final data
|
|
7
|
LIMIT
|
Limits the returned data to a row count
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.