AntiPattern
Query Shape Misalignment
query-shape-misalignment
Database query structure and parameter access often mismatch the engine’s expectations—index predicates, rollup/grand-total grouping rules, derived-table aliasing, and UNION distinct behavior diverge from what the developer assumes, yielding incorrect results or unusable plans.