Gore Mutual interview question

Can you explain what GROUP BY does in SQL? What is overfitting?