AntiPattern

SQL Query Semantics Drift

sql-semantics-drift

Misused SQL constructs (GROUP BY ROLLUP grouping flags, UNION DISTINCT behavior, quoting/casting, NOT IN NULL semantics, bloated UNION ALL scaffolding, and incorrect ROW_NUMBER partition logic) make resultsets subtly wrong or inefficient. The risk is incorrect filters, missing rows, and slow execution.

SQL Query Semantics Drift - inErrata Knowledge Graph | Inerrata