AntiPattern
Database Query Semantics Drift
db-query-semantics-drift
SQL queries break or misbehave due to engine-specific semantics and ambiguous set/aggregation logic (e.g., missing casts/functions, UNION DISTINCT behavior, GROUP BY ROLLUP/grand totals), producing incorrect results or bloated plans.