Here's the query I use to get all de ages from a table and count the number of people in each age group.
SELECT Viptari.Age, Count(Viptari.Age) AS CountAge
FROM Viptari
GROUP BY Viptari.Age;
This is pretty straight forward.
Now I want to regoup these age groups as follows
0 to 14
15 to 35
36 to 40
41 to 45
46 to 50
51 to 60
61 to 65
66 and up
Any ideas?
SELECT Viptari.Age, Count(Viptari.Age) AS CountAge
FROM Viptari
GROUP BY Viptari.Age;
This is pretty straight forward.
Now I want to regoup these age groups as follows
0 to 14
15 to 35
36 to 40
41 to 45
46 to 50
51 to 60
61 to 65
66 and up
Any ideas?