I need to isolate the oldest record in a group of records. Details follow.
Fields involved are:
CaseID
Date
Time
The CaseID will appear many times in the table. It identifies specific work required for a client. Each time an event occurs on the case a new record is created with the current date and time. The date and time are separate fields.
I realize this is not the best way to design a database, but the tables are proprietary tables and designed for use with imaging software, then coverted to tables to facilitate reporting. Therefore, I am stuck with what I have as far as table design goes.
My mission is to extract the first event that happened to a case, based on the date and time.
Example data:
CaseID Date Time
*0001 09/01/01 7:00 AM
0001 09/01/01 7:25 AM
0001 09/03/01 10:22AM
*0587 09/01/01 9:13 AM
0587 09/02/01 1:57 PM
I want my query to return only the astericked records.
Thanks for any help,
Brian
Fields involved are:
CaseID
Date
Time
The CaseID will appear many times in the table. It identifies specific work required for a client. Each time an event occurs on the case a new record is created with the current date and time. The date and time are separate fields.
I realize this is not the best way to design a database, but the tables are proprietary tables and designed for use with imaging software, then coverted to tables to facilitate reporting. Therefore, I am stuck with what I have as far as table design goes.
My mission is to extract the first event that happened to a case, based on the date and time.
Example data:
CaseID Date Time
*0001 09/01/01 7:00 AM
0001 09/01/01 7:25 AM
0001 09/03/01 10:22AM
*0587 09/01/01 9:13 AM
0587 09/02/01 1:57 PM
I want my query to return only the astericked records.
Thanks for any help,
Brian