I have two tables Events and emp
Events containing
cardno,time,id--each id has a cardno
and emp contains firstname,lastname,empid.
events.id and emp.empid are same
my requirement is every day each employee swipe the card several times
i want to calculate first and last time of each card
the output should be
name 1 2 6 7
in out in out holiday holiday
xxx 09:30 06:30 09:20 09:10
where 1,2 are dates for example january 1,2, etc. 6 and 7 are saturday and sunday
how it is posssible
Regards
Baiju