Hi
I have a log table like this:
Case_id Text_id Log_time
100 2 2003-01-01 15:00
100 2 2003-01-01 16:00
110 5 2003-04-09 10:00
110 5 2003-04-09 11:00
I would like to write a query that returns 2 rows that is for every case_id and text_id I want the last logged row for that day, and not all the rows.
And using distinct do not work since all four rows are distinct.
Any suggestions?
Regards Maria
I have a log table like this:
Case_id Text_id Log_time
100 2 2003-01-01 15:00
100 2 2003-01-01 16:00
110 5 2003-04-09 10:00
110 5 2003-04-09 11:00
I would like to write a query that returns 2 rows that is for every case_id and text_id I want the last logged row for that day, and not all the rows.
And using distinct do not work since all four rows are distinct.
Any suggestions?
Regards Maria