Conceptual
Login

SQL WHERE Clause

WHERE filters rows with a boolean expression combining comparisons via AND, OR, and NOT, evaluated against each candidate row before grouping. Its predicates are the raw material the optimizer converts into index conditions and filters.

Questions this Concept answers

  • Why is the `WHERE` clause usually the first place to look in a slow query?