SQL GROUP BY Silently Excluding NULLs: How to Catch and Fix It
GROUP BY quietly treats NULL as its own group, but aggregations like COUNT and SUM still skip NULL values inside columns β leaving your totals wrong with no error message. Here's how to catch it before it costs you.