This repository has been archived by the owner on Jul 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmockdata_8_main.sql
39 lines (36 loc) · 2.49 KB
/
mockdata_8_main.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
INSERT ALL
INTO offer_type (name) VALUES ('Safari')
INTO offer_type (name) VALUES ('City Breaks')
INTO offer_type (name) VALUES ('Beach Holidays')
INTO offer_type (name) VALUES ('Ski Holidays')
SELECT 1 FROM dual;
commit;
INSERT ALL
INTO destination (country_iso_id, name) VALUES ('PL', 'Warszawa')
INTO destination (country_iso_id, name) VALUES ('MX', 'Cancun')
INTO destination (country_iso_id, name) VALUES ('US', 'Newport')
INTO destination (country_iso_id, name) VALUES ('BS', 'Nassau')
INTO destination (country_iso_id, name) VALUES ('GB', 'Birmingham')
INTO destination (country_iso_id, name) VALUES ('UG', 'Kampala')
SELECT 1 FROM dual;
commit;
INSERT ALL
INTO offer(type_id, name, price, minimal_price, departure_date, comeback_date, destination_id, end_offer_date, spots_left)
VALUES (1, 'Safari', 7500.00, 4800.00, to_date('2022-09-10','yyyy-mm-dd'),to_date('2022-09-22','yyyy-mm-dd'), 6, to_date('2022-08','yyyy-mm'), 40)
INTO offer(type_id, name, price, minimal_price, departure_date, comeback_date, destination_id, end_offer_date, spots_left)
VALUES (2, 'Visit Birmingham', 2500.00, 900.00, to_date('2022-07-12','yyyy-mm-dd'),to_date('2022-07-22','yyyy-mm-dd'), 5, to_date('2022-07-10','yyyy-mm-dd'), 55)
INTO offer(type_id, name, price, minimal_price, departure_date, comeback_date, destination_id, end_offer_date, spots_left)
VALUES (3, 'Bahamas', 5250.00, 4800.00, to_date('2023-01-25','yyyy-mm-dd'),to_date('2023-02-14','yyyy-mm-dd'), 4, to_date('2022-11','yyyy-mm'), 85)
INTO offer(type_id, name, price, minimal_price, departure_date, comeback_date, destination_id, end_offer_date, spots_left)
VALUES (3, 'Yucatan', 5100.00, 2600.00, to_date('2022-10-15','yyyy-mm-dd'),to_date('2022-10-30','yyyy-mm-dd'), 2, to_date('2022-10','yyyy-mm'), 130)
INTO offer(type_id, name, price, minimal_price, departure_date, comeback_date, destination_id, end_offer_date, spots_left)
VALUES (4, 'Vermont', 4780.00, 2400.00, to_date('2022-12-22','yyyy-mm-dd'),to_date('2023-01-03','yyyy-mm-dd'), 3, to_date('2022-12','yyyy-mm'), 40)
INTO offer(type_id, name, price, minimal_price, departure_date, comeback_date, destination_id, end_offer_date, spots_left)
VALUES (2, 'Warszawa', 800.00, 300.00, to_date('2022-08-11','yyyy-mm-dd'),to_date('2022-08-16','yyyy-mm-dd'), 1, to_date('2022-08','yyyy-mm'), 3)
SELECT 1 FROM dual;
commit;
INSERT ALL
INTO client(email) VALUES ('[email protected]')
INTO client(email) VALUES ('[email protected]')
SELECT 1 FROM dual;
commit;