SQL SERVER – Difference between DISTINCT and GROUP BY – Distinct vs Group By
This question is asked many times to me. What is difference between DISTINCT and GROUP BY? A DISTINCT and GROUP BY usually generate the same query plan, so performance should be the same across both query constructs. GROUP BY should be used to apply aggregate operators to each group. If…
Read More