Learn SQL - Queries Cheatsheet - Codecademy
Learn SQL - Queries Cheatsheet - Codecademy
Queries
AND Operator
AS Clause
Columns or tables can be aliased using the AS clause. SELECT name AS 'movie_title'
This allows columns or tables to be specifically
FROM movies;
renamed in the returned result set. The given query will
return a result set with the column for name renamed
to movie_title .
OR Operator
% Wildcard
https://www.codecademy.com/learn/learn-sql/modules/learn-sql-queries/cheatsheet 1/4
04/11/24, 12:37 Learn SQL: Queries Cheatsheet | Codecademy
SELECT Statement
_ Wildcard
ORDER BY Clause
LIKE Operator
https://www.codecademy.com/learn/learn-sql/modules/learn-sql-queries/cheatsheet 2/4
04/11/24, 12:37 Learn SQL: Queries Cheatsheet | Codecademy
DISTINCT Clause
BETWEEN Operator
LIMIT Clause
NULL Values
https://www.codecademy.com/learn/learn-sql/modules/learn-sql-queries/cheatsheet 3/4
04/11/24, 12:37 Learn SQL: Queries Cheatsheet | Codecademy
WHERE Clause
Print Share
https://www.codecademy.com/learn/learn-sql/modules/learn-sql-queries/cheatsheet 4/4