HarrJ

Group 2

Jul 28th, 2023
1,126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.96 KB | None | 0 0
  1. CREATE TABLE `tbl_attendance` (
  2.   `Attendance_Days` int(11) NOT NULL,
  3.   `Student_ID` int(11) NOT NULL,
  4.   `Attendance_date` varchar(20) DEFAULT NULL,
  5.   `Time_in` varchar(30) DEFAULT NULL,
  6.   `Time_out` varchar(30) DEFAULT NULL
  7. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  8.  
  9. INSERT INTO `tbl_attendance` (`Attendance_Days`, `Student_ID`, `Attendance_date`, `Time_in`, `Time_out`) VALUES
  10. (1, 1, '[July 15, 2023]', '[7:32]', '[5:00]'),
  11. (2, 2, '[July 15, 2023]', '[7:32]', '[5:00]'),
  12. (3, 3, '[July 15, 2023]', '[7:32]', '[5:00]'),
  13. (4, 4, '[July 15, 2023]', '[7:32]', '[5:00]'),
  14. (5, 5, '[July 15, 2023]', '[7:32]', '[5:00]'),
  15. (6, 1, '[July 16 2023]', '[7:47]', '[5:00]'),
  16. (7, 2, '[July 16 2023]', '[7:47]', '[5:00]'),
  17. (8, 3, '[July 16 2023]', '[7:47]', '[5:00]'),
  18. (9, 4, '[July 16 2023]', '[7:47]', '[5:00]'),
  19. (10, 1, '[July 17 2023]', '[7:55]', '[5:00]'),
  20. (11, 2, '[July 17 2023]', '[7:55]', '[5:00]'),
  21. (12, 3, '[July 17 2023]', '[7:55]', '[5:00]'),
  22. (13, 4, '[July 17 2023]', '[7:52]', '[5:00]'),
  23. (14, 5, '[July 17 2023]', '[7:55]', '[5:00]'),
  24. (15, 1, '[July 18, 2023]', '[7:32]', '[5:00]'),
  25. (16, 2, '[July 18, 2023]', '[7:32]', '[5:00]'),
  26. (17, 3, '[July 18, 2023]', '[7:32]', '[5:00]'),
  27. (19, 4, '[July 18,2023]', '[7:32]', '[5:00]');
  28.  
  29. CREATE TABLE `tbl_studentlist` (
  30.   `Student_ID` int(11) NOT NULL,
  31.   `First_name` varchar(20) DEFAULT NULL,
  32.   `Last_name` varchar(20) DEFAULT NULL
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  34.  
  35. --
  36. -- Dumping data for table `tbl_studentlist`
  37. --
  38.  
  39. INSERT INTO `tbl_studentlist` (`Student_ID`, `First_name`, `Last_name`) VALUES
  40. (1, 'Emilene Joy', 'Ypulong'),
  41. (2, 'Reah Rica Marie', 'Padroncillo'),
  42. (3, 'Ysieh Joy ', 'Morillo'),
  43. (4, 'Gina', 'Cordero'),
  44. (5, 'Beltran', 'Cadete');
  45.  
  46. --
  47. -- Indexes for dumped tables
  48. --
  49.  
  50. --
  51. -- Indexes for table `tbl_attendance`
  52. --
  53. ALTER TABLE `tbl_attendance`
  54.   ADD PRIMARY KEY (`Attendance_Days`);
  55.  
  56. --
  57. -- Indexes for table `tbl_studentlist`
  58. --
  59. ALTER TABLE `tbl_studentlist`
  60.   ADD PRIMARY KEY (`Student_ID`);
  61.  
Advertisement
Add Comment
Please, Sign In to add comment