Tags / grouping
Understanding Oracle SQL Count and Group by Multiple Fields
Getting Both Group Size and Min of Column B Grouping by Column A
Grouping Items Together Based on a Value in Another Column: A SQL Solution
Grouping By Day/Month/Year on a Subquery
Finding Equal Row Sets Across Different Tables in SQL Server Using the FOR XML Trick or Alternative Approaches