SELECT Partition([Starost],1,100,5) AS Raspon, Count(Starost) AS Broj FROM Osobe GROUP BY Partition([Starost],1,100,5);