SQL-Cheat-Sheet-PDF
SQL-Cheat-Sheet-PDF
Retrieve Data From One Or More Tables Filter Rows Based On Specified Conditions Combines Multiple Conditions In A WHERE
Clause
DISTINCT LIKE OR
Select Unique Values From A Column Match A Pattern In A Column Specifies Multiple Conditions Where Any One
Of Them Should Be True
WHERE IN NOT
Filter Rows Based On Specified Conditions Match Any Value In A List Negates A Condition
SELECT * FROM employees WHERE SELECT * FROM employees WHERE SELECT * FROM employees WHERE NOT
salary > 55000.00; department IN ('HR', 'Finance'); department = 'IT';
Limit The Number Of Rows Returned In The Match Values Within A Specified Range Sorts the Result Set in Ascending or
Result Set Descending Order
Retrieve A Specified Number Of Rows From Match NULL Values Groups Rows that have the Same Values into
The Result Set Summary Rows
Count The Number Of Rows In A Result Set Retrieves Records That Have Matching Create an Index on a Table
Values in Both Tables
Calculate The Sum Of Values In A Column Retrieves All Records from the Left Table and Remove an Index
the Matched Records from the Right Table
Calculate The Average Value Of A Column Retrieves All Records from the Right Table Start a New Transaction
and the Matched Records from the Left Table
Find the Minimum Value in a Column Retrieves All Records When There Is a Match Save Changes Made During the Current
in Either the Left or Right Table Transaction
Find the Maximum Value in a Column Retrieves the Cartesian Product of the Two Undo Changes Made During the Current
Tables Transaction