J.P. Morgan interview question

What does GROUP BY do?