where
6 tutorials tagged “where”.
- AND, OR and NOTCombine conditions with AND and OR, flip them with NOT, use parentheses because AND binds tighter than OR, and see what NULL does to each.
- HAVINGFilter groups with HAVING, see how it differs from WHERE, and follow the logical order of a whole query step by step on real Fee Tracker rows.
- IN and BETWEENMatch a list of values with IN, a range with BETWEEN, the NOT IN trap with NULL, and why BETWEEN with times can miss the last day.
- LIKE and WildcardsMatch text patterns with LIKE, % and _, escape a literal %, handle case with ILIKE or lower(), and why a leading % can slow a query down.
- UPDATEChange existing rows with UPDATE: SET one or several columns, let WHERE pick the rows, update from a calculation, and avoid the missing-WHERE disaster.
- WHEREKeep only the rows you want with WHERE: comparison operators, text and dates in quotes, filtering on a calculation, and what happens to NULL.