G
Guest
Access 2000 and above.
Say I have a table like this:
ID Change_Date Value
1 01/05/2003 Red
1 13/05/2003 Blue
1 14/05/2003 Red
2 10/05/2003 Blue
2 13/05/2003 Red
2 15/05/2003 Blue
Assuming today is 16/05/2003 and we count all days up to, but not including
today, how do I create a SELECT query that will transform it into
ID Colour Total Days
1 Red 14
1 Blue 1
2 Red 2
2 Blue 4
Regards
Say I have a table like this:
ID Change_Date Value
1 01/05/2003 Red
1 13/05/2003 Blue
1 14/05/2003 Red
2 10/05/2003 Blue
2 13/05/2003 Red
2 15/05/2003 Blue
Assuming today is 16/05/2003 and we count all days up to, but not including
today, how do I create a SELECT query that will transform it into
ID Colour Total Days
1 Red 14
1 Blue 1
2 Red 2
2 Blue 4
Regards