Goldman Sachs interview question

Group By cluase in databases