Chinastark commited on
Commit
f0a791e
·
verified ·
1 Parent(s): c549bcb

Add files using upload-large-folder tool

Browse files
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/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/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/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/company_employee/company_employee.sqlite ADDED
Binary file (28.7 kB). View file
 
database/company_employee/schema.sql ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "people" (
4
+ "People_ID" int,
5
+ "Age" int,
6
+ "Name" text,
7
+ "Nationality" text,
8
+ "Graduation_College" text,
9
+ PRIMARY KEY ("People_ID")
10
+ );
11
+
12
+
13
+ INSERT INTO "people" VALUES ("1","27","Reggie Lewis","United States","Northeastern");
14
+ INSERT INTO "people" VALUES ("2","25","Brad Lohaus","United States","Iowa");
15
+ INSERT INTO "people" VALUES ("3","37","Tom Sheehey","United Kindom","Virginia");
16
+ INSERT INTO "people" VALUES ("4","31","Darryl Kennedy","United States","Oklahoma");
17
+ INSERT INTO "people" VALUES ("5","34","David Butler","United Kindom","California");
18
+ INSERT INTO "people" VALUES ("6","37","Tim Naegeli","United States","Wisconsin–Stevens Point");
19
+ INSERT INTO "people" VALUES ("7","30","Jerry Corcoran","United States","Northeastern");
20
+
21
+
22
+
23
+ CREATE TABLE "company" (
24
+ "Company_ID" real,
25
+ "Name" text,
26
+ "Headquarters" text,
27
+ "Industry" text,
28
+ "Sales_in_Billion" real,
29
+ "Profits_in_Billion" real,
30
+ "Assets_in_Billion" real,
31
+ "Market_Value_in_Billion" real,
32
+ PRIMARY KEY ("Company_ID")
33
+ );
34
+
35
+
36
+ INSERT INTO "company" VALUES ("1","ExxonMobil","USA","Oil and gas","433.5","41.1","331.1","407.4");
37
+ INSERT INTO "company" VALUES ("2","JPMorgan Chase","USA","Banking","110.8","19","2265.8","170.1");
38
+ INSERT INTO "company" VALUES ("3","General Electric","USA","Conglomerate","147.3","14.2","717.2","213.7");
39
+ INSERT INTO "company" VALUES ("4","Royal Dutch Shell","Netherlands","Oil and gas","470.2","30.9","340.5","227.6");
40
+ INSERT INTO "company" VALUES ("5","Industrial and Commercial Bank of China","China","Banking","82.6","25.1","2039.1","237.4");
41
+ INSERT INTO "company" VALUES ("6","HSBC","UK","Banking","102","16.2","2550","164.3");
42
+ INSERT INTO "company" VALUES ("7","PetroChina","China","Oil and gas","310.1","20.6","304.7","294.7");
43
+ INSERT INTO "company" VALUES ("8","Berkshire Hathaway","USA","Conglomerate","143.7","10.3","392.6","202.2");
44
+ INSERT INTO "company" VALUES ("9","Wells Fargo","USA","Banking","87.6","15.9","1313.9","178.7");
45
+ INSERT INTO "company" VALUES ("10","Petrobras","Brazil","Oil and gas","145.9","20.1","319.4","180");
46
+ INSERT INTO "company" VALUES ("11","BP","UK","Oil and gas","375.5","25.7","292.5","147.4");
47
+ INSERT INTO "company" VALUES ("12","Chevron","USA","Oil and gas","236.3","26.9","209.5","218");
48
+ INSERT INTO "company" VALUES ("13","China Construction Bank","China","Banking","68.7","20.5","1637.8","201.9");
49
+ INSERT INTO "company" VALUES ("14","Citigroup","USA","Banking","102.6","11.1","1873.9","107.5");
50
+ INSERT INTO "company" VALUES ("15","Gazprom","Russia","Oil and gas","117.6","31.7","302.6","159.8");
51
+ INSERT INTO "company" VALUES ("16","Walmart","USA","Retailing","447","15.7","193.4","208.4");
52
+ INSERT INTO "company" VALUES ("17","Volkswagen Group","Germany","Automotive","221.9","21.5","328.7","79.5");
53
+ INSERT INTO "company" VALUES ("18","Total","France","Oil and gas","216.2","15.9","213","132.4");
54
+ INSERT INTO "company" VALUES ("19","Agricultural Bank of China","China","Banking","62.4","14.4","1563.9","154.8");
55
+
56
+
57
+
58
+ CREATE TABLE "employment" (
59
+ "Company_ID" int,
60
+ "People_ID" int,
61
+ "Year_working" int,
62
+ PRIMARY KEY ("Company_ID","People_ID"),
63
+ FOREIGN KEY ("Company_ID") REFERENCES `company`("Company_ID"),
64
+ FOREIGN KEY ("People_ID") REFERENCES `people`("People_ID")
65
+ );
66
+
67
+ INSERT INTO "employment" VALUES (11,3,2);
68
+ INSERT INTO "employment" VALUES (13,2,3);
69
+ INSERT INTO "employment" VALUES (17,7,4);
70
+ INSERT INTO "employment" VALUES (15,1,1);
71
+ INSERT INTO "employment" VALUES (7,4,1);
72
+
database/debate/debate.sqlite ADDED
Binary file (28.7 kB). View file
 
database/document_management/schema.sql ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE `Roles` (
4
+ `role_code` VARCHAR(15) PRIMARY KEY,
5
+ `role_description` VARCHAR(80)
6
+ );
7
+
8
+ CREATE TABLE `Users` (
9
+ `user_id` INTEGER PRIMARY KEY,
10
+ `role_code` VARCHAR(15) NOT NULL,
11
+ `user_name` VARCHAR(40),
12
+ `user_login` VARCHAR(40),
13
+ `password` VARCHAR(40),
14
+ FOREIGN KEY (`role_code` ) REFERENCES `Roles`(`role_code` )
15
+ );
16
+ INSERT INTO Roles (`role_code`, `role_description`) VALUES ('DBA', 'Database Administrator');
17
+ INSERT INTO Roles (`role_code`, `role_description`) VALUES ('PROJ-MGR', 'Project Manager');
18
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (1, 'PROJ-MGR', 'dickens.elta', '0', 'e72b5a2d50b39a8760764a5f7a9d68ca2f076877');
19
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (2, 'DBA', 'tremblay.raheem', '1', '9bc25a040d5647ced5ec32e1a455e90fafc10bcb');
20
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (3, 'DBA', 'lynn.haley', '0', '90db8f51449e6c39e2a01f0b649d5a92fe76bbbb');
21
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (4, 'PROJ-MGR', 'ycremin', '0', 'f6977378f409f5d2d230016a6678a582e14f43b0');
22
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (5, 'PROJ-MGR', 'larson.vesta', '1', 'da383455a05a824606c54e99f671c4d6a2ddae26');
23
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (6, 'DBA', 'amelie53', '0', '6aa66440864ff8143fe7dee5940a6af3460bad07');
24
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (7, 'DBA', 'jacklyn.schmitt', '1', '3f6affa583bfdf7fac6faeb2ca418431909d4b39');
25
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (8, 'PROJ-MGR', 'joanne.deckow', '0', '20241478f890508ac47870cfba472e1db04a71ca');
26
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (9, 'PROJ-MGR', 'dickinson.lenora', '0', 'a0fe5434a5f4c218e37b0082f2408b357feb0fa6');
27
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (10, 'DBA', 'heller.harley', '1', '11af7569a5c1e8b455add5755e18131be2ac8636');
28
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (11, 'DBA', 'roger.o''conner', '0', '3d478d7056d6417966f6b1676f6ec81b3094f44f');
29
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (12, 'DBA', 'gussie00', '1', '75f7b5ed8e70e86467155e003ccda6fce1011c29');
30
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (13, 'PROJ-MGR', 'johanna.fisher', '1', '1fb26eea854962d41512827bf90a5b7ce4b359d8');
31
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (14, 'DBA', 'faye30', '0', '27cca8f94136f0e8971b5ca555a21ff756871b27');
32
+ INSERT INTO Users (`user_id`, `role_code`, `user_name`, `user_login`, `password`) VALUES (15, 'PROJ-MGR', 'glenna.simonis', '1', '95f489fc0921bbb3e7d661a550ae208b88d9b11a');
33
+
34
+ CREATE TABLE `Document_Structures` (
35
+ `document_structure_code` VARCHAR(15) PRIMARY KEY,
36
+ `parent_document_structure_code` VARCHAR(15),
37
+ `document_structure_description` VARCHAR(80)
38
+ );
39
+ INSERT INTO Document_Structures (`document_structure_code`, `parent_document_structure_code`, `document_structure_description`) VALUES ('1', '1', 'Header');
40
+ INSERT INTO Document_Structures (`document_structure_code`, `parent_document_structure_code`, `document_structure_description`) VALUES ('6', '1', 'Main section');
41
+ INSERT INTO Document_Structures (`document_structure_code`, `parent_document_structure_code`, `document_structure_description`) VALUES ('8', '1', 'Bib');
42
+ INSERT INTO Document_Structures (`document_structure_code`, `parent_document_structure_code`, `document_structure_description`) VALUES ('5', '6', 'Image section');
43
+ INSERT INTO Document_Structures (`document_structure_code`, `parent_document_structure_code`, `document_structure_description`) VALUES ('9', '8', 'Author section');
44
+
45
+
46
+ CREATE TABLE `Functional_Areas` (
47
+ `functional_area_code` VARCHAR(15) PRIMARY KEY,
48
+ `parent_functional_area_code` VARCHAR(15),
49
+ `functional_area_description` VARCHAR(80) NOT NULL
50
+ );
51
+
52
+ INSERT INTO Functional_Areas (`functional_area_code`, `parent_functional_area_code`, `functional_area_description`) VALUES ('8', '8', 'Signature');
53
+ INSERT INTO Functional_Areas (`functional_area_code`, `parent_functional_area_code`, `functional_area_description`) VALUES ('1', '8', 'Acknowledgement');
54
+ INSERT INTO Functional_Areas (`functional_area_code`, `parent_functional_area_code`, `functional_area_description`) VALUES ('9', '8', 'Keep blank');
55
+
56
+
57
+ CREATE TABLE `Images` (
58
+ `image_id` INTEGER PRIMARY KEY,
59
+ `image_alt_text` VARCHAR(80),
60
+ `image_name` VARCHAR(40),
61
+ `image_url` VARCHAR(255)
62
+ );
63
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (1, 'Lea', 'top1', 'http://www.rempelnader.com/1.jpg');
64
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (2, 'Arden', 'top2', 'http://connellykertzmann.org/1.jpg');
65
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (3, 'Mohamed', 'top3', 'http://www.bernierconnelly.com/1.jpg');
66
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (4, 'Chaya', 'top4', 'http://abernathyboehm.com/1.jpg');
67
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (5, 'Percival', 'chapter1', 'http://gaylord.info/1.jpg');
68
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (6, 'Lincoln', 'chapter2', 'http://www.hellerreinger.com/1.jpg');
69
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (7, 'Camylle', 'chapter3', 'http://faycummerata.net/1.jpg');
70
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (8, 'Ashtyn', 'chapter4', 'http://haleychamplin.net/1.jpg');
71
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (9, 'Filomena', 'chapter5', 'http://www.fritsch.net/1.jpg');
72
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (10, 'Jeanette', 'data1', 'http://sauer.com/1.jpg');
73
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (11, 'Name', 'data2', 'http://www.heller.com/1.jpg');
74
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (12, 'Marianna', 'data3', 'http://www.hermann.com/1.jpg');
75
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (13, 'Stephen', 'data4', 'http://rowelakin.com/1.jpg');
76
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (14, 'Miller', 'data5', 'http://andersonluettgen.net/1.jpg');
77
+ INSERT INTO Images (`image_id`, `image_alt_text`, `image_name`, `image_url`) VALUES (15, 'Trycia', 'data6', 'http://www.beahan.biz/1.jpg');
78
+
79
+
80
+ CREATE TABLE `Documents` (
81
+ `document_code` VARCHAR(15) PRIMARY KEY,
82
+ `document_structure_code` VARCHAR(15) NOT NULL,
83
+ `document_type_code` VARCHAR(15) NOT NULL,
84
+ `access_count` INTEGER,
85
+ `document_name` VARCHAR(80),
86
+ FOREIGN KEY (`document_structure_code` ) REFERENCES `Document_Structures`(`document_structure_code` )
87
+ );
88
+
89
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('217', '8', 'Book', 1864, 'Learning English');
90
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('621', '1', 'Paper', 8208, 'Research about Art history');
91
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('958', '8', 'Book', 3769, 'Learning Database');
92
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('961', '5', 'Advertisement', 6661, 'Summer Sails');
93
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('989', '9', 'Book', 2910, 'Learning Japanese');
94
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('930', '9', 'CV', 6345, 'David CV');
95
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('928', '8', 'Book', 2045, 'How to cook pasta');
96
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('510', '6', 'Paper', 3479, 'Humanity: a fact');
97
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('706', '9', 'Advertisement', 8623, 'Winter Sails');
98
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('465', '9', 'CV', 5924, 'John CV');
99
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('713', '8', 'CV', 2294, 'Joe CV');
100
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('566', '5', 'Advertisement', 3289, 'Spring Sails');
101
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('349', '9', 'Book', 1219, 'Life about Claude Monet');
102
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('675', '1', 'Advertisement', 7509, 'Fall Sails');
103
+ INSERT INTO Documents (`document_code`, `document_structure_code`, `document_type_code`, `access_count`, `document_name`) VALUES ('714', '6', 'Paper', 9948, 'Relationships between History and Arts');
104
+
105
+
106
+
107
+
108
+ CREATE TABLE `Document_Functional_Areas` (
109
+ `document_code` VARCHAR(15) NOT NULL,
110
+ `functional_area_code` VARCHAR(15) NOT NULL,
111
+ FOREIGN KEY (`document_code` ) REFERENCES `Documents`(`document_code` ),
112
+ FOREIGN KEY (`functional_area_code` ) REFERENCES `Functional_Areas`(`functional_area_code` )
113
+ );
114
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('675', '9');
115
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('930', '1');
116
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('217', '1');
117
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('465', '1');
118
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('958', '1');
119
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('958', '9');
120
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('217', '9');
121
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('961', '9');
122
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('928', '9');
123
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('958', '9');
124
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('349', '1');
125
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('961', '8');
126
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('989', '1');
127
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('706', '8');
128
+ INSERT INTO Document_Functional_Areas (`document_code`, `functional_area_code`) VALUES ('713', '8');
129
+
130
+
131
+ CREATE TABLE `Document_Sections` (
132
+ `section_id` INTEGER PRIMARY KEY,
133
+ `document_code` VARCHAR(15) NOT NULL,
134
+ `section_sequence` INTEGER,
135
+ `section_code` VARCHAR(20),
136
+ `section_title` VARCHAR(80),
137
+ FOREIGN KEY (`document_code` ) REFERENCES `Documents`(`document_code` )
138
+ );
139
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (40, '465', 4964, '93', 'after');
140
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (57, '989', 6349, '22', 'after');
141
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (15, '217', 4510, '14', 'after');
142
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (62, '621', 5552, '16', 'after');
143
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (23, '465', 8548, '49', 'after');
144
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (19, '675', 7236, '90', 'after');
145
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (95, '621', 8805, '38', 'before');
146
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (27, '566', 6016, '18', 'before');
147
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (89, '566', 2354, '34', 'before');
148
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (93, '713', 4433, '91', 'before');
149
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (21, '675', 9847, '72', 'before');
150
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (54, '961', 4794, '34', 'before');
151
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (12, '714', 6072, '70', 'after');
152
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (38, '930', 6521, '58', 'after');
153
+ INSERT INTO Document_Sections (`section_id`, `document_code`, `section_sequence`, `section_code`, `section_title`) VALUES (86, '706', 2170, '60', 'after');
154
+
155
+ CREATE TABLE `Document_Sections_Images` (
156
+ `section_id` INTEGER NOT NULL,
157
+ `image_id` INTEGER NOT NULL,
158
+ PRIMARY KEY (`section_id`,`image_id`),
159
+ FOREIGN KEY (`section_id` ) REFERENCES `Document_Sections`(`section_id` ),
160
+ FOREIGN KEY (`image_id` ) REFERENCES `Images`(`image_id` )
161
+ );
162
+
163
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (93, 6);
164
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (86, 2);
165
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (27, 3);
166
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (12, 12);
167
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (19, 12);
168
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (38, 12);
169
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (89, 8);
170
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (23, 8);
171
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (40, 5);
172
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (19, 2);
173
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (62, 14);
174
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (21, 2);
175
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (86, 4);
176
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (15, 14);
177
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (54, 12);
178
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (38, 7);
179
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (15, 13);
180
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (27, 10);
181
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (40, 6);
182
+ INSERT INTO Document_Sections_Images (`section_id`, `image_id`) VALUES (19, 6);
database/e_learning/schema.sql ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Course_Authors_and_Tutors` (
3
+ `author_id` INTEGER PRIMARY KEY,
4
+ `author_tutor_ATB` VARCHAR(3),
5
+ `login_name` VARCHAR(40),
6
+ `password` VARCHAR(40),
7
+ `personal_name` VARCHAR(80),
8
+ `middle_name` VARCHAR(80),
9
+ `family_name` VARCHAR(80),
10
+ `gender_mf` VARCHAR(1),
11
+ `address_line_1` VARCHAR(80)
12
+ );
13
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (1, '331', 'jmckenzie', 'c40fa148bdd0d2d45cd6e9ec1e685750fe07f81b', 'Cathrine', 'Ruthie', 'Grant', '0', '756 Monahan Mews
14
+ Spinkashire, NJ 64230-5098');
15
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (2, '975', 'heidenreich.ara', '24b0ee84063c3b017ab1839e01b7280f47f7c7c2', 'Retha', 'Corene', 'Armstrong', '0', '98623 Huels Manor
16
+ Jasttown, DE 31611');
17
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (3, '349', 'clementina29', 'cdaf6c3483f19e2253659a40a3aab786a3390f78', 'Darius', 'Ethyl', 'Reichel', '0', '99296 Keeling Courts
18
+ North Audreanne, IL 28272');
19
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (4, '782', 'wlehner', 'd34378200c9b5f72d3039fa640e7920aaec0fdf2', 'Julio', 'Aniyah', 'Nader', '1', '644 Montana Hill Suite 489
20
+ Daijamouth, CA 19587-4254');
21
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (5, '388', 'nyundt', '2c196efe8aee23a1b9a7e752fe63029c5879af6f', 'Yessenia', 'Zena', 'Barrows', '1', '5284 Champlin Roads
22
+ Cassinport, WY 54636');
23
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (6, '817', 'al75', 'e96c0bcbbbb14747747a56ff4c17354f343a5b4f', 'Adolf', 'Keira', 'Rohan', '1', '92220 Hellen Skyway Apt. 635
24
+ Rennerview, MS 81036');
25
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (7, '869', 'marty.bergnaum', '3e2f7bf1e6acf0d616a8703ee0050fba13bc007f', 'Logan', 'Ethelyn', 'Treutel', '1', '67541 Osborne Creek Suite 532
26
+ Bernhardview, WV 30288-1050');
27
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (8, '557', 'medhurst.alvah', '02d64f11de97436343a0beba41bfcf69af61be1e', 'Kelsie', 'Kennith', 'Rowe', '0', '0256 Walter Meadows Suite 523
28
+ Norbertoborough, AZ 49193');
29
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (9, '505', 'antonetta19', '4d8e909ae9b8888c93a2c5f1eccbd0c4ac6a01c3', 'Georgiana', 'Mathew', 'Zboncak', '0', '445 Quigley Fall
30
+ Port Antonette, IN 81992-1255');
31
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (10, '159', 'adam.rippin', 'b517a107b5f08fafe9628e88e7263a6f3a4a55c0', 'Deja', 'Joyce', 'Champlin', '1', '22575 Effertz Neck Apt. 046
32
+ Port Scotty, NY 67108-9197');
33
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (11, '229', 'dschaefer', '4f149f75ecd84afcdf27343509cdd03d81edb119', 'Ciara', 'Alejandra', 'Greenholt', '0', '425 White Brooks
34
+ Emmaleefort, IN 97850-2510');
35
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (12, '847', 'nellie.mosciski', 'a48e25a58b3088e9cfdaca61130555ed2c772452', 'Sheldon', 'Jayce', 'Kreiger', '1', '513 Collins Plain Apt. 829
36
+ Clementinaville, VT 59908-2793');
37
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (13, '613', 'qking', '6b9979a83b4a9e03ead034c8de47f1b013a3d3af', 'Madonna', 'Jaclyn', 'Effertz', '1', '139 O''Conner Circles
38
+ Virginieland, KS 23365');
39
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (14, '833', 'fiona77', '120ac8a5744f5b710ecaebbd8dd1633e3e33886e', 'Dusty', 'Amani', 'Crist', '1', '3602 Boehm Forest
40
+ Zulaufton, DC 35229-0366');
41
+ INSERT INTO Course_Authors_and_Tutors (`author_id`, `author_tutor_ATB`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`, `gender_mf`, `address_line_1`) VALUES (15, '974', 'ekshlerin', '6d587cec8006e3a40565e1dad2c5b5b12b475b8f', 'Shakira', 'Fritz', 'Haley', '0', '8928 Kunze Valley Apt. 747
42
+ South Jedidiahmouth, DE 28167');
43
+
44
+
45
+ CREATE TABLE `Students` (
46
+ `student_id` INTEGER PRIMARY KEY,
47
+ `date_of_registration` DATETIME,
48
+ `date_of_latest_logon` DATETIME,
49
+ `login_name` VARCHAR(40),
50
+ `password` VARCHAR(10),
51
+ `personal_name` VARCHAR(40),
52
+ `middle_name` VARCHAR(40),
53
+ `family_name` VARCHAR(40)
54
+ );
55
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (1, '2015-07-22 13:32:35', '2017-10-17 22:52:26', 'annamae.hoppe', 'db8765bb6f', 'Wilson', 'Aubrey', 'Ward');
56
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (2, '2015-07-02 00:21:42', '2017-06-24 22:16:27', 'wmiller', '35faf8182a', 'Karson', 'Luella', 'Jaskolski');
57
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (3, '2015-10-11 03:23:27', '2018-03-10 23:22:23', 'ahartmann', '8e064ec4e6', 'Mariela', 'Brandt', 'Legros');
58
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (4, '2016-01-05 17:21:32', '2018-02-24 23:15:41', 'ylockman', 'a18d639a12', 'Krystel', 'Casimir', 'Langosh');
59
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (5, '2015-04-27 10:25:31', '2017-09-05 23:04:07', 'mohamed50', 'aedd08a3b9', 'Autumn', 'Lawson', 'Schumm');
60
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (6, '2015-05-12 03:59:32', '2017-09-09 13:19:18', 'bmarquardt', '3e72450865', 'Bernie', 'Asa', 'Zieme');
61
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (7, '2015-09-05 10:49:02', '2017-07-17 23:13:31', 'darrin56', '35cd4a47a3', 'Jewel', 'Marianne', 'Hodkiewicz');
62
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (8, '2015-12-06 07:43:56', '2017-08-24 19:42:33', 'eichmann.lera', '623af75b4a', 'Marshall', 'Linnea', 'Johns');
63
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (9, '2015-08-13 03:31:42', '2017-11-25 03:14:32', 'sdaugherty', '7c90dbbfde', 'Prince', 'Kailey', 'Ziemann');
64
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (10, '2015-04-12 11:07:48', '2017-12-11 14:29:41', 'myron.bergnaum', '5bc0d35e75', 'Alicia', 'Vicente', 'Carroll');
65
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (11, '2015-10-15 09:36:40', '2017-05-29 19:06:35', 'gia.jacobson', '2e05a1e6a3', 'Clotilde', 'Kolby', 'Windler');
66
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (12, '2016-03-25 18:58:58', '2018-01-07 00:15:03', 'kiarra28', 'aa33f3b875', 'Claudia', 'Karley', 'Mitchell');
67
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (13, '2015-03-29 14:43:22', '2018-01-10 11:27:03', 'francisca48', '1c760b9d5d', 'Else', 'Camilla', 'Hartmann');
68
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (14, '2015-08-11 01:04:31', '2017-09-15 08:10:04', 'ruthie.rolfson', '9031f3a72e', 'Cary', 'Ursula', 'O''Reilly');
69
+ INSERT INTO Students (`student_id`, `date_of_registration`, `date_of_latest_logon`, `login_name`, `password`, `personal_name`, `middle_name`, `family_name`) VALUES (15, '2016-01-12 15:33:36', '2018-02-22 18:38:02', 'jgulgowski', '0f37421f02', 'Eliza', 'Shanel', 'Leannon');
70
+
71
+ CREATE TABLE `Subjects` (
72
+ `subject_id` INTEGER PRIMARY KEY,
73
+ `subject_name` VARCHAR(120)
74
+ );
75
+ INSERT INTO Subjects (`subject_id`, `subject_name`) VALUES (1, 'Computer Science');
76
+ INSERT INTO Subjects (`subject_id`, `subject_name`) VALUES (2, 'Arts');
77
+ INSERT INTO Subjects (`subject_id`, `subject_name`) VALUES (3, 'Language');
78
+
79
+
80
+ CREATE TABLE `Courses` (
81
+ `course_id` INTEGER PRIMARY KEY,
82
+ `author_id` INTEGER NOT NULL,
83
+ `subject_id` INTEGER NOT NULL,
84
+ `course_name` VARCHAR(120),
85
+ `course_description` VARCHAR(255),
86
+ FOREIGN KEY (`author_id` ) REFERENCES `Course_Authors_and_Tutors`(`author_id` ),
87
+ FOREIGN KEY (`subject_id` ) REFERENCES `Subjects`(`subject_id` )
88
+ );
89
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (1, 8, 1, 'database', 'database');
90
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (2, 6, 1, 'advanced database', 'advanced database');
91
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (3, 15, 1, 'operating system', 'operating system');
92
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (4, 14, 2, 'Art history', 'Art history');
93
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (5, 11, 1, 'data structure', 'data structure');
94
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (6, 12, 3, 'English', 'English');
95
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (7, 8, 3, 'French', 'French');
96
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (8, 4, 3, 'Japanese', 'Japanese');
97
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (9, 13, 1, 'AI', 'AI');
98
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (10, 5, 3, 'Writing in French', 'Writing in French');
99
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (11, 9, 3, 'Spanish', 'Spanish');
100
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (12, 5, 2, 'European Arts', 'European Arts');
101
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (13, 13, 1, 'machine learning', 'machine learning');
102
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (14, 6, 2, 'modern Arts', 'modern Arts');
103
+ INSERT INTO Courses (`course_id`, `author_id`, `subject_id`, `course_name`, `course_description`) VALUES (15, 14, 2, 'Chinese Painting', 'Chinese Painting');
104
+
105
+
106
+ CREATE TABLE `Student_Course_Enrolment` (
107
+ `registration_id` INTEGER PRIMARY KEY,
108
+ `student_id` INTEGER NOT NULL,
109
+ `course_id` INTEGER NOT NULL,
110
+ `date_of_enrolment` DATETIME NOT NULL,
111
+ `date_of_completion` DATETIME NOT NULL,
112
+ FOREIGN KEY (`course_id` ) REFERENCES `Courses`(`course_id` ),
113
+ FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
114
+ );
115
+
116
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (1, 11, 2, '2017-10-09 07:09:02', '2018-02-26 07:48:52');
117
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (2, 15, 4, '2017-11-13 12:49:33', '2018-03-04 01:24:56');
118
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (3, 10, 8, '2017-10-17 13:50:40', '2018-03-22 02:53:01');
119
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (4, 13, 7, '2017-09-06 06:27:15', '2018-03-07 09:45:48');
120
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (5, 15, 10, '2017-08-20 01:07:18', '2018-03-06 00:27:09');
121
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (6, 14, 1, '2017-09-24 15:17:26', '2018-03-01 00:08:30');
122
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (7, 12, 9, '2017-09-21 07:05:01', '2018-03-04 22:34:37');
123
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (8, 15, 11, '2017-12-07 02:21:13', '2018-02-27 20:06:06');
124
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (9, 8, 9, '2017-08-02 17:21:44', '2018-03-07 00:39:37');
125
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (10, 6, 1, '2017-10-10 10:05:03', '2018-03-19 07:34:05');
126
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (11, 15, 11, '2017-08-17 00:16:46', '2018-03-16 09:00:44');
127
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (12, 3, 7, '2017-11-30 11:40:56', '2018-03-02 14:38:49');
128
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (13, 14, 10, '2017-10-26 20:42:34', '2018-03-10 16:38:28');
129
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (14, 8, 2, '2017-07-15 12:48:43', '2018-03-18 03:23:54');
130
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (15, 4, 8, '2017-12-09 20:49:23', '2018-02-28 09:34:51');
131
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (16, 8, 14, '2017-12-16 15:53:06', '2018-03-22 18:04:54');
132
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (17, 9, 7, '2017-10-29 15:39:31', '2018-03-01 07:12:39');
133
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (18, 2, 4, '2017-11-22 18:29:18', '2018-03-09 17:56:18');
134
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (19, 15, 15, '2017-10-23 08:23:22', '2018-02-26 23:46:25');
135
+ INSERT INTO Student_Course_Enrolment (`registration_id`, `student_id`, `course_id`, `date_of_enrolment`, `date_of_completion`) VALUES (20, 10, 14, '2017-12-04 12:16:10', '2018-03-14 23:33:47');
136
+
137
+ CREATE TABLE `Student_Tests_Taken` (
138
+ `registration_id` INTEGER NOT NULL,
139
+ `date_test_taken` DATETIME NOT NULL,
140
+ `test_result` VARCHAR(255),
141
+ FOREIGN KEY (`registration_id` ) REFERENCES `Student_Course_Enrolment`(`registration_id` )
142
+ );
143
+
144
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (12, '2018-03-25 03:27:16', 'Fail');
145
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (10, '2018-03-25 21:50:22', 'Pass');
146
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (7, '2018-03-21 00:32:25', 'Pass');
147
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (7, '2018-03-25 00:44:50', 'Pass');
148
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (4, '2018-03-25 15:06:12', 'Pass');
149
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (16, '2018-03-25 12:00:08', 'Fail');
150
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (16, '2018-03-25 21:22:00', 'Fail');
151
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (19, '2018-03-24 13:22:17', 'Pass');
152
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (19, '2018-03-25 16:59:22', 'Fail');
153
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (4, '2018-03-25 21:41:51', 'Fail');
154
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (9, '2018-03-19 02:04:26', 'Pass');
155
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (5, '2018-03-22 17:07:11', 'Fail');
156
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (17, '2018-03-23 23:47:42', 'Pass');
157
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (2, '2018-03-22 13:10:06', 'Fail');
158
+ INSERT INTO Student_Tests_Taken (`registration_id`, `date_test_taken`, `test_result`) VALUES (2, '2018-03-19 14:48:12', 'Pass');
database/flight_company/flight_company.sqlite ADDED
Binary file (28.7 kB). View file
 
database/icfp_1/icfp_1.sqlite ADDED
Binary file (12.3 kB). View file
 
database/news_report/schema.sql ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+
4
+ CREATE TABLE "event" (
5
+ "Event_ID" int,
6
+ "Date" text,
7
+ "Venue" text,
8
+ "Name" text,
9
+ "Event_Attendance" int,
10
+ PRIMARY KEY ("Event_ID")
11
+ );
12
+
13
+ CREATE TABLE "journalist" (
14
+ "journalist_ID" int,
15
+ "Name" text,
16
+ "Nationality" text,
17
+ "Age" text,
18
+ "Years_working" int,
19
+ PRIMARY KEY ("journalist_ID")
20
+ );
21
+
22
+ INSERT INTO "event" VALUES (1,"13 October 2008","Marathon","Olympia Games Openning","6650");
23
+ INSERT INTO "event" VALUES (2,"11 October 2007","Victoria","Government Hearing","369");
24
+ INSERT INTO "event" VALUES (3,"7 October 2010","Motagua","Public Debating","1675");
25
+ INSERT INTO "event" VALUES (4,"20 June 2018","Platense","Global Awarding","2356");
26
+ INSERT INTO "event" VALUES (5,"9 April 2014","Hispano","Special Exhibition","225");
27
+
28
+
29
+ INSERT INTO "journalist" VALUES (1,"Herbert Swindells","England",37,10);
30
+ INSERT INTO "journalist" VALUES (2,"Fred Keenor","Wales",27,5);
31
+ INSERT INTO "journalist" VALUES (3,"George Gilchrist","England",28,6);
32
+ INSERT INTO "journalist" VALUES (4,"Jackie Waring","England",43,21);
33
+ INSERT INTO "journalist" VALUES (5,"Fred Chandler","England",34,6);
34
+ INSERT INTO "journalist" VALUES (6,"Ray Ferris","Northern Ireland",29,3);
35
+ INSERT INTO "journalist" VALUES (7,"John Meaney","England",28,7);
36
+ INSERT INTO "journalist" VALUES (8,"Tony Waddington","England",43,12);
37
+ INSERT INTO "journalist" VALUES (9,"Jack Meaney","England",37,8);
38
+ INSERT INTO "journalist" VALUES (10,"Frank Mitcheson","England",33,9);
39
+ INSERT INTO "journalist" VALUES (11,"Tom Briggs","England",25,1);
40
+
41
+
42
+
43
+ CREATE TABLE "news_report" (
44
+ "journalist_ID" int,
45
+ "Event_ID" int,
46
+ "Work_Type" text,
47
+ PRIMARY KEY ("journalist_ID","Event_ID"),
48
+ FOREIGN KEY ("journalist_ID") REFERENCES `journalist`("journalist_ID"),
49
+ FOREIGN KEY ("Event_ID") REFERENCES `event`("Event_ID")
50
+ );
51
+
52
+ INSERT INTO "news_report" VALUES (1,3,"Screening");
53
+ INSERT INTO "news_report" VALUES (11,5,"Screening");
54
+ INSERT INTO "news_report" VALUES (6,1,"Screening");
55
+ INSERT INTO "news_report" VALUES (4,2,"Music");
56
+ INSERT INTO "news_report" VALUES (7,5,"Music");
57
+ INSERT INTO "news_report" VALUES (4,1,"Host");
58
+ INSERT INTO "news_report" VALUES (8,4,"Host");
59
+
database/pets_1/pets_1.sqlite ADDED
Binary file (16.4 kB). View file
 
database/program_share/program_share.sqlite ADDED
Binary file (36.9 kB). View file
 
database/railway/railway.sqlite ADDED
Binary file (36.9 kB). View file
 
database/wedding/schema.sql ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "people" (
5
+ "People_ID" int,
6
+ "Name" text,
7
+ "Country" text,
8
+ "Is_Male" text,
9
+ "Age" int,
10
+ PRIMARY KEY ("People_ID")
11
+ );
12
+
13
+
14
+
15
+ INSERT INTO "people" VALUES ("1","Mike Weir","Canada","T",34);
16
+ INSERT INTO "people" VALUES ("2","Juli Hanson","Sweden","F",32);
17
+ INSERT INTO "people" VALUES ("3","Ricky Barnes","United States","T",30);
18
+ INSERT INTO "people" VALUES ("4","Summer Duval","United States","F",30);
19
+ INSERT INTO "people" VALUES ("5","Todd Hamilton","United States","T",27);
20
+ INSERT INTO "people" VALUES ("6","Annie Mediate","United States","F",26);
21
+ INSERT INTO "people" VALUES ("7","Lucas Glover","United States","T",31);
22
+ INSERT INTO "people" VALUES ("8","Joe O'Hair","United States","F",31);
23
+ INSERT INTO "people" VALUES ("9","Graeme McDowell","Northern Ireland","T",34);
24
+ INSERT INTO "people" VALUES ("10","Jamie Mickelson","United States","F",36);
25
+ INSERT INTO "people" VALUES ("11","Adam Scott","Australia","T",26);
26
+ INSERT INTO "people" VALUES ("12","Danny Toms","United States","F",25);
27
+
28
+
29
+ CREATE TABLE "church" (
30
+ "Church_ID" int,
31
+ "Name" text,
32
+ "Organized_by" text,
33
+ "Open_Date" int,
34
+ "Continuation_of" text,
35
+ PRIMARY KEY ("Church_ID")
36
+ );
37
+
38
+
39
+ INSERT INTO "church" VALUES (1,"Pure Church of Christ","Wycam Clark","1831","Church of Christ");
40
+ INSERT INTO "church" VALUES (2,"Independent Church","– Hoton","1832","Church of Christ");
41
+ INSERT INTO "church" VALUES (3,"Church of Christ","Ezra Booth","1836","Church of the Latter Day Saints");
42
+ INSERT INTO "church" VALUES (4,"Church of Christ (Parrishite)","Warren Parrish","1837","Church of the Latter Day Saints");
43
+ INSERT INTO "church" VALUES (5,"Alston Church","Isaac Russell","1839","Church of Jesus Christ of Latter Day Saints");
44
+ INSERT INTO "church" VALUES (6,"Church of Christ","William Chubby","1830","Church of Jesus Christ of Latter Day Saints");
45
+ INSERT INTO "church" VALUES (7,"Church of Jesus Christ, the Bride, the Lamb's Wife","George M. Hinkle","1840","Church of Jesus Christ of Latter Day Saints");
46
+ INSERT INTO "church" VALUES (8,"Church of Christ","Hiram Page","1842","Church of Jesus Christ of Latter Day Saints");
47
+ INSERT INTO "church" VALUES (9,"True Church of Jesus Christ of Latter Day Saints","William Law","1844","Church of Jesus Christ of Latter Day Saints");
48
+
49
+
50
+ CREATE TABLE "wedding" (
51
+ "Church_ID" int,
52
+ "Male_ID" int,
53
+ "Female_ID" int,
54
+ "Year" int,
55
+ PRIMARY KEY ("Church_ID","Male_ID","Female_ID"),
56
+ FOREIGN KEY ("Church_ID") REFERENCES `church`("Church_ID"),
57
+ FOREIGN KEY ("Male_ID") REFERENCES `people`("People_ID"),
58
+ FOREIGN KEY ("Female_ID") REFERENCES `people`("People_ID")
59
+ );
60
+
61
+ INSERT INTO "wedding" VALUES (1,1,2,"2014");
62
+ INSERT INTO "wedding" VALUES (3,3,4,"2015");
63
+ INSERT INTO "wedding" VALUES (5,5,6,"2016");
64
+ INSERT INTO "wedding" VALUES (4,7,8,"2016");
65
+
database/wrestler/schema.sql ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "wrestler" (
4
+ "Wrestler_ID" int,
5
+ "Name" text,
6
+ "Reign" text,
7
+ "Days_held" text,
8
+ "Location" text,
9
+ "Event" text,
10
+ PRIMARY KEY ("Wrestler_ID")
11
+ );
12
+
13
+ CREATE TABLE "Elimination" (
14
+ "Elimination_ID" text,
15
+ "Wrestler_ID" text,
16
+ "Team" text,
17
+ "Eliminated_By" text,
18
+ "Elimination_Move" text,
19
+ "Time" text,
20
+ PRIMARY KEY ("Elimination_ID"),
21
+ FOREIGN KEY ("Wrestler_ID") REFERENCES "wrestler"("Wrestler_ID")
22
+ );
23
+
24
+ INSERT INTO "wrestler" VALUES (1,"Rey Misterio Sr.","1","344","Tijuana , Mexico","Live event");
25
+ INSERT INTO "wrestler" VALUES (2,"Fishman","1","113","Tijuana , Mexico","Live event");
26
+ INSERT INTO "wrestler" VALUES (3,"Villaño IV","1","1285","Tijuana , Mexico","Live event");
27
+ INSERT INTO "wrestler" VALUES (4,"Gran Hamada","1","960","Tokyo , Japan","Live event");
28
+ INSERT INTO "wrestler" VALUES (5,"El Samurai","1","1","Tokyo , Japan","Live event");
29
+ INSERT INTO "wrestler" VALUES (6,"The Great Sasuke §","1","99","Tokyo , Japan","Live event");
30
+ INSERT INTO "wrestler" VALUES (7,"Último Dragón §","1","54","Osaka , Japan","Live event");
31
+ INSERT INTO "wrestler" VALUES (8,"Jushin Liger §","1","183","Tokyo , Japan","Wrestling World 1997");
32
+ INSERT INTO "wrestler" VALUES (9,"El Samurai §","2","35","Sapporo , Japan","Live event");
33
+ INSERT INTO "wrestler" VALUES (10,"Shinjiro Otani §","1","56","Nagoya , Japan","Live event");
34
+
35
+
36
+ INSERT INTO "Elimination" VALUES ("1",1,"Team Orton","Punk","Go To Sleep","00:11");
37
+ INSERT INTO "Elimination" VALUES ("2",2,"Team Batista","Benjamin","Paydirt","07:38");
38
+ INSERT INTO "Elimination" VALUES ("3",4,"Team Batista","Orton","Rope hung DDT","10:45");
39
+ INSERT INTO "Elimination" VALUES ("4",5,"Team Batista","Rhodes","Silver Spoon DDT","13:06");
40
+ INSERT INTO "Elimination" VALUES ("5",7,"Team Batista","Henry","World's Strongest Slam","14:22");
41
+ INSERT INTO "Elimination" VALUES ("6",9,"Team Orton","Batista","Spear","14:32");
42
+
43
+
test_database/aircraft/aircraft.sqlite ADDED
Binary file (45.1 kB). View file
 
test_database/wta_1/wta_1.sql ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CRloser_rank_pointsEATE TABLE players(
2
+ "player_id" INT PRIMARY KEY,
3
+ "first_name" TEXT,
4
+ "last_name" TEXT,
5
+ "hand" TEXT,
6
+ "birth_date" DATE,
7
+ "country_code" TEXT
8
+ );
9
+ CREATE TABLE matches(
10
+ "best_of" INT,
11
+ "draw_size" INT,
12
+ "loser_age" FLOAT,
13
+ "loser_entry" TEXT,
14
+ "loser_hand" TEXT,
15
+ "loser_ht" INT,
16
+ "loser_id" INT,
17
+ "loser_ioc" TEXT,
18
+ "loser_name" TEXT,
19
+ "loser_rank" INT,
20
+ "loser_rank_points" INT,
21
+ "loser_seed" INT,
22
+ "match_num" INT,
23
+ "minutes" INT,
24
+ "round" TEXT,
25
+ "score" TEXT,
26
+ "surface" TEXT,
27
+ "tourney_date" DATE,
28
+ "tourney_id" TEXT,
29
+ "tourney_level" TEXT,
30
+ "tourney_name" TEXT,
31
+ "winner_age" FLOAT,
32
+ "winner_entry" TEXT,
33
+ "winner_hand" TEXT,
34
+ "winner_ht" INT,
35
+ "winner_id" INT,
36
+ "winner_ioc" TEXT,
37
+ "winner_name" TEXT,
38
+ "winner_rank" INT,
39
+ "winner_rank_points" INT,
40
+ "winner_seed" INT,
41
+ "year" INT,
42
+ FOREIGN KEY(loser_id) REFERENCES players(player_id),
43
+ FOREIGN KEY(winner_id) REFERENCES players(player_id)
44
+ );
45
+
46
+
47
+
48
+ CREATE TABLE qualifying_matches(
49
+ "best_of" INT,
50
+ "draw_size" INT,
51
+ "l_1stIn" TEXT,
52
+ "l_1stWon" TEXT,
53
+ "l_2ndWon" TEXT,
54
+ "l_SvGms" TEXT,
55
+ "l_ace" TEXT,
56
+ "l_bpFaced" TEXT,
57
+ "l_bpSaved" TEXT,
58
+ "l_df" TEXT,
59
+ "l_svpt" TEXT,
60
+ "loser_age" FLOAT,
61
+ "loser_entry" TEXT,
62
+ "loser_hand" TEXT,
63
+ "loser_ht" INT,
64
+ "loser_id" INT,
65
+ "loser_ioc" TEXT,
66
+ "loser_name" TEXT,
67
+ "loser_rank" INT,
68
+ "loser_rank_points" INT,
69
+ "loser_seed" INT,
70
+ "match_num" INT,
71
+ "minutes" INT,
72
+ "round" TEXT,
73
+ "score" TEXT,
74
+ "surface" TEXT,
75
+ "tourney_date" DATE,
76
+ "tourney_id" TEXT,
77
+ "tourney_level" TEXT,
78
+ "tourney_name" TEXT,
79
+ "w_1stIn" TEXT,
80
+ "w_1stWon" TEXT,
81
+ "w_2ndWon" TEXT,
82
+ "w_SvGms" TEXT,
83
+ "w_ace" TEXT,
84
+ "w_bpFaced" TEXT,
85
+ "w_bpSaved" TEXT,
86
+ "w_df" TEXT,
87
+ "w_svpt" TEXT,
88
+ "winner_age" FLOAT,
89
+ "winner_entry" TEXT,
90
+ "winner_hand" TEXT,
91
+ "winner_ht" INT,
92
+ "winner_id" INT,
93
+ "winner_ioc" TEXT,
94
+ "winner_name" TEXT,
95
+ "winner_rank" INT,
96
+ "winner_rank_points" INT,
97
+ "winner_seed" INT,
98
+ "year" INT,
99
+ FOREIGN KEY(loser_id) REFERENCES players(player_id),
100
+ FOREIGN KEY(winner_id) REFERENCES players(player_id)
101
+ );
102
+
103
+ CREATE TABLE rankings(
104
+ "ranking_date" DATE,
105
+ "ranking" INT,
106
+ "player_id" INT,
107
+ "ranking_points" INT,
108
+ "tours" INT,
109
+ FOREIGN KEY(player_id) REFERENCES players(player_id)
110
+ );