Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +13 -0
- database/academic/academic.sqlite +0 -0
- database/academic/schema.sql +108 -0
- database/activity_1/activity_1.sqlite +0 -0
- database/activity_1/schema.sql +328 -0
- database/aircraft/aircraft.sqlite +0 -0
- database/aircraft/schema.sql +108 -0
- database/allergy_1/allergy_1.sqlite +0 -0
- database/allergy_1/schema.sql +132 -0
- database/apartment_rentals/apartment_rentals.sqlite +0 -0
- database/apartment_rentals/schema.sql +170 -0
- database/architecture/architecture.sqlite +0 -0
- database/architecture/schema.sql +65 -0
- database/assets_maintenance/assets_maintenance.sqlite +0 -0
- database/assets_maintenance/schema.sql +355 -0
- database/baseball_1/baseball_1.sqlite +3 -0
- database/baseball_1/schema.sql +3 -0
- database/battle_death/battle_death.sqlite +0 -0
- database/battle_death/schema.sql +65 -0
- database/behavior_monitoring/behavior_monitoring.sqlite +0 -0
- database/behavior_monitoring/schema.sql +258 -0
- database/bike_1/bike_1.sqlite +3 -0
- database/bike_1/schema.sql +0 -0
- database/body_builder/body_builder.sqlite +0 -0
- database/body_builder/schema.sql +37 -0
- database/book_2/book_2.sqlite +0 -0
- database/book_2/schema.sql +40 -0
- database/browser_web/browser_web.sqlite +0 -0
- database/browser_web/schema.sql +58 -0
- database/candidate_poll/candidate_poll.sqlite +0 -0
- database/candidate_poll/schema.sql +42 -0
- database/car_1/annotation.json +62 -0
- database/car_1/car_1.json +216 -0
- database/car_1/car_1.sql +52 -0
- database/car_1/car_1.sqlite +0 -0
- database/car_1/data_csv/README.CARS.TXT +149 -0
- database/car_1/data_csv/car-makers.csv +24 -0
- database/car_1/data_csv/car-names.csv +407 -0
- database/car_1/data_csv/cars-data.csv +407 -0
- database/car_1/data_csv/cars.desc +94 -0
- database/car_1/data_csv/continents.csv +6 -0
- database/car_1/data_csv/countries.csv +16 -0
- database/car_1/data_csv/model-list.csv +37 -0
- database/car_1/link.txt +1 -0
- database/car_1/q.txt +27 -0
- database/chinook_1/annotation.json +5 -0
- database/chinook_1/chinook_1.sqlite +0 -0
- database/cinema/cinema.sqlite +0 -0
- database/cinema/schema.sql +60 -0
- database/city_record/city_record.sqlite +0 -0
.gitattributes
CHANGED
@@ -56,3 +56,16 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
59 |
+
database/baseball_1/baseball_1.sqlite filter=lfs diff=lfs merge=lfs -text
|
60 |
+
database/baseball_1/schema.sql filter=lfs diff=lfs merge=lfs -text
|
61 |
+
database/bike_1/bike_1.sqlite filter=lfs diff=lfs merge=lfs -text
|
62 |
+
database/college_2/college_2.sqlite filter=lfs diff=lfs merge=lfs -text
|
63 |
+
database/flight_4/flight_4.sqlite filter=lfs diff=lfs merge=lfs -text
|
64 |
+
database/formula_1/data_csv/lapTimes.csv filter=lfs diff=lfs merge=lfs -text
|
65 |
+
database/formula_1/formula_1.sqlite filter=lfs diff=lfs merge=lfs -text
|
66 |
+
database/sakila_1/sakila_1.sqlite filter=lfs diff=lfs merge=lfs -text
|
67 |
+
database/soccer_1/schema.sql filter=lfs diff=lfs merge=lfs -text
|
68 |
+
database/soccer_1/soccer_1.sqlite filter=lfs diff=lfs merge=lfs -text
|
69 |
+
database/store_1/store_1.sqlite filter=lfs diff=lfs merge=lfs -text
|
70 |
+
database/wta_1/wta_1.sqlite filter=lfs diff=lfs merge=lfs -text
|
71 |
+
train.json filter=lfs diff=lfs merge=lfs -text
|
database/academic/academic.sqlite
ADDED
Binary file (123 kB). View file
|
|
database/academic/schema.sql
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
CREATE TABLE "author" (
|
3 |
+
"aid" int,
|
4 |
+
"homepage" text,
|
5 |
+
"name" text,
|
6 |
+
"oid" int,
|
7 |
+
primary key("aid")
|
8 |
+
);
|
9 |
+
CREATE TABLE "conference" (
|
10 |
+
"cid" int,
|
11 |
+
"homepage" text,
|
12 |
+
"name" text,
|
13 |
+
primary key ("cid")
|
14 |
+
);
|
15 |
+
CREATE TABLE "domain" (
|
16 |
+
"did" int,
|
17 |
+
"name" text,
|
18 |
+
primary key ("did")
|
19 |
+
);
|
20 |
+
CREATE TABLE "domain_author" (
|
21 |
+
"aid" int,
|
22 |
+
"did" int,
|
23 |
+
primary key ("did", "aid"),
|
24 |
+
foreign key("aid") references `author`("aid"),
|
25 |
+
foreign key("did") references `domain`("did")
|
26 |
+
);
|
27 |
+
|
28 |
+
CREATE TABLE "domain_conference" (
|
29 |
+
"cid" int,
|
30 |
+
"did" int,
|
31 |
+
primary key ("did", "cid"),
|
32 |
+
foreign key("cid") references `conference`("cid"),
|
33 |
+
foreign key("did") references `domain`("did")
|
34 |
+
);
|
35 |
+
CREATE TABLE "journal" (
|
36 |
+
"homepage" text,
|
37 |
+
"jid" int,
|
38 |
+
"name" text,
|
39 |
+
primary key("jid")
|
40 |
+
);
|
41 |
+
CREATE TABLE "domain_journal" (
|
42 |
+
"did" int,
|
43 |
+
"jid" int,
|
44 |
+
primary key ("did", "jid"),
|
45 |
+
foreign key("jid") references "journal"("jid"),
|
46 |
+
foreign key("did") references "domain"("did")
|
47 |
+
);
|
48 |
+
CREATE TABLE "keyword" (
|
49 |
+
"keyword" text,
|
50 |
+
"kid" int,
|
51 |
+
primary key("kid")
|
52 |
+
);
|
53 |
+
CREATE TABLE "domain_keyword" (
|
54 |
+
"did" int,
|
55 |
+
"kid" int,
|
56 |
+
primary key ("did", "kid"),
|
57 |
+
foreign key("kid") references "keyword"("kid"),
|
58 |
+
foreign key("did") references "domain"("did")
|
59 |
+
);
|
60 |
+
CREATE TABLE "publication" (
|
61 |
+
"abstract" text,
|
62 |
+
"cid" text,
|
63 |
+
"citation_num" int,
|
64 |
+
"jid" int,
|
65 |
+
"pid" int,
|
66 |
+
"reference_num" int,
|
67 |
+
"title" text,
|
68 |
+
"year" int,
|
69 |
+
primary key("pid"),
|
70 |
+
foreign key("jid") references "journal"("jid"),
|
71 |
+
foreign key("cid") references "conference"("cid")
|
72 |
+
);
|
73 |
+
CREATE TABLE "domain_publication" (
|
74 |
+
"did" int,
|
75 |
+
"pid" int,
|
76 |
+
primary key ("did", "pid"),
|
77 |
+
foreign key("pid") references "publication"("pid"),
|
78 |
+
foreign key("did") references "domain"("did")
|
79 |
+
);
|
80 |
+
|
81 |
+
CREATE TABLE "organization" (
|
82 |
+
"continent" text,
|
83 |
+
"homepage" text,
|
84 |
+
"name" text,
|
85 |
+
"oid" int,
|
86 |
+
primary key("oid")
|
87 |
+
);
|
88 |
+
|
89 |
+
CREATE TABLE "publication_keyword" (
|
90 |
+
"pid" int,
|
91 |
+
"kid" int,
|
92 |
+
primary key ("kid", "pid"),
|
93 |
+
foreign key("pid") references "publication"("pid"),
|
94 |
+
foreign key("kid") references "keyword"("kid")
|
95 |
+
);
|
96 |
+
CREATE TABLE "writes" (
|
97 |
+
"aid" int,
|
98 |
+
"pid" int,
|
99 |
+
primary key ("aid", "pid"),
|
100 |
+
foreign key("pid") references "publication"("pid"),
|
101 |
+
foreign key("aid") references "author"("aid")
|
102 |
+
);
|
103 |
+
CREATE TABLE "cite" (
|
104 |
+
"cited" int,
|
105 |
+
"citing" int,
|
106 |
+
foreign key("cited") references "publication"("pid"),
|
107 |
+
foreign key("citing") references "publication"("pid")
|
108 |
+
);
|
database/activity_1/activity_1.sqlite
ADDED
Binary file (24.6 kB). View file
|
|
database/activity_1/schema.sql
ADDED
@@ -0,0 +1,328 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
create table Activity (
|
2 |
+
actid INTEGER PRIMARY KEY,
|
3 |
+
activity_name varchar(25)
|
4 |
+
);
|
5 |
+
|
6 |
+
create table Participates_in (
|
7 |
+
stuid INTEGER,
|
8 |
+
actid INTEGER,
|
9 |
+
FOREIGN KEY(stuid) REFERENCES Student(StuID),
|
10 |
+
FOREIGN KEY(actid) REFERENCES Activity(actid)
|
11 |
+
);
|
12 |
+
|
13 |
+
create table Faculty_Participates_in (
|
14 |
+
FacID INTEGER,
|
15 |
+
actid INTEGER,
|
16 |
+
FOREIGN KEY(FacID) REFERENCES Faculty(FacID),
|
17 |
+
FOREIGN KEY(actid) REFERENCES Activity(actid)
|
18 |
+
);
|
19 |
+
|
20 |
+
create table Student (
|
21 |
+
StuID INTEGER PRIMARY KEY,
|
22 |
+
LName VARCHAR(12),
|
23 |
+
Fname VARCHAR(12),
|
24 |
+
Age INTEGER,
|
25 |
+
Sex VARCHAR(1),
|
26 |
+
Major INTEGER,
|
27 |
+
Advisor INTEGER,
|
28 |
+
city_code VARCHAR(3)
|
29 |
+
);
|
30 |
+
|
31 |
+
create table Faculty (
|
32 |
+
FacID INTEGER PRIMARY KEY,
|
33 |
+
Lname VARCHAR(15),
|
34 |
+
Fname VARCHAR(15),
|
35 |
+
Rank VARCHAR(15),
|
36 |
+
Sex VARCHAR(1),
|
37 |
+
Phone INTEGER,
|
38 |
+
Room VARCHAR(5),
|
39 |
+
Building VARCHAR(13)
|
40 |
+
);
|
41 |
+
|
42 |
+
|
43 |
+
insert into Faculty values ( 1082, 'Giuliano', 'Mark', 'Instructor', 'M', 2424, '224', 'NEB');
|
44 |
+
insert into Faculty values ( 1121, 'Goodrich', 'Michael', 'Professor', 'M', 3593, '219', 'NEB');
|
45 |
+
insert into Faculty values ( 1148, 'Masson', 'Gerald', 'Professor', 'M', 3402, '224B', 'NEB');
|
46 |
+
insert into Faculty values ( 1193, 'Jones', 'Stacey', 'Instructor', 'F', 3550, '224', 'NEB');
|
47 |
+
insert into Faculty values ( 2192, 'Yarowsky', 'David', 'AsstProf', 'M', 6587, '324', 'NEB');
|
48 |
+
insert into Faculty values ( 3457, 'Smith', 'Scott', 'AssocProf', 'M', 1035, '318', 'NEB');
|
49 |
+
insert into Faculty values ( 4230, 'Houlahan', 'Joanne', 'Instructor', 'F', 1260, '328', 'NEB');
|
50 |
+
insert into Faculty values ( 6112, 'Beach', 'Louis', 'Instructor', 'M', 1838, '207', 'NEB');
|
51 |
+
insert into Faculty values ( 7712, 'Awerbuch', 'Baruch', 'Professor', 'M', 2105, '220', 'NEB');
|
52 |
+
insert into Faculty values ( 7792, 'Brill', 'Eric', 'AsstProf', 'M', 2303, '324B', 'NEB');
|
53 |
+
insert into Faculty values ( 7723, 'Taylor', 'Russell', 'Professor', 'M', 2435, '317', 'NEB');
|
54 |
+
insert into Faculty values ( 8114, 'Angelopoulou', 'Ellie', 'Instructor', 'F', 2152, '316', 'NEB');
|
55 |
+
insert into Faculty values ( 8423, 'Kumar', 'Subodh', 'AsstProf', 'M', 2522, '218', 'NEB');
|
56 |
+
insert into Faculty values ( 8721, 'Wolff', 'Lawrence', 'AssocProf', 'M', 2342, '316', 'NEB');
|
57 |
+
insert into Faculty values ( 8741, 'Salzberg', 'Steven', 'AssocProf', 'M', 2641, '324A', 'NEB');
|
58 |
+
insert into Faculty values ( 8918, 'Amir', 'Yair', 'AsstProf', 'M', 2672, '308', 'NEB');
|
59 |
+
insert into Faculty values ( 9172, 'Kosaraju', 'Rao', 'Professor', 'M', 2757, '319', 'NEB');
|
60 |
+
insert into Faculty values ( 9826, 'Delcher', 'Arthur', 'Instructor', 'M', 2956, '329', 'NEB');
|
61 |
+
insert into Faculty values ( 1172, 'Runolfsson', 'Thordur', 'AssocProf', 'M', 3121, '119', 'Barton');
|
62 |
+
insert into Faculty values ( 1177, 'Naiman', 'Daniel', 'Professor', 'M', 3571, '288', 'Krieger');
|
63 |
+
insert into Faculty values ( 1823, 'Davidson', 'Frederic', 'Professor', 'M', 5629, '119', 'Barton');
|
64 |
+
insert into Faculty values ( 2028, 'Brody', 'William', 'Professor', 'M', 6073, '119', 'Barton');
|
65 |
+
insert into Faculty values ( 2119, 'Meyer', 'Gerard', 'Professor', 'M', 6350, '119', 'Barton');
|
66 |
+
insert into Faculty values ( 2291, 'Scheinerman', 'Edward', 'Professor', 'M', 6654, '288', 'Krieger');
|
67 |
+
insert into Faculty values ( 2311, 'Priebe', 'Carey', 'AsstProf', 'M', 6953, '288', 'Krieger');
|
68 |
+
insert into Faculty values ( 2738, 'Fill', 'James', 'Professor', 'M', 8209, '288', 'Krieger');
|
69 |
+
insert into Faculty values ( 2881, 'Goldman', 'Alan', 'Professor', 'M', 8335, '288', 'Krieger');
|
70 |
+
insert into Faculty values ( 4432, 'Burzio', 'Luigi', 'Professor', 'M', 1813, '288', 'Krieger');
|
71 |
+
insert into Faculty values ( 5718, 'Frank', 'Robert', 'AsstProf', 'M', 1751, '288', 'Krieger');
|
72 |
+
insert into Faculty values ( 6182, 'Cheng', 'Cheng', 'AsstProf', 'M', 1856, '288', 'Krieger');
|
73 |
+
insert into Faculty values ( 6191, 'Kaplan', 'Alexander', 'Professor', 'M', 1825, '119', 'Barton');
|
74 |
+
insert into Faculty values ( 6330, 'Byrne', 'William', 'Instructor', 'M', 1691, '119', 'Barton');
|
75 |
+
insert into Faculty values ( 6541, 'Han', 'Shih-Ping', 'Professor', 'M', 1914, '288', 'Krieger');
|
76 |
+
insert into Faculty values ( 6910, 'Smolensky', 'Paul', 'Professor', 'M', 2072, '288', 'Krieger');
|
77 |
+
insert into Faculty values ( 6925, 'Iglesias', 'Pablo', 'AsstProf', 'M', 2021, '119', 'Barton');
|
78 |
+
insert into Faculty values ( 7134, 'Goutsias', 'John', 'Professor', 'M', 2184, '119', 'Barton');
|
79 |
+
insert into Faculty values ( 7231, 'Rugh', 'Wilson', 'Professor', 'M', 2191, '119', 'Barton');
|
80 |
+
insert into Faculty values ( 7271, 'Jelinek', 'Frederick', 'Professor', 'M', 2890, '119', 'Barton');
|
81 |
+
insert into Faculty values ( 7506, 'Westgate', 'Charles', 'Professor', 'M', 2932, '119', 'Barton');
|
82 |
+
insert into Faculty values ( 8102, 'James', 'Lancelot', 'AsstProf', 'M', 2792, '288', 'Krieger');
|
83 |
+
insert into Faculty values ( 8118, 'Weinert', 'Howard', 'Professor', 'M', 3272, '119', 'Barton');
|
84 |
+
insert into Faculty values ( 8122, 'Wierman', 'John', 'Professor', 'M', 3392,'288', 'Krieger');
|
85 |
+
insert into Faculty values ( 8722, 'Cauwenberghs', 'Gert', 'AsstProf', 'M', 1372, '119', 'Barton');
|
86 |
+
insert into Faculty values ( 8723, 'Andreou', 'Andreas', 'Professor', 'M', 1402, '119', 'Barton');
|
87 |
+
insert into Faculty values ( 8772, 'Cowen', 'Lenore', 'AsstProf', 'F', 2870, '288', 'Krieger');
|
88 |
+
insert into Faculty values ( 8791, 'McCloskey', 'Michael', 'Professor', 'M', 3440, '288', 'Krieger');
|
89 |
+
insert into Faculty values ( 8989, 'Brent', 'Michael', 'AsstProf', 'M', 9373, '288', 'Krieger');
|
90 |
+
insert into Faculty values ( 9011, 'Rapp', 'Brenda', 'AsstProf', 'F', 2032, '288', 'Krieger');
|
91 |
+
insert into Faculty values ( 9191, 'Collins', 'Oliver', 'AssocProf', 'M', 5427, '119', 'Barton');
|
92 |
+
insert into Faculty values ( 9199, 'Hughes', 'Brian', 'AssocProf', 'M', 5666, '119', 'Barton');
|
93 |
+
insert into Faculty values ( 9210, 'Joseph', 'Richard', 'Professor', 'M', 5996, '119', 'Barton');
|
94 |
+
insert into Faculty values ( 9514, 'Prince', 'Jerry', 'AssocProf', 'M', 5106, '119', 'Barton');
|
95 |
+
insert into Faculty values ( 9823, 'Pang', 'Jong-Shi', 'Professor', 'M', 4366, '288', 'Krieger');
|
96 |
+
insert into Faculty values ( 9824, 'Glaser', 'Robert', 'Instructor', 'M', 4396, '119', 'Barton');
|
97 |
+
insert into Faculty values ( 9811, 'Wu', 'Colin', 'AsstProf', 'M', 2906, '288', 'Krieger');
|
98 |
+
insert into Faculty values ( 9643, 'Legendre', 'Geraldine', 'AssocProf', 'F', 8972, '288', 'Krieger');
|
99 |
+
insert into Faculty values ( 9379, 'Khurgin', 'Jacob', 'Professor', 'M', 1060, '119', 'Barton');
|
100 |
+
insert into Faculty values ( 9922, 'Hall', 'Leslie', 'AsstProf', 'F', 7332, '288', 'Krieger');
|
101 |
+
|
102 |
+
insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
|
103 |
+
insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
|
104 |
+
insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
|
105 |
+
insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
|
106 |
+
insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
|
107 |
+
insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
|
108 |
+
insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
|
109 |
+
insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
|
110 |
+
insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
|
111 |
+
insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
|
112 |
+
insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
|
113 |
+
insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
|
114 |
+
insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
|
115 |
+
insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
|
116 |
+
insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
|
117 |
+
insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
|
118 |
+
insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
|
119 |
+
insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
|
120 |
+
insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
|
121 |
+
insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
|
122 |
+
insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
|
123 |
+
insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
|
124 |
+
insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
|
125 |
+
insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
|
126 |
+
insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
|
127 |
+
insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
|
128 |
+
insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
|
129 |
+
insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
|
130 |
+
insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
|
131 |
+
insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
|
132 |
+
insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
|
133 |
+
insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
|
134 |
+
insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
|
135 |
+
insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');
|
136 |
+
|
137 |
+
insert into Activity values ( 770 , 'Mountain Climbing' ) ;
|
138 |
+
insert into Activity values ( 771 , 'Canoeing' ) ;
|
139 |
+
insert into Activity values ( 772 , 'Kayaking' ) ;
|
140 |
+
insert into Activity values ( 773 , 'Spelunking' ) ;
|
141 |
+
insert into Activity values ( 777 , 'Soccer' ) ;
|
142 |
+
insert into Activity values ( 778 , 'Baseball' ) ;
|
143 |
+
insert into Activity values ( 780 , 'Football' ) ;
|
144 |
+
insert into Activity values ( 782 , 'Volleyball' ) ;
|
145 |
+
insert into Activity values ( 799 , 'Bungee Jumping' ) ;
|
146 |
+
insert into Activity values ( 779 , 'Accordion Ensemble' ) ;
|
147 |
+
insert into Activity values ( 784 , 'Canasta' ) ;
|
148 |
+
insert into Activity values ( 785 , 'Chess' ) ;
|
149 |
+
insert into Activity values ( 776 , 'Extreme Canasta' ) ;
|
150 |
+
insert into Activity values ( 790 , 'Crossword Puzzles' ) ;
|
151 |
+
insert into Activity values ( 791 , 'Proselytizing' ) ;
|
152 |
+
insert into Activity values ( 796 , 'Square Dancing' ) ;
|
153 |
+
|
154 |
+
|
155 |
+
|
156 |
+
|
157 |
+
insert into Participates_in values (1001 , 770) ;
|
158 |
+
insert into Participates_in values (1001 , 771) ;
|
159 |
+
insert into Participates_in values (1001 , 777) ;
|
160 |
+
|
161 |
+
insert into Participates_in values (1002 , 772) ;
|
162 |
+
insert into Participates_in values (1002 , 771) ;
|
163 |
+
|
164 |
+
insert into Participates_in values (1003 , 778) ;
|
165 |
+
|
166 |
+
|
167 |
+
insert into Participates_in values (1004 , 780) ;
|
168 |
+
insert into Participates_in values (1004 , 782) ;
|
169 |
+
insert into Participates_in values (1004 , 778) ;
|
170 |
+
insert into Participates_in values (1004 , 777) ;
|
171 |
+
|
172 |
+
insert into Participates_in values (1005 , 770) ;
|
173 |
+
|
174 |
+
|
175 |
+
insert into Participates_in values (1006 , 773) ;
|
176 |
+
|
177 |
+
|
178 |
+
insert into Participates_in values (1007 , 773) ;
|
179 |
+
insert into Participates_in values (1007 , 784) ;
|
180 |
+
|
181 |
+
insert into Participates_in values (1008 , 785) ;
|
182 |
+
insert into Participates_in values (1008 , 773) ;
|
183 |
+
insert into Participates_in values (1008 , 780) ;
|
184 |
+
insert into Participates_in values (1008 , 790) ;
|
185 |
+
|
186 |
+
insert into Participates_in values (1009 , 778) ;
|
187 |
+
insert into Participates_in values (1009 , 777) ;
|
188 |
+
insert into Participates_in values (1009 , 782) ;
|
189 |
+
|
190 |
+
insert into Participates_in values (1010 , 780) ;
|
191 |
+
|
192 |
+
|
193 |
+
insert into Participates_in values (1011 , 780) ;
|
194 |
+
|
195 |
+
|
196 |
+
insert into Participates_in values (1012 , 780) ;
|
197 |
+
|
198 |
+
|
199 |
+
insert into Participates_in values (1014 , 780) ;
|
200 |
+
insert into Participates_in values (1014 , 777) ;
|
201 |
+
insert into Participates_in values (1014 , 778) ;
|
202 |
+
insert into Participates_in values (1014 , 782) ;
|
203 |
+
insert into Participates_in values (1014 , 770) ;
|
204 |
+
insert into Participates_in values (1014 , 772) ;
|
205 |
+
|
206 |
+
insert into Participates_in values (1015 , 785) ;
|
207 |
+
|
208 |
+
|
209 |
+
insert into Participates_in values (1016 , 791) ;
|
210 |
+
insert into Participates_in values (1016 , 772) ;
|
211 |
+
|
212 |
+
insert into Participates_in values (1017 , 791) ;
|
213 |
+
insert into Participates_in values (1017 , 771) ;
|
214 |
+
insert into Participates_in values (1017 , 770) ;
|
215 |
+
|
216 |
+
insert into Participates_in values (1018 , 790) ;
|
217 |
+
insert into Participates_in values (1018 , 785) ;
|
218 |
+
insert into Participates_in values (1018 , 784) ;
|
219 |
+
insert into Participates_in values (1018 , 777) ;
|
220 |
+
insert into Participates_in values (1018 , 772) ;
|
221 |
+
insert into Participates_in values (1018 , 770) ;
|
222 |
+
|
223 |
+
insert into Participates_in values (1019 , 785) ;
|
224 |
+
insert into Participates_in values (1019 , 790) ;
|
225 |
+
|
226 |
+
insert into Participates_in values (1020 , 780) ;
|
227 |
+
|
228 |
+
|
229 |
+
insert into Participates_in values (1021 , 780) ;
|
230 |
+
insert into Participates_in values (1021 , 776) ;
|
231 |
+
|
232 |
+
insert into Participates_in values (1022 , 782) ;
|
233 |
+
insert into Participates_in values (1022 , 790) ;
|
234 |
+
|
235 |
+
insert into Participates_in values (1023 , 790) ;
|
236 |
+
insert into Participates_in values (1023 , 776) ;
|
237 |
+
|
238 |
+
insert into Participates_in values (1024 , 778) ;
|
239 |
+
insert into Participates_in values (1024 , 777) ;
|
240 |
+
insert into Participates_in values (1024 , 780) ;
|
241 |
+
|
242 |
+
insert into Participates_in values (1025 , 780) ;
|
243 |
+
insert into Participates_in values (1025 , 777) ;
|
244 |
+
insert into Participates_in values (1025 , 770) ;
|
245 |
+
|
246 |
+
insert into Participates_in values (1028 , 785) ;
|
247 |
+
|
248 |
+
|
249 |
+
insert into Participates_in values (1029 , 785) ;
|
250 |
+
insert into Participates_in values (1029 , 790) ;
|
251 |
+
|
252 |
+
insert into Participates_in values (1030 , 780) ;
|
253 |
+
insert into Participates_in values (1030 , 790) ;
|
254 |
+
|
255 |
+
insert into Participates_in values (1033 , 780) ;
|
256 |
+
|
257 |
+
insert into Participates_in values (1034 , 780) ;
|
258 |
+
insert into Participates_in values (1034 , 777) ;
|
259 |
+
insert into Participates_in values (1034 , 772) ;
|
260 |
+
insert into Participates_in values (1034 , 771) ;
|
261 |
+
|
262 |
+
insert into Participates_in values (1035 , 777) ;
|
263 |
+
insert into Participates_in values (1035 , 780) ;
|
264 |
+
insert into Participates_in values (1035 , 784) ;
|
265 |
+
|
266 |
+
|
267 |
+
|
268 |
+
|
269 |
+
|
270 |
+
|
271 |
+
insert into Faculty_Participates_in values ( 1082, 784) ;
|
272 |
+
insert into Faculty_Participates_in values ( 1082, 785) ;
|
273 |
+
insert into Faculty_Participates_in values ( 1082, 790) ;
|
274 |
+
|
275 |
+
insert into Faculty_Participates_in values ( 1121, 771) ;
|
276 |
+
insert into Faculty_Participates_in values ( 1121, 777) ;
|
277 |
+
insert into Faculty_Participates_in values ( 1121, 770) ;
|
278 |
+
|
279 |
+
insert into Faculty_Participates_in values ( 1193, 790) ;
|
280 |
+
insert into Faculty_Participates_in values ( 1193, 796) ;
|
281 |
+
insert into Faculty_Participates_in values ( 1193, 773) ;
|
282 |
+
|
283 |
+
insert into Faculty_Participates_in values ( 2192, 773) ;
|
284 |
+
insert into Faculty_Participates_in values ( 2192, 790) ;
|
285 |
+
insert into Faculty_Participates_in values ( 2192, 778) ;
|
286 |
+
|
287 |
+
insert into Faculty_Participates_in values ( 3457, 782) ;
|
288 |
+
insert into Faculty_Participates_in values ( 3457, 771) ;
|
289 |
+
insert into Faculty_Participates_in values ( 3457, 784) ;
|
290 |
+
|
291 |
+
insert into Faculty_Participates_in values ( 4230, 790) ;
|
292 |
+
insert into Faculty_Participates_in values ( 4230, 785) ;
|
293 |
+
|
294 |
+
insert into Faculty_Participates_in values ( 6112, 785) ;
|
295 |
+
insert into Faculty_Participates_in values ( 6112, 772) ;
|
296 |
+
|
297 |
+
insert into Faculty_Participates_in values ( 7723, 785) ;
|
298 |
+
insert into Faculty_Participates_in values ( 7723, 770) ;
|
299 |
+
|
300 |
+
insert into Faculty_Participates_in values ( 8114, 776) ;
|
301 |
+
|
302 |
+
insert into Faculty_Participates_in values ( 8721, 770) ;
|
303 |
+
insert into Faculty_Participates_in values ( 8721, 780) ;
|
304 |
+
|
305 |
+
insert into Faculty_Participates_in values ( 8741, 780) ;
|
306 |
+
insert into Faculty_Participates_in values ( 8741, 790) ;
|
307 |
+
|
308 |
+
insert into Faculty_Participates_in values ( 8918, 780) ;
|
309 |
+
insert into Faculty_Participates_in values ( 8918, 782) ;
|
310 |
+
insert into Faculty_Participates_in values ( 8918, 771) ;
|
311 |
+
|
312 |
+
insert into Faculty_Participates_in values ( 2881, 790) ;
|
313 |
+
insert into Faculty_Participates_in values ( 2881, 784) ;
|
314 |
+
|
315 |
+
insert into Faculty_Participates_in values ( 4432, 770) ;
|
316 |
+
insert into Faculty_Participates_in values ( 4432, 771) ;
|
317 |
+
|
318 |
+
insert into Faculty_Participates_in values ( 5718, 776) ;
|
319 |
+
|
320 |
+
|
321 |
+
insert into Faculty_Participates_in values ( 6182, 776) ;
|
322 |
+
insert into Faculty_Participates_in values ( 6182, 785) ;
|
323 |
+
|
324 |
+
insert into Faculty_Participates_in values ( 1177, 790) ;
|
325 |
+
insert into Faculty_Participates_in values ( 1177, 770) ;
|
326 |
+
insert into Faculty_Participates_in values ( 1177, 770) ;
|
327 |
+
|
328 |
+
insert into Faculty_Participates_in values ( 9922, 796) ;
|
database/aircraft/aircraft.sqlite
ADDED
Binary file (45.1 kB). View file
|
|
database/aircraft/schema.sql
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
PRAGMA foreign_keys = ON;
|
3 |
+
|
4 |
+
|
5 |
+
CREATE TABLE `pilot` (
|
6 |
+
`Pilot_Id` int(11) NOT NULL,
|
7 |
+
`Name` varchar(50) NOT NULL,
|
8 |
+
`Age` int(11) NOT NULL,
|
9 |
+
PRIMARY KEY (`Pilot_Id`)
|
10 |
+
);
|
11 |
+
|
12 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (1, 'Prof. Zackery Collins', 23);
|
13 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (2, 'Katheryn Gorczany IV', 20);
|
14 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (3, 'Mr. Cristian Halvorson II', 23);
|
15 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (4, 'Ayana Spencer', 25);
|
16 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (5, 'Ellen Ledner III', 31);
|
17 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (6, 'Elisha Hickle V', 37);
|
18 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (7, 'Dr. Jade Bradtke V', 26);
|
19 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (8, 'Winnifred Boyle', 30);
|
20 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (9, 'Della Lindgren', 29);
|
21 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (10, 'Maxwell Graham', 26);
|
22 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (11, 'Blaise Muller', 33);
|
23 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (12, 'Baylee Steuber', 30);
|
24 |
+
|
25 |
+
|
26 |
+
CREATE TABLE `aircraft` (
|
27 |
+
"Aircraft_ID" int(11) NOT NULL,
|
28 |
+
"Aircraft" varchar(50) NOT NULL,
|
29 |
+
"Description" varchar(50) NOT NULL,
|
30 |
+
"Max_Gross_Weight" varchar(50) NOT NULL,
|
31 |
+
"Total_disk_area" varchar(50) NOT NULL,
|
32 |
+
"Max_disk_Loading" varchar(50) NOT NULL,
|
33 |
+
PRIMARY KEY (`Aircraft_ID`)
|
34 |
+
);
|
35 |
+
|
36 |
+
|
37 |
+
CREATE TABLE `match` (
|
38 |
+
"Round" real,
|
39 |
+
"Location" text,
|
40 |
+
"Country" text,
|
41 |
+
"Date" text,
|
42 |
+
"Fastest_Qualifying" text,
|
43 |
+
"Winning_Pilot" text,
|
44 |
+
"Winning_Aircraft" text,
|
45 |
+
PRIMARY KEY ("Round"),
|
46 |
+
FOREIGN KEY (`Winning_Aircraft`) REFERENCES `aircraft`(`Aircraft_ID`),
|
47 |
+
FOREIGN KEY (`Winning_Pilot`) REFERENCES `pilot`(`Pilot_Id`)
|
48 |
+
);
|
49 |
+
|
50 |
+
CREATE TABLE `airport` (
|
51 |
+
"Airport_ID" int,
|
52 |
+
"Airport_Name" text,
|
53 |
+
"Total_Passengers" real,
|
54 |
+
"%_Change_2007" text,
|
55 |
+
"International_Passengers" real,
|
56 |
+
"Domestic_Passengers" real,
|
57 |
+
"Transit_Passengers" real,
|
58 |
+
"Aircraft_Movements" real,
|
59 |
+
"Freight_Metric_Tonnes" real,
|
60 |
+
PRIMARY KEY ("Airport_ID")
|
61 |
+
);
|
62 |
+
|
63 |
+
CREATE TABLE `airport_aircraft` (
|
64 |
+
"ID" int,
|
65 |
+
"Airport_ID" int,
|
66 |
+
"Aircraft_ID" int,
|
67 |
+
PRIMARY KEY ("Airport_ID","Aircraft_ID"),
|
68 |
+
FOREIGN KEY ("Airport_ID") REFERENCES `airport`(`Airport_ID`),
|
69 |
+
FOREIGN KEY ("Aircraft_ID") REFERENCES `aircraft`(`Aircraft_ID`)
|
70 |
+
);
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
+
INSERT INTO "aircraft" VALUES (1,"Robinson R-22","Light utility helicopter","1,370 lb (635 kg)","497 ft² (46.2 m²)","2.6 lb/ft² (14 kg/m²)");
|
75 |
+
INSERT INTO "aircraft" VALUES (2,"Bell 206B3 JetRanger","Turboshaft utility helicopter","3,200 lb (1,451 kg)","872 ft² (81.1 m²)","3.7 lb/ft² (18 kg/m²)");
|
76 |
+
INSERT INTO "aircraft" VALUES (3,"CH-47D Chinook","Tandem rotor helicopter","50,000 lb (22,680 kg)","5,655 ft² (526 m²)","8.8 lb/ft² (43 kg/m²)");
|
77 |
+
INSERT INTO "aircraft" VALUES (4,"Mil Mi-26","Heavy-lift helicopter","123,500 lb (56,000 kg)","8,495 ft² (789 m²)","14.5 lb/ft² (71 kg/m²)");
|
78 |
+
INSERT INTO "aircraft" VALUES (5,"CH-53E Super Stallion","Heavy-lift helicopter","73,500 lb (33,300 kg)","4,900 ft² (460 m²)","15 lb/ft² (72 kg/m²)");
|
79 |
+
|
80 |
+
|
81 |
+
INSERT INTO "match" VALUES ("1","Mina' Zayid , Abu Dhabi","United Arab Emirates","March 26–27","Hannes Arch",1,1);
|
82 |
+
INSERT INTO "match" VALUES ("2","Swan River , Perth","Australia","April 17–18","Paul Bonhomme",4,1);
|
83 |
+
INSERT INTO "match" VALUES ("3","Flamengo Beach , Rio de Janeiro","Brazil","May 8–9","Hannes Arch",6,2);
|
84 |
+
INSERT INTO "match" VALUES ("4","Windsor , Ontario","Canada","June 5–6","Nigel Lamb",4,4);
|
85 |
+
INSERT INTO "match" VALUES ("5","New York City","United States","June 19–20","Hannes Arch",9,3);
|
86 |
+
INSERT INTO "match" VALUES ("6","EuroSpeedway Lausitz","Germany","August 7–8","Paul Bonhomme",2,4);
|
87 |
+
INSERT INTO "match" VALUES ("7","River Danube , Budapest","Hungary","Cancelled","Cancelled",6,5);
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
INSERT INTO "airport" VALUES (1,"London Heathrow","67054745","1.5%","61344438","5562516","147791","478693","1397054");
|
92 |
+
INSERT INTO "airport" VALUES (2,"London Gatwick","34205887","2.9%","30431051","3730963","43873","263653","107702");
|
93 |
+
INSERT INTO "airport" VALUES (3,"London Stansted","22360364","6.0%","19996947","2343428","19989","193282","197738");
|
94 |
+
INSERT INTO "airport" VALUES (4,"Manchester","21219195","4.0%","18119230","2943719","156246","204610","141781");
|
95 |
+
INSERT INTO "airport" VALUES (5,"London Luton","10180734","2.6%","8853224","1320678","6832","117859","40518");
|
96 |
+
INSERT INTO "airport" VALUES (6,"Birmingham Airport","9627589","4.3%","8105162","1471538","50889","112227","12192");
|
97 |
+
INSERT INTO "airport" VALUES (7,"Edinburgh","9006702","0.5%","3711140","5281038","14524","125550","12418");
|
98 |
+
INSERT INTO "airport" VALUES (8,"Glasgow International","8178891","7.0%","3943139","4192121","43631","100087","3546");
|
99 |
+
INSERT INTO "airport" VALUES (9,"Bristol","6267114","5.7%","5057051","1171605","38458","76517","3");
|
100 |
+
INSERT INTO "airport" VALUES (10,"East Midlands","5620673","3.8%","4870184","746094","4395","93038","261507");
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
INSERT INTO "airport_aircraft" VALUES (1,6,5);
|
105 |
+
INSERT INTO "airport_aircraft" VALUES (2,2,1);
|
106 |
+
INSERT INTO "airport_aircraft" VALUES (3,1,2);
|
107 |
+
INSERT INTO "airport_aircraft" VALUES (4,9,3);
|
108 |
+
|
database/allergy_1/allergy_1.sqlite
ADDED
Binary file (20.5 kB). View file
|
|
database/allergy_1/schema.sql
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
create table Allergy_Type (
|
2 |
+
Allergy VARCHAR(20) PRIMARY KEY,
|
3 |
+
AllergyType VARCHAR(20)
|
4 |
+
);
|
5 |
+
|
6 |
+
create table Has_Allergy (
|
7 |
+
StuID INTEGER,
|
8 |
+
Allergy VARCHAR(20),
|
9 |
+
FOREIGN KEY(StuID) REFERENCES Student(StuID),
|
10 |
+
FOREIGN KEY(Allergy) REFERENCES Allergy_Type(Allergy)
|
11 |
+
);
|
12 |
+
|
13 |
+
create table Student (
|
14 |
+
StuID INTEGER PRIMARY KEY,
|
15 |
+
LName VARCHAR(12),
|
16 |
+
Fname VARCHAR(12),
|
17 |
+
Age INTEGER,
|
18 |
+
Sex VARCHAR(1),
|
19 |
+
Major INTEGER,
|
20 |
+
Advisor INTEGER,
|
21 |
+
city_code VARCHAR(3)
|
22 |
+
);
|
23 |
+
|
24 |
+
insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
|
25 |
+
insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
|
26 |
+
insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
|
27 |
+
insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
|
28 |
+
insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
|
29 |
+
insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
|
30 |
+
insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
|
31 |
+
insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
|
32 |
+
insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
|
33 |
+
insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
|
34 |
+
insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
|
35 |
+
insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
|
36 |
+
insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
|
37 |
+
insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
|
38 |
+
insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
|
39 |
+
insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
|
40 |
+
insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
|
41 |
+
insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
|
42 |
+
insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
|
43 |
+
insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
|
44 |
+
insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
|
45 |
+
insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
|
46 |
+
insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
|
47 |
+
insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
|
48 |
+
insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
|
49 |
+
insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
|
50 |
+
insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
|
51 |
+
insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
|
52 |
+
insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
|
53 |
+
insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
|
54 |
+
insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
|
55 |
+
insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
|
56 |
+
insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
|
57 |
+
insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');
|
58 |
+
|
59 |
+
insert into Has_Allergy values ( 1001, 'Cat' );
|
60 |
+
insert into Has_Allergy values ( 1002, 'Shellfish' );
|
61 |
+
insert into Has_Allergy values ( 1002, 'Tree Pollen' );
|
62 |
+
insert into Has_Allergy values ( 1003, 'Dog' );
|
63 |
+
insert into Has_Allergy values ( 1004, 'Nuts' );
|
64 |
+
insert into Has_Allergy values ( 1005, 'Nuts' );
|
65 |
+
insert into Has_Allergy values ( 1005, 'Tree Pollen' );
|
66 |
+
insert into Has_Allergy values ( 1006, 'Nuts' );
|
67 |
+
insert into Has_Allergy values ( 1007, 'Ragweed' );
|
68 |
+
insert into Has_Allergy values ( 1007, 'Tree Pollen' );
|
69 |
+
insert into Has_Allergy values ( 1007, 'Grass Pollen' );
|
70 |
+
insert into Has_Allergy values ( 1007, 'Eggs' );
|
71 |
+
insert into Has_Allergy values ( 1007, 'Milk' );
|
72 |
+
insert into Has_Allergy values ( 1007, 'Shellfish' );
|
73 |
+
insert into Has_Allergy values ( 1007, 'Anchovies' );
|
74 |
+
insert into Has_Allergy values ( 1007, 'Cat' );
|
75 |
+
insert into Has_Allergy values ( 1007, 'Dog' );
|
76 |
+
insert into Has_Allergy values ( 1009, 'Tree Pollen' );
|
77 |
+
insert into Has_Allergy values ( 1010, 'Ragweed' );
|
78 |
+
insert into Has_Allergy values ( 1010, 'Tree Pollen' );
|
79 |
+
insert into Has_Allergy values ( 1010, 'Grass Pollen' );
|
80 |
+
insert into Has_Allergy values ( 1010, 'Eggs' );
|
81 |
+
insert into Has_Allergy values ( 1010, 'Milk' );
|
82 |
+
insert into Has_Allergy values ( 1010, 'Shellfish' );
|
83 |
+
insert into Has_Allergy values ( 1010, 'Anchovies' );
|
84 |
+
insert into Has_Allergy values ( 1010, 'Cat' );
|
85 |
+
insert into Has_Allergy values ( 1010, 'Dog' );
|
86 |
+
insert into Has_Allergy values ( 1011, 'Ragweed' );
|
87 |
+
insert into Has_Allergy values ( 1012, 'Ragweed' );
|
88 |
+
insert into Has_Allergy values ( 1013, 'Ragweed' );
|
89 |
+
insert into Has_Allergy values ( 1014, 'Nuts' );
|
90 |
+
insert into Has_Allergy values ( 1015, 'Nuts' );
|
91 |
+
insert into Has_Allergy values ( 1015, 'Soy' );
|
92 |
+
insert into Has_Allergy values ( 1016, 'Nuts' );
|
93 |
+
insert into Has_Allergy values ( 1016, 'Milk' );
|
94 |
+
insert into Has_Allergy values ( 1017, 'Tree Pollen' );
|
95 |
+
insert into Has_Allergy values ( 1018, 'Nuts' );
|
96 |
+
insert into Has_Allergy values ( 1018, 'Soy' );
|
97 |
+
insert into Has_Allergy values ( 1019, 'Tree Pollen' );
|
98 |
+
insert into Has_Allergy values ( 1020, 'Tree Pollen' );
|
99 |
+
insert into Has_Allergy values ( 1021, 'Tree Pollen' );
|
100 |
+
insert into Has_Allergy values ( 1022, 'Nuts' );
|
101 |
+
insert into Has_Allergy values ( 1022, 'Anchovies' );
|
102 |
+
insert into Has_Allergy values ( 1023, 'Rodent' );
|
103 |
+
insert into Has_Allergy values ( 1023, 'Cat' );
|
104 |
+
insert into Has_Allergy values ( 1023, 'Nuts' );
|
105 |
+
insert into Has_Allergy values ( 1024, 'Ragweed' );
|
106 |
+
insert into Has_Allergy values ( 1024, 'Tree Pollen' );
|
107 |
+
insert into Has_Allergy values ( 1025, 'Tree Pollen' );
|
108 |
+
insert into Has_Allergy values ( 1026, 'Grass Pollen' );
|
109 |
+
insert into Has_Allergy values ( 1027, 'Tree Pollen' );
|
110 |
+
insert into Has_Allergy values ( 1028, 'Tree Pollen' );
|
111 |
+
insert into Has_Allergy values ( 1029, 'Soy' );
|
112 |
+
insert into Has_Allergy values ( 1029, 'Nuts' );
|
113 |
+
insert into Has_Allergy values ( 1029, 'Eggs' );
|
114 |
+
insert into Has_Allergy values ( 1030, 'Grass Pollen' );
|
115 |
+
insert into Has_Allergy values ( 1031, 'Nuts' );
|
116 |
+
insert into Has_Allergy values ( 1031, 'Shellfish' );
|
117 |
+
insert into Has_Allergy values ( 1031, 'Soy' );
|
118 |
+
|
119 |
+
insert into Allergy_Type values ( 'Eggs', 'food' );
|
120 |
+
insert into Allergy_Type values ( 'Nuts', 'food' );
|
121 |
+
insert into Allergy_Type values ( 'Milk', 'food' );
|
122 |
+
insert into Allergy_Type values ( 'Shellfish', 'food' );
|
123 |
+
insert into Allergy_Type values ( 'Anchovies', 'food' );
|
124 |
+
insert into Allergy_Type values ( 'Wheat', 'food' );
|
125 |
+
insert into Allergy_Type values ( 'Soy', 'food' );
|
126 |
+
insert into Allergy_Type values ( 'Ragweed', 'environmental' );
|
127 |
+
insert into Allergy_Type values ( 'Tree Pollen', 'environmental' );
|
128 |
+
insert into Allergy_Type values ( 'Grass Pollen', 'environmental' );
|
129 |
+
insert into Allergy_Type values ( 'Cat', 'animal' );
|
130 |
+
insert into Allergy_Type values ( 'Dog', 'animal' );
|
131 |
+
insert into Allergy_Type values ( 'Rodent', 'animal' );
|
132 |
+
insert into Allergy_Type values ( 'Bee Stings', 'animal' );
|
database/apartment_rentals/apartment_rentals.sqlite
ADDED
Binary file (53.2 kB). View file
|
|
database/apartment_rentals/schema.sql
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
|
3 |
+
CREATE TABLE Apartment_Buildings (
|
4 |
+
building_id INTEGER NOT NULL,
|
5 |
+
building_short_name CHAR(15),
|
6 |
+
building_full_name VARCHAR(80),
|
7 |
+
building_description VARCHAR(255),
|
8 |
+
building_address VARCHAR(255),
|
9 |
+
building_manager VARCHAR(50),
|
10 |
+
building_phone VARCHAR(80),
|
11 |
+
PRIMARY KEY (building_id),
|
12 |
+
UNIQUE (building_id)
|
13 |
+
);
|
14 |
+
|
15 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (133, 'Normandie Court', 'Normandie Court', 'Studio', '7950 Casper Vista Apt. 176
|
16 |
+
Marquiseberg, CA 70496', 'Emma', '(948)040-1064x387');
|
17 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (153, 'Mercedes House', 'Mercedes House', 'Studio', '354 Otto Villages
|
18 |
+
Charliefort, VT 71664', 'Brenden', '915-617-2408x832');
|
19 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (191, 'The Eugene', 'The Eugene', 'Flat', '71537 Gorczany Inlet
|
20 |
+
Wisozkburgh, AL 08256', 'Melyssa', '(609)946-0491');
|
21 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (196, 'VIA 57 WEST', 'VIA 57 WEST', 'Studio', '959 Ethel Viaduct
|
22 |
+
West Efrainburgh, DE 40074', 'Kathlyn', '681.772.2454');
|
23 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (225, 'Columbus Square', 'Columbus Square', 'Studio', '0703 Danika Mountains Apt. 362
|
24 |
+
Mohrland, AL 56839-5028', 'Kyle', '1-724-982-9507x640');
|
25 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (532, 'Avalon Park', 'Avalon Park', 'Duplex', '6827 Kessler Parkway Suite 908
|
26 |
+
Ahmedberg, WI 48788', 'Albert', '376-017-3538');
|
27 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (556, 'Peter Cooper Village', 'Peter Cooper Village', 'Flat', '861 Narciso Glens Suite 392
|
28 |
+
East Ottis, ND 73970', 'Darlene', '1-224-619-0295x13195');
|
29 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (624, 'Stuyvesant Town', 'Stuyvesant Town', 'Studio', '101 Queenie Mountains Suite 619
|
30 |
+
New Korbinmouth, KS 88726-1376', 'Marie', '(145)411-6406');
|
31 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (644, 'The Anthem', 'The Anthem', 'Flat', '50804 Mason Isle Suite 844
|
32 |
+
West Whitney, ID 66511', 'Ewald', '(909)086-5221x3455');
|
33 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (673, 'Barclay Tower', 'Barclay Tower', 'Flat', '1579 Runte Forges Apt. 548
|
34 |
+
Leuschkeland, OK 12009-8683', 'Rogers', '1-326-267-3386x613');
|
35 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (734, 'Windsor Court', 'Windsor Court', 'Studio', '601 Graham Roads
|
36 |
+
Port Luz, VA 29660-6703', 'Olaf', '(480)480-7401');
|
37 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (744, 'Silver Towers', 'Silver Towers', 'Flat', '1844 Armstrong Stravenue Suite 853
|
38 |
+
Myrnatown, CT 13528', 'Claude', '1-667-728-2287x3158');
|
39 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (790, 'Biltmore Plaza', 'Biltmore Plaza', 'Duplex', '489 Josh Orchard Apt. 998
|
40 |
+
Sipesview, DE 69053', 'Sydni', '544-148-5565x2847');
|
41 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (808, 'Petersfield', 'Petersfield', 'Studio', '54686 Christopher Circles Apt. 321
|
42 |
+
Daytonland, ID 88081-3991', 'Juvenal', '318-398-8140');
|
43 |
+
INSERT INTO `Apartment_Buildings` (`building_id`, `building_short_name`, `building_full_name`, `building_description`, `building_address`, `building_manager`, `building_phone`) VALUES (968, 'The Clinton', 'The Clinton', 'Flat', '012 Arnoldo Mountain
|
44 |
+
Gerholdland, ID 23342', 'Holly', '1-605-511-1973x25011');
|
45 |
+
|
46 |
+
CREATE TABLE Apartments (
|
47 |
+
apt_id INTEGER NOT NULL ,
|
48 |
+
building_id INTEGER NOT NULL,
|
49 |
+
apt_type_code CHAR(15),
|
50 |
+
apt_number CHAR(10),
|
51 |
+
bathroom_count INTEGER,
|
52 |
+
bedroom_count INTEGER,
|
53 |
+
room_count CHAR(5),
|
54 |
+
PRIMARY KEY (apt_id),
|
55 |
+
UNIQUE (apt_id),
|
56 |
+
FOREIGN KEY (building_id) REFERENCES Apartment_Buildings (building_id)
|
57 |
+
);
|
58 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (1, 808, 'Flat', 'Suite 645', 1, 3, '7');
|
59 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (2, 624, 'Flat', 'Apt. 585', 2, 4, '5');
|
60 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (3, 225, 'Studio', 'Apt. 908', 1, 6, '7');
|
61 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (4, 225, 'Duplex', 'Suite 749', 1, 5, '8');
|
62 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (5, 744, 'Flat', 'Suite 307', 2, 4, '9');
|
63 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (6, 191, 'Studio', 'Apt. 187', 3, 5, '9');
|
64 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (7, 790, 'Studio', 'Suite 088', 2, 4, '6');
|
65 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (8, 153, 'Flat', 'Suite 693', 2, 3, '9');
|
66 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (9, 624, 'Studio', 'Apt. 940', 1, 4, '8');
|
67 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (10, 225, 'Duplex', 'Apt. 859', 2, 3, '6');
|
68 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (11, 734, 'Flat', 'Apt. 794', 1, 5, '3');
|
69 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (12, 673, 'Duplex', 'Apt. 477', 2, 6, '3');
|
70 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (13, 744, 'Duplex', 'Apt. 411', 2, 5, '9');
|
71 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (14, 225, 'Flat', 'Apt. 837', 2, 4, '8');
|
72 |
+
INSERT INTO `Apartments` (`apt_id`, `building_id`, `apt_type_code`, `apt_number`, `bathroom_count`, `bedroom_count`, `room_count`) VALUES (15, 790, 'Duplex', 'Suite 634', 3, 6, '8');
|
73 |
+
|
74 |
+
CREATE TABLE Apartment_Facilities (
|
75 |
+
apt_id INTEGER NOT NULL,
|
76 |
+
facility_code CHAR(15) NOT NULL,
|
77 |
+
PRIMARY KEY (apt_id, facility_code),
|
78 |
+
FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id)
|
79 |
+
);
|
80 |
+
INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (1, 'Boardband');
|
81 |
+
INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (2, 'Boardband');
|
82 |
+
INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (3, 'Gym');
|
83 |
+
INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (5, 'Swimming Pool');
|
84 |
+
INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (6, 'Cable TV');
|
85 |
+
INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (9, 'Boardband');
|
86 |
+
INSERT INTO `Apartment_Facilities` (`apt_id`, `facility_code`) VALUES (15, 'Gym');
|
87 |
+
CREATE TABLE Guests (
|
88 |
+
guest_id INTEGER NOT NULL ,
|
89 |
+
gender_code CHAR(1),
|
90 |
+
guest_first_name VARCHAR(80),
|
91 |
+
guest_last_name VARCHAR(80),
|
92 |
+
date_of_birth DATETIME,
|
93 |
+
PRIMARY KEY (guest_id),
|
94 |
+
UNIQUE (guest_id)
|
95 |
+
);
|
96 |
+
|
97 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (1, 'Male', 'Kip', 'DuBuque', '1995-11-04 07:09:57');
|
98 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (2, 'Unknown', 'Rebeca', 'Runolfsdottir', '1974-05-12 21:53:58');
|
99 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (3, 'Female', 'Keon', 'Treutel', '1974-08-20 09:28:05');
|
100 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (4, 'Female', 'Gabe', 'Bode', '2007-09-11 19:01:39');
|
101 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (5, 'Female', 'Lou', 'Grady', '1997-01-15 17:37:40');
|
102 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (6, 'Unknown', 'Josefina', 'Jerde', '1978-03-08 04:43:04');
|
103 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (7, 'Female', 'Mozell', 'Toy', '1997-01-20 17:11:31');
|
104 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (8, 'Unknown', 'Keith', 'Hoeger', '2001-06-18 20:05:55');
|
105 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (9, 'Female', 'Crystal', 'Runolfsson', '1971-01-04 04:22:58');
|
106 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (10, 'Female', 'Nikki', 'Lehner', '1980-06-20 18:15:39');
|
107 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (11, 'Male', 'Gregoria', 'Schowalter', '2015-02-03 23:34:13');
|
108 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (12, 'Male', 'Louvenia', 'Crona', '1983-08-26 15:45:08');
|
109 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (13, 'Female', 'Else', 'Roberts', '1971-11-02 01:51:56');
|
110 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (14, 'Female', 'Juvenal', 'Kautzer', '2003-07-29 22:08:15');
|
111 |
+
INSERT INTO `Guests` (`guest_id`, `gender_code`, `guest_first_name`, `guest_last_name`, `date_of_birth`) VALUES (15, 'Female', 'Tamia', 'Mante', '2013-02-22 11:26:22');
|
112 |
+
|
113 |
+
|
114 |
+
CREATE TABLE Apartment_Bookings (
|
115 |
+
apt_booking_id INTEGER NOT NULL,
|
116 |
+
apt_id INTEGER,
|
117 |
+
guest_id INTEGER NOT NULL,
|
118 |
+
booking_status_code CHAR(15) NOT NULL,
|
119 |
+
booking_start_date DATETIME,
|
120 |
+
booking_end_date DATETIME,
|
121 |
+
PRIMARY KEY (apt_booking_id),
|
122 |
+
UNIQUE (apt_booking_id),
|
123 |
+
FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id),
|
124 |
+
FOREIGN KEY (guest_id) REFERENCES Guests (guest_id)
|
125 |
+
);
|
126 |
+
CREATE TABLE View_Unit_Status (
|
127 |
+
apt_id INTEGER,
|
128 |
+
apt_booking_id INTEGER,
|
129 |
+
status_date DATETIME NOT NULL,
|
130 |
+
available_yn BIT,
|
131 |
+
PRIMARY KEY (status_date),
|
132 |
+
FOREIGN KEY (apt_id) REFERENCES Apartments (apt_id),
|
133 |
+
FOREIGN KEY (apt_booking_id) REFERENCES Apartment_Bookings (apt_booking_id)
|
134 |
+
);
|
135 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (258, 10, 2, 'Provisional', '2016-09-26 17:13:49', '2017-10-07 11:38:48');
|
136 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (279, 15, 15, 'Provisional', '2016-04-01 06:28:08', '2017-10-25 11:08:42');
|
137 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (337, 8, 5, 'Provisional', '2017-03-13 16:20:14', '2018-02-19 16:59:08');
|
138 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (343, 4, 13, 'Confirmed', '2016-08-04 10:33:00', '2017-09-29 12:43:50');
|
139 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (365, 9, 12, 'Confirmed', '2017-02-11 14:34:14', '2017-10-07 20:47:19');
|
140 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (401, 7, 14, 'Provisional', '2016-05-24 20:09:38', '2017-10-03 01:56:21');
|
141 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (497, 10, 8, 'Confirmed', '2016-07-25 02:57:04', '2017-09-28 11:08:15');
|
142 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (526, 8, 7, 'Confirmed', '2016-11-26 05:04:31', '2018-02-25 15:15:37');
|
143 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (575, 6, 3, 'Provisional', '2017-05-13 18:17:20', '2017-10-06 11:15:58');
|
144 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (577, 12, 2, 'Provisional', '2017-03-04 02:23:49', '2018-02-06 16:57:05');
|
145 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (623, 4, 5, 'Provisional', '2016-06-07 05:05:18', '2017-11-13 13:59:45');
|
146 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (807, 11, 2, 'Provisional', '2016-04-17 12:53:59', '2018-03-20 17:32:58');
|
147 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (889, 10, 4, 'Confirmed', '2016-09-28 05:00:50', '2017-09-30 18:41:04');
|
148 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (920, 2, 2, 'Confirmed', '2017-04-07 04:53:27', '2017-11-29 12:59:42');
|
149 |
+
INSERT INTO `Apartment_Bookings` (`apt_booking_id`, `apt_id`, `guest_id`, `booking_status_code`, `booking_start_date`, `booking_end_date`) VALUES (924, 8, 3, 'Confirmed', '2017-07-03 14:15:56', '2017-11-12 01:05:09');
|
150 |
+
|
151 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (11, 920, '1970-09-28 10:24:29', '1');
|
152 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (15, 575, '1972-03-23 22:55:53', '1');
|
153 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (15, 924, '1973-10-28 04:30:14', '1');
|
154 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (6, 497, '1976-12-18 04:03:51', '1');
|
155 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (12, 807, '1977-04-15 13:42:19', '1');
|
156 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (13, 575, '1978-12-28 11:53:34', '1');
|
157 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (2, 497, '1980-11-12 13:34:45', '1');
|
158 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (14, 401, '1985-11-05 11:46:35', '0');
|
159 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (11, 497, '1990-11-04 17:57:50', '1');
|
160 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (13, 337, '2000-02-04 07:50:09', '0');
|
161 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (14, 279, '2001-02-17 20:17:09', '1');
|
162 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (5, 337, '2003-07-25 10:13:48', '1');
|
163 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (1, 497, '2003-08-02 08:36:36', '1');
|
164 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (10, 497, '2006-02-23 05:50:04', '1');
|
165 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (6, 401, '2011-02-12 09:04:07', '1');
|
166 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (9, 623, '2011-11-06 22:08:42', '1');
|
167 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (14, 920, '2012-11-24 13:39:37', '0');
|
168 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (4, 258, '2014-12-10 13:53:21', '1');
|
169 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (13, 343, '2015-06-19 07:59:01', '1');
|
170 |
+
INSERT INTO `View_Unit_Status` (`apt_id`, `apt_booking_id`, `status_date`, `available_yn`) VALUES (5, 889, '2015-07-15 11:06:29', '1');
|
database/architecture/architecture.sqlite
ADDED
Binary file (28.7 kB). View file
|
|
database/architecture/schema.sql
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
|
3 |
+
CREATE TABLE "architect" (
|
4 |
+
"id" text,
|
5 |
+
"name" text,
|
6 |
+
"nationality" text,
|
7 |
+
"gender" text,
|
8 |
+
primary key("id")
|
9 |
+
);
|
10 |
+
|
11 |
+
CREATE TABLE "bridge" (
|
12 |
+
"architect_id" int,
|
13 |
+
"id" int,
|
14 |
+
"name" text,
|
15 |
+
"location" text,
|
16 |
+
"length_meters" real,
|
17 |
+
"length_feet" real,
|
18 |
+
primary key("id"),
|
19 |
+
foreign key ("architect_id" ) references `architect`("id")
|
20 |
+
);
|
21 |
+
|
22 |
+
CREATE TABLE "mill" (
|
23 |
+
"architect_id" int,
|
24 |
+
"id" int,
|
25 |
+
"location" text,
|
26 |
+
"name" text,
|
27 |
+
"type" text,
|
28 |
+
"built_year" int,
|
29 |
+
"notes" text,
|
30 |
+
primary key ("id"),
|
31 |
+
foreign key ("architect_id" ) references `architect`("id")
|
32 |
+
);
|
33 |
+
|
34 |
+
|
35 |
+
INSERT INTO "architect" VALUES (1, "Frank Lloyd Wright", "American", "male");
|
36 |
+
INSERT INTO "architect" VALUES (2, "Frank Gehry", "Canadian", "male");
|
37 |
+
INSERT INTO "architect" VALUES (3, "Zaha Hadid", "Iraqi, British", "female");
|
38 |
+
INSERT INTO "architect" VALUES (4, "Mies Van Der Rohe", "German, American", "male");
|
39 |
+
INSERT INTO "architect" VALUES (5, "Le Corbusier", "Swiss, French", "male");
|
40 |
+
|
41 |
+
|
42 |
+
INSERT INTO "bridge" VALUES (1,"1","Xian Ren Qiao (Fairy Bridge)","Guangxi , China","121","400");
|
43 |
+
INSERT INTO "bridge" VALUES (2,"2","Landscape Arch","Arches National Park , Utah , USA","88","290");
|
44 |
+
INSERT INTO "bridge" VALUES (3,"3","Kolob Arch","Zion National Park , Utah , USA","87","287");
|
45 |
+
INSERT INTO "bridge" VALUES (4,"4","Aloba Arch","Ennedi Plateau , Chad","76","250");
|
46 |
+
INSERT INTO "bridge" VALUES (5,"5","Morning Glory Natural Bridge","Negro Bill Canyon , Utah , USA","74","243");
|
47 |
+
INSERT INTO "bridge" VALUES (5,"6","Rainbow Bridge","Glen Canyon National Recreation Area , Utah , USA","71","234");
|
48 |
+
INSERT INTO "bridge" VALUES (4,"7","Gaotun Natural Bridge","Guizhou , China","70","230");
|
49 |
+
INSERT INTO "bridge" VALUES (3,"8","Sipapu Natural Bridge","Natural Bridges National Monument , Utah , USA","69","225");
|
50 |
+
INSERT INTO "bridge" VALUES (2,"9","Stevens Arch","Escalante Canyon , Utah , USA","67","220");
|
51 |
+
INSERT INTO "bridge" VALUES (1,"10","Shipton's Arch","Xinjiang , China","65","212");
|
52 |
+
INSERT INTO "bridge" VALUES (1,"11","Jiangzhou Arch","Guangxi , China","65","212");
|
53 |
+
INSERT INTO "bridge" VALUES (1,"12","Hazarchishma Natural Bridge","Bamiyan Province , Afghanistan","64.2","210.6");
|
54 |
+
INSERT INTO "bridge" VALUES (2,"13","Outlaw Arch","Dinosaur National Monument , Colorado , USA","63","206");
|
55 |
+
INSERT INTO "bridge" VALUES (2,"14","Snake Bridge","Sanostee , New Mexico , USA","62","204");
|
56 |
+
INSERT INTO "bridge" VALUES (5,"15","Wrather Arch","Wrather Canyon , Arizona , USA","75","246");
|
57 |
+
|
58 |
+
|
59 |
+
INSERT INTO "mill" VALUES (1,1,"Coswarem","Le Vieux Molen","Grondzeiler","1840","Molenechos (Dutch)");
|
60 |
+
INSERT INTO "mill" VALUES (1,2,"Donceel","Moulin Bertrand","Grondzeiler","1890","Molenechos (Dutch)");
|
61 |
+
INSERT INTO "mill" VALUES (2,3,"Fexhe-le-haut-Clocher","Moulin de Fexhe","Grondzeiler","1843","Molenechos (Dutch)");
|
62 |
+
INSERT INTO "mill" VALUES (3,4,"Momalle","Moulin de Momalle","Bergmolen","1850","Molenechos (Dutch)");
|
63 |
+
INSERT INTO "mill" VALUES (4,5,"Othée","Moulin du Château","Grondzeiler","1856","Molenechos (Dutch)");
|
64 |
+
INSERT INTO "mill" VALUES (4,6,"Pousset","Moulin de Pousset","Grondzeiler","1819","Molenechos (Dutch)");
|
65 |
+
|
database/assets_maintenance/assets_maintenance.sqlite
ADDED
Binary file (69.6 kB). View file
|
|
database/assets_maintenance/schema.sql
ADDED
@@ -0,0 +1,355 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
|
3 |
+
CREATE TABLE `Third_Party_Companies` (
|
4 |
+
`company_id` INTEGER PRIMARY KEY ,
|
5 |
+
`company_type` VARCHAR(5) NOT NULL,
|
6 |
+
`company_name` VARCHAR(255),
|
7 |
+
`company_address` VARCHAR(255),
|
8 |
+
`other_company_details` VARCHAR(255)
|
9 |
+
);
|
10 |
+
|
11 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (1, 'Maintenance Contractor', 'Langworth-Funk', '615 Jacobs Mews', 'Uganda');
|
12 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (2, 'Maintenance Contractor', 'McDermott Group', '873 Conrad Creek Apt. 286', 'China');
|
13 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (3, 'Maintenance Contractor', 'Schuppe-Carroll', '066 Bechtelar Ridge', 'United Arab Emirates');
|
14 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (4, 'Maintenance Contractor', 'Dooley-Langosh', '9576 Jacynthe Point Suite 747', 'Albania');
|
15 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (5, 'Supplier', 'Dooley and Sons', '84631 Rosenbaum Well Suite 727', 'Palestinian Territory');
|
16 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (6, 'Supplier', 'Grimes, Mosciski and Renner', '9405 Leffler Hollow Apt. 753', 'Kiribati');
|
17 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (7, 'Maintenance Contractor', 'Weimann-Swift', '016 Kaitlyn Fall Suite 236', 'Egypt');
|
18 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (8, 'Maintenance Contractor', 'Glover-Vandervort', '51515 Conn Corner Suite 696', 'Ethiopia');
|
19 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (9, 'Maintenance Contractor', 'Wisoky, Toy and Bashirian', '605 D''Amore Oval', 'Iran');
|
20 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (10, 'Maintenance Contractor', 'White Ltd', '680 Hammes Ways', 'Niue');
|
21 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (11, 'Maintenance Contractor', 'Kuvalis, Boehm and Hettinger', '99335 Cummings Square Apt. 723', 'Somalia');
|
22 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (12, 'Maintenance Contractor', 'Dicki, Erdman and Kris', '60743 Dion Harbors Suite 825', 'Western Sahara');
|
23 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (13, 'Supplier', 'Greenholt-D''Amore', '1755 Schaefer Road', 'Slovenia');
|
24 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (14, 'Supplier', 'Purdy Inc', '846 Casper Route', 'Saint Helena');
|
25 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (15, 'Maintenance Contractor', 'Rau, Ullrich and King', '5147 Raul Burg Apt. 623', 'Armenia');
|
26 |
+
|
27 |
+
|
28 |
+
CREATE TABLE `Maintenance_Contracts` (
|
29 |
+
`maintenance_contract_id` INTEGER PRIMARY KEY,
|
30 |
+
`maintenance_contract_company_id` INTEGER NOT NULL,
|
31 |
+
`contract_start_date` DATETIME,
|
32 |
+
`contract_end_date` DATETIME,
|
33 |
+
`other_contract_details` VARCHAR(255),
|
34 |
+
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
|
35 |
+
);
|
36 |
+
|
37 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (1, 15, '2017-09-13 11:51:29', '2018-03-16 21:21:50', NULL);
|
38 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (2, 9, '2017-12-18 11:43:16', '2018-03-22 06:00:37', NULL);
|
39 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (3, 11, '2017-05-06 02:32:19', '2018-03-20 14:02:54', NULL);
|
40 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (4, 13, '2018-01-24 00:06:30', '2018-03-02 16:12:23', NULL);
|
41 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (5, 4, '2017-10-28 05:13:21', '2018-02-27 17:36:59', NULL);
|
42 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (6, 7, '2018-03-07 10:59:11', '2018-03-14 10:17:43', NULL);
|
43 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (7, 13, '2017-09-01 05:34:02', '2018-02-27 05:03:22', NULL);
|
44 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (8, 8, '2017-11-23 11:26:12', '2018-03-02 22:26:54', NULL);
|
45 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (9, 6, '2017-04-21 00:03:07', '2018-03-07 19:30:50', NULL);
|
46 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (10, 6, '2017-06-14 01:46:59', '2018-03-09 10:40:10', NULL);
|
47 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (11, 15, '2017-05-04 13:39:18', '2018-03-14 20:21:10', NULL);
|
48 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (12, 6, '2017-12-06 20:09:39', '2018-03-06 13:47:14', NULL);
|
49 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (13, 14, '2017-07-23 05:07:37', '2018-03-05 21:24:36', NULL);
|
50 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (14, 10, '2017-09-19 17:57:17', '2018-03-15 06:45:00', NULL);
|
51 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (15, 6, '2017-05-14 11:57:50', '2018-03-23 17:29:21', NULL);
|
52 |
+
|
53 |
+
|
54 |
+
CREATE TABLE `Parts` (
|
55 |
+
`part_id` INTEGER PRIMARY KEY,
|
56 |
+
`part_name` VARCHAR(255),
|
57 |
+
`chargeable_yn` VARCHAR(1),
|
58 |
+
`chargeable_amount` VARCHAR(20),
|
59 |
+
`other_part_details` VARCHAR(255)
|
60 |
+
);
|
61 |
+
|
62 |
+
INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (1, 'top', '0', '4', NULL);
|
63 |
+
INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (2, 'middle', '1', '9', NULL);
|
64 |
+
INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (3, 'package', '1', '9', NULL);
|
65 |
+
|
66 |
+
CREATE TABLE `Skills` (
|
67 |
+
`skill_id` INTEGER PRIMARY KEY,
|
68 |
+
`skill_code` VARCHAR(20),
|
69 |
+
`skill_description` VARCHAR(255)
|
70 |
+
);
|
71 |
+
|
72 |
+
INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (1, 'ELEC', 'Electrical');
|
73 |
+
INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (2, 'MECH', 'Mechanical');
|
74 |
+
INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (3, 'TV', 'TV, Video');
|
75 |
+
|
76 |
+
|
77 |
+
CREATE TABLE `Staff` (
|
78 |
+
`staff_id` INTEGER PRIMARY KEY,
|
79 |
+
`staff_name` VARCHAR(255),
|
80 |
+
`gender` VARCHAR(1),
|
81 |
+
`other_staff_details` VARCHAR(255)
|
82 |
+
);
|
83 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (1, 'Audreanne', '1', 'Manager');
|
84 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (2, 'Berneice', '1', 'Manager');
|
85 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (3, 'Helena', '1', NULL);
|
86 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (4, 'Edmond', '0', NULL);
|
87 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (5, 'Leola', '1', 'Manager');
|
88 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (6, 'Rodger', '1', NULL);
|
89 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (7, 'Kadin', '1', NULL);
|
90 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (8, 'Christophe', '0', 'Woker');
|
91 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (9, 'Bernice', '0', NULL);
|
92 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (10, 'Jayda', '1', NULL);
|
93 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (11, 'Estel', '0', NULL);
|
94 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (12, 'Oren', '1', NULL);
|
95 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (13, 'Howell', '0', NULL);
|
96 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (14, 'Cyrus', '0', NULL);
|
97 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (15, 'Jeffry', '0', NULL);
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
CREATE TABLE `Assets` (
|
102 |
+
`asset_id` INTEGER PRIMARY KEY,
|
103 |
+
`maintenance_contract_id` INTEGER NOT NULL,
|
104 |
+
`supplier_company_id` INTEGER NOT NULL,
|
105 |
+
`asset_details` VARCHAR(255),
|
106 |
+
`asset_make` VARCHAR(20),
|
107 |
+
`asset_model` VARCHAR(20),
|
108 |
+
`asset_acquired_date` DATETIME,
|
109 |
+
`asset_disposed_date` DATETIME,
|
110 |
+
`other_asset_details` VARCHAR(255),
|
111 |
+
FOREIGN KEY (`maintenance_contract_id` )
|
112 |
+
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
|
113 |
+
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
|
114 |
+
);
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (1, 2, 2, 'dell laptop1', 'PT', '58 ub', '2017-12-25 00:31:27', '2018-03-14 10:50:00', NULL);
|
119 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (2, 14, 1, 'dell laptop2', 'IN', '35 xt', '2018-01-27 00:59:46', '2018-03-20 04:24:09', NULL);
|
120 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (3, 7, 2, 'dell laptop3', 'IT', '63 ok', '2017-09-07 08:13:15', '2018-03-08 20:50:40', 'Bad condition');
|
121 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (4, 11, 5, 'dell laptop4', 'RU', '69 uv', '2017-06-12 17:37:19', '2018-03-16 05:46:55', NULL);
|
122 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (5, 8, 5, 'dell laptop5', 'DE', '90 oq', '2017-07-21 16:03:19', '2018-02-27 18:59:07', NULL);
|
123 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (6, 8, 6, 'monitor1', 'CN', '91 ub', '2017-04-22 12:33:39', '2018-03-10 11:11:43', NULL);
|
124 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (7, 6, 6, 'monitor2', 'CN', '27 du', '2017-07-18 01:22:58', '2018-03-20 22:45:00', NULL);
|
125 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (8, 15, 7, 'monitor3', 'GB', '94 kg', '2017-10-24 04:29:17', '2018-02-28 18:14:13', 'Bad condition');
|
126 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (9, 12, 13, 'machine1', 'RU', '07 yt', '2017-04-16 12:19:25', '2018-03-08 18:42:41', NULL);
|
127 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (10, 2, 2, 'machine2', 'FR', '20 tl', '2017-09-19 16:15:45', '2018-03-06 20:36:14', NULL);
|
128 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (11, 7, 12, 'machine3', 'FR', '11 wi', '2017-11-25 05:04:20', '2018-03-17 00:51:14', NULL);
|
129 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (12, 13, 14, 'machine4', 'RU', '95 vn', '2017-09-26 14:05:46', '2018-02-27 23:12:03', 'Bad condition');
|
130 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (13, 11, 8, 'system1', 'DE', '08 yy', '2017-12-20 14:05:17', '2018-03-07 20:35:19', 'Bad condition');
|
131 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (14, 10, 6, 'system2', 'IN', '66 xm', '2017-10-19 02:54:52', '2018-03-22 23:48:15', NULL);
|
132 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (15, 6, 11, 'system3', 'IE', '24 ak', '2017-12-18 19:21:11', '2018-02-27 02:37:16', NULL);
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
CREATE TABLE `Asset_Parts` (
|
137 |
+
`asset_id` INTEGER NOT NULL,
|
138 |
+
`part_id` INTEGER NOT NULL,
|
139 |
+
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
|
140 |
+
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
|
141 |
+
);
|
142 |
+
|
143 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (5, 3);
|
144 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 3);
|
145 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (10, 1);
|
146 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (1, 2);
|
147 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 1);
|
148 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (1, 3);
|
149 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (6, 2);
|
150 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (2, 3);
|
151 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 2);
|
152 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (2, 2);
|
153 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 3);
|
154 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (15, 3);
|
155 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (4, 1);
|
156 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (14, 1);
|
157 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (15, 2);
|
158 |
+
|
159 |
+
|
160 |
+
|
161 |
+
CREATE TABLE `Maintenance_Engineers` (
|
162 |
+
`engineer_id` INTEGER PRIMARY KEY,
|
163 |
+
`company_id` INTEGER NOT NULL,
|
164 |
+
`first_name` VARCHAR(50),
|
165 |
+
`last_name` VARCHAR(50),
|
166 |
+
`other_details` VARCHAR(255),
|
167 |
+
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
|
168 |
+
);
|
169 |
+
|
170 |
+
|
171 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (1, 14, 'Etha', 'Reinger', 'Skilled');
|
172 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (2, 2, 'Clemens', 'Orn', NULL);
|
173 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (3, 6, 'Samanta', 'Hauck', NULL);
|
174 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (4, 3, 'Lorine', 'Morar', NULL);
|
175 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (5, 15, 'Manley', 'Grady', NULL);
|
176 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (6, 1, 'Courtney', 'Adams', NULL);
|
177 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (7, 11, 'Josie', 'Harvey', 'Skilled');
|
178 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (8, 9, 'Nellie', 'Hirthe', NULL);
|
179 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (9, 4, 'Brian', 'Stamm', NULL);
|
180 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (10, 4, 'Naomi', 'Price', NULL);
|
181 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (11, 7, 'Cullen', 'Kunde', NULL);
|
182 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (12, 10, 'Alexys', 'Simonis', NULL);
|
183 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (13, 2, 'Weston', 'Hahn', NULL);
|
184 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (14, 11, 'Jules', 'Goldner', NULL);
|
185 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (15, 3, 'Archibald', 'Streich', NULL);
|
186 |
+
|
187 |
+
|
188 |
+
|
189 |
+
CREATE TABLE `Engineer_Skills` (
|
190 |
+
`engineer_id` INTEGER NOT NULL,
|
191 |
+
`skill_id` INTEGER NOT NULL,
|
192 |
+
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
|
193 |
+
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
|
194 |
+
);
|
195 |
+
|
196 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 2);
|
197 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 1);
|
198 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (15, 1);
|
199 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (6, 1);
|
200 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (13, 1);
|
201 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (6, 3);
|
202 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (13, 2);
|
203 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (7, 3);
|
204 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (5, 2);
|
205 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (8, 3);
|
206 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (15, 3);
|
207 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (5, 1);
|
208 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (9, 3);
|
209 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (3, 1);
|
210 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (11, 2);
|
211 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (12, 2);
|
212 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (2, 2);
|
213 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 1);
|
214 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (8, 1);
|
215 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (4, 1);
|
216 |
+
|
217 |
+
CREATE TABLE `Fault_Log` (
|
218 |
+
`fault_log_entry_id` INTEGER PRIMARY KEY,
|
219 |
+
`asset_id` INTEGER NOT NULL,
|
220 |
+
`recorded_by_staff_id` INTEGER NOT NULL,
|
221 |
+
`fault_log_entry_datetime` DATETIME,
|
222 |
+
`fault_description` VARCHAR(255),
|
223 |
+
`other_fault_details` VARCHAR(255),
|
224 |
+
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
|
225 |
+
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
|
226 |
+
);
|
227 |
+
|
228 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (1, 3, 14, '2018-03-21 04:25:00', 'system error', NULL);
|
229 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (2, 7, 4, '2018-03-13 09:43:05', 'system error', NULL);
|
230 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (3, 6, 9, '2018-02-24 09:28:20', 'system error', NULL);
|
231 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (4, 5, 13, '2018-02-28 02:07:36', 'failed parts', NULL);
|
232 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (5, 9, 11, '2018-03-02 03:14:46', 'system error', NULL);
|
233 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (6, 8, 8, '2018-02-28 20:15:25', 'failed parts', NULL);
|
234 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (7, 5, 14, '2018-03-05 09:44:08', 'system error', NULL);
|
235 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (8, 12, 10, '2018-03-19 04:24:18', 'failed parts', NULL);
|
236 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (9, 3, 5, '2018-03-06 15:52:54', 'system error', NULL);
|
237 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (10, 2, 9, '2018-03-03 10:41:52', 'failed parts', NULL);
|
238 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (11, 15, 12, '2018-03-21 15:02:17', 'failed parts', NULL);
|
239 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (12, 8, 8, '2018-03-10 07:08:34', 'system error', NULL);
|
240 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (13, 3, 13, '2018-03-11 14:00:39', 'system error', NULL);
|
241 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (14, 3, 11, '2018-02-27 11:34:20', 'failed parts', NULL);
|
242 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (15, 12, 13, '2018-03-01 08:52:58', 'system error', NULL);
|
243 |
+
|
244 |
+
CREATE TABLE `Engineer_Visits` (
|
245 |
+
`engineer_visit_id` INTEGER PRIMARY KEY,
|
246 |
+
`contact_staff_id` INTEGER,
|
247 |
+
`engineer_id` INTEGER NOT NULL,
|
248 |
+
`fault_log_entry_id` INTEGER NOT NULL,
|
249 |
+
`fault_status` VARCHAR(10) NOT NULL,
|
250 |
+
`visit_start_datetime` DATETIME,
|
251 |
+
`visit_end_datetime` DATETIME,
|
252 |
+
`other_visit_details` VARCHAR(255),
|
253 |
+
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
|
254 |
+
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
|
255 |
+
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
|
256 |
+
);
|
257 |
+
|
258 |
+
|
259 |
+
|
260 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (1, 8, 8, 13, 'Waiting', '1978-10-12 23:14:40', '1988-01-07 06:41:51', NULL);
|
261 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (2, 7, 15, 13, 'Return', '1980-05-02 23:31:18', '1990-08-30 22:44:16', NULL);
|
262 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (3, 7, 15, 4, 'Waiting', '2010-02-23 18:16:23', '1982-05-13 02:08:41', NULL);
|
263 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (4, 12, 12, 13, 'Fixed', '1996-11-07 05:31:35', '1973-09-12 07:06:54', NULL);
|
264 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (5, 2, 4, 12, 'Fixed', '1994-07-27 22:35:48', '2008-03-24 22:18:47', NULL);
|
265 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (6, 4, 15, 11, 'Fixed', '1984-07-14 22:47:51', '2010-07-05 18:36:22', NULL);
|
266 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (7, 7, 15, 14, 'Reported', '1996-07-06 23:59:49', '2012-11-27 06:26:01', NULL);
|
267 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (8, 6, 15, 2, 'Waiting', '1985-08-26 01:02:49', '1971-03-29 23:46:30', NULL);
|
268 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (9, 7, 15, 12, 'Waiting', '1991-05-02 01:39:59', '1970-08-01 15:35:51', NULL);
|
269 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (10, 14, 10, 2, 'Fixed', '1996-07-12 22:38:46', '1970-03-25 14:44:29', NULL);
|
270 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (11, 9, 6, 3, 'Fixed', '1975-04-06 11:09:23', '2000-01-27 09:33:10', NULL);
|
271 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (12, 2, 1, 13, 'Return', '2006-03-31 20:03:10', '2013-09-29 20:50:24', NULL);
|
272 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (13, 4, 10, 8, 'Fixed', '2015-07-05 21:37:55', '1988-10-20 12:02:00', NULL);
|
273 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (14, 9, 4, 13, 'Return', '1997-06-23 17:45:21', '1980-12-19 08:30:46', NULL);
|
274 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (15, 4, 11, 10, 'Reported', '1970-07-19 19:21:32', '2007-11-12 04:24:01', NULL);
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
CREATE TABLE `Part_Faults` (
|
279 |
+
`part_fault_id` INTEGER PRIMARY KEY,
|
280 |
+
`part_id` INTEGER NOT NULL,
|
281 |
+
`fault_short_name` VARCHAR(20),
|
282 |
+
`fault_description` VARCHAR(255),
|
283 |
+
`other_fault_details` VARCHAR(255),
|
284 |
+
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
|
285 |
+
);
|
286 |
+
|
287 |
+
|
288 |
+
CREATE TABLE `Fault_Log_Parts` (
|
289 |
+
`fault_log_entry_id` INTEGER NOT NULL,
|
290 |
+
`part_fault_id` INTEGER NOT NULL,
|
291 |
+
`fault_status` VARCHAR(10) NOT NULL,
|
292 |
+
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
|
293 |
+
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
|
294 |
+
);
|
295 |
+
|
296 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (1, 1, 'PW', 'Package Wrong', NULL);
|
297 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (2, 1, 'PW', 'Package Wrong', NULL);
|
298 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (3, 3, 'TW', 'Top Parts Wrong', NULL);
|
299 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (4, 1, 'PW', 'Package Wrong', NULL);
|
300 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (5, 1, 'MW', 'Medium Scale Wrong', NULL);
|
301 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (6, 2, 'PW', 'Package Wrong', NULL);
|
302 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (7, 1, 'PW', 'Package Wrong', NULL);
|
303 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (8, 3, 'TW', 'Top Parts Wrong', NULL);
|
304 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (9, 3, 'PW', 'Package Wrong', NULL);
|
305 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (10, 1, 'PW', 'Package Wrong', NULL);
|
306 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (11, 3, 'MW', 'Medium Scale Wrong', NULL);
|
307 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (12, 2, 'MW', 'Medium Scale Wrong', NULL);
|
308 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (13, 3, 'TW', 'Top Parts Wrong', NULL);
|
309 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (14, 1, 'TW', 'Top Parts Wrong', NULL);
|
310 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (15, 3, 'MW', 'Medium Scale Wrong', NULL);
|
311 |
+
|
312 |
+
|
313 |
+
|
314 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (12, 3, 'Reported');
|
315 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (7, 4, 'Reported');
|
316 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 9, 'Return');
|
317 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 14, 'Fixed');
|
318 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (6, 4, 'Waiting');
|
319 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (14, 8, 'Waiting');
|
320 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 10, 'Fixed');
|
321 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (3, 8, 'Return');
|
322 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (11, 2, 'Reported');
|
323 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (3, 11, 'Fixed');
|
324 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (11, 8, 'Reported');
|
325 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (4, 14, 'Waiting');
|
326 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (13, 15, 'Fixed');
|
327 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (13, 1, 'Fixed');
|
328 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (4, 6, 'Reported');
|
329 |
+
|
330 |
+
|
331 |
+
CREATE TABLE `Skills_Required_To_Fix` (
|
332 |
+
`part_fault_id` INTEGER NOT NULL,
|
333 |
+
`skill_id` INTEGER NOT NULL,
|
334 |
+
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
|
335 |
+
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
|
336 |
+
);
|
337 |
+
|
338 |
+
|
339 |
+
|
340 |
+
|
341 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (3, 2);
|
342 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (12, 3);
|
343 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (6, 1);
|
344 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 3);
|
345 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 3);
|
346 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 1);
|
347 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (5, 3);
|
348 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (13, 2);
|
349 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (14, 3);
|
350 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (10, 2);
|
351 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (2, 1);
|
352 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (7, 2);
|
353 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 3);
|
354 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 3);
|
355 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 2);
|
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/baseball_1/schema.sql
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2e61f0638e45f4d9f869c377b56f99f988d58f2a64999637c93691ebf2eb3a2
|
3 |
+
size 57608249
|
database/battle_death/battle_death.sqlite
ADDED
Binary file (28.7 kB). View file
|
|
database/battle_death/schema.sql
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
CREATE TABLE "battle" (
|
3 |
+
"id" int,
|
4 |
+
"name" text,
|
5 |
+
"date" text,
|
6 |
+
"bulgarian_commander" text,
|
7 |
+
"latin_commander" text,
|
8 |
+
"result" text,
|
9 |
+
primary key("id")
|
10 |
+
);
|
11 |
+
|
12 |
+
CREATE TABLE "ship" (
|
13 |
+
"lost_in_battle" int,
|
14 |
+
"id" int,
|
15 |
+
"name" text,
|
16 |
+
"tonnage" text,
|
17 |
+
"ship_type" text,
|
18 |
+
"location" text,
|
19 |
+
"disposition_of_ship" text,
|
20 |
+
primary key("id"),
|
21 |
+
foreign key (`lost_in_battle`) references `battle`("id")
|
22 |
+
);
|
23 |
+
|
24 |
+
|
25 |
+
CREATE TABLE "death" (
|
26 |
+
"caused_by_ship_id" int,
|
27 |
+
"id" int,
|
28 |
+
"note" text,
|
29 |
+
"killed" int,
|
30 |
+
"injured" int,
|
31 |
+
primary key("id"),
|
32 |
+
foreign key ("caused_by_ship_id") references `ship`("id")
|
33 |
+
);
|
34 |
+
|
35 |
+
INSERT INTO "battle" VALUES (1,"Battle of Adrianople","14 April 1205","Kaloyan","Baldwin I","Bulgarian victory");
|
36 |
+
INSERT INTO "battle" VALUES (2,"Battle of Serres","June 1205","Kaloyan","Unknown","Bulgarian victory");
|
37 |
+
INSERT INTO "battle" VALUES (3,"Battle of Rusion","31 January 1206","Kaloyan","Thierry de Termond","Bulgarian victory");
|
38 |
+
INSERT INTO "battle" VALUES (4,"Battle of Rodosto","February 1206","Kaloyan","Unknown","Bulgarian victory");
|
39 |
+
INSERT INTO "battle" VALUES (5,"Battle of Messinopolis","4 September 1207","Unknown","Boniface of Montferrat","Bulgarian victory");
|
40 |
+
INSERT INTO "battle" VALUES (6,"Battle of Boruy","June 1205","Boril","Henry I","Bulgarian victory");
|
41 |
+
INSERT INTO "battle" VALUES (7,"Battle of Philippopolis","31 June 1208","Boril","Henry I","Latin victory");
|
42 |
+
INSERT INTO "battle" VALUES (8,"Siege of Constantinople","1235","Ivan Asen II","John of Brienne","Two Year Truce");
|
43 |
+
|
44 |
+
|
45 |
+
INSERT INTO "ship" VALUES (8, 1, "Lettice","t","Brig","English Channel","Captured");
|
46 |
+
INSERT INTO "ship" VALUES (7, 2, "Bon Accord","t","Brig","English Channel","Captured");
|
47 |
+
INSERT INTO "ship" VALUES (6, 3, "Mary","t","Brig","English Channel","Captured");
|
48 |
+
INSERT INTO "ship" VALUES (5, 4, "HMS Avon","391","18-gun Brig","English Channel","Wrecked");
|
49 |
+
INSERT INTO "ship" VALUES (5, 5, "Three Brothers","t","Brig","SW Approaches","Scuttled");
|
50 |
+
INSERT INTO "ship" VALUES (4, 6, "Bacchus","t","Brig","English Channel","Sank");
|
51 |
+
INSERT INTO "ship" VALUES (8, 7, "HMS Atalanta","225","8 gun Brig","Mid-Atlantic","Captured");
|
52 |
+
|
53 |
+
INSERT INTO "death" VALUES (1, "1","Dantewada, Chhattisgarh","8","0");
|
54 |
+
INSERT INTO "death" VALUES (2, "2","Dantewada, Chhattisgarh","3","0");
|
55 |
+
INSERT INTO "death" VALUES (3, "13","Erraboru, Chhattisgarh","25","0");
|
56 |
+
INSERT INTO "death" VALUES (3, "3","East Champaran, Bihar","2","0");
|
57 |
+
INSERT INTO "death" VALUES (4, "4","Gajapati, Odisha","3","0");
|
58 |
+
INSERT INTO "death" VALUES (4, "5","Sundargarh, Odisha","0","9");
|
59 |
+
INSERT INTO "death" VALUES (5, "6","Dantewada, Chhattisgarh","0","0");
|
60 |
+
INSERT INTO "death" VALUES (5, "7","Dantewada, Chhattisgarh","4","5");
|
61 |
+
INSERT INTO "death" VALUES (6, "8","Kanker, Chhattisgarh","0","0");
|
62 |
+
INSERT INTO "death" VALUES (1, "9","Dantewada, Chhattisgarh","29","0");
|
63 |
+
INSERT INTO "death" VALUES (3, "10","WestMidnapore, West Bengal","0","0");
|
64 |
+
INSERT INTO "death" VALUES (2, "11","Bastar, Chattisgarh","0","0");
|
65 |
+
INSERT INTO "death" VALUES (5, "12","Bokaro, Jharkhand","14","0");
|
database/behavior_monitoring/behavior_monitoring.sqlite
ADDED
Binary file (65.5 kB). View file
|
|
database/behavior_monitoring/schema.sql
ADDED
@@ -0,0 +1,258 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
CREATE TABLE `Ref_Address_Types` (
|
3 |
+
`address_type_code` VARCHAR(15) PRIMARY KEY,
|
4 |
+
`address_type_description` VARCHAR(80)
|
5 |
+
);
|
6 |
+
CREATE TABLE `Ref_Detention_Type` (
|
7 |
+
`detention_type_code` VARCHAR(10) PRIMARY KEY,
|
8 |
+
`detention_type_description` VARCHAR(80)
|
9 |
+
);
|
10 |
+
CREATE TABLE `Ref_Incident_Type` (
|
11 |
+
`incident_type_code` VARCHAR(10) PRIMARY KEY,
|
12 |
+
`incident_type_description` VARCHAR(80)
|
13 |
+
);
|
14 |
+
|
15 |
+
INSERT INTO Ref_Address_Types (`address_type_code`, `address_type_description`) VALUES ('BILL', 'Billing');
|
16 |
+
INSERT INTO Ref_Address_Types (`address_type_code`, `address_type_description`) VALUES ('HOME', 'Home or Residence');
|
17 |
+
INSERT INTO Ref_Detention_Type (`detention_type_code`, `detention_type_description`) VALUES ('BREAK ', 'During Break time');
|
18 |
+
INSERT INTO Ref_Detention_Type (`detention_type_code`, `detention_type_description`) VALUES ('AFTER', 'After School');
|
19 |
+
INSERT INTO Ref_Detention_Type (`detention_type_code`, `detention_type_description`) VALUES ('LUNCH', 'Lunch-time');
|
20 |
+
INSERT INTO Ref_Incident_Type (`incident_type_code`, `incident_type_description`) VALUES ('NOISE', 'Noise');
|
21 |
+
INSERT INTO Ref_Incident_Type (`incident_type_code`, `incident_type_description`) VALUES ('VIOLENCE', 'Violence');
|
22 |
+
INSERT INTO Ref_Incident_Type (`incident_type_code`, `incident_type_description`) VALUES ('DISTURB', 'Disturbance');
|
23 |
+
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
CREATE TABLE `Addresses` (
|
28 |
+
`address_id` INTEGER PRIMARY KEY,
|
29 |
+
`line_1` VARCHAR(120),
|
30 |
+
`line_2` VARCHAR(120),
|
31 |
+
`line_3` VARCHAR(120),
|
32 |
+
`city` VARCHAR(80),
|
33 |
+
`zip_postcode` VARCHAR(20),
|
34 |
+
`state_province_county` VARCHAR(50),
|
35 |
+
`country` VARCHAR(50),
|
36 |
+
`other_address_details` VARCHAR(255)
|
37 |
+
);
|
38 |
+
|
39 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (1, '020 Orie Canyon', NULL, NULL, 'North Loyceville', '197', 'Hawaii', 'USA', NULL);
|
40 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (2, '1333 Boyle Lane', NULL, NULL, 'West Sean', '937', 'Illinois', 'USA', NULL);
|
41 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (3, '027 Kim Divide Apt. 492', NULL, NULL, 'Beierview', '918', 'Texas', 'USA', NULL);
|
42 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (4, '056 Murphy Stravenue Apt. 600', NULL, NULL, 'Elinoreport', '238', 'Wisconsin', 'USA', NULL);
|
43 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (5, '719 Pfannerstill Ridge Suite 663', NULL, NULL, 'Meganeland', '002', 'SouthDakota', 'USA', NULL);
|
44 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (6, '420 Zieme Oval', NULL, NULL, 'Corkeryborough', '744', 'Wisconsin', 'USA', NULL);
|
45 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (7, '27712 Marks Lake Apt. 752', NULL, NULL, 'Gleasonshire', '182', 'Maryland', 'USA', NULL);
|
46 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (8, '6960 O''Connell Dale Suite 622', NULL, NULL, 'New Annabellefort', '062', 'Kentucky', 'USA', NULL);
|
47 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (9, '18327 Jaime Terrace Suite 343', NULL, NULL, 'Edmundton', '520', 'Oregon', 'USA', NULL);
|
48 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (10, '3069 Garrison Squares', NULL, NULL, 'Lake Ahmadland', '748', 'Nevada', 'USA', NULL);
|
49 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (11, '668 Wilkinson Corners Apt. 992', NULL, NULL, 'North Jayceton', '612', 'Illinois', 'USA', NULL);
|
50 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (12, '11940 Pauline Shoals', NULL, NULL, 'West Lianafurt', '619', 'Arkansas', 'USA', NULL);
|
51 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (13, '39834 Anne Mission Apt. 956', NULL, NULL, 'North Orlobury', '663', 'Utah', 'USA', NULL);
|
52 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (14, '4115 Ebert Fall', NULL, NULL, 'North Fletcherside', '607', 'Arizona', 'USA', NULL);
|
53 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (15, '920 Brayan Harbors', NULL, NULL, 'Caitlynstad', '435', 'Montana', 'USA', NULL);
|
54 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (16, '014 Runte Haven Apt. 870', NULL, NULL, 'Tressamouth', '637', 'NewYork', 'USA', NULL);
|
55 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (17, '654 Fisher Roads', NULL, NULL, 'Hegmannborough', '397', 'Tennessee', 'USA', NULL);
|
56 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (18, '266 Kub Crossing', NULL, NULL, 'Hintzport', '865', 'Alabama', 'USA', NULL);
|
57 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (19, '51391 Dach Parkways Apt. 124', NULL, NULL, 'Unachester', '753', 'Wisconsin', 'USA', NULL);
|
58 |
+
INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (20, '2451 Wiza Inlet', NULL, NULL, 'Larkinport', '545', 'NewYork', 'USA', NULL);
|
59 |
+
|
60 |
+
|
61 |
+
CREATE TABLE `Students` (
|
62 |
+
`student_id` INTEGER PRIMARY KEY,
|
63 |
+
`address_id` INTEGER NOT NULL,
|
64 |
+
`first_name` VARCHAR(80),
|
65 |
+
`middle_name` VARCHAR(40),
|
66 |
+
`last_name` VARCHAR(40),
|
67 |
+
`cell_mobile_number` VARCHAR(40),
|
68 |
+
`email_address` VARCHAR(40),
|
69 |
+
`date_first_rental` DATETIME,
|
70 |
+
`date_left_university` DATETIME,
|
71 |
+
`other_student_details` VARCHAR(255),
|
72 |
+
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
|
73 |
+
);
|
74 |
+
|
75 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (1, 19, 'Emma', 'Frederic', 'Rohan', '235.899.9744', 'derrick.jenkins@example.com', '2017-12-05 15:20:04', '2018-03-03 03:33:05', NULL);
|
76 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (2, 9, 'Louvenia', 'Fatima', 'Hansen', '1-247-673-8446', 'rohan.clarabelle@example.org', '2017-08-08 22:30:36', '2018-02-24 11:12:11', NULL);
|
77 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (3, 10, 'Rhea', 'Gardner', 'Bergnaum', '1-751-162-9676x115', 'kkirlin@example.org', '2017-11-15 04:57:28', '2018-03-19 12:49:20', NULL);
|
78 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (4, 8, 'David', 'Darlene', 'Gorczany', '1-895-196-9979', 'eolson@example.com', '2018-02-15 20:03:11', '2018-03-11 02:21:24', NULL);
|
79 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (5, 8, 'Lucile', 'Stone', 'Gottlieb', '1-036-062-5465', 'dicki.kathryne@example.org', '2017-07-20 18:20:27', '2018-03-18 16:07:42', NULL);
|
80 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (6, 12, 'Antonietta', 'Crystal', 'Fahey', '(874)070-9495', 'norwood.howell@example.org', '2017-10-31 12:33:09', '2018-03-20 22:01:07', NULL);
|
81 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (7, 20, 'Rupert', 'Lincoln', 'Marks', '763.072.5520x5907', 'lisette.brekke@example.net', '2017-09-25 12:02:23', '2018-03-01 08:56:04', 'first honor');
|
82 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (8, 14, 'Julia', 'Arno', 'Balistreri', '319.497.4575x2214', 'jasmin.schuppe@example.com', '2018-02-23 02:28:07', '2018-03-01 16:03:55', NULL);
|
83 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (9, 19, 'Christy', 'Devonte', 'Huels', '(568)451-0917x3945', 'dora.zboncak@example.org', '2018-01-11 19:49:39', '2018-03-15 01:47:11', NULL);
|
84 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (10, 2, 'Adella', 'Chesley', 'Krajcik', '08605192839', 'frederique.mante@example.org', '2017-07-05 19:15:29', '2018-03-11 15:57:19', 'first honor');
|
85 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (11, 2, 'Isac', 'Cleta', 'Fadel', '+60(5)3280072514', 'qharvey@example.com', '2017-09-13 04:06:15', '2018-03-05 07:30:22', 'first honor');
|
86 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (12, 1, 'Ferne', 'Jerod', 'Weimann', '(921)011-7909x3518', 'mitchel55@example.net', '2017-05-24 05:00:18', '2018-02-28 12:33:53', NULL);
|
87 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (13, 17, 'Misael', 'Justyn', 'Will', '(062)892-7033', 'gbeatty@example.com', '2017-10-15 06:52:46', '2018-03-18 07:01:27', NULL);
|
88 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (14, 9, 'Fanny', 'Ashlee', 'Haley', '(820)260-5721', 'foster.zemlak@example.com', '2018-03-14 11:37:10', '2018-03-12 15:05:53', NULL);
|
89 |
+
INSERT INTO Students (`student_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `date_first_rental`, `date_left_university`, `other_student_details`) VALUES (15, 15, 'Eugene', 'Mustafa', 'Tremblay', '1-498-138-8088', 'kertzmann.devon@example.net', '2018-03-11 22:42:47', '2018-03-07 11:41:26', 'first honor');
|
90 |
+
|
91 |
+
|
92 |
+
CREATE TABLE `Teachers` (
|
93 |
+
`teacher_id` INTEGER PRIMARY KEY,
|
94 |
+
`address_id` INTEGER NOT NULL,
|
95 |
+
`first_name` VARCHAR(80),
|
96 |
+
`middle_name` VARCHAR(80),
|
97 |
+
`last_name` VARCHAR(80),
|
98 |
+
`gender` VARCHAR(1),
|
99 |
+
`cell_mobile_number` VARCHAR(40),
|
100 |
+
`email_address` VARCHAR(40),
|
101 |
+
`other_details` VARCHAR(255),
|
102 |
+
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` )
|
103 |
+
);
|
104 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (1, 15, 'Lyla', 'Wilson', 'Medhurst', '1', '792.333.7714', 'ohammes@example.com', NULL);
|
105 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (2, 7, 'Sid', 'Tremayne', 'Brakus', '1', '202.626.1698x9242', 'deborah37@example.com', NULL);
|
106 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (3, 8, 'Trystan', 'Alexane', 'Schuster', '1', '583-467-0403x647', 'hilll.kitty@example.com', NULL);
|
107 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (4, 7, 'Donnie', 'Morgan', 'Kuhic', '1', '07928511102', 'destany.reichert@example.net', NULL);
|
108 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (5, 15, 'Aniya', 'Ian', 'Becker', '1', '599.373.0773x67706', 'hahn.isom@example.com', 'Dean');
|
109 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (6, 16, 'Citlalli', 'Ahmad', 'Kuhic', '1', '017.636.7409', 'kozey.adeline@example.org', NULL);
|
110 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (7, 3, 'Alvis', 'Macey', 'Schultz', '1', '944-154-5379x4990', 'everardo.lynch@example.net', NULL);
|
111 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (8, 13, 'Cecilia', 'Mitchel', 'Ward', '0', '809.852.7009', 'paula.abbott@example.org', NULL);
|
112 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (9, 2, 'Woodrow', 'Lilla', 'Goldner', '1', '084-270-4880', 'ierdman@example.com', NULL);
|
113 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (10, 8, 'Gregory', 'Ardith', 'Heller', '0', '908-759-1808x63115', 'valentina.yost@example.com', NULL);
|
114 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (11, 12, 'Edmond', 'Kailyn', 'Lang', '0', '(659)018-0143x379', 'lila58@example.com', NULL);
|
115 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (12, 10, 'Camren', 'Kendall', 'Moore', '1', '(381)799-4759x169', 'randy.gerhold@example.org', NULL);
|
116 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (13, 19, 'Stephanie', 'Tamara', 'Price', '0', '952.821.3392', 'kiana.lang@example.net', NULL);
|
117 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (14, 14, 'Evelyn', 'Keanu', 'Hansen', '0', '1-787-044-8336x606', 'maribel21@example.org', NULL);
|
118 |
+
INSERT INTO Teachers (`teacher_id`, `address_id`, `first_name`, `middle_name`, `last_name`, `gender`, `cell_mobile_number`, `email_address`, `other_details`) VALUES (15, 10, 'Hobart', 'Michel', 'Bergnaum', '1', '796-453-5175x64012', 'willms.lane@example.com', NULL);
|
119 |
+
|
120 |
+
|
121 |
+
CREATE TABLE `Assessment_Notes` (
|
122 |
+
`notes_id` INTEGER NOT NULL ,
|
123 |
+
`student_id` INTEGER,
|
124 |
+
`teacher_id` INTEGER NOT NULL,
|
125 |
+
`date_of_notes` DATETIME,
|
126 |
+
`text_of_notes` VARCHAR(255),
|
127 |
+
`other_details` VARCHAR(255),
|
128 |
+
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` ),
|
129 |
+
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
|
130 |
+
);
|
131 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (1, 7, 3, '1978-04-15 04:49:18', NULL, NULL);
|
132 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (2, 11, 10, '2005-06-30 02:48:35', NULL, NULL);
|
133 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (3, 15, 3, '1988-06-09 00:24:01', NULL, NULL);
|
134 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (4, 12, 9, '1991-08-15 01:22:08', NULL, NULL);
|
135 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (5, 4, 10, '1971-05-05 20:07:08', NULL, NULL);
|
136 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (6, 12, 6, '2014-01-31 02:05:02', NULL, NULL);
|
137 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (7, 12, 7, '1984-12-13 23:04:28', NULL, NULL);
|
138 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (8, 7, 14, '1988-04-11 04:56:26', NULL, NULL);
|
139 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (9, 14, 15, '1972-04-27 04:51:51', NULL, NULL);
|
140 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (10, 13, 6, '2017-12-14 08:21:54', NULL, NULL);
|
141 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (11, 3, 14, '1993-08-16 17:39:53', NULL, NULL);
|
142 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (12, 1, 1, '1991-08-20 08:03:23', NULL, NULL);
|
143 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (13, 13, 3, '2014-04-28 02:07:53', NULL, NULL);
|
144 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (14, 14, 15, '1974-11-26 04:23:22', NULL, NULL);
|
145 |
+
INSERT INTO Assessment_Notes (`notes_id`, `student_id`, `teacher_id`, `date_of_notes`, `text_of_notes`, `other_details`) VALUES (15, 1, 9, '1984-09-10 01:18:34', NULL, NULL);
|
146 |
+
|
147 |
+
|
148 |
+
CREATE TABLE `Behavior_Incident` (
|
149 |
+
`incident_id` INTEGER PRIMARY KEY,
|
150 |
+
`incident_type_code` VARCHAR(10) NOT NULL,
|
151 |
+
`student_id` INTEGER NOT NULL,
|
152 |
+
`date_incident_start` DATETIME,
|
153 |
+
`date_incident_end` DATETIME,
|
154 |
+
`incident_summary` VARCHAR(255),
|
155 |
+
`recommendations` VARCHAR(255),
|
156 |
+
`other_details` VARCHAR(255),
|
157 |
+
FOREIGN KEY (`incident_type_code` ) REFERENCES `Ref_Incident_Type`(`incident_type_code` ),
|
158 |
+
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
|
159 |
+
);
|
160 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (1, 'NOISE', 6, '2017-07-09 10:04:13', '2018-03-08 14:08:54', NULL, NULL, NULL);
|
161 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (2, 'DISTURB', 13, '2018-01-31 10:51:13', '2018-03-18 18:40:05', NULL, NULL, NULL);
|
162 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (3, 'VIOLENCE', 1, '2017-10-10 22:43:54', '2018-03-22 02:10:35', NULL, 'Transfer schools', NULL);
|
163 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (4, 'VIOLENCE', 10, '2017-07-20 17:43:50', '2018-03-09 06:28:44', NULL, NULL, NULL);
|
164 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (5, 'NOISE', 7, '2017-08-13 22:15:05', '2018-02-25 05:38:58', NULL, NULL, NULL);
|
165 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (6, 'VIOLENCE', 8, '2017-06-09 18:32:28', '2018-03-20 10:32:10', NULL, NULL, NULL);
|
166 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (7, 'VIOLENCE', 4, '2017-04-23 07:03:17', '2018-03-19 02:35:39', NULL, NULL, NULL);
|
167 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (8, 'DISTURB', 1, '2017-05-02 12:52:09', '2018-03-18 01:23:29', NULL, NULL, NULL);
|
168 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (9, 'NOISE', 11, '2017-06-19 14:25:54', '2018-03-08 09:36:36', NULL, NULL, NULL);
|
169 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (10, 'NOISE', 1, '2018-01-27 09:24:45', '2018-03-13 05:18:05', NULL, NULL, NULL);
|
170 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (11, 'VIOLENCE', 9, '2018-03-06 21:03:58', '2018-03-06 14:44:37', NULL, 'Transfer schools', NULL);
|
171 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (12, 'DISTURB', 7, '2017-08-27 03:21:30', '2018-03-02 16:06:34', NULL, NULL, NULL);
|
172 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (13, 'VIOLENCE', 5, '2017-05-25 15:02:53', '2018-03-10 21:12:22', NULL, NULL, NULL);
|
173 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (14, 'NOISE', 1, '2017-08-29 20:48:56', '2018-03-16 14:37:20', NULL, 'Transfer schools', NULL);
|
174 |
+
INSERT INTO Behavior_Incident (`incident_id`, `incident_type_code`, `student_id`, `date_incident_start`, `date_incident_end`, `incident_summary`, `recommendations`, `other_details`) VALUES (15, 'NOISE', 15, '2018-02-05 13:13:45', '2018-03-08 09:00:48', NULL, NULL, NULL);
|
175 |
+
|
176 |
+
|
177 |
+
CREATE TABLE `Detention` (
|
178 |
+
`detention_id` INTEGER PRIMARY KEY,
|
179 |
+
`detention_type_code` VARCHAR(10) NOT NULL,
|
180 |
+
`teacher_id` INTEGER,
|
181 |
+
`datetime_detention_start` DATETIME,
|
182 |
+
`datetime_detention_end` DATETIME,
|
183 |
+
`detention_summary` VARCHAR(255),
|
184 |
+
`other_details` VARCHAR(255),
|
185 |
+
FOREIGN KEY (`detention_type_code` ) REFERENCES `Ref_Detention_Type`(`detention_type_code` ),
|
186 |
+
FOREIGN KEY (`teacher_id` ) REFERENCES `Teachers`(`teacher_id` )
|
187 |
+
);
|
188 |
+
|
189 |
+
CREATE TABLE `Student_Addresses` (
|
190 |
+
`student_id` INTEGER NOT NULL,
|
191 |
+
`address_id` INTEGER NOT NULL,
|
192 |
+
`date_address_from` DATETIME NOT NULL,
|
193 |
+
`date_address_to` DATETIME,
|
194 |
+
`monthly_rental` DECIMAL(19,4),
|
195 |
+
`other_details` VARCHAR(255),
|
196 |
+
FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
|
197 |
+
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
|
198 |
+
);
|
199 |
+
|
200 |
+
CREATE TABLE `Students_in_Detention` (
|
201 |
+
`student_id` INTEGER NOT NULL,
|
202 |
+
`detention_id` INTEGER NOT NULL,
|
203 |
+
`incident_id` INTEGER NOT NULL,
|
204 |
+
FOREIGN KEY (`incident_id` ) REFERENCES `Behavior_Incident`(`incident_id` ),
|
205 |
+
FOREIGN KEY (`detention_id` ) REFERENCES `Detention`(`detention_id` ),
|
206 |
+
FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
|
207 |
+
);
|
208 |
+
|
209 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (1, 'AFTER', 7, '2017-09-05 00:38:25', '2018-03-08 02:08:32', NULL, NULL);
|
210 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (2, 'AFTER', 14, '2018-01-10 08:09:02', '2018-03-07 04:24:48', NULL, NULL);
|
211 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (3, 'BREAK ', 11, '2017-12-14 06:40:29', '2018-03-08 09:16:38', NULL, NULL);
|
212 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (4, 'AFTER', 8, '2017-06-09 06:13:09', '2018-03-21 19:34:56', NULL, NULL);
|
213 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (5, 'BREAK ', 3, '2017-08-25 12:00:46', '2018-03-11 13:21:07', NULL, NULL);
|
214 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (6, 'BREAK ', 12, '2017-10-20 22:34:44', '2018-03-11 12:58:40', NULL, NULL);
|
215 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (7, 'BREAK ', 15, '2018-02-19 11:44:52', '2018-03-17 12:35:41', NULL, NULL);
|
216 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (8, 'BREAK ', 5, '2017-11-26 15:05:05', '2018-03-16 01:37:25', NULL, NULL);
|
217 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (9, 'LUNCH', 15, '2017-10-30 16:04:00', '2018-03-22 20:15:47', NULL, NULL);
|
218 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (10, 'AFTER', 15, '2018-01-29 20:43:45', '2018-03-05 03:31:24', NULL, NULL);
|
219 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (11, 'AFTER', 8, '2017-10-03 18:44:31', '2018-03-03 14:58:43', NULL, NULL);
|
220 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (12, 'LUNCH', 3, '2018-01-20 19:06:56', '2018-02-25 07:20:30', NULL, NULL);
|
221 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (13, 'BREAK ', 10, '2017-08-02 07:46:39', '2018-03-10 14:58:31', NULL, NULL);
|
222 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (14, 'AFTER', 12, '2017-12-18 13:47:51', '2018-03-04 20:52:51', NULL, NULL);
|
223 |
+
INSERT INTO Detention (`detention_id`, `detention_type_code`, `teacher_id`, `datetime_detention_start`, `datetime_detention_end`, `detention_summary`, `other_details`) VALUES (15, 'LUNCH', 11, '2017-08-21 06:41:29', '2018-03-13 20:37:39', NULL, NULL);
|
224 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (6, 12, '2017-10-16 13:56:34', '2018-03-15 10:37:19', '826.4319', 'house');
|
225 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (3, 18, '2017-06-19 12:39:39', '2018-03-02 00:19:57', '1113.0996', 'house');
|
226 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (8, 1, '2017-10-31 12:40:34', '2018-02-25 05:21:34', '1297.3186', 'apartment');
|
227 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (7, 3, '2017-04-28 06:27:14', '2018-03-23 09:52:56', '894.0958', 'house');
|
228 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (13, 16, '2018-03-23 08:25:36', '2018-03-12 17:21:24', '1297.8070', 'apartment');
|
229 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (11, 12, '2018-02-18 06:58:49', '2018-02-27 04:45:57', '747.5312', 'house');
|
230 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (4, 1, '2017-06-22 12:20:52', '2018-03-04 17:04:35', '756.6745', 'house');
|
231 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (2, 8, '2017-07-21 10:13:10', '2018-03-20 09:02:48', '1287.5604', 'house');
|
232 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (7, 13, '2018-01-13 22:56:06', '2018-03-22 17:56:20', '1067.8383', 'house');
|
233 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (4, 2, '2017-09-10 19:41:10', '2018-03-04 06:51:19', '1132.7420', 'house');
|
234 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (8, 16, '2018-01-12 13:23:23', '2018-03-04 06:05:45', '683.0735', 'house');
|
235 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (5, 13, '2017-03-29 18:22:55', '2018-03-14 09:12:05', '1036.8462', 'apartment');
|
236 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (2, 3, '2017-08-12 18:28:31', '2018-03-06 21:41:20', '800.1214', 'house');
|
237 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (2, 8, '2017-04-18 05:36:44', '2018-03-07 04:29:28', '865.2615', 'house');
|
238 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (9, 9, '2018-02-04 02:28:04', '2018-03-12 02:57:48', '679.2988', 'house');
|
239 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (13, 19, '2017-08-17 11:51:00', '2018-03-04 13:24:28', '644.9306', 'apartment');
|
240 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (15, 1, '2018-03-05 19:28:26', '2018-03-15 04:44:58', '1032.8717', 'apartment');
|
241 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (12, 10, '2017-09-23 05:16:17', '2018-03-05 21:12:37', '1032.9782', 'apartment');
|
242 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (1, 5, '2017-11-12 04:24:02', '2018-03-14 17:00:44', '1007.2597', 'apartment');
|
243 |
+
INSERT INTO Student_Addresses (`student_id`, `address_id`, `date_address_from`, `date_address_to`, `monthly_rental`, `other_details`) VALUES (10, 18, '2017-10-09 17:31:44', '2018-03-18 03:28:47', '620.2801', 'house');
|
244 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (3, 15, 1);
|
245 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (8, 13, 3);
|
246 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (11, 6, 11);
|
247 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (12, 12, 1);
|
248 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (14, 15, 13);
|
249 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (7, 7, 8);
|
250 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (13, 9, 12);
|
251 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (10, 14, 8);
|
252 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (12, 2, 13);
|
253 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (12, 12, 1);
|
254 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (9, 15, 15);
|
255 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (10, 7, 12);
|
256 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (13, 3, 3);
|
257 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (8, 15, 14);
|
258 |
+
INSERT INTO Students_in_Detention (`student_id`, `detention_id`, `incident_id`) VALUES (8, 14, 14);
|
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/bike_1/schema.sql
ADDED
The diff for this file is too large to render.
See raw diff
|
|
database/body_builder/body_builder.sqlite
ADDED
Binary file (20.5 kB). View file
|
|
database/body_builder/schema.sql
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
|
3 |
+
CREATE TABLE "body_builder" (
|
4 |
+
"Body_Builder_ID" int,
|
5 |
+
"People_ID" int,
|
6 |
+
"Snatch" real,
|
7 |
+
"Clean_Jerk" real,
|
8 |
+
"Total" real,
|
9 |
+
PRIMARY KEY ("Body_Builder_ID"),
|
10 |
+
FOREIGN KEY ("People_ID") REFERENCES `people`("People_ID")
|
11 |
+
);
|
12 |
+
|
13 |
+
CREATE TABLE "people" (
|
14 |
+
"People_ID" int,
|
15 |
+
"Name" text,
|
16 |
+
"Height" real,
|
17 |
+
"Weight" real,
|
18 |
+
"Birth_Date" text,
|
19 |
+
"Birth_Place" text,
|
20 |
+
PRIMARY KEY ("People_ID")
|
21 |
+
);
|
22 |
+
|
23 |
+
INSERT INTO "people" VALUES (1,"Jack Campbell","182","80","January 1, 1992","Port Huron, Michigan");
|
24 |
+
INSERT INTO "people" VALUES (2,"Ty Conklin","192","90","March 30, 1976","Anchorage, Alaska");
|
25 |
+
INSERT INTO "people" VALUES (3,"Al Montoya","195","100","February 13, 1985","Glenview, Illinois");
|
26 |
+
INSERT INTO "people" VALUES (4,"Mark Fayne","215","102","May 5, 1987","Nashua, New Hampshire");
|
27 |
+
INSERT INTO "people" VALUES (5,"Cam Fowler","196","89","December 5, 1991","Farmington Hills, Michigan");
|
28 |
+
INSERT INTO "people" VALUES (6,"Jake Gardiner","205","92","July 4, 1990","Minnetonka, Minnesota");
|
29 |
+
|
30 |
+
|
31 |
+
INSERT INTO "body_builder" VALUES (1,1,"142.5","175.0","317.5");
|
32 |
+
INSERT INTO "body_builder" VALUES (2,2,"137.5","177.5","315.0");
|
33 |
+
INSERT INTO "body_builder" VALUES (3,3,"140.0","175.0","315.0");
|
34 |
+
INSERT INTO "body_builder" VALUES (4,5,"137.5","175.0","312.5");
|
35 |
+
INSERT INTO "body_builder" VALUES (5,6,"130.0","162.5","292.5");
|
36 |
+
|
37 |
+
|
database/book_2/book_2.sqlite
ADDED
Binary file (20.5 kB). View file
|
|
database/book_2/schema.sql
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
|
3 |
+
CREATE TABLE "publication" (
|
4 |
+
"Publication_ID" int,
|
5 |
+
"Book_ID" int,
|
6 |
+
"Publisher" text,
|
7 |
+
"Publication_Date" text,
|
8 |
+
"Price" real,
|
9 |
+
PRIMARY KEY ("Publication_ID"),
|
10 |
+
FOREIGN KEY ("Book_ID") REFERENCES "book"("Book_ID")
|
11 |
+
);
|
12 |
+
|
13 |
+
CREATE TABLE "book" (
|
14 |
+
"Book_ID" int,
|
15 |
+
"Title" text,
|
16 |
+
"Issues" real,
|
17 |
+
"Writer" text,
|
18 |
+
PRIMARY KEY ("Book_ID")
|
19 |
+
);
|
20 |
+
|
21 |
+
|
22 |
+
INSERT INTO "book" VALUES (1,"The Black Lamb","6","Timothy Truman");
|
23 |
+
INSERT INTO "book" VALUES (2,"Bloody Mary","4","Garth Ennis");
|
24 |
+
INSERT INTO "book" VALUES (3,"Bloody Mary : Lady Liberty","4","Garth Ennis");
|
25 |
+
INSERT INTO "book" VALUES (4,"BrainBanx","6","Elaine Lee");
|
26 |
+
INSERT INTO "book" VALUES (5,"Cyberella","12","Howard Chaykin");
|
27 |
+
INSERT INTO "book" VALUES (6,"Dead Corps","4","Christopher Hinz");
|
28 |
+
INSERT INTO "book" VALUES (7,"The Dome: Ground Zero","1","Dave Gibbons");
|
29 |
+
INSERT INTO "book" VALUES (8,"Gemini Blood","9","Christopher Hinz");
|
30 |
+
INSERT INTO "book" VALUES (9,"Michael Moorcock's Multiverse","12","Michael Moorcock");
|
31 |
+
INSERT INTO "book" VALUES (10,"Sheva's War","5","Christopher Moeller");
|
32 |
+
|
33 |
+
|
34 |
+
INSERT INTO "publication" VALUES (1,1,"Pearson","August 2008","15000000");
|
35 |
+
INSERT INTO "publication" VALUES (2,3,"Thomson Reuters","March 2008","6000000");
|
36 |
+
INSERT INTO "publication" VALUES (3,4,"Wiley","June 2006","4100000");
|
37 |
+
INSERT INTO "publication" VALUES (4,5,"Wiley","October 2005","3000000");
|
38 |
+
INSERT INTO "publication" VALUES (5,7,"Springer Nature","August 2008","3000000");
|
39 |
+
INSERT INTO "publication" VALUES (6,9,"Pearson","March 2007","2000000");
|
40 |
+
INSERT INTO "publication" VALUES (7,10,"Bertelsmann","April 2007","2000000");
|
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/candidate_poll/candidate_poll.sqlite
ADDED
Binary file (20.5 kB). View file
|
|
database/candidate_poll/schema.sql
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
PRAGMA foreign_keys = ON;
|
2 |
+
|
3 |
+
CREATE TABLE "candidate" (
|
4 |
+
"Candidate_ID" int,
|
5 |
+
"People_ID" int,
|
6 |
+
"Poll_Source" text,
|
7 |
+
"Date" text,
|
8 |
+
"Support_rate" real,
|
9 |
+
"Consider_rate" real,
|
10 |
+
"Oppose_rate" real,
|
11 |
+
"Unsure_rate" real,
|
12 |
+
PRIMARY KEY ("Candidate_ID"),
|
13 |
+
FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
|
14 |
+
);
|
15 |
+
|
16 |
+
CREATE TABLE "people" (
|
17 |
+
"People_ID" int,
|
18 |
+
"Sex" text,
|
19 |
+
"Name" text,
|
20 |
+
"Date_of_Birth" text,
|
21 |
+
"Height" real,
|
22 |
+
"Weight" real,
|
23 |
+
PRIMARY KEY ("People_ID")
|
24 |
+
);
|
25 |
+
|
26 |
+
INSERT INTO "people" VALUES (1,"M","Hubert Henno","06.10.1976","188","83");
|
27 |
+
INSERT INTO "people" VALUES (2,"M","Dominique Daquin","10.11.1972","197","85");
|
28 |
+
INSERT INTO "people" VALUES (3,"F","Stéphane Antiga","03.02.1976","200","94");
|
29 |
+
INSERT INTO "people" VALUES (4,"M","Laurent Capet","05.05.1972","202","92");
|
30 |
+
INSERT INTO "people" VALUES (5,"F","Frantz Granvorka","10.03.1976","195","90");
|
31 |
+
INSERT INTO "people" VALUES (6,"M","Vincent Montméat","01.09.1977","196","88");
|
32 |
+
INSERT INTO "people" VALUES (7,"M","Loïc De Kergret","20.08.1970","193","89");
|
33 |
+
INSERT INTO "people" VALUES (8,"M","Philippe Barça-Cysique","22.04.1977","194","88");
|
34 |
+
INSERT INTO "people" VALUES (9,"M","Guillaume Samica","28.09.1981","196","82");
|
35 |
+
|
36 |
+
INSERT INTO "candidate" VALUES (1,1,"WNBC/Marist Poll","Feb 12–15, 2007","0.25","0.30","0.43","0.2");
|
37 |
+
INSERT INTO "candidate" VALUES (2,3,"WNBC/Marist Poll","Feb 12–15, 2007","0.17","0.42","0.32","0.9");
|
38 |
+
INSERT INTO "candidate" VALUES (3,4,"FOX News/Opinion Dynamics Poll","Feb 13–14, 2007","0.18","0.34","0.44","0.3");
|
39 |
+
INSERT INTO "candidate" VALUES (4,6,"Newsweek Poll","Nov 9–10, 2006","0.33","0.20","0.45","0.2");
|
40 |
+
INSERT INTO "candidate" VALUES (5,7,"Newsweek Poll","Nov 9–10, 2006","0.24","0.30","0.32","0.4");
|
41 |
+
INSERT INTO "candidate" VALUES (6,9,"Newsweek Poll","Nov 9–10, 2006","0.24","0.27","0.43","0.2");
|
42 |
+
|
database/car_1/annotation.json
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"label_id": null,
|
3 |
+
"data": [
|
4 |
+
{
|
5 |
+
"nl": "Find all Reanults (\u2019renault\u2019) in the database. For each, report the name and the year.\n",
|
6 |
+
"id": 0
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"nl": "Find all cars produced by Volvo between 1977 and 1981 (inclusive). Report the name of the car and the year it was produced.\n",
|
10 |
+
"id": 1
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"nl": "Report all Asian automakers. Output the full name of the automaker and the country of origin\n",
|
14 |
+
"id": 2
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"nl": "Find all non-four cylinder cars produced in 1980 that have a better fuel economy better than 20 MPG and that accelerate to 60 mph faster than in 15 seconds. Report the name of the car and the name of the automaker.\n",
|
18 |
+
"id": 3
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"nl": "For each saab released after 1978, compute the ratio between the weight of the car and its number of horsepowers. Report the full name of the car, the year it was produced and the ratio.\n",
|
22 |
+
"id": 4
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"nl": "Find the average, maximum and minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.\n",
|
26 |
+
"id": 5
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"nl": "Find how many different car manufacturers produced a vehicle heavier than 4000 lbs.\n",
|
30 |
+
"id": 6
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"nl": "Find the minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.\n",
|
34 |
+
"id": 7
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"nl": "For each year when US-manufactured cars averaged less than 100 horsepowers, report the highest and the lowest engine displacement number.\n",
|
38 |
+
"id": 8
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"nl": "For each year in which honda produced more than 2 models, report the best, the worst and the average gas milage of a toyota vehicle.\n",
|
42 |
+
"id": 9
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"nl": "Report all vehicles with the best gas mileage. For each vehicle, report its full name and the year of production.\n",
|
46 |
+
"id": 10
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"nl": "Among the vehicles with the gas mileage, report the one with the best acceleration. Report full name and the year of production.\n",
|
50 |
+
"id": 11
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"nl": "For each country report the automaker with the largest number of cars in the database. Report the name of the country.\n",
|
54 |
+
"id": 12
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"nl": "Find the difference in gas milage between the most fuel-efficient 8-cylinder model and the least fuel-efficient 4-cylinder model. Report just the number.\n",
|
58 |
+
"id": 13
|
59 |
+
}
|
60 |
+
],
|
61 |
+
"review_id": null
|
62 |
+
}
|
database/car_1/car_1.json
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"col_data": [
|
4 |
+
{
|
5 |
+
"column_name": "ContId",
|
6 |
+
"data_type": "INTEGER",
|
7 |
+
"default_column_name": "ContId",
|
8 |
+
"default_value": null,
|
9 |
+
"not_null": 0,
|
10 |
+
"primary_key": 1
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"column_name": "Continent",
|
14 |
+
"data_type": "TEXT",
|
15 |
+
"default_column_name": "Continent",
|
16 |
+
"default_value": null,
|
17 |
+
"not_null": 0,
|
18 |
+
"primary_key": 0
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"table": "continents"
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"col_data": [
|
25 |
+
{
|
26 |
+
"column_name": "CountryId",
|
27 |
+
"data_type": "INTEGER",
|
28 |
+
"default_column_name": "CountryId",
|
29 |
+
"default_value": null,
|
30 |
+
"not_null": 0,
|
31 |
+
"primary_key": 1
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"column_name": "CountryName",
|
35 |
+
"data_type": "TEXT",
|
36 |
+
"default_column_name": "CountryName",
|
37 |
+
"default_value": null,
|
38 |
+
"not_null": 0,
|
39 |
+
"primary_key": 0
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"column_name": "Continent",
|
43 |
+
"data_type": "INTEGER",
|
44 |
+
"default_column_name": "Continent",
|
45 |
+
"default_value": null,
|
46 |
+
"not_null": 0,
|
47 |
+
"primary_key": 0
|
48 |
+
}
|
49 |
+
],
|
50 |
+
"table": "countries"
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"col_data": [
|
54 |
+
{
|
55 |
+
"column_name": "Id",
|
56 |
+
"data_type": "INTEGER",
|
57 |
+
"default_column_name": "Id",
|
58 |
+
"default_value": null,
|
59 |
+
"not_null": 0,
|
60 |
+
"primary_key": 1
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"column_name": "Maker",
|
64 |
+
"data_type": "TEXT",
|
65 |
+
"default_column_name": "Maker",
|
66 |
+
"default_value": null,
|
67 |
+
"not_null": 0,
|
68 |
+
"primary_key": 0
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"column_name": "FullName",
|
72 |
+
"data_type": "TEXT",
|
73 |
+
"default_column_name": "FullName",
|
74 |
+
"default_value": null,
|
75 |
+
"not_null": 0,
|
76 |
+
"primary_key": 0
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"column_name": "Country",
|
80 |
+
"data_type": "TEXT",
|
81 |
+
"default_column_name": "Country",
|
82 |
+
"default_value": null,
|
83 |
+
"not_null": 0,
|
84 |
+
"primary_key": 0
|
85 |
+
}
|
86 |
+
],
|
87 |
+
"table": "car-makers"
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"col_data": [
|
91 |
+
{
|
92 |
+
"column_name": "MakeId",
|
93 |
+
"data_type": "INTEGER",
|
94 |
+
"default_column_name": "MakeId",
|
95 |
+
"default_value": null,
|
96 |
+
"not_null": 0,
|
97 |
+
"primary_key": 1
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"column_name": "Model",
|
101 |
+
"data_type": "TEXT",
|
102 |
+
"default_column_name": "Model",
|
103 |
+
"default_value": null,
|
104 |
+
"not_null": 0,
|
105 |
+
"primary_key": 0
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"column_name": "Make",
|
109 |
+
"data_type": "TEXT",
|
110 |
+
"default_column_name": "Make",
|
111 |
+
"default_value": null,
|
112 |
+
"not_null": 0,
|
113 |
+
"primary_key": 0
|
114 |
+
}
|
115 |
+
],
|
116 |
+
"table": "car-names"
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"col_data": [
|
120 |
+
{
|
121 |
+
"column_name": "Id",
|
122 |
+
"data_type": "INTEGER",
|
123 |
+
"default_column_name": "Id",
|
124 |
+
"default_value": null,
|
125 |
+
"not_null": 0,
|
126 |
+
"primary_key": 1
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"column_name": "MPG",
|
130 |
+
"data_type": "TEXT",
|
131 |
+
"default_column_name": "MPG",
|
132 |
+
"default_value": null,
|
133 |
+
"not_null": 0,
|
134 |
+
"primary_key": 0
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"column_name": "Cylinders",
|
138 |
+
"data_type": "INTEGER",
|
139 |
+
"default_column_name": "Cylinders",
|
140 |
+
"default_value": null,
|
141 |
+
"not_null": 0,
|
142 |
+
"primary_key": 0
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"column_name": "Edispl",
|
146 |
+
"data_type": "REAL",
|
147 |
+
"default_column_name": "Edispl",
|
148 |
+
"default_value": null,
|
149 |
+
"not_null": 0,
|
150 |
+
"primary_key": 0
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"column_name": "Horsepower",
|
154 |
+
"data_type": "TEXT",
|
155 |
+
"default_column_name": "Horsepower",
|
156 |
+
"default_value": null,
|
157 |
+
"not_null": 0,
|
158 |
+
"primary_key": 0
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"column_name": "Weight",
|
162 |
+
"data_type": "INTEGER",
|
163 |
+
"default_column_name": "Weight",
|
164 |
+
"default_value": null,
|
165 |
+
"not_null": 0,
|
166 |
+
"primary_key": 0
|
167 |
+
},
|
168 |
+
{
|
169 |
+
"column_name": "Accelerate",
|
170 |
+
"data_type": "REAL",
|
171 |
+
"default_column_name": "Accelerate",
|
172 |
+
"default_value": null,
|
173 |
+
"not_null": 0,
|
174 |
+
"primary_key": 0
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"column_name": "Year",
|
178 |
+
"data_type": "INTEGER",
|
179 |
+
"default_column_name": "Year",
|
180 |
+
"default_value": null,
|
181 |
+
"not_null": 0,
|
182 |
+
"primary_key": 0
|
183 |
+
}
|
184 |
+
],
|
185 |
+
"table": "cars-data"
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"col_data": [
|
189 |
+
{
|
190 |
+
"column_name": "ModelId",
|
191 |
+
"data_type": "INTEGER",
|
192 |
+
"default_column_name": "ModelId",
|
193 |
+
"default_value": null,
|
194 |
+
"not_null": 0,
|
195 |
+
"primary_key": 1
|
196 |
+
},
|
197 |
+
{
|
198 |
+
"column_name": "Maker",
|
199 |
+
"data_type": "INTEGER",
|
200 |
+
"default_column_name": "Maker",
|
201 |
+
"default_value": null,
|
202 |
+
"not_null": 0,
|
203 |
+
"primary_key": 0
|
204 |
+
},
|
205 |
+
{
|
206 |
+
"column_name": "Model",
|
207 |
+
"data_type": "TEXT",
|
208 |
+
"default_column_name": "Model",
|
209 |
+
"default_value": null,
|
210 |
+
"not_null": 0,
|
211 |
+
"primary_key": 0
|
212 |
+
}
|
213 |
+
],
|
214 |
+
"table": "model-list"
|
215 |
+
}
|
216 |
+
]
|
database/car_1/car_1.sql
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
CREATE TABLE "continents" (
|
2 |
+
"ContId" INTEGER PRIMARY KEY,
|
3 |
+
"Continent" TEXT
|
4 |
+
);
|
5 |
+
|
6 |
+
CREATE TABLE "countries" (
|
7 |
+
"CountryId" INTEGER PRIMARY KEY,
|
8 |
+
"CountryName" TEXT,
|
9 |
+
"Continent" INTEGER,
|
10 |
+
FOREIGN KEY (Continent) REFERENCES continents(ContId)
|
11 |
+
);
|
12 |
+
|
13 |
+
|
14 |
+
CREATE TABLE "car_makers" (
|
15 |
+
"Id" INTEGER PRIMARY KEY,
|
16 |
+
"Maker" TEXT,
|
17 |
+
"FullName" TEXT,
|
18 |
+
"Country" TEXT,
|
19 |
+
FOREIGN KEY (Country) REFERENCES countries(CountryId)
|
20 |
+
);
|
21 |
+
|
22 |
+
|
23 |
+
CREATE TABLE "model_list" (
|
24 |
+
"ModelId" INTEGER PRIMARY KEY,
|
25 |
+
"Maker" INTEGER,
|
26 |
+
"Model" TEXT UNIQUE,
|
27 |
+
FOREIGN KEY (Maker) REFERENCES car_makers (Id)
|
28 |
+
|
29 |
+
);
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
CREATE TABLE "car_names" (
|
34 |
+
"MakeId" INTEGER PRIMARY KEY,
|
35 |
+
"Model" TEXT,
|
36 |
+
"Make" TEXT,
|
37 |
+
FOREIGN KEY (Model) REFERENCES model_list (Model)
|
38 |
+
);
|
39 |
+
|
40 |
+
CREATE TABLE "cars_data" (
|
41 |
+
"Id" INTEGER PRIMARY KEY,
|
42 |
+
"MPG" TEXT,
|
43 |
+
"Cylinders" INTEGER,
|
44 |
+
"Edispl" REAL,
|
45 |
+
"Horsepower" TEXT,
|
46 |
+
"Weight" INTEGER,
|
47 |
+
"Accelerate" REAL,
|
48 |
+
"Year" INTEGER,
|
49 |
+
FOREIGN KEY (Id) REFERENCES car_names (MakeId)
|
50 |
+
);
|
51 |
+
|
52 |
+
|
database/car_1/car_1.sqlite
ADDED
Binary file (65.5 kB). View file
|
|
database/car_1/data_csv/README.CARS.TXT
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*****************************************************
|
2 |
+
CPE 365 Alex Dekhtyar
|
3 |
+
Cal Poly Computer Science Department
|
4 |
+
San Luis Obispo College of Engineering
|
5 |
+
California dekhtyar@csc.calpoly.edu
|
6 |
+
*****************************************************
|
7 |
+
CARS DATASET
|
8 |
+
Version 1.0
|
9 |
+
September 26, 2007
|
10 |
+
*****************************************************
|
11 |
+
Sources:
|
12 |
+
The Committee on Statistical Graphics of
|
13 |
+
the American Statistical Association (ASA)
|
14 |
+
1983 Cars dataset
|
15 |
+
available (among other places) from
|
16 |
+
CMU's StatLib server:
|
17 |
+
http://lib.stat.cmu.edu/datasets/
|
18 |
+
|
19 |
+
******************************************************
|
20 |
+
|
21 |
+
|
22 |
+
This file describes the contents of the CARS dataset
|
23 |
+
developed for the CPE 365, Introduction to Databases
|
24 |
+
course at Cal Poly.
|
25 |
+
|
26 |
+
The dataset is a normalized and slightly enhanced version
|
27 |
+
of the ASA's Committee on Statistical Graphics "cars"
|
28 |
+
dataset offered in 1983 for the visualization competition.
|
29 |
+
Please refer to the original dataset description
|
30 |
+
in the file "cars.desc" included with this distribution for
|
31 |
+
historical purposes. (please, note, cars.desc file does not
|
32 |
+
describe the format of this dataset correctly).
|
33 |
+
|
34 |
+
|
35 |
+
The dataset describes the origins and different parameters
|
36 |
+
of 406 car models produced in the world between 1970 and 1982.
|
37 |
+
The dataset consists of the following files:
|
38 |
+
|
39 |
+
General Conventions.
|
40 |
+
|
41 |
+
1. All files in the dataset are CSV (comma-separated values) files.
|
42 |
+
2. First line of each file provides the names of
|
43 |
+
columns. Second line may be empty, or may contain
|
44 |
+
the first row of the data
|
45 |
+
3. All string values are enclosed in single quotes (')
|
46 |
+
|
47 |
+
- car-makers.csv : information about companies that produce cars
|
48 |
+
- car-names.csv : information about specific cars (by name)
|
49 |
+
- cars-data.csv : operational parameters of the cars
|
50 |
+
- continents.csv : list of continents
|
51 |
+
- countries.csv : list of countries
|
52 |
+
- model-list.csv : information about car models produced by car makers
|
53 |
+
|
54 |
+
|
55 |
+
The core of the dataset consists of four files: car-makes.csv, model-list.csv,
|
56 |
+
car-names.csv and cars-data.csv. The first file identifies companies
|
57 |
+
that produce cars (e.g, "Ford Motor Company", "Toyota"), the second file
|
58 |
+
lists various models and identified their makes (e.g., "Ford" and "Mercury"
|
59 |
+
produced by Ford, "Oldsmobile" and "Chevrolet" produced by GM). The third
|
60 |
+
file is the masterlist of 406 car makes considered in the database
|
61 |
+
(e.g., "ford torino" or "amc rebel set"). The fourth file contains information
|
62 |
+
about the operating parameters (see below for a full list) for each make.
|
63 |
+
|
64 |
+
|
65 |
+
Individual files have the following formats.
|
66 |
+
|
67 |
+
|
68 |
+
**************************************************************************
|
69 |
+
|
70 |
+
car-makers.csv
|
71 |
+
|
72 |
+
Id : unique identifier of the car maker
|
73 |
+
Maker : short nickname for the car maker
|
74 |
+
FullName : full name of the car maker
|
75 |
+
Country : Id of the home country of the maker (see countries.CountryId)
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
+
**************************************************************************
|
80 |
+
|
81 |
+
car-names.csv
|
82 |
+
|
83 |
+
MakeId : unique identifier of the car make
|
84 |
+
Model : unique name of the car model (see model-list.Model)
|
85 |
+
MakeDescription : description (name) of the car make
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
**************************************************************************
|
90 |
+
|
91 |
+
|
92 |
+
cars-data.csv
|
93 |
+
|
94 |
+
Id : unique identifier of the car make (see car-names.MakeId)
|
95 |
+
MPG : milage per gallon
|
96 |
+
Cylinders : number of cylinders
|
97 |
+
Edispl : engine displacement volume in cubic inches
|
98 |
+
Horsepower : power of the engine in horsepowers
|
99 |
+
Weight : weight of the car in lbs
|
100 |
+
Accelerate : time to accelerate from 0 to 60mph in seconds (possibly
|
101 |
+
with fractions of a second)
|
102 |
+
Year : year the car was made
|
103 |
+
|
104 |
+
|
105 |
+
NOTE: this file adds the Id attribute to the original cars.data file from
|
106 |
+
the ASA cars dataset, removes the Origin attribute (the origin is
|
107 |
+
now dealt with elsewhere), and modifies year to be the actual year
|
108 |
+
rather than "year - 1900".
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
**************************************************************************
|
113 |
+
|
114 |
+
|
115 |
+
continents.csv
|
116 |
+
|
117 |
+
ContId : unique identifier of the continent
|
118 |
+
Continent : name of the continent
|
119 |
+
|
120 |
+
|
121 |
+
**************************************************************************
|
122 |
+
|
123 |
+
countries.csv
|
124 |
+
|
125 |
+
CountryId : unique identifier of the country
|
126 |
+
CountryName : name of the country
|
127 |
+
Continent : unique identifier of the continent the country is on
|
128 |
+
(see continents.ContId)
|
129 |
+
|
130 |
+
|
131 |
+
**************************************************************************
|
132 |
+
|
133 |
+
model-list.csv
|
134 |
+
|
135 |
+
ModelId : unique identifier of the car model
|
136 |
+
Maker : unique identifier of the car maker (see car-makers.id)
|
137 |
+
Model : name of the car model (also unique)
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
**************************************************************************
|
142 |
+
**************************************************************************
|
143 |
+
|
144 |
+
|
145 |
+
|
146 |
+
|
147 |
+
|
148 |
+
|
149 |
+
|
database/car_1/data_csv/car-makers.csv
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Id,Maker,FullName,Country
|
2 |
+
1,'amc','American Motor Company',1
|
3 |
+
2,'volkswagen','Volkswagen',2
|
4 |
+
3,'bmw','BMW',2
|
5 |
+
4,'gm','General Motors',1
|
6 |
+
5,'ford','Ford Motor Company',1
|
7 |
+
6,'chrysler','Chrysler',1
|
8 |
+
7,'citroen','Citroen',3
|
9 |
+
8,'nissan','Nissan Motors',4
|
10 |
+
9,'fiat','Fiat',5
|
11 |
+
10,'hi','hi',null
|
12 |
+
11,'honda','Honda',4
|
13 |
+
12,'mazda','Mazda',4
|
14 |
+
13,'daimler benz','Daimler Benz',2
|
15 |
+
14,'opel','Opel',2
|
16 |
+
15,'peugeaut','Peugeaut',3
|
17 |
+
16,'renault','Renault',3
|
18 |
+
17,'saab','Saab',6
|
19 |
+
18,'subaru','Subaru',4
|
20 |
+
19,'toyota','Toyota',4
|
21 |
+
20,'triumph','Triumph',7
|
22 |
+
21,'volvo','Volvo',6
|
23 |
+
22,'kia','Kia Motors',8
|
24 |
+
23,'hyundai','Hyundai',8
|
database/car_1/data_csv/car-names.csv
ADDED
@@ -0,0 +1,407 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Id,Model,Make
|
2 |
+
1,'chevrolet','chevrolet chevelle malibu'
|
3 |
+
2,'buick','buick skylark 320'
|
4 |
+
3,'plymouth','plymouth satellite'
|
5 |
+
4,'amc','amc rebel sst'
|
6 |
+
5,'ford','ford torino'
|
7 |
+
6,'ford','ford galaxie 500'
|
8 |
+
7,'chevrolet','chevrolet impala'
|
9 |
+
8,'plymouth','plymouth fury iii'
|
10 |
+
9,'pontiac','pontiac catalina'
|
11 |
+
10,'amc','amc ambassador dpl'
|
12 |
+
11,'citroen','citroen ds-21 pallas'
|
13 |
+
12,'chevrolet','chevrolet chevelle concours (sw)'
|
14 |
+
13,'ford','ford torino (sw)'
|
15 |
+
14,'plymouth','plymouth satellite (sw)'
|
16 |
+
15,'amc','amc rebel sst (sw)'
|
17 |
+
16,'dodge','dodge challenger se'
|
18 |
+
17,'plymouth','plymouth cuda 340'
|
19 |
+
18,'ford','ford mustang boss 302'
|
20 |
+
19,'chevrolet','chevrolet monte carlo'
|
21 |
+
20,'buick','buick estate wagon (sw)'
|
22 |
+
21,'toyota','toyota corona mark ii'
|
23 |
+
22,'plymouth','plymouth duster'
|
24 |
+
23,'amc','amc hornet'
|
25 |
+
24,'ford','ford maverick'
|
26 |
+
25,'datsun','datsun pl510'
|
27 |
+
26,'volkswagen','volkswagen 1131 deluxe sedan'
|
28 |
+
27,'peugeot','peugeot 504'
|
29 |
+
28,'audi','audi 100 ls'
|
30 |
+
29,'saab','saab 99e'
|
31 |
+
30,'bmw','bmw 2002'
|
32 |
+
31,'amc','amc gremlin'
|
33 |
+
32,'ford','ford f250'
|
34 |
+
33,'chevrolet','chevy c20'
|
35 |
+
34,'dodge','dodge d200'
|
36 |
+
35,'hi','hi 1200d'
|
37 |
+
36,'datsun','datsun pl510'
|
38 |
+
37,'chevrolet','chevrolet vega 2300'
|
39 |
+
38,'toyota','toyota corona'
|
40 |
+
39,'ford','ford pinto'
|
41 |
+
40,'volkswagen','volkswagen super beetle 117'
|
42 |
+
41,'amc','amc gremlin'
|
43 |
+
42,'plymouth','plymouth satellite custom'
|
44 |
+
43,'chevrolet','chevrolet chevelle malibu'
|
45 |
+
44,'ford','ford torino 500'
|
46 |
+
45,'amc','amc matador'
|
47 |
+
46,'chevrolet','chevrolet impala'
|
48 |
+
47,'pontiac','pontiac catalina brougham'
|
49 |
+
48,'ford','ford galaxie 500'
|
50 |
+
49,'plymouth','plymouth fury iii'
|
51 |
+
50,'dodge','dodge monaco (sw)'
|
52 |
+
51,'ford','ford country squire (sw)'
|
53 |
+
52,'pontiac','pontiac safari (sw)'
|
54 |
+
53,'amc','amc hornet sportabout (sw)'
|
55 |
+
54,'chevrolet','chevrolet vega (sw)'
|
56 |
+
55,'pontiac','pontiac firebird'
|
57 |
+
56,'ford','ford mustang'
|
58 |
+
57,'mercury','mercury capri 2000'
|
59 |
+
58,'opel','opel 1900'
|
60 |
+
59,'peugeot','peugeot 304'
|
61 |
+
60,'fiat','fiat 124b'
|
62 |
+
61,'toyota','toyota corolla 1200'
|
63 |
+
62,'datsun','datsun 1200'
|
64 |
+
63,'volkswagen','volkswagen model 111'
|
65 |
+
64,'plymouth','plymouth cricket'
|
66 |
+
65,'toyota','toyota corona hardtop'
|
67 |
+
66,'dodge','dodge colt hardtop'
|
68 |
+
67,'volkswagen','volkswagen type 3'
|
69 |
+
68,'chevrolet','chevrolet vega'
|
70 |
+
69,'ford','ford pinto runabout'
|
71 |
+
70,'chevrolet','chevrolet impala'
|
72 |
+
71,'pontiac','pontiac catalina'
|
73 |
+
72,'plymouth','plymouth fury iii'
|
74 |
+
73,'ford','ford galaxie 500'
|
75 |
+
74,'amc','amc ambassador sst'
|
76 |
+
75,'mercury','mercury marquis'
|
77 |
+
76,'buick','buick lesabre custom'
|
78 |
+
77,'oldsmobile','oldsmobile delta 88 royale'
|
79 |
+
78,'chrysler','chrysler newport royal'
|
80 |
+
79,'mazda','mazda rx2 coupe'
|
81 |
+
80,'amc','amc matador (sw)'
|
82 |
+
81,'chevrolet','chevrolet chevelle concours (sw)'
|
83 |
+
82,'ford','ford gran torino (sw)'
|
84 |
+
83,'plymouth','plymouth satellite custom (sw)'
|
85 |
+
84,'volvo','volvo 145e (sw)'
|
86 |
+
85,'volkswagen','volkswagen 411 (sw)'
|
87 |
+
86,'peugeot','peugeot 504 (sw)'
|
88 |
+
87,'renault','renault 12 (sw)'
|
89 |
+
88,'ford','ford pinto (sw)'
|
90 |
+
89,'datsun','datsun 510 (sw)'
|
91 |
+
90,'toyota','toyota corona mark ii (sw)'
|
92 |
+
91,'dodge','dodge colt (sw)'
|
93 |
+
92,'toyota','toyota corolla 1600 (sw)'
|
94 |
+
93,'buick','buick century 350'
|
95 |
+
94,'amc','amc matador'
|
96 |
+
95,'chevrolet','chevrolet malibu'
|
97 |
+
96,'ford','ford gran torino'
|
98 |
+
97,'dodge','dodge coronet custom'
|
99 |
+
98,'mercury','mercury marquis brougham'
|
100 |
+
99,'chevrolet','chevrolet caprice classic'
|
101 |
+
100,'ford','ford ltd'
|
102 |
+
101,'plymouth','plymouth fury gran sedan'
|
103 |
+
102,'chrysler','chrysler new yorker brougham'
|
104 |
+
103,'buick','buick electra 225 custom'
|
105 |
+
104,'amc','amc ambassador brougham'
|
106 |
+
105,'plymouth','plymouth valiant'
|
107 |
+
106,'chevrolet','chevrolet nova custom'
|
108 |
+
107,'amc','amc hornet'
|
109 |
+
108,'ford','ford maverick'
|
110 |
+
109,'plymouth','plymouth duster'
|
111 |
+
110,'volkswagen','volkswagen super beetle'
|
112 |
+
111,'chevrolet','chevrolet impala'
|
113 |
+
112,'ford','ford country'
|
114 |
+
113,'plymouth','plymouth custom suburb'
|
115 |
+
114,'oldsmobile','oldsmobile vista cruiser'
|
116 |
+
115,'amc','amc gremlin'
|
117 |
+
116,'toyota','toyota carina'
|
118 |
+
117,'chevrolet','chevrolet vega'
|
119 |
+
118,'datsun','datsun 610'
|
120 |
+
119,'mazda','mazda rx3'
|
121 |
+
120,'ford','ford pinto'
|
122 |
+
121,'mercury','mercury capri v6'
|
123 |
+
122,'fiat','fiat 124 sport coupe'
|
124 |
+
123,'chevrolet','chevrolet monte carlo s'
|
125 |
+
124,'pontiac','pontiac grand prix'
|
126 |
+
125,'fiat','fiat 128'
|
127 |
+
126,'opel','opel manta'
|
128 |
+
127,'audi','audi 100ls'
|
129 |
+
128,'volvo','volvo 144ea'
|
130 |
+
129,'dodge','dodge dart custom'
|
131 |
+
130,'saab','saab 99le'
|
132 |
+
131,'toyota','toyota mark ii'
|
133 |
+
132,'oldsmobile','oldsmobile omega'
|
134 |
+
133,'plymouth','plymouth duster'
|
135 |
+
134,'ford','ford maverick'
|
136 |
+
135,'amc','amc hornet'
|
137 |
+
136,'chevrolet','chevrolet nova'
|
138 |
+
137,'datsun','datsun b210'
|
139 |
+
138,'ford','ford pinto'
|
140 |
+
139,'toyota','toyota corolla 1200'
|
141 |
+
140,'chevrolet','chevrolet vega'
|
142 |
+
141,'chevrolet','chevrolet chevelle malibu classic'
|
143 |
+
142,'amc','amc matador'
|
144 |
+
143,'plymouth','plymouth satellite sebring'
|
145 |
+
144,'ford','ford gran torino'
|
146 |
+
145,'buick','buick century luxus (sw)'
|
147 |
+
146,'dodge','dodge coronet custom (sw)'
|
148 |
+
147,'ford','ford gran torino (sw)'
|
149 |
+
148,'amc','amc matador (sw)'
|
150 |
+
149,'audi','audi fox'
|
151 |
+
150,'volkswagen','volkswagen dasher'
|
152 |
+
151,'opel','opel manta'
|
153 |
+
152,'toyota','toyota corona'
|
154 |
+
153,'datsun','datsun 710'
|
155 |
+
154,'dodge','dodge colt'
|
156 |
+
155,'fiat','fiat 128'
|
157 |
+
156,'fiat','fiat 124 tc'
|
158 |
+
157,'honda','honda civic'
|
159 |
+
158,'subaru','subaru'
|
160 |
+
159,'fiat','fiat x1.9'
|
161 |
+
160,'plymouth','plymouth valiant custom'
|
162 |
+
161,'chevrolet','chevrolet nova'
|
163 |
+
162,'mercury','mercury monarch'
|
164 |
+
163,'ford','ford maverick'
|
165 |
+
164,'pontiac','pontiac catalina'
|
166 |
+
165,'chevrolet','chevrolet bel air'
|
167 |
+
166,'plymouth','plymouth grand fury'
|
168 |
+
167,'ford','ford ltd'
|
169 |
+
168,'buick','buick century'
|
170 |
+
169,'chevrolet','chevrolet chevelle malibu'
|
171 |
+
170,'amc','amc matador'
|
172 |
+
171,'plymouth','plymouth fury'
|
173 |
+
172,'buick','buick skyhawk'
|
174 |
+
173,'chevrolet','chevrolet monza 2+2'
|
175 |
+
174,'ford','ford mustang ii'
|
176 |
+
175,'toyota','toyota corolla'
|
177 |
+
176,'ford','ford pinto'
|
178 |
+
177,'amc','amc gremlin'
|
179 |
+
178,'pontiac','pontiac astro'
|
180 |
+
179,'toyota','toyota corona'
|
181 |
+
180,'volkswagen','volkswagen dasher'
|
182 |
+
181,'datsun','datsun 710'
|
183 |
+
182,'ford','ford pinto'
|
184 |
+
183,'volkswagen','volkswagen rabbit'
|
185 |
+
184,'amc','amc pacer'
|
186 |
+
185,'audi','audi 100ls'
|
187 |
+
186,'peugeot','peugeot 504'
|
188 |
+
187,'volvo','volvo 244dl'
|
189 |
+
188,'saab','saab 99le'
|
190 |
+
189,'honda','honda civic cvcc'
|
191 |
+
190,'fiat','fiat 131'
|
192 |
+
191,'opel','opel 1900'
|
193 |
+
192,'capri','capri ii'
|
194 |
+
193,'dodge','dodge colt'
|
195 |
+
194,'renault','renault 12tl'
|
196 |
+
195,'chevrolet','chevrolet chevelle malibu classic'
|
197 |
+
196,'dodge','dodge coronet brougham'
|
198 |
+
197,'amc','amc matador'
|
199 |
+
198,'ford','ford gran torino'
|
200 |
+
199,'plymouth','plymouth valiant'
|
201 |
+
200,'chevrolet','chevrolet nova'
|
202 |
+
201,'ford','ford maverick'
|
203 |
+
202,'amc','amc hornet'
|
204 |
+
203,'chevrolet','chevrolet chevette'
|
205 |
+
204,'chevrolet','chevrolet woody'
|
206 |
+
205,'volkswagen','vw rabbit'
|
207 |
+
206,'honda','honda civic'
|
208 |
+
207,'dodge','dodge aspen se'
|
209 |
+
208,'ford','ford granada ghia'
|
210 |
+
209,'pontiac','pontiac ventura sj'
|
211 |
+
210,'amc','amc pacer d/l'
|
212 |
+
211,'volkswagen','volkswagen rabbit'
|
213 |
+
212,'datsun','datsun b-210'
|
214 |
+
213,'toyota','toyota corolla'
|
215 |
+
214,'ford','ford pinto'
|
216 |
+
215,'volvo','volvo 245'
|
217 |
+
216,'plymouth','plymouth volare premier v8'
|
218 |
+
217,'peugeot','peugeot 504'
|
219 |
+
218,'toyota','toyota mark ii'
|
220 |
+
219,'mercedes-benz','mercedes-benz 280s'
|
221 |
+
220,'cadillac','cadillac seville'
|
222 |
+
221,'chevrolet','chevy c10'
|
223 |
+
222,'ford','ford f108'
|
224 |
+
223,'dodge','dodge d100'
|
225 |
+
224,'honda','honda accord cvcc'
|
226 |
+
225,'buick','buick opel isuzu deluxe'
|
227 |
+
226,'renault','renault 5 gtl'
|
228 |
+
227,'plymouth','plymouth arrow gs'
|
229 |
+
228,'datsun','datsun f-10 hatchback'
|
230 |
+
229,'chevrolet','chevrolet caprice classic'
|
231 |
+
230,'oldsmobile','oldsmobile cutlass supreme'
|
232 |
+
231,'dodge','dodge monaco brougham'
|
233 |
+
232,'mercury','mercury cougar brougham'
|
234 |
+
233,'chevrolet','chevrolet concours'
|
235 |
+
234,'buick','buick skylark'
|
236 |
+
235,'plymouth','plymouth volare custom'
|
237 |
+
236,'ford','ford granada'
|
238 |
+
237,'pontiac','pontiac grand prix lj'
|
239 |
+
238,'chevrolet','chevrolet monte carlo landau'
|
240 |
+
239,'chrysler','chrysler cordoba'
|
241 |
+
240,'ford','ford thunderbird'
|
242 |
+
241,'volkswagen','volkswagen rabbit custom'
|
243 |
+
242,'pontiac','pontiac sunbird coupe'
|
244 |
+
243,'toyota','toyota corolla liftback'
|
245 |
+
244,'ford','ford mustang ii 2+2'
|
246 |
+
245,'chevrolet','chevrolet chevette'
|
247 |
+
246,'dodge','dodge colt m/m'
|
248 |
+
247,'subaru','subaru dl'
|
249 |
+
248,'volkswagen','volkswagen dasher'
|
250 |
+
249,'datsun','datsun 810'
|
251 |
+
250,'bmw','bmw 320i'
|
252 |
+
251,'mazda','mazda rx-4'
|
253 |
+
252,'volkswagen','volkswagen rabbit custom diesel'
|
254 |
+
253,'ford','ford fiesta'
|
255 |
+
254,'mazda','mazda glc deluxe'
|
256 |
+
255,'datsun','datsun b210 gx'
|
257 |
+
256,'honda','honda civic cvcc'
|
258 |
+
257,'oldsmobile','oldsmobile cutlass salon brougham'
|
259 |
+
258,'dodge','dodge diplomat'
|
260 |
+
259,'mercury','mercury monarch ghia'
|
261 |
+
260,'pontiac','pontiac phoenix lj'
|
262 |
+
261,'chevrolet','chevrolet malibu'
|
263 |
+
262,'ford','ford fairmont (auto)'
|
264 |
+
263,'ford','ford fairmont (man)'
|
265 |
+
264,'plymouth','plymouth volare'
|
266 |
+
265,'amc','amc concord'
|
267 |
+
266,'buick','buick century special'
|
268 |
+
267,'mercury','mercury zephyr'
|
269 |
+
268,'dodge','dodge aspen'
|
270 |
+
269,'amc','amc concord d/l'
|
271 |
+
270,'chevrolet','chevrolet monte carlo landau'
|
272 |
+
271,'buick','buick regal sport coupe (turbo)'
|
273 |
+
272,'ford','ford futura'
|
274 |
+
273,'dodge','dodge magnum xe'
|
275 |
+
274,'chevrolet','chevrolet chevette'
|
276 |
+
275,'toyota','toyota corona'
|
277 |
+
276,'datsun','datsun 510'
|
278 |
+
277,'dodge','dodge omni'
|
279 |
+
278,'toyota','toyota celica gt liftback'
|
280 |
+
279,'plymouth','plymouth sapporo'
|
281 |
+
280,'oldsmobile','oldsmobile starfire sx'
|
282 |
+
281,'datsun','datsun 200-sx'
|
283 |
+
282,'audi','audi 5000'
|
284 |
+
283,'volvo','volvo 264gl'
|
285 |
+
284,'saab','saab 99gle'
|
286 |
+
285,'peugeot','peugeot 604sl'
|
287 |
+
286,'volkswagen','volkswagen scirocco'
|
288 |
+
287,'honda','honda accord lx'
|
289 |
+
288,'pontiac','pontiac lemans v6'
|
290 |
+
289,'mercury','mercury zephyr 6'
|
291 |
+
290,'ford','ford fairmont 4'
|
292 |
+
291,'amc','amc concord dl 6'
|
293 |
+
292,'dodge','dodge aspen 6'
|
294 |
+
293,'chevrolet','chevrolet caprice classic'
|
295 |
+
294,'ford','ford ltd landau'
|
296 |
+
295,'mercury','mercury grand marquis'
|
297 |
+
296,'dodge','dodge st. regis'
|
298 |
+
297,'buick','buick estate wagon (sw)'
|
299 |
+
298,'ford','ford country squire (sw)'
|
300 |
+
299,'chevrolet','chevrolet malibu classic (sw)'
|
301 |
+
300,'chrysler','chrysler lebaron town @ country (sw)'
|
302 |
+
301,'volkswagen','vw rabbit custom'
|
303 |
+
302,'mazda', 'mazda glc deluxe'
|
304 |
+
303,'dodge','dodge colt hatchback custom'
|
305 |
+
304,'amc','amc spirit dl'
|
306 |
+
305,'mercedes','mercedes benz 300d'
|
307 |
+
306,'cadillac','cadillac eldorado'
|
308 |
+
307,'peugeot','peugeot 504'
|
309 |
+
308,'oldsmobile','oldsmobile cutlass salon brougham'
|
310 |
+
309,'plymouth','plymouth horizon'
|
311 |
+
310,'plymouth','plymouth horizon tc3'
|
312 |
+
311,'datsun','datsun 210'
|
313 |
+
312,'fiat','fiat strada custom'
|
314 |
+
313,'buick','buick skylark limited'
|
315 |
+
314,'chevrolet','chevrolet citation'
|
316 |
+
315,'oldsmobile','oldsmobile omega brougham'
|
317 |
+
316,'pontiac','pontiac phoenix'
|
318 |
+
317,'volkswagen','vw rabbit'
|
319 |
+
318,'toyota','toyota corolla tercel'
|
320 |
+
319,'chevrolet','chevrolet chevette'
|
321 |
+
320,'datsun','datsun 310'
|
322 |
+
321,'chevrolet','chevrolet citation'
|
323 |
+
322,'ford','ford fairmont'
|
324 |
+
323,'amc','amc concord'
|
325 |
+
324,'dodge','dodge aspen'
|
326 |
+
325,'audi','audi 4000'
|
327 |
+
326,'toyota','toyota corona liftback'
|
328 |
+
327,'mazda','mazda 626'
|
329 |
+
328,'datsun','datsun 510 hatchback'
|
330 |
+
329,'toyota','toyota corolla'
|
331 |
+
330,'mazda','mazda glc'
|
332 |
+
331,'dodge','dodge colt'
|
333 |
+
332,'datsun','datsun 210'
|
334 |
+
333,'volkswagen','vw rabbit c (diesel)'
|
335 |
+
334,'volkswagen','vw dasher (diesel)'
|
336 |
+
335,'audi','audi 5000s (diesel)'
|
337 |
+
336,'mercedes-benz','mercedes-benz 240d'
|
338 |
+
337,'honda','honda civic 1500 gl'
|
339 |
+
338,'renault','renault lecar deluxe'
|
340 |
+
339,'subaru','subaru dl'
|
341 |
+
340, 'volkswagen','volkswagen rabbit'
|
342 |
+
341,'datsun','datsun 280-zx'
|
343 |
+
342,'mazda','mazda rx-7 gs'
|
344 |
+
343,'triumph','triumph tr7 coupe'
|
345 |
+
344,'ford','ford mustang cobra'
|
346 |
+
345,'honda','honda accord'
|
347 |
+
346,'plymouth','plymouth reliant'
|
348 |
+
347,'buick','buick skylark'
|
349 |
+
348,'dodge','dodge aries wagon (sw)'
|
350 |
+
349,'chevrolet','chevrolet citation'
|
351 |
+
350,'plymouth','plymouth reliant'
|
352 |
+
351,'toyota','toyota starlet'
|
353 |
+
352,'plymouth','plymouth champ'
|
354 |
+
353,'honda','honda civic 1300'
|
355 |
+
354,'subaru','subaru'
|
356 |
+
355,'datsun','datsun 210 mpg'
|
357 |
+
356,'toyota','toyota tercel'
|
358 |
+
357,'mazda','mazda glc 4'
|
359 |
+
358,'plymouth','plymouth horizon 4'
|
360 |
+
359,'ford','ford escort 4w'
|
361 |
+
360,'ford','ford escort 2h'
|
362 |
+
361,'volkswagen','volkswagen jetta'
|
363 |
+
362,'renault','renault 18i'
|
364 |
+
363,'honda','honda prelude'
|
365 |
+
364,'toyota','toyota corolla'
|
366 |
+
365,'datsun','datsun 200sx'
|
367 |
+
366,'mazda','mazda 626'
|
368 |
+
367,'peugeot','peugeot 505s turbo diesel'
|
369 |
+
368,'saab','saab 900s'
|
370 |
+
369,'volvo','volvo diesel'
|
371 |
+
370,'toyota','toyota cressida'
|
372 |
+
371,'datsun','datsun 810 maxima'
|
373 |
+
372,'buick','buick century'
|
374 |
+
373,'oldsmobile','oldsmobile cutlass ls'
|
375 |
+
374,'ford','ford granada gl'
|
376 |
+
375,'chrysler','chrysler lebaron salon'
|
377 |
+
376,'chevrolet','chevrolet cavalier'
|
378 |
+
377,'chevrolet','chevrolet cavalier wagon'
|
379 |
+
378,'chevrolet','chevrolet cavalier 2-door'
|
380 |
+
379,'pontiac','pontiac j2000 se hatchback'
|
381 |
+
380,'dodge','dodge aries se'
|
382 |
+
381,'pontiac','pontiac phoenix'
|
383 |
+
382,'ford','ford fairmont futura'
|
384 |
+
383,'amc','amc concord dl'
|
385 |
+
384,'volkswagen','volkswagen rabbit l'
|
386 |
+
385,'mazda','mazda glc custom l'
|
387 |
+
386,'mazda','mazda glc custom'
|
388 |
+
387,'plymouth','plymouth horizon miser'
|
389 |
+
388,'mercury','mercury lynx l'
|
390 |
+
389,'nissan','nissan stanza xe'
|
391 |
+
390,'honda','honda accord'
|
392 |
+
391,'toyota','toyota corolla'
|
393 |
+
392,'honda','honda civic'
|
394 |
+
393,'honda','honda civic (auto)'
|
395 |
+
394,'datsun','datsun 310 gx'
|
396 |
+
395,'buick','buick century limited'
|
397 |
+
396,'oldsmobile','oldsmobile cutlass ciera (diesel)'
|
398 |
+
397,'chrysler','chrysler lebaron medallion'
|
399 |
+
398,'ford','ford granada l'
|
400 |
+
399,'toyota','toyota celica gt'
|
401 |
+
400,'dodge','dodge charger 2.2'
|
402 |
+
401,'chevrolet','chevrolet camaro'
|
403 |
+
402,'ford','ford mustang gl'
|
404 |
+
403,'volkswagen','vw pickup'
|
405 |
+
404,'dodge','dodge rampage'
|
406 |
+
405,'ford','ford ranger'
|
407 |
+
406,'chevrolet','chevy s-10'
|
database/car_1/data_csv/cars-data.csv
ADDED
@@ -0,0 +1,407 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Id,MPG,Cylinders,Edispl,Horsepower,Weight,Accelerate,Year
|
2 |
+
1,18,8,307,130,3504,12,1970
|
3 |
+
2,15,8,350,165,3693,11.5,1970
|
4 |
+
3,18,8,318,150,3436,11,1970
|
5 |
+
4,16,8,304,150,3433,12,1970
|
6 |
+
5,17,8,302,140,3449,10.5,1970
|
7 |
+
6,15,8,429,198,4341,10,1970
|
8 |
+
7,14,8,454,220,4354,9,1970
|
9 |
+
8,14,8,440,215,4312,8.5,1970
|
10 |
+
9,14,8,455,225,4425,10,1970
|
11 |
+
10,15,8,390,190,3850,8.5,1970
|
12 |
+
11,null,4,133,115,3090,17.5,1970
|
13 |
+
12,null,8,350,165,4142,11.5,1970
|
14 |
+
13,null,8,351,153,4034,11,1970
|
15 |
+
14,null,8,383,175,4166,10.5,1970
|
16 |
+
15,null,8,360,175,3850,11,1970
|
17 |
+
16,15,8,383,170,3563,10,1970
|
18 |
+
17,14,8,340,160,3609,8,1970
|
19 |
+
18,null,8,302,140,3353,8,1970
|
20 |
+
19,15,8,400,150,3761,9.5,1970
|
21 |
+
20,14,8,455,225,3086,10,1970
|
22 |
+
21,24,4,113,95,2372,15,1970
|
23 |
+
22,22,6,198,95,2833,15.5,1970
|
24 |
+
23,18,6,199,97,2774,15.5,1970
|
25 |
+
24,21,6,200,85,2587,16,1970
|
26 |
+
25,27,4,97,88,2130,14.5,1970
|
27 |
+
26,26,4,97,46,1835,20.5,1970
|
28 |
+
27,25,4,110,87,2672,17.5,1970
|
29 |
+
28,24,4,107,90,2430,14.5,1970
|
30 |
+
29,25,4,104,95,2375,17.5,1970
|
31 |
+
30,26,4,121,113,2234,12.5,1970
|
32 |
+
31,21,6,199,90,2648,15,1970
|
33 |
+
32,10,8,360,215,4615,14,1970
|
34 |
+
33,10,8,307,200,4376,15,1970
|
35 |
+
34,11,8,318,210,4382,13.5,1970
|
36 |
+
35,9,8,304,193,4732,18.5,1970
|
37 |
+
36,27,4,97,88,2130,14.5,1971
|
38 |
+
37,28,4,140,90,2264,15.5,1971
|
39 |
+
38,25,4,113,95,2228,14,1971
|
40 |
+
39,25,4,98,null,2046,19,1971
|
41 |
+
40,null,4,97,48,1978,20,1971
|
42 |
+
41,19,6,232,100,2634,13,1971
|
43 |
+
42,16,6,225,105,3439,15.5,1971
|
44 |
+
43,17,6,250,100,3329,15.5,1971
|
45 |
+
44,19,6,250,88,3302,15.5,1971
|
46 |
+
45,18,6,232,100,3288,15.5,1971
|
47 |
+
46,14,8,350,165,4209,12,1971
|
48 |
+
47,14,8,400,175,4464,11.5,1971
|
49 |
+
48,14,8,351,153,4154,13.5,1971
|
50 |
+
49,14,8,318,150,4096,13,1971
|
51 |
+
50,12,8,383,180,4955,11.5,1971
|
52 |
+
51,13,8,400,170,4746,12,1971
|
53 |
+
52,13,8,400,175,5140,12,1971
|
54 |
+
53,18,6,258,110,2962,13.5,1971
|
55 |
+
54,22,4,140,72,2408,19,1971
|
56 |
+
55,19,6,250,100,3282,15,1971
|
57 |
+
56,18,6,250,88,3139,14.5,1971
|
58 |
+
57,23,4,122,86,2220,14,1971
|
59 |
+
58,28,4,116,90,2123,14,1971
|
60 |
+
59,30,4,79,70,2074,19.5,1971
|
61 |
+
60,30,4,88,76,2065,14.5,1971
|
62 |
+
61,31,4,71,65,1773,19,1971
|
63 |
+
62,35,4,72,69,1613,18,1971
|
64 |
+
63,27,4,97,60,1834,19,1971
|
65 |
+
64,26,4,91,70,1955,20.5,1971
|
66 |
+
65,24,4,113,95,2278,15.5,1972
|
67 |
+
66,25,4,97.5,80,2126,17,1972
|
68 |
+
67,23,4,97,54,2254,23.5,1972
|
69 |
+
68,20,4,140,90,2408,19.5,1972
|
70 |
+
69,21,4,122,86,2226,16.5,1972
|
71 |
+
70,13,8,350,165,4274,12,1972
|
72 |
+
71,14,8,400,175,4385,12,1972
|
73 |
+
72,15,8,318,150,4135,13.5,1972
|
74 |
+
73,14,8,351,153,4129,13,1972
|
75 |
+
74,17,8,304,150,3672,11.5,1972
|
76 |
+
75,11,8,429,208,4633,11,1972
|
77 |
+
76,13,8,350,155,4502,13.5,1972
|
78 |
+
77,12,8,350,160,4456,13.5,1972
|
79 |
+
78,13,8,400,190,4422,12.5,1972
|
80 |
+
79,19,3,70,97,2330,13.5,1972
|
81 |
+
80,15,8,304,150,3892,12.5,1972
|
82 |
+
81,13,8,307,130,4098,14,1972
|
83 |
+
82,13,8,302,140,4294,16,1972
|
84 |
+
83,14,8,318,150,4077,14,1972
|
85 |
+
84,18,4,121,112,2933,14.5,1972
|
86 |
+
85,22,4,121,76,2511,18,1972
|
87 |
+
86,21,4,120,87,2979,19.5,1972
|
88 |
+
87,26,4,96,69,2189,18,1972
|
89 |
+
88,22,4,122,86,2395,16,1972
|
90 |
+
89,28,4,97,92,2288,17,1972
|
91 |
+
90,23,4,120,97,2506,14.5,1972
|
92 |
+
91,28,4,98,80,2164,15,1972
|
93 |
+
92,27,4,97,88,2100,16.5,1972
|
94 |
+
93,13,8,350,175,4100,13,1973
|
95 |
+
94,14,8,304,150,3672,11.5,1973
|
96 |
+
95,13,8,350,145,3988,13,1973
|
97 |
+
96,14,8,302,137,4042,14.5,1973
|
98 |
+
97,15,8,318,150,3777,12.5,1973
|
99 |
+
98,12,8,429,198,4952,11.5,1973
|
100 |
+
99,13,8,400,150,4464,12,1973
|
101 |
+
100,13,8,351,158,4363,13,1973
|
102 |
+
101,14,8,318,150,4237,14.5,1973
|
103 |
+
102,13,8,440,215,4735,11,1973
|
104 |
+
103,12,8,455,225,4951,11,1973
|
105 |
+
104,13,8,360,175,3821,11,1973
|
106 |
+
105,18,6,225,105,3121,16.5,1973
|
107 |
+
106,16,6,250,100,3278,18,1973
|
108 |
+
107,18,6,232,100,2945,16,1973
|
109 |
+
108,18,6,250,88,3021,16.5,1973
|
110 |
+
109,23,6,198,95,2904,16,1973
|
111 |
+
110,26,4,97,46,1950,21,1973
|
112 |
+
111,11,8,400,150,4997,14,1973
|
113 |
+
112,12,8,400,167,4906,12.5,1973
|
114 |
+
113,13,8,360,170,4654,13,1973
|
115 |
+
114,12,8,350,180,4499,12.5,1973
|
116 |
+
115,18,6,232,100,2789,15,1973
|
117 |
+
116,20,4,97,88,2279,19,1973
|
118 |
+
117,21,4,140,72,2401,19.5,1973
|
119 |
+
118,22,4,108,94,2379,16.5,1973
|
120 |
+
119,18,3,70,90,2124,13.5,1973
|
121 |
+
120,19,4,122,85,2310,18.5,1973
|
122 |
+
121,21,6,155,107,2472,14,1973
|
123 |
+
122,26,4,98,90,2265,15.5,1973
|
124 |
+
123,15,8,350,145,4082,13,1973
|
125 |
+
124,16,8,400,230,4278,9.5,1973
|
126 |
+
125,29,4,68,49,1867,19.5,1973
|
127 |
+
126,24,4,116,75,2158,15.5,1973
|
128 |
+
127,20,4,114,91,2582,14,1973
|
129 |
+
128,19,4,121,112,2868,15.5,1973
|
130 |
+
129,15,8,318,150,3399,11,1973
|
131 |
+
130,24,4,121,110,2660,14,1973
|
132 |
+
131,20,6,156,122,2807,13.5,1973
|
133 |
+
132,11,8,350,180,3664,11,1973
|
134 |
+
133,20,6,198,95,3102,16.5,1974
|
135 |
+
134,21,6,200,null,2875,17,1974
|
136 |
+
135,19,6,232,100,2901,16,1974
|
137 |
+
136,15,6,250,100,3336,17,1974
|
138 |
+
137,31,4,79,67,1950,19,1974
|
139 |
+
138,26,4,122,80,2451,16.5,1974
|
140 |
+
139,32,4,71,65,1836,21,1974
|
141 |
+
140,25,4,140,75,2542,17,1974
|
142 |
+
141,16,6,250,100,3781,17,1974
|
143 |
+
142,16,6,258,110,3632,18,1974
|
144 |
+
143,18,6,225,105,3613,16.5,1974
|
145 |
+
144,16,8,302,140,4141,14,1974
|
146 |
+
145,13,8,350,150,4699,14.5,1974
|
147 |
+
146,14,8,318,150,4457,13.5,1974
|
148 |
+
147,14,8,302,140,4638,16,1974
|
149 |
+
148,14,8,304,150,4257,15.5,1974
|
150 |
+
149,29,4,98,83,2219,16.5,1974
|
151 |
+
150,26,4,79,67,1963,15.5,1974
|
152 |
+
151,26,4,97,78,2300,14.5,1974
|
153 |
+
152,31,4,76,52,1649,16.5,1974
|
154 |
+
153,32,4,83,61,2003,19,1974
|
155 |
+
154,28,4,90,75,2125,14.5,1974
|
156 |
+
155,24,4,90,75,2108,15.5,1974
|
157 |
+
156,26,4,116,75,2246,14,1974
|
158 |
+
157,24,4,120,97,2489,15,1974
|
159 |
+
158,26,4,108,93,2391,15.5,1974
|
160 |
+
159,31,4,79,67,2000,16,1974
|
161 |
+
160,19,6,225,95,3264,16,1975
|
162 |
+
161,18,6,250,105,3459,16,1975
|
163 |
+
162,15,6,250,72,3432,21,1975
|
164 |
+
163,15,6,250,72,3158,19.5,1975
|
165 |
+
164,16,8,400,170,4668,11.5,1975
|
166 |
+
165,15,8,350,145,4440,14,1975
|
167 |
+
166,16,8,318,150,4498,14.5,1975
|
168 |
+
167,14,8,351,148,4657,13.5,1975
|
169 |
+
168,17,6,231,110,3907,21,1975
|
170 |
+
169,16,6,250,105,3897,18.5,1975
|
171 |
+
170,15,6,258,110,3730,19,1975
|
172 |
+
171,18,6,225,95,3785,19,1975
|
173 |
+
172,21,6,231,110,3039,15,1975
|
174 |
+
173,20,8,262,110,3221,13.5,1975
|
175 |
+
174,13,8,302,129,3169,12,1975
|
176 |
+
175,29,4,97,75,2171,16,1975
|
177 |
+
176,23,4,140,83,2639,17,1975
|
178 |
+
177,20,6,232,100,2914,16,1975
|
179 |
+
178,23,4,140,78,2592,18.5,1975
|
180 |
+
179,24,4,134,96,2702,13.5,1975
|
181 |
+
180,25,4,90,71,2223,16.5,1975
|
182 |
+
181,24,4,119,97,2545,17,1975
|
183 |
+
182,18,6,171,97,2984,14.5,1975
|
184 |
+
183,29,4,90,70,1937,14,1975
|
185 |
+
184,19,6,232,90,3211,17,1975
|
186 |
+
185,23,4,115,95,2694,15,1975
|
187 |
+
186,23,4,120,88,2957,17,1975
|
188 |
+
187,22,4,121,98,2945,14.5,1975
|
189 |
+
188,25,4,121,115,2671,13.5,1975
|
190 |
+
189,33,4,91,53,1795,17.5,1975
|
191 |
+
190,28,4,107,86,2464,15.5,1976
|
192 |
+
191,25,4,116,81,2220,16.9,1976
|
193 |
+
192,25,4,140,92,2572,14.9,1976
|
194 |
+
193,26,4,98,79,2255,17.7,1976
|
195 |
+
194,27,4,101,83,2202,15.3,1976
|
196 |
+
195,17.5,8,305,140,4215,13,1976
|
197 |
+
196,16,8,318,150,4190,13,1976
|
198 |
+
197,15.5,8,304,120,3962,13.9,1976
|
199 |
+
198,14.5,8,351,152,4215,12.8,1976
|
200 |
+
199,22,6,225,100,3233,15.4,1976
|
201 |
+
200,22,6,250,105,3353,14.5,1976
|
202 |
+
201,24,6,200,81,3012,17.6,1976
|
203 |
+
202,22.5,6,232,90,3085,17.6,1976
|
204 |
+
203,29,4,85,52,2035,22.2,1976
|
205 |
+
204,24.5,4,98,60,2164,22.1,1976
|
206 |
+
205,29,4,90,70,1937,14.2,1976
|
207 |
+
206,33,4,91,53,1795,17.4,1976
|
208 |
+
207,20,6,225,100,3651,17.7,1976
|
209 |
+
208,18,6,250,78,3574,21,1976
|
210 |
+
209,18.5,6,250,110,3645,16.2,1976
|
211 |
+
210,17.5,6,258,95,3193,17.8,1976
|
212 |
+
211,29.5,4,97,71,1825,12.2,1976
|
213 |
+
212,32,4,85,70,1990,17,1976
|
214 |
+
213,28,4,97,75,2155,16.4,1976
|
215 |
+
214,26.5,4,140,72,2565,13.6,1976
|
216 |
+
215,20,4,130,102,3150,15.7,1976
|
217 |
+
216,13,8,318,150,3940,13.2,1976
|
218 |
+
217,19,4,120,88,3270,21.9,1976
|
219 |
+
218,19,6,156,108,2930,15.5,1976
|
220 |
+
219,16.5,6,168,120,3820,16.7,1976
|
221 |
+
220,16.5,8,350,180,4380,12.1,1976
|
222 |
+
221,13,8,350,145,4055,12,1976
|
223 |
+
222,13,8,302,130,3870,15,1976
|
224 |
+
223,13,8,318,150,3755,14,1976
|
225 |
+
224,31.5,4,98,68,2045,18.5,1977
|
226 |
+
225,30,4,111,80,2155,14.8,1977
|
227 |
+
226,36,4,79,58,1825,18.6,1977
|
228 |
+
227,25.5,4,122,96,2300,15.5,1977
|
229 |
+
228,33.5,4,85,70,1945,16.8,1977
|
230 |
+
229,17.5,8,305,145,3880,12.5,1977
|
231 |
+
230,17,8,260,110,4060,19,1977
|
232 |
+
231,15.5,8,318,145,4140,13.7,1977
|
233 |
+
232,15,8,302,130,4295,14.9,1977
|
234 |
+
233,17.5,6,250,110,3520,16.4,1977
|
235 |
+
234,20.5,6,231,105,3425,16.9,1977
|
236 |
+
235,19,6,225,100,3630,17.7,1977
|
237 |
+
236,18.5,6,250,98,3525,19,1977
|
238 |
+
237,16,8,400,180,4220,11.1,1977
|
239 |
+
238,15.5,8,350,170,4165,11.4,1977
|
240 |
+
239,15.5,8,400,190,4325,12.2,1977
|
241 |
+
240,16,8,351,149,4335,14.5,1977
|
242 |
+
241,29,4,97,78,1940,14.5,1977
|
243 |
+
242,24.5,4,151,88,2740,16,1977
|
244 |
+
243,26,4,97,75,2265,18.2,1977
|
245 |
+
244,25.5,4,140,89,2755,15.8,1977
|
246 |
+
245,30.5,4,98,63,2051,17,1977
|
247 |
+
246,33.5,4,98,83,2075,15.9,1977
|
248 |
+
247,30,4,97,67,1985,16.4,1977
|
249 |
+
248,30.5,4,97,78,2190,14.1,1977
|
250 |
+
249,22,6,146,97,2815,14.5,1977
|
251 |
+
250,21.5,4,121,110,2600,12.8,1977
|
252 |
+
251,21.5,3,80,110,2720,13.5,1977
|
253 |
+
252,43.1,4,90,48,1985,21.5,1978
|
254 |
+
253,36.1,4,98,66,1800,14.4,1978
|
255 |
+
254,32.8,4,78,52,1985,19.4,1978
|
256 |
+
255,39.4,4,85,70,2070,18.6,1978
|
257 |
+
256,36.1,4,91,60,1800,16.4,1978
|
258 |
+
257,19.9,8,260,110,3365,15.5,1978
|
259 |
+
258,19.4,8,318,140,3735,13.2,1978
|
260 |
+
259,20.2,8,302,139,3570,12.8,1978
|
261 |
+
260,19.2,6,231,105,3535,19.2,1978
|
262 |
+
261,20.5,6,200,95,3155,18.2,1978
|
263 |
+
262,20.2,6,200,85,2965,15.8,1978
|
264 |
+
263,25.1,4,140,88,2720,15.4,1978
|
265 |
+
264,20.5,6,225,100,3430,17.2,1978
|
266 |
+
265,19.4,6,232,90,3210,17.2,1978
|
267 |
+
266,20.6,6,231,105,3380,15.8,1978
|
268 |
+
267,20.8,6,200,85,3070,16.7,1978
|
269 |
+
268,18.6,6,225,110,3620,18.7,1978
|
270 |
+
269,18.1,6,258,120,3410,15.1,1978
|
271 |
+
270,19.2,8,305,145,3425,13.2,1978
|
272 |
+
271,17.7,6,231,165,3445,13.4,1978
|
273 |
+
272,18.1,8,302,139,3205,11.2,1978
|
274 |
+
273,17.5,8,318,140,4080,13.7,1978
|
275 |
+
274,30,4,98,68,2155,16.5,1978
|
276 |
+
275,27.5,4,134,95,2560,14.2,1978
|
277 |
+
276,27.2,4,119,97,2300,14.7,1978
|
278 |
+
277,30.9,4,105,75,2230,14.5,1978
|
279 |
+
278,21.1,4,134,95,2515,14.8,1978
|
280 |
+
279,23.2,4,156,105,2745,16.7,1978
|
281 |
+
280,23.8,4,151,85,2855,17.6,1978
|
282 |
+
281,23.9,4,119,97,2405,14.9,1978
|
283 |
+
282,20.3,5,131,103,2830,15.9,1978
|
284 |
+
283,17,6,163,125,3140,13.6,1978
|
285 |
+
284,21.6,4,121,115,2795,15.7,1978
|
286 |
+
285,16.2,6,163,133,3410,15.8,1978
|
287 |
+
286,31.5,4,89,71,1990,14.9,1978
|
288 |
+
287,29.5,4,98,68,2135,16.6,1978
|
289 |
+
288,21.5,6,231,115,3245,15.4,1979
|
290 |
+
289,19.8,6,200,85,2990,18.2,1979
|
291 |
+
290,22.3,4,140,88,2890,17.3,1979
|
292 |
+
291,20.2,6,232,90,3265,18.2,1979
|
293 |
+
292,20.6,6,225,110,3360,16.6,1979
|
294 |
+
293,17,8,305,130,3840,15.4,1979
|
295 |
+
294,17.6,8,302,129,3725,13.4,1979
|
296 |
+
295,16.5,8,351,138,3955,13.2,1979
|
297 |
+
296,18.2,8,318,135,3830,15.2,1979
|
298 |
+
297,16.9,8,350,155,4360,14.9,1979
|
299 |
+
298,15.5,8,351,142,4054,14.3,1979
|
300 |
+
299,19.2,8,267,125,3605,15,1979
|
301 |
+
300,18.5,8,360,150,3940,13,1979
|
302 |
+
301,31.9,4,89,71,1925,14,1979
|
303 |
+
302,34.1,4,86,65,1975,15.2,1979
|
304 |
+
303,35.7,4,98,80,1915,14.4,1979
|
305 |
+
304,27.4,4,121,80,2670,15,1979
|
306 |
+
305,25.4,5,183,77,3530,20.1,1979
|
307 |
+
306,23,8,350,125,3900,17.4,1979
|
308 |
+
307,27.2,4,141,71,3190,24.8,1979
|
309 |
+
308,23.9,8,260,90,3420,22.2,1979
|
310 |
+
309,34.2,4,105,70,2200,13.2,1979
|
311 |
+
310,34.5,4,105,70,2150,14.9,1979
|
312 |
+
311,31.8,4,85,65,2020,19.2,1979
|
313 |
+
312,37.3,4,91,69,2130,14.7,1979
|
314 |
+
313,28.4,4,151,90,2670,16,1979
|
315 |
+
314,28.8,6,173,115,2595,11.3,1979
|
316 |
+
315,26.8,6,173,115,2700,12.9,1979
|
317 |
+
316,33.5,4,151,90,2556,13.2,1979
|
318 |
+
317,41.5,4,98,76,2144,14.7,1980
|
319 |
+
318,38.1,4,89,60,1968,18.8,1980
|
320 |
+
319,32.1,4,98,70,2120,15.5,1980
|
321 |
+
320,37.2,4,86,65,2019,16.4,1980
|
322 |
+
321,28,4,151,90,2678,16.5,1980
|
323 |
+
322,26.4,4,140,88,2870,18.1,1980
|
324 |
+
323,24.3,4,151,90,3003,20.1,1980
|
325 |
+
324,19.1,6,225,90,3381,18.7,1980
|
326 |
+
325,34.3,4,97,78,2188,15.8,1980
|
327 |
+
326,29.8,4,134,90,2711,15.5,1980
|
328 |
+
327,31.3,4,120,75,2542,17.5,1980
|
329 |
+
328,37,4,119,92,2434,15,1980
|
330 |
+
329,32.2,4,108,75,2265,15.2,1980
|
331 |
+
330,46.6,4,86,65,2110,17.9,1980
|
332 |
+
331,27.9,4,156,105,2800,14.4,1980
|
333 |
+
332,40.8,4,85,65,2110,19.2,1980
|
334 |
+
333,44.3,4,90,48,2085,21.7,1980
|
335 |
+
334,43.4,4,90,48,2335,23.7,1980
|
336 |
+
335,36.4,5,121,67,2950,19.9,1980
|
337 |
+
336,30,4,146,67,3250,21.8,1980
|
338 |
+
337,44.6,4,91,67,1850,13.8,1980
|
339 |
+
338,40.9,4,85,null,1835,17.3,1980
|
340 |
+
339,33.8,4,97,67,2145,18,1980
|
341 |
+
340,29.8,4,89,62,1845,15.3,1980
|
342 |
+
341,32.7,6,168,132,2910,11.4,1980
|
343 |
+
342,23.7,3,70,100,2420,12.5,1980
|
344 |
+
343,35,4,122,88,2500,15.1,1980
|
345 |
+
344,23.6,4,140,null,2905,14.3,1980
|
346 |
+
345,32.4,4,107,72,2290,17,1980
|
347 |
+
346,27.2,4,135,84,2490,15.7,1981
|
348 |
+
347,26.6,4,151,84,2635,16.4,1981
|
349 |
+
348,25.8,4,156,92,2620,14.4,1981
|
350 |
+
349,23.5,6,173,110,2725,12.6,1981
|
351 |
+
350,30,4,135,84,2385,12.9,1981
|
352 |
+
351,39.1,4,79,58,1755,16.9,1981
|
353 |
+
352,39,4,86,64,1875,16.4,1981
|
354 |
+
353,35.1,4,81,60,1760,16.1,1981
|
355 |
+
354,32.3,4,97,67,2065,17.8,1981
|
356 |
+
355,37,4,85,65,1975,19.4,1981
|
357 |
+
356,37.7,4,89,62,2050,17.3,1981
|
358 |
+
357,34.1,4,91,68,1985,16,1981
|
359 |
+
358,34.7,4,105,63,2215,14.9,1981
|
360 |
+
359,34.4,4,98,65,2045,16.2,1981
|
361 |
+
360,29.9,4,98,65,2380,20.7,1981
|
362 |
+
361,33,4,105,74,2190,14.2,1981
|
363 |
+
362,34.5,4,100,null,2320,15.8,1981
|
364 |
+
363,33.7,4,107,75,2210,14.4,1981
|
365 |
+
364,32.4,4,108,75,2350,16.8,1981
|
366 |
+
365,32.9,4,119,100,2615,14.8,1981
|
367 |
+
366,31.6,4,120,74,2635,18.3,1981
|
368 |
+
367,28.1,4,141,80,3230,20.4,1981
|
369 |
+
368,null,4,121,110,2800,15.4,1981
|
370 |
+
369,30.7,6,145,76,3160,19.6,1981
|
371 |
+
370,25.4,6,168,116,2900,12.6,1981
|
372 |
+
371,24.2,6,146,120,2930,13.8,1981
|
373 |
+
372,22.4,6,231,110,3415,15.8,1981
|
374 |
+
373,26.6,8,350,105,3725,19,1981
|
375 |
+
374,20.2,6,200,88,3060,17.1,1981
|
376 |
+
375,17.6,6,225,85,3465,16.6,1981
|
377 |
+
376,28,4,112,88,2605,19.6,1982
|
378 |
+
377,27,4,112,88,2640,18.6,1982
|
379 |
+
378,34,4,112,88,2395,18,1982
|
380 |
+
379,31,4,112,85,2575,16.2,1982
|
381 |
+
380,29,4,135,84,2525,16,1982
|
382 |
+
381,27,4,151,90,2735,18,1982
|
383 |
+
382,24,4,140,92,2865,16.4,1982
|
384 |
+
383,23,4,151,null,3035,20.5,1982
|
385 |
+
384,36,4,105,74,1980,15.3,1982
|
386 |
+
385,37,4,91,68,2025,18.2,1982
|
387 |
+
386,31,4,91,68,1970,17.6,1982
|
388 |
+
387,38,4,105,63,2125,14.7,1982
|
389 |
+
388,36,4,98,70,2125,17.3,1982
|
390 |
+
389,36,4,120,88,2160,14.5,1982
|
391 |
+
390,36,4,107,75,2205,14.5,1982
|
392 |
+
391,34,4,108,70,2245,16.9,1982
|
393 |
+
392,38,4,91,67,1965,15,1982
|
394 |
+
393,32,4,91,67,1965,15.7,1982
|
395 |
+
394,38,4,91,67,1995,16.2,1982
|
396 |
+
395,25,6,181,110,2945,16.4,1982
|
397 |
+
396,38,6,262,85,3015,17,1982
|
398 |
+
397,26,4,156,92,2585,14.5,1982
|
399 |
+
398,22,6,232,112,2835,14.7,1982
|
400 |
+
399,32,4,144,96,2665,13.9,1982
|
401 |
+
400,36,4,135,84,2370,13,1982
|
402 |
+
401,27,4,151,90,2950,17.3,1982
|
403 |
+
402,27,4,140,86,2790,15.6,1982
|
404 |
+
403,44,4,97,52,2130,24.6,1982
|
405 |
+
404,32,4,135,84,2295,11.6,1982
|
406 |
+
405,28,4,120,79,2625,18.6,1982
|
407 |
+
406,31,4,119,82,2720,19.4,1982
|
database/car_1/data_csv/cars.desc
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The Committee on Statistical Graphics of the American Statistical
|
2 |
+
Association (ASA) invites you to participate in its Second (1983)
|
3 |
+
Exposition of Statistical Graphics Technology. The purposes of the
|
4 |
+
Exposition are (l) to provide a forum in which users and providers of
|
5 |
+
statistical graphics technology can exchange information and ideas and
|
6 |
+
(2) to expose those members of the ASA community who are less familiar
|
7 |
+
with statistical graphics to its capabilities and potential benefits
|
8 |
+
to them. The Exposition wil1 be held in conjunction with the Annual
|
9 |
+
Meetings in Toronto, August 15-18, 1983 and is tentatively scheduled
|
10 |
+
for the afternoon of Wednesday, August 17.
|
11 |
+
|
12 |
+
Seven providers of statistical graphics technology participated in the
|
13 |
+
l982 Exposition. By all accounts, the Exposition was well received by
|
14 |
+
the ASA community and was a worthwhile experience for the
|
15 |
+
participants. We hope to have those seven involved again this year,
|
16 |
+
along with as many new participants as we can muster. The 1982
|
17 |
+
Exposition was summarized in a paper to appear in the Proceeding of
|
18 |
+
the Statistical Computing Section. A copy of that paper is enclosed
|
19 |
+
for your information.
|
20 |
+
|
21 |
+
The basic format of the 1983 Exposition will be similar to that of
|
22 |
+
1982. However, based upon comments received and experience gained,
|
23 |
+
there are some changes. The basic structure, intended to be simpler
|
24 |
+
and more flexible than last year, is as follows:
|
25 |
+
|
26 |
+
A fixed data set is to be analyzed. This data set is a version of the
|
27 |
+
CRCARS data set of
|
28 |
+
|
29 |
+
Donoho, David and Ramos, Ernesto (1982), ``PRIMDATA:
|
30 |
+
Data Sets for Use With PRIM-H'' (DRAFT).
|
31 |
+
|
32 |
+
Because of the Committee's limited (zero) budget for the Exposition,
|
33 |
+
we are forced to provide the data in hardcopy form only (enclosed).
|
34 |
+
(Sorry!)
|
35 |
+
|
36 |
+
There are 406 observations on the following 8 variables: MPG (miles
|
37 |
+
per gallon), # cylinders, engine displacement (cu. inches), horsepower,
|
38 |
+
vehicle weight (lbs.), time to accelerate from O to 60 mph (sec.),
|
39 |
+
model year (modulo 100), and origin of car (1. American, 2. European,
|
40 |
+
3. Japanese). These data appear on seven pages. Also provided are the
|
41 |
+
car labels (types) in the same order as the 8 variables on seven
|
42 |
+
separate pages. Missing data values are marked by series of question
|
43 |
+
marks.
|
44 |
+
|
45 |
+
You are asked to analyze these data using your statistical graphics
|
46 |
+
software. Your objective should be to achieve graphical displays which
|
47 |
+
will be meaningful to the viewers and highlight relevant aspects of
|
48 |
+
the data. If you can best achieve this using simple graphical formats,
|
49 |
+
fine. If you choose to illustrate some of the more sophisticated
|
50 |
+
capabilities of your software and can do so without losing relevancy
|
51 |
+
to the data, that is fine, too. This year, there will be no Committee
|
52 |
+
commentary on the individual presentations, so you are not competing
|
53 |
+
with other presenters. The role of each presenter is to do his/her
|
54 |
+
best job of presenting their statistical graphics technology to the
|
55 |
+
viewers.
|
56 |
+
|
57 |
+
Each participant will be provided with a 6'(long) by 4'(tall)
|
58 |
+
posterboard on which to display the results of their analyses. This is
|
59 |
+
the same format as last year. You are encouraged to remain by your
|
60 |
+
presentation during the Exposition to answer viewers' questions. Three
|
61 |
+
copies of your presentation must be submitted to me by July 1. Movie
|
62 |
+
or slide show presentations cannot be accommodated (sorry). The
|
63 |
+
Committee will prepare its own poster presentation which will orient
|
64 |
+
the viewers to the data and the purposes of the Exposition.
|
65 |
+
|
66 |
+
The ASA has asked us to remind all participants that the Exposition is
|
67 |
+
intended for educational and scientific purposes and is not a
|
68 |
+
marketing activity. Even though last year's participants did an
|
69 |
+
excellent job of maintaining that distinction, a cautionary note at
|
70 |
+
this point is appropriate.
|
71 |
+
|
72 |
+
Those of us who were involved with the 1982 Exposition found it
|
73 |
+
worthwhile and fun to do. We would very much like to have you
|
74 |
+
participate this year. For planning purposes, please RSVP (to me, in
|
75 |
+
writing please) by April 15 as to whether you plan to accept the
|
76 |
+
Committee's invitation.
|
77 |
+
|
78 |
+
If you have any questions about the Exposition, please call me on
|
79 |
+
(301/763-5350). If you have specific questions about the data, or the
|
80 |
+
analysis, please call Karen Kafadar on (301/921-3651). If you cannot
|
81 |
+
participate but know of another person or group in your organization
|
82 |
+
who can, please pass this invitation along to them.
|
83 |
+
|
84 |
+
Sincerely,
|
85 |
+
|
86 |
+
|
87 |
+
|
88 |
+
LAWRENCE H. COX
|
89 |
+
Statistical Research Division
|
90 |
+
Bureau of the Census
|
91 |
+
Room 3524-3
|
92 |
+
Washington, DC 20233
|
93 |
+
|
94 |
+
|
database/car_1/data_csv/continents.csv
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ContId,Continent
|
2 |
+
1,'america'
|
3 |
+
2,'europe'
|
4 |
+
3,'asia'
|
5 |
+
4,'africa'
|
6 |
+
5,'australia'
|
database/car_1/data_csv/countries.csv
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
CountryId,CountryName,Continent
|
2 |
+
1,'usa',1
|
3 |
+
2,'germany',2
|
4 |
+
3,'france',2
|
5 |
+
4,'japan',3
|
6 |
+
5,'italy',2
|
7 |
+
6,'sweden',2
|
8 |
+
7,'uk',2
|
9 |
+
8,'korea',3
|
10 |
+
9,'russia',2
|
11 |
+
10,'nigeria',4
|
12 |
+
11,'australia',5
|
13 |
+
12,'new zealand',5
|
14 |
+
13,'egypt',4
|
15 |
+
14,'mexico',1
|
16 |
+
15,'brazil',1
|
database/car_1/data_csv/model-list.csv
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ModelId,Maker,Model
|
2 |
+
1,1,'amc'
|
3 |
+
2,2,'audi'
|
4 |
+
3,3,'bmw'
|
5 |
+
4,4,'buick'
|
6 |
+
5,4,'cadillac'
|
7 |
+
6,5,'capri'
|
8 |
+
7,4,'chevrolet'
|
9 |
+
8,6,'chrysler'
|
10 |
+
9,7,'citroen'
|
11 |
+
10,8,'datsun'
|
12 |
+
11,6,'dodge'
|
13 |
+
12,9,'fiat'
|
14 |
+
13,5,'ford'
|
15 |
+
14,10,'hi'
|
16 |
+
15,11,'honda'
|
17 |
+
16,12,'mazda'
|
18 |
+
17,13,'mercedes'
|
19 |
+
18,13,'mercedes-benz'
|
20 |
+
19,5,'mercury'
|
21 |
+
20,8,'nissan'
|
22 |
+
21,4,'oldsmobile'
|
23 |
+
22,14,'opel'
|
24 |
+
23,15,'peugeot'
|
25 |
+
24,6,'plymouth'
|
26 |
+
25,4,'pontiac'
|
27 |
+
26,16,'renault'
|
28 |
+
27,17,'saab'
|
29 |
+
28,18,'subaru'
|
30 |
+
29,19,'toyota'
|
31 |
+
30,20,'triumph'
|
32 |
+
31,2,'volkswagen'
|
33 |
+
32,21,'volvo'
|
34 |
+
33,22,'kia'
|
35 |
+
34,23,'hyundai'
|
36 |
+
35,6,'jeep'
|
37 |
+
36,19,'scion'
|
database/car_1/link.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
http://users.csc.calpoly.edu/~dekhtyar/365-Spring2017/index.html
|
database/car_1/q.txt
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Find all Reanults (’renault’) in the database. For each, report the name and the year.
|
2 |
+
|
3 |
+
Find all cars produced by Volvo between 1977 and 1981 (inclusive). Report the name of the car and the year it was produced.
|
4 |
+
|
5 |
+
Report all Asian automakers. Output the full name of the automaker and the country of origin
|
6 |
+
|
7 |
+
Find all non-four cylinder cars produced in 1980 that have a better fuel economy better than 20 MPG and that accelerate to 60 mph faster than in 15 seconds. Report the name of the car and the name of the automaker.
|
8 |
+
|
9 |
+
For each saab released after 1978, compute the ratio between the weight of the car and its number of horsepowers. Report the full name of the car, the year it was produced and the ratio.
|
10 |
+
|
11 |
+
Find the average, maximum and minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.
|
12 |
+
|
13 |
+
Find how many different car manufacturers produced a vehicle heavier than 4000 lbs.
|
14 |
+
|
15 |
+
Find the minimum horsepower for 4-cylinder vehicles manufactured by renault between 1971 and 1976 inclusively.
|
16 |
+
|
17 |
+
For each year when US-manufactured cars averaged less than 100 horsepowers, report the highest and the lowest engine displacement number.
|
18 |
+
|
19 |
+
For each year in which honda produced more than 2 models, report the best, the worst and the average gas milage of a toyota vehicle.
|
20 |
+
|
21 |
+
Report all vehicles with the best gas mileage. For each vehicle, report its full name and the year of production.
|
22 |
+
|
23 |
+
Among the vehicles with the gas mileage, report the one with the best acceleration. Report full name and the year of production.
|
24 |
+
|
25 |
+
For each country report the automaker with the largest number of cars in the database. Report the name of the country.
|
26 |
+
|
27 |
+
Find the difference in gas milage between the most fuel-efficient 8-cylinder model and the least fuel-efficient 4-cylinder model. Report just the number.
|
database/chinook_1/annotation.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"label_id": null,
|
3 |
+
"data": [],
|
4 |
+
"review_id": null
|
5 |
+
}
|
database/chinook_1/chinook_1.sqlite
ADDED
Binary file (901 kB). View file
|
|
database/cinema/cinema.sqlite
ADDED
Binary file (28.7 kB). View file
|
|
database/cinema/schema.sql
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
PRAGMA foreign_keys = ON;
|
3 |
+
|
4 |
+
|
5 |
+
CREATE TABLE "film" (
|
6 |
+
"Film_ID" int,
|
7 |
+
"Rank_in_series" int,
|
8 |
+
"Number_in_season" int,
|
9 |
+
"Title" text,
|
10 |
+
"Directed_by" text,
|
11 |
+
"Original_air_date" text,
|
12 |
+
"Production_code" text,
|
13 |
+
PRIMARY KEY ("Film_ID")
|
14 |
+
);
|
15 |
+
|
16 |
+
CREATE TABLE "cinema" (
|
17 |
+
"Cinema_ID" int,
|
18 |
+
"Name" text,
|
19 |
+
"Openning_year" int,
|
20 |
+
"Capacity" int,
|
21 |
+
"Location" text,
|
22 |
+
PRIMARY KEY ("Cinema_ID"));
|
23 |
+
|
24 |
+
INSERT INTO "film" VALUES (1,"26","1","The Case of the Mystery Weekend","Bill Schreiner","September 21–25, 1992","50021–50025");
|
25 |
+
INSERT INTO "film" VALUES (2,"27","2","The Case of the Smart Dummy","Bill Schreiner","September 28–October 2, 1992","50231–50235");
|
26 |
+
INSERT INTO "film" VALUES (3,"28","3","The Case: Off the Record","Bill Schreiner","October 5–9, 1992","50011–50015");
|
27 |
+
INSERT INTO "film" VALUES (4,"29","4","The Case of the Bermuda Triangle","Jesus Salvador Treviño","October 12–16, 1992","50251–50255");
|
28 |
+
INSERT INTO "film" VALUES (5,"30","5","The Case of the Piggy Banker","Bill Schreiner","October 19–23, 1992","50241–50245");
|
29 |
+
|
30 |
+
INSERT INTO "cinema" VALUES (1,"Codling","2010","1100","County Wicklow");
|
31 |
+
INSERT INTO "cinema" VALUES (2,"Carrowleagh","2012","368","County Cork");
|
32 |
+
INSERT INTO "cinema" VALUES (3,"Dublin Array","2015","364","County Dublin");
|
33 |
+
INSERT INTO "cinema" VALUES (4,"Glenmore","2009","305","County Clare");
|
34 |
+
INSERT INTO "cinema" VALUES (5,"Glenough","2010","325","County Tipperary");
|
35 |
+
INSERT INTO "cinema" VALUES (6,"Gortahile","2010","208","County Laois");
|
36 |
+
INSERT INTO "cinema" VALUES (7,"Grouse Lodge","2011","203","County Tipperary");
|
37 |
+
INSERT INTO "cinema" VALUES (8,"Moneypoint","2011","225","County Clare");
|
38 |
+
INSERT INTO "cinema" VALUES (9,"Mount Callan","2011","908","County Clare");
|
39 |
+
INSERT INTO "cinema" VALUES (10,"Oriel","2013","330","County Louth");
|
40 |
+
|
41 |
+
CREATE TABLE "schedule" (
|
42 |
+
"Cinema_ID" int,
|
43 |
+
"Film_ID" int,
|
44 |
+
"Date" text,
|
45 |
+
"Show_times_per_day" int,
|
46 |
+
"Price" float,
|
47 |
+
PRIMARY KEY ("Cinema_ID","Film_ID"),
|
48 |
+
FOREIGN KEY (`Film_ID`) REFERENCES `film`(`Film_ID`),
|
49 |
+
FOREIGN KEY (`Cinema_ID`) REFERENCES `cinema`(`Cinema_ID`)
|
50 |
+
);
|
51 |
+
|
52 |
+
|
53 |
+
INSERT INTO "schedule" VALUES (1,1,"21 May",5,12.99);
|
54 |
+
INSERT INTO "schedule" VALUES (1,2,"21 May",3,12.99);
|
55 |
+
INSERT INTO "schedule" VALUES (1,3,"21 Jun",2,8.99);
|
56 |
+
INSERT INTO "schedule" VALUES (2,1,"11 July",5,9.99);
|
57 |
+
INSERT INTO "schedule" VALUES (6,5,"2 Aug",4,12.99);
|
58 |
+
INSERT INTO "schedule" VALUES (9,4,"20 May",5,9.99);
|
59 |
+
INSERT INTO "schedule" VALUES (10,1,"19 May",5,15.99);
|
60 |
+
|
database/city_record/city_record.sqlite
ADDED
Binary file (36.9 kB). View file
|
|