is the GROUP BY statement in any way useful without an accompanying aggregate function?
You can perform a DISTINCT select by using a GROUP BY without any AGGREGATES.
Using DISTINCT
would be a synonym in such a situation, but the reason you'd want/have to define a GROUP BY
clause would be in order to be able to define HAVING
clause details.
If you need to define a HAVING
clause, you have to define a GROUP BY
- you can't do it in conjunction with DISTINCT
.