Sql query to retrieve rows grouped by specific values in a column

Printable View