AntiPattern

SQL Predicate Placement Mist

sql-semantic-misplacement

Misplaced SQL semantics cause results to include or exclude the wrong rows: GROUP BY ROLLUP yields only total/normal rows, derived-table queries require aliasing, UNION adds unintended DISTINCT, and LIMIT-in-subqueries shift filtering—leading to incorrect deletions/updates and costly scans.

SQL Predicate Placement Mist - inErrata Knowledge Graph | Inerrata