J
Jeff
Hello,
I need help to write a Query to do the following... I am stumped.
I have a Table called tblStatuses where I want to only pull 1 record per
Proposal Number that has a Status of "New" and is the latest entry meaning
has the latest StatusDate & StatusTime
So for example if this was the data in the tblStatuses
StatusID ProposalNumber Status StatusDate StatusTime
1 07-37 White 07/24/07 11:07 AM
2 07-37 New 07/27/07 1:50 AM
6 07-37 Rejected 07/27/07 2:00 AM
7 07-37 Closed 07/27/07 2:00 AM
8 07-37 New 07/27/07 2:01 AM
3 07-38 New 07/27/07 1:51 AM
4 07-38 White 07/27/07 1:57 AM
5 07-38 New 07/27/07 1:57 AM
After the Query was run it would give the following results:
8 07-37 New 07/27/07 2:01 AM
5 07-38 New 07/27/07 1:57 AM
It gives 1 record for each ProposalNumber, that has a Status of "New" and
has the latest Date & Time
Any help would be greatly appreciated.
Thank you,
Jeff
I need help to write a Query to do the following... I am stumped.
I have a Table called tblStatuses where I want to only pull 1 record per
Proposal Number that has a Status of "New" and is the latest entry meaning
has the latest StatusDate & StatusTime
So for example if this was the data in the tblStatuses
StatusID ProposalNumber Status StatusDate StatusTime
1 07-37 White 07/24/07 11:07 AM
2 07-37 New 07/27/07 1:50 AM
6 07-37 Rejected 07/27/07 2:00 AM
7 07-37 Closed 07/27/07 2:00 AM
8 07-37 New 07/27/07 2:01 AM
3 07-38 New 07/27/07 1:51 AM
4 07-38 White 07/27/07 1:57 AM
5 07-38 New 07/27/07 1:57 AM
After the Query was run it would give the following results:
8 07-37 New 07/27/07 2:01 AM
5 07-38 New 07/27/07 1:57 AM
It gives 1 record for each ProposalNumber, that has a Status of "New" and
has the latest Date & Time
Any help would be greatly appreciated.
Thank you,
Jeff