Guest User

Untitled

a guest
Jun 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. > DROP TABLE IF EXISTS Attendances;
  2. CREATE TABLE Attendances (id int, employee_id int, timedata datetime, in_out varchar(55));
  3. INSERT INTO Attendances (id, employee_id, timedata, in_out)
  4. VALUES
  5.  
  6. id employee_id timedata in_out
  7. 1 1 07.06.2017 19:25:10 OUT
  8. 2 1 08.06.2017 09:25:17 IN
  9. 3 1 08.06.2017 13:51:02 IN
  10. 4 1 08.06.2017 20:44:14 OUT
  11. 5 1 09.06.2017 01:10:04 OUT
  12. 6 1 09.06.2017 14:11:40 IN
  13. 7 1 09.06.2017 19:41:26 OUT
  14. 8 1 09.06.2017 11:35:00 IN
  15. 9 1 09.06.2017 20:36:06 OUT
  16.  
  17. employee_id time_in time_out
  18. 1 NULL 07.06.2017 19:25:10
  19. 1 08.06.2017 09:25:17 NULL
  20. 1 08.06.2017 13:51:02 08.06.2017 20:44:14
  21. 1 NULL 09.06.2017 01:10:04
  22. 1 09.06.2017 14:11:40 09.06.2017 19:41:26
  23. 1 09.06.2017 11:35:00 09.06.2017 20:36:06
Add Comment
Please, Sign In to add comment