I'm trying to count records that are past due.
table has 5 dates and a field called type
e.g.
date_1, date_2, date_3, date_4, date_5, type
I'm trying to count the above dates based on <getdate() and group them by type. so the results would show something like this
I can't seem to figure this out.
any help would be appreciated
thanks
table has 5 dates and a field called type
e.g.
date_1, date_2, date_3, date_4, date_5, type
I'm trying to count the above dates based on <getdate() and group them by type. so the results would show something like this
Code:
type date_1 date_2 date_3 date_4 date_5
---------------------------------------------------
A 10 5 1 0 5
B 2 1 3 5 10
I can't seem to figure this out.
any help would be appreciated
thanks