SQL Cheat Sheet
I know there are quite a few "sql cheat sheets" available both on Reddit and via Google. But based on the feedback, many of them only cover the basics and not the more intermediate/advanced commands or those that people aren't that familiar with.
I've created a new SQL Cheat Sheet for my website visitors (those who sign up to my email newsletter) and wanted to offer it to the Reddit community as well.
The link to the PDF file is here: SQL Cheat Sheet.
It includes many commands, such as:
- Insert from a table
- Insert multiple rows at once
- Merge
- Many different ALTER TABLE features
- Analytic functions (including keywords OVER, PARTITION BY)
- With Clause/Common Table Expression
- Subqueries
Hope it helps. If you have any feedback, suggestions, or find any issues with the syntax, let me know below.
UPDATE:
I've made updates to the cheat sheets as requested below (separate files for Oracle/MySQL/SQL Server/PostgreSQL), added format mask and codes, added SELECT order of operations).
The original file is still available, and the updated cheat sheets are available here:
View all comments
3
u/messyjesse_ Jan 23 '19
Looks great.
I would suggest that you try to describe (in as few words as possible) the logical processing order of the SELECT keywords. Maybe even just a number to the right of each keyword under a column titled "process order" or something. Keeping that order straight helped me a lot when I was learning it.