The topic describes the DF037 T-SQL code analysis rule.
BEST PRACTICE
The GROUP BY clause is used without an aggregate function.
Using the DISTINCT clause instead of the GROUP BY clause without an aggregate function may lead to better performance.
SELECT CustomerId
FROM dbo.Customer
GROUP BY CustomerId
SELECT DISTINCT CustomerId
FROM dbo.Customer