Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Query - Count drivers grouped by year and month

$
0
0
db2 10 on z/os

I have a table with all driver license information. I need to get a count of drivers who were 16 years old or older grouped by year and month since January 2007. current date - birthday (column in the table) will give me their current age and I can use it to count the number of drivers who are 16+ as of now. But I'm not sure how to do it for every year and month since Jan 2007. Is it possible to do with sql?

Thanks

Viewing all articles
Browse latest Browse all 13329

Trending Articles