Let's say I have a table which has records like this:
Is it possible to find the largest date (Date1...Date4) for each ID within the query and use AS to give a column name associated with that ID?
Note: I tried MAX() and it didn't like the NULL!
Can anyone please help?
Thanks,
Mike
Code:
ID Date1 Date2 Date3 Date4 OtherFields...
1 2/23/03 4/15/03 3/11/03 3/18/05 ..............
2 2/24/03 2/10/05 4/12/03 3/15/03 ..............
3 NULL 3/12/03 2/11/03 3/31/03 ..............
Is it possible to find the largest date (Date1...Date4) for each ID within the query and use AS to give a column name associated with that ID?
Note: I tried MAX() and it didn't like the NULL!
Can anyone please help?
Thanks,
Mike