J.P. Morgan Interview Question

What does GROUP BY do?