I have a DB2 table set up like this...
Status Date Time
A 02/13/2002 10:02:23
A 03/02/2002 08:00:01
B 03/18/2002 13:00:01
B 05/31/2002 08:25:46
B 05/31/2002 09:31:04
And I would like a query to display each status with the most current date and time. So the final output would look like this...
A 03/02/2002 08:00:01
B 05/31/2002 09:31:04
I'm having troubles because the date and time are in seperate columns. Also, I would like to stay away from views. Thanks for the help!
Status Date Time
A 02/13/2002 10:02:23
A 03/02/2002 08:00:01
B 03/18/2002 13:00:01
B 05/31/2002 08:25:46
B 05/31/2002 09:31:04
And I would like a query to display each status with the most current date and time. So the final output would look like this...
A 03/02/2002 08:00:01
B 05/31/2002 09:31:04
I'm having troubles because the date and time are in seperate columns. Also, I would like to stay away from views. Thanks for the help!