SQL DISTINCT vs GROUP BY Giving Different Row Counts Explained
You ran the same query twice β once with DISTINCT and once with GROUP BY β and got different row counts. This guide breaks down exactly why that happens and how to get the result you actually want.