A Starting point:
SELECT Int((EndDate-StartDate)/10) As Decade, Count(*)
FROM YourTable
WHERE EndDate<=StartDate+369
GROUP BY Int((EndDate-StartDate)/10)
UNION SELECT 99, Count(*)
FROM YourTable
WHERE EndDate>StartDate+369
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244