Advertisement
Guest User

Untitled

a guest
Mar 31st, 2017
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1.  
  2. INSERT INTO `enroll` (`studentid`, `tutorialid`, `joindate`, `leavedate`) VALUES
  3. (1, 1, '2017-02-28', NULL),
  4. (2, 1, '2017-02-28', NULL),
  5. (3, 1, '2017-02-28', NULL),
  6. (8, 1, '2017-02-28', NULL),
  7. (5, 1, '2017-02-28', NULL),
  8. (3, 2, '2017-02-23', '2017-02-28'),
  9. (4, 2, '2017-02-23', '2017-02-28'),
  10. (5, 2, '2017-02-23', '2017-02-28'),
  11. (6, 2, '2017-02-23', '2017-03-01'),
  12. (7, 2, '2017-02-23', '2017-03-01'),
  13. (8, 2, '2017-02-23', '2017-03-01'),
  14. (9, 2, '2017-02-23', '2017-03-01'),
  15. (10, 2, '2017-02-23', '2017-03-01'),
  16. (1, 3, '2017-01-23', '2017-01-27'),
  17. (2, 3, '2017-01-23', '2017-01-27'),
  18. (3, 3, '2017-01-23', '2017-01-27'),
  19. (4, 3, '2017-01-23', '2017-01-27'),
  20. (5, 3, '2017-01-23', '2017-01-27'),
  21. (6, 4, '2017-02-01', '2017-03-01'),
  22. (7, 4, '2017-02-01', '2017-03-01'),
  23. (8, 4, '2017-02-01', '2017-03-01'),
  24. (9, 4, '2017-02-01', '2017-03-01'),
  25. (5, 4, '2017-03-01', '2017-02-28'),
  26. (4, 4, '2017-02-01', '2017-03-01'),
  27. (5, 5, '2017-02-01', NULL),
  28. (8, 5, '2017-02-01', NULL),
  29. (9, 5, '2017-03-01', '2017-02-02'),
  30. (10, 5, '2017-02-01', '2017-02-02');
  31.  
  32. INSERT INTO `register` (`studentid`, `tutorialid`, `mark`) VALUES
  33. (1, 1, 'Y'),
  34. (1, 1, 'Y'),
  35. (1, 1, 'N'),
  36. (1, 1, 'S'),
  37. (2, 1, 'S'),
  38. (2, 1, 'S'),
  39. (2, 1, 'S'),
  40. (2, 1, 'Y'),
  41. (3, 1, 'Y'),
  42. (3, 1, 'N'),
  43. (3, 1, 'N'),
  44. (3, 1, 'S'),
  45. (4, 1, 'Y'),
  46. (4, 1, 'Y'),
  47. (4, 1, 'Y'),
  48. (4, 1, 'Y'),
  49. (5, 1, 'S'),
  50. (5, 1, 'S'),
  51. (5, 1, 'N'),
  52. (5, 1, 'N'),
  53. (1, 1, 'N'),
  54. (1, 1, 'N'),
  55. (2, 1, 'Y'),
  56. (3, 1, 'N'),
  57. (5, 1, 'Y'),
  58. (8, 1, 'S'),
  59. (9, 1, 'Y'),
  60. (3, 2, 'N'),
  61. (4, 2, 'N'),
  62. (5, 2, 'Y'),
  63. (6, 2, 'Y'),
  64. (7, 2, 'N'),
  65. (8, 2, 'N'),
  66. (8, 2, 'N'),
  67. (9, 2, 'N'),
  68. (0, 0, ''),
  69. (10, 2, 'S'),
  70. (1, 3, 'Y'),
  71. (2, 3, 'Y'),
  72. (3, 3, 'Y'),
  73. (4, 3, 'N'),
  74. (5, 3, 'Y'),
  75. (6, 4, 'N'),
  76. (7, 4, 'N'),
  77. (8, 4, 'N'),
  78. (9, 4, 'N'),
  79. (5, 4, 'N'),
  80. (4, 4, 'Y'),
  81. (5, 5, 'S'),
  82. (5, 5, 'S'),
  83. (5, 5, 'S'),
  84. (5, 5, 'S'),
  85. (9, 5, 'N'),
  86. (10, 5, 'N');
  87.  
  88.  
  89. INSERT INTO `room` (`roomid`, `roomname`) VALUES
  90. (1, 'Bancroft 1.15a'),
  91. (2, 'ITL Ground Floor'),
  92. (3, 'Mason Lecture Theatre'),
  93. (4, 'Arts Two 3.10'),
  94. (5, 'Arts One Room 4.67');
  95.  
  96.  
  97. INSERT INTO `schedule` (`tutorid`, `dateandtime`, `roomid`) VALUES
  98. (1, '2017-02-01 12:00:00', 1),
  99. (1, '2017-02-08 12:00:00', 1),
  100. (1, '2017-02-15 12:00:00', 1),
  101. (1, '2017-02-22 12:00:00', 1),
  102. (2, '2017-02-28 00:00:00', 2),
  103. (1, '2017-02-01 09:00:00', 1),
  104. (2, '2017-02-01 09:00:00', 4),
  105. (3, '2017-01-26 09:00:00', 3),
  106. (4, '2017-01-25 10:00:00', 3),
  107. (4, '2017-02-01 09:00:00', 5),
  108. (4, '2017-02-02 11:00:00', 2);
  109.  
  110.  
  111. INSERT INTO `student` (`studentid`, `firstname`, `lastname`, `email`) VALUES
  112. (1, 'Prash', 'Jay', 'prash@gmail.com'),
  113. (2, 'Adam', 'Laraqui', 'adam@gmail.com'),
  114. (3, 'Kev', 'Wedderburn', 'kev@gmail.com'),
  115. (4, 'Melo', 'Jan', 'melo@gmail.com'),
  116. (5, 'Johnny', 'Smith', 'john@gmail.com'),
  117. (6, 'Chris', 'Cooper', 'chris@gmail.com'),
  118. (7, 'Molos', 'Dautaj', 'molos@gmail.com'),
  119. (8, 'Rabi', 'Ahmed', 'rabi@gmail.com'),
  120. (9, 'Elmo', 'Muppet', 'elmo@muppetmail.com'),
  121. (10, 'Rahi', 'Alam', 'rahi@gmail.com'),
  122. (11, 'Jaden', 'Smith', 'jaden@smiths.com'),
  123. (12, 'Will', 'Smith', 'will@smiths.com'),
  124. (13, 'Jacrispy', 'Vulcano', 'jacrisp@gmail.com'),
  125. (14, 'James', 'Murray', 'james@gmail.com'),
  126. (15, 'Ted', 'Baker', 'ted@hotmail.com'),
  127. (16, 'Ralph', 'Lauren', 'ralph@gmail.com'),
  128. (17, 'Tony', 'Stark', 'tony@starks.com'),
  129. (18, 'Pepper', 'Potts', 'pepper@gmail.com'),
  130. (19, 'Paul', 'Ingram', 'paul@yahoo.com'),
  131. (20, 'Ilias', 'Papounidis', 'ilias@gmail.com');
  132.  
  133.  
  134. INSERT INTO `studentTutorialInfo` (`studentID`, `tutorialID`, `tutorID`, `dateandtime`, `roomID`) VALUES
  135. (1, 1, 1, '2017-02-01 12:00:00', 1),
  136. (2, 1, 1, '2017-02-01 12:00:00', 1),
  137. (3, 1, 1, '2017-02-01 12:00:00', 1),
  138. (4, 1, 1, '2017-02-01 12:00:00', 1),
  139. (5, 1, 1, '2017-02-01 12:00:00', 1),
  140. (1, 1, 1, '2017-02-08 12:00:00', 1),
  141. (2, 1, 1, '2017-02-08 12:00:00', 1),
  142. (3, 1, 1, '2017-02-08 12:00:00', 1),
  143. (4, 1, 1, '2017-02-08 12:00:00', 1),
  144. (5, 1, 1, '2017-02-08 12:00:00', 1),
  145. (1, 1, 1, '2017-02-15 12:00:00', 1),
  146. (2, 1, 1, '2017-02-15 12:00:00', 1),
  147. (3, 1, 1, '2017-02-15 12:00:00', 1),
  148. (4, 1, 1, '2017-02-15 12:00:00', 1),
  149. (5, 1, 1, '2017-02-15 12:00:00', 1),
  150. (1, 1, 1, '2017-02-22 12:00:00', 1),
  151. (2, 1, 1, '2017-02-22 12:00:00', 1),
  152. (3, 1, 1, '2017-02-22 12:00:00', 1),
  153. (4, 1, 1, '2017-02-22 12:00:00', 1),
  154. (5, 1, 1, '2017-02-22 12:00:00', 1),
  155. (1, 1, 2, '2017-02-28 09:00:00', 1),
  156. (2, 1, 2, '2017-02-28 09:00:00', NULL),
  157. (5, 1, 2, '2017-02-28 09:00:00', 1),
  158. (1, 2, 1, '2017-02-23 09:00:00', 1),
  159. (1, 2, 2, '2017-01-23 09:00:00', 1),
  160. (6, 4, 1, '2017-02-01 09:00:00', NULL),
  161. (7, 4, 1, '2017-02-01 09:00:00', NULL),
  162. (5, 5, 4, '2017-02-02 09:00:00', 2),
  163. (8, 5, 4, '2017-02-02 09:00:00', 2);
  164.  
  165.  
  166. INSERT INTO `timeslot` (`dateandtime`) VALUES
  167. ('2017-01-26 09:00:00'),
  168. ('2017-01-27 09:00:00'),
  169. ('2017-02-01 12:00:00'),
  170. ('2017-02-02 09:00:00'),
  171. ('2017-02-02 11:00:00'),
  172. ('2017-02-03 09:00:00'),
  173. ('2017-02-06 09:00:00'),
  174. ('2017-02-06 11:00:00'),
  175. ('2017-02-07 09:00:00'),
  176. ('2017-02-08 12:00:00'),
  177. ('2017-02-15 12:00:00'),
  178. ('2017-02-22 12:00:00'),
  179. ('2017-02-28 09:00:00');
  180.  
  181.  
  182. INSERT INTO `tutor` (`tutorid`, `firstname`, `lastname`, `email`) VALUES
  183. (1, 'Rob', 'Bobsky', 'rob_b@gmail.com'),
  184. (2, 'Doctor', 'Pepper', 'dr@drpepper.com'),
  185. (3, 'Matthew', 'Huntbach', 'm_hutbach@se15.qmul.ac.uk'),
  186. (4, 'Tasos', 'Lavista', 'tasos@qmul.ac.uk'),
  187. (5, 'Martin', 'Neil', 'martin@qmul.ac.uk');
  188.  
  189.  
  190. INSERT INTO `tutorial` (`tutorialid`, `tutorialtype`, `startdate`, `enddate`) VALUES
  191. (1, 'programming', '2017-02-28', '2017-03-01'),
  192. (2, 'programming', '2017-01-23', '2017-03-01'),
  193. (3, 'programming', '2017-01-23', '2017-01-27'),
  194. (4, 'non-programming', '2017-02-01', '2017-03-01'),
  195. (5, 'non-programming', '2017-02-01', '2017-03-01');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement