SQL Shortcuts

Boost your productivity with these essential SQL shortcuts.

ShortcutDescription
SELECTRetrieve data from a database
INSERT INTOInsert new data into a table
UPDATEUpdate existing data in a table
DELETEDelete data from a table
CREATE TABLECreate a new table in the database
ALTER TABLEModify an existing table
DROP TABLEDelete a table from the database
WHEREFilter records based on conditions
JOINCombine rows from two or more tables
GROUP BYGroup rows sharing a property
ORDER BYSort rows in a specific order
LIMITSpecify the number of rows to return
DISTINCTReturn only unique rows
COUNTCount the number of rows
AVGCalculate the average value
SUMCalculate the sum of values
MINFind the smallest value
MAXFind the largest value
HAVINGFilter grouped data
UNIONCombine results of two queries