Advertisement
Guest User

Untitled

a guest
Mar 26th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1.  
  2.  
  3. insert into Customer(name, age, email)
  4. values ('Sofia Jan', 24, 'j.s@mail.com'),
  5. ('Atena Najm', 39, 'a.n@mail.com'),
  6. ('Yu Chang', 42, 'y.c@mail.com'),
  7. ('Ryan King', 52, 'r.k@mail.com'),
  8. ('Thomas George', 34, 't.g@gmail.com'),
  9. ('Marie Smith', 22, 'ma.smith@mail.com'),
  10. ('Jonah Swartz', 28, 'jj.swtz@mail.com'),
  11. ('Terry Su', 31, 'terry.su@mail.com'),
  12. ('David Chen', 45, 'dchen@mail.com'),
  13. ('Cynthia Nguyen', 27, 'cyngu@mail.com'),
  14. ('Malik Abdullah', 27, 'malik_aa@mail.com'),
  15. ('John Parkinson', 33, 'jparki@mail.com'),
  16. ('Stan Orlowski', 26, 'orlows@mail.com'),
  17. ('Sanja Hilbert', 23, 's.hilbert@mail.com'),
  18. ('Ian Hsu', 41, 'shenian@mail.com'),
  19. ('Han Solo', 34, 'han@mail.com');
  20.  
  21. insert into Model(id, name, v_type, model_num, capacity)
  22. values (1, 'BMW X5', 'SUV', 415, 5),
  23. (2, 'Mercedes E400', 'Luxury', 1848, 4),
  24. (3, 'Chevrolet Spark', 'Economy', 1521, 4),
  25. (4, 'Dodge Grand Caravan', 'Mini Van', 2210, 7),
  26. (5, 'Chevrolet Suburban', 'SUV', 1121, 8),
  27. (6, 'Toyota Inception', 'Sports', 1631, 2),
  28. (7, 'Volvo V231', 'Economy', 1737, 4),
  29. (8, 'Kia T21', 'Economy', 1221, 4);
  30.  
  31. insert into Rentalstation(code, name, address, area_code, city)
  32. values(1001, 'SuperCar College', '333 College St', 'M5T1P7', 'Toronto'),
  33. (1002, 'SuperCar Billy Bishop Airport', '200 Spadina Ave', 'M5V1A1', 'Toronto'),
  34. (1003, 'SuperCar York', '220 Eglinton St', 'M6E2G8', 'Toronto'),
  35. (1004, 'SuperCar East Toronto', '200 Richmond St E', 'M5A2P2', 'Toronto'),
  36. (1005, 'SuperCar Parliament', '200 Wellington St', 'K1A0G9', 'Toronto'),
  37. (1006, 'SuperCar Ottawa Airport', '216 Airport Rd', 'K1V9B4', 'Ottawa'),
  38. (1007, 'SuperCar Central Station', '895 Rue Mansfield', 'H3B4G1', 'Montreal'),
  39. (1008, 'SuperCar North Montreal', '2351 Rue Masson', 'H1Y1V8', 'Montreal'),
  40. (1009, 'SuperCar West Montreal', '7000 Avenue Van Horne', 'H3S2B2', 'Montreal');
  41.  
  42. insert into Car(id, license_num, station_code, model_id)
  43. values (101, 'torc566', 1001, 1),
  44. (102, 'torc212', 1001, 8),
  45. (103, 'torc631', 1001, 7),
  46. (104, 'torc522', 1001, 4),
  47. (105, 'torbb10', 1002, 2),
  48. (106, 'torbb11', 1002, 7),
  49. (107, 'torbb12', 1002, 8),
  50. (108, 'tory011', 1003, 3),
  51. (109, 'tory016', 1003, 4),
  52. (110, 'tory017', 1003, 5),
  53. (111, 'tore101', 1004, 5),
  54. (112, 'tore102', 1004, 7),
  55. (113, 'ottp111', 1005, 2),
  56. (114, 'ottp112', 1005, 7),
  57. (115, 'ottp113', 1005, 8),
  58. (116, 'otta101', 1006, 1),
  59. (117, 'otta102', 1006, 7),
  60. (118, 'otta103', 1006, 6),
  61. (119, 'mocs300', 1007, 3),
  62. (120, 'mocs302', 1007, 7),
  63. (121, 'mocs303', 1007, 7),
  64. (122, 'mono201', 1008, 8),
  65. (123, 'mono202', 1008, 4),
  66. (124, 'mono203', 1008, 5),
  67. (125, 'mowe501', 1009, 8),
  68. (126, 'mowe502', 1009, 8),
  69. (127, 'mowe503', 1009, 7),
  70. (128, 'mowe504', 1009, 1);
  71.  
  72.  
  73.  
  74. insert into Reservation(id, from_date, to_date, car_id, old_res_id, status)
  75. values(22001, '2017-09-01 09:00:00', '2017-09-03 17:00:00', 101, Null, 'Completed'),
  76. (22002, '2018-03-17 16:00:00', '2018-03-25 16:00:00', 101, Null, 'Cancelled'),
  77. (22003, '2018-03-19 10:00:00', '2018-03-23 20:00:00', 101, 22002, 'Confirmed'),
  78. (22004, '2018-03-01 08:00:00', '2018-03-10 20:00:00', 101, Null, 'Ongoing'),
  79. (22005, '2017-12-15 13:30:00', '2017-12-25 18:00:00', 101, Null, 'Completed'),
  80. (22006, '2017-11-01 06:00:00', '2017-11-04 12:00:00', 102, null, 'Completed'),
  81. (22007, '2018-02-23 10:00:00', '2018-03-05 17:00:00', 102, Null, 'Cancelled'),
  82. (22008, '2018-03-10 10:00:00', '2018-03-16 20:00:00', 102, Null, 'Confirmed'),
  83. (22009, '2018-02-25 09:00:00', '2018-03-10 21:00:00', 102, null, 'Ongoing'),
  84. (22010, '2017-12-09 14:00:00', '2017-12-11 17:00:00', 103, null, 'Completed'),
  85. (22011, '2018-02-01 08:00:00', '2018-02-05 16:00:00', 104, null, 'Cancelled'),
  86. (22012, '2017-12-25 09:00:00', '2018-01-05 19:00:00', 106, Null, 'Completed'),
  87. (22013, '2018-04-23 09:00:00', '2018-05-01 14:00:00', 106, Null, 'Confirmed'),
  88. (22014, '2018-02-19 08:00:00', '2018-02-23 20:00:00', 107, Null, 'Cancelled'),
  89. (22015, '2018-02-21 08:00:00', '2018-03-10 20:00:00', 107, 22014, 'Ongoing'),
  90. (22016, '2017-10-09 08:00:00', '2017-10-09 21:00:00', 107, Null, 'Completed'),
  91. (22017, '2018-06-03 07:00:00', '2018-06-20 15:00:00', 107, Null, 'Confirmed'),
  92. (22018, '2018-01-14 09:00:00', '2018-01-20 14:00:00', 109, Null, 'Cancelled'),
  93. (22019, '2018-02-01 09:00:00', '2018-02-03 16:00:00', 111, Null, 'Completed'),
  94. (22020, '2018-02-26 06:00:00', '2018-03-07 12:00:00', 113, Null, 'Cancelled'),
  95. (22021, '2018-02-28 11:00:00', '2018-03-08 23:00:00', 113, 22020, 'Ongoing'),
  96. (22022, '2017-07-02 09:00:00', '2018-07-05 21:30:00', 113, Null, 'Completed'),
  97. (22023, '2018-02-05 08:00:00', '2018-02-08 18:00:00', 114, Null, 'Completed'),
  98. (22024, '2018-04-02 16:00:00', '2018-04-06 16:00:00', 116, Null, 'Confirmed'),
  99. (22025, '2018-03-03 07:00:00', '2018-03-15 23:30:00', 116, Null, 'Ongoing'),
  100. (22026, '2018-01-01 07:00:00', '2018-01-01 17:00:00', 118, Null, 'Completed'),
  101. (22027, '2018-04-04 09:00:00', '2018-04-06 15:00:00', 119, Null, 'Cancelled'),
  102. (22028, '2018-02-14 13:00:00', '2018-03-25 23:00:00', 119, Null, 'Ongoing'),
  103. (22029, '2017-09-26 08:00:00', '2017-10-03 20:00:00', 119, Null, 'Completed'),
  104. (22030, '2018-03-26 10:00:00', '2018-03-29 16:00:00', 123, Null, 'Confirmed'),
  105. (22031, '2017-12-21 06:00:00', '2017-12-28 22:00:00', 124, Null, 'Completed'),
  106. (22032, '2017-09-22 16:00:00', '2017-09-23 08:00:00', 126, Null, 'Cancelled'),
  107. (22033, '2017-09-23 17:00:00', '2017-09-23 14:00:00', 126, 22032, 'Completed'),
  108. (22034, '2018-01-01 22:00:00', '2018-04-05 14:00:00', 127, Null, 'Ongoing'),
  109. (22035, '2017-12-07 09:00:00', '2017-12-13 12:00:00', 127, Null, 'Cancelled'),
  110. (22036, '2018-03-24 10:00:00', '2018-04-02 21:00:00', 128, Null, 'Confirmed'),
  111. (22037, '2017-09-25 09:00:00', '2017-09-27 20:00:00', 103, Null, 'Cancelled'),
  112. (22038, '2017-09-25 09:00:00', '2017-09-27 20:00:00', 104, 22037, 'Completed');
  113.  
  114.  
  115. insert into Customer_res(email, res_num)
  116. values ('j.s@mail.com', 22001),
  117. ('terry.su@mail.com', 22001),
  118. ('s.hilbert@mail.com', 22002),
  119. ('s.hilbert@mail.com', 22003),
  120. ('dchen@mail.com', 22004),
  121. ('jj.swtz@mail.com', 22005),
  122. ('r.k@mail.com', 22006),
  123. ('cyngu@mail.com', 22006),
  124. ('ma.smith@mail.com', 22007),
  125. ('jparki@mail.com', 22007),
  126. ('ma.smith@mail.com', 22008),
  127. ('jparki@mail.com', 22008),
  128. ('orlows@mail.com', 22009),
  129. ('j.s@mail.com', 22010),
  130. ('malik_aa@mail.com', 22011),
  131. ('malik_aa@mail.com', 22012),
  132. ('jparki@mail.com', 22013),
  133. ('shenian@mail.com', 22014),
  134. ('shenian@mail.com', 22015),
  135. ('shenian@mail.com', 22016),
  136. ('shenian@mail.com', 22017),
  137. ('orlows@mail.com', 22018),
  138. ('t.g@gmail.com', 22019),
  139. ('t.g@gmail.com', 22020),
  140. ('t.g@gmail.com', 22021),
  141. ('orlows@mail.com', 22022),
  142. ('s.hilbert@mail.com', 22023),
  143. ('s.hilbert@mail.com', 22024),
  144. ('y.c@mail.com', 22025),
  145. ('y.c@mail.com', 22026),
  146. ('y.c@mail.com', 22027),
  147. ('cyngu@mail.com', 22028),
  148. ('dchen@mail.com', 22029),
  149. ('shenian@mail.com', 22030),
  150. ('dchen@mail.com', 22030),
  151. ('y.c@mail.com', 22030),
  152. ('t.g@gmail.com', 22031),
  153. ('malik_aa@mail.com', 22032),
  154. ('a.n@mail.com', 22032),
  155. ('malik_aa@mail.com', 22033),
  156. ('a.n@mail.com', 22033),
  157. ('terry.su@mail.com', 22034),
  158. ('jj.swtz@mail.com', 22035),
  159. ('cyngu@mail.com', 22036),
  160. ('s.hilbert@mail.com', 22037),
  161. ('s.hilbert@mail.com', 22038);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement