elbes
07-12-2007, 03:14 AM
hi all;
i have the following sample of data stored in db,the time b4 12:00:00 pm is considered as check in time and the one after 12:00:00 pm is check out.
id name date timein timeout
100000 ahmad Qudah 2007-05-01 07:30:00 00:00:00
100000 ahmad Qudah 2007-05-01 07:31:00 00:00:00
100000 ahmad Qudah 2007-05-02 02:15:00 00:00:00
100000 ahmad Qudah 2007-05-02 04:15:00 00:00:00
100000 ahmad Qudah 2007-05-02 07:15:00 00:00:00
100000 ahmad Qudah 2007-05-02 07:17:00 00:00:00
100000 ahmad Qudah 2007-05-02 00:00:00 19:15:00
100000 ahmad Qudah 2007-05-03 07:30:00 00:00:00
100000 ahmad Qudah 2007-05-03 00:00:00 19:16:00
656565 elbes 2007-05-03 08:30:00 00:00:00
656565 elbes 2007-05-03 00:00:00 17:16:00
500101 rabee 2007-05-03 09:30:00 00:00:00
500101 rabee 2007-05-03 10:16:00 00:00:00
500101 rabee 2007-05-03 11:30:00 00:00:00
500101 rabee 2007-05-03 00:00:00 13:16:00
500101 rabee 2007-05-03 00:00:00 17:16:00
if an employee has one check in and one check out
how can i update his row,for example:
i want this :
656565 elbes 2007-05-03 08:30:00 00:00:00
656565 elbes 2007-05-03 00:00:00 17:16:00
to become this
656565 elbes 2007-05-03 08:30:00 17:16:00
how can this be done plz?
i have the following sample of data stored in db,the time b4 12:00:00 pm is considered as check in time and the one after 12:00:00 pm is check out.
id name date timein timeout
100000 ahmad Qudah 2007-05-01 07:30:00 00:00:00
100000 ahmad Qudah 2007-05-01 07:31:00 00:00:00
100000 ahmad Qudah 2007-05-02 02:15:00 00:00:00
100000 ahmad Qudah 2007-05-02 04:15:00 00:00:00
100000 ahmad Qudah 2007-05-02 07:15:00 00:00:00
100000 ahmad Qudah 2007-05-02 07:17:00 00:00:00
100000 ahmad Qudah 2007-05-02 00:00:00 19:15:00
100000 ahmad Qudah 2007-05-03 07:30:00 00:00:00
100000 ahmad Qudah 2007-05-03 00:00:00 19:16:00
656565 elbes 2007-05-03 08:30:00 00:00:00
656565 elbes 2007-05-03 00:00:00 17:16:00
500101 rabee 2007-05-03 09:30:00 00:00:00
500101 rabee 2007-05-03 10:16:00 00:00:00
500101 rabee 2007-05-03 11:30:00 00:00:00
500101 rabee 2007-05-03 00:00:00 13:16:00
500101 rabee 2007-05-03 00:00:00 17:16:00
if an employee has one check in and one check out
how can i update his row,for example:
i want this :
656565 elbes 2007-05-03 08:30:00 00:00:00
656565 elbes 2007-05-03 00:00:00 17:16:00
to become this
656565 elbes 2007-05-03 08:30:00 17:16:00
how can this be done plz?