FIS Interview Question

How is a group by used in SQL