Here's what I'm racking my brain over.
The table:
Rec# ID Date1 Date2 etc. etc.
1 10 1/1
2 10 1/1 3/1
3 20 1/1
4 30 1/1
5 30 1/1 3/15
I hope this makes sense! I want the query to return records with null values in Date2 UNLESS is a higher record# for the same ID and Date1. . .then I want the higher returned. So, using my lame table above, I would want the query to return records 2, 3 and 5.
Can anyone help?
The table:
Rec# ID Date1 Date2 etc. etc.
1 10 1/1
2 10 1/1 3/1
3 20 1/1
4 30 1/1
5 30 1/1 3/15
I hope this makes sense! I want the query to return records with null values in Date2 UNLESS is a higher record# for the same ID and Date1. . .then I want the higher returned. So, using my lame table above, I would want the query to return records 2, 3 and 5.
Can anyone help?