SELECT ColumnA, ColumnB, ColumnC from Analytics_team.Assignment WHERE Condition1 = Something Condition2 = Something Group by ColumnA ,ColumnB