-
Notifications
You must be signed in to change notification settings - Fork 0
/
Insert.sql
59 lines (46 loc) · 3.07 KB
/
Insert.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
INSERT INTO airline
VALUES ('China Eastern'),
('American Airlines'),
('Caribbean Airlines');
INSERT INTO airport
VALUES ('JFK', 'New York City'),
('PVG', 'Shanghai'),
('MCO', 'Orlando'),
('POS', 'Port Of Spain');
INSERT INTO customer (email,name,password,building_number,street,city,state,phone_number,passport_number,passport_expiration,passport_country,date_of_birth)
VALUES ('[email protected]','Daniel Hunte',MD5('hellothere'),'204','Cleveland Street','Brooklyn','NY','18683541073','TB746352','2028/02/23','Trinidad and Tobago','1997/09/29'),
('[email protected]','Luiza Menezes',MD5('hardpassword'),'354','Crescent Street','New York','NY','19176473387','TA764986','2025/06/02','United State of America','2000/04/17');
INSERT INTO booking_agent
VALUES ('[email protected]',MD5('themartian'),'Emusk123');
INSERT INTO airplane
VALUES ('8374','China Eastern',100),
('5846','China Eastern',100),
('38','Caribbean Airlines',60);
INSERT INTO airline_staff
VALUES ('GeorgeB','China Eastern',MD5('myjobsucks'),'George','Benson','1985/07/12'),
('DonaldT','Caribbean Airlines',MD5('itsgonnabehuge'),'Donald','Trump','1948/04/30');
INSERT INTO staff_phone_number
VALUES ('GeorgeB','China Eastern','16138764937'),
('DonaldT','Caribbean Airlines','17659372987'),
('DonaldT','Caribbean Airlines','13659270475');
INSERT INTO flight
VALUES ('100','China Eastern','2021/05/30','06:00:00','PVG','JFK','2021/05/31','19:00:00',1200,'on time','8374'),
('94','China Eastern','2021/05/19','08:00:00','PVG','MCO','2021/05/20','12:00:00',1200,'on time','8374'),
('23','China Eastern','2021/06/10','13:00:00','MCO','PVG','2021/06/11','20:00:00',1500,'on time','5846'),
('55','Caribbean Airlines','2021/03/30','23:00:00','POS','JFK','2021/03/31','3:00:00',400,'delayed','38'),
('41','Caribbean Airlines','2021/04/20','05:00:00','MCO','POS','2021/04/20','10:00:00',350,'on time','38');
INSERT INTO ticket
VALUES ('67483',94,'China Eastern','[email protected]',1200,'Visa','876498736497','Luiza Menezes','2023/04/24','2021/03/09','03:43:00',NULL),
('48464',23,'China Eastern','[email protected]',1500,'Visa','876498736497','Luiza Menezes','2023/04/24','2021/03/15','15:34:31',NULL),
('98537',55,'Caribbean Airlines','[email protected]',400,'Visa','876498736497','Luiza Menezes','2023/04/24','2021/03/09','03:43:00','Emusk123'),
('17658',94,'China Eastern','[email protected]',400,'Masercard','465873862567','Daniel Hunte','2022/09/12','2021/01/20','10:15:01',NULL),
('53875',41,'Caribbean Airlines','[email protected]',350,'Masercard','465873862567','Daniel Hunte','2022/09/12','2021/02/25','15:16:00',NULL),
('37692',23,'China Eastern','[email protected]',1500,'Masercard','465873862567','Daniel Hunte','2022/09/12','2021/04/07','18:49:26','Emusk123');
INSERT INTO cus_purchase
VALUES (67483,'[email protected]'),
(48464,'[email protected]'),
(17658,'[email protected]'),
(53875,'[email protected]');
INSERT INTO agent_purchase
VALUES (98537,'[email protected]','[email protected]'),
(37692,'[email protected]','[email protected]');