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 renamed
FROM movies;
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
_ Wildcard
ORDER BY Clause
LIKE Operator
BETWEEN Operator
LIMIT Clause
NULL Values
The WHERE clause is used to filter records (rows) that SELECT title
match a certain condition. The given query will select all
FROM library
records where the pub_year equals 2017 .
WHERE pub_year = 2017;
Print Share