use grou when you need to aggregate field values or count records. For example if you have an employee database and, for each department, you want number of employees and average salary and total salary
SELECT AVG(salary) as avsal, count(*) as numemps, SUM(salary) as totsal, dept FROM employee GROUP BY dept.
hth