lklimkiewicz commited on
Commit
40b5d04
1 Parent(s): ea30146
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +14 -0
  2. README.txt +133 -0
  3. database/academic/academic.sqlite +0 -0
  4. database/academic/schema.sql +108 -0
  5. database/activity_1/activity_1.sqlite +0 -0
  6. database/activity_1/schema.sql +328 -0
  7. database/allergy_1/allergy_1.sqlite +0 -0
  8. database/allergy_1/schema.sql +132 -0
  9. database/architecture/architecture.sqlite +0 -0
  10. database/architecture/schema.sql +65 -0
  11. database/baseball_1/baseball_1.sqlite +3 -0
  12. database/baseball_1/schema.sql +3 -0
  13. database/battle_death/battle_death.sqlite +0 -0
  14. database/battle_death/schema.sql +65 -0
  15. database/behavior_monitoring/behavior_monitoring.sqlite +0 -0
  16. database/behavior_monitoring/schema.sql +258 -0
  17. database/browser_web/browser_web.sqlite +0 -0
  18. database/browser_web/schema.sql +58 -0
  19. database/candidate_poll/candidate_poll.sqlite +0 -0
  20. database/candidate_poll/schema.sql +42 -0
  21. database/chinook_1/annotation.json +5 -0
  22. database/chinook_1/chinook_1.sqlite +0 -0
  23. database/cinema/cinema.sqlite +0 -0
  24. database/cinema/schema.sql +60 -0
  25. database/city_record/city_record.sqlite +0 -0
  26. database/city_record/schema.sql +88 -0
  27. database/club_1/club_1.sqlite +0 -0
  28. database/club_1/schema.sql +73 -0
  29. database/college_2/TextBookExampleSchema.sql +0 -0
  30. database/college_2/college_2.sqlite +3 -0
  31. database/college_2/link.txt +1 -0
  32. database/company_1/company_1.sqlite +0 -0
  33. database/company_1/link.txt +1 -0
  34. database/company_employee/company_employee.sqlite +0 -0
  35. database/company_employee/schema.sql +72 -0
  36. database/concert_singer/concert_singer.sqlite +0 -0
  37. database/concert_singer/schema.sql +85 -0
  38. database/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sqlite +0 -0
  39. database/cre_Doc_Template_Mgt/schema.sql +90 -0
  40. database/cre_Doc_Tracking_DB/cre_Doc_Tracking_DB.sqlite +0 -0
  41. database/cre_Doc_Tracking_DB/schema.sql +164 -0
  42. database/cre_Drama_Workshop_Groups/cre_Drama_Workshop_Groups.sqlite +0 -0
  43. database/cre_Drama_Workshop_Groups/schema.sql +468 -0
  44. database/cre_Theme_park/cre_Theme_park.sqlite +0 -0
  45. database/cre_Theme_park/schema.sql +332 -0
  46. database/csu_1/csu_1.sqlite +0 -0
  47. database/csu_1/schema.sql +54 -0
  48. database/culture_company/culture_company.sqlite +0 -0
  49. database/culture_company/schema.sql +69 -0
  50. database/customer_deliveries/customer_deliveries.sqlite +0 -0
.gitattributes CHANGED
@@ -53,3 +53,17 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ database/baseball_1/baseball_1.sqlite filter=lfs diff=lfs merge=lfs -text
57
+ database/baseball_1/schema.sql filter=lfs diff=lfs merge=lfs -text
58
+ database/college_2/college_2.sqlite filter=lfs diff=lfs merge=lfs -text
59
+ database/flight_4/flight_4.sqlite filter=lfs diff=lfs merge=lfs -text
60
+ database/sakila_1/sakila_1.sqlite filter=lfs diff=lfs merge=lfs -text
61
+ database/store_1/store_1.sqlite filter=lfs diff=lfs merge=lfs -text
62
+ database/wta_1/wta_1.sqlite filter=lfs diff=lfs merge=lfs -text
63
+ test_database/baseball_1/baseball_1.sqlite filter=lfs diff=lfs merge=lfs -text
64
+ test_database/baseball_1/schema.sql filter=lfs diff=lfs merge=lfs -text
65
+ test_database/college_2/college_2.sqlite filter=lfs diff=lfs merge=lfs -text
66
+ test_database/flight_4/flight_4.sqlite filter=lfs diff=lfs merge=lfs -text
67
+ test_database/store_1/store_1.sqlite filter=lfs diff=lfs merge=lfs -text
68
+ test_database/wta_1/wta_1.sqlite filter=lfs diff=lfs merge=lfs -text
69
+ train_spider.json filter=lfs diff=lfs merge=lfs -text
README.txt ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 08/03/2020 updated: corrected column name and column name original mismatch in 2 dbs (scholar and formula_1) in tables.json. Also, used process_sql.py to reparse SQL queries (this only affects some models (e.g. RATSQL) which use our parsed SQL as the SQL input).
2
+ # 06/01/2020 updated: corrected ~40 annotation errors/mismatches in dev.json
3
+
4
+
5
+
6
+ This folder contains the Spider training and dev data sets for the EMNLP 2018 paper Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task.
7
+
8
+ It contains the following files:
9
+
10
+ - train_spider.json
11
+ # Training Examples: 7000
12
+ # Databases: 140
13
+ - train_others.json
14
+ # Training Examples: 1659
15
+ # Databases: 6
16
+ - dev.json
17
+ # Training Examples: 1034
18
+ # Databases: 20
19
+ - tables.json
20
+ # Databases: 166
21
+ - dev_gold.sql
22
+ - train_gold.sql
23
+ - database/
24
+ - README.txt
25
+
26
+ The official final Spider training data set combines train_spider.json and train_others.json.
27
+ The databases used in train_others.json are from Restaurants, GeoQuery, Scholar, Academic, IMDB, and Yelp which are prepared by Finegan-Dollak et al., 2018.
28
+ The databases and SQL examples in train_spider.json are originally prepared by us.
29
+ For the format of each json file, please refer to our github page https://github.com/taoyds/spider.
30
+ In database/, there is one folder for each database which contains the [db_name].sqlite file.
31
+ For most databases, we also provide a schema.sql file with SQL statements to create the database.
32
+
33
+ If you use the dataset, please cite the following papers including Finegan-Dollak et al., 2018 and the original datasets for Restaurants, GeoQuery, Scholar, Academic, IMDB, and Yelp.
34
+
35
+ @inproceedings{Yu&al.18c,
36
+ year = 2018,
37
+ title = {Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task},
38
+ booktitle = {EMNLP},
39
+ author = {Tao Yu and Rui Zhang and Kai Yang and Michihiro Yasunaga and Dongxu Wang and Zifan Li and James Ma and Irene Li and Qingning Yao and Shanelle Roman and Zilin Zhang and Dragomir Radev }
40
+ }
41
+
42
+ @InProceedings{P18-1033,
43
+ author = "Finegan-Dollak, Catherine
44
+ and Kummerfeld, Jonathan K.
45
+ and Zhang, Li
46
+ and Ramanathan, Karthik
47
+ and Sadasivam, Sesh
48
+ and Zhang, Rui
49
+ and Radev, Dragomir",
50
+ title = "Improving Text-to-SQL Evaluation Methodology",
51
+ booktitle = "Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
52
+ year = "2018",
53
+ publisher = "Association for Computational Linguistics",
54
+ pages = "351--360",
55
+ location = "Melbourne, Australia",
56
+ url = "http://aclweb.org/anthology/P18-1033"
57
+ }
58
+
59
+ @InProceedings{data-sql-imdb-yelp,
60
+ dataset = {IMDB and Yelp},
61
+ author = {Navid Yaghmazadeh, Yuepeng Wang, Isil Dillig, and Thomas Dillig},
62
+ title = {SQLizer: Query Synthesis from Natural Language},
63
+ booktitle = {International Conference on Object-Oriented Programming, Systems, Languages, and Applications, ACM},
64
+ month = {October},
65
+ year = {2017},
66
+ pages = {63:1--63:26},
67
+ url = {http://doi.org/10.1145/3133887},
68
+ }
69
+
70
+ @article{data-academic,
71
+ dataset = {Academic},
72
+ author = {Fei Li and H. V. Jagadish},
73
+ title = {Constructing an Interactive Natural Language Interface for Relational Databases},
74
+ journal = {Proceedings of the VLDB Endowment},
75
+ volume = {8},
76
+ number = {1},
77
+ month = {September},
78
+ year = {2014},
79
+ pages = {73--84},
80
+ url = {http://dx.doi.org/10.14778/2735461.2735468},
81
+ }
82
+
83
+ @InProceedings{data-atis-geography-scholar,
84
+ dataset = {Scholar, and Updated ATIS and Geography},
85
+ author = {Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, Jayant Krishnamurthy, and Luke Zettlemoyer},
86
+ title = {Learning a Neural Semantic Parser from User Feedback},
87
+ booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
88
+ year = {2017},
89
+ pages = {963--973},
90
+ location = {Vancouver, Canada},
91
+ url = {http://www.aclweb.org/anthology/P17-1089},
92
+ }
93
+
94
+ @inproceedings{data-geography-original
95
+ dataset = {Geography, original},
96
+ author = {John M. Zelle and Raymond J. Mooney},
97
+ title = {Learning to Parse Database Queries Using Inductive Logic Programming},
98
+ booktitle = {Proceedings of the Thirteenth National Conference on Artificial Intelligence - Volume 2},
99
+ year = {1996},
100
+ pages = {1050--1055},
101
+ location = {Portland, Oregon},
102
+ url = {http://dl.acm.org/citation.cfm?id=1864519.1864543},
103
+ }
104
+
105
+ @inproceedings{data-restaurants-logic,
106
+ author = {Lappoon R. Tang and Raymond J. Mooney},
107
+ title = {Automated Construction of Database Interfaces: Intergrating Statistical and Relational Learning for Semantic Parsing},
108
+ booktitle = {2000 Joint SIGDAT Conference on Empirical Methods in Natural Language Processing and Very Large Corpora},
109
+ year = {2000},
110
+ pages = {133--141},
111
+ location = {Hong Kong, China},
112
+ url = {http://www.aclweb.org/anthology/W00-1317},
113
+ }
114
+
115
+ @inproceedings{data-restaurants-original,
116
+ author = {Ana-Maria Popescu, Oren Etzioni, and Henry Kautz},
117
+ title = {Towards a Theory of Natural Language Interfaces to Databases},
118
+ booktitle = {Proceedings of the 8th International Conference on Intelligent User Interfaces},
119
+ year = {2003},
120
+ location = {Miami, Florida, USA},
121
+ pages = {149--157},
122
+ url = {http://doi.acm.org/10.1145/604045.604070},
123
+ }
124
+
125
+ @inproceedings{data-restaurants,
126
+ author = {Alessandra Giordani and Alessandro Moschitti},
127
+ title = {Automatic Generation and Reranking of SQL-derived Answers to NL Questions},
128
+ booktitle = {Proceedings of the Second International Conference on Trustworthy Eternal Systems via Evolving Software, Data and Knowledge},
129
+ year = {2012},
130
+ location = {Montpellier, France},
131
+ pages = {59--76},
132
+ url = {https://doi.org/10.1007/978-3-642-45260-4_5},
133
+ }
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/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/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/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/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/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
 
database/city_record/schema.sql ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+
4
+ CREATE TABLE "city" (
5
+ "City_ID" int,
6
+ "City" text,
7
+ "Hanzi" text,
8
+ "Hanyu_Pinyin" text,
9
+ "Regional_Population" int,
10
+ "GDP" real,
11
+ PRIMARY KEY ("City_ID")
12
+ );
13
+
14
+ CREATE TABLE "match" (
15
+ "Match_ID" int,
16
+ "Date" text,
17
+ "Venue" text,
18
+ "Score" text,
19
+ "Result" text,
20
+ "Competition" text,
21
+ PRIMARY KEY ("Match_ID")
22
+ );
23
+
24
+
25
+
26
+ CREATE TABLE "temperature" (
27
+ "City_ID" int,
28
+ "Jan" real,
29
+ "Feb" real,
30
+ "Mar" real,
31
+ "Apr" real,
32
+ "Jun" real,
33
+ "Jul" real,
34
+ "Aug" real,
35
+ "Sep" real,
36
+ "Oct" real,
37
+ "Nov" real,
38
+ "Dec" real,
39
+ PRIMARY KEY ("City_ID"),
40
+ FOREIGN KEY (`City_ID`) REFERENCES `city`(`City_ID`)
41
+ );
42
+
43
+ INSERT INTO "city" VALUES (1,"Shanghai","上海","Shànghǎi","23019148","1919.57");
44
+ INSERT INTO "city" VALUES (2,"Nanjing ( Jiangsu )","南京","Nánjīng","8004680","614.55");
45
+ INSERT INTO "city" VALUES (3,"Hangzhou ( Zhejiang )","杭州","Hángzhōu","8700400","701.18");
46
+ INSERT INTO "city" VALUES (4,"Suzhou ( Jiangsu )","苏州/ 蘇州","Sūzhōu","10465994","1071.70");
47
+ INSERT INTO "city" VALUES (5,"Ningbo ( Zhejiang )","宁波/ 寧波","Níngbō","7605689","601.05");
48
+ INSERT INTO "city" VALUES (6,"Wuxi ( Jiangsu )","无锡/ 無錫","Wúxī","6372624","688.02");
49
+ INSERT INTO "city" VALUES (7,"Nantong ( Jiangsu )","南通","Nántōng","7282835","408.02");
50
+ INSERT INTO "city" VALUES (8,"Shaoxing ( Zhejiang )","绍兴/ 紹興","Shàoxīng","4912200","329.12");
51
+ INSERT INTO "city" VALUES (9,"Changzhou ( Jiangsu )","常州","Chángzhōu","4591972","358.04");
52
+ INSERT INTO "city" VALUES (10,"Jinhua ( Zhejiang )","金华/ 金華","Jīnhuá","4614100","244.77");
53
+ INSERT INTO "city" VALUES (11,"Jiaxing ( Zhejiang )","嘉兴/ 嘉興","Jiāxīng","4501700","266.81");
54
+ INSERT INTO "city" VALUES (12,"Taizhou ( Zhejiang )","台州","Tāizhōu","5968800","279.49");
55
+ INSERT INTO "city" VALUES (13,"Yangzhou ( Jiangsu )","扬州/ 揚州","Yángzhōu","4459760","263.03");
56
+
57
+ INSERT INTO "temperature" VALUES (1,17.8,17.8,18.3,18.9,20.0,20.6,20.6,20.6,20.0,19.4,18.3);
58
+ INSERT INTO "temperature" VALUES (2,26.1,26.1,26.1,26.1,27.8,27.8,28.3,28.3,28.3,27.2,26.7);
59
+ INSERT INTO "temperature" VALUES (3,18.9,18.3,19.4,20.0,22.2,23.3,23.9,23.3,22.8,21.7,20.0);
60
+ INSERT INTO "temperature" VALUES (4,26.7,27.2,27.8,28.3,30.6,31.1,31.7,31.7,30.6,28.9,27.8);
61
+ INSERT INTO "temperature" VALUES (6,17.2,17.2,18.3,18.9,20.6,21.7,21.7,21.1,20.6,20.0,18.3);
62
+ INSERT INTO "temperature" VALUES (10,26.7,27.2,27.8,27.8,30.0,30.6,31.1,31.1,30.6,28.9,27.8);
63
+ INSERT INTO "temperature" VALUES (7,18.3,18.9,19.4,20.6,22.8,23.3,23.3,23.3,22.8,21.7,20.0);
64
+ INSERT INTO "temperature" VALUES (11,25.6,26.6,26.6,26.1,28.3,28.9,29.4,29.4,28.9,27.2,26.1);
65
+
66
+ INSERT INTO "match" VALUES (1,"18 February 1992","Estadio Cuscatlán , San Salvador , El Salvador","1-0","2-0","Friendly match");
67
+ INSERT INTO "match" VALUES (2,"19 July 1992","Estadio Rigoberto López , Managua , Nicaragua","3-0","5-0","1994 FIFA World Cup qualification");
68
+ INSERT INTO "match" VALUES (3,"23 July 1992","Estadio Cuscatlán , San Salvador , El Salvador","1-0","5-1","1994 FIFA World Cup qualification");
69
+ INSERT INTO "match" VALUES (4,"23 July 1992","Estadio Cuscatlán , San Salvador , El Salvador","3-0","5-1","1994 FIFA World Cup qualification");
70
+ INSERT INTO "match" VALUES (5,"4 April 1993","Estadio Cuscatlán , San Salvador , El Salvador","1–0","2–1","1994 FIFA World Cup qualification");
71
+ INSERT INTO "match" VALUES (6,"23 July 2000","Estadio Cuscatlán , San Salvador , El Salvador","2–1","7–1","2002 FIFA World Cup qualification");
72
+
73
+
74
+ CREATE TABLE "hosting_city" (
75
+ "Year" int,
76
+ "Match_ID" int,
77
+ "Host_City" text,
78
+ PRIMARY KEY ("Year"),
79
+ FOREIGN KEY (`Host_City`) REFERENCES `city`(`City_ID`),
80
+ FOREIGN KEY (`Match_ID`) REFERENCES `match`(`Match_ID`)
81
+ );
82
+
83
+ INSERT INTO "hosting_city" VALUES ("2008",1,1);
84
+ INSERT INTO "hosting_city" VALUES ("2009",2,2);
85
+ INSERT INTO "hosting_city" VALUES ("2010",3,2);
86
+ INSERT INTO "hosting_city" VALUES ("2011",4,6);
87
+ INSERT INTO "hosting_city" VALUES ("2012",5,12);
88
+ INSERT INTO "hosting_city" VALUES ("2013",6,11);
database/club_1/club_1.sqlite ADDED
Binary file (16.4 kB). View file
 
database/club_1/schema.sql ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ create table Student (
2
+ StuID INTEGER PRIMARY KEY,
3
+ LName VARCHAR(12),
4
+ Fname VARCHAR(12),
5
+ Age INTEGER,
6
+ Sex VARCHAR(1),
7
+ Major INTEGER,
8
+ Advisor INTEGER,
9
+ city_code VARCHAR(3)
10
+ );
11
+
12
+
13
+ create table Club (
14
+ ClubID INTEGER PRIMARY KEY,
15
+ ClubName VARCHAR(40),
16
+ ClubDesc VARCHAR(1024),
17
+ ClubLocation VARCHAR(40)
18
+ );
19
+
20
+ create table Member_of_club (
21
+ StuID INTEGER,
22
+ ClubID INTEGER,
23
+ Position VARCHAR(40),
24
+ FOREIGN KEY(StuID) REFERENCES Student(StuID),
25
+ FOREIGN KEY(ClubID) REFERENCES Club(ClubID)
26
+ );
27
+
28
+
29
+ insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
30
+ insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
31
+ insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
32
+ insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
33
+ insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
34
+ insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
35
+ insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
36
+ insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
37
+ insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
38
+ insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
39
+ insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
40
+ insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
41
+ insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
42
+ insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
43
+ insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
44
+ insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
45
+ insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
46
+ insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
47
+ insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
48
+ insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
49
+ insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
50
+ insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
51
+ insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
52
+ insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
53
+ insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
54
+ insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
55
+ insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
56
+ insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
57
+ insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
58
+ insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
59
+ insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
60
+ insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
61
+ insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
62
+ insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');
63
+
64
+
65
+ insert into Club values ( 1, 'Bootup Baltimore', 'Refurbish computers; teach kids and adults about computer basics.', 'AKW');
66
+ insert into Club values ( 2, 'Hopkins Student Enterprises', 'Venture capital fund for student business.', 'AKW');
67
+ insert into Club values ( 3, 'Pen and Paper Gaming', 'Play pen and paper games on campus.', 'HHH');
68
+ insert into Club values ( 4, 'Tennis Club', 'A competitive tennis club.', 'AKW');
69
+
70
+ insert into Member_of_club values ( 1001, 1, 'President');
71
+ insert into Member_of_club values ( 1007, 4, 'Vice-President');
72
+ insert into Member_of_club values ( 1008, 2, 'CTO');
73
+ insert into Member_of_club values ( 1010, 1, 'Teaching Coordinator');
database/college_2/TextBookExampleSchema.sql ADDED
The diff for this file is too large to render. See raw diff
 
database/college_2/college_2.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb729920ad0b7f06d38a12f6f678307964acc7d3417af83d98c519c65c90d386
3
+ size 2117632
database/college_2/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ http://www.cs.dartmouth.edu/~cs61/Examples/
database/company_1/company_1.sqlite ADDED
Binary file (12.3 kB). View file
 
database/company_1/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ https://www.classes.cs.uchicago.edu/archive/2009/spring/23500-1/homework.html
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/concert_singer/concert_singer.sqlite ADDED
Binary file (36.9 kB). View file
 
database/concert_singer/schema.sql ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+
4
+ CREATE TABLE "stadium" (
5
+ "Stadium_ID" int,
6
+ "Location" text,
7
+ "Name" text,
8
+ "Capacity" int,
9
+ "Highest" int,
10
+ "Lowest" int,
11
+ "Average" int,
12
+ PRIMARY KEY ("Stadium_ID")
13
+ );
14
+
15
+
16
+ INSERT INTO "stadium" VALUES (1,"Raith Rovers","Stark's Park","10104","4812","1294","2106");
17
+ INSERT INTO "stadium" VALUES (2,"Ayr United","Somerset Park","11998","2363","1057","1477");
18
+ INSERT INTO "stadium" VALUES (3,"East Fife","Bayview Stadium","2000","1980","533","864");
19
+ INSERT INTO "stadium" VALUES (4,"Queen's Park","Hampden Park","52500","1763","466","730");
20
+ INSERT INTO "stadium" VALUES (5,"Stirling Albion","Forthbank Stadium","3808","1125","404","642");
21
+ INSERT INTO "stadium" VALUES (6,"Arbroath","Gayfield Park","4125","921","411","638");
22
+ INSERT INTO "stadium" VALUES (7,"Alloa Athletic","Recreation Park","3100","1057","331","637");
23
+ INSERT INTO "stadium" VALUES (9,"Peterhead","Balmoor","4000","837","400","615");
24
+ INSERT INTO "stadium" VALUES (10,"Brechin City","Glebe Park","3960","780","315","552");
25
+
26
+ CREATE TABLE "singer" (
27
+ "Singer_ID" int,
28
+ "Name" text,
29
+ "Country" text,
30
+ "Song_Name" text,
31
+ "Song_release_year" text,
32
+ "Age" int,
33
+ "Is_male" bool,
34
+ PRIMARY KEY ("Singer_ID")
35
+ );
36
+
37
+
38
+
39
+ INSERT INTO "singer" VALUES (1,"Joe Sharp","Netherlands","You","1992",52,"F");
40
+ INSERT INTO "singer" VALUES (2,"Timbaland","United States","Dangerous","2008",32,"T");
41
+ INSERT INTO "singer" VALUES (3,"Justin Brown","France","Hey Oh","2013",29,"T");
42
+ INSERT INTO "singer" VALUES (4,"Rose White","France","Sun","2003",41,"F");
43
+ INSERT INTO "singer" VALUES (5,"John Nizinik","France","Gentleman","2014",43,"T");
44
+ INSERT INTO "singer" VALUES (6,"Tribal King","France","Love","2016",25,"T");
45
+
46
+
47
+ CREATE TABLE "concert" (
48
+ "concert_ID" int,
49
+ "concert_Name" text,
50
+ "Theme" text,
51
+ "Stadium_ID" text,
52
+ "Year" text,
53
+ PRIMARY KEY ("concert_ID"),
54
+ FOREIGN KEY ("Stadium_ID") REFERENCES "stadium"("Stadium_ID")
55
+ );
56
+
57
+
58
+
59
+ INSERT INTO "concert" VALUES (1,"Auditions","Free choice",1,2014);
60
+ INSERT INTO "concert" VALUES (2,"Super bootcamp","Free choice 2",2,2014);
61
+ INSERT INTO "concert" VALUES (3,"Home Visits","Bleeding Love",2,2015);
62
+ INSERT INTO "concert" VALUES (4,"Week 1","Wide Awake",10,2014);
63
+ INSERT INTO "concert" VALUES (5,"Week 1","Happy Tonight",9,2015);
64
+ INSERT INTO "concert" VALUES (6,"Week 2","Party All Night",7,2015);
65
+
66
+
67
+ CREATE TABLE "singer_in_concert" (
68
+ "concert_ID" int,
69
+ "Singer_ID" text,
70
+ PRIMARY KEY ("concert_ID","Singer_ID"),
71
+ FOREIGN KEY ("concert_ID") REFERENCES "concert"("concert_ID"),
72
+ FOREIGN KEY ("Singer_ID") REFERENCES "singer"("Singer_ID")
73
+ );
74
+
75
+ INSERT INTO "singer_in_concert" VALUES (1, 2);
76
+ INSERT INTO "singer_in_concert" VALUES (1, 3);
77
+ INSERT INTO "singer_in_concert" VALUES (1, 5);
78
+ INSERT INTO "singer_in_concert" VALUES (2, 3);
79
+ INSERT INTO "singer_in_concert" VALUES (2, 6);
80
+ INSERT INTO "singer_in_concert" VALUES (3, 5);
81
+ INSERT INTO "singer_in_concert" VALUES (4, 4);
82
+ INSERT INTO "singer_in_concert" VALUES (5, 6);
83
+ INSERT INTO "singer_in_concert" VALUES (5, 3);
84
+ INSERT INTO "singer_in_concert" VALUES (6, 2);
85
+
database/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sqlite ADDED
Binary file (24.6 kB). View file
 
database/cre_Doc_Template_Mgt/schema.sql ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE Ref_Template_Types (
3
+ Template_Type_Code CHAR(15) NOT NULL,
4
+ Template_Type_Description VARCHAR(255) NOT NULL,
5
+ PRIMARY KEY (Template_Type_Code)
6
+ );
7
+ CREATE TABLE Templates (
8
+ Template_ID INTEGER NOT NULL,
9
+ Version_Number INTEGER NOT NULL,
10
+ Template_Type_Code CHAR(15) NOT NULL,
11
+ Date_Effective_From DATETIME,
12
+ Date_Effective_To DATETIME,
13
+ Template_Details VARCHAR(255) NOT NULL,
14
+ PRIMARY KEY (Template_ID),
15
+ FOREIGN KEY (Template_Type_Code) REFERENCES Ref_Template_Types (Template_Type_Code)
16
+ );
17
+ CREATE TABLE Documents (
18
+ Document_ID INTEGER NOT NULL,
19
+ Template_ID INTEGER,
20
+ Document_Name VARCHAR(255),
21
+ Document_Description VARCHAR(255),
22
+ Other_Details VARCHAR(255),
23
+ PRIMARY KEY (Document_ID),
24
+ FOREIGN KEY (Template_ID) REFERENCES Templates (Template_ID)
25
+ );
26
+ CREATE TABLE Paragraphs (
27
+ Paragraph_ID INTEGER NOT NULL,
28
+ Document_ID INTEGER NOT NULL,
29
+ Paragraph_Text VARCHAR(255),
30
+ Other_Details VARCHAR(255),
31
+ PRIMARY KEY (Paragraph_ID),
32
+ FOREIGN KEY (Document_ID) REFERENCES Documents (Document_ID)
33
+ );
34
+ INSERT INTO Ref_Template_Types (`Template_Type_Code`, `Template_Type_Description`) VALUES ('PPT', 'Presentation');
35
+ INSERT INTO Ref_Template_Types (`Template_Type_Code`, `Template_Type_Description`) VALUES ('CV', 'CV');
36
+ INSERT INTO Ref_Template_Types (`Template_Type_Code`, `Template_Type_Description`) VALUES ('AD', 'Advertisement');
37
+ INSERT INTO Ref_Template_Types (`Template_Type_Code`, `Template_Type_Description`) VALUES ('PP', 'Paper');
38
+ INSERT INTO Ref_Template_Types (`Template_Type_Code`, `Template_Type_Description`) VALUES ('BK', 'Book');
39
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (0, 5, 'PP', '2005-11-12 07:09:48', '2008-01-05 14:19:28', '');
40
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (1, 9, 'PP', '2010-09-24 01:15:11', '1999-07-08 03:31:04', '');
41
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (4, 4, 'BK', '2002-03-02 14:39:49', '2001-04-18 09:29:52', '');
42
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (6, 2, 'PPT', '1975-05-20 22:51:19', '1992-05-02 20:06:11', '');
43
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (7, 8, 'PPT', '1993-10-07 02:33:04', '1975-07-16 04:52:10', '');
44
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (8, 3, 'BK', '1983-07-16 21:16:16', '1976-10-28 10:08:50', '');
45
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (9, 2, 'BK', '1997-04-17 08:29:44', '1994-12-07 13:26:23', '');
46
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (10, 1, 'PPT', '2003-06-05 04:03:45', '2007-06-06 06:18:53', '');
47
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (11, 6, 'BK', '1996-02-04 11:27:24', '1995-09-19 22:27:48', '');
48
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (14, 7, 'AD', '1975-10-20 02:28:58', '1979-11-04 08:58:39', '');
49
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (15, 9, 'CV', '1986-12-09 14:51:36', '1993-03-24 14:30:23', '');
50
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (16, 5, 'CV', '2012-04-05 07:11:42', '1980-05-07 12:15:47', '');
51
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (18, 5, 'PP', '1984-08-07 13:36:26', '1998-05-12 12:51:29', '');
52
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (19, 7, 'AD', '1999-06-21 11:10:30', '1974-09-14 06:34:39', '');
53
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (20, 6, 'BK', '1986-11-14 12:20:18', '2008-08-08 18:36:43', '');
54
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (21, 9, 'AD', '2002-08-25 13:26:23', '2015-09-06 01:08:44', '');
55
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (22, 0, 'PP', '2005-02-20 00:31:34', '1989-11-24 19:06:06', '');
56
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (23, 2, 'BK', '1979-12-24 10:28:16', '2000-10-22 11:57:12', '');
57
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (24, 8, 'PP', '2008-08-01 13:57:26', '1973-01-12 14:13:34', '');
58
+ INSERT INTO Templates (`Template_ID`, `Version_Number`, `Template_Type_Code`, `Date_Effective_From`, `Date_Effective_To`, `Template_Details`) VALUES (25, 5, 'PP', '1979-10-20 21:23:20', '2006-02-06 23:52:04', '');
59
+
60
+
61
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (0, 7, 'Introduction of OS', 'n', NULL);
62
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (1, 25, 'Understanding DB', 'y', NULL);
63
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (3, 6, 'Summer Show', 'u', NULL);
64
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (76, 20, 'Robbin CV', 'y', NULL);
65
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (80, 14, 'Welcome to NY', 'h', NULL);
66
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (82, 11, 'Data base', 'w', NULL);
67
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (2394, 10, 'Customer reviews', 'y', NULL);
68
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (3830, 14, 'Do not panic', 'k', NULL);
69
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (33930, 1, 'How Google people work', 'z', NULL);
70
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (50123, 22, 'Learning French', 'r', NULL);
71
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (651512, 21, 'How to write a CV', 'f', NULL);
72
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (801801, 4, 'How to read a book', 'w', NULL);
73
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (3540024, 8, 'Palm reading', 'y', NULL);
74
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (16514113, 25, 'A history of Arts', 'h', NULL);
75
+ INSERT INTO Documents (`Document_ID`, `Template_ID`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (385906526, 11, 'About Korea', 'b', NULL);
76
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (7, 2394, 'Korea', NULL);
77
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (9, 3, 'Somalia', NULL);
78
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (65, 50123, 'Palestinian Territory', NULL);
79
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (241, 651512, 'Jersey', NULL);
80
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (3708, 33930, 'UK', NULL);
81
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (9946, 385906526, 'Fiji', NULL);
82
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (16615, 80, 'Japan', NULL);
83
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (1104059, 3830, 'Senegal', NULL);
84
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (243399026, 651512, 'Indonesia', NULL);
85
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (280120913, 2394, 'Ukraine', NULL);
86
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (510442723, 2394, 'Korea', NULL);
87
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (571212310, 16514113, 'Brazil', NULL);
88
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (608931827, 80, 'Micronesia', NULL);
89
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (765713812, 16514113, 'Ireland', NULL);
90
+ INSERT INTO Paragraphs (`Paragraph_ID`, `Document_ID`, `Paragraph_Text`, `Other_Details`) VALUES (946335436, 3540024, 'Papua New Guinea', NULL);
database/cre_Doc_Tracking_DB/cre_Doc_Tracking_DB.sqlite ADDED
Binary file (57.3 kB). View file
 
database/cre_Doc_Tracking_DB/schema.sql ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE Ref_Document_Types (
3
+ Document_Type_Code CHAR(15) NOT NULL,
4
+ Document_Type_Name VARCHAR(255) NOT NULL,
5
+ Document_Type_Description VARCHAR(255) NOT NULL,
6
+ PRIMARY KEY (Document_Type_Code)
7
+ );
8
+
9
+ CREATE TABLE Ref_Calendar (
10
+ Calendar_Date DATETIME NOT NULL,
11
+ Day_Number INTEGER,
12
+ PRIMARY KEY (Calendar_Date)
13
+ );
14
+ CREATE TABLE Ref_Locations (
15
+ Location_Code CHAR(15) NOT NULL,
16
+ Location_Name VARCHAR(255) NOT NULL,
17
+ Location_Description VARCHAR(255) NOT NULL,
18
+ PRIMARY KEY (Location_Code)
19
+ );
20
+
21
+ CREATE TABLE Roles (
22
+ Role_Code CHAR(15) NOT NULL,
23
+ Role_Name VARCHAR(255),
24
+ Role_Description VARCHAR(255),
25
+ PRIMARY KEY (Role_Code)
26
+ );
27
+
28
+ CREATE TABLE All_Documents (
29
+ Document_ID INTEGER NOT NULL,
30
+ Date_Stored DATETIME,
31
+ Document_Type_Code CHAR(15) NOT NULL,
32
+ Document_Name CHAR(255),
33
+ Document_Description CHAR(255),
34
+ Other_Details VARCHAR(255),
35
+ PRIMARY KEY (Document_ID),
36
+ FOREIGN KEY (Document_Type_Code) REFERENCES Ref_Document_Types (Document_Type_Code),
37
+ FOREIGN KEY (Date_Stored) REFERENCES Ref_Calendar (Calendar_Date)
38
+ );
39
+
40
+ CREATE TABLE Employees (
41
+ Employee_ID INTEGER NOT NULL,
42
+ Role_Code CHAR(15) NOT NULL,
43
+ Employee_Name VARCHAR(255),
44
+ Gender_MFU CHAR(1) NOT NULL,
45
+ Date_of_Birth DATETIME NOT NULL,
46
+ Other_Details VARCHAR(255),
47
+ PRIMARY KEY (Employee_ID),
48
+ FOREIGN KEY (Role_Code) REFERENCES Roles (Role_Code)
49
+ );
50
+
51
+ CREATE TABLE Document_Locations (
52
+ Document_ID INTEGER NOT NULL,
53
+ Location_Code CHAR(15) NOT NULL,
54
+ Date_in_Location_From DATETIME NOT NULL,
55
+ Date_in_Locaton_To DATETIME,
56
+ PRIMARY KEY (Document_ID, Location_Code, Date_in_Location_From),
57
+ FOREIGN KEY (Location_Code) REFERENCES Ref_Locations (Location_Code),
58
+ FOREIGN KEY (Date_in_Location_From) REFERENCES Ref_Calendar (Calendar_Date),
59
+ FOREIGN KEY (Date_in_Locaton_To) REFERENCES Ref_Calendar (Calendar_Date),
60
+ FOREIGN KEY (Document_ID) REFERENCES All_Documents (Document_ID)
61
+ );
62
+
63
+ CREATE TABLE Documents_to_be_Destroyed (
64
+ Document_ID INTEGER NOT NULL,
65
+ Destruction_Authorised_by_Employee_ID INTEGER,
66
+ Destroyed_by_Employee_ID INTEGER,
67
+ Planned_Destruction_Date DATETIME,
68
+ Actual_Destruction_Date DATETIME,
69
+ Other_Details VARCHAR(255),
70
+ PRIMARY KEY (Document_ID),
71
+ FOREIGN KEY (Destroyed_by_Employee_ID) REFERENCES Employees (Employee_ID),
72
+ FOREIGN KEY (Destruction_Authorised_by_Employee_ID) REFERENCES Employees (Employee_ID),
73
+ FOREIGN KEY (Planned_Destruction_Date) REFERENCES Ref_Calendar (Calendar_Date),
74
+ FOREIGN KEY (Actual_Destruction_Date) REFERENCES Ref_Calendar (Calendar_Date),
75
+ FOREIGN KEY (Document_ID) REFERENCES All_Documents (Document_ID)
76
+ );
77
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1972-03-31 09:47:22', 5);
78
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1976-06-15 03:40:06', 7);
79
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1985-05-13 12:19:43', 7);
80
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1986-10-14 17:53:39', 1);
81
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1987-11-05 06:11:22', 3);
82
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1988-02-01 14:41:52', 8);
83
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1994-11-15 03:49:54', 9);
84
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1995-01-01 03:52:11', 1);
85
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('1997-03-10 15:24:00', 7);
86
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('2007-05-28 16:28:48', 2);
87
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('2008-06-08 12:45:38', 3);
88
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('2009-08-18 03:29:08', 8);
89
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('2010-11-26 19:22:50', 7);
90
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('2012-07-03 09:48:46', 7);
91
+ INSERT INTO Ref_Calendar (`Calendar_Date`, `Day_Number`) VALUES ('2017-01-06 23:17:22', 8);
92
+ INSERT INTO Ref_Document_Types (`Document_Type_Code`, `Document_Type_Name`, `Document_Type_Description`) VALUES ('CV', 'CV', '');
93
+ INSERT INTO Ref_Document_Types (`Document_Type_Code`, `Document_Type_Name`, `Document_Type_Description`) VALUES ('BK', 'Book', '');
94
+ INSERT INTO Ref_Document_Types (`Document_Type_Code`, `Document_Type_Name`, `Document_Type_Description`) VALUES ('PR', 'Paper', '');
95
+ INSERT INTO Ref_Document_Types (`Document_Type_Code`, `Document_Type_Name`, `Document_Type_Description`) VALUES ('RV', 'Review', '');
96
+ INSERT INTO Ref_Locations (`Location_Code`, `Location_Name`, `Location_Description`) VALUES ('b', 'Brazil', '');
97
+ INSERT INTO Ref_Locations (`Location_Code`, `Location_Name`, `Location_Description`) VALUES ('c', 'Canada', '');
98
+ INSERT INTO Ref_Locations (`Location_Code`, `Location_Name`, `Location_Description`) VALUES ('e', 'Edinburgh', '');
99
+ INSERT INTO Ref_Locations (`Location_Code`, `Location_Name`, `Location_Description`) VALUES ('n', 'Nanjing', '');
100
+ INSERT INTO Ref_Locations (`Location_Code`, `Location_Name`, `Location_Description`) VALUES ('x', 'Xiamen', '');
101
+ INSERT INTO Roles (`Role_Code`, `Role_Name`, `Role_Description`) VALUES ('MG', 'Manager', 'Vero harum corrupti odit ipsa vero et odio. Iste et recusandae temporibus maxime. Magni aspernatur fugit quis explicabo totam esse corrupti.');
102
+ INSERT INTO Roles (`Role_Code`, `Role_Name`, `Role_Description`) VALUES ('ED', 'Editor', 'Itaque dolor ut nemo rerum vitae provident. Vel laborum ipsum velit sint. Et est omnis dignissimos.');
103
+ INSERT INTO Roles (`Role_Code`, `Role_Name`, `Role_Description`) VALUES ('PT', 'Photo', 'Aut modi nihil molestias temporibus sit rerum. Sit neque eaque odio omnis incidunt.');
104
+ INSERT INTO Roles (`Role_Code`, `Role_Name`, `Role_Description`) VALUES ('PR', 'Proof Reader', 'Ut sed quae eaque mollitia qui hic. Natus ea expedita et odio illum fugiat qui natus. Consequatur velit ut dolorem cum ullam esse deserunt dignissimos. Enim non non rem officiis quis.');
105
+ INSERT INTO Roles (`Role_Code`, `Role_Name`, `Role_Description`) VALUES ('HR', 'Human Resource', 'Et totam est quibusdam aspernatur ut. Vitae perferendis eligendi voluptatem molestiae rem ut enim. Ipsum expedita quae earum unde est. Repellendus ut ipsam nihil accusantium sit. Magni accusantium numquam quod et.');
106
+
107
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (25, 'HR', 'Leo', '', '1973-02-15 17:16:00', NULL);
108
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (30, 'MG', 'Ebba', '', '1979-09-20 12:50:15', NULL);
109
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (38, 'ED', 'Stephanie', '1', '2012-03-30 23:02:28', NULL);
110
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (55, 'ED', 'Harley', '', '1972-02-18 11:53:30', NULL);
111
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (57, 'ED', 'Armani', '', '1988-12-08 06:13:33', NULL);
112
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (71, 'ED', 'Gussie', '', '1973-04-04 21:41:22', NULL);
113
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (99, 'ED', 'Izabella', '1', '1977-07-04 16:25:21', NULL);
114
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (123, 'PT', 'Hugh', '', '2010-03-15 00:17:13', NULL);
115
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (136, 'ED', 'Mallie', '', '1980-12-11 20:28:20', NULL);
116
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (138, 'ED', 'Beatrice', '1', '2013-04-02 23:55:48', NULL);
117
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (156, 'PR', 'Diego', '', '1998-05-30 12:54:10', NULL);
118
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (159, 'PR', 'Arno', '', '2010-06-10 20:36:34', NULL);
119
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (173, 'PR', 'Alene', '1', '1980-10-14 12:23:10', NULL);
120
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (181, 'PR', 'Ettie', '1', '1988-08-03 00:11:14', NULL);
121
+ INSERT INTO Employees (`Employee_ID`, `Role_Code`, `Employee_Name`, `Gender_MFU`, `Date_of_Birth`, `Other_Details`) VALUES (183, 'PR', 'Jeramie', '', '1993-08-21 05:22:10', NULL);
122
+
123
+
124
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (7, '1976-06-15 03:40:06', 'CV', 'Robin CV', NULL, NULL);
125
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (11, '1986-10-14 17:53:39', 'CV', 'Marry CV', NULL, NULL);
126
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (25, '2008-06-08 12:45:38', 'BK', 'One hundred years of solitude', NULL, NULL);
127
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (39, '2012-07-03 09:48:46', 'BK', 'How to read a book', NULL, NULL);
128
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (72, '2012-07-03 09:48:46', 'CV', 'Alan CV', NULL, NULL);
129
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (81, '1995-01-01 03:52:11', 'BK', 'Hua Mulan', NULL, NULL);
130
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (99, '2008-06-08 12:45:38', 'CV', 'Leon CV', NULL, NULL);
131
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (111, '1987-11-05 06:11:22', 'PR', 'Learning features of CNN', NULL, NULL);
132
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (119, '2008-06-08 12:45:38', 'RV', 'Marriage and population', NULL, NULL);
133
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (120, '1997-03-10 15:24:00', 'RV', 'Society and tax', NULL, NULL);
134
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (166, '1997-03-10 15:24:00', 'PR', 'Are you talking to a machine', NULL, NULL);
135
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (170, '2009-08-18 03:29:08', 'RV', 'Population', NULL, NULL);
136
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (230, '1976-06-15 03:40:06', 'CV', 'Martin CV', NULL, NULL);
137
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (252, '1976-06-15 03:40:06', 'BK', 'Summer', NULL, NULL);
138
+ INSERT INTO All_Documents (`Document_ID`, `Date_Stored`, `Document_Type_Code`, `Document_Name`, `Document_Description`, `Other_Details`) VALUES (260, '1997-03-10 15:24:00', 'BK', 'Cats and me', NULL, NULL);
139
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (7, 'e', '2017-01-06 23:17:22', '2008-06-08 12:45:38');
140
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (11, 'x', '2017-01-06 23:17:22', '2012-07-03 09:48:46');
141
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (81, 'c', '1972-03-31 09:47:22', '1987-11-05 06:11:22');
142
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (81, 'c', '2017-01-06 23:17:22', '2010-11-26 19:22:50');
143
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (81, 'x', '2008-06-08 12:45:38', '1976-06-15 03:40:06');
144
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (111, 'x', '1986-10-14 17:53:39', '2010-11-26 19:22:50');
145
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (119, 'b', '2017-01-06 23:17:22', '1995-01-01 03:52:11');
146
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (166, 'b', '1985-05-13 12:19:43', '1986-10-14 17:53:39');
147
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (166, 'b', '1986-10-14 17:53:39', '2010-11-26 19:22:50');
148
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (170, 'x', '1997-03-10 15:24:00', '1976-06-15 03:40:06');
149
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (230, 'e', '1972-03-31 09:47:22', '1987-11-05 06:11:22');
150
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (230, 'e', '2010-11-26 19:22:50', '2017-01-06 23:17:22');
151
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (252, 'n', '2017-01-06 23:17:22', '1997-03-10 15:24:00');
152
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (252, 'x', '1972-03-31 09:47:22', '2009-08-18 03:29:08');
153
+ INSERT INTO Document_Locations (`Document_ID`, `Location_Code`, `Date_in_Location_From`, `Date_in_Locaton_To`) VALUES (260, 'e', '2009-08-18 03:29:08', '1986-10-14 17:53:39');
154
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (7, 156, 138, '1988-02-01 14:41:52', '2017-01-06 23:17:22', NULL);
155
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (11, 55, 173, '2010-11-26 19:22:50', '1986-10-14 17:53:39', NULL);
156
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (25, 183, 156, '2009-08-18 03:29:08', '1995-01-01 03:52:11', NULL);
157
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (39, 183, 136, '1976-06-15 03:40:06', '2009-08-18 03:29:08', NULL);
158
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (99, 55, 99, '2017-01-06 23:17:22', '1986-10-14 17:53:39', NULL);
159
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (111, 38, 173, '1972-03-31 09:47:22', '2009-08-18 03:29:08', NULL);
160
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (120, 183, 173, '1972-03-31 09:47:22', '1995-01-01 03:52:11', NULL);
161
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (166, 156, 38, '1987-11-05 06:11:22', '2012-07-03 09:48:46', NULL);
162
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (170, 123, 136, '2017-01-06 23:17:22', '1988-02-01 14:41:52', NULL);
163
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (252, 30, 55, '1972-03-31 09:47:22', '1985-05-13 12:19:43', NULL);
164
+ INSERT INTO Documents_to_be_Destroyed (`Document_ID`, `Destruction_Authorised_by_Employee_ID`, `Destroyed_by_Employee_ID`, `Planned_Destruction_Date`, `Actual_Destruction_Date`, `Other_Details`) VALUES (260, 55, 99, '2017-01-06 23:17:22', '2017-01-06 23:17:22', NULL);
database/cre_Drama_Workshop_Groups/cre_Drama_Workshop_Groups.sqlite ADDED
Binary file (147 kB). View file
 
database/cre_Drama_Workshop_Groups/schema.sql ADDED
@@ -0,0 +1,468 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE Ref_Payment_Methods (
4
+ payment_method_code CHAR(10) NOT NULL,
5
+ payment_method_description VARCHAR(80),
6
+ PRIMARY KEY (payment_method_code),
7
+ UNIQUE (payment_method_code)
8
+ );
9
+ INSERT INTO Ref_Payment_Methods (`payment_method_code`, `payment_method_description`) VALUES ('American E', 'credit');
10
+ INSERT INTO Ref_Payment_Methods (`payment_method_code`, `payment_method_description`) VALUES ('MasterCard', 'debit');
11
+ INSERT INTO Ref_Payment_Methods (`payment_method_code`, `payment_method_description`) VALUES ('Visa', 'Visa');
12
+
13
+ CREATE TABLE Ref_Service_Types (
14
+ Service_Type_Code CHAR(15) NOT NULL,
15
+ Parent_Service_Type_Code CHAR(15),
16
+ Service_Type_Description VARCHAR(255),
17
+ PRIMARY KEY (Service_Type_Code),
18
+ UNIQUE (Service_Type_Code)
19
+ );
20
+
21
+ INSERT INTO Ref_Service_Types ( `Service_Type_Code`,`Parent_Service_Type_Code`,`Service_Type_Description`) VALUES ('1','1','provide photo service');
22
+ INSERT INTO Ref_Service_Types ( `Service_Type_Code`,`Parent_Service_Type_Code`,`Service_Type_Description`) VALUES ('2','1','provide dinning service');
23
+ INSERT INTO Ref_Service_Types ( `Service_Type_Code`,`Parent_Service_Type_Code`,`Service_Type_Description`) VALUES ('3','1','provide filming service');
24
+ INSERT INTO Ref_Service_Types ( `Service_Type_Code`,`Parent_Service_Type_Code`,`Service_Type_Description`) VALUES ('4','1','provide adv promoting service');
25
+
26
+
27
+
28
+ CREATE TABLE Addresses (
29
+ Address_ID VARCHAR(100) NOT NULL,
30
+ Line_1 VARCHAR(255),
31
+ Line_2 VARCHAR(255),
32
+ City_Town VARCHAR(255),
33
+ State_County VARCHAR(255),
34
+ Other_Details VARCHAR(255),
35
+ PRIMARY KEY (Address_ID),
36
+ UNIQUE (Address_ID)
37
+ );
38
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('110', '4753 Dach Highway', 'Suite 846', 'Feliciaberg', 'Florida', NULL);
39
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('124', '391 Vandervort Fall Apt. 446', 'Apt. 107', 'West Sherwoodstad', 'Indiana', NULL);
40
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('148', '809 Izabella Islands', 'Suite 271', 'Schadenville', 'Ohio', NULL);
41
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('15', '3720 Vito View Apt. 148', 'Apt. 584', 'New Jaquelinmouth', 'Ohio', NULL);
42
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('180', '8835 Boehm Greens', 'Apt. 741', 'Chrisside', 'Maryland', NULL);
43
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('19', '77667 Nathan Union Apt. 606', 'Apt. 114', 'Desireefort', 'WestVirginia', NULL);
44
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('192', '545 Lula Mission', 'Suite 311', 'East Aracely', 'Oklahoma', NULL);
45
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('201', '2893 Jenkins Station Suite 815', 'Suite 570', 'Monahanshire', 'Kentucky', NULL);
46
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('207', '87789 Reilly Canyon Suite 872', 'Apt. 136', 'Rueckermouth', 'Maryland', NULL);
47
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('230', '0855 Ziemann Island', 'Apt. 597', 'Purdyville', 'SouthCarolina', NULL);
48
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('266', '2082 Runolfsson Cliffs', 'Apt. 460', 'Macejkovicchester', 'Alaska', NULL);
49
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('286', '51237 Maiya Center', 'Suite 714', 'New Lonzoville', 'Nebraska', NULL);
50
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('314', '70561 Vicenta Islands Apt. 873', 'Apt. 352', 'Cronaborough', 'Ohio', NULL);
51
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('362', '384 Fahey Flat Apt. 886', 'Suite 583', 'South Birdie', 'Pennsylvania', NULL);
52
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('369', '899 Okuneva Haven', 'Apt. 615', 'Jasthaven', 'Delaware', NULL);
53
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('374', '956 Aliyah Cape', 'Suite 226', 'South Eugenia', 'Washington', NULL);
54
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('383', '788 Flossie Junction Apt. 770', 'Apt. 861', 'Nataliamouth', 'WestVirginia', NULL);
55
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('39', '9799 Andres Shoal', 'Apt. 012', 'North Antonina', 'SouthDakota', NULL);
56
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('74', '8682 Boyle Glen', 'Apt. 012', 'Lindberg', 'Alabama', NULL);
57
+ INSERT INTO Addresses (`Address_ID`, `Line_1`, `Line_2`, `City_Town`, `State_County`, `Other_Details`) VALUES ('98', '32128 Klocko Oval', 'Suite 184', 'Port Maximeview', 'Arizona', NULL);
58
+
59
+
60
+
61
+ CREATE TABLE Products (
62
+ Product_ID VARCHAR(100) NOT NULL,
63
+ Product_Name VARCHAR(255),
64
+ Product_Price DECIMAL(20,4),
65
+ Product_Description VARCHAR(255),
66
+ Other_Product_Service_Details VARCHAR(255),
67
+ PRIMARY KEY (Product_ID),
68
+ UNIQUE (Product_ID)
69
+ );
70
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('11', 'photo', '4448536.0000', NULL, NULL);
71
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('154', 'film', '2302.0000', NULL, NULL);
72
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('156', 'film', '17622723.0000', NULL, NULL);
73
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('179', 'film', '1432324.0000', NULL, NULL);
74
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('188', 'film', '49097627.0000', NULL, NULL);
75
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('21', 'photo', '22082866.0000', NULL, NULL);
76
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('216', 'film', '157216.0000', NULL, NULL);
77
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('232', 'photo', '22.0000', NULL, NULL);
78
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('233', 'photo', '4082352.0000', NULL, NULL);
79
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('250', 'photo', '797.0000', NULL, NULL);
80
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('273', 'photo', '1577.0000', NULL, NULL);
81
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('300', 'dinning', '30625.0000', NULL, NULL);
82
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('46', 'dinning', '50828.0000', NULL, NULL);
83
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('81', 'dinning', '634660.0000', NULL, NULL);
84
+ INSERT INTO Products (`Product_ID`, `Product_Name`, `Product_Price`, `Product_Description`, `Other_Product_Service_Details`) VALUES ('83', 'film', '900.0000', NULL, NULL);
85
+
86
+
87
+ CREATE TABLE Marketing_Regions (
88
+ Marketing_Region_Code CHAR(15) NOT NULL,
89
+ Marketing_Region_Name VARCHAR(255) NOT NULL,
90
+ Marketing_Region_Descriptrion VARCHAR(255) NOT NULL,
91
+ Other_Details VARCHAR(255),
92
+ PRIMARY KEY (Marketing_Region_Code),
93
+ UNIQUE (Marketing_Region_Code)
94
+ );
95
+
96
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('CA', 'Canada', 'Our target market', NULL);
97
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('CN', 'China', 'Our largest market', NULL);
98
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('ES', 'Spain', '', NULL);
99
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('FR', 'France', '', NULL);
100
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('IN', 'India', '', NULL);
101
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('MX', 'Mexico', '', NULL);
102
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('RU', 'Russia', '', NULL);
103
+ INSERT INTO Marketing_Regions (`Marketing_Region_Code`, `Marketing_Region_Name`, `Marketing_Region_Descriptrion`, `Other_Details`) VALUES ('US', 'United States', 'Our main market', NULL);
104
+
105
+
106
+ CREATE TABLE Clients (
107
+ Client_ID INTEGER NOT NULL,
108
+ Address_ID INTEGER NOT NULL,
109
+ Customer_Email_Address VARCHAR(255),
110
+ Customer_Name VARCHAR(255),
111
+ Customer_Phone VARCHAR(255),
112
+ Other_Details VARCHAR(255),
113
+ PRIMARY KEY (Client_ID),
114
+ UNIQUE (Client_ID),
115
+ FOREIGN KEY (Address_ID) REFERENCES Addresses (Address_ID)
116
+ );
117
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (423, 201, 'branson94@example.net', 'Clifford', '(042)912-3404x5135', 'VIP');
118
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (426, 383, 'alba04@example.com', 'Bettye', '(604)849-0214', NULL);
119
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (478, 15, 'westley30@example.net', 'Reinhold', '1-048-214-4640x64380', NULL);
120
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (508, 98, 'hudson.kristina@example.net', 'Jack', '(966)022-6448x3428', 'Super VIP');
121
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (509, 286, 'white.alysa@example.com', 'Rosanna', '(651)611-6111x61144', NULL);
122
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (527, 74, 'buddy98@example.org', 'Kelton', '581.457.6800', NULL);
123
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (591, 98, 'considine.shyanne@example.net', 'Connor', '1-479-550-1510x89172', NULL);
124
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (605, 15, 'strosin.keara@example.com', 'Garfield', '+63(3)8897932425', NULL);
125
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (628, 383, 'cconn@example.net', 'Urban', '405.225.1435', NULL);
126
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (631, 374, 'qaltenwerth@example.com', 'Vita', '1-299-766-5382x3122', 'VIP');
127
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (699, 98, 'lbalistreri@example.net', 'Rory', '1-431-563-2576x9849', NULL);
128
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (735, 110, 'dina.gutmann@example.net', 'Arvid', '(745)818-8559x747', NULL);
129
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (768, 369, 'rempel.jamison@example.com', 'Consuelo', '(729)754-0764x6020', NULL);
130
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (775, 383, 'jklocko@example.net', 'Alvis', '+12(5)4915316228', NULL);
131
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (776, 374, 'lacy92@example.com', 'Tevin', '08761812417', NULL);
132
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (868, 74, 'boyer.carleton@example.com', 'Krista', '(066)903-6363', NULL);
133
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (887, 39, 'vparker@example.net', 'Genesis', '1-121-643-1101', NULL);
134
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (938, 180, 'cleora.strosin@example.org', 'Horace', '935-161-0948x33010', NULL);
135
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (943, 39, 'kbailey@example.com', 'Marquis', '398-003-6983x1691', NULL);
136
+ INSERT INTO Clients (`Client_ID`, `Address_ID`, `Customer_Email_Address`, `Customer_Name`, `Customer_Phone`, `Other_Details`) VALUES (953, 362, 'conn.josiane@example.com', 'Malcolm', '(995)964-6385', NULL);
137
+
138
+
139
+ CREATE TABLE Drama_Workshop_Groups (
140
+ Workshop_Group_ID INTEGER NOT NULL,
141
+ Address_ID INTEGER NOT NULL,
142
+ Currency_Code CHAR(15) NOT NULL,
143
+ Marketing_Region_Code CHAR(15) NOT NULL,
144
+ Store_Name VARCHAR(255),
145
+ Store_Phone VARCHAR(255),
146
+ Store_Email_Address VARCHAR(255),
147
+ Other_Details VARCHAR(255),
148
+ PRIMARY KEY (Workshop_Group_ID),
149
+ UNIQUE (Workshop_Group_ID),
150
+ FOREIGN KEY (Address_ID) REFERENCES Addresses (Address_ID)
151
+ );
152
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (136, 383, 'EU', 'FR', 'Amely Cafe', '122-084-8029', 'amely.ruecker@example.com', NULL);
153
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (140, 180, 'EU', 'DE', 'Veda Film', '793-966-9311x5303', 'breitenberg.veda@example.com', NULL);
154
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (176, 286, 'EU', 'RU', 'Queen Art', '492-463-5967', 'quigley.queen@example.org', 'Good');
155
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (314, 369, 'EU', 'RU', 'Kole Photo', '(256)743-0310', 'kole.torp@example.org', NULL);
156
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (382, 266, 'USD', 'US', 'WAT Food', '(411)133-9128', 'watsica.hettie@example.com', NULL);
157
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (405, 207, 'EU', 'ES', 'Hansen Print', '1-764-337-3453', 'hansen.krista@example.net', 'Good');
158
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (415, 383, 'EU', 'RU', 'Roo Place', '(422)705-5633', 'roosevelt61@example.com', NULL);
159
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (431, 110, 'USD', 'MX', 'Uhuels Fruit', '(636)443-4067', 'uhuels@example.net', NULL);
160
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (470, 369, 'USD', 'DE', 'Harry Beef', '(904)958-9909x0087', 'harry.nicolas@example.org', NULL);
161
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (685, 201, 'EU', 'RU', 'Welch Flower', '334-591-4561x465', 'welch.colby@example.net', 'Bad');
162
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (708, 230, 'EU', 'RU', 'Kling Workshop', '499-032-2149', 'katherine.kling@example.org', NULL);
163
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (735, 286, 'EU', 'FR', 'Orn News', '+60(6)8081312118', 'arturo.orn@example.org', NULL);
164
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (838, 124, 'EU', 'RU', 'Bednar Film', '1-351-773-1587x95545', 'bednar.michael@example.org', NULL);
165
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (942, 98, 'EU', 'IE', 'Kessler Exploration', '(020)161-0983x567', 'kessler.maximillia@example.net', NULL);
166
+ INSERT INTO Drama_Workshop_Groups (`Workshop_Group_ID`, `Address_ID`, `Currency_Code`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES (954, 374, 'EU', 'PT', 'Warino Photo', '1-811-875-3222', 'waino.king@example.com', NULL);
167
+
168
+
169
+
170
+ CREATE TABLE Performers (
171
+ Performer_ID INTEGER NOT NULL,
172
+ Address_ID INTEGER NOT NULL,
173
+ Customer_Name VARCHAR(255),
174
+ Customer_Phone VARCHAR(255),
175
+ Customer_Email_Address VARCHAR(255),
176
+ Other_Details VARCHAR(255),
177
+ PRIMARY KEY (Performer_ID),
178
+ UNIQUE (Performer_ID),
179
+ FOREIGN KEY (Address_ID) REFERENCES Addresses (Address_ID)
180
+ );
181
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (153, 124, 'Shawna', '664.495.1939', 'krogahn@example.com', NULL);
182
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (211, 124, 'Ashley', '893-536-8857', 'preston45@example.net', NULL);
183
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (313, 39, 'Oren', '1-952-052-6685x28082', 'ferry.carolina@example.net', NULL);
184
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (341, 110, 'Issac', '08639382978', 'wisozk.john@example.org', NULL);
185
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (360, 207, 'Shaniya', '472.072.6649x4161', 'wschroeder@example.org', NULL);
186
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (376, 180, 'Peyton', '905.705.9514', 'clotilde04@example.net', NULL);
187
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (379, 192, 'Trudie', '782-118-0067', 'trey88@example.net', NULL);
188
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (415, 110, 'Gwen', '342-389-0010x682', 'okub@example.org', NULL);
189
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (433, 110, 'Doyle', '547.535.3455', 'otilia.ortiz@example.net', NULL);
190
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (448, 192, 'Fritz', '858.603.7004', 'cummings.matteo@example.com', 'Did not pay');
191
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (466, 374, 'Tyrique', '1-417-019-8634', 'cokuneva@example.com', NULL);
192
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (650, 15, 'Keanu', '(654)496-1642x31167', 'hudson.cristobal@example.net', 'Did not pay');
193
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (656, 148, 'Dariana', '320.705.7190x0354', 'hbreitenberg@example.com', NULL);
194
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (798, 266, 'Sid', '1-260-605-6483', 'kellen89@example.com', NULL);
195
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (808, 374, 'Vernon', '+11(1)8172674604', 'ianderson@example.com', 'Pay good tips');
196
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (832, 124, 'Marques', '087-833-4617x095', 'joel24@example.com', NULL);
197
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (882, 207, 'Destiney', '(054)005-5168', 'jennyfer81@example.com', NULL);
198
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (904, 314, 'Jeanie', '323-787-3435x31522', 'anderson34@example.net', NULL);
199
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (954, 362, 'Joannie', '1-856-024-7910x2017', 'chaim10@example.com', NULL);
200
+ INSERT INTO Performers (`Performer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES (976, 19, 'Elyse', '483.180.0168x1288', 'myrtice.satterfield@example.net', NULL);
201
+
202
+
203
+ CREATE TABLE Customers (
204
+ Customer_ID VARCHAR(100) NOT NULL,
205
+ Address_ID INTEGER NOT NULL,
206
+ Customer_Name VARCHAR(255),
207
+ Customer_Phone VARCHAR(255),
208
+ Customer_Email_Address VARCHAR(255),
209
+ Other_Details VARCHAR(255),
210
+ PRIMARY KEY (Customer_ID),
211
+ UNIQUE (Customer_ID),
212
+ FOREIGN KEY (Address_ID) REFERENCES Addresses (Address_ID)
213
+ );
214
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('240', 286, 'Harold', '624-096-7791', 'jerde.harmon@example.com', NULL);
215
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('267', 98, 'Federico', '914-915-7483', 'johnson27@example.com', NULL);
216
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('304', 369, 'Samson', '1-463-121-4086x655', 'dalton75@example.com', NULL);
217
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('418', 369, 'Daryl', '(191)727-6065x6351', 'hickle.jazmyn@example.org', NULL);
218
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('516', 110, 'Robert', '903.657.6967x467', 'fheathcote@example.com', 'VIP');
219
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('518', 180, 'Jacques', '02902266118', 'eleannon@example.org', NULL);
220
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('546', 266, 'Davonte', '(941)313-1839x94608', 'keanu70@example.net', 'VIP');
221
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('556', 19, 'Blake', '056.568.7725', 'clemens43@example.org', NULL);
222
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('633', 148, 'Elwyn', '388.863.3459x0915', 'ggrant@example.com', NULL);
223
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('712', 266, 'Alek', '398.352.1753', 'terry.nels@example.com', NULL);
224
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('714', 230, 'Adelbert', '(514)659-1318x46123', 'hermann.veum@example.org', NULL);
225
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('793', 74, 'Isaiah', '347.178.3326', 'dudley08@example.net', NULL);
226
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('823', 383, 'Ephraim', '03189033909', 'gage.johns@example.org', NULL);
227
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('957', 207, 'Cedrick', '620-987-5897', 'nschmidt@example.org', NULL);
228
+ INSERT INTO Customers (`Customer_ID`, `Address_ID`, `Customer_Name`, `Customer_Phone`, `Customer_Email_Address`, `Other_Details`) VALUES ('998', 201, 'Wade', '+46(5)7576252034', 'cassin.cielo@example.org', NULL);
229
+
230
+
231
+ CREATE TABLE Stores (
232
+ Store_ID VARCHAR(100) NOT NULL,
233
+ Address_ID INTEGER NOT NULL,
234
+ Marketing_Region_Code CHAR(15) NOT NULL,
235
+ Store_Name VARCHAR(255),
236
+ Store_Phone VARCHAR(255),
237
+ Store_Email_Address VARCHAR(255),
238
+ Other_Details VARCHAR(255),
239
+ PRIMARY KEY (Store_ID),
240
+ UNIQUE (Store_ID),
241
+ FOREIGN KEY (Address_ID) REFERENCES Addresses (Address_ID),
242
+ FOREIGN KEY (Marketing_Region_Code) REFERENCES Marketing_Regions (Marketing_Region_Code)
243
+ );
244
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('150', 286, 'IN', 'FJA Filming', '+65(1)3590790358', 'fjacobson@example.com', NULL);
245
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('229', 266, 'CA', 'Rob Dinning', '1-327-185-9368', 'rborer@example.org', '5 stars');
246
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('231', 230, 'ES', 'Adan Dinning', '896-931-9633x869', 'adan93@example.com', NULL);
247
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('236', 74, 'CA', 'Fred Dinning', '893-457-3102x4293', 'frederik37@example.org', NULL);
248
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('291', 266, 'RU', 'Ewi Filming', '+46(1)1411714927', 'ewisoky@example.org', NULL);
249
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('344', 369, 'ES', 'Shery Photo', '1-678-902-9434x1148', 'shirley07@example.net', '4 stars');
250
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('421', 192, 'FR', 'Carmol Photo', '(941)444-7666x7089', 'carmel04@example.com', '3 stars');
251
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('444', 110, 'CN', 'FK Filming', '086-705-8793', 'fkuvalis@example.net', NULL);
252
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('512', 369, 'CA', 'Adam Photo', '127.870.0753x54565', 'adams.miles@example.net', '5 stars');
253
+ INSERT INTO Stores (`Store_ID`, `Address_ID`, `Marketing_Region_Code`, `Store_Name`, `Store_Phone`, `Store_Email_Address`, `Other_Details`) VALUES ('518', 110, 'ES', 'Lur Photo', '605-319-8245', 'lurline24@example.org', NULL);
254
+
255
+
256
+ CREATE TABLE Bookings (
257
+ Booking_ID INTEGER NOT NULL ,
258
+ Customer_ID INTEGER NOT NULL,
259
+ Workshop_Group_ID VARCHAR(100) NOT NULL,
260
+ Status_Code CHAR(15) NOT NULL,
261
+ Store_ID INTEGER NOT NULL,
262
+ Order_Date DATETIME NOT NULL,
263
+ Planned_Delivery_Date DATETIME NOT NULL,
264
+ Actual_Delivery_Date DATETIME NOT NULL,
265
+ Other_Order_Details VARCHAR(255),
266
+ PRIMARY KEY (Booking_ID),
267
+ UNIQUE (Booking_ID),
268
+ FOREIGN KEY (Customer_ID) REFERENCES Clients (Client_ID),
269
+ FOREIGN KEY (Workshop_Group_ID) REFERENCES Drama_Workshop_Groups (Workshop_Group_ID)
270
+ );
271
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (1, 938, '140', 'good', 8, '2016-12-12 10:43:01', '2013-03-10 18:47:05', '1997-11-21 10:07:40', NULL);
272
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (2, 868, '838', 'stop', 7, '1976-08-20 00:33:08', '2009-07-09 09:18:38', '1976-01-08 07:19:23', NULL);
273
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (3, 735, '176', 'good', 9, '1975-11-23 06:28:47', '1989-01-05 19:24:45', '1990-03-16 19:38:47', NULL);
274
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (4, 527, '708', 'stop', 6, '1995-02-02 15:52:57', '2017-04-27 00:16:00', '1996-10-24 21:15:27', NULL);
275
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (5, 591, '176', 'good', 9, '1995-05-10 14:49:47', '1979-07-19 19:44:01', '1971-01-13 13:24:52', NULL);
276
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (6, 953, '735', 'good', 1, '1992-11-26 18:11:10', '2016-06-06 20:35:14', '2016-04-30 11:45:39', NULL);
277
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (7, 735, '954', 'stop', 4, '1975-12-30 14:12:32', '2008-07-18 18:15:40', '1983-10-09 10:48:48', NULL);
278
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (8, 605, '176', 'good', 2, '1992-05-11 23:22:41', '1973-04-02 03:10:21', '1983-07-01 22:10:19', NULL);
279
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (9, 508, '405', 'good', 4, '1971-05-11 06:53:01', '1974-05-07 21:40:39', '1986-10-04 13:31:10', NULL);
280
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (10, 938, '735', 'good', 4, '1982-05-19 05:37:51', '1999-05-11 01:26:06', '1989-11-17 00:32:13', NULL);
281
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (11, 423, '136', 'good', 4, '1991-10-11 17:24:15', '1978-04-10 12:23:59', '1983-02-07 20:27:10', NULL);
282
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (12, 776, '954', 'good', 5, '1984-12-17 12:53:51', '2014-06-05 10:19:46', '1985-09-02 11:34:39', NULL);
283
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (13, 605, '685', 'good', 6, '1996-09-14 10:17:55', '1993-04-17 23:53:01', '1982-04-18 02:59:08', NULL);
284
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (14, 426, '954', 'stop', 6, '2007-08-05 15:46:29', '1971-06-29 03:04:47', '1995-12-21 05:01:38', NULL);
285
+ INSERT INTO Bookings (`Booking_ID`, `Customer_ID`, `Workshop_Group_ID`, `Status_Code`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (15, 426, '176', 'stop', 8, '1976-10-24 07:40:47', '1972-06-25 15:51:34', '2004-02-22 04:37:14', NULL);
286
+
287
+
288
+ CREATE TABLE Performers_in_Bookings (
289
+ Order_ID INTEGER NOT NULL,
290
+ Performer_ID INTEGER NOT NULL,
291
+ PRIMARY KEY (Order_ID, Performer_ID),
292
+ FOREIGN KEY (Performer_ID) REFERENCES Performers (Performer_ID),
293
+ FOREIGN KEY (Order_ID) REFERENCES Bookings (Booking_ID)
294
+ );
295
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (1, 153);
296
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (1, 341);
297
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (2, 466);
298
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (3, 798);
299
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (4, 313);
300
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (7, 882);
301
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (8, 650);
302
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (8, 976);
303
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (9, 376);
304
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (9, 656);
305
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (9, 954);
306
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (11, 360);
307
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (13, 313);
308
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (13, 808);
309
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (15, 313);
310
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (15, 656);
311
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (15, 832);
312
+ INSERT INTO Performers_in_Bookings (`Order_ID`, `Performer_ID`) VALUES (15, 904);
313
+
314
+
315
+ CREATE TABLE Customer_Orders (
316
+ Order_ID INTEGER NOT NULL ,
317
+ Customer_ID INTEGER NOT NULL,
318
+ Store_ID INTEGER NOT NULL,
319
+ Order_Date DATETIME NOT NULL,
320
+ Planned_Delivery_Date DATETIME NOT NULL,
321
+ Actual_Delivery_Date DATETIME NOT NULL,
322
+ Other_Order_Details VARCHAR(255),
323
+ PRIMARY KEY (Order_ID),
324
+ UNIQUE (Order_ID),
325
+ FOREIGN KEY (Customer_ID) REFERENCES Customers (Customer_ID),
326
+ FOREIGN KEY (Store_ID) REFERENCES Stores (Store_ID)
327
+ );
328
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (1, 516, 231, '1994-08-03 12:34:58', '1977-03-11 03:58:19', '1992-07-21 22:11:11', NULL);
329
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (2, 418, 229, '2014-07-10 10:56:01', '1996-08-26 19:19:59', '1998-08-22 17:57:32', NULL);
330
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (3, 712, 229, '1981-06-20 16:29:43', '1980-12-19 05:49:35', '2011-04-13 07:15:35', NULL);
331
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (4, 240, 229, '1999-11-20 18:48:05', '1973-08-20 08:52:39', '2004-03-27 23:30:12', NULL);
332
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (5, 418, 150, '1973-02-16 19:28:34', '1990-09-25 07:14:01', '2004-04-23 21:19:39', NULL);
333
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (6, 556, 344, '1988-11-13 15:42:13', '2012-05-19 00:38:52', '2015-06-20 20:51:17', NULL);
334
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (7, 546, 291, '1998-03-10 14:01:00', '2014-06-18 09:42:23', '1972-08-15 19:12:14', NULL);
335
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (8, 240, 231, '1979-09-01 06:29:01', '1996-05-17 09:10:57', '1996-02-16 04:20:17', NULL);
336
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (9, 240, 344, '1993-11-22 14:56:28', '1984-05-07 12:05:33', '1976-05-20 03:24:23', NULL);
337
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (10, 546, 518, '1985-05-29 01:20:18', '1977-07-08 16:35:46', '2003-12-16 23:37:19', NULL);
338
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (11, 304, 421, '2000-07-03 21:41:50', '1994-08-08 03:08:23', '1990-11-14 03:53:06', NULL);
339
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (12, 516, 231, '2011-01-05 08:01:07', '2004-04-24 01:52:57', '1993-09-16 23:20:05', NULL);
340
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (13, 240, 512, '2003-06-24 11:44:51', '1979-05-15 03:00:09', '2011-04-23 06:39:09', NULL);
341
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (14, 546, 444, '1971-05-12 10:12:46', '1987-03-21 18:50:27', '2016-10-18 16:11:20', NULL);
342
+ INSERT INTO Customer_Orders (`Order_ID`, `Customer_ID`, `Store_ID`, `Order_Date`, `Planned_Delivery_Date`, `Actual_Delivery_Date`, `Other_Order_Details`) VALUES (15, 712, 231, '2008-04-02 18:00:15', '1994-11-12 04:49:11', '1996-04-13 19:05:34', NULL);
343
+
344
+ CREATE TABLE Order_Items (
345
+ Order_Item_ID INTEGER NOT NULL ,
346
+ Order_ID INTEGER NOT NULL,
347
+ Product_ID INTEGER NOT NULL,
348
+ Order_Quantity VARCHAR(288),
349
+ Other_Item_Details VARCHAR(255),
350
+ PRIMARY KEY (Order_Item_ID),
351
+ FOREIGN KEY (Order_ID) REFERENCES Customer_Orders (Order_ID),
352
+ FOREIGN KEY (Product_ID) REFERENCES Products (Product_ID)
353
+ );
354
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (1, 3, 233, '1', NULL);
355
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (2, 15, 300, '2', NULL);
356
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (3, 12, 300, '1', NULL);
357
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (4, 4, 273, '1', NULL);
358
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (5, 3, 46, '2', NULL);
359
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (6, 5, 83, '2', NULL);
360
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (7, 10, 179, '2', NULL);
361
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (8, 4, 156, '1', NULL);
362
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (9, 12, 216, '1', NULL);
363
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (10, 11, 46, '1', NULL);
364
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (11, 2, 300, '1', NULL);
365
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (12, 12, 156, '2', NULL);
366
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (13, 6, 233, '1', NULL);
367
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (14, 1, 81, '1', NULL);
368
+ INSERT INTO Order_Items (`Order_Item_ID`, `Order_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (15, 7, 300, '2', NULL);
369
+
370
+ CREATE TABLE Invoices (
371
+ Invoice_ID INTEGER NOT NULL,
372
+ Order_ID INTEGER NOT NULL,
373
+ payment_method_code CHAR(15),
374
+ Product_ID INTEGER NOT NULL,
375
+ Order_Quantity VARCHAR(288),
376
+ Other_Item_Details VARCHAR(255),
377
+ Order_Item_ID INTEGER NOT NULL,
378
+ PRIMARY KEY (Invoice_ID),
379
+ FOREIGN KEY (Order_ID) REFERENCES Customer_Orders (Order_ID),
380
+ FOREIGN KEY (Order_ID) REFERENCES Bookings (Booking_ID),
381
+ FOREIGN KEY (payment_method_code) REFERENCES Ref_Payment_Methods (payment_method_code)
382
+ );
383
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (128, 14, 'MasterCard', 4, 2, NULL, 1);
384
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (162, 13, 'MasterCard', 9, 2, NULL, 9);
385
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (164, 7, 'Visa', 7, 2, NULL, 1);
386
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (212, 8, 'Visa', 4, 2, NULL, 8);
387
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (272, 10, 'American E', 3, 2, NULL, 5);
388
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (398, 3, 'American E', 4, 1, NULL, 5);
389
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (406, 14, 'MasterCard', 7, 2, NULL, 1);
390
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (483, 7, 'Visa', 8, 1, NULL, 3);
391
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (548, 4, 'MasterCard', 3, 1, NULL, 1);
392
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (587, 1, 'American E', 4, 2, NULL, 1);
393
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (612, 6, 'American E', 3, 1, NULL, 8);
394
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (633, 11, 'Visa', 2, 1, NULL, 7);
395
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (679, 12, 'MasterCard', 9, 2, NULL, 8);
396
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (733, 11, 'Visa', 6, 1, NULL, 4);
397
+ INSERT INTO Invoices (`Invoice_ID`, `Order_ID`, `payment_method_code`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`, `Order_Item_ID`) VALUES (777, 7, 'MasterCard', 6, 2, NULL, 7);
398
+
399
+
400
+ CREATE TABLE Services (
401
+ Service_ID INTEGER NOT NULL,
402
+ Service_Type_Code CHAR(15),
403
+ Workshop_Group_ID INTEGER NOT NULL,
404
+ Product_Description VARCHAR(255),
405
+ Product_Name VARCHAR(255),
406
+ Product_Price DECIMAL(20,4),
407
+ Other_Product_Service_Details VARCHAR(255),
408
+ PRIMARY KEY (Service_ID),
409
+ UNIQUE (Service_ID),
410
+ FOREIGN KEY (Workshop_Group_ID) REFERENCES Drama_Workshop_Groups (Workshop_Group_ID),
411
+ FOREIGN KEY (Service_Type_Code) REFERENCES Ref_Service_Types (Service_Type_Code)
412
+ );
413
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (191, '1', 415, NULL, 'film', '58932775.8822', NULL);
414
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (219, '2', 838, NULL, 'film', '2704.4719', NULL);
415
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (220, '1', 708, NULL, 'dinning', '6888.8306', NULL);
416
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (396, '3', 735, NULL, 'photo', '31862.0853', NULL);
417
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (414, '2', 954, NULL, 'photo', '213.9459', NULL);
418
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (421, '3', 470, NULL, 'photo', '8004.9880', NULL);
419
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (525, '4', 838, NULL, 'photo', '3499362.8145', NULL);
420
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (597, '2', 735, NULL, 'photo', '5396.2935', NULL);
421
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (630, '4', 176, NULL, 'photo', '19845767.8923', NULL);
422
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (640, '2', 382, NULL, 'dinning', '7299.6747', NULL);
423
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (662, '2', 954, NULL, 'dinning', '641544.2835', NULL);
424
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (773, '3', 314, NULL, 'dinning', '827055.7309', NULL);
425
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (779, '1', 431, NULL, 'film', '9130.7326', NULL);
426
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (798, '1', 176, NULL, 'film', '84063402.4351', NULL);
427
+ INSERT INTO Services (`Service_ID`, `Service_Type_Code`, `Workshop_Group_ID`, `Product_Description`, `Product_Name`, `Product_Price`, `Other_Product_Service_Details`) VALUES (840, '1', 405, NULL, 'film', '187358.6469', NULL);
428
+
429
+
430
+
431
+ CREATE TABLE Bookings_Services (
432
+ Order_ID INTEGER NOT NULL,
433
+ Product_ID INTEGER NOT NULL,
434
+ PRIMARY KEY (Order_ID, Product_ID),
435
+ FOREIGN KEY (Order_ID) REFERENCES Bookings (Booking_ID),
436
+ FOREIGN KEY (Product_ID) REFERENCES Services (Service_ID)
437
+ );
438
+
439
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (1, 396);
440
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (1, 779);
441
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (4, 191);
442
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (4, 414);
443
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (5, 773);
444
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (7, 191);
445
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (7, 640);
446
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (8, 414);
447
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (9, 630);
448
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (12, 597);
449
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (13, 396);
450
+ INSERT INTO Bookings_Services (`Order_ID`, `Product_ID`) VALUES (14, 525);
451
+
452
+
453
+
454
+ CREATE TABLE Invoice_Items (
455
+ Invoice_Item_ID INTEGER NOT NULL ,
456
+ Invoice_ID INTEGER NOT NULL,
457
+ Order_ID INTEGER NOT NULL,
458
+ Order_Item_ID INTEGER NOT NULL,
459
+ Product_ID INTEGER NOT NULL,
460
+ Order_Quantity INTEGER,
461
+ Other_Item_Details VARCHAR(255),
462
+ PRIMARY KEY (Invoice_Item_ID),
463
+ FOREIGN KEY (Order_Item_ID) REFERENCES Order_Items (Order_Item_ID),
464
+ FOREIGN KEY (Invoice_ID) REFERENCES Invoices (Invoice_ID),
465
+ FOREIGN KEY (Order_ID, Product_ID) REFERENCES Bookings_Services (Order_ID,Product_ID)
466
+ );
467
+ INSERT INTO Invoice_Items (`Invoice_Item_ID`, `Invoice_ID`, `Order_ID`, `Order_Item_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (1, 128, 1, 5, 396, 2, NULL);
468
+ INSERT INTO Invoice_Items (`Invoice_Item_ID`, `Invoice_ID`, `Order_ID`, `Order_Item_ID`, `Product_ID`, `Order_Quantity`, `Other_Item_Details`) VALUES (2, 162, 4, 6, 191, 6, 'Good quality');
database/cre_Theme_park/cre_Theme_park.sqlite ADDED
Binary file (94.2 kB). View file
 
database/cre_Theme_park/schema.sql ADDED
@@ -0,0 +1,332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE Ref_Hotel_Star_Ratings (
3
+ star_rating_code CHAR(15) NOT NULL,
4
+ star_rating_description VARCHAR(80),
5
+ PRIMARY KEY (star_rating_code),
6
+ UNIQUE (star_rating_code)
7
+ );
8
+
9
+
10
+ CREATE TABLE Locations (
11
+ Location_ID INTEGER NOT NULL,
12
+ Location_Name VARCHAR(255),
13
+ Address VARCHAR(255),
14
+ Other_Details VARCHAR(255),
15
+ PRIMARY KEY (Location_ID)
16
+ );
17
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (333, 'Astro Orbiter', '660 Shea Crescent', NULL);
18
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (368, 'African Animals', '254 Ottilie Junction', NULL);
19
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (417, 'American Adventure', '53815 Sawayn Tunnel Apt. 297', NULL);
20
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (579, 'The Barnstormer', '3374 Sarina Manor', NULL);
21
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (603, 'African Adventure', '88271 Barrows Union Suite 203', NULL);
22
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (650, 'UK Gallery', '4411 Sabrina Radial Suite 582', NULL);
23
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (655, 'The Boneyard', '0692 Georgiana Pass', NULL);
24
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (661, 'Shark World', '2485 Mueller Squares Suite 537', NULL);
25
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (740, 'Space Spin', '5536 Betsy Street Apt. 646', NULL);
26
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (759, 'Butterflies', '959 Feest Glen Suite 523', NULL);
27
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (858, 'Soak Station', '4908 Reinger Vista', NULL);
28
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (861, 'Castle', '14034 Kohler Drive', NULL);
29
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (867, 'Coral Reefs', '4510 Schuster Stream Apt. 613', NULL);
30
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (868, 'Film Festival', '770 Edd Lane Apt. 098', NULL);
31
+ INSERT INTO Locations (`Location_ID`, `Location_Name`, `Address`, `Other_Details`) VALUES (885, 'Fossil Fun Games', '101 Paucek Crescent', NULL);
32
+
33
+
34
+ CREATE TABLE Ref_Attraction_Types (
35
+ Attraction_Type_Code CHAR(15) NOT NULL,
36
+ Attraction_Type_Description VARCHAR(255),
37
+ PRIMARY KEY (Attraction_Type_Code),
38
+ UNIQUE (Attraction_Type_Code)
39
+ );
40
+
41
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('2', 'park');
42
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('3', 'garden');
43
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('5', 'gallery');
44
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('6', 'adventure');
45
+ INSERT INTO Ref_Attraction_Types (`Attraction_Type_Code`, `Attraction_Type_Description`) VALUES ('9', 'museum');
46
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('1', 'star');
47
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('2', 'star');
48
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('3', 'star');
49
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('4', 'star');
50
+ INSERT INTO Ref_Hotel_Star_Ratings (`star_rating_code`, `star_rating_description`) VALUES ('5', 'star');
51
+
52
+
53
+ CREATE TABLE Visitors (
54
+ Tourist_ID INTEGER NOT NULL,
55
+ Tourist_Details VARCHAR(255),
56
+ PRIMARY KEY (Tourist_ID),
57
+ UNIQUE (Tourist_ID)
58
+ );
59
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (164, 'Toney');
60
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (189, 'Graciela');
61
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (204, 'Vincent');
62
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (211, 'Vivian');
63
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (241, 'Nettie');
64
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (295, 'Laurence');
65
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (359, 'Newell');
66
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (377, 'Marisol');
67
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (399, 'Jarrell');
68
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (439, 'Edna');
69
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (500, 'Maud');
70
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (513, 'Alison');
71
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (541, 'Rosalind');
72
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (545, 'Tevin');
73
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (578, 'Aleen');
74
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (610, 'Marcelle');
75
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (652, 'Lizzie');
76
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (779, 'Wayne');
77
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (841, 'Teresa');
78
+ INSERT INTO Visitors (`Tourist_ID`, `Tourist_Details`) VALUES (888, 'Elnora');
79
+
80
+
81
+
82
+ CREATE TABLE Features (
83
+ Feature_ID INTEGER NOT NULL,
84
+ Feature_Details VARCHAR(255),
85
+ PRIMARY KEY (Feature_ID)
86
+ );
87
+
88
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (523, 'cafe');
89
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (528, 'park');
90
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (543, 'garden');
91
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (681, 'shopping');
92
+ INSERT INTO Features (`Feature_ID`, `Feature_Details`) VALUES (955, 'parking');
93
+
94
+
95
+ CREATE TABLE Hotels (
96
+ hotel_id INTEGER NOT NULL,
97
+ star_rating_code CHAR(15) NOT NULL,
98
+ pets_allowed_yn CHAR(1),
99
+ price_range real,
100
+ other_hotel_details VARCHAR(255),
101
+ PRIMARY KEY (hotel_id),
102
+ FOREIGN KEY (star_rating_code) REFERENCES Ref_Hotel_Star_Ratings (star_rating_code)
103
+ );
104
+
105
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (123, '5', '1', '2914989.571', NULL);
106
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (144, '4', '', '', NULL);
107
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (172, '5', '', '17012.682586009', NULL);
108
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (222, '5', '1', '', NULL);
109
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (239, '3', '1', '', NULL);
110
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (264, '1', '1', '48525.4530675', NULL);
111
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (314, '5', '1', '766712918.96763', NULL);
112
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (331, '1', '1', '', NULL);
113
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (350, '1', '', '', NULL);
114
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (373, '5', '1', '250548014.90329', NULL);
115
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (376, '2', '', '', NULL);
116
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (379, '4', '1', '38014975.47848', NULL);
117
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (420, '5', '1', '9393.86291219', NULL);
118
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (421, '3', '', '5526556.6412', NULL);
119
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (426, '5', '', '245.067720121', NULL);
120
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (431, '2', '1', '43.729525', NULL);
121
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (442, '2', '1', '289775.7331715', NULL);
122
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (473, '1', '1', '2374.7971074', NULL);
123
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (514, '5', '', '1381255.81865', NULL);
124
+ INSERT INTO Hotels (`hotel_id`, `star_rating_code`, `pets_allowed_yn`, `price_range`, `other_hotel_details`) VALUES (555, '5', '1', '5390.432113', NULL);
125
+
126
+
127
+ CREATE TABLE Tourist_Attractions (
128
+ Tourist_Attraction_ID INTEGER NOT NULL,
129
+ Attraction_Type_Code CHAR(15) NOT NULL,
130
+ Location_ID INTEGER NOT NULL,
131
+ How_to_Get_There VARCHAR(255),
132
+ Name VARCHAR(255),
133
+ Description VARCHAR(255),
134
+ Opening_Hours VARCHAR(255),
135
+ Other_Details VARCHAR(255),
136
+ PRIMARY KEY (Tourist_Attraction_ID),
137
+ FOREIGN KEY (Location_ID) REFERENCES Locations (Location_ID),
138
+ FOREIGN KEY (Attraction_Type_Code) REFERENCES Ref_Attraction_Types (Attraction_Type_Code)
139
+ );
140
+
141
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (2113, '2', 579, 'bus', 'art museum', NULL, NULL, NULL);
142
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (2701, '6', 417, 'walk', 'UK gallery', NULL, NULL, NULL);
143
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (5076, '2', 868, 'shuttle', 'flying elephant', NULL, NULL, NULL);
144
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (5265, '5', 603, 'bus', 'film festival', NULL, NULL, NULL);
145
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6476, '3', 417, 'shuttle', 'US museum', NULL, NULL, NULL);
146
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6523, '9', 858, 'walk', 'fun games', NULL, NULL, NULL);
147
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6653, '9', 655, 'walk', 'history gallery', NULL, NULL, NULL);
148
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (6852, '5', 858, 'walk', 'exploration trial', NULL, NULL, NULL);
149
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (7067, '5', 417, 'bus', 'haunted mansion', NULL, NULL, NULL);
150
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (8429, '9', 867, 'walk', 'presidents hall', NULL, NULL, NULL);
151
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (8449, '2', 579, 'bus', 'impressions de France', NULL, NULL, NULL);
152
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (8698, '5', 661, 'bus', 'jungle cruise', NULL, NULL, NULL);
153
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (9360, '5', 868, 'shuttle', 'fun shops', NULL, NULL, NULL);
154
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (9561, '2', 759, 'bus', 'cafe', NULL, NULL, NULL);
155
+ INSERT INTO Tourist_Attractions (`Tourist_Attraction_ID`, `Attraction_Type_Code`, `Location_ID`, `How_to_Get_There`, `Name`, `Description`, `Opening_Hours`, `Other_Details`) VALUES (9919, '6', 579, 'shuttle', 'parking', NULL, NULL, NULL);
156
+
157
+
158
+
159
+ CREATE TABLE Street_Markets (
160
+ Market_ID INTEGER NOT NULL,
161
+ Market_Details VARCHAR(255),
162
+ PRIMARY KEY (Market_ID),
163
+ FOREIGN KEY (Market_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
164
+ );
165
+ CREATE TABLE Shops (
166
+ Shop_ID INTEGER NOT NULL,
167
+ Shop_Details VARCHAR(255),
168
+ PRIMARY KEY (Shop_ID),
169
+ FOREIGN KEY (Shop_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
170
+ );
171
+ CREATE TABLE Museums (
172
+ Museum_ID INTEGER NOT NULL,
173
+ Museum_Details VARCHAR(255),
174
+ PRIMARY KEY (Museum_ID),
175
+ FOREIGN KEY (Museum_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
176
+ );
177
+ CREATE TABLE Royal_Family (
178
+ Royal_Family_ID INTEGER NOT NULL,
179
+ Royal_Family_Details VARCHAR(255),
180
+ PRIMARY KEY (Royal_Family_ID),
181
+ FOREIGN KEY (Royal_Family_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
182
+ );
183
+ CREATE TABLE Theme_Parks (
184
+ Theme_Park_ID INTEGER NOT NULL,
185
+ Theme_Park_Details VARCHAR(255),
186
+ PRIMARY KEY (Theme_Park_ID),
187
+ FOREIGN KEY (Theme_Park_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
188
+ );
189
+
190
+
191
+ INSERT INTO Museums (`Museum_ID`,`Museum_Details`) VALUES (2113,'Yale Center for British Art');
192
+ INSERT INTO Museums (`Museum_ID`,`Museum_Details`) VALUES (2701,'The Metropolitan Museum of Art');
193
+ INSERT INTO Museums (`Museum_ID`,`Museum_Details`) VALUES (5076,'MoMA');
194
+
195
+ INSERT INTO Theme_Parks (`Theme_Park_ID`,`Theme_Park_Details`) VALUES (5265,'Disney');
196
+ INSERT INTO Theme_Parks (`Theme_Park_ID`,`Theme_Park_Details`) VALUES (6476,'Sea World');
197
+ INSERT INTO Theme_Parks (`Theme_Park_ID`,`Theme_Park_Details`) VALUES (6523, 'Universal Studios');
198
+
199
+
200
+ INSERT INTO Street_Markets (`Market_ID`,`Market_Details`) VALUES (6852, 'Broadway');
201
+ INSERT INTO Street_Markets (`Market_ID`,`Market_Details`) VALUES (7067, 'Fish Farm Market');
202
+
203
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (8429, 'soup');
204
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (8449, 'coffee');
205
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (8698, 'Flower');
206
+ INSERT INTO Shops (`Shop_ID`,`Shop_Details`) VALUES (9360, 'see food');
207
+
208
+ INSERT INTO Royal_Family (`Royal_Family_ID`,`Royal_Family_Details`) VALUES (9561,NULL);
209
+ INSERT INTO Royal_Family (`Royal_Family_ID`,`Royal_Family_Details`) VALUES (9919,NULL);
210
+
211
+
212
+ CREATE TABLE Visits (
213
+ Visit_ID INTEGER NOT NULL,
214
+ Tourist_Attraction_ID INTEGER NOT NULL,
215
+ Tourist_ID INTEGER NOT NULL,
216
+ Visit_Date DATETIME NOT NULL,
217
+ Visit_Details VARCHAR(40) NOT NULL,
218
+ PRIMARY KEY (Visit_ID),
219
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID),
220
+ FOREIGN KEY (Tourist_ID) REFERENCES Visitors (Tourist_ID)
221
+ );
222
+
223
+
224
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (183, 6653, 377, '2004-08-21 03:06:14', '');
225
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (268, 5076, 204, '2013-08-06 05:35:51', '');
226
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (273, 9360, 211, '2013-10-27 09:56:08', '');
227
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (302, 6476, 377, '1990-08-15 14:24:10', '');
228
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (356, 6476, 439, '1980-11-26 02:08:00', '');
229
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (381, 6523, 211, '2017-03-19 08:48:19', '');
230
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (416, 6476, 841, '2008-11-09 01:28:01', '');
231
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (479, 6852, 439, '1989-08-24 20:26:37', '');
232
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (563, 6852, 610, '1993-02-01 15:27:20', '');
233
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (612, 9919, 204, '2007-09-17 10:12:45', '');
234
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (729, 6476, 513, '1998-05-12 00:50:20', '');
235
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (776, 8698, 513, '2010-10-04 01:34:12', '');
236
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (781, 6852, 779, '2018-01-09 20:39:52', '');
237
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (866, 8429, 545, '1971-12-16 06:41:26', '');
238
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (909, 8698, 779, '1998-12-10 02:46:43', '');
239
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (937, 6523, 541, '1996-01-08 13:23:41', '');
240
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (962, 9919, 610, '2007-09-03 04:30:01', '');
241
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (968, 6852, 377, '1974-12-31 23:18:24', '');
242
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (977, 8698, 500, '2001-11-13 10:08:28', '');
243
+ INSERT INTO Visits (`Visit_ID`, `Tourist_Attraction_ID`, `Tourist_ID`, `Visit_Date`, `Visit_Details`) VALUES (999, 2701, 610, '1990-11-12 00:54:50', '');
244
+
245
+
246
+
247
+ CREATE TABLE Photos (
248
+ Photo_ID INTEGER NOT NULL,
249
+ Tourist_Attraction_ID INTEGER NOT NULL,
250
+ Name VARCHAR(255),
251
+ Description VARCHAR(255),
252
+ Filename VARCHAR(255),
253
+ Other_Details VARCHAR(255),
254
+ PRIMARY KEY (Photo_ID),
255
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
256
+ );
257
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (211, 8449, 'game1', NULL, '702', NULL);
258
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (280, 7067, 'game2', NULL, '762', NULL);
259
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (303, 5076, 'game3', NULL, '392', NULL);
260
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (327, 9919, 'fun1', NULL, '820', NULL);
261
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (332, 5076, 'fun2', NULL, '060', NULL);
262
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (428, 6523, 'fun3', NULL, '148', NULL);
263
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (435, 8429, 'fun4', NULL, '453', NULL);
264
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (437, 2701, 'fun5', NULL, '128', NULL);
265
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (525, 5265, 'park1', NULL, '538', NULL);
266
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (534, 6852, 'park2', NULL, '325', NULL);
267
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (537, 6653, 'park3', NULL, '695', NULL);
268
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (550, 5076, 'din1', NULL, '259', NULL);
269
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (558, 8698, 'din2', NULL, '863', NULL);
270
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (571, 6653, 'din3', NULL, '864', NULL);
271
+ INSERT INTO Photos (`Photo_ID`, `Tourist_Attraction_ID`, `Name`, `Description`, `Filename`, `Other_Details`) VALUES (596, 9561, 'din4', NULL, '141', NULL);
272
+
273
+
274
+ CREATE TABLE Staff (
275
+ Staff_ID INTEGER NOT NULL,
276
+ Tourist_Attraction_ID INTEGER NOT NULL,
277
+ Name VARCHAR(40),
278
+ Other_Details VARCHAR(255),
279
+ PRIMARY KEY (Staff_ID),
280
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID)
281
+ );
282
+
283
+
284
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (170, 6476, 'Whitney', NULL);
285
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (219, 6476, 'Kaela', NULL);
286
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (237, 7067, 'Eunice', NULL);
287
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (249, 5265, 'Kiarra', NULL);
288
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (310, 9561, 'Phoebe', NULL);
289
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (433, 9360, 'Vickie', NULL);
290
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (463, 6653, 'Jannie', NULL);
291
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (470, 6523, 'Lenore', NULL);
292
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (487, 6852, 'Asia', NULL);
293
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (491, 6852, 'Janet', NULL);
294
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (532, 6852, 'Elouise', NULL);
295
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (591, 9360, 'Gina', NULL);
296
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (595, 8698, 'Beth', NULL);
297
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (596, 2701, 'Ruthie', NULL);
298
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (604, 6852, 'Aurore', NULL);
299
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (619, 2113, 'Cortney', NULL);
300
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (643, 6523, 'Astrid', NULL);
301
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (667, 9561, 'Shemar', NULL);
302
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (860, 6476, 'Trinity', NULL);
303
+ INSERT INTO Staff (`Staff_ID`, `Tourist_Attraction_ID`, `Name`, `Other_Details`) VALUES (952, 5265, 'Carmella', NULL);
304
+
305
+
306
+
307
+
308
+ CREATE TABLE Tourist_Attraction_Features (
309
+ Tourist_Attraction_ID INTEGER NOT NULL,
310
+ Feature_ID INTEGER NOT NULL,
311
+ PRIMARY KEY (Tourist_Attraction_ID, Feature_ID),
312
+ FOREIGN KEY (Tourist_Attraction_ID) REFERENCES Tourist_Attractions (Tourist_Attraction_ID),
313
+ FOREIGN KEY (Feature_ID) REFERENCES Features (Feature_ID)
314
+ );
315
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5076, 528);
316
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5076, 681);
317
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5265, 523);
318
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (5265, 955);
319
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6476, 543);
320
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6476, 681);
321
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6476, 955);
322
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6523, 528);
323
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6852, 528);
324
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (6852, 955);
325
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (7067, 543);
326
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8429, 681);
327
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8449, 528);
328
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8698, 528);
329
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8698, 543);
330
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (8698, 681);
331
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (9561, 681);
332
+ INSERT INTO Tourist_Attraction_Features (`Tourist_Attraction_ID`, `Feature_ID`) VALUES (9919, 681);
database/csu_1/csu_1.sqlite ADDED
Binary file (102 kB). View file
 
database/csu_1/schema.sql ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CREATE TABLE "Campuses" (
2
+ "Id" INTEGER PRIMARY KEY,
3
+ "Campus" TEXT,
4
+ "Location" TEXT,
5
+ "County" TEXT,
6
+ "Year" INTEGER
7
+ );
8
+
9
+ CREATE TABLE "csu_fees" (
10
+ "Campus" INTEGER PRIMARY KEY,
11
+ "Year" INTEGER,
12
+ "CampusFee" INTEGER,
13
+ FOREIGN KEY (Campus) REFERENCES Campuses(Id)
14
+ );
15
+
16
+ CREATE TABLE "degrees" (
17
+ "Year" INTEGER,
18
+ "Campus" INTEGER,
19
+ "Degrees" INTEGER,
20
+ PRIMARY KEY (Year, Campus),
21
+ FOREIGN KEY (Campus) REFERENCES Campuses(Id)
22
+ );
23
+
24
+
25
+
26
+ CREATE TABLE "discipline_enrollments" (
27
+ "Campus" INTEGER,
28
+ "Discipline" INTEGER,
29
+ "Year" INTEGER,
30
+ "Undergraduate" INTEGER,
31
+ "Graduate" INTEGER,
32
+ PRIMARY KEY (Campus, Discipline),
33
+ FOREIGN KEY (Campus) REFERENCES Campuses(Id)
34
+ );
35
+
36
+
37
+
38
+ CREATE TABLE "enrollments" (
39
+ "Campus" INTEGER,
40
+ "Year" INTEGER,
41
+ "TotalEnrollment_AY" INTEGER,
42
+ "FTE_AY" INTEGER,
43
+ PRIMARY KEY(Campus, Year),
44
+ FOREIGN KEY (Campus) REFERENCES Campuses(Id)
45
+ );
46
+
47
+ CREATE TABLE "faculty" (
48
+ "Campus" INTEGER,
49
+ "Year" INTEGER,
50
+ "Faculty" REAL,
51
+ FOREIGN KEY (Campus) REFERENCES Campuses(Id)
52
+ );
53
+
54
+
database/culture_company/culture_company.sqlite ADDED
Binary file (28.7 kB). View file
 
database/culture_company/schema.sql ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "book_club" (
4
+ "book_club_id" int,
5
+ "Year" int,
6
+ "Author_or_Editor" text,
7
+ "Book_Title" text,
8
+ "Publisher" text,
9
+ "Category" text,
10
+ "Result" text,
11
+ PRIMARY KEY ("book_club_id")
12
+ );
13
+
14
+ INSERT INTO "book_club" VALUES (1, "1989","Michael Nava","Goldenboy","Alyson","Gay M/SF","Won [A ]");
15
+ INSERT INTO "book_club" VALUES (2, "1989","Donald Ward","Death Takes the Stage","St. Martin's Press","Gay M/SF","Nom");
16
+ INSERT INTO "book_club" VALUES (3, "1989","Michael Bishop","Unicorn Mountain","William Morrow","Gay M/SF","Nom");
17
+ INSERT INTO "book_club" VALUES (4, "1989","Joseph Hansen","Obedience","Mysterious Press","Gay M/SF","Nom");
18
+ INSERT INTO "book_club" VALUES (5, "1989","George Baxt","Whoӳ Next","International Polygonics","Gay M/SF","Nom");
19
+ INSERT INTO "book_club" VALUES (6, "1989","Antoinette Azolakov","Skiptrace","Banned Books","Lesb. M/SF","Won");
20
+ INSERT INTO "book_club" VALUES (7,"1989","Claire McNab","Lessons In Murder","Naiad Press","Lesb. M/SF","Nom");
21
+ INSERT INTO "book_club" VALUES (8, "1989","Judy Grahn","Mundaneӳ World","Crossing Press","Lesb. M/SF","Nom");
22
+ INSERT INTO "book_club" VALUES (9, "1989","Dolores Klaich","Heavy Gilt","Naiad Press","Lesb. M/SF","Nom");
23
+ INSERT INTO "book_club" VALUES (10, "1989","Sandy Bayer","The Crystal Curtain","Alyson","Lesb. M/SF","Nom");
24
+ INSERT INTO "book_club" VALUES (11, "1990","Jeffrey N. McMahan","Somewhere in the Night","Alyson","Gay SF/F","Won [B ]");
25
+ INSERT INTO "book_club" VALUES (12, "1990","Thom Nickels","Walking Water / After All This","Banned Books","Gay SF/F","Nom");
26
+
27
+
28
+ CREATE TABLE "movie" (
29
+ "movie_id" int,
30
+ "Title" text,
31
+ "Year" int,
32
+ "Director" text,
33
+ "Budget_million" real,
34
+ "Gross_worldwide" int,
35
+ PRIMARY KEY("movie_id")
36
+ );
37
+
38
+ INSERT INTO "movie" VALUES (1, "The Boondock Saints","1999","Troy Duffy","6","30471");
39
+ INSERT INTO "movie" VALUES (2, "The Big Kahuna","1999","John Swanbeck","7","3728888");
40
+ INSERT INTO "movie" VALUES (3, "Storm Catcher","1999","Anthony Hickox","5","40500");
41
+ INSERT INTO "movie" VALUES (4, "Jill Rips","2000","Anthony Hickox","4","456774");
42
+ INSERT INTO "movie" VALUES (5, "The Whole Nine Yards","2000","Jonathan Lynn","41.3","106371651");
43
+ INSERT INTO "movie" VALUES (6, "Battlefield Earth","2000","Roger Christian","44","29725663");
44
+ INSERT INTO "movie" VALUES (7, "Get Carter","2000","Stephen Kay","63.6","19412993");
45
+ INSERT INTO "movie" VALUES (8, "The Art of War","2000","Christian Duguay","60","40400425");
46
+ INSERT INTO "movie" VALUES (9, "Agent Red","2000","Damian Lee","47","543356");
47
+ INSERT INTO "movie" VALUES (10, "3000 Miles to Graceland","2001","Demian Lichtenstein","62","18720175");
48
+
49
+
50
+
51
+ CREATE TABLE "culture_company" (
52
+ "Company_name" text,
53
+ "Type" text,
54
+ "Incorporated_in" text,
55
+ "Group_Equity_Shareholding" real,
56
+ "book_club_id" text,
57
+ "movie_id" text,
58
+ PRIMARY KEY("Company_name"),
59
+ FOREIGN KEY ("book_club_id") REFERENCES "book_club"("book_club_id"),
60
+ FOREIGN KEY ("movie_id") REFERENCES "movie"("movie_id")
61
+ );
62
+
63
+ INSERT INTO "culture_company" VALUES ("Culture China","Corporate","China","18.77",1,2);
64
+ INSERT INTO "culture_company" VALUES ("Culture China Cargo","Joint Venture","China","49",2,3);
65
+ INSERT INTO "culture_company" VALUES ("Culture Hong Kong","Joint Venture","Hong Kong","60",3,4);
66
+ INSERT INTO "culture_company" VALUES ("Dragonair","Subsidiary","Hong Kong","100",5,7);
67
+ INSERT INTO "culture_company" VALUES ("Cathay Pacific Culture","Subsidiary","Hong Kong","100",5,5);
68
+ INSERT INTO "culture_company" VALUES ("Cathay Pacific Culture Services (HK) Limited","Subsidiary","Hong Kong","100",6,6);
69
+
database/customer_deliveries/customer_deliveries.sqlite ADDED
Binary file (61.4 kB). View file