Chinastark commited on
Commit
e788891
·
verified ·
1 Parent(s): 489d5fd

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. database/aircraft/aircraft.sqlite +0 -0
  2. database/baseball_1/baseball_1.sqlite +3 -0
  3. database/bike_1/bike_1.sqlite +3 -0
  4. database/browser_web/browser_web.sqlite +0 -0
  5. database/browser_web/schema.sql +58 -0
  6. database/chinook_1/chinook_1.sqlite +3 -0
  7. database/cinema/cinema.sqlite +0 -0
  8. database/college_2/college_2.sqlite +3 -0
  9. database/cre_Drama_Workshop_Groups/cre_Drama_Workshop_Groups.sqlite +3 -0
  10. database/cre_Theme_park/cre_Theme_park.sqlite +0 -0
  11. database/cre_Theme_park/schema.sql +332 -0
  12. database/culture_company/culture_company.sqlite +0 -0
  13. database/customers_and_invoices/customers_and_invoices.sqlite +0 -0
  14. database/customers_and_invoices/schema.sql +229 -0
  15. database/department_management/schema.sql +58 -0
  16. database/dog_kennels/dog_kennels.sqlite +0 -0
  17. database/dog_kennels/schema.sql +172 -0
  18. database/farm/schema.sql +86 -0
  19. database/flight_1/flight_1.sqlite +0 -0
  20. database/flight_4/flight_4.sqlite +3 -0
  21. database/formula_1/data_csv/lapTimes.csv +3 -0
  22. database/formula_1/data_csv/races.csv +0 -0
  23. database/formula_1/data_csv/seasons.csv +70 -0
  24. database/formula_1/formula_1.sqlite +3 -0
  25. database/game_injury/game_injury.sqlite +0 -0
  26. database/game_injury/schema.sql +91 -0
  27. database/gas_company/schema.sql +67 -0
  28. database/hospital_1/hospital_1.sqlite +0 -0
  29. database/hospital_1/schema.sql +310 -0
  30. database/imdb/imdb.sqlite +3 -0
  31. database/local_govt_and_lot/local_govt_and_lot.sqlite +0 -0
  32. database/local_govt_and_lot/schema.sql +265 -0
  33. database/manufactory_1/manufactory_1.sqlite +0 -0
  34. database/match_season/schema.sql +94 -0
  35. database/museum_visit/schema.sql +56 -0
  36. database/music_1/music_1.sqlite +0 -0
  37. database/musical/musical.sqlite +0 -0
  38. database/network_2/network_2.sqlite +0 -0
  39. database/news_report/news_report.sqlite +0 -0
  40. database/party_host/schema.sql +60 -0
  41. database/perpetrator/perpetrator.sqlite +0 -0
  42. database/perpetrator/schema.sql +45 -0
  43. database/phone_1/phone_1.sqlite +0 -0
  44. database/pilot_record/schema.sql +59 -0
  45. database/products_gen_characteristics/products_gen_characteristics.sqlite +0 -0
  46. database/products_gen_characteristics/schema.sql +103 -0
  47. database/race_track/race_track.sqlite +0 -0
  48. database/race_track/schema.sql +39 -0
  49. database/sakila_1/sakila_1.sqlite +3 -0
  50. database/ship_1/ship_1.sqlite +0 -0
database/aircraft/aircraft.sqlite ADDED
Binary file (45.1 kB). View file
 
database/baseball_1/baseball_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbeb49298ffc84465f7a27f3477fe73e05a2ced8d4c3c972d20d75c25820f29b
3
+ size 29794304
database/bike_1/bike_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5ae0e24e3a9d860a38ec6256828e3b9e37691c80931ef554adc202f8eb2950c
3
+ size 1785856
database/browser_web/browser_web.sqlite ADDED
Binary file (28.7 kB). View file
 
database/browser_web/schema.sql ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys=OFF;
2
+ BEGIN TRANSACTION;
3
+ CREATE TABLE IF NOT EXISTS "Web_client_accelerator" (
4
+ "id" int,
5
+ "name" text,
6
+ "Operating_system" text,
7
+ "Client" text,
8
+ "Connection" text,
9
+ primary key("id")
10
+ );
11
+ INSERT INTO Web_client_accelerator VALUES(1,'CACHEbox','Appliance (Linux)','End user, ISP','Broadband, Satellite, Wireless, Fiber, DSL');
12
+ INSERT INTO Web_client_accelerator VALUES(2,'CProxy','Windows','user','up to 756kbit/s');
13
+ INSERT INTO Web_client_accelerator VALUES(3,'Fasterfox','Windows, Mac, Linux and Mobile devices','user','Dialup, Wireless, Broadband, DSL');
14
+ INSERT INTO Web_client_accelerator VALUES(4,'fasTun','Any','All','Any');
15
+ INSERT INTO Web_client_accelerator VALUES(5,'Freewire','Windows, except NT and 95','ISP','Dial-up');
16
+ INSERT INTO Web_client_accelerator VALUES(6,'Google Web Accelerator (discontinued)','Windows','user/Google server','Broadband');
17
+ INSERT INTO Web_client_accelerator VALUES(7,'Heigh Speed','Windows','All','Any');
18
+ INSERT INTO Web_client_accelerator VALUES(8,'Netfury','Windows, Mac','End User, ISP','Dial-up, Broadband, DSL, ISDN, Satellite, Wireless');
19
+ INSERT INTO Web_client_accelerator VALUES(9,'Nitro','Windows, Mac','End User, ISP','Dial-up, Broadband, DSL, ISDN, Satellite, Wireless');
20
+ INSERT INTO Web_client_accelerator VALUES(10,'ONSPEED','Windows, Mac and Mobile devices','user','Dialup, Wireless, Broadband, DSL');
21
+ INSERT INTO Web_client_accelerator VALUES(11,'Opera Turbo','Android, Linux, Mac and Windows devices','user/Opera server','Any');
22
+ INSERT INTO Web_client_accelerator VALUES(12,'Polipo','Unix (Linux, *BSD, Mac OS X, others), Windows','user/ISP','Any');
23
+ INSERT INTO Web_client_accelerator VALUES(13,'Propel','Windows, Mac','End User, ISP','Dial, DSL, ISDN, Satellite, wireless');
24
+ INSERT INTO Web_client_accelerator VALUES(14,'Proxyconn Web Accelerator','Windows, Mac, Mobile devices','user','Dialup, Wireless, Broadband, DSL');
25
+ INSERT INTO Web_client_accelerator VALUES(15,'RabbIT','Any system with Java 1.6 VM available','ISP','Any');
26
+ INSERT INTO Web_client_accelerator VALUES(16,'Squid','Unix (Linux, *BSD, Mac OS X, others), Windows','user/ISP','Any');
27
+ INSERT INTO Web_client_accelerator VALUES(17,'Toonel','Windows, Linux, Mac OS, Symbian, WindowsMobile','user/ISP','Any');
28
+ INSERT INTO Web_client_accelerator VALUES(18,'WinGate','Windows (2000 onwards)','All','Any');
29
+ INSERT INTO Web_client_accelerator VALUES(19,'Ziproxy','Unix (Linux, *BSD, Mac OS X, others)','ISP','Any');
30
+ CREATE TABLE IF NOT EXISTS "browser" (
31
+ "id" int,
32
+ "name" text,
33
+ "market_share" real,
34
+ primary key("id")
35
+ );
36
+ INSERT INTO browser VALUES(1,'Internet Explorer',28.960000000000000852);
37
+ INSERT INTO browser VALUES(2,'Firefox',18.109999999999999431);
38
+ INSERT INTO browser VALUES(3,'Safari',8.5399999999999991473);
39
+ INSERT INTO browser VALUES(4,'Opera',1.1999999999999999555);
40
+ CREATE TABLE IF NOT EXISTS "accelerator_compatible_browser" (
41
+ "accelerator_id" int,
42
+ "browser_id" int,
43
+ "compatible_since_year" int,
44
+ primary key("accelerator_id", "browser_id"),
45
+ foreign key ("accelerator_id") references `Web_client_accelerator`("id"),
46
+ foreign key ("browser_id") references `browser`("id")
47
+ );
48
+ INSERT INTO accelerator_compatible_browser VALUES(1,1,1995);
49
+ INSERT INTO accelerator_compatible_browser VALUES(1,2,1996);
50
+ INSERT INTO accelerator_compatible_browser VALUES(2,3,1996);
51
+ INSERT INTO accelerator_compatible_browser VALUES(2,4,2000);
52
+ INSERT INTO accelerator_compatible_browser VALUES(3,1,2005);
53
+ INSERT INTO accelerator_compatible_browser VALUES(3,2,2007);
54
+ INSERT INTO accelerator_compatible_browser VALUES(3,3,2008);
55
+ INSERT INTO accelerator_compatible_browser VALUES(4,4,2009);
56
+ INSERT INTO accelerator_compatible_browser VALUES(9,1,2010);
57
+ COMMIT;
58
+
database/chinook_1/chinook_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70b3eb8c3ffb5351eb7943e3bf05b693a5397c22d200ff022ef99e2ca18ab7b9
3
+ size 901120
database/cinema/cinema.sqlite ADDED
Binary file (28.7 kB). View file
 
database/college_2/college_2.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb729920ad0b7f06d38a12f6f678307964acc7d3417af83d98c519c65c90d386
3
+ size 2117632
database/cre_Drama_Workshop_Groups/cre_Drama_Workshop_Groups.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9a9e215fae2314be429307b47ee7fc3ffdc749fba933faba980b97a5f6b9a0a
3
+ size 147456
database/cre_Theme_park/cre_Theme_park.sqlite ADDED
Binary file (94.2 kB). View file
 
database/cre_Theme_park/schema.sql ADDED
@@ -0,0 +1,332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE Ref_Hotel_Star_Ratings (
3
+ star_rating_code CHAR(15) NOT NULL,
4
+ star_rating_description VARCHAR(80),
5
+ PRIMARY KEY (star_rating_code),
6
+ UNIQUE (star_rating_code)
7
+ );
8
+
9
+
10
+ CREATE TABLE Locations (
11
+ Location_ID INTEGER NOT NULL,
12
+ Location_Name VARCHAR(255),
13
+ Address VARCHAR(255),
14
+ Other_Details VARCHAR(255),
15
+ PRIMARY KEY (Location_ID)
16
+ );
17
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (333, 'Astro Orbiter', '660 Shea Crescent', NULL);
18
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (368, 'African Animals', '254 Ottilie Junction', NULL);
19
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (417, 'American Adventure', '53815 Sawayn Tunnel Apt. 297', NULL);
20
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (579, 'The Barnstormer', '3374 Sarina Manor', NULL);
21
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (603, 'African Adventure', '88271 Barrows Union Suite 203', NULL);
22
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (650, 'UK Gallery', '4411 Sabrina Radial Suite 582', NULL);
23
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (655, 'The Boneyard', '0692 Georgiana Pass', NULL);
24
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (661, 'Shark World', '2485 Mueller Squares Suite 537', NULL);
25
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (740, 'Space Spin', '5536 Betsy Street Apt. 646', NULL);
26
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (759, 'Butterflies', '959 Feest Glen Suite 523', NULL);
27
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (858, 'Soak Station', '4908 Reinger Vista', NULL);
28
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (861, 'Castle', '14034 Kohler Drive', NULL);
29
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (867, 'Coral Reefs', '4510 Schuster Stream Apt. 613', NULL);
30
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (868, 'Film Festival', '770 Edd Lane Apt. 098', NULL);
31
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (885, 'Fossil Fun Games', '101 Paucek Crescent', NULL);
32
+
33
+
34
+ CREATE TABLE Ref_Attraction_Types (
35
+ Attraction_Type_Code CHAR(15) NOT NULL,
36
+ Attraction_Type_Description VARCHAR(255),
37
+ PRIMARY KEY (Attraction_Type_Code),
38
+ UNIQUE (Attraction_Type_Code)
39
+ );
40
+
41
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('2', 'park');
42
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('3', 'garden');
43
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('5', 'gallery');
44
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('6', 'adventure');
45
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('9', 'museum');
46
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('1', 'star');
47
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('2', 'star');
48
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('3', 'star');
49
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('4', 'star');
50
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('5', 'star');
51
+
52
+
53
+ CREATE TABLE Visitors (
54
+ Tourist_ID INTEGER NOT NULL,
55
+ Tourist_Details VARCHAR(255),
56
+ PRIMARY KEY (Tourist_ID),
57
+ UNIQUE (Tourist_ID)
58
+ );
59
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (164, 'Toney');
60
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (189, 'Graciela');
61
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (204, 'Vincent');
62
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (211, 'Vivian');
63
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (241, 'Nettie');
64
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (295, 'Laurence');
65
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (359, 'Newell');
66
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (377, 'Marisol');
67
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (399, 'Jarrell');
68
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (439, 'Edna');
69
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (500, 'Maud');
70
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (513, 'Alison');
71
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (541, 'Rosalind');
72
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (545, 'Tevin');
73
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (578, 'Aleen');
74
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (610, 'Marcelle');
75
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (652, 'Lizzie');
76
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (779, 'Wayne');
77
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (841, 'Teresa');
78
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (888, 'Elnora');
79
+
80
+
81
+
82
+ CREATE TABLE Features (
83
+ Feature_ID INTEGER NOT NULL,
84
+ Feature_Details VARCHAR(255),
85
+ PRIMARY KEY (Feature_ID)
86
+ );
87
+
88
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (523, 'cafe');
89
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (528, 'park');
90
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (543, 'garden');
91
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (681, 'shopping');
92
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (955, 'parking');
93
+
94
+
95
+ CREATE TABLE Hotels (
96
+ hotel_id INTEGER NOT NULL,
97
+ star_rating_code CHAR(15) NOT NULL,
98
+ pets_allowed_yn CHAR(1),
99
+ price_range real,
100
+ other_hotel_details VARCHAR(255),
101
+ PRIMARY KEY (hotel_id),
102
+ FOREIGN KEY (star_rating_code) REFERENCES Ref_Hotel_Star_Ratings (star_rating_code)
103
+ );
104
+
105
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (123, '5', '1', '2914989.571', NULL);
106
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (144, '4', '', '', NULL);
107
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (172, '5', '', '17012.682586009', NULL);
108
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (222, '5', '1', '', NULL);
109
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (239, '3', '1', '', NULL);
110
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (264, '1', '1', '48525.4530675', NULL);
111
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (314, '5', '1', '766712918.96763', NULL);
112
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (331, '1', '1', '', NULL);
113
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (350, '1', '', '', NULL);
114
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (373, '5', '1', '250548014.90329', NULL);
115
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (376, '2', '', '', NULL);
116
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (379, '4', '1', '38014975.47848', NULL);
117
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (420, '5', '1', '9393.86291219', NULL);
118
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (421, '3', '', '5526556.6412', NULL);
119
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (426, '5', '', '245.067720121', NULL);
120
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (431, '2', '1', '43.729525', NULL);
121
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (442, '2', '1', '289775.7331715', NULL);
122
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (473, '1', '1', '2374.7971074', NULL);
123
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (514, '5', '', '1381255.81865', NULL);
124
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (555, '5', '1', '5390.432113', NULL);
125
+
126
+
127
+ CREATE TABLE Tourist_Attractions (
128
+ Tourist_Attraction_ID INTEGER NOT NULL,
129
+ Attraction_Type_Code CHAR(15) NOT NULL,
130
+ Location_ID INTEGER NOT NULL,
131
+ How_to_Get_There VARCHAR(255),
132
+ Name VARCHAR(255),
133
+ Description VARCHAR(255),
134
+ Opening_Hours VARCHAR(255),
135
+ Other_Details VARCHAR(255),
136
+ PRIMARY KEY (Tourist_Attraction_ID),
137
+ FOREIGN KEY (Location_ID) REFERENCES Locations (Location_ID),
138
+ FOREIGN KEY (Attraction_Type_Code) REFERENCES Ref_Attraction_Types (Attraction_Type_Code)
139
+ );
140
+
141
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (2113, '2', 579, 'bus', 'art museum', NULL, NULL, NULL);
142
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (2701, '6', 417, 'walk', 'UK gallery', NULL, NULL, NULL);
143
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (5076, '2', 868, 'shuttle', 'flying elephant', NULL, NULL, NULL);
144
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (5265, '5', 603, 'bus', 'film festival', NULL, NULL, NULL);
145
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6476, '3', 417, 'shuttle', 'US museum', NULL, NULL, NULL);
146
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6523, '9', 858, 'walk', 'fun games', NULL, NULL, NULL);
147
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6653, '9', 655, 'walk', 'history gallery', NULL, NULL, NULL);
148
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6852, '5', 858, 'walk', 'exploration trial', NULL, NULL, NULL);
149
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (7067, '5', 417, 'bus', 'haunted mansion', NULL, NULL, NULL);
150
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (8429, '9', 867, 'walk', 'presidents hall', NULL, NULL, NULL);
151
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (8449, '2', 579, 'bus', 'impressions de France', NULL, NULL, NULL);
152
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (8698, '5', 661, 'bus', 'jungle cruise', NULL, NULL, NULL);
153
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (9360, '5', 868, 'shuttle', 'fun shops', NULL, NULL, NULL);
154
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (9561, '2', 759, 'bus', 'cafe', NULL, NULL, NULL);
155
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (9919, '6', 579, 'shuttle', 'parking', NULL, NULL, NULL);
156
+
157
+
158
+
159
+ CREATE TABLE Street_Markets (
160
+ Market_ID INTEGER NOT NULL,
161
+ Market_Details VARCHAR(255),
162
+ PRIMARY KEY (Market_ID),
163
+ FOREIGN KEY (Market_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
164
+ );
165
+ CREATE TABLE Shops (
166
+ Shop_ID INTEGER NOT NULL,
167
+ Shop_Details VARCHAR(255),
168
+ PRIMARY KEY (Shop_ID),
169
+ FOREIGN KEY (Shop_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
170
+ );
171
+ CREATE TABLE Museums (
172
+ Museum_ID INTEGER NOT NULL,
173
+ Museum_Details VARCHAR(255),
174
+ PRIMARY KEY (Museum_ID),
175
+ FOREIGN KEY (Museum_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
176
+ );
177
+ CREATE TABLE Royal_Family (
178
+ Royal_Family_ID INTEGER NOT NULL,
179
+ Royal_Family_Details VARCHAR(255),
180
+ PRIMARY KEY (Royal_Family_ID),
181
+ FOREIGN KEY (Royal_Family_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
182
+ );
183
+ CREATE TABLE Theme_Parks (
184
+ Theme_Park_ID INTEGER NOT NULL,
185
+ Theme_Park_Details VARCHAR(255),
186
+ PRIMARY KEY (Theme_Park_ID),
187
+ FOREIGN KEY (Theme_Park_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
188
+ );
189
+
190
+
191
+ INSERT INTO Museums (`Museum_ID`,`Museum_Details`) VALUES (2113,'Yale Center for British Art');
192
+ INSERT INTO Museums (`Museum_ID`,`Museum_Details`) VALUES (2701,'The Metropolitan Museum of Art');
193
+ INSERT INTO Museums (`Museum_ID`,`Museum_Details`) VALUES (5076,'MoMA');
194
+
195
+ INSERT INTO Theme_Parks (`Theme_Park_ID`,`Theme_Park_Details`) VALUES (5265,'Disney');
196
+ INSERT INTO Theme_Parks (`Theme_Park_ID`,`Theme_Park_Details`) VALUES (6476,'Sea World');
197
+ INSERT INTO Theme_Parks (`Theme_Park_ID`,`Theme_Park_Details`) VALUES (6523, 'Universal Studios');
198
+
199
+
200
+ INSERT INTO Street_Markets (`Market_ID`,`Market_Details`) VALUES (6852, 'Broadway');
201
+ INSERT INTO Street_Markets (`Market_ID`,`Market_Details`) VALUES (7067, 'Fish Farm Market');
202
+
203
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (8429, 'soup');
204
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (8449, 'coffee');
205
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (8698, 'Flower');
206
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (9360, 'see food');
207
+
208
+ INSERT INTO Royal_Family (`Royal_Family_ID`,`Royal_Family_Details`) VALUES (9561,NULL);
209
+ INSERT INTO Royal_Family (`Royal_Family_ID`,`Royal_Family_Details`) VALUES (9919,NULL);
210
+
211
+
212
+ CREATE TABLE Visits (
213
+ Visit_ID INTEGER NOT NULL,
214
+ Tourist_Attraction_ID INTEGER NOT NULL,
215
+ Tourist_ID INTEGER NOT NULL,
216
+ Visit_Date DATETIME NOT NULL,
217
+ Visit_Details VARCHAR(40) NOT NULL,
218
+ PRIMARY KEY (Visit_ID),
219
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID),
220
+ FOREIGN KEY (Tourist_ID) REFERENCES Visitors (Tourist_ID)
221
+ );
222
+
223
+
224
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (183, 6653, 377, '2004-08-21 03:06:14', '');
225
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (268, 5076, 204, '2013-08-06 05:35:51', '');
226
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (273, 9360, 211, '2013-10-27 09:56:08', '');
227
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (302, 6476, 377, '1990-08-15 14:24:10', '');
228
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (356, 6476, 439, '1980-11-26 02:08:00', '');
229
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (381, 6523, 211, '2017-03-19 08:48:19', '');
230
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (416, 6476, 841, '2008-11-09 01:28:01', '');
231
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (479, 6852, 439, '1989-08-24 20:26:37', '');
232
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (563, 6852, 610, '1993-02-01 15:27:20', '');
233
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (612, 9919, 204, '2007-09-17 10:12:45', '');
234
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (729, 6476, 513, '1998-05-12 00:50:20', '');
235
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (776, 8698, 513, '2010-10-04 01:34:12', '');
236
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (781, 6852, 779, '2018-01-09 20:39:52', '');
237
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (866, 8429, 545, '1971-12-16 06:41:26', '');
238
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (909, 8698, 779, '1998-12-10 02:46:43', '');
239
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (937, 6523, 541, '1996-01-08 13:23:41', '');
240
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (962, 9919, 610, '2007-09-03 04:30:01', '');
241
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (968, 6852, 377, '1974-12-31 23:18:24', '');
242
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (977, 8698, 500, '2001-11-13 10:08:28', '');
243
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (999, 2701, 610, '1990-11-12 00:54:50', '');
244
+
245
+
246
+
247
+ CREATE TABLE Photos (
248
+ Photo_ID INTEGER NOT NULL,
249
+ Tourist_Attraction_ID INTEGER NOT NULL,
250
+ Name VARCHAR(255),
251
+ Description VARCHAR(255),
252
+ Filename VARCHAR(255),
253
+ Other_Details VARCHAR(255),
254
+ PRIMARY KEY (Photo_ID),
255
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
256
+ );
257
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (211, 8449, 'game1', NULL, '702', NULL);
258
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (280, 7067, 'game2', NULL, '762', NULL);
259
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (303, 5076, 'game3', NULL, '392', NULL);
260
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (327, 9919, 'fun1', NULL, '820', NULL);
261
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (332, 5076, 'fun2', NULL, '060', NULL);
262
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (428, 6523, 'fun3', NULL, '148', NULL);
263
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (435, 8429, 'fun4', NULL, '453', NULL);
264
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (437, 2701, 'fun5', NULL, '128', NULL);
265
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (525, 5265, 'park1', NULL, '538', NULL);
266
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (534, 6852, 'park2', NULL, '325', NULL);
267
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (537, 6653, 'park3', NULL, '695', NULL);
268
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (550, 5076, 'din1', NULL, '259', NULL);
269
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (558, 8698, 'din2', NULL, '863', NULL);
270
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (571, 6653, 'din3', NULL, '864', NULL);
271
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (596, 9561, 'din4', NULL, '141', NULL);
272
+
273
+
274
+ CREATE TABLE Staff (
275
+ Staff_ID INTEGER NOT NULL,
276
+ Tourist_Attraction_ID INTEGER NOT NULL,
277
+ Name VARCHAR(40),
278
+ Other_Details VARCHAR(255),
279
+ PRIMARY KEY (Staff_ID),
280
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
281
+ );
282
+
283
+
284
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (170, 6476, 'Whitney', NULL);
285
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (219, 6476, 'Kaela', NULL);
286
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (237, 7067, 'Eunice', NULL);
287
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (249, 5265, 'Kiarra', NULL);
288
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (310, 9561, 'Phoebe', NULL);
289
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (433, 9360, 'Vickie', NULL);
290
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (463, 6653, 'Jannie', NULL);
291
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (470, 6523, 'Lenore', NULL);
292
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (487, 6852, 'Asia', NULL);
293
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (491, 6852, 'Janet', NULL);
294
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (532, 6852, 'Elouise', NULL);
295
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (591, 9360, 'Gina', NULL);
296
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (595, 8698, 'Beth', NULL);
297
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (596, 2701, 'Ruthie', NULL);
298
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (604, 6852, 'Aurore', NULL);
299
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (619, 2113, 'Cortney', NULL);
300
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (643, 6523, 'Astrid', NULL);
301
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (667, 9561, 'Shemar', NULL);
302
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (860, 6476, 'Trinity', NULL);
303
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (952, 5265, 'Carmella', NULL);
304
+
305
+
306
+
307
+
308
+ CREATE TABLE Tourist_Attraction_Features (
309
+ Tourist_Attraction_ID INTEGER NOT NULL,
310
+ Feature_ID INTEGER NOT NULL,
311
+ PRIMARY KEY (Tourist_Attraction_ID, Feature_ID),
312
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID),
313
+ FOREIGN KEY (Feature_ID) REFERENCES Features (Feature_ID)
314
+ );
315
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5076, 528);
316
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5076, 681);
317
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5265, 523);
318
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5265, 955);
319
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6476, 543);
320
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6476, 681);
321
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6476, 955);
322
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6523, 528);
323
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6852, 528);
324
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6852, 955);
325
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (7067, 543);
326
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8429, 681);
327
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8449, 528);
328
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8698, 528);
329
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8698, 543);
330
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8698, 681);
331
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (9561, 681);
332
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (9919, 681);
database/culture_company/culture_company.sqlite ADDED
Binary file (28.7 kB). View file
 
database/customers_and_invoices/customers_and_invoices.sqlite ADDED
Binary file (45.1 kB). View file
 
database/customers_and_invoices/schema.sql ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Customers` (
3
+ `customer_id` INTEGER PRIMARY KEY,
4
+ `customer_first_name` VARCHAR(50),
5
+ `customer_middle_initial` VARCHAR(1),
6
+ `customer_last_name` VARCHAR(50),
7
+ `gender` VARCHAR(1),
8
+ `email_address` VARCHAR(255),
9
+ `login_name` VARCHAR(80),
10
+ `login_password` VARCHAR(20),
11
+ `phone_number` VARCHAR(255),
12
+ `town_city` VARCHAR(50),
13
+ `state_county_province` VARCHAR(50),
14
+ `country` VARCHAR(50)
15
+ );
16
+
17
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (1, 'Dee', 'A', 'Larkin', '1', 'thora.torphy@example.org', 'xhartmann', '77789d292604ea04406f', '241.796.1219x37862', 'North Nellie', 'WestVirginia', 'USA');
18
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (2, 'Brennon', 'H', 'Weimann', '0', 'roosevelt.collier@example.org', 'shayne.lesch', 'ce97a3e4539347daab96', '(943)219-4234x415', 'South Isabell', 'Oklahoma', 'USA');
19
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (3, 'Joesph', 'K', 'Schaefer', '0', 'homenick.ambrose@example.net', 'feeney.lauriane', 'a6c7a7064c36b038d402', '(488)524-5345', 'New Nikolas', 'Arkansas', 'USA');
20
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (4, 'Zita', 'L', 'Trantow', '0', 'destinee06@example.com', 'rubye.padberg', 'eb32d2933362d38faff7', '(193)465-6674x4952', 'Ellaburgh', 'Colorado', 'USA');
21
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (5, 'Murl', 'B', 'Shanahan', '1', 'jovani64@example.com', 'jankunding', '398c1603aec3e9de2684', '1-546-447-9843x13741', 'North Helmerbury', 'Idaho', 'USA');
22
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (6, 'Vesta', 'E', 'Leuschke', '1', 'philip94@example.org', 'zdeckow', 'bdbc3c18cf28303c4f6a', '+69(0)7149212554', 'North Devonte', 'Mississippi', 'USA');
23
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (7, 'Dangelo', 'M', 'Spinka', '1', 'zullrich@example.net', 'camilla.dubuque', '180a37476c537e78d3de', '1-904-787-7320', 'West Khaliltown', 'Kansas', 'USA');
24
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (8, 'Meaghan', 'M', 'Keeling', '0', 'pyundt@example.org', 'lowe.wilber', 'e67856613cd71f1b2884', '06015518212', 'Kenshire', 'Mississippi', 'USA');
25
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (9, 'Abbey', 'B', 'Ruecker', '0', 'anastacio45@example.org', 'dubuque.gina', 'd7629de5171fe29106c8', '1-344-593-4896x425', 'Bruenchester', 'California', 'USA');
26
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (10, 'Devin', 'V', 'Glover', '0', 'udeckow@example.com', 'ypowlowski', '604f9062a5a0de83ef9d', '197-955-3766', 'Lake Eusebiomouth', 'Florida', 'USA');
27
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (11, 'Neoma', 'G', 'Hauck', '1', 'michel92@example.org', 'ahmad.hagenes', '035f2ba1e2a675c4f426', '+95(0)1523064649', 'New Rachellefort', 'Alabama', 'USA');
28
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (12, 'Jensen', 'M', 'Muller', '0', 'lew.nicolas@example.org', 'pbecker', '5fe7c12dc3176ddf67c4', '(650)406-8761', 'Carleefort', 'Montana', 'USA');
29
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (13, 'Kieran', 'A', 'Auer', '0', 'nnolan@example.org', 'sophia97', 'd4ade599672bccdabeee', '(157)046-6255x98627', 'Lake Freemanville', 'Kentucky', 'USA');
30
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (14, 'Percival', 'B', 'Kessler', '1', 'jacobi.shanon@example.org', 'lucy.jast', '178613c20728eec256db', '(791)562-7792x45732', 'Port Hollie', 'Louisiana', 'USA');
31
+ INSERT INTO Customers (`customer_id`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `gender`, `email_address`, `login_name`, `login_password`, `phone_number`, `town_city`, `state_county_province`, `country`) VALUES (15, 'Ruby', 'K', 'Boyle', '0', 'gwolff@example.net', 'dthiel', 'eff2c0dbf972481ba23c', '1-546-302-5676', 'East Stephaniafort', 'SouthDakota', 'USA');
32
+
33
+
34
+ CREATE TABLE `Orders` (
35
+ `order_id` INTEGER PRIMARY KEY,
36
+ `customer_id` INTEGER NOT NULL,
37
+ `date_order_placed` DATETIME NOT NULL,
38
+ `order_details` VARCHAR(255),
39
+ FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
40
+ );
41
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (1, 12, '2012-06-27 20:49:56', NULL);
42
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (2, 12, '2012-08-25 07:51:54', NULL);
43
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (3, 8, '2017-11-05 15:32:38', NULL);
44
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (4, 5, '2017-11-27 21:50:58', NULL);
45
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (5, 15, '2015-05-17 03:05:32', NULL);
46
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (6, 5, '2015-11-25 22:55:41', NULL);
47
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (7, 3, '2016-04-15 03:33:59', NULL);
48
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (8, 3, '2010-01-28 03:43:26', NULL);
49
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (9, 2, '2017-03-08 05:42:10', NULL);
50
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (10, 11, '2017-12-04 02:59:10', NULL);
51
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (11, 14, '2010-10-22 06:45:16', NULL);
52
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (12, 1, '2017-05-24 19:26:44', NULL);
53
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (13, 10, '2015-08-06 22:40:40', NULL);
54
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (14, 10, '2017-10-29 04:20:08', NULL);
55
+ INSERT INTO Orders (`order_id`, `customer_id`, `date_order_placed`, `order_details`) VALUES (15, 6, '2013-10-25 17:40:25', NULL);
56
+
57
+
58
+
59
+ CREATE TABLE `Invoices` (
60
+ `invoice_number` INTEGER PRIMARY KEY,
61
+ `order_id` INTEGER NOT NULL,
62
+ `invoice_date` DATETIME,
63
+ FOREIGN KEY (`order_id` ) REFERENCES `Orders`(`order_id` )
64
+ );
65
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (1, 9, '2018-03-01 16:40:48');
66
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (2, 9, '2018-03-20 00:21:41');
67
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (3, 3, '2018-03-05 08:47:33');
68
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (4, 9, '2018-02-28 19:01:06');
69
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (5, 13, '2018-03-07 02:04:32');
70
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (6, 8, '2018-03-16 21:57:43');
71
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (7, 10, '2018-03-13 07:27:38');
72
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (8, 10, '2018-03-19 17:06:30');
73
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (9, 12, '2018-03-16 11:01:06');
74
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (10, 11, '2018-03-01 01:44:08');
75
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (11, 5, '2018-03-23 04:59:28');
76
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (12, 3, '2018-03-15 21:24:13');
77
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (13, 3, '2018-03-03 20:44:06');
78
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (14, 4, '2018-03-19 22:38:10');
79
+ INSERT INTO Invoices (`invoice_number`, `order_id`, `invoice_date`) VALUES (15, 14, '2018-03-15 09:38:49');
80
+
81
+
82
+ CREATE TABLE `Accounts` (
83
+ `account_id` INTEGER PRIMARY KEY,
84
+ `customer_id` INTEGER NOT NULL,
85
+ `date_account_opened` DATETIME,
86
+ `account_name` VARCHAR(50),
87
+ `other_account_details` VARCHAR(255),
88
+ FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
89
+ );
90
+
91
+
92
+
93
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (1, 8, '2016-07-30 22:22:24', '900', 'Regular');
94
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (2, 3, '2017-05-29 16:45:17', '520', 'VIP');
95
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (3, 8, '2012-05-04 18:50:32', '323', 'Regular');
96
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (4, 15, '2011-03-29 15:06:59', '390', 'VIP');
97
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (5, 15, '2014-08-11 18:15:14', '935', 'Regular');
98
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (6, 12, '2014-05-30 12:16:52', '371', 'Regular');
99
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (7, 13, '2015-11-03 08:04:15', '398', 'VIP');
100
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (8, 9, '2009-06-13 11:41:52', '710', 'Regular');
101
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (9, 8, '2010-10-22 13:33:45', '337', 'Regular');
102
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (10, 15, '2016-04-25 21:49:17', '429', 'VIP');
103
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (11, 13, '2012-07-09 23:40:15', '191', 'VIP');
104
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (12, 8, '2015-02-02 09:47:08', '601', 'Regular');
105
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (13, 13, '2010-06-16 09:35:00', '272', 'Regular');
106
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (14, 13, '2014-12-28 07:29:42', '861', 'VIP');
107
+ INSERT INTO Accounts (`account_id`, `customer_id`, `date_account_opened`, `account_name`, `other_account_details`) VALUES (15, 6, '2008-05-04 22:15:56', '662', 'VIP');
108
+
109
+
110
+ CREATE TABLE `Product_Categories` (
111
+ `production_type_code` VARCHAR(15) PRIMARY KEY,
112
+ `product_type_description` VARCHAR(80),
113
+ `vat_rating` DECIMAL(19,4)
114
+ );
115
+ CREATE TABLE `Products` (
116
+ `product_id` INTEGER PRIMARY KEY,
117
+ `parent_product_id` INTEGER,
118
+ `production_type_code` VARCHAR(15) NOT NULL,
119
+ `unit_price` DECIMAL(19,4),
120
+ `product_name` VARCHAR(80),
121
+ `product_color` VARCHAR(20),
122
+ `product_size` VARCHAR(20),
123
+ FOREIGN KEY (`production_type_code` ) REFERENCES `Product_Categories`(`production_type_code` )
124
+ );
125
+
126
+ INSERT INTO Product_Categories (`production_type_code`, `product_type_description`, `vat_rating`) VALUES ('Food', 'Food', '15.8400');
127
+ INSERT INTO Product_Categories (`production_type_code`, `product_type_description`, `vat_rating`) VALUES ('DVDs', 'Dvd products', '11.4000');
128
+ INSERT INTO Product_Categories (`production_type_code`, `product_type_description`, `vat_rating`) VALUES ('Books', 'Books', '13.9500');
129
+ INSERT INTO Product_Categories (`production_type_code`, `product_type_description`, `vat_rating`) VALUES ('Electronics', 'Electrical devices', '17.9000');
130
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (1, 4, 'Food', '617.9500', 'Coffee Bean', 'Red', 'Medium');
131
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (2, 4, 'Books', '558.4900', 'Learning French', 'Yellow', 'Medium');
132
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (3, 8, 'Electronics', '563.5800', 'Fans', 'Black', 'Medium');
133
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (4, 8, 'Electronics', '985.7800', 'Hard Drive', 'Black', 'Small');
134
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (5, 7, 'DVDs', '682.0600', 'Arts', 'Yellow', 'Small');
135
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (6, 7, 'Books', '469.7100', 'Art History', 'Yellow', 'Small');
136
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (7, 5, 'Books', '409.8300', 'Learning English', 'Red', 'Large');
137
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (8, 1, 'Books', '49.6200', 'Menus', 'Black', 'Small');
138
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (9, 8, 'Food', '694.3100', 'Beer Menus', 'Black', 'Small');
139
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (10, 9, 'Electronics', '937.8500', 'TV', 'Red', 'Medium');
140
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (11, 8, 'DVDs', '52.8800', 'Harry Potter 1', 'Black', 'Small');
141
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (12, 1, 'DVDs', '729.0900', 'Harry Potter 2', 'Red', 'Medium');
142
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (13, 6, 'Food', '639.7600', 'Chocolate', 'Yellow', 'Small');
143
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (14, 1, 'DVDs', '469.8700', 'Harry Potter 3', 'Yellow', 'Small');
144
+ INSERT INTO Products (`product_id`, `parent_product_id`, `production_type_code`, `unit_price`, `product_name`, `product_color`, `product_size`) VALUES (15, 2, 'DVDs', '82.9600', 'Harry Potter 4', 'Yellow', 'Large');
145
+
146
+
147
+ CREATE TABLE `Financial_Transactions` (
148
+ `transaction_id` INTEGER NOT NULL ,
149
+ `account_id` INTEGER NOT NULL,
150
+ `invoice_number` INTEGER,
151
+ `transaction_type` VARCHAR(15) NOT NULL,
152
+ `transaction_date` DATETIME,
153
+ `transaction_amount` DECIMAL(19,4),
154
+ `transaction_comment` VARCHAR(255),
155
+ `other_transaction_details` VARCHAR(255),
156
+ FOREIGN KEY (`invoice_number` ) REFERENCES `Invoices`(`invoice_number` ),
157
+ FOREIGN KEY (`account_id` ) REFERENCES `Accounts`(`account_id` )
158
+ );
159
+ CREATE TABLE `Order_Items` (
160
+ `order_item_id` INTEGER PRIMARY KEY,
161
+ `order_id` INTEGER NOT NULL,
162
+ `product_id` INTEGER NOT NULL,
163
+ `product_quantity` VARCHAR(50),
164
+ `other_order_item_details` VARCHAR(255),
165
+ FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
166
+ FOREIGN KEY (`order_id` ) REFERENCES `Orders`(`order_id` )
167
+ );
168
+
169
+
170
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (1, 13, 12, 'Payment', '2018-03-15 21:13:57', '613.9600');
171
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (2, 9, 1, 'Payment', '2018-03-13 13:27:46', '368.4600');
172
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (3, 6, 1, 'Refund', '2018-03-03 01:50:25', '1598.2500');
173
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (4, 9, 12, 'Payment', '2018-03-10 13:46:48', '540.7300');
174
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (5, 9, 2, 'Payment', '2018-03-23 04:56:12', '1214.2200');
175
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (6, 12, 3, 'Refund', '2018-03-22 21:58:37', '1903.4100');
176
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (7, 13, 14, 'Payment', '2018-03-12 03:06:52', '1585.0300');
177
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (8, 14, 15, 'Payment', '2018-03-11 21:57:47', '1425.4100');
178
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (9, 8, 12, 'Payment', '2018-03-07 04:32:54', '1517.7700');
179
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (10, 6, 15, 'Payment', '2018-03-14 19:09:07', '1477.5700');
180
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (11, 6, 13, 'Refund', '2018-03-12 22:51:05', '1567.6400');
181
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (12, 9, 6, 'Refund', '2018-03-05 19:55:23', '1781.2400');
182
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (13, 13, 12, 'Refund', '2018-03-24 12:05:11', '899.8700');
183
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (14, 11, 5, 'Refund', '2018-03-13 03:51:59', '1462.6200');
184
+ INSERT INTO Financial_Transactions (`transaction_id`, `account_id`, `invoice_number`, `transaction_type`, `transaction_date`, `transaction_amount`) VALUES (15, 4, 14, 'Refund', '2018-02-27 14:58:30', '1979.6600');
185
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (1, 4, 4, '6', NULL);
186
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (2, 4, 10, '7', NULL);
187
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (3, 15, 5, '4', NULL);
188
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (4, 1, 3, '9', NULL);
189
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (5, 2, 14, '3', NULL);
190
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (6, 13, 12, '8', NULL);
191
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (7, 1, 15, '3', NULL);
192
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (8, 10, 4, '4', NULL);
193
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (9, 14, 5, '1', NULL);
194
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (10, 13, 9, '2', NULL);
195
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (11, 15, 7, '5', NULL);
196
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (12, 4, 14, '4', NULL);
197
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (13, 12, 13, '1', NULL);
198
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (14, 13, 14, '2', NULL);
199
+ INSERT INTO Order_Items (`order_item_id`, `order_id`, `product_id`, `product_quantity`, `other_order_item_details`) VALUES (15, 13, 14, '6', NULL);
200
+
201
+ CREATE TABLE `Invoice_Line_Items` (
202
+ `order_item_id` INTEGER NOT NULL,
203
+ `invoice_number` INTEGER NOT NULL,
204
+ `product_id` INTEGER NOT NULL,
205
+ `product_title` VARCHAR(80),
206
+ `product_quantity` VARCHAR(50),
207
+ `product_price` DECIMAL(19,4),
208
+ `derived_product_cost` DECIMAL(19,4),
209
+ `derived_vat_payable` DECIMAL(19,4),
210
+ `derived_total_cost` DECIMAL(19,4),
211
+ FOREIGN KEY (`order_item_id` ) REFERENCES `Order_Items`(`order_item_id` ),
212
+ FOREIGN KEY (`invoice_number` ) REFERENCES `Invoices`(`invoice_number` ),
213
+ FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` )
214
+ );
215
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (14, 9, 5, 'prod_name', '4', '742.3700', '191.1100', NULL, '69.8200');
216
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (3, 9, 15, 'prod_name', '1', '814.8700', '176.2900', NULL, '59.5600');
217
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (4, 10, 15, 'prod_name', '8', '943.0700', '73.1400', NULL, '59.9300');
218
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (6, 15, 14, 'prod_name', '2', '749.6000', '197.0600', NULL, '82.7700');
219
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (8, 11, 10, 'prod_name', '2', '942.9900', '88.4300', NULL, '86.5600');
220
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (9, 11, 9, 'prod_name', '6', '486.6900', '64.6700', NULL, '83.4000');
221
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (8, 14, 3, 'prod_name', '3', '995.3400', '28.1800', NULL, '58.2400');
222
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (11, 1, 6, 'prod_name', '9', '429.0500', '254.0800', NULL, '79.4800');
223
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (15, 9, 3, 'prod_name', '4', '727.4100', '66.0000', NULL, '53.5300');
224
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (7, 9, 14, 'prod_name', '9', '559.9500', '89.1600', NULL, '45.6600');
225
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (5, 7, 8, 'prod_name', '6', '787.6100', '150.0400', NULL, '51.2700');
226
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (10, 10, 1, 'prod_name', '9', '781.4600', '256.8400', NULL, '71.2200');
227
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (10, 14, 11, 'prod_name', '7', '884.4000', '249.1900', NULL, '78.2600');
228
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (10, 5, 11, 'prod_name', '5', '556.3600', '295.2600', NULL, '61.0000');
229
+ INSERT INTO Invoice_Line_Items (`order_item_id`, `invoice_number`, `product_id`, `product_title`, `product_quantity`, `product_price`, `derived_product_cost`, `derived_vat_payable`, `derived_total_cost`) VALUES (8, 12, 6, 'prod_name', '8', '597.2800', '188.7100', NULL, '98.7700');
database/department_management/schema.sql ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys=ON;
2
+ BEGIN TRANSACTION;
3
+ CREATE TABLE IF NOT EXISTS "department" (
4
+ "Department_ID" int,
5
+ "Name" text,
6
+ "Creation" text,
7
+ "Ranking" int,
8
+ "Budget_in_Billions" real,
9
+ "Num_Employees" real,
10
+ PRIMARY KEY ("Department_ID")
11
+ );
12
+ INSERT INTO department VALUES(1,'State','1789','1',9.9600000000000008526,30265.999999999999999);
13
+ INSERT INTO department VALUES(2,'Treasury','1789','2',11.099999999999999644,115896.99999999999999);
14
+ INSERT INTO department VALUES(3,'Defense','1947','3',439.30000000000001135,3000000.0);
15
+ INSERT INTO department VALUES(4,'Justice','1870','4',23.399999999999998578,112556.99999999999999);
16
+ INSERT INTO department VALUES(5,'Interior','1849','5',10.699999999999999289,71436.000000000000002);
17
+ INSERT INTO department VALUES(6,'Agriculture','1889','6',77.599999999999994316,109831.99999999999999);
18
+ INSERT INTO department VALUES(7,'Commerce','1903','7',6.2000000000000001776,35999.999999999999999);
19
+ INSERT INTO department VALUES(8,'Labor','1913','8',59.700000000000002843,17346.999999999999999);
20
+ INSERT INTO department VALUES(9,'Health and Human Services','1953','9',543.20000000000004548,66999.999999999999998);
21
+ INSERT INTO department VALUES(10,'Housing and Urban Development','1965','10',46.200000000000002843,10599.999999999999999);
22
+ INSERT INTO department VALUES(11,'Transportation','1966','11',58.000000000000000001,58621.999999999999998);
23
+ INSERT INTO department VALUES(12,'Energy','1977','12',21.5,116099.99999999999999);
24
+ INSERT INTO department VALUES(13,'Education','1979','13',62.799999999999997156,4487.0000000000000001);
25
+ INSERT INTO department VALUES(14,'Veterans Affairs','1989','14',73.200000000000002842,234999.99999999999999);
26
+ INSERT INTO department VALUES(15,'Homeland Security','2002','15',44.600000000000001422,207999.99999999999999);
27
+ CREATE TABLE IF NOT EXISTS "head" (
28
+ "head_ID" int,
29
+ "name" text,
30
+ "born_state" text,
31
+ "age" real,
32
+ PRIMARY KEY ("head_ID")
33
+ );
34
+ INSERT INTO head VALUES(1,'Tiger Woods','Alabama',66.999999999999999998);
35
+ INSERT INTO head VALUES(2,'Sergio García','California',68.000000000000000001);
36
+ INSERT INTO head VALUES(3,'K. J. Choi','Alabama',69.0);
37
+ INSERT INTO head VALUES(4,'Dudley Hart','California',51.999999999999999998);
38
+ INSERT INTO head VALUES(5,'Jeff Maggert','Delaware',53.000000000000000001);
39
+ INSERT INTO head VALUES(6,'Billy Mayfair','California',69.0);
40
+ INSERT INTO head VALUES(7,'Stewart Cink','Florida',50.0);
41
+ INSERT INTO head VALUES(8,'Nick Faldo','California',55.999999999999999999);
42
+ INSERT INTO head VALUES(9,'Pádraig Harrington','Connecticut',43.000000000000000001);
43
+ INSERT INTO head VALUES(10,'Franklin Langham','Connecticut',66.999999999999999998);
44
+ CREATE TABLE IF NOT EXISTS "management" (
45
+ "department_ID" int,
46
+ "head_ID" int,
47
+ "temporary_acting" text,
48
+ PRIMARY KEY ("Department_ID","head_ID"),
49
+ FOREIGN KEY ("Department_ID") REFERENCES `department`("Department_ID"),
50
+ FOREIGN KEY ("head_ID") REFERENCES `head`("head_ID")
51
+ );
52
+ INSERT INTO management VALUES(2,5,'Yes');
53
+ INSERT INTO management VALUES(15,4,'Yes');
54
+ INSERT INTO management VALUES(2,6,'Yes');
55
+ INSERT INTO management VALUES(7,3,'No');
56
+ INSERT INTO management VALUES(11,10,'No');
57
+ COMMIT;
58
+
database/dog_kennels/dog_kennels.sqlite ADDED
Binary file (49.2 kB). View file
 
database/dog_kennels/schema.sql ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Breeds` (
3
+ `breed_code` VARCHAR(10) PRIMARY KEY ,
4
+ `breed_name` VARCHAR(80)
5
+ );
6
+ CREATE TABLE `Charges` (
7
+ `charge_id` INTEGER PRIMARY KEY ,
8
+ `charge_type` VARCHAR(10),
9
+ `charge_amount` DECIMAL(19,4)
10
+ );
11
+ INSERT INTO Breeds (`breed_code`, `breed_name`) VALUES ('ESK', 'Eskimo');
12
+ INSERT INTO Breeds (`breed_code`, `breed_name`) VALUES ('HUS', 'Husky');
13
+ INSERT INTO Breeds (`breed_code`, `breed_name`) VALUES ('BUL', 'Bulldog');
14
+ INSERT INTO Charges (`charge_id`, `charge_type`, `charge_amount`) VALUES (1, 'Daily Accommodation', '98.0000');
15
+ INSERT INTO Charges (`charge_id`, `charge_type`, `charge_amount`) VALUES (2, 'Drugs', '322.0000');
16
+ INSERT INTO Charges (`charge_id`, `charge_type`, `charge_amount`) VALUES (3, 'Health Check', '640.0000');
17
+
18
+ CREATE TABLE `Sizes` (
19
+ `size_code` VARCHAR(10) PRIMARY KEY ,
20
+ `size_description` VARCHAR(80)
21
+ );
22
+
23
+ INSERT INTO Sizes (`size_code`, `size_description`) VALUES ('SML', 'Small');
24
+ INSERT INTO Sizes (`size_code`, `size_description`) VALUES ('MED', 'Medium');
25
+ INSERT INTO Sizes (`size_code`, `size_description`) VALUES ('LGE', 'Large');
26
+
27
+
28
+ CREATE TABLE `Treatment_Types` (
29
+ `treatment_type_code` VARCHAR(10) PRIMARY KEY ,
30
+ `treatment_type_description` VARCHAR(80)
31
+ );
32
+ INSERT INTO Treatment_Types (`treatment_type_code`, `treatment_type_description`) VALUES ('EXAM', 'Physical examination');
33
+ INSERT INTO Treatment_Types (`treatment_type_code`, `treatment_type_description`) VALUES ('VAC', 'Vaccination');
34
+ INSERT INTO Treatment_Types (`treatment_type_code`, `treatment_type_description`) VALUES ('WALK', 'Take for a Walk');
35
+
36
+ CREATE TABLE `Owners` (
37
+ `owner_id` INTEGER PRIMARY KEY ,
38
+ `first_name` VARCHAR(50),
39
+ `last_name` VARCHAR(50),
40
+ `street` VARCHAR(50),
41
+ `city` VARCHAR(50),
42
+ `state` VARCHAR(20),
43
+ `zip_code` VARCHAR(20),
44
+ `email_address` VARCHAR(50),
45
+ `home_phone` VARCHAR(20),
46
+ `cell_number` VARCHAR(20)
47
+ );
48
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (1, 'Nora', 'Haley', '0647 Hintz Village Apt. 024', 'Lake Tia', 'Wisconsin', '93165', 'lynn81@example.org', '1-682-845-0116x63235', '478.978.0729');
49
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (2, 'Melisa', 'DuBuque', '1204 Mae Highway Apt. 107', 'Port Reannamouth', 'Virginia', '45244', 'ykris@example.com', '(799)563-0260x454', '(722)768-5439x484');
50
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (3, 'Jaclyn', 'Stoltenberg', '2635 Caitlyn Plains', 'Barrettburgh', 'Vermont', '02647', 'hudson.favian@example.com', '916.976.9480x13851', '481-483-9083x37986');
51
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (4, 'Tre', 'Hamill', '692 Jaskolski Forges', 'Brakusfurt', 'Florida', '87304', 'marks.gail@example.org', '1-332-849-1908', '739-136-7202');
52
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (5, 'Johann', 'Fisher', '68118 Daniel Row', 'Lake Valentin', 'NorthDakota', '61019', 'zboncak.madonna@example.net', '(544)034-1670', '1-626-264-7659x1697');
53
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (6, 'Kade', 'Rippin', '51934 Treutel Harbor', 'Lake Carleyborough', 'Arizona', '25609', 'margaretta.runte@example.net', '318-052-6573', '+70(4)9217952551');
54
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (7, 'Emelie', 'Mertz', '2417 Keara Stravenue Apt. 146', 'Lake Jennyferfort', 'NewYork', '00589', 'angeline99@example.com', '(058)997-7627', '121.381.3316x6535');
55
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (8, 'Rolando', 'Prohaska', '57382 Yost Ridges', 'South Afton', 'Arkansas', '86010', 'kturner@example.net', '01802479758', '(783)271-6744x4507');
56
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (9, 'Adelle', 'Ondricka', '9212 Rosenbaum Lights', 'East Hillardberg', 'Washington', '92406', 'fschoen@example.net', '066.264.7885', '+00(2)4323592985');
57
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (10, 'Lorenz', 'Nicolas', '59509 Mellie Mountain', 'New Margaretteborough', 'SouthDakota', '78297', 'ymaggio@example.com', '085.557.0379x84348', '559.874.3011x989');
58
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (11, 'Gay', 'Feil', '60352 Kayleigh Crossing Suite 700', 'Port Zackery', 'Indiana', '35747', 'pearlie18@example.com', '130-796-4589x05454', '762.589.6117x1328');
59
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (12, 'Orlando', 'Price', '89011 Kertzmann Spring Suite 642', 'East Maribelbury', 'Mississippi', '11990', 'christy49@example.org', '363.948.1090', '1-739-421-2225x38148');
60
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (13, 'Cindy', 'Schmitt', '6950 Katherine Forges Apt. 630', 'Beerton', 'NorthDakota', '36871', 'wpfeffer@example.net', '(094)747-5094x8134', '633.455.3045x85484');
61
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (14, 'Rachelle', 'Funk', '15828 Spencer Extensions', 'West Leonard', 'Maryland', '22731', 'edythe62@example.org', '1-346-655-5842x768', '(257)399-3116');
62
+ INSERT INTO Owners (`owner_id`, `first_name`, `last_name`, `street`, `city`, `state`, `zip_code`, `email_address`, `home_phone`, `cell_number`) VALUES (15, 'Heather', 'Hauck', '1858 Jan Park', 'South Daisyfurt', 'Pennsylvania', '22693', 'ybergstrom@example.com', '893-862-5295x61709', '341.667.8085');
63
+
64
+
65
+ CREATE TABLE `Dogs` (
66
+ `dog_id` INTEGER PRIMARY KEY ,
67
+ `owner_id` INTEGER NOT NULL,
68
+ `abandoned_yn` VARCHAR(1),
69
+ `breed_code` VARCHAR(10) NOT NULL,
70
+ `size_code` VARCHAR(10) NOT NULL,
71
+ `name` VARCHAR(50),
72
+ `age` VARCHAR(20),
73
+ `date_of_birth` DATETIME,
74
+ `gender` VARCHAR(1),
75
+ `weight` VARCHAR(20),
76
+ `date_arrived` DATETIME,
77
+ `date_adopted` DATETIME,
78
+ `date_departed` DATETIME,
79
+ FOREIGN KEY (`breed_code` ) REFERENCES `Breeds`(`breed_code` ),
80
+ FOREIGN KEY (`size_code` ) REFERENCES `Sizes`(`size_code` ),
81
+ FOREIGN KEY (`owner_id` ) REFERENCES `Owners`(`owner_id` ),
82
+ FOREIGN KEY (`owner_id` ) REFERENCES `Owners`(`owner_id` )
83
+ );
84
+
85
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (1, 3, '1', 'ESK', 'LGE', 'Kacey', '6', '2012-01-27 05:11:53', '1', '7.57', '2017-09-08 20:10:13', '2018-03-06 16:32:11', '2018-03-25 06:58:44');
86
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (2, 11, '0', 'BUL', 'LGE', 'Hipolito', '9', '2013-02-13 05:15:21', '0', '1.72', '2017-12-22 05:02:02', '2018-03-25 08:12:51', '2018-03-25 02:11:32');
87
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (3, 1, '0', 'BUL', 'MED', 'Mavis', '8', '2008-05-19 15:54:49', '1', '8.04', '2017-06-25 10:14:05', '2018-03-07 21:45:43', '2018-03-25 10:25:46');
88
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (4, 14, '0', 'ESK', 'LGE', 'Houston', '5', '2008-10-09 22:38:53', '0', '2.18', '2017-04-20 00:58:55', '2018-03-18 15:12:50', '2018-03-24 19:12:22');
89
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (5, 7, '0', 'BUL', 'MED', 'Jeffrey', '4', '2018-03-17 04:05:12', '0', '1.39', '2017-10-25 00:55:34', '2018-02-27 11:54:35', '2018-03-25 04:50:22');
90
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (6, 5, '0', 'HUS', 'MED', 'Merritt', '9', '2015-02-26 21:31:22', '1', '9.8', '2017-04-15 09:25:31', '2018-03-08 15:03:00', '2018-03-25 13:07:04');
91
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (7, 3, '0', 'BUL', 'MED', 'Narciso', '2', '2017-09-19 05:39:09', '1', '9.48', '2017-05-06 08:03:52', '2018-02-27 00:27:57', '2018-03-25 06:29:10');
92
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (8, 14, '0', 'ESK', 'SML', 'George', '2', '2013-02-20 14:50:56', '0', '8.95', '2017-10-16 20:06:21', '2018-03-23 16:02:04', '2018-03-25 02:47:40');
93
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (9, 2, '0', 'BUL', 'MED', 'Bessie', '4', '2012-05-31 08:01:36', '1', '3.52', '2018-01-17 11:44:16', '2018-02-25 23:45:30', '2018-03-25 06:46:07');
94
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (10, 6, '0', 'HUS', 'MED', 'Troy', '9', '2012-07-11 17:15:10', '0', '8.96', '2017-12-29 06:08:26', '2018-03-18 07:47:40', '2018-03-25 04:42:14');
95
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (11, 13, '0', 'BUL', 'LGE', 'Betty', '3', '2012-10-14 14:44:37', '0', '8.16', '2017-07-25 15:19:07', '2018-03-14 08:05:18', '2018-03-25 15:05:16');
96
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (12, 12, '0', 'HUS', 'MED', 'Holden', '8', '2009-04-12 06:02:48', '0', '6.92', '2017-10-24 04:45:13', '2018-03-05 06:05:23', '2018-03-25 14:15:41');
97
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (13, 8, '0', 'HUS', 'SML', 'Jesus', '2', '2012-05-03 21:42:25', '0', '5.16', '2018-01-02 03:15:29', '2018-03-21 10:41:18', '2018-03-25 05:07:47');
98
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (14, 14, '1', 'ESK', 'MED', 'Lyric', '4', '2010-11-11 07:11:53', '0', '4.36', '2017-06-18 19:45:38', '2018-03-13 12:47:15', '2018-03-24 23:48:59');
99
+ INSERT INTO Dogs (`dog_id`, `owner_id`, `abandoned_yn`, `breed_code`, `size_code`, `name`, `age`, `date_of_birth`, `gender`, `weight`, `date_arrived`, `date_adopted`, `date_departed`) VALUES (15, 10, '1', 'BUL', 'MED', 'Evangeline', '1', '2008-05-30 12:51:34', '1', '4.01', '2017-12-29 23:24:13', '2018-03-10 15:06:43', '2018-03-24 19:36:59');
100
+
101
+
102
+ CREATE TABLE `Professionals` (
103
+ `professional_id` INTEGER PRIMARY KEY ,
104
+ `role_code` VARCHAR(10) NOT NULL,
105
+ `first_name` VARCHAR(50),
106
+ `street` VARCHAR(50),
107
+ `city` VARCHAR(50),
108
+ `state` VARCHAR(20),
109
+ `zip_code` VARCHAR(20),
110
+ `last_name` VARCHAR(50),
111
+ `email_address` VARCHAR(50),
112
+ `home_phone` VARCHAR(20),
113
+ `cell_number` VARCHAR(20)
114
+ );
115
+
116
+ CREATE TABLE `Treatments` (
117
+ `treatment_id` INTEGER PRIMARY KEY ,
118
+ `dog_id` INTEGER NOT NULL,
119
+ `professional_id` INTEGER NOT NULL,
120
+ `treatment_type_code` VARCHAR(10) NOT NULL,
121
+ `date_of_treatment` DATETIME,
122
+ `cost_of_treatment` DECIMAL(19,4),
123
+ FOREIGN KEY (`treatment_type_code` ) REFERENCES `Treatment_Types`(`treatment_type_code` ),
124
+ FOREIGN KEY (`professional_id` ) REFERENCES `Professionals`(`professional_id` ),
125
+ FOREIGN KEY (`dog_id` ) REFERENCES `Dogs`(`dog_id` )
126
+ );
127
+
128
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (1, 'Employee', 'Taryn', '6915 Oberbrunner Point Suite 491
129
+ Gleasonville, LA ', 'West Heidi', 'Indiana', '06646', 'Braun', 'deanna.schuster@example.com', '+71(6)2898266914', '(275)939-2435x80863');
130
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (2, 'Employee', 'Jayson', '88665 Terence Lodge Apt. 904
131
+ Corneliusfort, NC 194', 'North Odellfurt', 'Connecticut', '43129', 'Ullrich', 'lucile.shanahan@example.org', '+02(1)0259033559', '889-940-2676');
132
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (3, 'Employee', 'Olaf', '68589 Bradly Manor
133
+ New Audrey, IN 91497', 'Jaceton', 'Wisconsin', '77129', 'Watsica', 'uboehm@example.org', '325-155-0801x7005', '(369)908-7311x065');
134
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (4, 'Veterenarian', 'Vernice', '72532 Hane Course
135
+ Lake Berylland, ND 95283', 'Domenickton', 'Mississippi', '02281', 'Tillman', 'lourdes.lowe@example.net', '312.216.3352', '00230569697');
136
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (5, 'Veterenarian', 'Danny', '188 VonRueden Tunnel Suite 630
137
+ North Macibury, NV ', 'New Laurytown', 'Hawaii', '84515', 'Considine', 'mekhi.little@example.org', '1-609-566-2752x25197', '011.193.9081x3186');
138
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (6, 'Veterenarian', 'Ruben', '17286 Waters Green
139
+ East Bernadinefort, CA 89573', 'Baileymouth', 'NewMexico', '52476', 'O''Reilly', 'jacynthe.mclaughlin@example.net', '+43(5)1132733868', '139-321-7313');
140
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (7, 'Veterenarian', 'Velva', '44234 Marvin Shoals Suite 659
141
+ North Frances, AL 23', 'McLaughlinfort', 'NorthCarolina', '67980', 'Hayes', 'lambert62@example.org', '022.529.0550x1319', '499-434-0215x1628');
142
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (8, 'Employee', 'Karley', '36895 Eli Ferry
143
+ Port Marcelle, FL 45712', 'Kirastad', 'Indiana', '33020', 'Hyatt', 'goyette.roosevelt@example.net', '891.475.2256', '328.842.3792');
144
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (9, 'Veterenarian', 'Monte', '07073 Brenna Ways Suite 089
145
+ Lowehaven, KY 93275-96', 'South Rockyport', 'SouthCarolina', '80775', 'Kshlerin', 'schneider.kathryne@example.org', '320-508-6023', '962-983-8109x3509');
146
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (10, 'Employee', 'Domenica', '7284 Torphy Flats Apt. 610
147
+ Diannaburgh, SC 78560', 'New Maryjane', 'California', '54312', 'Jacobs', 'jerrod.bahringer@example.org', '(230)338-3342x585', '461-801-2600');
148
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (11, 'Employee', 'Brady', '09615 McKenzie Stravenue Apt. 128
149
+ West Elliottview', 'Raynorfort', 'Alabama', '07412', 'Pouros', 'west.eula@example.net', '(920)304-4499x59146', '609-405-2990');
150
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (12, 'Veterenarian', 'Winfield', '92912 Langworth Valleys Apt. 743
151
+ Thompsonborough, ', 'Juddton', 'Utah', '34041', 'Christiansen', 'marquardt.furman@example.org', '246-951-0080x76716', '1-181-670-9466');
152
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (13, 'Veterenarian', 'Ericka', '7783 Abraham Alley
153
+ Port Madelynhaven, KY 59172-273', 'Borisside', 'Wyoming', '17902', 'Murazik', 'delphine29@example.com', '346.594.3739', '880-659-7577x736');
154
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (14, 'Employee', 'Sigurd', '390 Bryce Drive
155
+ North Dock, LA 65357-7228', 'East Ila', 'Connecticut', '41215', 'Frami', 'cole.margarita@example.org', '971.048.3763x9404', '1-185-137-1945x409');
156
+ INSERT INTO Professionals (`professional_id`, `role_code`, `first_name`, `street`, `city`, `state`, `zip_code`, `last_name`, `email_address`, `home_phone`, `cell_number`) VALUES (15, 'Employee', 'Lesly', '63949 Keeling Landing Apt. 502
157
+ Johnsview, SD 06780', 'North Adelberttown', 'Montana', '98844', 'Walter', 'jeichmann@example.com', '1-138-287-3775', '1-258-285-4707x8020');
158
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (1, 14, 9, 'WALK', '2018-03-19 04:39:54', '567.0000');
159
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (2, 4, 10, 'VAC', '2018-03-15 20:25:34', '147.0000');
160
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (3, 14, 4, 'EXAM', '2018-03-08 05:26:23', '429.0000');
161
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (4, 2, 8, 'VAC', '2018-03-01 04:14:46', '266.0000');
162
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (5, 12, 14, 'VAC', '2018-03-23 13:52:10', '668.0000');
163
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (6, 10, 4, 'EXAM', '2018-03-11 04:23:15', '313.0000');
164
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (7, 15, 14, 'EXAM', '2018-03-10 11:45:58', '852.0000');
165
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (8, 2, 6, 'EXAM', '2018-03-24 22:25:58', '407.0000');
166
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (9, 14, 10, 'WALK', '2018-03-14 19:10:40', '139.0000');
167
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (10, 10, 7, 'WALK', '2018-02-28 17:09:43', '681.0000');
168
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (11, 15, 5, 'VAC', '2018-03-13 12:22:58', '514.0000');
169
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (12, 13, 9, 'EXAM', '2018-03-16 10:27:36', '428.0000');
170
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (13, 7, 8, 'VAC', '2018-02-26 09:08:53', '945.0000');
171
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (14, 10, 9, 'WALK', '2018-03-04 20:33:43', '349.0000');
172
+ INSERT INTO Treatments (`treatment_id`, `dog_id`, `professional_id`, `treatment_type_code`, `date_of_treatment`, `cost_of_treatment`) VALUES (15, 1, 6, 'WALK', '2018-03-15 19:10:02', '656.0000');
database/farm/schema.sql ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "city" (
5
+ "City_ID" int,
6
+ "Official_Name" text,
7
+ "Status" text,
8
+ "Area_km_2" real,
9
+ "Population" real,
10
+ "Census_Ranking" text,
11
+ PRIMARY KEY ("City_ID")
12
+ );
13
+
14
+ CREATE TABLE "farm" (
15
+ "Farm_ID" int,
16
+ "Year" int,
17
+ "Total_Horses" real,
18
+ "Working_Horses" real,
19
+ "Total_Cattle" real,
20
+ "Oxen" real,
21
+ "Bulls" real,
22
+ "Cows" real,
23
+ "Pigs" real,
24
+ "Sheep_and_Goats" real,
25
+ PRIMARY KEY ("Farm_ID")
26
+ );
27
+
28
+ CREATE TABLE "farm_competition" (
29
+ "Competition_ID" int,
30
+ "Year" int,
31
+ "Theme" text,
32
+ "Host_city_ID" int,
33
+ "Hosts" text,
34
+ PRIMARY KEY ("Competition_ID"),
35
+ FOREIGN KEY (`Host_city_ID`) REFERENCES `city`(`City_ID`)
36
+ );
37
+
38
+
39
+ CREATE TABLE "competition_record" (
40
+ "Competition_ID" int,
41
+ "Farm_ID" int,
42
+ "Rank" int,
43
+ PRIMARY KEY ("Competition_ID","Farm_ID"),
44
+ FOREIGN KEY (`Competition_ID`) REFERENCES `farm_competition`(`Competition_ID`),
45
+ FOREIGN KEY (`Farm_ID`) REFERENCES `farm`(`Farm_ID`)
46
+ );
47
+
48
+
49
+
50
+ INSERT INTO "city" VALUES (1,"Grand Falls/Grand-Sault","Town","18.06","5706","636 of 5008");
51
+ INSERT INTO "city" VALUES (2,"Perth-Andover","Village","8.89","1778","1442 of 5,008");
52
+ INSERT INTO "city" VALUES (3,"Plaster Rock","Village","3.09","1135","1936 of 5,008");
53
+ INSERT INTO "city" VALUES (4,"Drummond","Village","8.91","775","2418 of 5008");
54
+ INSERT INTO "city" VALUES (5,"Aroostook","Village","2.24","351","3460 of 5008");
55
+
56
+
57
+ INSERT INTO "farm" VALUES (1,"1927","5056.5","3900.1","8374.5","805.5","31.6","3852.1","4412.4","7956.3");
58
+ INSERT INTO "farm" VALUES (2,"1928","5486.9","4090.5","8604.8","895.3","32.8","3987.0","6962.9","8112.2");
59
+ INSERT INTO "farm" VALUES (3,"1929","5607.5","4198.8","7611.0","593.7","26.9","3873.0","4161.2","7030.8");
60
+ INSERT INTO "farm" VALUES (4,"1930","5308.2","3721.6","6274.1","254.8","49.6","3471.6","3171.8","4533.4");
61
+ INSERT INTO "farm" VALUES (5,"1931","4781.3","3593.7","6189.5","113.8","40.0","3377.0","3373.3","3364.8");
62
+ INSERT INTO "farm" VALUES (6,"1932","3658.9","3711.6","5006.7","105.2","71.6","2739.5","2623.7","2109.5");
63
+ INSERT INTO "farm" VALUES (7,"1933","2604.8","3711.2","4446.3","116.9","37.6","2407.2","2089.2","2004.7");
64
+ INSERT INTO "farm" VALUES (8,"1934","2546.9","2197.3","5277.5","156.5","46.7","2518.0","4236.7","2197.1");
65
+
66
+
67
+ INSERT INTO "farm_competition" VALUES (1,"2013","Carnival M is back!",1,"Miley Cyrus Jared Leto and Karen Mok");
68
+ INSERT INTO "farm_competition" VALUES (2,"2006","Codehunters",2,"Leehom Wang and Kelly Rowland");
69
+ INSERT INTO "farm_competition" VALUES (3,"2005","MTV Asia Aid",3,"Alicia Keys");
70
+ INSERT INTO "farm_competition" VALUES (4,"2004","Valentine's Day",4,"Vanness Wu and Michelle Branch");
71
+ INSERT INTO "farm_competition" VALUES (5,"2003","MTV Cube",5,"Shaggy and Coco Lee");
72
+ INSERT INTO "farm_competition" VALUES (6,"2002","Aliens",5,"Mandy Moore and Ronan Keating");
73
+
74
+
75
+ INSERT INTO "competition_record" VALUES (1,8,1);
76
+ INSERT INTO "competition_record" VALUES (1,2,2);
77
+ INSERT INTO "competition_record" VALUES (1,3,3);
78
+ INSERT INTO "competition_record" VALUES (2,1,3);
79
+ INSERT INTO "competition_record" VALUES (2,4,1);
80
+ INSERT INTO "competition_record" VALUES (2,3,2);
81
+ INSERT INTO "competition_record" VALUES (3,7,1);
82
+ INSERT INTO "competition_record" VALUES (3,1,3);
83
+ INSERT INTO "competition_record" VALUES (4,3,2);
84
+ INSERT INTO "competition_record" VALUES (4,1,4);
85
+ INSERT INTO "competition_record" VALUES (5,5,1);
86
+ INSERT INTO "competition_record" VALUES (5,3,2);
database/flight_1/flight_1.sqlite ADDED
Binary file (36.9 kB). View file
 
database/flight_4/flight_4.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4885150ab97173411aee5b73009ac2a28ce1748ce1218331608b939d9d54330e
3
+ size 3129344
database/formula_1/data_csv/lapTimes.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caac89452bba84091fd727c1ed3c7fd0ab798860f68f4ffdccb7eaa3b163ddb5
3
+ size 12118621
database/formula_1/data_csv/races.csv ADDED
The diff for this file is too large to render. See raw diff
 
database/formula_1/data_csv/seasons.csv ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ year,url
2
+ 2009,http://en.wikipedia.org/wiki/2009_Formula_One_season
3
+ 2008,http://en.wikipedia.org/wiki/2008_Formula_One_season
4
+ 2007,http://en.wikipedia.org/wiki/2007_Formula_One_season
5
+ 2006,http://en.wikipedia.org/wiki/2006_Formula_One_season
6
+ 2005,http://en.wikipedia.org/wiki/2005_Formula_One_season
7
+ 2004,http://en.wikipedia.org/wiki/2004_Formula_One_season
8
+ 2003,http://en.wikipedia.org/wiki/2003_Formula_One_season
9
+ 2002,http://en.wikipedia.org/wiki/2002_Formula_One_season
10
+ 2001,http://en.wikipedia.org/wiki/2001_Formula_One_season
11
+ 2000,http://en.wikipedia.org/wiki/2000_Formula_One_season
12
+ 1999,http://en.wikipedia.org/wiki/1999_Formula_One_season
13
+ 1998,http://en.wikipedia.org/wiki/1998_Formula_One_season
14
+ 1997,http://en.wikipedia.org/wiki/1997_Formula_One_season
15
+ 1996,http://en.wikipedia.org/wiki/1996_Formula_One_season
16
+ 1995,http://en.wikipedia.org/wiki/1995_Formula_One_season
17
+ 1994,http://en.wikipedia.org/wiki/1994_Formula_One_season
18
+ 1993,http://en.wikipedia.org/wiki/1993_Formula_One_season
19
+ 1992,http://en.wikipedia.org/wiki/1992_Formula_One_season
20
+ 1991,http://en.wikipedia.org/wiki/1991_Formula_One_season
21
+ 1990,http://en.wikipedia.org/wiki/1990_Formula_One_season
22
+ 2010,http://en.wikipedia.org/wiki/2010_Formula_One_season
23
+ 1989,http://en.wikipedia.org/wiki/1989_Formula_One_season
24
+ 1988,http://en.wikipedia.org/wiki/1988_Formula_One_season
25
+ 1987,http://en.wikipedia.org/wiki/1987_Formula_One_season
26
+ 1986,http://en.wikipedia.org/wiki/1986_Formula_One_season
27
+ 1985,http://en.wikipedia.org/wiki/1985_Formula_One_season
28
+ 1984,http://en.wikipedia.org/wiki/1984_Formula_One_season
29
+ 1983,http://en.wikipedia.org/wiki/1983_Formula_One_season
30
+ 1982,http://en.wikipedia.org/wiki/1982_Formula_One_season
31
+ 1981,http://en.wikipedia.org/wiki/1981_Formula_One_season
32
+ 1980,http://en.wikipedia.org/wiki/1980_Formula_One_season
33
+ 1979,http://en.wikipedia.org/wiki/1979_Formula_One_season
34
+ 1978,http://en.wikipedia.org/wiki/1978_Formula_One_season
35
+ 1977,http://en.wikipedia.org/wiki/1977_Formula_One_season
36
+ 1976,http://en.wikipedia.org/wiki/1976_Formula_One_season
37
+ 1975,http://en.wikipedia.org/wiki/1975_Formula_One_season
38
+ 1974,http://en.wikipedia.org/wiki/1974_Formula_One_season
39
+ 1973,http://en.wikipedia.org/wiki/1973_Formula_One_season
40
+ 1972,http://en.wikipedia.org/wiki/1972_Formula_One_season
41
+ 1971,http://en.wikipedia.org/wiki/1971_Formula_One_season
42
+ 1970,http://en.wikipedia.org/wiki/1970_Formula_One_season
43
+ 1969,http://en.wikipedia.org/wiki/1969_Formula_One_season
44
+ 1968,http://en.wikipedia.org/wiki/1968_Formula_One_season
45
+ 1967,http://en.wikipedia.org/wiki/1967_Formula_One_season
46
+ 1966,http://en.wikipedia.org/wiki/1966_Formula_One_season
47
+ 1965,http://en.wikipedia.org/wiki/1965_Formula_One_season
48
+ 1964,http://en.wikipedia.org/wiki/1964_Formula_One_season
49
+ 1963,http://en.wikipedia.org/wiki/1963_Formula_One_season
50
+ 1962,http://en.wikipedia.org/wiki/1962_Formula_One_season
51
+ 1961,http://en.wikipedia.org/wiki/1961_Formula_One_season
52
+ 1960,http://en.wikipedia.org/wiki/1960_Formula_One_season
53
+ 1959,http://en.wikipedia.org/wiki/1959_Formula_One_season
54
+ 1958,http://en.wikipedia.org/wiki/1958_Formula_One_season
55
+ 1957,http://en.wikipedia.org/wiki/1957_Formula_One_season
56
+ 1956,http://en.wikipedia.org/wiki/1956_Formula_One_season
57
+ 1955,http://en.wikipedia.org/wiki/1955_Formula_One_season
58
+ 1954,http://en.wikipedia.org/wiki/1954_Formula_One_season
59
+ 1953,http://en.wikipedia.org/wiki/1953_Formula_One_season
60
+ 1952,http://en.wikipedia.org/wiki/1952_Formula_One_season
61
+ 1951,http://en.wikipedia.org/wiki/1951_Formula_One_season
62
+ 1950,http://en.wikipedia.org/wiki/1950_Formula_One_season
63
+ 2011,http://en.wikipedia.org/wiki/2011_Formula_One_season
64
+ 2012,http://en.wikipedia.org/wiki/2012_Formula_One_season
65
+ 2013,http://en.wikipedia.org/wiki/2013_Formula_One_season
66
+ 2014,http://en.wikipedia.org/wiki/2014_Formula_One_season
67
+ 2015,http://en.wikipedia.org/wiki/2015_Formula_One_season
68
+ 2016,https://en.wikipedia.org/wiki/2016_Formula_One_season
69
+ 2017,https://en.wikipedia.org/wiki/2017_Formula_One_season
70
+ 2018,http://en.wikipedia.org/wiki/2018_FIA_Formula_One_World_Championship
database/formula_1/formula_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb6dad97c0a4da22f01bdf817a77fe8f6b6559554661ff0120b40cb81b8c3b68
3
+ size 2940928
database/game_injury/game_injury.sqlite ADDED
Binary file (28.7 kB). View file
 
database/game_injury/schema.sql ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+
4
+ CREATE TABLE "stadium" (
5
+ "id" int,
6
+ "name" text,
7
+ "Home_Games" int,
8
+ "Average_Attendance" real,
9
+ "Total_Attendance" real,
10
+ "Capacity_Percentage" real,
11
+ primary key ("id")
12
+ );
13
+
14
+ CREATE TABLE "game" (
15
+ "stadium_id" int,
16
+ "id" int,
17
+ "Season" int,
18
+ "Date" text,
19
+ "Home_team" text,
20
+ "Away_team" text,
21
+ "Score" text,
22
+ "Competition" text,
23
+ primary key ("id"),
24
+ foreign key ("stadium_id") references `stadium`("id")
25
+ );
26
+
27
+ CREATE TABLE "injury_accident" (
28
+ "game_id" int,
29
+ "id" int,
30
+ "Player" text,
31
+ "Injury" text,
32
+ "Number_of_matches" text,
33
+ "Source" text,
34
+ primary key ("id"),
35
+ foreign key ("game_id") references `game`("id")
36
+ );
37
+
38
+
39
+ INSERT INTO "stadium" VALUES (1,"Cowboys Stadium","8","87047","696377","108.8");
40
+ INSERT INTO "stadium" VALUES (2,"FedExField","8","83172","665380","90.7");
41
+ INSERT INTO "stadium" VALUES (3,"New Meadowlands Stadium","8","79019","632156","95.8");
42
+ INSERT INTO "stadium" VALUES (4,"New Meadowlands Stadium","8","78596","628768","95.3");
43
+ INSERT INTO "stadium" VALUES (5,"Invesco Field at Mile High","8","74908","599264","98.4");
44
+ INSERT INTO "stadium" VALUES (6,"Bank of America Stadium","8","72620","580965","98.4");
45
+ INSERT INTO "stadium" VALUES (7,"M&T Bank Stadium","8","71227","569817","100.3");
46
+ INSERT INTO "stadium" VALUES (8,"Reliant Stadium","8","71080","568643","100.0");
47
+ INSERT INTO "stadium" VALUES (9,"Lambeau Field","8","70795","566362","97.1");
48
+ INSERT INTO "stadium" VALUES (10,"Louisiana Superdome","8","70038","560304","96.0");
49
+ INSERT INTO "stadium" VALUES (11,"Lincoln Financial Field","8","69144","553152","102.3");
50
+ INSERT INTO "stadium" VALUES (12,"LP Field","8","69143","553144","100.0");
51
+ INSERT INTO "stadium" VALUES (13,"Gillette Stadium","8","68756","550048","100.0");
52
+
53
+
54
+
55
+ INSERT INTO "game" VALUES (1,1,"2007","18 May 2007","Quruvchi","Pakhtakor","1–1","League");
56
+ INSERT INTO "game" VALUES (2,2,"2007","22 September 2007","Pakhtakor","Quruvchi","0–0","League");
57
+ INSERT INTO "game" VALUES (3,3,"2007","9 December 2007","Pakhtakor","Quruvchi","0–0 (7:6)","Cup");
58
+ INSERT INTO "game" VALUES (4,4,"2008","10 July 2008","Pakhtakor","Quruvchi","1–1","League");
59
+ INSERT INTO "game" VALUES (5,5,"2008","16 August 2008","Bunyodkor","Pakhtakor","1–1","League");
60
+ INSERT INTO "game" VALUES (6,6,"2008","31 October 2008","Bunyodkor","Pakhtakor","3–1","Cup");
61
+ INSERT INTO "game" VALUES (7,7,"2009","12 July 2009","Bunyodkor","Pakhtakor","2–1","League");
62
+ INSERT INTO "game" VALUES (8,8,"2009","14 October 2009","Pakhtakor","Bunyodkor","0–0","League");
63
+ INSERT INTO "game" VALUES (9,9,"2009","8 August 2009","Pakhtakor","Bunyodkor","1–0","Cup");
64
+ INSERT INTO "game" VALUES (10,10,"2010","14 March 2010","Bunyodkor","Pakhtakor","2–1","League");
65
+ INSERT INTO "game" VALUES (10,11,"2010","31 October 2010","Pakhtakor","Bunyodkor","0–0","League");
66
+ INSERT INTO "game" VALUES (10,12,"2011","7 July 2011","Pakhtakor","Bunyodkor","0–0","League");
67
+ INSERT INTO "game" VALUES (1,13,"2011","21 August 2011","Bunyodkor","Pakhtakor","2–1","League");
68
+ INSERT INTO "game" VALUES (2,14,"2012","11 March 2012","Bunyodkor","Pakhtakor","–","Supercup");
69
+ INSERT INTO "game" VALUES (3,15,"2012","26 June 2012","Bunyodkor","Pakhtakor","2–0","League");
70
+ INSERT INTO "game" VALUES (4,16,"2012","9 August 2012","Pakhtakor","Bunyodkor","1–1","League");
71
+ INSERT INTO "game" VALUES (5,17,"2012","22 August 2012","Bunyodkor","Pakhtakor","1–1","Cup");
72
+ INSERT INTO "game" VALUES (11,18,"2012","25 November 2012","Pakhtakor","Bunyodkor","1–3","Cup");
73
+ INSERT INTO "game" VALUES (12,19,"2013","30 June 2013","Pakhtakor","Bunyodkor","0–2","League");
74
+ INSERT INTO "game" VALUES (7,20,"2013","8 August 2013","Bunyodkor","Pakhtakor","1–2","League");
75
+
76
+ INSERT INTO "injury_accident" VALUES (1,1,"Davide Santon","Clean-up surgery on his right knee","12","inter.it");
77
+ INSERT INTO "injury_accident" VALUES (2,2,"Maicon","Knee problem","2","inter.it");
78
+ INSERT INTO "injury_accident" VALUES (3,3,"Dejan Stanković","Hamstring muscle strain in his left thigh","2","inter.it");
79
+ INSERT INTO "injury_accident" VALUES (4,4,"Wesley Sneijder","Foot injury","1","inter.it");
80
+ INSERT INTO "injury_accident" VALUES (5,5,"Diego Milito","Slight thigh strain in right leg","1","inter.it");
81
+ INSERT INTO "injury_accident" VALUES (5,6,"Javier Zanetti","Post-traumatic pneumothrorax","4","inter.it");
82
+ INSERT INTO "injury_accident" VALUES (6,7,"Walter Samuel","Right thigh muscle strain","3","inter.it");
83
+ INSERT INTO "injury_accident" VALUES (6,8,"Thiago Motta","Surgery on his right knee","10","inter.it");
84
+ INSERT INTO "injury_accident" VALUES (6,9,"Goran Pandev","Ankle problem","3","inter.it");
85
+ INSERT INTO "injury_accident" VALUES (8,10,"Iván Córdoba","Sustained a biceps femoris strain in his left leg","1","inter.it");
86
+ INSERT INTO "injury_accident" VALUES (9,11,"Esteban Cambiasso","First-degree strain left hamstring muscles","2","inter.it");
87
+ INSERT INTO "injury_accident" VALUES (10,12,"Dejan Stanković (2)","Right calf strain","4 (6)","inter.it");
88
+ INSERT INTO "injury_accident" VALUES (10,13,"Wesley Sneijder (2)","Fainted during half time","1 (2)","inter.it");
89
+ INSERT INTO "injury_accident" VALUES (11,14,"Esteban Cambiasso (2)","Sustained posterior thigh strains in his left leg","4 (6)","inter.it");
90
+ INSERT INTO "injury_accident" VALUES (12,15,"Thiago Motta (2)","Knee problem","7 (17)","inter.it");
91
+
database/gas_company/schema.sql ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+
5
+ CREATE TABLE "company" (
6
+ "Company_ID" int,
7
+ "Rank" int,
8
+ "Company" text,
9
+ "Headquarters" text,
10
+ "Main_Industry" text,
11
+ "Sales_billion" real,
12
+ "Profits_billion" real,
13
+ "Assets_billion" real,
14
+ "Market_Value" real,
15
+ PRIMARY KEY ("Company_ID")
16
+ );
17
+
18
+ CREATE TABLE "gas_station" (
19
+ "Station_ID" int,
20
+ "Open_Year" int,
21
+ "Location" text,
22
+ "Manager_Name" text,
23
+ "Vice_Manager_Name" text,
24
+ "Representative_Name" text,
25
+ PRIMARY KEY ("Station_ID")
26
+ );
27
+
28
+ INSERT INTO "company" VALUES (1,"1","ExxonMobil","USA","Oil and gas","433.5","41.1","331.1","407.4");
29
+ INSERT INTO "company" VALUES (2,"3","General Electric","USA","Conglomerate","147.3","14.2","717.2","213.7");
30
+ INSERT INTO "company" VALUES (3,"4","Royal Dutch Shell","Netherlands","Oil and gas","470.2","30.9","340.5","227.6");
31
+ INSERT INTO "company" VALUES (4,"5","Industrial and Commercial Bank of China","China","Banking","82.6","25.1","2039.1","237.4");
32
+ INSERT INTO "company" VALUES (5,"6","HSBC","UK","Banking","102","16.2","2550","164.3");
33
+ INSERT INTO "company" VALUES (6,"7","PetroChina","China","Oil and gas","310.1","20.6","304.7","294.7");
34
+ INSERT INTO "company" VALUES (7,"8","Berkshire Hathaway","USA","Conglomerate","143.7","10.3","392.6","202.2");
35
+ INSERT INTO "company" VALUES (8,"9","Wells Fargo","USA","Banking","87.6","15.9","1313.9","178.7");
36
+ INSERT INTO "company" VALUES (9,"10","Petrobras","Brazil","Oil and gas","145.9","20.1","319.4","180");
37
+ INSERT INTO "company" VALUES (10,"11","BP","UK","Oil and gas","375.5","25.7","292.5","147.4");
38
+
39
+
40
+ INSERT INTO "gas_station" VALUES (1,"1998","Herne Hill","BrianWingrave","Russell Denman","Clive Burr");
41
+ INSERT INTO "gas_station" VALUES (2,"1999","Channel Hill","SimonMarloe","Russell Brown","Rob Jefferies ");
42
+ INSERT INTO "gas_station" VALUES (3,"2000","Reading North","Simon Cope Derek Marloe","James Colin ","Dave Edwards Roger ");
43
+ INSERT INTO "gas_station" VALUES (4,"2002","Herne St","Colin Denman","Martin Garnham","Ray Hughes");
44
+ INSERT INTO "gas_station" VALUES (5,"2003","Reading","Colin Denman","Martin Freeman","Andrew Russell");
45
+ INSERT INTO "gas_station" VALUES (6,"2004","Herne Ave","Tom Whit","Simon Gaywood","Tony Gibb");
46
+ INSERT INTO "gas_station" VALUES (7,"2005","Hennry Hill","Bryan Taylor","James Holland-Leader","Simon Gaywood");
47
+ INSERT INTO "gas_station" VALUES (8,"2006","Jane Ave","BryanDenman","James Holland-Leader","Simon Gaywood");
48
+ INSERT INTO "gas_station" VALUES (9,"2007","Maindy Hill","Tony Bristow","JameMarloe","Courtney Rowe");
49
+ INSERT INTO "gas_station" VALUES (10,"2008","Maindy Ave","Luke Rowe","TonyBristow","Chris Pyatt");
50
+ INSERT INTO "gas_station" VALUES (11,"2009","Newport Rd","Jon Rowe","Steve Parsons","Tim Read");
51
+
52
+ CREATE TABLE "station_company" (
53
+ "Station_ID" int,
54
+ "Company_ID" int,
55
+ "Rank_of_the_Year" int,
56
+ PRIMARY KEY ("Station_ID","Company_ID"),
57
+ FOREIGN KEY (`Station_ID`) REFERENCES `gas_station`(`Station_ID`),
58
+ FOREIGN KEY (`Company_ID`) REFERENCES `company`(`Company_ID`)
59
+ );
60
+
61
+ INSERT INTO "station_company" VALUES (11,1,1);
62
+ INSERT INTO "station_company" VALUES (1,3,2);
63
+ INSERT INTO "station_company" VALUES (6,6,3);
64
+ INSERT INTO "station_company" VALUES (7,9,4);
65
+ INSERT INTO "station_company" VALUES (10,10,9);
66
+ INSERT INTO "station_company" VALUES (4,1,13);
67
+
database/hospital_1/hospital_1.sqlite ADDED
Binary file (98.3 kB). View file
 
database/hospital_1/schema.sql ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- https://en.wikibooks.org/wiki/SQL_Exercises/The_Hospital
2
+
3
+ DROP TABLE IF EXISTS Physician;
4
+ CREATE TABLE Physician (
5
+ EmployeeID INTEGER NOT NULL,
6
+ Name VARCHAR(30) NOT NULL,
7
+ Position VARCHAR(30) NOT NULL,
8
+ SSN INTEGER NOT NULL,
9
+ CONSTRAINT pk_physician PRIMARY KEY(EmployeeID)
10
+ );
11
+
12
+ DROP TABLE IF EXISTS Department;
13
+ CREATE TABLE Department (
14
+ DepartmentID INTEGER NOT NULL,
15
+ Name VARCHAR(30) NOT NULL,
16
+ Head INTEGER NOT NULL,
17
+ CONSTRAINT pk_Department PRIMARY KEY(DepartmentID),
18
+ CONSTRAINT fk_Department_Physician_EmployeeID FOREIGN KEY(Head) REFERENCES Physician(EmployeeID)
19
+ );
20
+
21
+
22
+ DROP TABLE IF EXISTS Affiliated_With;
23
+ CREATE TABLE Affiliated_With (
24
+ Physician INTEGER NOT NULL,
25
+ Department INTEGER NOT NULL,
26
+ PrimaryAffiliation BOOLEAN NOT NULL,
27
+ CONSTRAINT fk_Affiliated_With_Physician_EmployeeID FOREIGN KEY(Physician) REFERENCES Physician(EmployeeID),
28
+ CONSTRAINT fk_Affiliated_With_Department_DepartmentID FOREIGN KEY(Department) REFERENCES Department(DepartmentID),
29
+ PRIMARY KEY(Physician, Department)
30
+ );
31
+
32
+ DROP TABLE IF EXISTS Procedures;
33
+ CREATE TABLE Procedures (
34
+ Code INTEGER PRIMARY KEY NOT NULL,
35
+ Name VARCHAR(30) NOT NULL,
36
+ Cost REAL NOT NULL
37
+ );
38
+
39
+ DROP TABLE IF EXISTS Trained_In;
40
+ CREATE TABLE Trained_In (
41
+ Physician INTEGER NOT NULL,
42
+ Treatment INTEGER NOT NULL,
43
+ CertificationDate DATETIME NOT NULL,
44
+ CertificationExpires DATETIME NOT NULL,
45
+ CONSTRAINT fk_Trained_In_Physician_EmployeeID FOREIGN KEY(Physician) REFERENCES Physician(EmployeeID),
46
+ CONSTRAINT fk_Trained_In_Procedures_Code FOREIGN KEY(Treatment) REFERENCES Procedures(Code),
47
+ PRIMARY KEY(Physician, Treatment)
48
+ );
49
+
50
+ DROP TABLE IF EXISTS Patient;
51
+ CREATE TABLE Patient (
52
+ SSN INTEGER PRIMARY KEY NOT NULL,
53
+ Name VARCHAR(30) NOT NULL,
54
+ Address VARCHAR(30) NOT NULL,
55
+ Phone VARCHAR(30) NOT NULL,
56
+ InsuranceID INTEGER NOT NULL,
57
+ PCP INTEGER NOT NULL,
58
+ CONSTRAINT fk_Patient_Physician_EmployeeID FOREIGN KEY(PCP) REFERENCES Physician(EmployeeID)
59
+ );
60
+
61
+ DROP TABLE IF EXISTS Nurse;
62
+ CREATE TABLE Nurse (
63
+ EmployeeID INTEGER PRIMARY KEY NOT NULL,
64
+ Name VARCHAR(30) NOT NULL,
65
+ Position VARCHAR(30) NOT NULL,
66
+ Registered BOOLEAN NOT NULL,
67
+ SSN INTEGER NOT NULL
68
+ );
69
+
70
+ DROP TABLE IF EXISTS Appointment;
71
+ CREATE TABLE Appointment (
72
+ AppointmentID INTEGER PRIMARY KEY NOT NULL,
73
+ Patient INTEGER NOT NULL,
74
+ PrepNurse INTEGER,
75
+ Physician INTEGER NOT NULL,
76
+ Start DATETIME NOT NULL,
77
+ End DATETIME NOT NULL,
78
+ ExaminationRoom TEXT NOT NULL,
79
+ CONSTRAINT fk_Appointment_Patient_SSN FOREIGN KEY(Patient) REFERENCES Patient(SSN),
80
+ CONSTRAINT fk_Appointment_Nurse_EmployeeID FOREIGN KEY(PrepNurse) REFERENCES Nurse(EmployeeID),
81
+ CONSTRAINT fk_Appointment_Physician_EmployeeID FOREIGN KEY(Physician) REFERENCES Physician(EmployeeID)
82
+ );
83
+
84
+ DROP TABLE IF EXISTS Medication;
85
+ CREATE TABLE Medication (
86
+ Code INTEGER PRIMARY KEY NOT NULL,
87
+ Name VARCHAR(30) NOT NULL,
88
+ Brand VARCHAR(30) NOT NULL,
89
+ Description VARCHAR(30) NOT NULL
90
+ );
91
+
92
+
93
+ DROP TABLE IF EXISTS Prescribes;
94
+ CREATE TABLE Prescribes (
95
+ Physician INTEGER NOT NULL,
96
+ Patient INTEGER NOT NULL,
97
+ Medication INTEGER NOT NULL,
98
+ Date DATETIME NOT NULL,
99
+ Appointment INTEGER,
100
+ Dose VARCHAR(30) NOT NULL,
101
+ PRIMARY KEY(Physician, Patient, Medication, Date),
102
+ CONSTRAINT fk_Prescribes_Physician_EmployeeID FOREIGN KEY(Physician) REFERENCES Physician(EmployeeID),
103
+ CONSTRAINT fk_Prescribes_Patient_SSN FOREIGN KEY(Patient) REFERENCES Patient(SSN),
104
+ CONSTRAINT fk_Prescribes_Medication_Code FOREIGN KEY(Medication) REFERENCES Medication(Code),
105
+ CONSTRAINT fk_Prescribes_Appointment_AppointmentID FOREIGN KEY(Appointment) REFERENCES Appointment(AppointmentID)
106
+ );
107
+
108
+ DROP TABLE IF EXISTS Block;
109
+ CREATE TABLE Block (
110
+ BlockFloor INTEGER NOT NULL,
111
+ BlockCode INTEGER NOT NULL,
112
+ PRIMARY KEY(BlockFloor, BlockCode)
113
+ );
114
+
115
+ DROP TABLE IF EXISTS Room;
116
+ CREATE TABLE Room (
117
+ RoomNumber INTEGER PRIMARY KEY NOT NULL,
118
+ RoomType VARCHAR(30) NOT NULL,
119
+ BlockFloor INTEGER NOT NULL,
120
+ BlockCode INTEGER NOT NULL,
121
+ Unavailable BOOLEAN NOT NULL,
122
+ CONSTRAINT fk_Room_Block_PK FOREIGN KEY(BlockFloor, BlockCode) REFERENCES Block(BlockFloor, BlockCode)
123
+ );
124
+
125
+ DROP TABLE IF EXISTS On_Call;
126
+ CREATE TABLE On_Call (
127
+ Nurse INTEGER NOT NULL,
128
+ BlockFloor INTEGER NOT NULL,
129
+ BlockCode INTEGER NOT NULL,
130
+ OnCallStart DATETIME NOT NULL,
131
+ OnCallEnd DATETIME NOT NULL,
132
+ PRIMARY KEY(Nurse, BlockFloor, BlockCode, OnCallStart, OnCallEnd),
133
+ CONSTRAINT fk_OnCall_Nurse_EmployeeID FOREIGN KEY(Nurse) REFERENCES Nurse(EmployeeID),
134
+ CONSTRAINT fk_OnCall_Block_Floor FOREIGN KEY(BlockFloor, BlockCode) REFERENCES Block(BlockFloor, BlockCode)
135
+ );
136
+
137
+ DROP TABLE IF EXISTS Stay;
138
+ CREATE TABLE Stay (
139
+ StayID INTEGER PRIMARY KEY NOT NULL,
140
+ Patient INTEGER NOT NULL,
141
+ Room INTEGER NOT NULL,
142
+ StayStart DATETIME NOT NULL,
143
+ StayEnd DATETIME NOT NULL,
144
+ CONSTRAINT fk_Stay_Patient_SSN FOREIGN KEY(Patient) REFERENCES Patient(SSN),
145
+ CONSTRAINT fk_Stay_Room_Number FOREIGN KEY(Room) REFERENCES Room(RoomNumber)
146
+ );
147
+
148
+ DROP TABLE IF EXISTS Undergoes;
149
+ CREATE TABLE Undergoes (
150
+ Patient INTEGER NOT NULL,
151
+ Procedures INTEGER NOT NULL,
152
+ Stay INTEGER NOT NULL,
153
+ DateUndergoes DATETIME NOT NULL,
154
+ Physician INTEGER NOT NULL,
155
+ AssistingNurse INTEGER,
156
+ PRIMARY KEY(Patient, Procedures, Stay, DateUndergoes),
157
+ CONSTRAINT fk_Undergoes_Patient_SSN FOREIGN KEY(Patient) REFERENCES Patient(SSN),
158
+ CONSTRAINT fk_Undergoes_Procedures_Code FOREIGN KEY(Procedures) REFERENCES Procedures(Code),
159
+ CONSTRAINT fk_Undergoes_Stay_StayID FOREIGN KEY(Stay) REFERENCES Stay(StayID),
160
+ CONSTRAINT fk_Undergoes_Physician_EmployeeID FOREIGN KEY(Physician) REFERENCES Physician(EmployeeID),
161
+ CONSTRAINT fk_Undergoes_Nurse_EmployeeID FOREIGN KEY(AssistingNurse) REFERENCES Nurse(EmployeeID)
162
+ );
163
+
164
+
165
+ INSERT INTO Physician VALUES(1,'John Dorian','Staff Internist',111111111);
166
+ INSERT INTO Physician VALUES(2,'Elliot Reid','Attending Physician',222222222);
167
+ INSERT INTO Physician VALUES(3,'Christopher Turk','Surgical Attending Physician',333333333);
168
+ INSERT INTO Physician VALUES(4,'Percival Cox','Senior Attending Physician',444444444);
169
+ INSERT INTO Physician VALUES(5,'Bob Kelso','Head Chief of Medicine',555555555);
170
+ INSERT INTO Physician VALUES(6,'Todd Quinlan','Surgical Attending Physician',666666666);
171
+ INSERT INTO Physician VALUES(7,'John Wen','Surgical Attending Physician',777777777);
172
+ INSERT INTO Physician VALUES(8,'Keith Dudemeister','MD Resident',888888888);
173
+ INSERT INTO Physician VALUES(9,'Molly Clock','Attending Psychiatrist',999999999);
174
+
175
+ INSERT INTO Department VALUES(1,'General Medicine',4);
176
+ INSERT INTO Department VALUES(2,'Surgery',7);
177
+ INSERT INTO Department VALUES(3,'Psychiatry',9);
178
+
179
+ INSERT INTO Affiliated_With VALUES(1,1,1);
180
+ INSERT INTO Affiliated_With VALUES(2,1,1);
181
+ INSERT INTO Affiliated_With VALUES(3,1,0);
182
+ INSERT INTO Affiliated_With VALUES(3,2,1);
183
+ INSERT INTO Affiliated_With VALUES(4,1,1);
184
+ INSERT INTO Affiliated_With VALUES(5,1,1);
185
+ INSERT INTO Affiliated_With VALUES(6,2,1);
186
+ INSERT INTO Affiliated_With VALUES(7,1,0);
187
+ INSERT INTO Affiliated_With VALUES(7,2,1);
188
+ INSERT INTO Affiliated_With VALUES(8,1,1);
189
+ INSERT INTO Affiliated_With VALUES(9,3,1);
190
+
191
+ INSERT INTO Procedures VALUES(1,'Reverse Rhinopodoplasty',1500.0);
192
+ INSERT INTO Procedures VALUES(2,'Obtuse Pyloric Recombobulation',3750.0);
193
+ INSERT INTO Procedures VALUES(3,'Folded Demiophtalmectomy',4500.0);
194
+ INSERT INTO Procedures VALUES(4,'Complete Walletectomy',10000.0);
195
+ INSERT INTO Procedures VALUES(5,'Obfuscated Dermogastrotomy',4899.0);
196
+ INSERT INTO Procedures VALUES(6,'Reversible Pancreomyoplasty',5600.0);
197
+ INSERT INTO Procedures VALUES(7,'Follicular Demiectomy',25.0);
198
+
199
+ INSERT INTO Patient VALUES(100000001,'John Smith','42 Foobar Lane','555-0256',68476213,1);
200
+ INSERT INTO Patient VALUES(100000002,'Grace Ritchie','37 Snafu Drive','555-0512',36546321,2);
201
+ INSERT INTO Patient VALUES(100000003,'Random J. Patient','101 Omgbbq Street','555-1204',65465421,2);
202
+ INSERT INTO Patient VALUES(100000004,'Dennis Doe','1100 Foobaz Avenue','555-2048',68421879,3);
203
+
204
+ INSERT INTO Nurse VALUES(101,'Carla Espinosa','Head Nurse',1,111111110);
205
+ INSERT INTO Nurse VALUES(102,'Laverne Roberts','Nurse',1,222222220);
206
+ INSERT INTO Nurse VALUES(103,'Paul Flowers','Nurse',0,333333330);
207
+
208
+ INSERT INTO Appointment VALUES(13216584,100000001,101,1,'2008-04-24 10:00','2008-04-24 11:00','A');
209
+ INSERT INTO Appointment VALUES(26548913,100000002,101,2,'2008-04-24 10:00','2008-04-24 11:00','B');
210
+ INSERT INTO Appointment VALUES(36549879,100000001,102,1,'2008-04-25 10:00','2008-04-25 11:00','A');
211
+ INSERT INTO Appointment VALUES(46846589,100000004,103,4,'2008-04-25 10:00','2008-04-25 11:00','B');
212
+ INSERT INTO Appointment VALUES(59871321,100000004,NULL,4,'2008-04-26 10:00','2008-04-26 11:00','C');
213
+ INSERT INTO Appointment VALUES(69879231,100000003,103,2,'2008-04-26 11:00','2008-04-26 12:00','C');
214
+ INSERT INTO Appointment VALUES(76983231,100000001,NULL,3,'2008-04-26 12:00','2008-04-26 13:00','C');
215
+ INSERT INTO Appointment VALUES(86213939,100000004,102,9,'2008-04-27 10:00','2008-04-21 11:00','A');
216
+ INSERT INTO Appointment VALUES(93216548,100000002,101,2,'2008-04-27 10:00','2008-04-27 11:00','B');
217
+
218
+ INSERT INTO Medication VALUES(1,'Procrastin-X','X','N/A');
219
+ INSERT INTO Medication VALUES(2,'Thesisin','Foo Labs','N/A');
220
+ INSERT INTO Medication VALUES(3,'Awakin','Bar Laboratories','N/A');
221
+ INSERT INTO Medication VALUES(4,'Crescavitin','Baz Industries','N/A');
222
+ INSERT INTO Medication VALUES(5,'Melioraurin','Snafu Pharmaceuticals','N/A');
223
+
224
+ INSERT INTO Prescribes VALUES(1,100000001,1,'2008-04-24 10:47',13216584,'5');
225
+ INSERT INTO Prescribes VALUES(9,100000004,2,'2008-04-27 10:53',86213939,'10');
226
+ INSERT INTO Prescribes VALUES(9,100000004,2,'2008-04-30 16:53',NULL,'5');
227
+
228
+ INSERT INTO Block VALUES(1,1);
229
+ INSERT INTO Block VALUES(1,2);
230
+ INSERT INTO Block VALUES(1,3);
231
+ INSERT INTO Block VALUES(2,1);
232
+ INSERT INTO Block VALUES(2,2);
233
+ INSERT INTO Block VALUES(2,3);
234
+ INSERT INTO Block VALUES(3,1);
235
+ INSERT INTO Block VALUES(3,2);
236
+ INSERT INTO Block VALUES(3,3);
237
+ INSERT INTO Block VALUES(4,1);
238
+ INSERT INTO Block VALUES(4,2);
239
+ INSERT INTO Block VALUES(4,3);
240
+
241
+ INSERT INTO Room VALUES(101,'Single',1,1,0);
242
+ INSERT INTO Room VALUES(102,'Single',1,1,0);
243
+ INSERT INTO Room VALUES(103,'Single',1,1,0);
244
+ INSERT INTO Room VALUES(111,'Single',1,2,0);
245
+ INSERT INTO Room VALUES(112,'Single',1,2,1);
246
+ INSERT INTO Room VALUES(113,'Single',1,2,0);
247
+ INSERT INTO Room VALUES(121,'Single',1,3,0);
248
+ INSERT INTO Room VALUES(122,'Single',1,3,0);
249
+ INSERT INTO Room VALUES(123,'Single',1,3,0);
250
+ INSERT INTO Room VALUES(201,'Single',2,1,1);
251
+ INSERT INTO Room VALUES(202,'Single',2,1,0);
252
+ INSERT INTO Room VALUES(203,'Single',2,1,0);
253
+ INSERT INTO Room VALUES(211,'Single',2,2,0);
254
+ INSERT INTO Room VALUES(212,'Single',2,2,0);
255
+ INSERT INTO Room VALUES(213,'Single',2,2,1);
256
+ INSERT INTO Room VALUES(221,'Single',2,3,0);
257
+ INSERT INTO Room VALUES(222,'Single',2,3,0);
258
+ INSERT INTO Room VALUES(223,'Single',2,3,0);
259
+ INSERT INTO Room VALUES(301,'Single',3,1,0);
260
+ INSERT INTO Room VALUES(302,'Single',3,1,1);
261
+ INSERT INTO Room VALUES(303,'Single',3,1,0);
262
+ INSERT INTO Room VALUES(311,'Single',3,2,0);
263
+ INSERT INTO Room VALUES(312,'Single',3,2,0);
264
+ INSERT INTO Room VALUES(313,'Single',3,2,0);
265
+ INSERT INTO Room VALUES(321,'Single',3,3,1);
266
+ INSERT INTO Room VALUES(322,'Single',3,3,0);
267
+ INSERT INTO Room VALUES(323,'Single',3,3,0);
268
+ INSERT INTO Room VALUES(401,'Single',4,1,0);
269
+ INSERT INTO Room VALUES(402,'Single',4,1,1);
270
+ INSERT INTO Room VALUES(403,'Single',4,1,0);
271
+ INSERT INTO Room VALUES(411,'Single',4,2,0);
272
+ INSERT INTO Room VALUES(412,'Single',4,2,0);
273
+ INSERT INTO Room VALUES(413,'Single',4,2,0);
274
+ INSERT INTO Room VALUES(421,'Single',4,3,1);
275
+ INSERT INTO Room VALUES(422,'Single',4,3,0);
276
+ INSERT INTO Room VALUES(423,'Single',4,3,0);
277
+
278
+ INSERT INTO On_Call VALUES(101,1,1,'2008-11-04 11:00','2008-11-04 19:00');
279
+ INSERT INTO On_Call VALUES(101,1,2,'2008-11-04 11:00','2008-11-04 19:00');
280
+ INSERT INTO On_Call VALUES(102,1,3,'2008-11-04 11:00','2008-11-04 19:00');
281
+ INSERT INTO On_Call VALUES(103,1,1,'2008-11-04 19:00','2008-11-05 03:00');
282
+ INSERT INTO On_Call VALUES(103,1,2,'2008-11-04 19:00','2008-11-05 03:00');
283
+ INSERT INTO On_Call VALUES(103,1,3,'2008-11-04 19:00','2008-11-05 03:00');
284
+
285
+ INSERT INTO Stay VALUES(3215,100000001,111,'2008-05-01','2008-05-04');
286
+ INSERT INTO Stay VALUES(3216,100000003,123,'2008-05-03','2008-05-14');
287
+ INSERT INTO Stay VALUES(3217,100000004,112,'2008-05-02','2008-05-03');
288
+
289
+ INSERT INTO Undergoes VALUES(100000001,6,3215,'2008-05-02',3,101);
290
+ INSERT INTO Undergoes VALUES(100000001,2,3215,'2008-05-03',7,101);
291
+ INSERT INTO Undergoes VALUES(100000004,1,3217,'2008-05-07',3,102);
292
+ INSERT INTO Undergoes VALUES(100000004,5,3217,'2008-05-09',6,105);
293
+ INSERT INTO Undergoes VALUES(100000001,7,3217,'2008-05-10',7,101);
294
+ INSERT INTO Undergoes VALUES(100000004,4,3217,'2008-05-13',3,103);
295
+
296
+ INSERT INTO Trained_In VALUES(3,1,'2008-01-01','2008-12-31');
297
+ INSERT INTO Trained_In VALUES(3,2,'2008-01-01','2008-12-31');
298
+ INSERT INTO Trained_In VALUES(3,5,'2008-01-01','2008-12-31');
299
+ INSERT INTO Trained_In VALUES(3,6,'2008-01-01','2008-12-31');
300
+ INSERT INTO Trained_In VALUES(3,7,'2008-01-01','2008-12-31');
301
+ INSERT INTO Trained_In VALUES(6,2,'2008-01-01','2008-12-31');
302
+ INSERT INTO Trained_In VALUES(6,5,'2007-01-01','2007-12-31');
303
+ INSERT INTO Trained_In VALUES(6,6,'2008-01-01','2008-12-31');
304
+ INSERT INTO Trained_In VALUES(7,1,'2008-01-01','2008-12-31');
305
+ INSERT INTO Trained_In VALUES(7,2,'2008-01-01','2008-12-31');
306
+ INSERT INTO Trained_In VALUES(7,3,'2008-01-01','2008-12-31');
307
+ INSERT INTO Trained_In VALUES(7,4,'2008-01-01','2008-12-31');
308
+ INSERT INTO Trained_In VALUES(7,5,'2008-01-01','2008-12-31');
309
+ INSERT INTO Trained_In VALUES(7,6,'2008-01-01','2008-12-31');
310
+ INSERT INTO Trained_In VALUES(7,7,'2008-01-01','2008-12-31');
database/imdb/imdb.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c84df167fd43cd471701ddc4ae9bbcbc146fc7fbe11abff0fd75dbe0c30741e7
3
+ size 131072
database/local_govt_and_lot/local_govt_and_lot.sqlite ADDED
Binary file (65.5 kB). View file
 
database/local_govt_and_lot/schema.sql ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE Customers (
4
+ customer_id INTEGER NOT NULL,
5
+ customer_details VARCHAR(255),
6
+ PRIMARY KEY (customer_id)
7
+ );
8
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (4, 'Mr. Raul Prosacco');
9
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (5, 'Esteban Senger');
10
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (16, 'Tyrique Durgan II');
11
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (17, 'Malcolm Farrell');
12
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (19, 'Sabryna Moore PhD');
13
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (21, 'Dr. Haylie Hilll III');
14
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (31, 'Monty Sauer III');
15
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (41, 'Jayme Marquardt');
16
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (63, 'Vincenza Price');
17
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (69, 'Elva Boehm');
18
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (76, 'Kyleigh Schuster');
19
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (79, 'Oma Smith');
20
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (82, 'Bridgette Nitzsche PhD');
21
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (87, 'Jeff McCullough MD');
22
+ INSERT INTO `Customers` (`customer_id`, `customer_details`) VALUES (91, 'Mackenzie Hettinger V');
23
+
24
+ CREATE TABLE Properties (
25
+ property_id INTEGER NOT NULL,
26
+ property_type_code CHAR(15) NOT NULL,
27
+ property_address VARCHAR(255),
28
+ other_details VARCHAR(255),
29
+ PRIMARY KEY (property_id)
30
+ );
31
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (24, 'apartment', '85456 Annie Lodge Suite 449', 'USA');
32
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (107, 'house', '2580 Yundt Plains', 'USA');
33
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (108, 'house', '5983 Fleta Throughway', 'USA');
34
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (120, 'apartment', '322 Johnston Parkway Suite 422', 'USA');
35
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (373, 'apartment', '5384 Sipes Land Apt. 344', 'USA');
36
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (445, 'flat', '04164 Raul Stream', 'USA');
37
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (586, 'apartment', '54591 Bernard Ridges Suite 864', 'USA');
38
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (605, 'house', '7713 Bode Burgs Apt. 113', 'USA');
39
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (629, 'house', '830 Jayne Points Suite 290', 'USA');
40
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (669, 'house', '824 Kiehn Vista', 'USA');
41
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (748, 'apartment', '3927 Spinka Loaf Suite 347', 'USA');
42
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (791, 'house', '72659 Frank Locks', 'USA');
43
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (849, 'house', '76714 Verla Radial Apt. 306', 'USA');
44
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (879, 'flat', '129 Chasity Brook', 'USA');
45
+ INSERT INTO `Properties` (`property_id`, `property_type_code`, `property_address`, `other_details`) VALUES (954, 'flat', '91002 Melvina Haven', 'USA');
46
+
47
+
48
+ CREATE TABLE Residents (
49
+ resident_id INTEGER NOT NULL,
50
+ property_id INTEGER NOT NULL,
51
+ date_moved_in DATETIME NOT NULL,
52
+ date_moved_out DATETIME NOT NULL,
53
+ other_details VARCHAR(255),
54
+ PRIMARY KEY (resident_id, property_id, date_moved_in),
55
+ FOREIGN KEY (property_id) REFERENCES Properties (property_id)
56
+ );
57
+
58
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (6, 954, '2017-06-17 15:43:33', '2017-12-18 03:46:04', 'Anderson Batz');
59
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (10, 605, '2015-03-27 12:00:00', '2018-03-17 07:48:09', 'Miss Naomie Osinski');
60
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (23, 879, '2015-03-27 12:00:00', '2017-11-14 06:28:48', 'Jess Wyman');
61
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (28, 629, '2015-03-27 12:00:00', '2017-10-05 02:47:31', 'Miss Alanis Lockman');
62
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (37, 669, '2015-03-27 12:00:00', '2018-01-30 10:20:59', 'Prof. Arvel Kozey');
63
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (38, 748, '2015-03-27 12:00:00', '2017-12-30 23:55:10', 'Chaim Swaniawski');
64
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (43, 108, '2015-03-27 12:00:00', '2018-02-22 06:24:15', 'Elroy Schuster');
65
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (45, 954, '2015-03-27 12:00:00', '2017-10-14 10:23:42', 'Prof. Nasir Hoppe');
66
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (47, 669, '2015-03-27 12:00:00', '2017-10-10 02:25:53', 'Tiffany Jaskolski');
67
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (58, 107, '2015-03-27 12:00:00', '2017-11-29 21:24:08', 'Tomasa Hoeger');
68
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (67, 120, '2016-09-27 12:00:00', '2017-10-23 16:40:19', 'Terrill Bernhard');
69
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (83, 445, '2016-09-27 12:00:00', '2018-01-19 01:35:51', 'Loy Walter');
70
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (87, 748, '2016-09-27 12:00:00', '2018-01-28 13:19:54', 'Mrs. Raphaelle Fisher');
71
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (88, 107, '2016-09-27 12:00:00', '2018-02-03 11:30:20', 'Jacques Glover II');
72
+ INSERT INTO `Residents` (`resident_id`, `property_id`, `date_moved_in`, `date_moved_out`, `other_details`) VALUES (90, 373, '2016-09-27 12:00:00', '2017-11-19 03:11:44', 'Cassie Johnson');
73
+
74
+
75
+ CREATE TABLE Organizations (
76
+ organization_id INTEGER NOT NULL,
77
+ parent_organization_id INTEGER,
78
+ organization_details VARCHAR(255),
79
+ PRIMARY KEY (organization_id)
80
+ );
81
+
82
+ INSERT INTO `Organizations` (`organization_id`, `parent_organization_id`, `organization_details`) VALUES (7, 7, 'Reinger, Hudson and Nolan Group');
83
+ INSERT INTO `Organizations` (`organization_id`, `parent_organization_id`, `organization_details`) VALUES (8, 7, 'Denesik and Sons Party');
84
+ INSERT INTO `Organizations` (`organization_id`, `parent_organization_id`, `organization_details`) VALUES (10, 8, 'Robel-Schulist Group');
85
+
86
+
87
+ CREATE TABLE Services (
88
+ service_id INTEGER NOT NULL,
89
+ organization_id INTEGER NOT NULL,
90
+ service_type_code CHAR(15) NOT NULL,
91
+ service_details VARCHAR(255),
92
+ PRIMARY KEY (service_id),
93
+ FOREIGN KEY (organization_id) REFERENCES Organizations (organization_id)
94
+ );
95
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (10, 10, 'Cleanning', 'Satisfied');
96
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (11, 7, 'Check', 'Satisfied');
97
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (13, 8, 'Moving Out', 'Satisfied');
98
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (22, 10, 'Pay bills', 'Satisfied');
99
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (29, 8, 'Moving Out', 'Satisfied');
100
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (31, 7, 'Pay bills', 'Satisfied');
101
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (36, 8, 'Check', 'Satisfied');
102
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (41, 10, 'Check', 'Satisfied');
103
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (47, 8, 'Pay bills', 'Unsatisfied');
104
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (49, 8, 'Moving Out', 'Satisfied');
105
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (52, 8, 'Pay bills', 'Unsatisfied');
106
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (65, 8, 'Cleanning', 'Unsatisfied');
107
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (66, 8, 'Pay bills', 'Unsatisfied');
108
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (77, 7, 'Pay bills', 'Unsatisfied');
109
+ INSERT INTO `Services` (`service_id`, `organization_id`, `service_type_code`, `service_details`) VALUES (87, 8, 'Pay bills', 'Unsatisfied');
110
+
111
+
112
+
113
+ CREATE TABLE Residents_Services (
114
+ resident_id INTEGER NOT NULL,
115
+ service_id INTEGER NOT NULL,
116
+ date_moved_in DATETIME,
117
+ property_id INTEGER,
118
+ date_requested DATETIME,
119
+ date_provided DATETIME,
120
+ other_details VARCHAR(255),
121
+ PRIMARY KEY (resident_id, service_id),
122
+ FOREIGN KEY (service_id) REFERENCES Services (service_id),
123
+ FOREIGN KEY (resident_id, property_id, date_moved_in) REFERENCES Residents (resident_id,property_id,date_moved_in)
124
+ );
125
+
126
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (6, 49, '2017-06-17 15:43:33', 954, '2016-07-25 01:32:23', '2018-02-26 00:27:11', 'Satisfied');
127
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (23, 41, '2015-03-27 12:00:00', 879, '2016-10-10 21:42:21', '2017-08-21 06:23:06', 'Unsatisfied');
128
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (28, 11, '2015-03-27 12:00:00', 629, '2017-07-14 19:03:47', '2017-08-28 03:43:56', 'Unsatisfied');
129
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (43, 10, '2015-03-27 12:00:00', 108, '2016-09-20 22:50:26', '2017-10-17 03:30:08', 'Unsatisfied');
130
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (45, 49, '2015-03-27 12:00:00', 954, '2017-06-14 14:04:50', '2017-08-14 08:06:43', 'Unsatisfied');
131
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (47, 65, '2015-03-27 12:00:00', 669, '2016-12-16 06:08:10', '2018-01-30 09:58:57', 'Unsatisfied');
132
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (67, 87, '2016-09-27 12:00:00', 120, '2016-04-27 14:51:07', '2017-11-13 10:28:34', 'Unsatisfied');
133
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (83, 65, '2016-09-27 12:00:00', 445, '2016-11-27 15:37:02', '2017-09-10 00:48:58', 'Unsatisfied');
134
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (87, 29, '2016-09-27 12:00:00', 748, '2016-10-13 04:15:54', '2017-10-29 13:12:29', 'Unsatisfied');
135
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (90, 36, '2016-09-27 12:00:00', 373, '2016-04-13 05:09:24', '2017-10-28 12:36:43', 'Unsatisfied');
136
+ INSERT INTO `Residents_Services` (`resident_id`, `service_id`, `date_moved_in`, `property_id`, `date_requested`, `date_provided`, `other_details`) VALUES (88, 11, '2016-09-27 12:00:00', 107, '2016-06-18 20:09:24', '2017-08-08 11:24:50', 'Unsatisfied');
137
+
138
+
139
+ CREATE TABLE Things (
140
+ thing_id INTEGER NOT NULL,
141
+ organization_id INTEGER NOT NULL,
142
+ Type_of_Thing_Code CHAR(15) NOT NULL,
143
+ service_type_code CHAR(10) NOT NULL,
144
+ service_details VARCHAR(255),
145
+ PRIMARY KEY (thing_id),
146
+ FOREIGN KEY (organization_id) REFERENCES Organizations (organization_id)
147
+ );
148
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (1, 8, 'Electronics', 'Check', 'Unsatisfied');
149
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (2, 8, 'Electronics', 'Cleanning', 'Satisfied');
150
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (10, 8, 'Commen', 'Check', 'Satisfied');
151
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (14, 10, 'Furniture', 'Cleanning', 'Satisfied');
152
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (26, 8, 'Electronics', 'Cleanning', 'Unsatisfied');
153
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (35, 7, 'Electronics', 'Cleanning', 'Satisfied');
154
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (45, 8, 'Commen', 'Check', 'Satisfied');
155
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (46, 8, 'Commen', 'Check', 'Satisfied');
156
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (47, 10, 'Commen', 'Cleanning', 'Satisfied');
157
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (58, 8, 'Electronics', 'Check', 'Satisfied');
158
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (68, 10, 'Commen', 'Cleanning', 'Unsatisfied');
159
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (80, 8, 'Furniture', 'Check', 'Unsatisfied');
160
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (84, 8, 'Commen', 'Check', 'Unsatisfied');
161
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (85, 8, 'Commen', 'Cleanning', 'Unsatisfied');
162
+ INSERT INTO `Things` (`thing_id`, `organization_id`, `Type_of_Thing_Code`, `service_type_code`, `service_details`) VALUES (92, 7, 'Commen', 'Check', 'Unsatisfied');
163
+
164
+
165
+ CREATE TABLE Customer_Events (
166
+ Customer_Event_ID INTEGER NOT NULL,
167
+ customer_id INTEGER,
168
+ date_moved_in DATETIME,
169
+ property_id INTEGER,
170
+ resident_id INTEGER,
171
+ thing_id INTEGER NOT NULL,
172
+ PRIMARY KEY (Customer_Event_ID),
173
+ FOREIGN KEY (thing_id) REFERENCES Things (thing_id),
174
+ FOREIGN KEY (customer_id) REFERENCES Customers (customer_id),
175
+ FOREIGN KEY (resident_id, property_id, date_moved_in) REFERENCES Residents (resident_id,property_id,date_moved_in)
176
+ );
177
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (70, 19, '2015-03-27 12:00:00', 605, 10, 1);
178
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (160, 5, '2015-03-27 12:00:00', 879, 23, 80);
179
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (166, 16, '2015-03-27 12:00:00', 629, 28, 14);
180
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (216, 79, '2015-03-27 12:00:00', 669, 37, 46);
181
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (226, 19, '2015-03-27 12:00:00', 748, 38, 80);
182
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (256, 79, '2015-03-27 12:00:00', 108, 43, 2);
183
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (428, 63, '2015-03-27 12:00:00', 954, 45, 68);
184
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (530, 4, '2015-03-27 12:00:00', 669, 47, 10);
185
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (559, 19, '2015-03-27 12:00:00', 107, 58, 1);
186
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (591, 91, '2016-09-27 12:00:00', 120, 67, 10);
187
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (606, 31, '2016-09-27 12:00:00', 445, 83, 85);
188
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (627, 91, '2016-09-27 12:00:00', 748, 87, 92);
189
+ INSERT INTO `Customer_Events` (`Customer_Event_ID`, `customer_id`, `date_moved_in`, `property_id`, `resident_id`, `thing_id`) VALUES (817, 19, '2016-09-27 12:00:00', 107, 88, 10);
190
+
191
+
192
+ CREATE TABLE Customer_Event_Notes (
193
+ Customer_Event_Note_ID INTEGER NOT NULL,
194
+ Customer_Event_ID INTEGER NOT NULL,
195
+ service_type_code CHAR(15) NOT NULL,
196
+ resident_id INTEGER NOT NULL,
197
+ property_id INTEGER NOT NULL,
198
+ date_moved_in DATETIME NOT NULL,
199
+ PRIMARY KEY (Customer_Event_Note_ID),
200
+ FOREIGN KEY (Customer_Event_ID) REFERENCES Customer_Events (Customer_Event_ID)
201
+ );
202
+
203
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (18, 70, 'Cleanning', 58, 107, '2016-08-04 01:06:05');
204
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (21, 428, 'Check', 87, 445, '2016-12-11 01:05:14');
205
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (32, 70, 'Check', 37, 669, '2016-07-10 04:09:56');
206
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (46, 627, 'Cleanning', 87, 373, '2016-05-24 02:56:54');
207
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (49, 559, 'Check', 45, 849, '2016-08-08 07:58:26');
208
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (50, 606, 'Check', 45, 849, '2017-04-25 09:08:14');
209
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (55, 817, 'Cleanning', 43, 120, '2017-06-26 13:24:36');
210
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (56, 216, 'Check', 88, 748, '2016-11-04 12:46:21');
211
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (59, 591, 'Cleanning', 28, 605, '2016-05-14 15:58:33');
212
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (65, 591, 'Cleanning', 28, 879, '2017-04-12 19:47:08');
213
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (75, 70, 'Check', 43, 120, '2016-10-28 01:43:42');
214
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (88, 606, 'Cleanning', 67, 791, '2016-11-23 05:53:40');
215
+ INSERT INTO `Customer_Event_Notes` (`Customer_Event_Note_ID`, `Customer_Event_ID`, `service_type_code`, `resident_id`, `property_id`, `date_moved_in`) VALUES (91, 817, 'Cleanning', 43, 120, '2017-04-28 10:17:13');
216
+
217
+
218
+ CREATE TABLE Timed_Status_of_Things (
219
+ thing_id INTEGER NOT NULL,
220
+ Date_and_Date DATETIME NOT NULL,
221
+ Status_of_Thing_Code CHAR(15) NOT NULL,
222
+ PRIMARY KEY (thing_id, Date_and_Date, Status_of_Thing_Code),
223
+ FOREIGN KEY (thing_id) REFERENCES Things (thing_id)
224
+ );
225
+ CREATE TABLE Timed_Locations_of_Things (
226
+ thing_id INTEGER NOT NULL,
227
+ Date_and_Time DATETIME NOT NULL,
228
+ Location_Code CHAR(15) NOT NULL,
229
+ PRIMARY KEY (thing_id, Date_and_Time, Location_Code),
230
+ FOREIGN KEY (thing_id) REFERENCES Things (thing_id));
231
+
232
+
233
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (2, '2016-10-12 12:03:07', '064 Charles Mou');
234
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (10, '2016-12-29 00:39:19', '288 Lang Ferry');
235
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (10, '2017-10-21 04:21:54', '854 Keeling Sho');
236
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (14, '2017-03-19 19:28:13', '1316 Morgan Spr');
237
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (26, '2016-04-26 16:34:09', '192 Kub Rapids');
238
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (45, '2017-04-19 16:41:03', '4667 Kellen Fie');
239
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (45, '2017-04-22 00:37:48', '1313 Sawayn Riv');
240
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (58, '2016-08-04 00:25:55', '94425 Nellie Kn');
241
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (68, '2017-03-06 01:56:27', '4223 Rae Fork S');
242
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (68, '2017-08-31 13:54:13', '9628 Bins Islan');
243
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (85, '2016-11-07 09:43:05', '2677 Runolfsson');
244
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (85, '2017-01-02 23:26:47', '26281 Holden Pa');
245
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (85, '2017-11-26 00:13:44', '1537 Schmeler G');
246
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (92, '2017-03-19 13:57:49', '113 Geo Glens A');
247
+ INSERT INTO `Timed_Locations_of_Things` (`thing_id`, `Date_and_Time`, `Location_Code`) VALUES (92, '2017-10-21 21:35:37', '9569 Tanner Inl');
248
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (2, '2016-05-27 23:33:34', 'Open');
249
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (2, '2016-07-17 08:35:27', 'Close');
250
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (2, '2017-06-19 02:59:21', 'In Progress');
251
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (10, '2016-09-06 16:31:13', 'Close');
252
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (10, '2016-11-14 17:30:51', 'Open');
253
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (14, '2017-07-03 02:22:12', 'In Progress');
254
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (26, '2016-04-10 06:32:15', 'Close');
255
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (26, '2017-08-05 02:10:02', 'In Progress');
256
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (26, '2018-02-04 02:44:39', 'Close');
257
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (35, '2017-11-27 06:32:46', 'In Progress');
258
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (47, '2016-04-02 00:57:17', 'In Progress');
259
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (47, '2016-12-02 11:08:16', 'Close');
260
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (58, '2017-05-31 00:52:33', 'In Progress');
261
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (80, '2016-10-08 08:02:57', 'Open');
262
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (84, '2017-12-28 16:05:08', 'Open');
263
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (85, '2017-03-24 12:12:46', 'Close');
264
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (92, '2016-11-24 12:44:00', 'In Progress');
265
+ INSERT INTO `Timed_Status_of_Things` (`thing_id`, `Date_and_Date`, `Status_of_Thing_Code`) VALUES (92, '2017-09-27 01:35:51', 'Close');
database/manufactory_1/manufactory_1.sqlite ADDED
Binary file (12.3 kB). View file
 
database/match_season/schema.sql ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+
4
+ CREATE TABLE "country" (
5
+ "Country_id" int,
6
+ "Country_name" text,
7
+ "Capital" text,
8
+ "Official_native_language" text,
9
+ PRIMARY KEY ("Country_id")
10
+ );
11
+
12
+
13
+ CREATE TABLE `team` (
14
+ `Team_id` int,
15
+ `Name` text,
16
+ PRIMARY KEY (`Team_id`)
17
+ ) ;
18
+
19
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (1, 'Columbus Crew');
20
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (2, 'Evalyn Feil');
21
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (3, 'Anais VonRueden');
22
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (4, 'Miami Fusion');
23
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (5, 'Enrique Osinski');
24
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (6, 'Brown Erdman');
25
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (7, 'Los Angeles Galaxy');
26
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (8, 'Berneice Hand');
27
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (9, 'Ryley Goldner');
28
+ INSERT INTO `team` (`Team_id`, `Name`) VALUES (10, 'D.C. United');
29
+
30
+ CREATE TABLE "match_season" (
31
+ "Season" real,
32
+ "Player" text,
33
+ "Position" text,
34
+ "Country" int,
35
+ "Team" int,
36
+ "Draft_Pick_Number" int,
37
+ "Draft_Class" text,
38
+ "College" text,
39
+ PRIMARY KEY ("Season"),
40
+ FOREIGN KEY (`Country`) REFERENCES `country`(`Country_id`),
41
+ FOREIGN KEY (`Team`) REFERENCES `team`(`Team_id`)
42
+ );
43
+
44
+
45
+ CREATE TABLE "player" (
46
+ "Player_ID" int,
47
+ "Player" text,
48
+ "Years_Played" text,
49
+ "Total_WL" text,
50
+ "Singles_WL" text,
51
+ "Doubles_WL" text,
52
+ "Team" int,
53
+ PRIMARY KEY ("Player_ID"),
54
+ FOREIGN KEY (`Team`) REFERENCES `team`(`Team_id`)
55
+ );
56
+
57
+
58
+
59
+ INSERT INTO "country" VALUES (1,"Indonesia","Jakarta","Bahasa Indonesia");
60
+ INSERT INTO "country" VALUES (2,"Iran","Tehran","Persian ( Arabic script )");
61
+ INSERT INTO "country" VALUES (3,"Iraq","Baghdad","Arabic ( Arabic script ) Kurdish");
62
+ INSERT INTO "country" VALUES (4,"Ireland","Dublin","Irish English");
63
+ INSERT INTO "country" VALUES (5,"Isle of Man","Douglas","English Manx");
64
+ INSERT INTO "country" VALUES (6,"United States","Washington","English");
65
+
66
+ INSERT INTO "match_season" VALUES ("1996","Steve Ralston Category:Articles with hCards","Midfielder",6,1,18,"1996 MLS College Draft","Florida International");
67
+ INSERT INTO "match_season" VALUES ("1997","Mike Duhaney Category:Articles with hCards","Defender",6,2,87,"1996 MLS Inaugural Player Draft","UNLV");
68
+ INSERT INTO "match_season" VALUES ("1998","Ben Olsen Category:Articles with hCards","Midfielder",4,3,2,"Project-40","Virginia");
69
+ INSERT INTO "match_season" VALUES ("1999","Jay Heaps Category:Articles with hCards","Defender",5,4,5,"1999 MLS College Draft","Duke");
70
+ INSERT INTO "match_season" VALUES ("2000","Carlos Bocanegra Category:Articles with hCards","Defender",5,5,4,"2000 MLS SuperDraft","UCLA");
71
+ INSERT INTO "match_season" VALUES ("2001","Rodrigo Faria Category:Articles with hCards","Forward",4,5,13,"2001 MLS SuperDraft","Concordia College");
72
+ INSERT INTO "match_season" VALUES ("2002","Kyle Martino Category:Articles with hCards","Midfielder",6,3,8,"2002 MLS SuperDraft","Virginia");
73
+ INSERT INTO "match_season" VALUES ("2003","Damani Ralph Category:Articles with hCards","Forward",1,2,18,"2003 MLS SuperDraft","Connecticut");
74
+ INSERT INTO "match_season" VALUES ("2004","Clint Dempsey Category:Articles with hCards","Midfielder",6,3,8,"2004 MLS SuperDraft","Furman");
75
+ INSERT INTO "match_season" VALUES ("2005","Michael Parkhurst Category:Articles with hCards","Defender",6,4,9,"2005 MLS SuperDraft","Wake Forest");
76
+ INSERT INTO "match_season" VALUES ("2006","Jonathan Bornstein Category:Articles with hCards","Defender",6,10,37,"2006 MLS SuperDraft","UCLA");
77
+ INSERT INTO "match_season" VALUES ("2007","Maurice Edu Category:Articles with hCards","Midfielder",4,9,1,"2007 MLS SuperDraft","Maryland");
78
+ INSERT INTO "match_season" VALUES ("2008","Sean Franklin Category:Articles with hCards","Defender",6,5,4,"2008 MLS SuperDraft","Cal State Northridge");
79
+ INSERT INTO "match_season" VALUES ("2009","Omar Gonzalez Category:Articles with hCards","Defender",6,5,3,"2009 MLS SuperDraft","Maryland");
80
+ INSERT INTO "match_season" VALUES ("2010","Andy Najar Category:Articles with hCards","Midfielder",4,5,6,"D.C. United Academy","none");
81
+ INSERT INTO "match_season" VALUES ("2011","C. J. Sapong Category:Articles with hCards","Forward",6,3,10,"2011 MLS SuperDraft","James Madison");
82
+
83
+
84
+ INSERT INTO "player" VALUES (1,"Cho Soong-Jae (630)","1 (2011)","2–0","1–0","1–0",1);
85
+ INSERT INTO "player" VALUES (2,"Chung Hong (717)","1 (2011)","0–0","0–0","0–0",1);
86
+ INSERT INTO "player" VALUES (3,"Im Kyu-tae (492)","8 (2003–2005, 2007–2011)","6–9","5–7","1–2",1);
87
+ INSERT INTO "player" VALUES (4,"Jeong Suk-Young (793)","2 (2010–2011)","1–2","1–2","0–0",1);
88
+ INSERT INTO "player" VALUES (5,"Kim Hyun-Joon (908)","2 (2010–2011)","3–4","2–1","1–3",2);
89
+ INSERT INTO "player" VALUES (6,"Kim Young-Jun (474)","4 (2003–2004, 2010–2011)","6–4","6–3","0–1",4);
90
+ INSERT INTO "player" VALUES (7,"Lim Yong-Kyu (288)","3 (2009–2011)","7–6","5–6","2–0",6);
91
+ INSERT INTO "player" VALUES (8,"Seol Jae-Min (none)","2 (2010-2011)","2–2","0–0","2–2",1);
92
+ INSERT INTO "player" VALUES (9,"An Jae-Sung","3 (2005, 2007–2008)","4–3","3–2","1–1",1);
93
+ INSERT INTO "player" VALUES (10,"Bae Nam-Ju","2 (1988, 1990)","1–3","0–2","1–1",8);
94
+
database/museum_visit/schema.sql ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "museum" (
5
+ "Museum_ID" int,
6
+ "Name" text,
7
+ "Num_of_Staff" int,
8
+ "Open_Year" text,
9
+ PRIMARY KEY ("Museum_ID")
10
+ );
11
+
12
+
13
+
14
+ INSERT INTO "museum" VALUES ("1","Plaza Museum","62","2000");
15
+ INSERT INTO "museum" VALUES ("2","Capital Plaza Museum","25","2012");
16
+ INSERT INTO "museum" VALUES ("3","Jefferson Development Museum","18","2010");
17
+ INSERT INTO "museum" VALUES ("4","Willow Grande Museum","17","2011");
18
+ INSERT INTO "museum" VALUES ("5","RiverPark Museum","16","2008");
19
+ INSERT INTO "museum" VALUES ("6","Place Tower Museum","16","2008");
20
+ INSERT INTO "museum" VALUES ("7","Central City District Residential Museum","15","2010");
21
+ INSERT INTO "museum" VALUES ("8","ZirMed Gateway Museum","12","2009");
22
+
23
+ CREATE TABLE "visitor" (
24
+ "ID" int,
25
+ "Name" text,
26
+ "Level_of_membership" int,
27
+ "Age" int,
28
+ PRIMARY KEY ("ID")
29
+ );
30
+
31
+ INSERT INTO "visitor" VALUES (1,"Gonzalo Higuaín ",8,35);
32
+ INSERT INTO "visitor" VALUES (2,"Guti Midfielder",5,28);
33
+ INSERT INTO "visitor" VALUES (3,"Arjen Robben",1,27);
34
+ INSERT INTO "visitor" VALUES (4,"Raúl Brown",2,56);
35
+ INSERT INTO "visitor" VALUES (5,"Fernando Gago",6,36);
36
+ INSERT INTO "visitor" VALUES (6,"Rafael van der Vaart",1,25);
37
+
38
+ CREATE TABLE "visit" (
39
+ "Museum_ID" int,
40
+ "visitor_ID" text,
41
+ "Num_of_Ticket" int,
42
+ "Total_spent" real,
43
+ PRIMARY KEY ("Museum_ID","visitor_ID"),
44
+ FOREIGN KEY ("Museum_ID") REFERENCES `museum`("Museum_ID"),
45
+ FOREIGN KEY ("visitor_ID") REFERENCES `visitor`("ID")
46
+ );
47
+
48
+ INSERT INTO "visit" VALUES (1,5,20,320.14);
49
+ INSERT INTO "visit" VALUES (2,5,4,89.98);
50
+ INSERT INTO "visit" VALUES (4,3,10,320.44);
51
+ INSERT INTO "visit" VALUES (2,3,24,209.98);
52
+ INSERT INTO "visit" VALUES (4,6,3,20.44);
53
+ INSERT INTO "visit" VALUES (8,6,2,19.98);
54
+
55
+
56
+
database/music_1/music_1.sqlite ADDED
Binary file (36.9 kB). View file
 
database/musical/musical.sqlite ADDED
Binary file (20.5 kB). View file
 
database/network_2/network_2.sqlite ADDED
Binary file (16.4 kB). View file
 
database/news_report/news_report.sqlite ADDED
Binary file (28.7 kB). View file
 
database/party_host/schema.sql ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "party" (
5
+ "Party_ID" int,
6
+ "Party_Theme" text,
7
+ "Location" text,
8
+ "First_year" text,
9
+ "Last_year" text,
10
+ "Number_of_hosts" int,
11
+ PRIMARY KEY ("Party_ID")
12
+ );
13
+
14
+ CREATE TABLE "host" (
15
+ "Host_ID" int,
16
+ "Name" text,
17
+ "Nationality" text,
18
+ "Age" text,
19
+ PRIMARY KEY ("Host_ID")
20
+ );
21
+
22
+ INSERT INTO "party" VALUES (1,"Spring","Hemkade 48 Zaandam","2000","2001","5");
23
+ INSERT INTO "party" VALUES (2,"Club Q-BASE","Hemkade 48 Zaandam","2002","2002","23");
24
+ INSERT INTO "party" VALUES (3,"Hardcore Resurrection","Various locations","2000","2003","4");
25
+ INSERT INTO "party" VALUES (4,"Teqnology","Heineken Music Hall Amsterdam","2002","2004","6");
26
+ INSERT INTO "party" VALUES (5,"Qlubtempo","Hemkade 48 Zaandam, Heineken Music Hall Amsterdam","2001","2007","31");
27
+ INSERT INTO "party" VALUES (6,"QrimeTime","Heineken Music Hall Amsterdam","2004","2007","4");
28
+ INSERT INTO "party" VALUES (7,"In Qontrol","RAI Amsterdam","2004","2010","7");
29
+ INSERT INTO "party" VALUES (8,"Houseqlassics","Various locations","1999","2010","18");
30
+
31
+
32
+ INSERT INTO "host" VALUES (1,"Austin Daye","United States",43);
33
+ INSERT INTO "host" VALUES (2,"Lloyd Daniels","United States",37);
34
+ INSERT INTO "host" VALUES (3,"Kornel David","Hungary",31);
35
+ INSERT INTO "host" VALUES (4,"Antonio Davis","United States",26);
36
+ INSERT INTO "host" VALUES (5,"Ed Davis","United States",45);
37
+ INSERT INTO "host" VALUES (6,"Hubert Davis","United States",47);
38
+ INSERT INTO "host" VALUES (7,"Carlos Delfino","Argentina",30);
39
+ INSERT INTO "host" VALUES (8,"Justin Dentmon","United States",40);
40
+ INSERT INTO "host" VALUES (9,"DeMar DeRozan","United States",31);
41
+ INSERT INTO "host" VALUES (10,"Derrick Dial","United States",60);
42
+
43
+
44
+
45
+ CREATE TABLE "party_host" (
46
+ "Party_ID" int,
47
+ "Host_ID" int,
48
+ "Is_Main_in_Charge" bool,
49
+ PRIMARY KEY ("Party_ID","Host_ID"),
50
+ FOREIGN KEY ("Host_ID") REFERENCES `host`("Host_ID"),
51
+ FOREIGN KEY ("Party_ID") REFERENCES `party`("Party_ID")
52
+ );
53
+
54
+ INSERT INTO "party_host" VALUES (1,1,"T");
55
+ INSERT INTO "party_host" VALUES (8,7,"T");
56
+ INSERT INTO "party_host" VALUES (6,10,"F");
57
+ INSERT INTO "party_host" VALUES (4,2,"T");
58
+ INSERT INTO "party_host" VALUES (2,5,"F");
59
+ INSERT INTO "party_host" VALUES (6,3,"T");
60
+
database/perpetrator/perpetrator.sqlite ADDED
Binary file (20.5 kB). View file
 
database/perpetrator/schema.sql ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "perpetrator" (
4
+ "Perpetrator_ID" int,
5
+ "People_ID" int,
6
+ "Date" text,
7
+ "Year" real,
8
+ "Location" text,
9
+ "Country" text,
10
+ "Killed" int,
11
+ "Injured" int,
12
+ PRIMARY KEY ("Perpetrator_ID"),
13
+ FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
14
+ );
15
+
16
+ CREATE TABLE "people" (
17
+ "People_ID" int,
18
+ "Name" text,
19
+ "Height" real,
20
+ "Weight" real,
21
+ "Home Town" text,
22
+ PRIMARY KEY ("People_ID")
23
+ );
24
+
25
+
26
+
27
+ INSERT INTO "people" VALUES (1,"Ron Baxter","6.4","205","Los Angeles, CA");
28
+ INSERT INTO "people" VALUES (2,"Brent Boyd","6.3","185","Baton Rouge, LA");
29
+ INSERT INTO "people" VALUES (3,"Tyrone Brayan","6.7","220","Placentia, CA");
30
+ INSERT INTO "people" VALUES (4,"Rob Cunningham","6.8","215","Westport, CT");
31
+ INSERT INTO "people" VALUES (5,"John Danks","6.6","190","Beaver Dam, KY");
32
+ INSERT INTO "people" VALUES (6,"Ovie Dotson","6.5","200","San Antonio, TX");
33
+ INSERT INTO "people" VALUES (7,"Gary Goodner","6.7","220","Denton, TX");
34
+ INSERT INTO "people" VALUES (8,"Henry Johnson","6.6","190","Los Angeles, CA");
35
+ INSERT INTO "people" VALUES (9,"Jim Krivacs","6.1","160","Indianapolis, IN");
36
+ INSERT INTO "people" VALUES (10,"John Moore","6.1","170","Altoona, PA");
37
+ INSERT INTO "people" VALUES (11,"Mike Murphy","6.8","215","Austin, TX");
38
+
39
+
40
+ INSERT INTO "perpetrator" VALUES (1,1,"04.26 April 26/27","1982","Uiryeong","South Korea","56","37");
41
+ INSERT INTO "perpetrator" VALUES (2,3,"11.18 Nov. 18","1995","Zhaodong","China","32","16");
42
+ INSERT INTO "perpetrator" VALUES (3,4,"05.21 May 21","1938","Kaio","Japan","30","3");
43
+ INSERT INTO "perpetrator" VALUES (4,6,"09.20 Sep. 20","1994","Beijing","China","23","80");
44
+ INSERT INTO "perpetrator" VALUES (5,8,"04.00 April","1950","Nainital","India","22","0");
45
+
database/phone_1/phone_1.sqlite ADDED
Binary file (28.7 kB). View file
 
database/pilot_record/schema.sql ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "aircraft" (
4
+ "Aircraft_ID" int,
5
+ "Order_Year" int,
6
+ "Manufacturer" text,
7
+ "Model" text,
8
+ "Fleet_Series" text,
9
+ "Powertrain" text,
10
+ "Fuel_Propulsion" text,
11
+ PRIMARY KEY ("Aircraft_ID")
12
+ );
13
+
14
+
15
+ CREATE TABLE "pilot" (
16
+ "Pilot_ID" int,
17
+ "Pilot_name" text,
18
+ "Rank" int,
19
+ "Age" int,
20
+ "Nationality" text,
21
+ "Position" text,
22
+ "Join_Year" int,
23
+ "Team" text,
24
+ PRIMARY KEY ("Pilot_ID")
25
+ );
26
+
27
+ INSERT INTO "aircraft" VALUES (1,"1992","Gillig","Phantom (High Floor)","444-464 (21)","DD S50EGR Allison WB-400R","Diesel");
28
+ INSERT INTO "aircraft" VALUES (2,"1996","Gillig","Phantom (High Floor)","465-467 (3)","DD S50 Allison WB-400R","Diesel");
29
+ INSERT INTO "aircraft" VALUES (3,"1998","Gillig","Phantom (High Floor)","468-473 (6)","DD S50 Allison WB-400R","Diesel");
30
+ INSERT INTO "aircraft" VALUES (4,"2000","Gillig","Advantage (Low Floor)","474-481 (8)","Cummins ISC Allison WB-400R","Diesel");
31
+ INSERT INTO "aircraft" VALUES (5,"2002","Gillig","Advantage (Low Floor)","482-492 (11)","Cummins ISL Allison WB-400R","Diesel");
32
+ INSERT INTO "aircraft" VALUES (6,"2010","NFI","GE40LFR","300-309 (10)","Ford Triton V10 ISE-Thundervolt TB40-HG","Hybrid");
33
+ INSERT INTO "aircraft" VALUES (7,"2011","NFI","C40LFR","310-329 (20)","Cummins Westport ISL-G Allison WB-400R","CNG");
34
+
35
+
36
+ INSERT INTO "pilot" VALUES (1,"Patrick O'Bryant","13",33,"United States","Center Team","2009","Bradley");
37
+ INSERT INTO "pilot" VALUES (2,"Jermaine O'Neal","6",40,"United States","Forward-Center Team","2008","Eau Claire High School");
38
+ INSERT INTO "pilot" VALUES (3,"Dan O'Sullivan","45",37,"United States","Center Team","1999","Fordham");
39
+ INSERT INTO "pilot" VALUES (4,"Charles Oakley","34",22,"United Kindom","Forward Team","2001","Virginia Union");
40
+ INSERT INTO "pilot" VALUES (5,"Hakeem Olajuwon","34",32,"Nigeria","Center Team","2010","Houston");
41
+
42
+
43
+ CREATE TABLE "pilot_record" (
44
+ "Record_ID" int,
45
+ "Pilot_ID" int,
46
+ "Aircraft_ID" int,
47
+ "Date" text,
48
+ PRIMARY KEY ("Pilot_ID", "Aircraft_ID", "Date"),
49
+ FOREIGN KEY (`Pilot_ID`) REFERENCES `pilot`(`Pilot_ID`),
50
+ FOREIGN KEY (`Aircraft_ID`) REFERENCES `aircraft`(`Aircraft_ID`)
51
+ );
52
+
53
+ INSERT INTO "pilot_record" VALUES (1,1,1,"2003/01/04");
54
+ INSERT INTO "pilot_record" VALUES (2,2,1,"2004/01/04");
55
+ INSERT INTO "pilot_record" VALUES (3,1,4,"2005/01/04");
56
+ INSERT INTO "pilot_record" VALUES (4,3,6,"2006/01/04");
57
+ INSERT INTO "pilot_record" VALUES (5,4,2,"2007/01/04");
58
+ INSERT INTO "pilot_record" VALUES (6,1,5,"2008/01/04");
59
+
database/products_gen_characteristics/products_gen_characteristics.sqlite ADDED
Binary file (41 kB). View file
 
database/products_gen_characteristics/schema.sql ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Ref_Characteristic_Types` (
3
+ `characteristic_type_code` VARCHAR(15) PRIMARY KEY,
4
+ `characteristic_type_description` VARCHAR(80)
5
+ );
6
+ CREATE TABLE `Ref_Colors` (
7
+ `color_code` VARCHAR(15) PRIMARY KEY,
8
+ `color_description` VARCHAR(80)
9
+ );
10
+ CREATE TABLE `Ref_Product_Categories` (
11
+ `product_category_code` VARCHAR(15) PRIMARY KEY,
12
+ `product_category_description` VARCHAR(80),
13
+ `unit_of_measure` VARCHAR(20)
14
+ );
15
+ INSERT INTO Ref_Characteristic_Types (`characteristic_type_code`, `characteristic_type_description`) VALUES ('Grade', 'Grade');
16
+ INSERT INTO Ref_Characteristic_Types (`characteristic_type_code`, `characteristic_type_description`) VALUES ('Purity', 'Purity');
17
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('9', 'red');
18
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('5', 'green');
19
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('1', 'yellow');
20
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('4', 'blue');
21
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('7', 'black');
22
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('2', 'white');
23
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('8', 'purple');
24
+ INSERT INTO Ref_Colors (`color_code`, `color_description`) VALUES ('3', 'gray');
25
+ INSERT INTO Ref_Product_Categories (`product_category_code`, `product_category_description`, `unit_of_measure`) VALUES ('Herbs', 'Herbs', 'Handful ');
26
+ INSERT INTO Ref_Product_Categories (`product_category_code`, `product_category_description`, `unit_of_measure`) VALUES ('Seeds', 'Seeds', 'Weight - pound,kilo.');
27
+ INSERT INTO Ref_Product_Categories (`product_category_code`, `product_category_description`, `unit_of_measure`) VALUES ('Spices', 'Spices', 'Weight - pound,kilo.');
28
+
29
+ CREATE TABLE `Characteristics` (
30
+ `characteristic_id` INTEGER PRIMARY KEY,
31
+ `characteristic_type_code` VARCHAR(15) NOT NULL,
32
+ `characteristic_data_type` VARCHAR(10),
33
+ `characteristic_name` VARCHAR(80),
34
+ `other_characteristic_details` VARCHAR(255),
35
+ FOREIGN KEY (`characteristic_type_code` ) REFERENCES `Ref_Characteristic_Types`(`characteristic_type_code` )
36
+ );
37
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (1, 'Grade', 'numquam', 'slow', NULL);
38
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (2, 'Grade', 'doloribus', 'fast', NULL);
39
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (3, 'Purity', 'rem', 'warm', NULL);
40
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (4, 'Grade', 'aut', 'hot', NULL);
41
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (5, 'Purity', 'impedit', 'hot', NULL);
42
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (6, 'Purity', 'qui', 'warm', NULL);
43
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (7, 'Grade', 'et', 'cool', NULL);
44
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (8, 'Grade', 'dolores', 'cool', NULL);
45
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (9, 'Grade', 'quam', 'cool', NULL);
46
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (10, 'Grade', 'velit', 'fast', NULL);
47
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (11, 'Purity', 'at', 'fast', NULL);
48
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (12, 'Grade', 'totam', 'error', NULL);
49
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (13, 'Purity', 'mollitia', 'slow', NULL);
50
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (14, 'Purity', 'placeat', 'slow', NULL);
51
+ INSERT INTO Characteristics (`characteristic_id`, `characteristic_type_code`, `characteristic_data_type`, `characteristic_name`, `other_characteristic_details`) VALUES (15, 'Grade', 'facere', 'slow', NULL);
52
+
53
+
54
+ CREATE TABLE `Products` (
55
+ `product_id` INTEGER PRIMARY KEY,
56
+ `color_code` VARCHAR(15) NOT NULL,
57
+ `product_category_code` VARCHAR(15) NOT NULL,
58
+ `product_name` VARCHAR(80),
59
+ `typical_buying_price` VARCHAR(20),
60
+ `typical_selling_price` VARCHAR(20),
61
+ `product_description` VARCHAR(255),
62
+ `other_product_details` VARCHAR(255),
63
+ FOREIGN KEY (`product_category_code` ) REFERENCES `Ref_Product_Categories`(`product_category_code` ),FOREIGN KEY (`color_code` ) REFERENCES `Ref_Colors`(`color_code` )
64
+ );
65
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (1, '4', 'Spices', 'cumin', '', '2878.3', 'et', NULL);
66
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (2, '2', 'Spices', 'peper', '352447.2874677', '1892070.2803543', 'rerum', NULL);
67
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (3, '9', 'Herbs', 'basil', '503.8431967', '0.1859512', 'officia', NULL);
68
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (4, '1', 'Herbs', 'borage', '', '10377614.847385', 'blanditiis', NULL);
69
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (5, '4', 'Spices', 'chili', '', '39446', 'eius', NULL);
70
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (6, '4', 'Seeds', 'ginger', '5.578', '52735.6101', 'doloribus', NULL);
71
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (7, '9', 'Seeds', 'sesame', '1284268.0659', '68205825.7', 'et', NULL);
72
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (8, '9', 'Herbs', 'caraway', '24493', '', 'nulla', NULL);
73
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (9, '2', 'Herbs', 'catnip', '12008702.623', '21577.891642', 'vel', NULL);
74
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (10, '5', 'Seeds', 'flax', '339404395.7', '59622629.74', 'et', NULL);
75
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (11, '7', 'Herbs', 'chervil', '', '', 'minus', NULL);
76
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (12, '4', 'Seeds', 'voluptatem', '162', '149', 'officia', NULL);
77
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (13, '5', 'Spices', 'cinnam', '1686539.4', '17595111.4', 'nisi', NULL);
78
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (14, '4', 'Seeds', 'lotus', '43221310.465574', '63589.4054376', 'exercitationem', NULL);
79
+ INSERT INTO Products (`product_id`, `color_code`, `product_category_code`, `product_name`, `typical_buying_price`, `typical_selling_price`, `product_description`, `other_product_details`) VALUES (15, '2', 'Herbs', 'laurel', '', '57857', 'ut', NULL);
80
+
81
+
82
+ CREATE TABLE `Product_Characteristics` (
83
+ `product_id` INTEGER NOT NULL,
84
+ `characteristic_id` INTEGER NOT NULL,
85
+ `product_characteristic_value` VARCHAR(50),
86
+ FOREIGN KEY (`characteristic_id` ) REFERENCES `Characteristics`(`characteristic_id` ),
87
+ FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` )
88
+ );
89
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (13, 13, 'low');
90
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (11, 2, 'low');
91
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (5, 15, 'low');
92
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (1, 13, 'low');
93
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (7, 12, 'low');
94
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (11, 6, 'low');
95
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (7, 2, 'medium');
96
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (12, 10, 'medium');
97
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (8, 11, 'high');
98
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (14, 4, 'medium');
99
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (11, 3, 'medium');
100
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (6, 15, 'high');
101
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (11, 3, 'high');
102
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (6, 10, 'high');
103
+ INSERT INTO Product_Characteristics (`product_id`, `characteristic_id`, `product_characteristic_value`) VALUES (12, 2, 'high');
database/race_track/race_track.sqlite ADDED
Binary file (20.5 kB). View file
 
database/race_track/schema.sql ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "race" (
4
+ "Race_ID" int,
5
+ "Name" text,
6
+ "Class" text,
7
+ "Date" text,
8
+ "Track_ID" text,
9
+ PRIMARY KEY ("Race_ID"),
10
+ FOREIGN KEY ("Track_ID") REFERENCES "track"("Track_ID")
11
+ );
12
+
13
+ CREATE TABLE "track" (
14
+ "Track_ID" int,
15
+ "Name" text,
16
+ "Location" text,
17
+ "Seating" real,
18
+ "Year_Opened" real,
19
+ PRIMARY KEY ("Track_ID")
20
+ );
21
+
22
+ INSERT INTO "track" VALUES (1,"Auto Club Speedway","Fontana, CA","92000","1997");
23
+ INSERT INTO "track" VALUES (2,"Chicagoland Speedway","Joliet, IL","75000","2001");
24
+ INSERT INTO "track" VALUES (3,"Darlington Raceway","Darlington, SC","63000","1950");
25
+ INSERT INTO "track" VALUES (4,"Daytona International Speedway","Daytona Beach, FL","168000","1959");
26
+ INSERT INTO "track" VALUES (5,"Homestead-Miami Speedway","Homestead, FL","65000","1995");
27
+ INSERT INTO "track" VALUES (6,"Kansas Speedway","Kansas City, KS","81687","2001");
28
+ INSERT INTO "track" VALUES (7,"Martinsville Speedway","Ridgeway, VA","65000","1947");
29
+ INSERT INTO "track" VALUES (8,"Michigan International Speedway","Brooklyn, MI","137243","1968");
30
+ INSERT INTO "track" VALUES (9,"Phoenix International Raceway","Avondale, AZ","76812","1964");
31
+
32
+ INSERT INTO "race" VALUES (1,"Rolex 24 At Daytona","DP/GT","January 26 January 27",1);
33
+ INSERT INTO "race" VALUES (2,"Gainsco Grand Prix of Miami","DP/GT","March 29",2);
34
+ INSERT INTO "race" VALUES (3,"Mexico City 250","DP/GT","April 19",2);
35
+ INSERT INTO "race" VALUES (4,"Bosch Engineering 250 at VIR","GT","April 27",4);
36
+ INSERT INTO "race" VALUES (5,"RumBum.com 250","DP/GT","May 17",5);
37
+ INSERT INTO "race" VALUES (6,"Lime Rock GT Classic 250","GT","May 26",6);
38
+ INSERT INTO "race" VALUES (7,"Sahlen's Six Hours of the Glen","DP/GT","June 7",7);
39
+
database/sakila_1/sakila_1.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fe25744a6e2acf29295eba0fb73a98065008c0a365b92a86de6237310a72444
3
+ size 3706880
database/ship_1/ship_1.sqlite ADDED
Binary file (20.5 kB). View file