FIS interview question

How is a group by used in SQL