Guest_imported
New member
- Jan 1, 1970
- 0
I have a Table with a column defined as date on DB2 V5 mainframe. lets say the column INVDATE is defined as a date field.
I would like to know the total number of rows for each year.
is there a way that i can design a query to get this information.
i can get a list of years by using
select distinct Year(INVDATE) from test1.invoice.
this doesnt work
select Count(invdate) from test1.invoice
group by Year(invdate)
Thanks....
Dennis
I would like to know the total number of rows for each year.
is there a way that i can design a query to get this information.
i can get a list of years by using
select distinct Year(INVDATE) from test1.invoice.
this doesnt work
select Count(invdate) from test1.invoice
group by Year(invdate)
Thanks....
Dennis