I have a table that have sigh in and sign out value
**id Date Time Status**
01 1/02/12 8:10 Entry
01 1/02/12 9:00 Exit
01 1/02/12 9:10 entry
01 1/02/12 17:00 Exit
02 1/02/12 8:10 Entry
02 1/02/12 9:00 Exit
02 1/02/12 9:10 entry
02 1/02/12 17:00 Exit
**03 1/02/12 17:00 Exit**
I have to find out only min and max time of each id
Expected result
**id Date Entry Exit **
01 1/02/12 8:10 17:00
02 1/02/12 8:10 17:00
Please Help me
This code Works fine But incase one Entry is not added only exit is added then
i Want to display
id Date Entry Exit
---- -------- ----- -----
01 01/02/12 08:10 17:00
02 01/02/12 08:10 17:00
**03 01/02/12 Null 17:00**
Please help me
Thanks in advance
Something like this may work depending on data types used.
Result: