Hi,
I posted this file yesterday. Can't understand why it does not appear today.
Anyway, the attached file has the scripts to create and populate a table that is a replica of the table I get after doing a bit of work on the original table to mark times as IN and OUT.
Sudarshan.