One Pager Cheat Sheet
- This tutorial introduces the
WHEREkeyword and other important keywords, LIKE, IN, BETWEEN, AND, OR, and NOT, to help filter data efficiently in SQL queries utilizing the Person table. - The LIKE operator is used to find specific patterns in the columns, using
percentandunderscoresigns as wildcards. - The
LIKEoperator with%wildcard is used to retrieve all rows from the Person table where the Name column ends with "a". - The AND operator can be used to
filterdata byspecifying multiple conditionsin aSQL query, for example to get all customers living in the USA which are male. - The OR operator can be used in
SQLto filter records that match at least one of multiple conditions. - The
IN statementallows us to find the values that belong to a specified set, and is a shorthand for multipleORstatements. - The
NOT INoperator allows us to return all rows not satisfying a given condition. - By combining the
AND,OR, andNOTkeywords through the use of parentheses, it is possible to create complex conditional logic in a single query. - The
BETWEENoperator is used to filter out rows between two specified values (inclusive) from a table.



