Chinastark commited on
Commit
024a220
·
verified ·
1 Parent(s): 6d3c679

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. database/assets_maintenance/assets_maintenance.sqlite +0 -0
  2. database/customers_and_addresses/schema.sql +163 -0
  3. database/e_government/schema.sql +231 -0
  4. database/film_rank/schema.sql +70 -0
  5. database/gymnast/schema.sql +45 -0
  6. database/inn_1/change_date.py +26 -0
  7. database/inn_1/inn_1.sqlite +0 -0
  8. database/inn_1/link.txt +1 -0
  9. database/inn_1/q.txt +15 -0
  10. database/insurance_fnol/schema.sql +141 -0
  11. database/real_estate_properties/schema.sql +116 -0
  12. database/restaurant_1/restaurant_1.sqlite +0 -0
  13. database/ship_mission/schema.sql +41 -0
  14. database/singer/schema.sql +39 -0
  15. database/student_assessment/schema.sql +185 -0
  16. database/student_transcripts_tracking/schema.sql +281 -0
  17. database/theme_gallery/schema.sql +65 -0
  18. database/tracking_orders/schema.sql +165 -0
  19. database/tracking_software_problems/schema.sql +119 -0
  20. database/university_basketball/schema.sql +40 -0
  21. database/world_1/world_1.json +230 -0
  22. test_database/aan_1/annotation.json +5 -0
  23. test_database/address_1/link.txt +1 -0
  24. test_database/advertising_agencies/advertising_agencies.sqlite +0 -0
  25. test_database/advertising_agencies/schema.sql +162 -0
  26. test_database/bakery_1/data_csv/README.BAKERY.TXT +110 -0
  27. test_database/bakery_1/data_csv/customers.csv +21 -0
  28. test_database/bakery_1/data_csv/customers_t.csv +21 -0
  29. test_database/bakery_1/data_csv/goods.csv +41 -0
  30. test_database/bakery_1/data_csv/goods_t.csv +41 -0
  31. test_database/bakery_1/data_csv/items (3:11:18, 5:53 PM)_original.csv +558 -0
  32. test_database/bakery_1/data_csv/items.csv +558 -0
  33. test_database/bakery_1/data_csv/items_t.csv +558 -0
  34. test_database/bakery_1/data_csv/receipts_t.csv +201 -0
  35. test_database/bbc_channels/bbc_channels.sqlite +0 -0
  36. test_database/bbc_channels/schema.sql +83 -0
  37. test_database/boat_1/Boats.csv +4 -0
  38. test_database/boat_1/boat_1.sqlite +0 -0
  39. test_database/candidate_poll/candidate_poll.sqlite +0 -0
  40. test_database/candidate_poll/schema.sql +42 -0
  41. test_database/car_1/data_csv/README.CARS.TXT +149 -0
  42. test_database/car_1/data_csv/cars.desc +94 -0
  43. test_database/car_1/data_csv/model-list.csv +37 -0
  44. test_database/car_1/link.txt +1 -0
  45. test_database/car_racing/car_racing.sqlite +0 -0
  46. test_database/car_racing/schema.sql +91 -0
  47. test_database/car_road_race/car_road_race.sqlite +0 -0
  48. test_database/car_road_race/schema.sql +49 -0
  49. test_database/college_3/college_3.sqlite +0 -0
  50. test_database/college_3/schema.sql +575 -0
database/assets_maintenance/assets_maintenance.sqlite ADDED
Binary file (69.6 kB). View file
 
database/customers_and_addresses/schema.sql ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE `Addresses` (
4
+ `address_id` INTEGER PRIMARY KEY,
5
+ `address_content` VARCHAR(80),
6
+ `city` VARCHAR(50),
7
+ `zip_postcode` VARCHAR(20),
8
+ `state_province_county` VARCHAR(50),
9
+ `country` VARCHAR(50),
10
+ `other_address_details` VARCHAR(255)
11
+ );
12
+
13
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (1, '9443 Boyle Route Suite 857', 'Lucasville', '416', 'Colorado', 'USA', NULL);
14
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (2, '1969 Jabari Port Suite 393', 'New Sabryna', '721', 'SouthCarolina', 'USA', NULL);
15
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (3, '295 Hackett Curve', 'Reingertown', '255', 'NewJersey', 'USA', NULL);
16
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (4, '92865 Margaretta Streets Suite 467', 'Gleasonmouth', '940', 'Arizona', 'USA', NULL);
17
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (5, '08996 Brisa Lane Apt. 583', 'Stantonville', '354', 'Mississippi', 'USA', NULL);
18
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (6, '826 Murray Locks Apt. 654', 'South Meghanview', '918', 'Colorado', 'USA', NULL);
19
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (7, '59540 Grover Wells Apt. 814', 'Lake Walterton', '767', 'Virginia', 'USA', NULL);
20
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (8, '78614 Maybell Alley Suite 057', 'South Bellaland', '921', 'Florida', 'USA', NULL);
21
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (9, '9168 King Rest', 'Felicityfort', '482', 'Texas', 'USA', NULL);
22
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (10, '120 Noble Radial', 'East Julianaside', '821', 'Texas', 'USA', NULL);
23
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (11, '618 Odie Villages Suite 133', 'Lake Geovannyton', '623', 'NewMexico', 'USA', NULL);
24
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (12, '16438 Herman Pine', 'New Terrillport', '684', 'Arkansas', 'USA', NULL);
25
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (13, '47831 Martin Islands', 'Port Lilyan', '235', 'RhodeIsland', 'USA', NULL);
26
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (14, '995 Weimann Gateway', 'Lake Ryann', '470', 'Kentucky', 'USA', NULL);
27
+ INSERT INTO Addresses (`address_id`, `address_content`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (15, '41632 Kerluke Field', 'East Pascale', '720', 'Texas', 'USA', NULL);
28
+
29
+
30
+
31
+ CREATE TABLE `Products` (
32
+ `product_id` INTEGER PRIMARY KEY,
33
+ `product_details` VARCHAR(255)
34
+ );
35
+ INSERT INTO Products (`product_id`, `product_details`) VALUES (1, 'Americano');
36
+ INSERT INTO Products (`product_id`, `product_details`) VALUES (2, 'Dove Chocolate');
37
+ INSERT INTO Products (`product_id`, `product_details`) VALUES (3, 'Latte');
38
+
39
+
40
+ CREATE TABLE `Customers` (
41
+ `customer_id` INTEGER PRIMARY KEY,
42
+ `payment_method` VARCHAR(15) NOT NULL,
43
+ `customer_name` VARCHAR(80),
44
+ `date_became_customer` DATETIME,
45
+ `other_customer_details` VARCHAR(255)
46
+ );
47
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (1, 'Cash', 'Dr. Julia Wuckert MD', '2018-03-01 23:20:10', NULL);
48
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (2, 'Cheque', 'Tillman Ernser', '2018-02-28 11:37:44', NULL);
49
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (3, 'Credit Card', 'Rodrick Heaney', '2018-03-09 17:41:58', NULL);
50
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (4, 'Credit Card', 'Prof. Alexzander Hamill', '2018-02-24 00:20:18', 'VIP');
51
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (5, 'Cheque', 'Prof. Reyes Berge II', '2018-03-07 18:05:11', NULL);
52
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (6, 'Cash', 'Maudie Kertzmann', '2018-02-26 11:57:47', NULL);
53
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (7, 'Credit Card', 'Mozell Morissette', '2018-02-25 13:15:04', 'VIP');
54
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (8, 'Credit Card', 'Eunice Morar', '2018-03-21 01:01:04', NULL);
55
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (9, 'Cheque', 'Devin Mills', '2018-03-05 16:52:51', NULL);
56
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (10, 'Cash', 'Kitty Padberg III', '2018-03-22 18:09:09', NULL);
57
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (11, 'Cheque', 'Salvatore Tillman', '2018-03-04 00:17:48', NULL);
58
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (12, 'Cheque', 'Clifford Pagac', '2018-02-24 10:24:23', NULL);
59
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (13, 'Credit Card', 'Miss Aliyah Witting', '2018-03-05 07:19:45', NULL);
60
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (14, 'Cheque', 'Alexane Kilback', '2018-03-08 01:17:31', NULL);
61
+ INSERT INTO Customers (`customer_id`, `payment_method`, `customer_name`, `date_became_customer`, `other_customer_details`) VALUES (15, 'Cash', 'Prof. Ibrahim Bashirian', '2018-03-15 02:54:27', NULL);
62
+
63
+
64
+ CREATE TABLE `Customer_Addresses` (
65
+ `customer_id` INTEGER NOT NULL,
66
+ `address_id` INTEGER NOT NULL,
67
+ `date_address_from` DATETIME NOT NULL,
68
+ `address_type` VARCHAR(15) NOT NULL,
69
+ `date_address_to` DATETIME,
70
+ FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
71
+ FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
72
+ );
73
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (2, 11, '1985-03-29 20:31:43', 'Billing', '1993-02-17 17:55:18');
74
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (13, 11, '2010-08-25 04:24:35', 'Billing', '1972-02-17 22:23:38');
75
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (2, 14, '2010-12-26 08:52:50', 'Residential', '1979-07-16 18:22:39');
76
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (15, 15, '1995-12-16 07:21:04', 'Billing', '1990-06-29 13:39:18');
77
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (6, 7, '1972-12-08 17:12:08', 'Residential', '2010-11-10 11:35:28');
78
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (10, 12, '1979-01-26 17:55:38', 'Residential', '1977-07-07 08:38:29');
79
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (1, 14, '1990-11-25 12:40:25', 'Residential', '1974-03-28 18:09:39');
80
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (10, 3, '1986-09-12 22:07:06', 'Residential', '2003-11-08 12:14:09');
81
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (14, 15, '2003-07-08 05:33:19', 'Residential', '2010-05-08 10:00:17');
82
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (13, 6, '2010-02-25 11:15:16', 'Residential', '1977-05-17 23:47:09');
83
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (12, 7, '2013-01-29 23:14:00', 'Residential', '2008-04-30 00:20:58');
84
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (4, 5, '2005-06-22 09:38:54', 'Billing', '1970-02-22 03:46:01');
85
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (8, 6, '2016-11-24 11:00:17', 'Billing', '1970-09-18 09:07:32');
86
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (5, 5, '1980-04-11 23:46:50', 'Billing', '1977-12-07 13:55:11');
87
+ INSERT INTO Customer_Addresses (`customer_id`, `address_id`, `date_address_from`, `address_type`, `date_address_to`) VALUES (11, 11, '1979-01-11 13:53:30', 'Residential', '1971-11-17 18:29:57');
88
+
89
+
90
+ CREATE TABLE `Customer_Contact_Channels` (
91
+ `customer_id` INTEGER NOT NULL,
92
+ `channel_code` VARCHAR(15) NOT NULL,
93
+ `active_from_date` DATETIME NOT NULL,
94
+ `active_to_date` DATETIME,
95
+ `contact_number` VARCHAR(50) NOT NULL,
96
+ FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
97
+ );
98
+ CREATE TABLE `Customer_Orders` (
99
+ `order_id` INTEGER PRIMARY KEY,
100
+ `customer_id` INTEGER NOT NULL,
101
+ `order_status` VARCHAR(15) NOT NULL,
102
+ `order_date` DATETIME,
103
+ `order_details` VARCHAR(255),
104
+ FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
105
+ );
106
+
107
+ CREATE TABLE `Order_Items` (
108
+ `order_id` INTEGER NOT NULL,
109
+ `product_id` INTEGER NOT NULL,
110
+ `order_quantity` VARCHAR(15),
111
+ FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
112
+ FOREIGN KEY (`order_id` ) REFERENCES `Customer_Orders`(`order_id` )
113
+ );
114
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (9, 'Email', '2017-12-07 18:18:15', '2018-03-23 13:37:14', '940.035.6435x0225');
115
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (2, 'Email', '2017-04-07 04:51:41', '2018-03-23 01:30:52', '189.449.8326x7607');
116
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (9, 'Email', '2017-05-25 16:08:45', '2018-03-13 07:32:25', '958-653-2640');
117
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (2, 'Email', '2018-01-05 21:42:56', '2018-03-15 14:58:13', '1-968-863-4947x96956');
118
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (4, 'Cell', '2017-08-07 08:07:10', '2018-03-02 17:44:49', '(165)527-5756x2419');
119
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (2, 'Cell', '2017-09-21 12:41:56', '2018-03-08 19:28:16', '1-077-864-0102');
120
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (3, 'Handheld', '2017-05-11 12:32:16', '2018-03-20 14:35:34', '06068550461');
121
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (14, 'Handheld', '2017-05-23 15:20:20', '2018-03-15 02:34:01', '542.983.0224');
122
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (13, 'Handheld', '2017-08-26 15:16:44', '2018-03-16 14:00:15', '(379)834-0867x267');
123
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (6, 'Handheld', '2017-07-01 17:59:48', '2018-02-25 22:20:55', '(620)266-6990x8590');
124
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (10, 'Fax', '2017-06-21 06:41:19', '2018-03-15 06:00:34', '(068)656-5276x84466');
125
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (13, 'Fax', '2017-10-29 04:16:39', '2018-03-08 17:19:29', '496-074-8589x5477');
126
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (15, 'Handheld', '2017-09-08 14:00:01', '2018-03-04 13:35:57', '1-687-190-8968x63811');
127
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (2, 'Handheld', '2018-03-01 10:17:18', '2018-03-20 14:01:12', '118.523.6764x57405');
128
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (5, 'Handheld', '2017-11-14 16:16:02', '2018-03-02 03:22:26', '445.924.9417');
129
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (9, 'Mobile', '2017-05-25 20:36:21', '2018-02-24 00:57:39', '(155)830-6182');
130
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (3, 'Handheld', '2017-09-11 05:05:47', '2018-03-14 14:56:28', '1-453-027-1291');
131
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (9, 'Handheld', '2018-01-02 18:37:48', '2018-03-10 05:10:35', '026.019.5981x72518');
132
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (10, 'Cell', '2017-12-06 15:25:33', '2018-03-19 06:34:34', '495-168-9662');
133
+ INSERT INTO Customer_Contact_Channels (`customer_id`, `channel_code`, `active_from_date`, `active_to_date`, `contact_number`) VALUES (14, 'Cell', '2017-10-17 11:46:37', '2018-03-08 20:07:20', '846.043.4809x0426');
134
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (1, 15, 'Cancelled', '2018-03-21 11:20:46', NULL);
135
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (2, 3, 'Cancelled', '2018-03-05 06:35:33', NULL);
136
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (3, 5, 'Delivered', '2018-03-04 07:16:22', 'Second time');
137
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (4, 12, 'Cancelled', '2018-02-28 15:46:06', NULL);
138
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (5, 12, 'Delivered', '2018-03-08 15:30:24', NULL);
139
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (6, 5, 'Cancelled', '2018-03-10 06:12:51', NULL);
140
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (7, 10, 'Cancelled', '2018-03-23 04:39:50', 'Second time');
141
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (8, 3, 'Cancelled', '2018-03-17 02:51:37', NULL);
142
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (9, 8, 'Cancelled', '2018-03-23 06:25:41', NULL);
143
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (10, 12, 'Cancelled', '2018-03-17 07:13:53', NULL);
144
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (11, 8, 'Cancelled', '2018-03-19 18:05:50', 'Second time');
145
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (12, 10, 'Delivered', '2018-03-16 03:16:57', 'Second time');
146
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (13, 4, 'Delivered', '2018-03-22 14:57:30', NULL);
147
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (14, 11, 'Cancelled', '2018-02-24 13:18:49', 'Second time');
148
+ INSERT INTO Customer_Orders (`order_id`, `customer_id`, `order_status`, `order_date`, `order_details`) VALUES (15, 10, 'Delivered', '2018-03-06 12:31:35', NULL);
149
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (14, 2, '5');
150
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (5, 2, '9');
151
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (14, 3, '2');
152
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (2, 2, '9');
153
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (13, 1, '9');
154
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (10, 1, '5');
155
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (10, 3, '6');
156
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (7, 2, '9');
157
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (14, 3, '8');
158
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (10, 2, '5');
159
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (10, 2, '9');
160
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (11, 2, '1');
161
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (10, 3, '6');
162
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (8, 1, '7');
163
+ INSERT INTO Order_Items (`order_id`, `product_id`, `order_quantity`) VALUES (8, 2, '5');
database/e_government/schema.sql ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Addresses` (
3
+ `address_id` INTEGER PRIMARY KEY,
4
+ `line_1_number_building` VARCHAR(80),
5
+ `town_city` VARCHAR(50),
6
+ `zip_postcode` VARCHAR(20),
7
+ `state_province_county` VARCHAR(50),
8
+ `country` VARCHAR(50)
9
+ );
10
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (1, '25518 Ortiz Centers', 'West Stacy', '193', 'NorthCarolina', 'USA');
11
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (2, '033 Stracke Parkways', 'Lake Meaghan', '227', 'Colorado', 'USA');
12
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (3, '269 Flatley Port Suite 062', 'Breanneberg', '527', 'NewHampshire', 'USA');
13
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (4, '90928 Garret Mall', 'New Gabe', '993', 'Missouri', 'USA');
14
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (5, '0399 Colby Extensions', 'Carrollland', '250', 'Kentucky', 'USA');
15
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (6, '538 Schaefer Highway Apt. 472', 'East Lamonttown', '202', 'Louisiana', 'USA');
16
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (7, '34580 Mireille Crescent Suite 776', 'Cletusbury', '215', 'Georgia', 'USA');
17
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (8, '6862 Kaitlyn Knolls Suite 309', 'New Katlyn', '021', 'Pennsylvania', 'USA');
18
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (9, '90236 Kunze Pass', 'Dangelohaven', '259', 'Louisiana', 'USA');
19
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (10, '51124 Marquardt Forks', 'Robertsberg', '023', 'NewYork', 'USA');
20
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (11, '3986 Bergstrom Stravenue', 'Lake Taryn', '332', 'Michigan', 'USA');
21
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (12, '43686 Kihn Corner', 'Feilmouth', '460', 'Vermont', 'USA');
22
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (13, '29446 Hauck Ridge', 'Lake Gertrudeton', '603', 'Montana', 'USA');
23
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (14, '326 Emile Turnpike Suite 964', 'East Clair', '515', 'Georgia', 'USA');
24
+ INSERT INTO Addresses (`address_id`, `line_1_number_building`, `town_city`, `zip_postcode`, `state_province_county`, `country`) VALUES (15, '266 Feeney Falls', 'West Brandynland', '320', 'Arkansas', 'USA');
25
+
26
+
27
+ CREATE TABLE `Services` (
28
+ `service_id` INTEGER PRIMARY KEY,
29
+ `service_type_code` VARCHAR(15) NOT NULL,
30
+ `service_name` VARCHAR(80),
31
+ `service_descriptio` VARCHAR(255)
32
+ );
33
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (1, 'Education', 'Education', 'Education');
34
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (2, 'Welfare', 'Health', 'Welfare');
35
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (3, 'Education', 'Education', 'Health');
36
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (4, 'Welfare', 'Education', 'Education');
37
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (5, 'Education', 'Education', 'Health');
38
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (6, 'Welfare', 'Welfare', 'Health');
39
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (7, 'Welfare', 'Welfare', 'Welfare');
40
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (8, 'Education', 'Education', 'Welfare');
41
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (9, 'Education', 'Health', 'Education');
42
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (10, 'Education', 'Health', 'Welfare');
43
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (11, 'Welfare', 'Education', 'Health');
44
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (12, 'Education', 'Education', 'Health');
45
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (13, 'Health', 'Welfare', 'Education');
46
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (14, 'Education', 'Education', 'Health');
47
+ INSERT INTO Services (`service_id`, `service_type_code`, `service_name`, `service_descriptio`) VALUES (15, 'Welfare', 'Health', 'Education');
48
+
49
+
50
+ CREATE TABLE `Forms` (
51
+ `form_id` INTEGER PRIMARY KEY,
52
+ `form_type_code` VARCHAR(15) NOT NULL,
53
+ `service_id` INTEGER,
54
+ `form_number` VARCHAR(50),
55
+ `form_name` VARCHAR(80),
56
+ `form_description` VARCHAR(255),
57
+ FOREIGN KEY (`service_id` ) REFERENCES `Services`(`service_id` )
58
+ );
59
+
60
+
61
+ INSERT INTO Forms (`form_id`, `form_type_code`, `service_id`, `form_number`, `form_name`, `form_description`) VALUES (1, 'Basic', 13, '8069', 'SSN Application', 'Form for SSN Application');
62
+ INSERT INTO Forms (`form_id`, `form_type_code`, `service_id`, `form_number`, `form_name`, `form_description`) VALUES (2, 'Complex', 9, '2675', 'Marriage Certificate', 'Marriage Certificate');
63
+ INSERT INTO Forms (`form_id`, `form_type_code`, `service_id`, `form_number`, `form_name`, `form_description`) VALUES (3, 'Complex', 2, '9837', 'Divorce Certificate', 'Divorce Certificate');
64
+ INSERT INTO Forms (`form_id`, `form_type_code`, `service_id`, `form_number`, `form_name`, `form_description`) VALUES (4, 'Complex', 14, '9173', 'Moving Form', 'Form for moving house');
65
+ INSERT INTO Forms (`form_id`, `form_type_code`, `service_id`, `form_number`, `form_name`, `form_description`) VALUES (5, 'Basic', 3, '6673', 'Account Application', 'Form for Account Application');
66
+ INSERT INTO Forms (`form_id`, `form_type_code`, `service_id`, `form_number`, `form_name`, `form_description`) VALUES (6, 'Complex', 7, '9130', 'Property Change', 'Form for Property Change');
67
+
68
+
69
+ CREATE TABLE `Individuals` (
70
+ `individual_id` INTEGER PRIMARY KEY,
71
+ `individual_first_name` VARCHAR(80),
72
+ `individual_middle_name` VARCHAR(80),
73
+ `inidividual_phone` VARCHAR(80),
74
+ `individual_email` VARCHAR(80),
75
+ `individual_address` VARCHAR(255),
76
+ `individual_last_name` VARCHAR(80)
77
+ );
78
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (1, 'Oscar', 'Hosea', '1-925-696-5232', 'amie.okuneva@example.org', '6956 Lia Plaza', 'Maggio');
79
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (2, 'Geovanny', 'Antonia', '075.012.6775x409', 'jamey.effertz@example.net', '69578 Baylee Prairie', 'Kerluke');
80
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (3, 'Casper', 'Mitchell', '1-818-062-2837', 'brandon.hermiston@example.com', '4555 Hane Orchard', 'Kutch');
81
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (4, 'Guy', 'Erick', '1-014-109-1968x40778', 'reinger.leola@example.net', '919 Cummerata Burgs Apt. 063', 'Wunsch');
82
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (5, 'Matteo', 'Rene', '634.660.8469', 'strosin.conor@example.org', '13223 Torphy Point', 'Schuster');
83
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (6, 'Nella', 'Tommie', '892.154.8492', 'austyn.effertz@example.org', '640 Johns Branch', 'Kertzmann');
84
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (7, 'Jeffery', 'Alberto', '317.382.4425x7924', 'august78@example.net', '384 Carter Flat Suite 896', 'Jacobs');
85
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (8, 'Shany', 'Colleen', '(030)939-8437x6141', 'mbahringer@example.com', '407 Sofia Knoll Suite 591', 'D''Amore');
86
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (9, 'Allene', 'Erwin', '1-797-739-0925', 'autumn.fisher@example.net', '3889 Theodore Radial Suite 795', 'Rutherford');
87
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (10, 'Lafayette', 'Raoul', '396.348.9925x9122', 'hickle.ewell@example.com', '3203 Hermann Port Apt. 429', 'Rau');
88
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (11, 'Daniella', 'Jamel', '(121)788-2928', 'ericka97@example.net', '4643 Ismael Pines Apt. 899', 'Rogahn');
89
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (12, 'Daron', 'Howard', '+94(0)3793557310', 'allison.lemke@example.org', '104 Bernier Loop', 'Hand');
90
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (13, 'Ressie', 'Alysson', '1-727-057-0382x999', 'delpha81@example.com', '5114 Jakubowski Port Apt. 758', 'Bradtke');
91
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (14, 'Katarina', 'Lacey', '(348)944-9700', 'zlehner@example.net', '16688 Powlowski Views Apt. 341', 'Dooley');
92
+ INSERT INTO Individuals (`individual_id`, `individual_first_name`, `individual_middle_name`, `inidividual_phone`, `individual_email`, `individual_address`, `individual_last_name`) VALUES (15, 'Jaylen', 'Jewell', '(468)679-4017', 'shanahan.julien@example.net', '06409 Beatty Glen Suite 000', 'O''Conner');
93
+
94
+
95
+ CREATE TABLE `Organizations` (
96
+ `organization_id` INTEGER PRIMARY KEY,
97
+ `date_formed` DATETIME,
98
+ `organization_name` VARCHAR(255),
99
+ `uk_vat_number` VARCHAR(20)
100
+ );
101
+ INSERT INTO Organizations (`organization_id`, `date_formed`, `organization_name`, `uk_vat_number`) VALUES (1, '2016-08-24 23:52:48', 'Labour Party', '2157');
102
+ INSERT INTO Organizations (`organization_id`, `date_formed`, `organization_name`, `uk_vat_number`) VALUES (2, '2016-10-01 12:42:01', 'Plaid Cymru', '7459');
103
+ INSERT INTO Organizations (`organization_id`, `date_formed`, `organization_name`, `uk_vat_number`) VALUES (3, '2016-10-09 07:22:53', 'Conservative', '1211');
104
+ INSERT INTO Organizations (`organization_id`, `date_formed`, `organization_name`, `uk_vat_number`) VALUES (4, '2017-04-06 23:59:16', 'Liberal Democrats', '7237');
105
+ INSERT INTO Organizations (`organization_id`, `date_formed`, `organization_name`, `uk_vat_number`) VALUES (5, '2016-07-28 01:45:10', 'Green Party', '4271');
106
+
107
+
108
+ CREATE TABLE `Parties` (
109
+ `party_id` INTEGER PRIMARY KEY,
110
+ `payment_method_code` VARCHAR(15) NOT NULL,
111
+ `party_phone` VARCHAR(80),
112
+ `party_email` VARCHAR(80)
113
+ );
114
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (1, 'Cheque', '05374656172', 'enrico09@example.com');
115
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (2, 'Credit Card', '1-525-947-7867x51521', 'brakus.aliya@example.com');
116
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (3, 'Cheque', '1-606-232-3728x3568', 'frida57@example.org');
117
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (4, 'Cash', '019-302-5166', 'wuckert.misty@example.com');
118
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (5, 'Cheque', '529-074-5348', 'alanna.boehm@example.net');
119
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (6, 'Credit Card', '1-950-874-1693x65923', 'daniel.charity@example.net');
120
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (7, 'Direct Debit', '112-477-4433x137', 'lucinda83@example.org');
121
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (8, 'Cash', '(919)169-1514x55820', 'erick.mills@example.com');
122
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (9, 'Cash', '04177934231', 'evie97@example.org');
123
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (10, 'Credit Card', '(211)528-0733x8063', 'hilll.elyssa@example.net');
124
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (11, 'Credit Card', '1-985-957-5462', 'jamir.hyatt@example.net');
125
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (12, 'Cheque', '1-386-339-9244', 'eden67@example.net');
126
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (13, 'Direct Debit', '186-726-9855', 'ora.hyatt@example.net');
127
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (14, 'Cash', '971-607-7001x08626', 'rhauck@example.org');
128
+ INSERT INTO Parties (`party_id`, `payment_method_code`, `party_phone`, `party_email`) VALUES (15, 'Cash', '231.232.0099', 'noe.ziemann@example.org');
129
+
130
+
131
+ CREATE TABLE `Organization_Contact_Individuals` (
132
+ `individual_id` INTEGER NOT NULL,
133
+ `organization_id` INTEGER NOT NULL,
134
+ `date_contact_from` DATETIME NOT NULL,
135
+ `date_contact_to` DATETIME,
136
+ PRIMARY KEY (`individual_id`,`organization_id` ),
137
+ FOREIGN KEY (`organization_id` ) REFERENCES `Organizations`(`organization_id` ),
138
+ FOREIGN KEY (`individual_id` ) REFERENCES `Individuals`(`individual_id` )
139
+ );
140
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (13, 1, '2016-08-16 22:09:11', '2018-03-25 10:27:18');
141
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (11, 1, '2017-03-02 00:00:16', '2018-03-06 05:39:43');
142
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (10, 3, '2016-08-23 03:24:24', '2018-03-12 07:55:28');
143
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (10, 4, '2017-08-08 12:05:25', '2018-03-04 09:30:20');
144
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (13, 3, '2016-04-21 03:55:35', '2018-03-06 21:22:49');
145
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (5, 4, '2016-08-27 16:55:59', '2018-03-18 05:47:36');
146
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (9, 1, '2017-01-06 09:38:54', '2018-02-27 09:20:42');
147
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (11, 5, '2017-09-14 08:24:22', '2018-03-24 16:54:36');
148
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (13, 2, '2016-09-16 13:53:24', '2018-03-18 16:33:16');
149
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (6, 3, '2017-05-24 11:38:02', '2018-03-24 03:43:00');
150
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (6, 5, '2016-05-15 13:16:35', '2018-03-05 19:29:24');
151
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (7, 2, '2016-11-24 03:57:30', '2018-03-07 16:40:29');
152
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (14, 5, '2017-02-19 08:51:41', '2018-03-23 22:06:48');
153
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (9, 2, '2016-04-30 14:39:31', '2018-03-20 00:33:08');
154
+ INSERT INTO Organization_Contact_Individuals (`individual_id`, `organization_id`, `date_contact_from`, `date_contact_to`) VALUES (8, 3, '2016-07-26 09:08:15', '2018-03-02 03:50:51');
155
+
156
+
157
+
158
+ CREATE TABLE `Party_Addresses` (
159
+ `party_id` INTEGER NOT NULL,
160
+ `address_id` INTEGER NOT NULL,
161
+ `date_address_from` DATETIME NOT NULL,
162
+ `address_type_code` VARCHAR(15) NOT NULL,
163
+ `date_address_to` DATETIME,
164
+ PRIMARY KEY (`party_id`, `address_id`),
165
+ FOREIGN KEY (`address_id` ) REFERENCES `Addresses`(`address_id` ),
166
+ FOREIGN KEY (`party_id` ) REFERENCES `Parties`(`party_id` )
167
+ );
168
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (10, 8, '2016-04-08 22:40:02', 'Residence', '2018-02-28 23:14:41');
169
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (15, 5, '2016-05-20 23:22:06', 'Billing', '2018-01-29 16:48:01');
170
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (4, 4, '2016-05-14 15:13:30', 'Delivery', '2018-02-25 19:39:16');
171
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (4, 10, '2017-02-21 12:12:50', 'Residence', '2018-03-11 12:12:52');
172
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (5, 10, '2016-04-04 03:57:02', 'Billing', '2018-02-11 06:11:11');
173
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (11, 2, '2016-07-21 08:39:50', 'Billing', '2018-03-03 22:17:09');
174
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (3, 2, '2016-06-09 00:48:07', 'Billing', '2018-03-11 00:08:16');
175
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (5, 7, '2016-09-05 11:53:36', 'Billing', '2018-03-07 13:28:44');
176
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (5, 4, '2016-05-24 08:11:04', 'Residence', '2018-03-04 08:34:45');
177
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (8, 7, '2017-02-07 02:51:33', 'Residence', '2018-02-27 09:21:41');
178
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (15, 2, '2016-09-23 19:59:54', 'Billing', '2018-03-01 13:51:27');
179
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (10, 1, '2016-11-02 02:06:07', 'Delivery', '2018-02-02 00:37:45');
180
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (11, 5, '2017-01-07 12:02:39', 'Residence', '2018-02-09 08:47:26');
181
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (6, 9, '2016-12-21 03:54:15', 'Delivery', '2018-02-25 07:34:22');
182
+ INSERT INTO Party_Addresses (`party_id`, `address_id`, `date_address_from`, `address_type_code`, `date_address_to`) VALUES (5, 13, '2016-04-15 03:54:06', 'Billing', '2018-03-23 17:52:47');
183
+
184
+
185
+ CREATE TABLE `Party_Forms` (
186
+ `party_id` INTEGER NOT NULL,
187
+ `form_id` INTEGER NOT NULL,
188
+ `date_completion_started` DATETIME NOT NULL,
189
+ `form_status_code` VARCHAR(15) NOT NULL,
190
+ `date_fully_completed` DATETIME,
191
+ PRIMARY KEY (`party_id`, `form_id`),
192
+ FOREIGN KEY (`party_id` ) REFERENCES `Parties`(`party_id` ),
193
+ FOREIGN KEY (`form_id` ) REFERENCES `Forms`(`form_id` )
194
+ );
195
+ CREATE TABLE `Party_Services` (
196
+ `booking_id` INTEGER NOT NULL ,
197
+ `customer_id` INTEGER NOT NULL,
198
+ `service_id` INTEGER NOT NULL,
199
+ `service_datetime` DATETIME NOT NULL,
200
+ `booking_made_date` DATETIME,
201
+ FOREIGN KEY (`service_id` ) REFERENCES `Services`(`service_id` ),
202
+ FOREIGN KEY (`customer_id` ) REFERENCES `Parties`(`party_id` )
203
+ );
204
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (2, 4, '2017-12-17 11:29:47', 'Completed', '2018-02-11 16:46:10');
205
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (15, 4, '2017-12-16 15:25:48', 'Partially Completed', '2018-02-18 16:09:04');
206
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (8, 5, '2017-12-09 21:26:11', 'Partially Completed', '2018-02-05 16:16:58');
207
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (6, 2, '2017-12-04 16:57:31', 'Partially Completed', '2018-01-28 22:29:07');
208
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (7, 2, '2017-11-30 18:49:37', 'Not Started', '2018-02-21 17:59:08');
209
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (11, 5, '2017-12-20 01:10:33', 'Not Started', '2018-02-10 14:07:46');
210
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (11, 3, '2017-12-18 01:32:49', 'Not Started', '2018-02-04 05:57:01');
211
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (8, 6, '2017-12-07 18:17:01', 'Work In Progress', '2018-02-15 23:09:42');
212
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (5, 6, '2017-12-05 19:48:45', 'Partially Completed', '2018-01-30 09:33:37');
213
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (7, 6, '2017-11-29 03:11:38', 'Not Started', '2018-02-01 10:26:47');
214
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (13, 3, '2017-12-04 18:20:10', 'Work In Progress', '2018-01-31 17:09:32');
215
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (2, 5, '2017-11-26 09:09:29', 'Not Started', '2018-02-09 09:49:09');
216
+ INSERT INTO Party_Forms (`party_id`, `form_id`, `date_completion_started`, `form_status_code`, `date_fully_completed`) VALUES (9, 2, '2017-11-27 11:57:03', 'Completed', '2018-02-15 13:15:25');
217
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (1, 10, 12, '2018-03-10 22:43:12', '2018-03-23 23:56:51');
218
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (2, 14, 11, '2018-03-05 15:06:23', '2018-03-25 11:08:29');
219
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (3, 4, 7, '2018-03-08 10:39:29', '2018-03-24 11:09:52');
220
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (4, 13, 3, '2018-03-08 23:52:44', '2018-03-25 12:56:09');
221
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (5, 2, 6, '2018-03-17 18:35:26', '2018-03-25 02:57:32');
222
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (6, 14, 6, '2018-03-17 08:16:30', '2018-03-24 06:50:50');
223
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (7, 6, 12, '2018-03-15 09:48:27', '2018-03-25 11:52:29');
224
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (8, 3, 6, '2018-03-01 18:31:32', '2018-03-24 07:55:33');
225
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (9, 5, 7, '2018-03-05 13:02:22', '2018-03-24 10:17:36');
226
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (10, 15, 13, '2018-02-28 16:29:04', '2018-03-24 09:20:46');
227
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (11, 13, 12, '2018-03-09 07:27:30', '2018-03-25 15:09:54');
228
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (12, 9, 1, '2018-03-19 14:38:29', '2018-03-24 18:05:07');
229
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (13, 3, 11, '2018-03-14 18:53:35', '2018-03-24 12:21:20');
230
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (14, 3, 5, '2018-03-18 17:53:02', '2018-03-24 22:12:30');
231
+ INSERT INTO Party_Services (`booking_id`, `customer_id`, `service_id`, `service_datetime`, `booking_made_date`) VALUES (15, 12, 6, '2018-03-01 04:41:58', '2018-03-25 16:47:47');
database/film_rank/schema.sql ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+
5
+
6
+ CREATE TABLE "film" (
7
+ "Film_ID" int,
8
+ "Title" text,
9
+ "Studio" text,
10
+ "Director" text,
11
+ "Gross_in_dollar" int,
12
+ PRIMARY KEY ("Film_ID")
13
+ );
14
+
15
+
16
+ INSERT INTO "film" VALUES (1,"ET the Extra-Terrestrial","Universal","Steven Spielberg","435110554");
17
+ INSERT INTO "film" VALUES (2,"Tootsie","Columbia","Sydney Pollack","177200000");
18
+ INSERT INTO "film" VALUES (3,"An Officer and a Gentleman","Paramount / Lorimar","Taylor Hackford","129795554");
19
+ INSERT INTO "film" VALUES (4,"Rocky III","United Artists","Sylvester Stallone","125049125");
20
+ INSERT INTO "film" VALUES (5,"Porky's","20th Century Fox","Bob Clark","109492484");
21
+ INSERT INTO "film" VALUES (6,"Star Trek II: The Wrath of Khan","Paramount","Nicholas Meyer","79912963");
22
+ INSERT INTO "film" VALUES (7,"48 Hrs","Paramount","Walter Hill","78868508");
23
+ INSERT INTO "film" VALUES (8,"Poltergeist","MGM","Tobe Hooper","76606280");
24
+ INSERT INTO "film" VALUES (9,"The Best Little Whorehouse in Texas","Universal / RKO","Colin Higgins","69701637");
25
+ INSERT INTO "film" VALUES (10,"Annie","Columbia / Rastar","John Huston","57059003");
26
+ INSERT INTO "film" VALUES (11,"The Verdict","20th Century Fox","Sidney Lumet","53977250");
27
+ INSERT INTO "film" VALUES (12,"Gandhi","Columbia","Richard Attenborough","52767889");
28
+ INSERT INTO "film" VALUES (13,"First Blood","Orion / Carolco","Ted Kotcheff","47212904");
29
+
30
+
31
+ CREATE TABLE "market" (
32
+ "Market_ID" int,
33
+ "Country" text,
34
+ "Number_cities" int,
35
+ PRIMARY KEY ("Market_ID")
36
+ );
37
+
38
+ INSERT INTO "market" VALUES (1,"Japan",209);
39
+ INSERT INTO "market" VALUES (2,"China",540);
40
+ INSERT INTO "market" VALUES (3,"USA",700);
41
+ INSERT INTO "market" VALUES (4,"Russia",231);
42
+ INSERT INTO "market" VALUES (5,"France",212);
43
+ INSERT INTO "market" VALUES (6,"Poland",453);
44
+
45
+
46
+ CREATE TABLE "film_market_estimation" (
47
+ "Estimation_ID" int,
48
+ "Low_Estimate" real,
49
+ "High_Estimate" real,
50
+ "Film_ID" int,
51
+ "Type" text,
52
+ "Market_ID" int,
53
+ "Year" int,
54
+ PRIMARY KEY ("Estimation_ID"),
55
+ FOREIGN KEY ("Film_ID") REFERENCES film("Film_ID"),
56
+ FOREIGN KEY ("Market_ID") REFERENCES market("Market_ID")
57
+ );
58
+
59
+
60
+ INSERT INTO "film_market_estimation" VALUES (1,"80000","80400",1,"Mass suicide murder",1,"1945");
61
+ INSERT INTO "film_market_estimation" VALUES (2,"8000","8000",2,"Mass suicide",2,"1944");
62
+ INSERT INTO "film_market_estimation" VALUES (3,"3000","80400",3,"Mass human sacrifice",3,"1487");
63
+ INSERT INTO "film_market_estimation" VALUES (4,"960","960",4,"Mass suicide",2,"1973");
64
+ INSERT INTO "film_market_estimation" VALUES (5,"913","913",4,"Mass suicide murder",1,"1978");
65
+ INSERT INTO "film_market_estimation" VALUES (6,"300","1000",4,"Mass suicide",1,"2000");
66
+ INSERT INTO "film_market_estimation" VALUES (7,"53","53",4,"Mass suicide",1,"1994");
67
+ INSERT INTO "film_market_estimation" VALUES (8,"39","39",1,"Mass suicide",2,"1997");
68
+ INSERT INTO "film_market_estimation" VALUES (9,"16","16",1,"Mass suicide",3,"1995");
69
+
70
+
database/gymnast/schema.sql ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "gymnast" (
4
+ "Gymnast_ID" int,
5
+ "Floor_Exercise_Points" real,
6
+ "Pommel_Horse_Points" real,
7
+ "Rings_Points" real,
8
+ "Vault_Points" real,
9
+ "Parallel_Bars_Points" real,
10
+ "Horizontal_Bar_Points" real,
11
+ "Total_Points" real,
12
+ PRIMARY KEY ("Gymnast_ID"),
13
+ FOREIGN KEY ("Gymnast_ID") REFERENCES "people"("People_ID")
14
+ );
15
+
16
+ CREATE TABLE "people" (
17
+ "People_ID" int,
18
+ "Name" text,
19
+ "Age" real,
20
+ "Height" real,
21
+ "Hometown" text,
22
+ PRIMARY KEY ("People_ID")
23
+ );
24
+
25
+
26
+ INSERT INTO "people" VALUES (1,"Paul Hamm","24","1.71","Santo Domingo");
27
+ INSERT INTO "people" VALUES (2,"Lorraine Súarez Carmona","21","1.75","Bonao");
28
+ INSERT INTO "people" VALUES (3,"Ashley Pérez Cabrera","19","1.70","Miami");
29
+ INSERT INTO "people" VALUES (4,"Elizabeth Quiñónez Aroyo","20","1.71","Santo Domingo");
30
+ INSERT INTO "people" VALUES (5,"Eve Tatiana Cruz Oviedo","19","1.72","Santo Domingo");
31
+ INSERT INTO "people" VALUES (6,"Nadia Caba Rodríguez","22","1.79","Santo Domingo");
32
+ INSERT INTO "people" VALUES (7,"Clary Sermina Delgado Cid","21","1.75","Santiago de los Caballeros");
33
+ INSERT INTO "people" VALUES (8,"Marina Castro Medina","20","1.76","Santo Domingo");
34
+ INSERT INTO "people" VALUES (9,"Rosa Clarissa Ortíz Melo","23","1.81","La Romana");
35
+ INSERT INTO "people" VALUES (10,"Endis de los Santos Álvarez","24","1.72","Los Alcarrizos");
36
+
37
+
38
+ INSERT INTO "gymnast" VALUES ("1","9.725","9.737","9.512","9.575","9.762","9.750","58.061");
39
+ INSERT INTO "gymnast" VALUES ("2","9.700","9.625","9.625","9.650","9.587","9.737","57.924");
40
+ INSERT INTO "gymnast" VALUES ("4","8.987","9.750","9.750","9.650","9.787","9.725","57.649");
41
+ INSERT INTO "gymnast" VALUES ("6","9.762","9.325","9.475","9.762","9.562","9.550","57.436");
42
+ INSERT INTO "gymnast" VALUES ("7","9.687","9.675","9.300","9.537","9.725","9.500","57.424");
43
+ INSERT INTO "gymnast" VALUES ("8","9.650","9.712","9.487","9.637","9.500","9.412","57.398");
44
+ INSERT INTO "gymnast" VALUES ("10","9.412","9.525","9.712","9.550","9.625","9.550","57.374");
45
+
database/inn_1/change_date.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ month_to_name={
3
+ 'JAN' : "01",
4
+ 'FEB' : "02",
5
+ 'MAR' : "03",
6
+ 'APR' : "04",
7
+ 'MAY' : "05",
8
+ 'JUN' : "06",
9
+ 'JUL' : "07",
10
+ 'AUG' : "08",
11
+ 'SEP' : "09",
12
+ 'OCT' : "10",
13
+ 'NOV' : "11",
14
+ 'DEC' : "12"
15
+ };
16
+ df = pd.read_csv('./data_csv/Reservations.csv')
17
+ def change_date(x):
18
+ x = x.split("-")
19
+ x[2] = "20"+x[2][:len(x[2])-1]
20
+ x[1] = month_to_name[x[1]]
21
+ x = "-".join([x[2],x[1],x[0][1:]])
22
+ print x
23
+ return x
24
+ df["CheckIn"] = df["CheckIn"].apply(change_date)
25
+ df["CheckOut"] = df["CheckOut"].apply(change_date)
26
+ df.to_csv('./data_csv/Reservations_t.csv', encoding='utf-8', index=False)
database/inn_1/inn_1.sqlite ADDED
Binary file (53.2 kB). View file
 
database/inn_1/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ http://users.csc.calpoly.edu/~dekhtyar/365-Spring2017/index.html
database/inn_1/q.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Find all modern rooms with a base price below $160 and two beds. Report room names and codes
2
+
3
+ Find all rooms occupied on February 6, 2010. Report full name of the room, the check-in and checkout dates of the reservation.
4
+
5
+ For each reservation that starts on December 31, 2010 report the room name, nightly rate, number of nights spent and the total amount of money paid.
6
+
7
+ Find the names of all people1 staying at the inn at the same time as HERBERT FRYDAY.
8
+
9
+ Find the number of August reservations (both checkin and checkout dates are in August) where two adults are staying with two children.
10
+
11
+ Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations
12
+
13
+ Find the room that has been occupied the largest number of days based on the reservations. Report the room name
14
+
15
+ For each room, report the most expensive reservation. Report the full room name, dates of stay
database/insurance_fnol/schema.sql ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE Customers (
4
+ Customer_ID INTEGER NOT NULL,
5
+ Customer_name VARCHAR(40),
6
+ PRIMARY KEY (Customer_ID)
7
+ );
8
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (194, 'America Jaskolski');
9
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (214, 'Ellsworth Paucek');
10
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (256, 'Mrs. Hanna Willms');
11
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (562, 'Dr. Diana Rath');
12
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (582, 'Selena Gerhold');
13
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (641, 'Dayana Robel');
14
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (682, 'Mr. Edwardo Blanda I');
15
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (756, 'Mr. Randal Lynch III');
16
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (805, 'Mrs. Liza Heller V');
17
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (826, 'Mrs. Lilly Graham III');
18
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (882, 'Miss Felicita Reichel');
19
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (892, 'Sydnie Friesen');
20
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (923, 'David Ross');
21
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (956, 'Cai Zhang');
22
+ INSERT INTO `Customers` (`Customer_ID`, `Customer_name`) VALUES (996, 'Jay Chou');
23
+
24
+ CREATE TABLE Services (
25
+ Service_ID INTEGER NOT NULL,
26
+ Service_name VARCHAR(40),
27
+ PRIMARY KEY (Service_ID)
28
+ );
29
+
30
+ INSERT INTO `Services` (`Service_ID`, `Service_name`) VALUES (1, 'New policy application');
31
+ INSERT INTO `Services` (`Service_ID`, `Service_name`) VALUES (4, 'Close a policy');
32
+ INSERT INTO `Services` (`Service_ID`, `Service_name`) VALUES (6, 'Change a policy');
33
+ INSERT INTO `Services` (`Service_ID`, `Service_name`) VALUES (9, 'Upgrade a policy');
34
+
35
+ CREATE TABLE Available_Policies (
36
+ Policy_ID INTEGER NOT NULL,
37
+ policy_type_code CHAR(15),
38
+ Customer_Phone VARCHAR(255),
39
+ PRIMARY KEY (Policy_ID),
40
+ UNIQUE (Policy_ID)
41
+ );
42
+
43
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (246, 'Life Insurance', '+16(2)5838999222');
44
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (257, 'Property Insurance', '242.763.9214');
45
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (300, 'Property Insurance', '1-416-503-7735x94204');
46
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (301, 'Property Insurance', '(777)537-7792');
47
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (346, 'Mortgage Insurance', '1-446-940-9907x257');
48
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (366, 'Mortgage Insurance', '(379)862-8274x12620');
49
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (472, 'Mortgage Insurance', '+85(6)1302858396');
50
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (583, 'Travel Insurance', '1-797-927-3585x9321');
51
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (586, 'Life Insurance', '991.642.6485x822');
52
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (630, 'Property Insurance', '813.178.8211x557');
53
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (636, 'Life Insurance', '889-572-0609x552');
54
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (751, 'Life Insurance', '1-138-841-3073');
55
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (879, 'Mortgage Insurance', '1-381-132-0127x3801');
56
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (927, 'Mortgage Insurance', '00481937923');
57
+ INSERT INTO `Available_Policies` (`Policy_ID`, `policy_type_code`, `Customer_Phone`) VALUES (993, 'Property Insurance', '405.090.8654x021');
58
+ CREATE TABLE Customers_Policies (
59
+ Customer_ID INTEGER NOT NULL,
60
+ Policy_ID INTEGER NOT NULL,
61
+ Date_Opened DATE,
62
+ Date_Closed DATE,
63
+ PRIMARY KEY (Customer_ID, Policy_ID),
64
+ FOREIGN KEY (Customer_ID) REFERENCES Customers (Customer_ID),
65
+ FOREIGN KEY (Policy_ID) REFERENCES Available_Policies (Policy_ID)
66
+ );
67
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (214, 257, '2016-11-19', '2018-03-04');
68
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (214, 301, '2016-04-12', '2018-02-07');
69
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (256, 583, '2016-07-22', '2018-02-20');
70
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (562, 346, '2017-01-09', '2018-03-08');
71
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (562, 583, '2016-06-24', '2018-02-22');
72
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (582, 586, '2016-04-11', '2018-03-17');
73
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (641, 366, '2016-07-10', '2018-02-24');
74
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (641, 472, '2016-07-07', '2018-03-10');
75
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (682, 583, '2016-11-01', '2018-03-03');
76
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (826, 630, '2016-11-18', '2018-02-13');
77
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (892, 927, '2017-01-08', '2018-02-25');
78
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (996, 366, '2016-10-31', '2018-03-19');
79
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (996, 879, '2017-01-05', '2018-02-20');
80
+ INSERT INTO `Customers_Policies` (`Customer_ID`, `Policy_ID`, `Date_Opened`, `Date_Closed`) VALUES (996, 993, '2016-07-03', '2018-03-20');
81
+
82
+ CREATE TABLE First_Notification_of_Loss (
83
+ FNOL_ID INTEGER NOT NULL,
84
+ Customer_ID INTEGER NOT NULL,
85
+ Policy_ID INTEGER NOT NULL,
86
+ Service_ID INTEGER NOT NULL,
87
+ PRIMARY KEY (FNOL_ID),
88
+ UNIQUE (FNOL_ID),
89
+ FOREIGN KEY (Service_ID) REFERENCES Services (Service_ID),
90
+ FOREIGN KEY (Customer_ID, Policy_ID) REFERENCES Customers_Policies (Customer_ID,Policy_ID)
91
+ );
92
+ INSERT INTO `First_Notification_of_Loss` (`FNOL_ID`, `Customer_ID`, `Policy_ID`, `Service_ID`) VALUES (532, 214, 257, 6);
93
+ INSERT INTO `First_Notification_of_Loss` (`FNOL_ID`, `Customer_ID`, `Policy_ID`, `Service_ID`) VALUES (1611, 996, 993, 9);
94
+ INSERT INTO `First_Notification_of_Loss` (`FNOL_ID`, `Customer_ID`, `Policy_ID`, `Service_ID`) VALUES (1722, 996, 879, 6);
95
+ INSERT INTO `First_Notification_of_Loss` (`FNOL_ID`, `Customer_ID`, `Policy_ID`, `Service_ID`) VALUES (2543, 996, 366, 1);
96
+ INSERT INTO `First_Notification_of_Loss` (`FNOL_ID`, `Customer_ID`, `Policy_ID`, `Service_ID`) VALUES (4226, 892, 927, 1);
97
+ INSERT INTO `First_Notification_of_Loss` (`FNOL_ID`, `Customer_ID`, `Policy_ID`, `Service_ID`) VALUES (4323, 826, 630, 4);
98
+ INSERT INTO `First_Notification_of_Loss` (`FNOL_ID`, `Customer_ID`, `Policy_ID`, `Service_ID`) VALUES (4525, 582, 586, 1);
99
+
100
+ CREATE TABLE Claims (
101
+ Claim_ID INTEGER NOT NULL,
102
+ FNOL_ID INTEGER NOT NULL,
103
+ Effective_Date DATE,
104
+ PRIMARY KEY (Claim_ID),
105
+ UNIQUE (Claim_ID),
106
+ FOREIGN KEY (FNOL_ID) REFERENCES First_Notification_of_Loss (FNOL_ID)
107
+ );
108
+ CREATE TABLE Settlements (
109
+ Settlement_ID INTEGER NOT NULL,
110
+ Claim_ID INTEGER,
111
+ Effective_Date DATE,
112
+ Settlement_Amount REAL,
113
+ PRIMARY KEY (Settlement_ID),
114
+ UNIQUE (Settlement_ID),
115
+ FOREIGN KEY (Claim_ID) REFERENCES Claims (Claim_ID)
116
+ );
117
+
118
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (134, 1722, '1973-08-18');
119
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (145, 1611, '2014-10-19');
120
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (228, 532, '1975-05-07');
121
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (309, 2543, '1982-05-03');
122
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (311, 4226, '1992-02-09');
123
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (360, 4226, '2006-06-10');
124
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (428, 4226, '1992-01-05');
125
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (604, 4323, '2009-02-11');
126
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (641, 4525, '1985-03-24');
127
+ INSERT INTO `Claims` (`Claim_ID`, `FNOL_ID`, `Effective_Date`) VALUES (717, 4525, '1996-11-29');
128
+
129
+
130
+
131
+
132
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (161, 717, '2009-11-20', '6451.65');
133
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (176, 641, '1971-06-29', '1588.45');
134
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (205, 604, '1978-09-09', '9814.39');
135
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (208, 428, '2003-12-28', '8827.06');
136
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (393, 360, '2006-04-19', '8013.95');
137
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (543, 309, '1972-03-02', '2722.67');
138
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (544, 311, '1973-10-27', '9164.1');
139
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (604, 228, '2014-12-09', '2138.96');
140
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (616, 145, '1995-04-02', '3101.3');
141
+ INSERT INTO `Settlements` (`Settlement_ID`, `Claim_ID`, `Effective_Date`, `Settlement_Amount`) VALUES (628, 134, '2001-07-02', '1721.17');
database/real_estate_properties/schema.sql ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE `Ref_Feature_Types` (
4
+ `feature_type_code` VARCHAR(20) PRIMARY KEY,
5
+ `feature_type_name` VARCHAR(80)
6
+ );
7
+ CREATE TABLE `Ref_Property_Types` (
8
+ `property_type_code` VARCHAR(20) PRIMARY KEY,
9
+ `property_type_description` VARCHAR(80)
10
+ );
11
+
12
+ CREATE TABLE `Other_Available_Features` (
13
+ `feature_id` INTEGER PRIMARY KEY,
14
+ `feature_type_code` VARCHAR(20) NOT NULL,
15
+ `feature_name` VARCHAR(80),
16
+ `feature_description` VARCHAR(80),
17
+ FOREIGN KEY (`feature_type_code` ) REFERENCES `Ref_Feature_Types`(`feature_type_code` )
18
+ );
19
+
20
+ CREATE TABLE `Properties` (
21
+ `property_id` INTEGER PRIMARY KEY,
22
+ `property_type_code` VARCHAR(20) NOT NULL,
23
+ `date_on_market` DATETIME,
24
+ `date_sold` DATETIME,
25
+ `property_name` VARCHAR(80),
26
+ `property_address` VARCHAR(255),
27
+ `room_count` INTEGER,
28
+ `vendor_requested_price` DECIMAL(19,4),
29
+ `buyer_offered_price` DECIMAL(19,4),
30
+ `agreed_selling_price` DECIMAL(19,4),
31
+ `apt_feature_1` VARCHAR(255),
32
+ `apt_feature_2` VARCHAR(255),
33
+ `apt_feature_3` VARCHAR(255),
34
+ `fld_feature_1` VARCHAR(255),
35
+ `fld_feature_2` VARCHAR(255),
36
+ `fld_feature_3` VARCHAR(255),
37
+ `hse_feature_1` VARCHAR(255),
38
+ `hse_feature_2` VARCHAR(255),
39
+ `hse_feature_3` VARCHAR(255),
40
+ `oth_feature_1` VARCHAR(255),
41
+ `oth_feature_2` VARCHAR(255),
42
+ `oth_feature_3` VARCHAR(255),
43
+ `shp_feature_1` VARCHAR(255),
44
+ `shp_feature_2` VARCHAR(255),
45
+ `shp_feature_3` VARCHAR(255),
46
+ `other_property_details` VARCHAR(255),
47
+ FOREIGN KEY (`property_type_code` ) REFERENCES `Ref_Property_Types`(`property_type_code` )
48
+ );
49
+
50
+ CREATE TABLE `Other_Property_Features` (
51
+ `property_id` INTEGER NOT NULL,
52
+ `feature_id` INTEGER NOT NULL,
53
+ `property_feature_description` VARCHAR(80),
54
+ FOREIGN KEY (`feature_id` ) REFERENCES `Other_Available_Features`(`feature_id` ),
55
+ FOREIGN KEY (`property_id` ) REFERENCES `Properties`(`property_id` )
56
+ );
57
+
58
+
59
+ INSERT INTO Ref_Feature_Types (`feature_type_code`, `feature_type_name`) VALUES ('Amenity', 'Amenity, eg Pool.');
60
+ INSERT INTO Ref_Feature_Types (`feature_type_code`, `feature_type_name`) VALUES ('Security', 'Securiyt, eg Burglar Alarm.');
61
+ INSERT INTO Ref_Property_Types (`property_type_code`, `property_type_description`) VALUES ('House', 'House, Bungalow, etc.');
62
+ INSERT INTO Ref_Property_Types (`property_type_code`, `property_type_description`) VALUES ('Apartment', 'Apartment, Flat, Condo, etc.');
63
+ INSERT INTO Ref_Property_Types (`property_type_code`, `property_type_description`) VALUES ('Field', 'Field, Meadow.');
64
+ INSERT INTO Ref_Property_Types (`property_type_code`, `property_type_description`) VALUES ('Other', 'Other, to be determined.');
65
+ INSERT INTO Ref_Property_Types (`property_type_code`, `property_type_description`) VALUES ('Shop', 'Shop, Retail Outlet.');
66
+
67
+ INSERT INTO Other_Available_Features (`feature_id`, `feature_type_code`, `feature_name`, `feature_description`) VALUES (2, 'Amenity', 'AirCon', 'Air Conditioning.');
68
+ INSERT INTO Other_Available_Features (`feature_id`, `feature_type_code`, `feature_name`, `feature_description`) VALUES (3, 'Amenity', 'Pool', 'Swimming Pool.');
69
+ INSERT INTO Other_Available_Features (`feature_id`, `feature_type_code`, `feature_name`, `feature_description`) VALUES (4, 'Security', 'BurglarAlarm', 'Burglar Alarm');
70
+
71
+
72
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (1, 'House', '1991-06-21 23:52:10', '1979-05-13 16:58:06', 'park', '4745 Emerson Stravenue Suite 829
73
+ South Garret, IN 16772-5682', '7', '372652.2909', '1.6800', '4201.8000', 'aut', 'suscipit', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
74
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (2, 'House', '1990-05-25 23:01:51', '1990-11-14 19:16:38', 'the cole', '098 Tremaine Highway Suite 569
75
+ South Wilford, NJ 46587-3537', '1', '661536468.4429', '8.7122', '21769471.8328', 'est', 'est', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
76
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (3, 'Other', '1986-11-26 04:12:18', '1981-06-26 21:28:28', 'prism', '062 Micaela Court Apt. 707
77
+ Margretville, WV 51628-3617', '8', '1337.0000', '11375259.5020', '5.0000', 'ut', 'et', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
78
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (4, 'Field', '2017-09-14 15:49:23', '2003-02-27 18:17:11', 'riverside', '49578 Ayden Mountains
79
+ New Russellhaven, UT 46626', '6', '192374065.8000', '15.1700', '4514.8070', 'nesciunt', 'adipisci', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
80
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (5, 'Apartment', '2016-05-06 16:53:39', '2012-08-19 07:36:57', 'parc east', '2765 Schulist Stream
81
+ Lindmouth, UT 03391-3817', '5', '983.8596', '10.1067', '1.0012', 'quo', 'sequi', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
82
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (6, 'Shop', '1994-02-14 02:27:13', '1995-01-31 11:18:42', 'high line', '6837 Darien Views Apt. 475
83
+ South Maraview, KS 77770', '9', '2573.0000', '0.0000', '476919.3000', 'sed', 'culpa', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
84
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (7, 'Shop', '1996-09-16 22:04:27', '1998-09-15 05:26:22', 'avalon', '092 Paucek Highway Apt. 772
85
+ East Erika, IA 61358', '8', '150045.7568', '296733.0000', '2794972.2495', 'quos', 'est', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
86
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (8, 'Apartment', '1976-06-10 20:25:38', '2001-11-09 04:37:33', 'vogue', '24365 Ulices Run
87
+ Homenicktown, MD 88485-6198', '9', '13.4715', '0.0000', '0.0000', 'fuga', 'odio', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
88
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (9, 'Apartment', '1978-05-15 10:53:37', '1971-04-14 03:23:49', 'longacre', '107 Roob Courts
89
+ Erdmanburgh, IA 42926-0873', '5', '2219.6778', '3520911.5258', '3344706.5755', 'enim', 'sit', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
90
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (10, 'Apartment', '2003-12-25 16:13:19', '1997-01-07 19:52:45', 'renoir', '084 Lakin Vista Apt. 394
91
+ Fishertown, MA 16876', '9', '77172926.3000', '1.5509', '244353758.1824', 'consequatur', 'vero', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
92
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (11, 'Other', '1981-08-23 05:40:38', '1997-11-07 20:22:05', 'murray hill', '2088 Bashirian Fork Suite 337
93
+ Faustinoport, MT 16771-9320', '2', '6713620.9000', '13991131.4340', '170766.4720', 'et', 'est', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
94
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (12, 'Apartment', '2016-05-24 09:57:45', '1980-07-08 16:13:17', 'ten tower', '743 Ephraim Greens
95
+ Anniemouth, HI 47084-3853', '5', '305.0000', '2.0000', '456840888.1600', 'qui', 'autem', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
96
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (13, 'Other', '2000-08-07 06:59:14', '1973-02-24 02:56:06', 'chelsea', '60845 Else Highway Apt. 826
97
+ South Dougfort, CO 43200-4258', '2', '2198735.0950', '0.0000', '44132.4621', 'fuga', 'aut', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
98
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (14, 'Other', '1986-12-31 10:05:32', '1987-12-07 07:41:27', 'wall street', '1474 Dibbert Fields Suite 055
99
+ South Renee, IN 58286-3097', '7', '78.7208', '2449185.2000', '0.0000', 'et', 'eos', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
100
+ INSERT INTO Properties (`property_id`, `property_type_code`, `date_on_market`, `date_sold`, `property_name`, `property_address`, `room_count`, `vendor_requested_price`, `buyer_offered_price`, `agreed_selling_price`, `apt_feature_1`, `apt_feature_2`, `apt_feature_3`, `fld_feature_1`, `fld_feature_2`, `fld_feature_3`, `hse_feature_1`, `hse_feature_2`, `hse_feature_3`, `oth_feature_1`, `oth_feature_2`, `oth_feature_3`, `shp_feature_1`, `shp_feature_2`, `shp_feature_3`, `other_property_details`) VALUES (15, 'Apartment', '1993-08-04 10:49:04', '1984-02-01 19:54:54', 'parc coliseum', '986 Hagenes Drives
101
+ Draketon, UT 83411-3393', '3', '331.0000', '27537286.0000', '2574.0000', 'aut', 'iusto', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
102
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (15, 3, 'dolorem');
103
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (12, 4, 'earum');
104
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (6, 2, 'illo');
105
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (7, 2, 'hic');
106
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (6, 3, 'et');
107
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (14, 4, 'quo');
108
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (4, 3, 'odio');
109
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (1, 2, 'ad');
110
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (11, 4, 'vitae');
111
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (9, 3, 'quo');
112
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (6, 3, 'corrupti');
113
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (6, 3, 'doloribus');
114
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (13, 2, 'autem');
115
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (3, 2, 'cumque');
116
+ INSERT INTO Other_Property_Features (`property_id`, `feature_id`, `property_feature_description`) VALUES (14, 4, 'modi');
database/restaurant_1/restaurant_1.sqlite ADDED
Binary file (24.6 kB). View file
 
database/ship_mission/schema.sql ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "mission" (
4
+ "Mission_ID" int,
5
+ "Ship_ID" int,
6
+ "Code" text,
7
+ "Launched_Year" int,
8
+ "Location" text,
9
+ "Speed_knots" int,
10
+ "Fate" text,
11
+ PRIMARY KEY ("Mission_ID"),
12
+ FOREIGN KEY ("Ship_ID") REFERENCES `ship`("Ship_ID")
13
+ );
14
+
15
+ CREATE TABLE "ship" (
16
+ "Ship_ID" int,
17
+ "Name" text,
18
+ "Type" text,
19
+ "Nationality" text,
20
+ "Tonnage" int,
21
+ PRIMARY KEY ("Ship_ID")
22
+ );
23
+
24
+ INSERT INTO "ship" VALUES (1,"Corbridge","Cargo ship","United Kingdom","3687");
25
+ INSERT INTO "ship" VALUES (2,"Farringford","Battle ship","United States","3146");
26
+ INSERT INTO "ship" VALUES (3,"Dromonby","Cargo ship","United Kingdom","3627");
27
+ INSERT INTO "ship" VALUES (4,"Author","Cargo ship","United Kingdom","3496");
28
+ INSERT INTO "ship" VALUES (5,"Trader","Battle ship","United Kingdom","3608");
29
+ INSERT INTO "ship" VALUES (6,"Ariadne","Cargo ship","United States","3035");
30
+ INSERT INTO "ship" VALUES (7,"Appam","Battle ship","United Kingdom","7781");
31
+ INSERT INTO "ship" VALUES (8,"Clan McTavish","Cargo ship","United States","5816");
32
+
33
+
34
+ INSERT INTO "mission" VALUES (1,1,"VMV-1","1930","Germany","25","Decommissioned 1950");
35
+ INSERT INTO "mission" VALUES (2,2,"VMV-2","1930","Germany","25","Decommissioned 1950");
36
+ INSERT INTO "mission" VALUES (3,3,"VMV-3","1930","Helsinki , Finland","23","Lost (burned) 1931");
37
+ INSERT INTO "mission" VALUES (4,5,"VMV-4 Former: Sterling","1916","Norway","16","Retired 1939");
38
+ INSERT INTO "mission" VALUES (5,6,"VMV-5","1931","Uusikaupunki , Finland","23","Decommissioned 1959");
39
+ INSERT INTO "mission" VALUES (6,7,"VMV-6","1931","Uusikaupunki , Finland","23","Decommissioned 1960");
40
+ INSERT INTO "mission" VALUES (7,8,"VMV-7","1932","Turku , Finland","23","Lost (burned and sunk) 1933");
41
+
database/singer/schema.sql ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "singer" (
4
+ "Singer_ID" int,
5
+ "Name" text,
6
+ "Birth_Year" real,
7
+ "Net_Worth_Millions" real,
8
+ "Citizenship" text,
9
+ PRIMARY KEY ("Singer_ID")
10
+ );
11
+
12
+ CREATE TABLE "song" (
13
+ "Song_ID" int,
14
+ "Title" text,
15
+ "Singer_ID" int,
16
+ "Sales" real,
17
+ "Highest_Position" real,
18
+ PRIMARY KEY ("Song_ID"),
19
+ FOREIGN KEY ("Singer_ID") REFERENCES `singer`("Singer_ID")
20
+ );
21
+
22
+ INSERT INTO "singer" VALUES (1,"Liliane Bettencourt","1944","30.0","France");
23
+ INSERT INTO "singer" VALUES (2,"Christy Walton","1948","28.8","United States");
24
+ INSERT INTO "singer" VALUES (3,"Alice Walton","1949","26.3","United States");
25
+ INSERT INTO "singer" VALUES (4,"Iris Fontbona","1942","17.4","Chile");
26
+ INSERT INTO "singer" VALUES (5,"Jacqueline Mars","1940","17.8","United States");
27
+ INSERT INTO "singer" VALUES (6,"Gina Rinehart","1953","17","Australia");
28
+ INSERT INTO "singer" VALUES (7,"Susanne Klatten","1962","14.3","Germany");
29
+ INSERT INTO "singer" VALUES (8,"Abigail Johnson","1961","12.7","United States");
30
+
31
+ INSERT INTO "song" VALUES ("1","Do They Know It's Christmas",1,"1094000","1");
32
+ INSERT INTO "song" VALUES ("2","F**k It (I Don't Want You Back)",1,"552407","1");
33
+ INSERT INTO "song" VALUES ("3","Cha Cha Slide",2,"351421","1");
34
+ INSERT INTO "song" VALUES ("4","Call on Me",4,"335000","1");
35
+ INSERT INTO "song" VALUES ("5","Yeah",2,"300000","1");
36
+ INSERT INTO "song" VALUES ("6","All This Time",6,"292000","1");
37
+ INSERT INTO "song" VALUES ("7","Left Outside Alone",5,"275000","3");
38
+ INSERT INTO "song" VALUES ("8","Mysterious Girl",7,"261000","1");
39
+
database/student_assessment/schema.sql ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE Addresses (
4
+ address_id INTEGER NOT NULL,
5
+ line_1 VARCHAR(80),
6
+ line_2 VARCHAR(80),
7
+ city VARCHAR(50),
8
+ zip_postcode CHAR(20),
9
+ state_province_county VARCHAR(50),
10
+ country VARCHAR(50),
11
+ PRIMARY KEY (address_id)
12
+ );
13
+
14
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (5, '0900 Roderick Oval
15
+ New Albina, WA 19200-7914', 'Suite 096', 'Linnealand', '862', 'Montana', 'USA');
16
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (9, '966 Dach Ports Apt. 322
17
+ Lake Harmonyhaven, VA 65235', 'Apt. 163', 'South Minnie', '716', 'Texas', 'USA');
18
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (29, '28550 Broderick Underpass Suite 667
19
+ Zakaryhaven, WY 22945-1534', 'Apt. 419', 'North Trystanborough', '112', 'Vermont', 'USA');
20
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (30, '83706 Ana Trafficway Apt. 992
21
+ West Jarret, MI 01112', 'Apt. 884', 'Lake Kaley', '431', 'Washington', 'USA');
22
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (43, '69165 Beatty Station
23
+ Haleighstad, MS 55164', 'Suite 333', 'Stephaniemouth', '559', 'Massachusetts', 'USA');
24
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (45, '242 Pacocha Streets
25
+ East Isabellashire, ND 03506', 'Suite 370', 'O''Connellview', '514', 'NewMexico', 'USA');
26
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (55, '801 Modesto Island Suite 306
27
+ Lacyville, VT 34059', 'Suite 764', 'New Alta', '176', 'Mississippi', 'USA');
28
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (63, '0177 Fisher Dam
29
+ Berniershire, KS 00038-7574', 'Apt. 903', 'South Keenan', '613', 'Michigan', 'USA');
30
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (68, '09471 Hickle Light
31
+ Port Maxime, NJ 91550-5409', 'Suite 903', 'Hannahside', '354', 'Connecticut', 'USA');
32
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (73, '67831 Lavonne Lodge
33
+ Olsontown, DC 20894', 'Apt. 756', 'Alizeshire', '687', 'NewMexico', 'USA');
34
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (82, '228 Fahey Land
35
+ Baileymouth, FL 06297-5606', 'Suite 087', 'South Naomibury', '079', 'Ohio', 'USA');
36
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (88, '1770 Adriel Ramp Apt. 397
37
+ West Ashlynnchester, UT 91968', 'Apt. 617', 'East Tavaresburgh', '179', 'SouthDakota', 'USA');
38
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (92, '8760 Eldon Squares Suite 260
39
+ Marquisestad, GA 38537', 'Apt. 435', 'Lake Devon', '244', 'SouthDakota', 'USA');
40
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (94, '8263 Abbott Crossing Apt. 066
41
+ Oberbrunnerbury, LA 67451', 'Apt. 626', 'Boyleshire', '536', 'Kansas', 'USA');
42
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `city`, `zip_postcode`, `state_province_county`, `country`) VALUES (99, '521 Paucek Field
43
+ North Oscartown, WI 31527', 'Apt. 849', 'Terencetown', '979', 'Michigan', 'USA');
44
+
45
+ CREATE TABLE People (
46
+ person_id INTEGER NOT NULL,
47
+ first_name VARCHAR(255),
48
+ middle_name VARCHAR(255),
49
+ last_name VARCHAR(255),
50
+ cell_mobile_number VARCHAR(40),
51
+ email_address VARCHAR(40),
52
+ login_name VARCHAR(40),
53
+ password VARCHAR(40),
54
+ PRIMARY KEY (person_id)
55
+ );
56
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (111, 'Shannon', 'Elissa', 'Senger', '01955267735', 'javier.trantow@example.net', 'pgub', '5e4ff49a61b3544da3ad7dc7e2cf28847564c64c');
57
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (131, 'Dariana', 'Hayley', 'Bednar', '(262)347-9364x516', 'leila14@example.net', 'zops', 'b20b6a9f24aadeda70d54e410c3219f61fb063fb');
58
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (121, 'Virginie', 'Jasmin', 'Hartmann', '(508)319-2970x043', 'boyer.lonie@example.com', 'bkkv', 'b063331ea8116befaa7b84c59c6a22200f5f8caa');
59
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (141, 'Verna', 'Arielle', 'Grant', '1-372-548-7538x314', 'adele.gibson@example.net', 'uuol', '7be9c03d5467d563555c51ebb3eb78e7f90832ec');
60
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (151, 'Hoyt', 'Mercedes', 'Wintheiser', '1-603-110-0647', 'stanley.monahan@example.org', 'bnto', 'c55795df86182959094b83e27900f7cf44ced570');
61
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (161, 'Mayra', 'Haley', 'Hartmann', '724-681-4161x51632', 'terry.kuhlman@example.org', 'rzxu', 'ecae473cb54601e01457078ac0cdf4a1ced837bb');
62
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (171, 'Lizeth', 'Bell', 'Bartoletti', '812.228.0645x91481', 'celestine11@example.net', 'mkou', '76a93d1d3b7becc932d203beac61d064bd54e947');
63
+ INSERT INTO People (`person_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `login_name`, `password`) VALUES (181, 'Nova', 'Amiya', 'Feest', '766-272-9964', 'oreynolds@example.com', 'qrwl', '7dce9b688636ee212294c257dd2f6b85c7f65f2e');
64
+
65
+
66
+
67
+ CREATE TABLE Students (
68
+ student_id INTEGER NOT NULL,
69
+ student_details VARCHAR(255),
70
+ PRIMARY KEY (student_id),
71
+ FOREIGN KEY (student_id) REFERENCES People (person_id)
72
+ );
73
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (111,'Marry');
74
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (121,'Martin');
75
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (131,'Barry');
76
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (141,'Nikhil');
77
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (151,'John');
78
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (161,'Sarah');
79
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (171,'Joe');
80
+ INSERT INTO Students (`student_id`,`student_details`) VALUES (181,'Nancy');
81
+
82
+
83
+ CREATE TABLE Courses (
84
+ course_id VARCHAR(100) NOT NULL,
85
+ course_name VARCHAR(120),
86
+ course_description VARCHAR(255),
87
+ other_details VARCHAR(255),
88
+ PRIMARY KEY (course_id)
89
+ );
90
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`) VALUES ('301', 'statistics', 'statistics');
91
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`) VALUES ('302', 'English', 'English');
92
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`) VALUES ('303', 'French', 'French');
93
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`) VALUES ('304', 'database', 'database');
94
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`) VALUES ('305', 'data structure', 'data structure');
95
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`) VALUES ('306', 'Art history', 'Art history');
96
+
97
+
98
+
99
+ CREATE TABLE People_Addresses (
100
+ person_address_id INTEGER NOT NULL,
101
+ person_id INTEGER NOT NULL,
102
+ address_id INTEGER NOT NULL,
103
+ date_from DATETIME,
104
+ date_to DATETIME,
105
+ PRIMARY KEY (person_address_id),
106
+ FOREIGN KEY (person_id) REFERENCES People (person_id),
107
+ FOREIGN KEY (address_id) REFERENCES Addresses (address_id)
108
+ );
109
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (122, 111, 9, '2012-09-26 13:21:00', '2018-03-21 09:46:30');
110
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (257, 121, 5, '2008-07-31 02:17:25', '2018-03-09 02:11:12');
111
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (269, 131, 88, '2008-05-26 20:43:41', '2018-03-11 20:26:41');
112
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (276, 141, 99, '2014-05-10 00:32:31', '2018-03-08 06:16:47');
113
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (281, 151, 92, '2010-11-26 05:21:12', '2018-03-12 21:10:02');
114
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (340, 161, 45, '2017-05-01 17:32:26', '2018-03-09 08:45:06');
115
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (363, 171, 55, '2015-05-24 16:14:12', '2018-02-23 22:44:18');
116
+ INSERT INTO People_Addresses (`person_address_id`, `person_id`, `address_id`, `date_from`, `date_to`) VALUES (396, 181, 82, '2013-12-26 16:57:01', '2018-03-03 16:06:17');
117
+
118
+
119
+ CREATE TABLE Student_Course_Registrations (
120
+ student_id INTEGER NOT NULL,
121
+ course_id INTEGER NOT NULL,
122
+ registration_date DATETIME NOT NULL,
123
+ PRIMARY KEY (student_id, course_id),
124
+ FOREIGN KEY (student_id) REFERENCES Students (student_id),
125
+ FOREIGN KEY (course_id) REFERENCES Courses (course_id)
126
+ );
127
+
128
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (111,'301','2008-11-04 10:35:13');
129
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (121,'301','2008-10-04 10:35:13');
130
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (121,'303','2008-11-14 10:35:13');
131
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (131,'303','2008-11-05 10:35:13');
132
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (141,'302','2008-11-06 10:35:13');
133
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (151,'305','2008-11-07 10:35:13');
134
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (161,'302','2008-11-07 10:35:13');
135
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (171,'301','2008-11-07 10:35:13');
136
+ INSERT INTO Student_Course_Registrations (`student_id`,`course_id`,`registration_date`) VALUES (141,'301','2008-11-08 10:35:13');
137
+
138
+
139
+ CREATE TABLE Student_Course_Attendance (
140
+ student_id INTEGER NOT NULL,
141
+ course_id INTEGER NOT NULL,
142
+ date_of_attendance DATETIME NOT NULL,
143
+ PRIMARY KEY (student_id, course_id),
144
+ FOREIGN KEY (student_id, course_id) REFERENCES Student_Course_Registrations (student_id,course_id)
145
+ );
146
+
147
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (111,'301','2008-11-04 10:35:13');
148
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (121,'301','2012-04-09 11:44:34');
149
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (121,'303','2014-04-09 11:44:34');
150
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (141,'302','2013-04-09 11:44:34');
151
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (171,'301','2015-04-09 11:44:34');
152
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (161,'302','2014-01-09 11:44:34');
153
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (151,'305','2012-05-09 11:44:34');
154
+ INSERT INTO Student_Course_Attendance (`student_id`,`course_id`,`date_of_attendance`) VALUES (141,'301','2012-09-09 11:44:34');
155
+
156
+
157
+ CREATE TABLE Candidates (
158
+ candidate_id INTEGER NOT NULL ,
159
+ candidate_details VARCHAR(255),
160
+ PRIMARY KEY (candidate_id),
161
+ FOREIGN KEY (candidate_id) REFERENCES People (person_id)
162
+ );
163
+ CREATE TABLE Candidate_Assessments (
164
+ candidate_id INTEGER NOT NULL,
165
+ qualification CHAR(15) NOT NULL,
166
+ assessment_date DATETIME NOT NULL,
167
+ asessment_outcome_code CHAR(15) NOT NULL,
168
+ PRIMARY KEY (candidate_id, qualification),
169
+ FOREIGN KEY (candidate_id) REFERENCES Candidates (candidate_id)
170
+ );
171
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (111,'Jane');
172
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (121,'Robert');
173
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (131,'Alex');
174
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (141,'Tao');
175
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (151,'Jack');
176
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (161,'Leo');
177
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (171,'Robin');
178
+ INSERT INTO Candidates (`candidate_id`,`candidate_details`) VALUES (181,'Cindy');
179
+
180
+
181
+ INSERT INTO Candidate_Assessments (`candidate_id`,`qualification`,`assessment_date`,`asessment_outcome_code`) VALUES (111,'A','2010-04-07 11:44:34','Pass');
182
+ INSERT INTO Candidate_Assessments (`candidate_id`,`qualification`,`assessment_date`,`asessment_outcome_code`) VALUES (121,'B','2010-04-17 11:44:34','Pass');
183
+ INSERT INTO Candidate_Assessments (`candidate_id`,`qualification`,`assessment_date`,`asessment_outcome_code`) VALUES (131,'D','2010-04-05 11:44:34','Fail');
184
+ INSERT INTO Candidate_Assessments (`candidate_id`,`qualification`,`assessment_date`,`asessment_outcome_code`) VALUES (141,'C','2010-04-06 11:44:34','Pass');
185
+ INSERT INTO Candidate_Assessments (`candidate_id`,`qualification`,`assessment_date`,`asessment_outcome_code`) VALUES (151,'B','2010-04-09 11:44:34','Pass');
database/student_transcripts_tracking/schema.sql ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Addresses` (
3
+ `address_id` INTEGER PRIMARY KEY,
4
+ `line_1` VARCHAR(255),
5
+ `line_2` VARCHAR(255),
6
+ `line_3` VARCHAR(255),
7
+ `city` VARCHAR(255),
8
+ `zip_postcode` VARCHAR(20),
9
+ `state_province_county` VARCHAR(255),
10
+ `country` VARCHAR(255),
11
+ `other_address_details` VARCHAR(255)
12
+ );
13
+ CREATE TABLE `Courses` (
14
+ `course_id` INTEGER PRIMARY KEY,
15
+ `course_name` VARCHAR(255),
16
+ `course_description` VARCHAR(255),
17
+ `other_details` VARCHAR(255)
18
+ );
19
+
20
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (1, '2294 Grant Square Apt. 235', 'Apt. 370', NULL, 'Port Chelsea', '148', 'Virginia', 'Iceland', NULL);
21
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (2, '3999 Aufderhar Ways Suite 593', 'Apt. 388', NULL, 'Lake Laishafurt', '943', 'Kentucky', 'Burundi', NULL);
22
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (3, '67942 Carlotta Ferry Apt. 686', 'Apt. 583', NULL, 'Goodwinhaven', '541', 'Kansas', 'Saudi Arabia', NULL);
23
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (4, '0144 Lamar Plaza Apt. 346', 'Suite 703', NULL, 'Port Evanston', '847', 'Washington', 'Angola', NULL);
24
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (5, '858 Peggie Bypass Suite 212', 'Apt. 335', NULL, 'Michelleburgh', '446', 'Hawaii', 'Haiti', NULL);
25
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (6, '16998 Mraz Lodge', 'Apt. 689', NULL, 'North Omer', '902', 'Kentucky', 'Gibraltar', NULL);
26
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (7, '193 Marlin Brook', 'Apt. 406', NULL, 'Herzoghaven', '068', 'Arkansas', 'Cook Islands', NULL);
27
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (8, '202 Hessel Views Apt. 468', 'Apt. 305', NULL, 'Mariliehaven', '638', 'Idaho', 'Croatia', NULL);
28
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (9, '0643 Muller Vista', 'Suite 383', NULL, 'Port Elvisfurt', '777', 'NorthCarolina', 'Gabon', NULL);
29
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (10, '7081 Eda Center', 'Suite 830', NULL, 'Rutherfordtown', '839', 'Delaware', 'Kyrgyz Republic', NULL);
30
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (11, '9283 Schulist Falls Apt. 037', 'Suite 239', NULL, 'South Palma', '400', 'WestVirginia', 'Bermuda', NULL);
31
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (12, '979 Haag Shores Suite 656', 'Apt. 468', NULL, 'Prohaskafort', '590', 'SouthDakota', 'Lesotho', NULL);
32
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (13, '492 Wilkinson Route', 'Suite 865', NULL, 'New Clemensburgh', '386', 'Florida', 'Samoa', NULL);
33
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (14, '186 Evan Motorway Apt. 409', 'Suite 079', NULL, 'Lake Careyberg', '895', 'Kentucky', 'New Caledonia', NULL);
34
+ INSERT INTO Addresses (`address_id`, `line_1`, `line_2`, `line_3`, `city`, `zip_postcode`, `state_province_county`, `country`, `other_address_details`) VALUES (15, '74046 Metz Walk Apt. 113', 'Suite 674', NULL, 'Port Oceane', '669', 'Wyoming', 'Norfolk Island', NULL);
35
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (1, 'ds', 'p', NULL);
36
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (2, 'math', 'q', NULL);
37
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (3, 'os', 'v', NULL);
38
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (4, 'en', 'k', NULL);
39
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (5, 'fr', 'c', NULL);
40
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (6, 'la', 'n', NULL);
41
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (7, 'cal', 'l', NULL);
42
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (8, 'nlp', 'q', NULL);
43
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (9, 'dl', 'l', NULL);
44
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (10, 'ml', 'b', NULL);
45
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (11, 'ai', 'w', NULL);
46
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (12, 'db', 'q', NULL);
47
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (13, 'rs', 'v', NULL);
48
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (14, 'pl', 'p', NULL);
49
+ INSERT INTO Courses (`course_id`, `course_name`, `course_description`, `other_details`) VALUES (15, 'oop', 'd', NULL);
50
+
51
+
52
+ CREATE TABLE `Departments` (
53
+ `department_id` INTEGER PRIMARY KEY,
54
+ `department_name` VARCHAR(255),
55
+ `department_description` VARCHAR(255),
56
+ `other_details` VARCHAR(255)
57
+ );
58
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (1, 'computer science', 'error', NULL);
59
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (2, 'history', 'nostrum', NULL);
60
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (3, 'art', 'aliquam', NULL);
61
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (4, 'linguistic', 'natus', NULL);
62
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (5, 'management', 'nihil', NULL);
63
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (6, 'engineer', 'autem', NULL);
64
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (7, 'math', 'doloribus', NULL);
65
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (8, 'statistics', 'nihil', NULL);
66
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (9, 'law', 'dolorem', NULL);
67
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (10, 'economics', 'non', NULL);
68
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (11, 'biology', 'consequatur', NULL);
69
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (12, 'medical', 'ea', NULL);
70
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (13, 'dance', 'consequatur', NULL);
71
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (14, 'drama', 'in', NULL);
72
+ INSERT INTO Departments (`department_id`, `department_name`, `department_description`, `other_details`) VALUES (15, 'geography', 'nisi', NULL);
73
+
74
+
75
+
76
+ CREATE TABLE `Degree_Programs` (
77
+ `degree_program_id` INTEGER PRIMARY KEY,
78
+ `department_id` INTEGER NOT NULL,
79
+ `degree_summary_name` VARCHAR(255),
80
+ `degree_summary_description` VARCHAR(255),
81
+ `other_details` VARCHAR(255),
82
+ FOREIGN KEY (`department_id` ) REFERENCES `Departments`(`department_id` )
83
+ );
84
+
85
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (1, 13, 'Master', 'architecto', NULL);
86
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (2, 2, 'Master', 'cumque', NULL);
87
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (3, 13, 'Master', 'placeat', NULL);
88
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (4, 8, 'Bachelor', 'unde', NULL);
89
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (5, 11, 'Master', 'officiis', NULL);
90
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (6, 8, 'Bachelor', 'aperiam', NULL);
91
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (7, 14, 'Bachelor', 'assumenda', NULL);
92
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (8, 15, 'Master', 'earum', NULL);
93
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (9, 3, 'Bachelor', 'voluptas', NULL);
94
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (10, 8, 'Bachelor', 'aut', NULL);
95
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (11, 14, 'Bachelor', 'aut', NULL);
96
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (12, 4, 'Master', 'qui', NULL);
97
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (13, 7, 'Bachelor', 'quam', NULL);
98
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (14, 2, 'PHD', 'et', NULL);
99
+ INSERT INTO Degree_Programs (`degree_program_id`, `department_id`, `degree_summary_name`, `degree_summary_description`, `other_details`) VALUES (15, 12, 'PHD', 'esse', NULL);
100
+
101
+
102
+
103
+ CREATE TABLE `Sections` (
104
+ `section_id` INTEGER PRIMARY KEY,
105
+ `course_id` INTEGER NOT NULL,
106
+ `section_name` VARCHAR(255),
107
+ `section_description` VARCHAR(255),
108
+ `other_details` VARCHAR(255),
109
+ FOREIGN KEY (`course_id` ) REFERENCES `Courses`(`course_id` )
110
+ );
111
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (1, 9, 'a', 'non', NULL);
112
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (2, 2, 'b', 'voluptatem', NULL);
113
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (3, 8, 'c', 'qui', NULL);
114
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (4, 1, 'd', 'voluptas', NULL);
115
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (5, 5, 'e', 'ex', NULL);
116
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (6, 7, 'f', 'doloremque', NULL);
117
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (7, 12, 'g', 'provident', NULL);
118
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (8, 14, 'h', 'et', NULL);
119
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (9, 8, 'j', 'quis', NULL);
120
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (10, 14, 'k', 'nesciunt', NULL);
121
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (11, 1, 'l', 'ad', NULL);
122
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (12, 4, 'o', 'et', NULL);
123
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (13, 5, 'p', 'facilis', NULL);
124
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (14, 6, 'u', 'reprehenderit', NULL);
125
+ INSERT INTO Sections (`section_id`, `course_id`, `section_name`, `section_description`, `other_details`) VALUES (15, 10, 'y', 'qui', NULL);
126
+
127
+
128
+
129
+ CREATE TABLE `Semesters` (
130
+ `semester_id` INTEGER PRIMARY KEY,
131
+ `semester_name` VARCHAR(255),
132
+ `semester_description` VARCHAR(255),
133
+ `other_details` VARCHAR(255)
134
+ );
135
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (1, 'spring 2010', 'x', NULL);
136
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (2, 'summer 2010', 'g', NULL);
137
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (3, 'fall 2010', 'w', NULL);
138
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (4, 'winter 2010', 'c', NULL);
139
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (5, 'spring 2018', 'c', NULL);
140
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (6, 'spring 2012', 'l', NULL);
141
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (7, 'spring 2013', 'y', NULL);
142
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (8, 'spring 2014', 'x', NULL);
143
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (9, 'spring 2015', 'x', NULL);
144
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (10, 'spring 2016', 'f', NULL);
145
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (11, 'spring 2017', 'g', NULL);
146
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (12, 'spring 2018', 'm', NULL);
147
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (13, 'fall 2018', 'q', NULL);
148
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (14, 'winter 2018', 't', NULL);
149
+ INSERT INTO Semesters (`semester_id`, `semester_name`, `semester_description`, `other_details`) VALUES (15, 'spring 2019', 'o', NULL);
150
+
151
+
152
+ CREATE TABLE `Students` (
153
+ `student_id` INTEGER PRIMARY KEY,
154
+ `current_address_id` INTEGER NOT NULL,
155
+ `permanent_address_id` INTEGER NOT NULL,
156
+ `first_name` VARCHAR(80),
157
+ `middle_name` VARCHAR(40),
158
+ `last_name` VARCHAR(40),
159
+ `cell_mobile_number` VARCHAR(40),
160
+ `email_address` VARCHAR(40),
161
+ `ssn` VARCHAR(40),
162
+ `date_first_registered` DATETIME,
163
+ `date_left` DATETIME,
164
+ `other_student_details` VARCHAR(255),
165
+ FOREIGN KEY (`current_address_id` ) REFERENCES `Addresses`(`address_id` ),
166
+ FOREIGN KEY (`permanent_address_id` ) REFERENCES `Addresses`(`address_id` )
167
+ );
168
+
169
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (1, 10, 15, 'Timmothy', 'Anna', 'Ward', '(096)889-8954x524', 'erwin.zboncak@example.com', '965', '1971-02-05 07:28:23', '1971-05-17 19:28:49', 'quia');
170
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (2, 12, 5, 'Hobart', 'Lorenz', 'Balistreri', '1-009-710-5151', 'swift.kolby@example.com', '304246', '1976-10-26 02:33:06', '2013-10-05 17:41:28', 'autem');
171
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (3, 9, 5, 'Warren', 'Violet', 'Gleichner', '07661787471', 'johns.unique@example.net', '3', '2007-08-29 23:25:41', '2007-03-31 09:53:19', 'facilis');
172
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (4, 7, 11, 'Jarvis', 'Aaliyah', 'Carroll', '09700166582', 'jillian26@example.net', '141072406', '2014-03-28 05:48:23', '2007-08-02 04:12:58', 'atque');
173
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (5, 9, 9, 'Milton', 'Vaughn', 'Christiansen', '171-642-5684', 'lhartmann@example.org', '', '1973-05-19 19:12:46', '2007-11-28 12:50:21', 'laborum');
174
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (6, 6, 3, 'Stanford', 'Mona', 'Rogahn', '436.613.7683', 'skassulke@example.net', '248', '1997-03-20 16:47:25', '2016-04-09 12:27:04', 'qui');
175
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (7, 15, 3, 'Frida', 'Aisha', 'Huel', '1-879-796-8987x164', 'baumbach.lucious@example.org', '668', '2018-03-13 09:56:22', '1997-11-16 08:54:33', 'dolorum');
176
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (8, 1, 5, 'Delaney', 'Judd', 'Ankunding', '03174364122', 'dell43@example.net', '402', '1982-02-14 08:46:35', '2004-12-08 05:29:11', 'voluptatem');
177
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (9, 2, 15, 'Reva', 'Golda', 'Osinski', '(507)365-8405', 'qo''kon@example.com', '39', '2017-01-04 08:10:25', '1990-09-01 05:03:27', 'nesciunt');
178
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (10, 15, 14, 'Helga', 'Cleve', 'Mohr', '677.401.9382', 'nya.lesch@example.net', '43', '2009-09-25 00:14:25', '2017-07-09 21:38:43', 'rerum');
179
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (11, 14, 4, 'Gregg', 'Mossie', 'Schuppe', '(462)246-7921', 'nbruen@example.org', '494', '1989-05-24 23:31:29', '1975-10-09 00:49:27', 'omnis');
180
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (12, 14, 9, 'Orrin', 'Neal', 'Kemmer', '(982)153-1469x1733', 'beth42@example.org', '6274274', '2005-12-15 08:42:10', '2006-08-04 17:26:49', 'non');
181
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (13, 9, 8, 'Deon', 'Brooklyn', 'Weimann', '(213)445-0399x85208', 'jhuel@example.com', '68095', '1986-02-24 21:12:23', '2014-05-30 23:32:02', 'assumenda');
182
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (14, 12, 11, 'Jordy', 'Osborne', 'Rempel', '(605)919-3594x3661', 'gracie29@example.com', '34458427', '2004-12-24 12:36:46', '1999-08-24 00:07:10', 'et');
183
+ INSERT INTO Students (`student_id`, `current_address_id`, `permanent_address_id`, `first_name`, `middle_name`, `last_name`, `cell_mobile_number`, `email_address`, `ssn`, `date_first_registered`, `date_left`, `other_student_details`) VALUES (15, 2, 9, 'Jett', 'Alberta', 'Jaskolski', '877.549.9067x8723', 'mya88@example.org', '156', '1982-06-19 13:15:18', '1982-06-11 00:25:39', 'omnis');
184
+
185
+
186
+
187
+ CREATE TABLE `Student_Enrolment` (
188
+ `student_enrolment_id` INTEGER PRIMARY KEY,
189
+ `degree_program_id` INTEGER NOT NULL,
190
+ `semester_id` INTEGER NOT NULL,
191
+ `student_id` INTEGER NOT NULL,
192
+ `other_details` VARCHAR(255),
193
+ FOREIGN KEY (`degree_program_id` ) REFERENCES `Degree_Programs`(`degree_program_id` ),
194
+ FOREIGN KEY (`semester_id` ) REFERENCES `Semesters`(`semester_id` ),
195
+ FOREIGN KEY (`student_id` ) REFERENCES `Students`(`student_id` )
196
+ );
197
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (1, 12, 13, 14, NULL);
198
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (2, 4, 2, 9, NULL);
199
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (3, 10, 2, 7, NULL);
200
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (4, 4, 15, 9, NULL);
201
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (5, 5, 1, 14, NULL);
202
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (6, 3, 13, 1, NULL);
203
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (7, 9, 9, 4, NULL);
204
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (8, 8, 5, 12, NULL);
205
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (9, 12, 6, 7, NULL);
206
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (10, 11, 2, 7, NULL);
207
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (11, 10, 13, 4, NULL);
208
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (12, 9, 2, 5, NULL);
209
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (13, 2, 12, 6, NULL);
210
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (14, 9, 15, 6, NULL);
211
+ INSERT INTO Student_Enrolment (`student_enrolment_id`, `degree_program_id`, `semester_id`, `student_id`, `other_details`) VALUES (15, 2, 4, 6, NULL);
212
+
213
+
214
+
215
+ CREATE TABLE `Student_Enrolment_Courses` (
216
+ `student_course_id` INTEGER PRIMARY KEY,
217
+ `course_id` INTEGER NOT NULL,
218
+ `student_enrolment_id` INTEGER NOT NULL,
219
+ FOREIGN KEY (`course_id` ) REFERENCES `Courses`(`course_id` ),
220
+ FOREIGN KEY (`student_enrolment_id` ) REFERENCES `Student_Enrolment`(`student_enrolment_id` )
221
+ );
222
+
223
+ CREATE TABLE `Transcripts` (
224
+ `transcript_id` INTEGER PRIMARY KEY,
225
+ `transcript_date` DATETIME,
226
+ `other_details` VARCHAR(255)
227
+ );
228
+
229
+ CREATE TABLE `Transcript_Contents` (
230
+ `student_course_id` INTEGER NOT NULL,
231
+ `transcript_id` INTEGER NOT NULL,
232
+ FOREIGN KEY (`student_course_id` ) REFERENCES `Student_Enrolment_Courses`(`student_course_id` ),
233
+ FOREIGN KEY (`transcript_id` ) REFERENCES `Transcripts`(`transcript_id` )
234
+ );
235
+
236
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (8, 2, 5);
237
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (28982908, 8, 9);
238
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (1, 6, 8);
239
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (2, 14, 5);
240
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (9860, 14, 10);
241
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (7, 11, 5);
242
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (681404, 10, 4);
243
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (96, 2, 4);
244
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (438800, 3, 4);
245
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (83814225, 12, 14);
246
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (0, 6, 2);
247
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (604750, 4, 6);
248
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (70882679, 13, 9);
249
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (45105806, 13, 14);
250
+ INSERT INTO Student_Enrolment_Courses (`student_course_id`, `course_id`, `student_enrolment_id`) VALUES (76, 10, 13);
251
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (1, '1988-04-30 01:19:47', NULL);
252
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (2, '1975-10-28 15:16:51', NULL);
253
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (3, '1984-12-19 00:37:21', NULL);
254
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (4, '1999-01-06 20:06:46', NULL);
255
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (5, '2013-06-30 13:01:40', NULL);
256
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (6, '2010-12-13 10:55:15', NULL);
257
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (7, '1990-03-05 11:59:41', NULL);
258
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (8, '1975-05-06 12:04:47', NULL);
259
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (9, '1984-01-18 23:07:07', NULL);
260
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (10, '1975-05-20 18:31:21', NULL);
261
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (11, '1986-07-12 07:27:29', NULL);
262
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (12, '1985-08-21 09:32:39', NULL);
263
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (13, '1985-04-29 01:20:20', NULL);
264
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (14, '2002-09-24 06:11:49', NULL);
265
+ INSERT INTO Transcripts (`transcript_id`, `transcript_date`, `other_details`) VALUES (15, '1998-11-22 12:18:29', NULL);
266
+
267
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (0, 2);
268
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (96, 8);
269
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (76, 9);
270
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (7, 4);
271
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (0, 15);
272
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (76, 15);
273
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (0, 6);
274
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (96, 13);
275
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (76, 12);
276
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (28982908, 11);
277
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (2, 8);
278
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (0, 5);
279
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (8, 5);
280
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (45105806, 8);
281
+ INSERT INTO Transcript_Contents (`student_course_id`, `transcript_id`) VALUES (70882679, 6);
database/theme_gallery/schema.sql ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ PRAGMA foreign_keys = ON;
3
+
4
+ CREATE TABLE "artist" (
5
+ "Artist_ID" int,
6
+ "Name" text,
7
+ "Country" text,
8
+ "Year_Join" int,
9
+ "Age" int,
10
+ PRIMARY KEY ("Artist_ID")
11
+ );
12
+
13
+ INSERT INTO "artist" VALUES (1,"Vijay Singh","Fiji","1998",45);
14
+ INSERT INTO "artist" VALUES (2,"John Daly","United States","1991",46);
15
+ INSERT INTO "artist" VALUES (3,"Paul Azinger","United States","1993",47);
16
+ INSERT INTO "artist" VALUES (4,"Jeff Sluman","United States","1988",57);
17
+ INSERT INTO "artist" VALUES (5,"Mark Brooks","United States","1996",48);
18
+ INSERT INTO "artist" VALUES (6,"Nick Price","Zimbabwe","1994",48);
19
+ INSERT INTO "artist" VALUES (7,"Larry Nelson","United States","1981",50);
20
+
21
+
22
+
23
+ CREATE TABLE "exhibition" (
24
+ "Exhibition_ID" int,
25
+ "Year" int,
26
+ "Theme" text,
27
+ "Artist_ID" int,
28
+ "Ticket_Price" real,
29
+ PRIMARY KEY ("Exhibition_ID"),
30
+ FOREIGN KEY (`Artist_ID`) REFERENCES `artist`(`Artist_ID`)
31
+ );
32
+
33
+ INSERT INTO "exhibition" VALUES (1,"2004","Santa Claus",1,"19.95");
34
+ INSERT INTO "exhibition" VALUES (2,"2005","Christmas stocking",2,"19.95");
35
+ INSERT INTO "exhibition" VALUES (3,"2006","Santa Claus and Rudolph the Red-Nosed Reindeer",4,"14.95");
36
+ INSERT INTO "exhibition" VALUES (4,"2007","Christmas Tree",1,"16.95");
37
+ INSERT INTO "exhibition" VALUES (5,"2008","Spring",6,"29.95");
38
+ INSERT INTO "exhibition" VALUES (6,"2009","Summer",3,"9.95");
39
+
40
+
41
+
42
+ CREATE TABLE "exhibition_record" (
43
+ "Exhibition_ID" int,
44
+ "Date" text,
45
+ "Attendance" int,
46
+ PRIMARY KEY ("Exhibition_ID","Date"),
47
+ FOREIGN KEY (`Exhibition_ID`) REFERENCES `exhibition`(`Exhibition_ID`)
48
+ );
49
+
50
+
51
+
52
+ INSERT INTO "exhibition_record" VALUES (1,"December 2",965);
53
+ INSERT INTO "exhibition_record" VALUES (1,"December 5",1098);
54
+ INSERT INTO "exhibition_record" VALUES (1,"December 7",2983);
55
+ INSERT INTO "exhibition_record" VALUES (2,"December 9",1239);
56
+ INSERT INTO "exhibition_record" VALUES (2,"December 12",1313);
57
+ INSERT INTO "exhibition_record" VALUES (2,"December 13",10908);
58
+ INSERT INTO "exhibition_record" VALUES (3,"December 16",1134);
59
+ INSERT INTO "exhibition_record" VALUES (3,"February 19",1233);
60
+ INSERT INTO "exhibition_record" VALUES (3,"February 21",9089);
61
+ INSERT INTO "exhibition_record" VALUES (4,"February 23",3139);
62
+ INSERT INTO "exhibition_record" VALUES (5,"February 25",24808);
63
+ INSERT INTO "exhibition_record" VALUES (5,"February 26",13142);
64
+ INSERT INTO "exhibition_record" VALUES (5,"February 28",4231);
65
+
database/tracking_orders/schema.sql ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Customers` (
3
+ `customer_id` INTEGER PRIMARY KEY,
4
+ `customer_name` VARCHAR(80),
5
+ `customer_details` VARCHAR(255)
6
+ );
7
+ CREATE TABLE `Invoices` (
8
+ `invoice_number` INTEGER PRIMARY KEY,
9
+ `invoice_date` DATETIME,
10
+ `invoice_details` VARCHAR(255)
11
+ );
12
+
13
+ CREATE TABLE `Orders` (
14
+ `order_id` INTEGER PRIMARY KEY,
15
+ `customer_id` INTEGER NOT NULL,
16
+ `order_status` VARCHAR(10) NOT NULL,
17
+ `date_order_placed` DATETIME NOT NULL,
18
+ `order_details` VARCHAR(255),
19
+ FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
20
+ );
21
+
22
+ CREATE TABLE `Products` (
23
+ `product_id` INTEGER PRIMARY KEY,
24
+ `product_name` VARCHAR(80),
25
+ `product_details` VARCHAR(255)
26
+ );
27
+
28
+ CREATE TABLE `Order_Items` (
29
+ `order_item_id` INTEGER PRIMARY KEY,
30
+ `product_id` INTEGER NOT NULL,
31
+ `order_id` INTEGER NOT NULL,
32
+ `order_item_status` VARCHAR(10) NOT NULL,
33
+ `order_item_details` VARCHAR(255),
34
+ FOREIGN KEY (`order_id` ) REFERENCES `Orders`(`order_id` ),
35
+ FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` )
36
+ );
37
+
38
+ CREATE TABLE `Shipments` (
39
+ `shipment_id` INTEGER PRIMARY KEY,
40
+ `order_id` INTEGER NOT NULL,
41
+ `invoice_number` INTEGER NOT NULL,
42
+ `shipment_tracking_number` VARCHAR(80),
43
+ `shipment_date` DATETIME,
44
+ `other_shipment_details` VARCHAR(255),
45
+ FOREIGN KEY (`order_id` ) REFERENCES `Orders`(`order_id` ),
46
+ FOREIGN KEY (`invoice_number` ) REFERENCES `Invoices`(`invoice_number` )
47
+ );
48
+
49
+ CREATE TABLE `Shipment_Items` (
50
+ `shipment_id` INTEGER NOT NULL,
51
+ `order_item_id` INTEGER NOT NULL,
52
+ FOREIGN KEY (`order_item_id` ) REFERENCES `Order_Items`(`order_item_id` ),
53
+ FOREIGN KEY (`shipment_id` ) REFERENCES `Shipments`(`shipment_id` )
54
+ );
55
+
56
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (1, 'Savannah', 'rerum');
57
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (2, 'George', 'est');
58
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (3, 'Alberto', 'deleniti');
59
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (4, 'Leilani', 'sequi');
60
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (5, 'Hadley', 'corrupti');
61
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (6, 'Chaz', 'nostrum');
62
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (7, 'Violet', 'consectetur');
63
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (8, 'Parker', 'rerum');
64
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (9, 'Devan', 'doloribus');
65
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (10, 'Beulah', 'commodi');
66
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (11, 'Hershel', 'vel');
67
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (12, 'Conrad', 'eligendi');
68
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (13, 'Samson', 'dicta');
69
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (14, 'Mabelle', 'quidem');
70
+ INSERT INTO Customers (`customer_id`, `customer_name`, `customer_details`) VALUES (15, 'Jeramie', 'officia');
71
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (1, '1989-09-03 16:03:05', 'vitae');
72
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (2, '1989-12-11 16:40:57', 'magnam');
73
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (3, '1995-10-07 14:13:05', 'et');
74
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (4, '1985-04-27 08:38:49', 'tempore');
75
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (5, '1971-02-12 00:29:57', 'labore');
76
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (6, '2007-12-25 15:49:37', 'optio');
77
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (7, '1991-01-05 16:44:25', 'reiciendis');
78
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (8, '2012-06-12 07:34:17', 'doloremque');
79
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (9, '1974-07-27 16:18:49', 'quo');
80
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (10, '2005-02-27 19:53:13', 'eveniet');
81
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (11, '1972-08-12 05:48:49', 'earum');
82
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (12, '1987-11-15 15:41:40', 'ea');
83
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (13, '1981-03-28 20:01:44', 'voluptatem');
84
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (14, '1998-07-30 15:39:12', 'repellat');
85
+ INSERT INTO Invoices (`invoice_number`, `invoice_date`, `invoice_details`) VALUES (15, '2012-12-08 02:21:54', 'voluptatem');
86
+
87
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (1, 2, 'Shipped', '2009-02-21 15:26:19', NULL);
88
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (2, 11, 'Shipped', '1974-06-24 22:10:26', NULL);
89
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (3, 4, 'Shipped', '1982-12-29 21:10:11', NULL);
90
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (4, 15, 'Packing', '1974-08-10 08:15:16', NULL);
91
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (5, 5, 'Packing', '2010-06-08 02:20:49', NULL);
92
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (6, 7, 'Packing', '1975-12-23 15:59:43', NULL);
93
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (7, 15, 'Packing', '1976-09-01 09:27:00', NULL);
94
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (8, 10, 'On Road', '1997-01-27 19:12:01', NULL);
95
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (9, 3, 'On Road', '1983-09-08 12:32:49', NULL);
96
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (10, 2, 'On Road', '1982-12-09 09:42:23', NULL);
97
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (11, 9, 'On Road', '1979-12-07 02:03:49', NULL);
98
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (12, 2, 'On Road', '1976-01-18 08:09:12', NULL);
99
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (13, 15, 'On Road', '2002-12-06 14:13:30', NULL);
100
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (14, 10, 'On Road', '2002-09-13 07:38:09', NULL);
101
+ INSERT INTO Orders (`order_id`, `customer_id`, `order_status`, `date_order_placed`, `order_details`) VALUES (15, 8, 'On Road', '1971-05-10 01:54:18', NULL);
102
+
103
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (1, 'food', NULL);
104
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (2, 'book', NULL);
105
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (3, 'food', NULL);
106
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (4, 'food', NULL);
107
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (5, 'clothes', NULL);
108
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (6, 'clothes', NULL);
109
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (7, 'clothes', NULL);
110
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (8, 'book', NULL);
111
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (9, 'book', NULL);
112
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (10, 'phone', NULL);
113
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (11, 'phone', NULL);
114
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (12, 'phone', NULL);
115
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (13, 'phone', NULL);
116
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (14, 'music', NULL);
117
+ INSERT INTO Products (`product_id`, `product_name`, `product_details`) VALUES (15, 'music', NULL);
118
+
119
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (1, 5, 13, '3452', '1983-08-13 22:34:11', NULL);
120
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (2, 7, 2, '0114', '1977-11-10 12:11:25', NULL);
121
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (3, 10, 5, '478', '2006-01-17 03:08:05', NULL);
122
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (4, 5, 2, '08858', '1982-01-24 12:13:16', NULL);
123
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (5, 6, 15, '35342', '1981-11-13 23:20:42', NULL);
124
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (6, 4, 3, '7480', '1978-05-17 00:03:43', NULL);
125
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (7, 13, 15, '7662', '1999-10-12 10:41:49', NULL);
126
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (8, 9, 10, '2323', '1983-03-08 16:14:58', NULL);
127
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (9, 8, 10, '5991', '1986-06-07 13:54:27', NULL);
128
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (10, 14, 15, '0182', '1973-06-20 14:26:43', NULL);
129
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (11, 8, 2, '1334', '1992-08-13 04:04:52', NULL);
130
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (12, 2, 9, '2421', '1985-11-12 12:41:34', NULL);
131
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (13, 3, 10, '2424', '1970-02-02 05:23:57', NULL);
132
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (14, 12, 3, '4029', '2014-01-15 20:52:15', NULL);
133
+ INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`, `other_shipment_details`) VALUES (15, 7, 9, '2436', '1991-04-01 15:24:24', NULL);
134
+
135
+
136
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (1, 4, 6, 'Finish', NULL);
137
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (2, 15, 6, 'Finish', NULL);
138
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (3, 12, 15, 'Finish', NULL);
139
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (4, 8, 15, 'Payed', NULL);
140
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (5, 11, 6, 'Payed', NULL);
141
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (6, 14, 8, 'Payed', NULL);
142
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (7, 3, 5, 'Payed', NULL);
143
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (8, 4, 10, 'Cancel', NULL);
144
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (9, 11, 15, 'Cancel', NULL);
145
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (10, 7, 7, 'Cancel', NULL);
146
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (11, 15, 11, 'Cancel', NULL);
147
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (12, 1, 11, 'Cancel', NULL);
148
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (13, 14, 7, 'Payed', NULL);
149
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (14, 15, 14, 'Payed', NULL);
150
+ INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status`, `order_item_details`) VALUES (15, 3, 9, 'Payed', NULL);
151
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (11, 12);
152
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (10, 15);
153
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (10, 12);
154
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (2, 2);
155
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (14, 10);
156
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (3, 7);
157
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (4, 5);
158
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (13, 7);
159
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (12, 10);
160
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (5, 13);
161
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (15, 4);
162
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (4, 11);
163
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (12, 15);
164
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (5, 5);
165
+ INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (2, 10);
database/tracking_software_problems/schema.sql ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Problem_Category_Codes` (
3
+ `problem_category_code` VARCHAR(20) PRIMARY KEY,
4
+ `problem_category_description` VARCHAR(80)
5
+ );
6
+ INSERT INTO `Problem_Category_Codes` (`problem_category_code`, `problem_category_description`) VALUES ('Datatabase', 'Database design or contents.');
7
+ INSERT INTO `Problem_Category_Codes` (`problem_category_code`, `problem_category_description`) VALUES ('GUI', 'User Interface.');
8
+ INSERT INTO `Problem_Category_Codes` (`problem_category_code`, `problem_category_description`) VALUES ('Middleware', 'Infrastructrure and Architecture');
9
+ CREATE TABLE `Problem_Log` (
10
+ `problem_log_id` INTEGER PRIMARY KEY,
11
+ `assigned_to_staff_id` INTEGER NOT NULL,
12
+ `problem_id` INTEGER NOT NULL,
13
+ `problem_category_code` VARCHAR(20) NOT NULL,
14
+ `problem_status_code` VARCHAR(20) NOT NULL,
15
+ `log_entry_date` DATETIME,
16
+ `log_entry_description` VARCHAR(255),
17
+ `log_entry_fix` VARCHAR(255),
18
+ `other_log_details` VARCHAR(255),
19
+ FOREIGN KEY (`problem_category_code` ) REFERENCES `Problem_Category_Codes`(`problem_category_code` ),FOREIGN KEY (`assigned_to_staff_id` ) REFERENCES `Staff`(`staff_id` ),FOREIGN KEY (`problem_id` ) REFERENCES `Problems`(`problem_id` ),FOREIGN KEY (`problem_status_code` ) REFERENCES `Problem_Status_Codes`(`problem_status_code` )
20
+ );
21
+ CREATE TABLE `Problem_Status_Codes` (
22
+ `problem_status_code` VARCHAR(20) PRIMARY KEY,
23
+ `problem_status_description` VARCHAR(80)
24
+ );
25
+ INSERT INTO `Problem_Status_Codes` (`problem_status_code`, `problem_status_description`) VALUES ('Reported', 'Reported');
26
+ INSERT INTO `Problem_Status_Codes` (`problem_status_code`, `problem_status_description`) VALUES ('Solved', 'Solved');
27
+
28
+ CREATE TABLE `Product` (
29
+ `product_id` INTEGER PRIMARY KEY,
30
+ `product_name` VARCHAR(80),
31
+ `product_details` VARCHAR(255)
32
+ );
33
+ CREATE TABLE `Staff` (
34
+ `staff_id` INTEGER PRIMARY KEY,
35
+ `staff_first_name` VARCHAR(80),
36
+ `staff_last_name` VARCHAR(80),
37
+ `other_staff_details` VARCHAR(255)
38
+ );
39
+
40
+ CREATE TABLE `Problems` (
41
+ `problem_id` INTEGER PRIMARY KEY,
42
+ `product_id` INTEGER NOT NULL,
43
+ `closure_authorised_by_staff_id` INTEGER NOT NULL,
44
+ `reported_by_staff_id` INTEGER NOT NULL,
45
+ `date_problem_reported` DATETIME NOT NULL,
46
+ `date_problem_closed` DATETIME,
47
+ `problem_description` VARCHAR(255),
48
+ `other_problem_details` VARCHAR(255),
49
+ FOREIGN KEY (`closure_authorised_by_staff_id` ) REFERENCES `Staff`(`staff_id` ),
50
+ FOREIGN KEY (`product_id` ) REFERENCES `Product`(`product_id` ),
51
+ FOREIGN KEY (`reported_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
52
+ );
53
+
54
+
55
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (1, 'Lacey', 'Bosco', 'm');
56
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (2, 'Dameon', 'Frami', 'x');
57
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (3, 'Ashley', 'Medhurst', 'w');
58
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (4, 'Kayla', 'Klein', 'p');
59
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (5, 'Jolie', 'Weber', 'q');
60
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (6, 'Kristian', 'Lynch', 'b');
61
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (7, 'Kenton', 'Champlin', 'p');
62
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (8, 'Magali', 'Schumm', 'd');
63
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (9, 'Junius', 'Treutel', 'j');
64
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (10, 'Christop', 'Berge', 'x');
65
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (11, 'Rylan', 'Homenick', 'x');
66
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (12, 'Stevie', 'Mante', 'j');
67
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (13, 'Lysanne', 'Turcotte', 'i');
68
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (14, 'Kenyatta', 'Klocko', 'e');
69
+ INSERT INTO Staff (`staff_id`, `staff_first_name`, `staff_last_name`, `other_staff_details`) VALUES (15, 'Israel', 'Dickens', 'w');
70
+
71
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (1, 'rose', 'k');
72
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (2, 'yellow', 'q');
73
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (3, 'chat', 'e');
74
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (4, 'wechat', 'r');
75
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (5, 'life', 'q');
76
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (6, 'keep', 'd');
77
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (7, 'messager', 'm');
78
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (8, 'hangout', 'u');
79
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (9, 'twitter', 'z');
80
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (10, 'blog', 'd');
81
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (11, 'snapchat', 'e');
82
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (12, 'doulingo', 'q');
83
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (13, 'learn', 'h');
84
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (14, 'teach', 'n');
85
+ INSERT INTO Product (`product_id`, `product_name`, `product_details`) VALUES (15, 'game', 'j');
86
+
87
+
88
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (1, 4, 4, 2, '1978-06-26 19:10:17', '2012-07-22 19:24:26', 'x', 'p');
89
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (2, 8, 3, 10, '1988-11-07 16:09:31', '1973-06-07 04:13:51', 'w', 'p');
90
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (3, 1, 4, 1, '1995-05-14 08:32:56', '1997-02-26 05:06:15', 'r', 'i');
91
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (4, 13, 8, 7, '1973-10-12 10:51:23', '1993-06-19 10:02:59', 'y', 'c');
92
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (5, 4, 12, 11, '1986-11-13 07:30:55', '2013-05-24 20:33:11', 'a', 'k');
93
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (6, 1, 5, 4, '2010-10-05 02:25:37', '1998-07-03 14:53:59', 'p', 'l');
94
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (7, 2, 2, 7, '1996-04-19 15:54:13', '1974-09-20 13:42:19', 'a', 'l');
95
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (8, 2, 4, 1, '1976-12-18 23:54:41', '1982-08-26 10:58:01', 'w', 'f');
96
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (9, 15, 14, 13, '2010-10-11 13:36:00', '1995-06-10 18:41:08', 'i', 'v');
97
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (10, 4, 13, 10, '1993-12-29 23:22:21', '1990-04-13 21:15:50', 'd', 's');
98
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (11, 5, 1, 14, '1970-02-23 17:46:12', '1971-02-06 15:23:23', 'd', 'v');
99
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (12, 6, 9, 2, '1970-05-20 15:38:46', '1997-10-18 20:09:57', 'j', 'c');
100
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (13, 1, 9, 5, '1971-06-15 02:50:52', '2004-06-20 01:08:25', 'c', 'f');
101
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (14, 1, 6, 13, '1977-10-22 15:48:13', '1970-09-05 08:04:43', 's', 's');
102
+ INSERT INTO Problems (`problem_id`, `product_id`, `closure_authorised_by_staff_id`, `reported_by_staff_id`, `date_problem_reported`, `date_problem_closed`, `problem_description`, `other_problem_details`) VALUES (15, 7, 9, 10, '1970-10-27 16:35:34', '1999-09-28 21:29:12', 'r', 'm');
103
+
104
+
105
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (1, 11, 11, 'Middleware', 'Solved', '2011-03-13 13:11:57', 't', 'k', 'p');
106
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (2, 11, 8, 'GUI', 'Solved', '1976-03-31 14:03:02', 'a', 'k', 's');
107
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (3, 12, 1, 'GUI', 'Solved', '1974-12-11 01:06:22', 'b', 'j', 'e');
108
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (4, 12, 12, 'GUI', 'Reported', '1993-04-02 11:07:29', 'a', 't', 'b');
109
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (5, 6, 12, 'Middleware', 'Reported', '1976-09-17 09:01:12', 'c', 'n', 'u');
110
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (6, 2, 13, 'GUI', 'Solved', '1983-07-01 02:12:36', 'h', 'g', 'n');
111
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (7, 13, 1, 'Datatabase', 'Solved', '1974-09-13 00:37:26', 's', 'c', 'v');
112
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (8, 4, 15, 'Datatabase', 'Solved', '1999-08-17 00:00:18', 'j', 'h', 'j');
113
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (9, 10, 13, 'GUI', 'Reported', '1993-06-21 22:33:35', 'p', 'i', 'f');
114
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (10, 6, 1, 'Middleware', 'Reported', '2001-05-14 10:03:53', 'd', 'x', 'd');
115
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (11, 1, 8, 'Datatabase', 'Solved', '1973-03-12 16:30:50', 'w', 'k', 'a');
116
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (12, 4, 10, 'Middleware', 'Solved', '1997-08-31 08:19:12', 'c', 'y', 'c');
117
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (13, 6, 10, 'Middleware', 'Reported', '2009-04-10 19:09:30', 'q', 't', 'o');
118
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (14, 8, 4, 'Datatabase', 'Reported', '2011-11-12 23:30:53', 'a', 's', 'c');
119
+ INSERT INTO Problem_Log (`problem_log_id`, `assigned_to_staff_id`, `problem_id`, `problem_category_code`, `problem_status_code`, `log_entry_date`, `log_entry_description`, `log_entry_fix`, `other_log_details`) VALUES (15, 5, 7, 'GUI', 'Reported', '1982-11-17 06:05:52', 'v', 'o', 'd');
database/university_basketball/schema.sql ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CREATE TABLE "basketball_match" (
2
+ "Team_ID" int,
3
+ "School_ID" int,
4
+ "Team_Name" text,
5
+ "ACC_Regular_Season" text,
6
+ "ACC_Percent" text,
7
+ "ACC_Home" text,
8
+ "ACC_Road" text,
9
+ "All_Games" text,
10
+ "All_Games_Percent" int,
11
+ "All_Home" text,
12
+ "All_Road" text,
13
+ "All_Neutral" text,
14
+ PRIMARY KEY ("Team_ID"),
15
+ FOREIGN KEY (`School_ID`) REFERENCES `university`(`School_ID`)
16
+ );
17
+
18
+ CREATE TABLE "university" (
19
+ "School_ID" int,
20
+ "School" text,
21
+ "Location" text,
22
+ "Founded" real,
23
+ "Affiliation" text,
24
+ "Enrollment" real,
25
+ "Nickname" text,
26
+ "Primary_conference" text,
27
+ PRIMARY KEY ("School_ID")
28
+ );
29
+
30
+ INSERT INTO "basketball_match" VALUES ("1","1","North Carolina","14–2",".875","6–2","8–0","35–2",".946","14–2","13–0","9–1");
31
+ INSERT INTO "basketball_match" VALUES ("2","2","Duke","13–3",".813","7–1","6–2","28–6",".824","15–1","8–2","5–3");
32
+ INSERT INTO "basketball_match" VALUES ("3","4","Clemson","10–6",".625","7–1","3–5","24–10",".706","14–2","6–5","4–3");
33
+ INSERT INTO "basketball_match" VALUES ("4","5","Virginia Tech","9–7",".563","6–2","3–5","21–14",".600","14–3","4–8","3–3");
34
+
35
+
36
+ INSERT INTO "university" VALUES ("1","University of Delaware","Newark, DE","1743","Public","19067","Fightin' Blue Hens","Colonial Athletic Association ( D-I )");
37
+ INSERT INTO "university" VALUES ("2","Lebanon Valley College","Annville, PA","1866","Private/Methodist","2100","Flying Dutchmen","MAC Commonwealth Conference ( D-III )");
38
+ INSERT INTO "university" VALUES ("3","University of Rhode Island","Kingston, RI","1892","Public","19095","Rams","Atlantic 10 Conference ( D-I )");
39
+ INSERT INTO "university" VALUES ("4","Rutgers University","New Brunswick, NJ","1766","Public","56868","Scarlet Knights","American Athletic Conference ( D-I )");
40
+ INSERT INTO "university" VALUES ("5","Stony Brook University","Stony Brook, NY","1957","Public","23997","Seawolves","America East Conference ( D-I )");
database/world_1/world_1.json ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "col_data": [
4
+ {
5
+ "column_name": "ID",
6
+ "data_type": "integer",
7
+ "default_column_name": "ID",
8
+ "default_value": null,
9
+ "not_null": 1,
10
+ "primary_key": 1
11
+ },
12
+ {
13
+ "column_name": "Name",
14
+ "data_type": "char(35)",
15
+ "default_column_name": "Name",
16
+ "default_value": "''",
17
+ "not_null": 1,
18
+ "primary_key": 0
19
+ },
20
+ {
21
+ "column_name": "CountryCode",
22
+ "data_type": "char(3)",
23
+ "default_column_name": "CountryCode",
24
+ "default_value": "''",
25
+ "not_null": 1,
26
+ "primary_key": 0
27
+ },
28
+ {
29
+ "column_name": "District",
30
+ "data_type": "char(20)",
31
+ "default_column_name": "District",
32
+ "default_value": "''",
33
+ "not_null": 1,
34
+ "primary_key": 0
35
+ },
36
+ {
37
+ "column_name": "Population",
38
+ "data_type": "integer",
39
+ "default_column_name": "Population",
40
+ "default_value": "'0'",
41
+ "not_null": 1,
42
+ "primary_key": 0
43
+ }
44
+ ],
45
+ "table": "city"
46
+ },
47
+ {
48
+ "col_data": [
49
+ {
50
+ "column_name": "name",
51
+ "data_type": "",
52
+ "default_column_name": "name",
53
+ "default_value": null,
54
+ "not_null": 0,
55
+ "primary_key": 0
56
+ },
57
+ {
58
+ "column_name": "seq",
59
+ "data_type": "",
60
+ "default_column_name": "seq",
61
+ "default_value": null,
62
+ "not_null": 0,
63
+ "primary_key": 0
64
+ }
65
+ ],
66
+ "table": "sqlite_sequence"
67
+ },
68
+ {
69
+ "col_data": [
70
+ {
71
+ "column_name": "Code",
72
+ "data_type": "char(3)",
73
+ "default_column_name": "Code",
74
+ "default_value": "''",
75
+ "not_null": 1,
76
+ "primary_key": 1
77
+ },
78
+ {
79
+ "column_name": "Name",
80
+ "data_type": "char(52)",
81
+ "default_column_name": "Name",
82
+ "default_value": "''",
83
+ "not_null": 1,
84
+ "primary_key": 0
85
+ },
86
+ {
87
+ "column_name": "Continent",
88
+ "data_type": "text",
89
+ "default_column_name": "Continent",
90
+ "default_value": "'Asia'",
91
+ "not_null": 1,
92
+ "primary_key": 0
93
+ },
94
+ {
95
+ "column_name": "Region",
96
+ "data_type": "char(26)",
97
+ "default_column_name": "Region",
98
+ "default_value": "''",
99
+ "not_null": 1,
100
+ "primary_key": 0
101
+ },
102
+ {
103
+ "column_name": "SurfaceArea",
104
+ "data_type": "float(10,2)",
105
+ "default_column_name": "SurfaceArea",
106
+ "default_value": "'0.00'",
107
+ "not_null": 1,
108
+ "primary_key": 0
109
+ },
110
+ {
111
+ "column_name": "IndepYear",
112
+ "data_type": "integer",
113
+ "default_column_name": "IndepYear",
114
+ "default_value": "NULL",
115
+ "not_null": 0,
116
+ "primary_key": 0
117
+ },
118
+ {
119
+ "column_name": "Population",
120
+ "data_type": "integer",
121
+ "default_column_name": "Population",
122
+ "default_value": "'0'",
123
+ "not_null": 1,
124
+ "primary_key": 0
125
+ },
126
+ {
127
+ "column_name": "LifeExpectancy",
128
+ "data_type": "float(3,1)",
129
+ "default_column_name": "LifeExpectancy",
130
+ "default_value": "NULL",
131
+ "not_null": 0,
132
+ "primary_key": 0
133
+ },
134
+ {
135
+ "column_name": "GNP",
136
+ "data_type": "float(10,2)",
137
+ "default_column_name": "GNP",
138
+ "default_value": "NULL",
139
+ "not_null": 0,
140
+ "primary_key": 0
141
+ },
142
+ {
143
+ "column_name": "GNPOld",
144
+ "data_type": "float(10,2)",
145
+ "default_column_name": "GNPOld",
146
+ "default_value": "NULL",
147
+ "not_null": 0,
148
+ "primary_key": 0
149
+ },
150
+ {
151
+ "column_name": "LocalName",
152
+ "data_type": "char(45)",
153
+ "default_column_name": "LocalName",
154
+ "default_value": "''",
155
+ "not_null": 1,
156
+ "primary_key": 0
157
+ },
158
+ {
159
+ "column_name": "GovernmentForm",
160
+ "data_type": "char(45)",
161
+ "default_column_name": "GovernmentForm",
162
+ "default_value": "''",
163
+ "not_null": 1,
164
+ "primary_key": 0
165
+ },
166
+ {
167
+ "column_name": "HeadOfState",
168
+ "data_type": "char(60)",
169
+ "default_column_name": "HeadOfState",
170
+ "default_value": "NULL",
171
+ "not_null": 0,
172
+ "primary_key": 0
173
+ },
174
+ {
175
+ "column_name": "Capital",
176
+ "data_type": "integer",
177
+ "default_column_name": "Capital",
178
+ "default_value": "NULL",
179
+ "not_null": 0,
180
+ "primary_key": 0
181
+ },
182
+ {
183
+ "column_name": "Code2",
184
+ "data_type": "char(2)",
185
+ "default_column_name": "Code2",
186
+ "default_value": "''",
187
+ "not_null": 1,
188
+ "primary_key": 0
189
+ }
190
+ ],
191
+ "table": "country"
192
+ },
193
+ {
194
+ "col_data": [
195
+ {
196
+ "column_name": "CountryCode",
197
+ "data_type": "char(3)",
198
+ "default_column_name": "CountryCode",
199
+ "default_value": "''",
200
+ "not_null": 1,
201
+ "primary_key": 1
202
+ },
203
+ {
204
+ "column_name": "Language",
205
+ "data_type": "char(30)",
206
+ "default_column_name": "Language",
207
+ "default_value": "''",
208
+ "not_null": 1,
209
+ "primary_key": 2
210
+ },
211
+ {
212
+ "column_name": "IsOfficial",
213
+ "data_type": "text",
214
+ "default_column_name": "IsOfficial",
215
+ "default_value": "'F'",
216
+ "not_null": 1,
217
+ "primary_key": 0
218
+ },
219
+ {
220
+ "column_name": "Percentage",
221
+ "data_type": "float(4,1)",
222
+ "default_column_name": "Percentage",
223
+ "default_value": "'0.0'",
224
+ "not_null": 1,
225
+ "primary_key": 0
226
+ }
227
+ ],
228
+ "table": "countrylanguage"
229
+ }
230
+ ]
test_database/aan_1/annotation.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "label_id": null,
3
+ "data": [],
4
+ "review_id": null
5
+ }
test_database/address_1/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ http://www.cs.jhu.edu/~yarowsky/jhu.sql
test_database/advertising_agencies/advertising_agencies.sqlite ADDED
Binary file (32.8 kB). View file
 
test_database/advertising_agencies/schema.sql ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+ CREATE TABLE `Agencies` (
3
+ `agency_id` INTEGER PRIMARY KEY,
4
+ `agency_details` VARCHAR(255) NOT NULL
5
+ );
6
+
7
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (1, 'Heller-Muller');
8
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (2, 'Bergstrom, Koss and Ebert');
9
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (3, 'Douglas-Langworth');
10
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (4, 'Fadel Group');
11
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (5, 'White, Corwin and Rath');
12
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (6, 'Beatty-Sipes');
13
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (7, 'West, Grady and Durgan');
14
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (8, 'Hickle-Durgan');
15
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (9, 'Grant, Jaskolski and Brekke');
16
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (10, 'Muller, Klein and Kunde');
17
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (11, 'Bins-Strosin');
18
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (12, 'Emard-Fisher');
19
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (13, 'Upton, Hayes and Schumm');
20
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (14, 'Renner LLC');
21
+ INSERT INTO Agencies (`agency_id`, `agency_details`) VALUES (15, 'Cartwright, Ullrich and Gulgowski');
22
+
23
+
24
+ CREATE TABLE `Staff` (
25
+ `staff_id` INTEGER PRIMARY KEY,
26
+ `agency_id` INTEGER NOT NULL,
27
+ `staff_details` VARCHAR(255) NOT NULL
28
+ );
29
+
30
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (1, 6, 'Rubie');
31
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (2, 7, 'Sheridan');
32
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (3, 10, 'Annabell');
33
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (4, 2, 'Kendra');
34
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (5, 7, 'Amara');
35
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (6, 15, 'Lolita');
36
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (7, 2, 'Hailie');
37
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (8, 14, 'Armando');
38
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (9, 10, 'Elroy');
39
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (10, 8, 'Parker');
40
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (11, 11, 'Clarissa');
41
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (12, 5, 'Joaquin');
42
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (13, 14, 'Antone');
43
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (14, 14, 'Marques');
44
+ INSERT INTO Staff (`staff_id`, `agency_id`, `staff_details`) VALUES (15, 15, 'Margaret');
45
+
46
+
47
+ CREATE TABLE `Clients` (
48
+ `client_id` INTEGER PRIMARY KEY,
49
+ `agency_id` INTEGER NOT NULL,
50
+ `sic_code` VARCHAR(10) NOT NULL,
51
+ `client_details` VARCHAR(255) NOT NULL,
52
+ FOREIGN KEY (`agency_id` ) REFERENCES `Agencies`(`agency_id` )
53
+ );INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (1, 8, 'Mutual', 'Alta');
54
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (2, 5, 'Bad', 'Mac');
55
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (3, 3, 'Bad', 'Johnpaul');
56
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (4, 5, 'Bad', 'Taurean');
57
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (5, 14, 'Bad', 'Lucie');
58
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (6, 8, 'Mutual', 'Rosa');
59
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (7, 9, 'Mutual', 'Kirsten');
60
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (8, 1, 'Mutual', 'Vincent');
61
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (9, 9, 'Mutual', 'Heber');
62
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (10, 9, 'Mutual', 'Callie');
63
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (11, 14, 'Bad', 'Vaughn');
64
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (12, 7, 'Mutual', 'Rae');
65
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (13, 9, 'Mutual', 'Eloise');
66
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (14, 11, 'Bad', 'Philip');
67
+ INSERT INTO Clients (`client_id`, `agency_id`, `sic_code`, `client_details`) VALUES (15, 1, 'Bad', 'Maximo');
68
+
69
+
70
+
71
+ CREATE TABLE `Invoices` (
72
+ `invoice_id` INTEGER PRIMARY KEY,
73
+ `client_id` INTEGER NOT NULL,
74
+ `invoice_status` VARCHAR(10) NOT NULL,
75
+ `invoice_details` VARCHAR(255) NOT NULL,
76
+ FOREIGN KEY (`client_id` ) REFERENCES `Clients`(`client_id` )
77
+ );
78
+ CREATE TABLE `Meetings` (
79
+ `meeting_id` INTEGER PRIMARY KEY,
80
+ `client_id` INTEGER NOT NULL,
81
+ `meeting_outcome` VARCHAR(10) NOT NULL,
82
+ `meeting_type` VARCHAR(10) NOT NULL,
83
+ `billable_yn` VARCHAR(1),
84
+ `start_date_time` DATETIME,
85
+ `end_date_time` DATETIME,
86
+ `purpose_of_meeting` VARCHAR(255),
87
+ `other_details` VARCHAR(255) NOT NULL,
88
+ FOREIGN KEY (`client_id` ) REFERENCES `Clients`(`client_id` )
89
+ );
90
+ CREATE TABLE `Payments` (
91
+ `payment_id` INTEGER NOT NULL ,
92
+ `invoice_id` INTEGER NOT NULL,
93
+ `payment_details` VARCHAR(255) NOT NULL,
94
+ FOREIGN KEY (`invoice_id` ) REFERENCES `Invoices`(`invoice_id` )
95
+ );
96
+
97
+ CREATE TABLE `Staff_in_Meetings` (
98
+ `meeting_id` INTEGER NOT NULL,
99
+ `staff_id` INTEGER NOT NULL,
100
+ FOREIGN KEY (`meeting_id` ) REFERENCES `Meetings`(`meeting_id` ),
101
+ FOREIGN KEY (`staff_id` ) REFERENCES `Staff`(`staff_id` )
102
+ );
103
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (1, 5, 'Working', 'excellent');
104
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (2, 9, 'Starting', 'good');
105
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (3, 15, 'Starting', 'excellent');
106
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (4, 8, 'Starting', 'ok');
107
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (5, 7, 'Finish', 'excellent');
108
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (6, 8, 'Working', 'excellent');
109
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (7, 7, 'Finish', 'excellent');
110
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (8, 14, 'Finish', 'excellent');
111
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (9, 12, 'Starting', 'good');
112
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (10, 2, 'Finish', 'excellent');
113
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (11, 11, 'Working', 'excellent');
114
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (12, 9, 'Starting', 'good');
115
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (13, 4, 'Starting', 'excellent');
116
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (14, 14, 'Working', 'excellent');
117
+ INSERT INTO Invoices (`invoice_id`, `client_id`, `invoice_status`, `invoice_details`) VALUES (15, 14, 'Working', 'excellent');
118
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (1, 15, 'Report', 'Team', '0', '2018-03-06 05:07:33', '2018-03-21 09:26:41', 'get proposal done', '0');
119
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (2, 3, 'Summary', 'Group', '0', '2018-03-16 02:24:10', '2018-03-21 17:57:59', 'vote for solutions', '0');
120
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (3, 4, 'Summary', 'Team', '1', '2018-03-06 21:02:06', '2018-03-01 05:10:01', 'get proposal done', '0');
121
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (4, 5, 'Vote results', 'Company', '1', '2018-03-10 05:03:46', '2018-02-25 23:20:12', 'weekly report', '0');
122
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (5, 14, 'Summary', 'Company', '1', '2018-02-26 18:35:24', '2018-03-12 18:48:55', 'weekly report', '0');
123
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (6, 8, 'Vote results', 'Team', '0', '2018-03-20 08:56:47', '2018-02-24 22:36:35', 'weekly report', 'absent staff');
124
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (7, 13, 'Vote results', 'Group', '1', '2018-03-01 22:20:09', '2018-03-21 04:24:57', 'vote for solutions', '0');
125
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (8, 8, 'Report', 'Company', '0', '2018-03-16 06:38:16', '2018-03-20 12:24:04', 'weekly report', '0');
126
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (9, 4, 'Report', 'Group', '1', '2018-03-18 15:35:54', '2018-03-05 13:33:21', 'weekly report', '0');
127
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (10, 7, 'Summary', 'Team', '0', '2018-02-27 07:43:53', '2018-02-27 02:40:21', 'vote for solutions', '0');
128
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (11, 6, 'Summary', 'Team', '1', '2018-03-21 19:18:39', '2018-03-17 15:38:01', 'get proposal done', '0');
129
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (12, 10, 'Summary', 'Company', '0', '2018-03-17 09:56:49', '2018-03-03 21:51:07', 'monthly report', 'absent staff');
130
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (13, 2, 'Report', 'Team', '1', '2018-02-28 15:39:03', '2018-03-17 13:09:45', 'weekly report', '0');
131
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (14, 2, 'Vote results', 'Group', '1', '2018-03-02 19:04:27', '2018-03-15 04:21:40', 'weekly report', '0');
132
+ INSERT INTO Meetings (`meeting_id`, `client_id`, `meeting_outcome`, `meeting_type`, `billable_yn`, `start_date_time`, `end_date_time`, `purpose_of_meeting`, `other_details`) VALUES (15, 2, 'Vote results', 'Company', '0', '2018-02-25 07:06:48', '2018-02-25 09:39:29', 'weekly report', '');
133
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (1, 3, 'MasterCard');
134
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (2, 5, 'Visa');
135
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (3, 8, 'Discover Card');
136
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (4, 11, 'MasterCard');
137
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (5, 12, 'Visa');
138
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (6, 9, 'Visa');
139
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (7, 14, 'Visa');
140
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (8, 2, 'American Express');
141
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (9, 8, 'Visa');
142
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (10, 8, 'Visa');
143
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (11, 12, 'Visa');
144
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (12, 11, 'Visa');
145
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (13, 2, 'MasterCard');
146
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (14, 6, 'Visa');
147
+ INSERT INTO Payments (`payment_id`, `invoice_id`, `payment_details`) VALUES (15, 3, 'Visa');
148
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (6, 7);
149
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (14, 3);
150
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (4, 5);
151
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (1, 11);
152
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (2, 10);
153
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (9, 1);
154
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (8, 3);
155
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (8, 7);
156
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (8, 6);
157
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (3, 5);
158
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (11, 2);
159
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (10, 12);
160
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (2, 8);
161
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (6, 4);
162
+ INSERT INTO Staff_in_Meetings (`meeting_id`, `staff_id`) VALUES (14, 3);
test_database/bakery_1/data_csv/README.BAKERY.TXT ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *****************************************************
2
+ CPE 365 Alex Dekhtyar
3
+ Cal Poly Computer Science Department
4
+ San Luis Obispo College of Engineering
5
+ California dekhtyar@csc.calpoly.edu
6
+ *****************************************************
7
+ BAKERY DATASET
8
+ Version 1.0
9
+ October 1, 2007
10
+ *****************************************************
11
+ Sources: this is a synthesized dataset.
12
+
13
+ ******************************************************
14
+
15
+ This file describes the contents of the BAKERY dataset
16
+ developed for the CPE 365, Introduction to Databases,
17
+ course at Cal Poly.
18
+
19
+ The dataset contains information about one month worth
20
+ of sales information for a small bakery shop. The sales
21
+ are made to known customers. The dataset contains
22
+ information about the customers, the assortments of
23
+ baked goods offered for sale and the purchases made.
24
+
25
+
26
+ General Conventions.
27
+
28
+ 1. All files in the dataset are CSV (comma-separated values) files.
29
+ 2. First line of each file provides the names of
30
+ columns. Second line may be empty, or may contain
31
+ the first row of the data.
32
+ 3. All string values are enclosed in single quotes (')
33
+
34
+
35
+ The dataset consists of the following files:
36
+
37
+ - customers.csv : information about the bakery's customers
38
+ - goods.csv : information about the baked goods offered
39
+ for sale by the bakery
40
+ - items.csv : itemized reciept infromation for purchases
41
+ - reciepts.csv : general reciept information for purchases
42
+
43
+
44
+ reciepts.csv stores information about individual reciepts
45
+ (purchases by customers). Each purchase may contain from
46
+ one two five items, regardless of whether any items
47
+ purchased are of the same kind (e.g., two "chocolate cakes"
48
+ will be billed as two separate items on the reciept).
49
+ items.csv contains itemized reciept information.
50
+
51
+
52
+ Individual files have the following formats.
53
+
54
+ **************************************************************************
55
+
56
+ customers.csv
57
+
58
+ Id: unique identifier of the customer
59
+ LastName: last name of the customer
60
+ FirstName: first name of the customer
61
+
62
+
63
+
64
+ **************************************************************************
65
+
66
+
67
+ goods.csv
68
+
69
+ Id : unique identifier of the baked good
70
+ Flavor: flavor/type of the good (e.g., "chocolate", "lemon")
71
+ Food: category of the good (e.g., "cake", "tart")
72
+ Price: price (in dollars)
73
+
74
+
75
+
76
+ **************************************************************************
77
+
78
+ items.csv
79
+
80
+ Reciept : reciept number (see reciepts.RecieptNumber)
81
+ Ordinal : position of the purchased item on the
82
+ reciepts. (i.e., first purchased item,
83
+ second purchased item, etc...)
84
+ Item : identifier of the item purchased (see goods.Id)
85
+
86
+
87
+
88
+ **************************************************************************
89
+
90
+ reciepts.csv
91
+
92
+ RecieptNumber : unique identifier of the reciept
93
+ Date : date of the purchase. The date is
94
+ in DD-Mon-YYY format, which is the
95
+ default Oracle's format for DATE data type.
96
+ CustomerId : id of the customer (see customers.Id)
97
+
98
+
99
+ **************************************************************************
100
+ **************************************************************************
101
+
102
+ Permission granted to use and distribute this dataset in its current form,
103
+ provided this file is kept unchanged and is distributed together with the
104
+ data.
105
+
106
+ Permission granted to modify and expand this dataset, provided this
107
+ file is updated accordingly with new information.
108
+
109
+ **************************************************************************
110
+ **************************************************************************
test_database/bakery_1/data_csv/customers.csv ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Id, LastName, FirstName
2
+ 1, 'LOGAN', 'JULIET'
3
+ 2, 'ARZT', 'TERRELL'
4
+ 3, 'ESPOSITA', 'TRAVIS'
5
+ 4, 'ENGLEY', 'SIXTA'
6
+ 5, 'DUNLOW', 'OSVALDO'
7
+ 6, 'SLINGLAND', 'JOSETTE'
8
+ 7, 'TOUSSAND', 'SHARRON'
9
+ 8, 'HELING', 'RUPERT'
10
+ 9, 'HAFFERKAMP', 'CUC'
11
+ 10, 'DUKELOW', 'CORETTA'
12
+ 11, 'STADICK', 'MIGDALIA'
13
+ 12, 'MCMAHAN', 'MELLIE'
14
+ 13, 'ARNN', 'KIP'
15
+ 14, 'SOPKO', 'RAYFORD'
16
+ 15, 'CALLENDAR', 'DAVID'
17
+ 16, 'CRUZEN', 'ARIANE'
18
+ 17, 'MESDAQ', 'CHARLENE'
19
+ 18, 'DOMKOWSKI', 'ALMETA'
20
+ 19, 'STENZ', 'NATACHA'
21
+ 20, 'ZEME', 'STEPHEN'
test_database/bakery_1/data_csv/customers_t.csv ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Id,LastName,FirstName
2
+ 1,LOGAN,JULIET
3
+ 2,ARZT,TERRELL
4
+ 3,ESPOSITA,TRAVIS
5
+ 4,ENGLEY,SIXTA
6
+ 5,DUNLOW,OSVALDO
7
+ 6,SLINGLAND,JOSETTE
8
+ 7,TOUSSAND,SHARRON
9
+ 8,HELING,RUPERT
10
+ 9,HAFFERKAMP,CUC
11
+ 10,DUKELOW,CORETTA
12
+ 11,STADICK,MIGDALIA
13
+ 12,MCMAHAN,MELLIE
14
+ 13,ARNN,KIP
15
+ 14,SOPKO,RAYFORD
16
+ 15,CALLENDAR,DAVID
17
+ 16,CRUZEN,ARIANE
18
+ 17,MESDAQ,CHARLENE
19
+ 18,DOMKOWSKI,ALMETA
20
+ 19,STENZ,NATACHA
21
+ 20,ZEME,STEPHEN
test_database/bakery_1/data_csv/goods.csv ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Id,Flavor,Food,Price
2
+ '20-BC-C-10','Chocolate','Cake',8.95
3
+ '20-BC-L-10','Lemon','Cake',8.95
4
+ '20-CA-7.5','Casino','Cake',15.95
5
+ '24-8x10','Opera','Cake',15.95
6
+ '25-STR-9','Strawberry','Cake',11.95
7
+ '26-8x10','Truffle','Cake',15.95
8
+ '45-CH','Chocolate','Eclair',3.25
9
+ '45-CO','Coffee','Eclair',3.5
10
+ '45-VA','Vanilla','Eclair',3.25
11
+ '46-11','Napoleon','Cake',13.49
12
+ '90-ALM-I','Almond','Tart',3.75
13
+ '90-APIE-10','Apple','Pie',5.25
14
+ '90-APP-11','Apple','Tart',3.25
15
+ '90-APR-PF','Apricot','Tart',3.25
16
+ '90-BER-11','Berry','Tart',3.25
17
+ '90-BLK-PF','Blackberry','Tart',3.25
18
+ '90-BLU-11','Blueberry','Tart',3.25
19
+ '90-CH-PF','Chocolate','Tart',3.75
20
+ '90-CHR-11','Cherry','Tart',3.25
21
+ '90-LEM-11','Lemon','Tart',3.25
22
+ '90-PEC-11','Pecan','Tart',3.75
23
+ '70-GA','Ganache','Cookie',1.15
24
+ '70-GON','Gongolais','Cookie',1.15
25
+ '70-R','Raspberry','Cookie',1.09
26
+ '70-LEM','Lemon','Cookie',0.79
27
+ '70-M-CH-DZ','Chocolate','Meringue',1.25
28
+ '70-M-VA-SM-DZ','Vanilla','Meringue',1.15
29
+ '70-MAR','Marzipan','Cookie',1.25
30
+ '70-TU','Tuile','Cookie',1.25
31
+ '70-W','Walnut','Cookie',0.79
32
+ '50-ALM','Almond','Croissant',1.45
33
+ '50-APP','Apple','Croissant',1.45
34
+ '50-APR','Apricot','Croissant',1.45
35
+ '50-CHS','Cheese','Croissant',1.75
36
+ '50-CH','Chocolate','Croissant',1.75
37
+ '51-APR','Apricot','Danish',1.15
38
+ '51-APP','Apple','Danish',1.15
39
+ '51-ATW','Almond','Twist',1.15
40
+ '51-BC','Almond','Bear Claw',1.95
41
+ '51-BLU','Blueberry','Danish',1.15
test_database/bakery_1/data_csv/goods_t.csv ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Id,Flavor,Food,Price
2
+ 20-BC-C-10,Chocolate,Cake,8.95
3
+ 20-BC-L-10,Lemon,Cake,8.95
4
+ 20-CA-7.5,Casino,Cake,15.95
5
+ 24-8x10,Opera,Cake,15.95
6
+ 25-STR-9,Strawberry,Cake,11.95
7
+ 26-8x10,Truffle,Cake,15.95
8
+ 45-CH,Chocolate,Eclair,3.25
9
+ 45-CO,Coffee,Eclair,3.5
10
+ 45-VA,Vanilla,Eclair,3.25
11
+ 46-11,Napoleon,Cake,13.49
12
+ 90-ALM-I,Almond,Tart,3.75
13
+ 90-APIE-10,Apple,Pie,5.25
14
+ 90-APP-11,Apple,Tart,3.25
15
+ 90-APR-PF,Apricot,Tart,3.25
16
+ 90-BER-11,Berry,Tart,3.25
17
+ 90-BLK-PF,Blackberry,Tart,3.25
18
+ 90-BLU-11,Blueberry,Tart,3.25
19
+ 90-CH-PF,Chocolate,Tart,3.75
20
+ 90-CHR-11,Cherry,Tart,3.25
21
+ 90-LEM-11,Lemon,Tart,3.25
22
+ 90-PEC-11,Pecan,Tart,3.75
23
+ 70-GA,Ganache,Cookie,1.15
24
+ 70-GON,Gongolais,Cookie,1.15
25
+ 70-R,Raspberry,Cookie,1.09
26
+ 70-LEM,Lemon,Cookie,0.79
27
+ 70-M-CH-DZ,Chocolate,Meringue,1.25
28
+ 70-M-VA-SM-DZ,Vanilla,Meringue,1.15
29
+ 70-MAR,Marzipan,Cookie,1.25
30
+ 70-TU,Tuile,Cookie,1.25
31
+ 70-W,Walnut,Cookie,0.79
32
+ 50-ALM,Almond,Croissant,1.45
33
+ 50-APP,Apple,Croissant,1.45
34
+ 50-APR,Apricot,Croissant,1.45
35
+ 50-CHS,Cheese,Croissant,1.75
36
+ 50-CH,Chocolate,Croissant,1.75
37
+ 51-APR,Apricot,Danish,1.15
38
+ 51-APP,Apple,Danish,1.15
39
+ 51-ATW,Almond,Twist,1.15
40
+ 51-BC,Almond,Bear Claw,1.95
41
+ 51-BLU,Blueberry,Danish,1.15
test_database/bakery_1/data_csv/items (3:11:18, 5:53 PM)_original.csv ADDED
@@ -0,0 +1,558 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Reciept, Ordinal, Item
2
+ 18129, 1, '70-TU'
3
+ 51991, 1, '90-APIE-10'
4
+ 51991, 2, '90-CH-PF'
5
+ 51991, 3, '90-APP-11'
6
+ 51991, 4, '26-8x10'
7
+ 83085, 1, '25-STR-9'
8
+ 83085, 2, '24-8x10'
9
+ 83085, 3, '90-APR-PF'
10
+ 83085, 4, '51-ATW'
11
+ 83085, 5, '26-8x10'
12
+ 70723, 1, '45-CO'
13
+ 13355, 1, '24-8x10'
14
+ 13355, 2, '70-LEM'
15
+ 13355, 3, '46-11'
16
+ 52761, 1, '90-ALM-I'
17
+ 52761, 2, '26-8x10'
18
+ 52761, 3, '50-CHS'
19
+ 52761, 4, '90-BLK-PF'
20
+ 52761, 5, '90-ALM-I'
21
+ 99002, 1, '50-CHS'
22
+ 99002, 2, '45-VA'
23
+ 58770, 1, '50-CHS'
24
+ 58770, 2, '46-11'
25
+ 58770, 3, '45-CH'
26
+ 58770, 4, '20-CA-7.5'
27
+ 84665, 1, '90-BER-11'
28
+ 55944, 1, '20-CA-7.5'
29
+ 55944, 2, '90-LEM-11'
30
+ 55944, 3, '70-R'
31
+ 55944, 4, '70-R'
32
+ 55944, 5, '50-CHS'
33
+ 42166, 1, '70-M-VA-SM-DZ'
34
+ 16034, 1, '46-11'
35
+ 16034, 2, '26-8x10'
36
+ 16034, 3, '45-CH'
37
+ 16034, 4, '70-R'
38
+ 16034, 5, '46-11'
39
+ 25906, 1, '25-STR-9'
40
+ 27741, 1, '90-BLK-PF'
41
+ 27741, 2, '51-BC'
42
+ 27741, 3, '90-APR-PF'
43
+ 64451, 1, '90-BER-11'
44
+ 64451, 2, '51-BC'
45
+ 64451, 3, '24-8x10'
46
+ 64451, 4, '90-BLK-PF'
47
+ 41028, 1, '90-BER-11'
48
+ 73716, 1, '90-PEC-11'
49
+ 73716, 2, '90-ALM-I'
50
+ 73716, 3, '70-LEM'
51
+ 73716, 4, '50-CH'
52
+ 76667, 1, '70-GON'
53
+ 76667, 2, '90-LEM-11'
54
+ 21040, 1, '70-R'
55
+ 21040, 2, '20-BC-L-10'
56
+ 21040, 3, '90-CH-PF'
57
+ 48332, 1, '70-GA'
58
+ 48332, 2, '70-R'
59
+ 35011, 1, '50-CHS'
60
+ 95962, 1, '90-APR-PF'
61
+ 95962, 2, '90-CHR-11'
62
+ 95962, 3, '50-CH'
63
+ 95962, 4, '45-VA'
64
+ 44798, 1, '90-APR-PF'
65
+ 44798, 2, '90-CH-PF'
66
+ 44798, 3, '90-APIE-10'
67
+ 44798, 4, '90-APP-11'
68
+ 44798, 5, '25-STR-9'
69
+ 60270, 1, '20-BC-L-10'
70
+ 60270, 2, '90-BLU-11'
71
+ 21162, 1, '90-APP-11'
72
+ 21162, 2, '70-TU'
73
+ 21162, 3, '90-APR-PF'
74
+ 77406, 1, '51-ATW'
75
+ 77406, 2, '90-BLK-PF'
76
+ 77406, 3, '50-APR'
77
+ 77406, 4, '50-APR'
78
+ 77406, 5, '24-8x10'
79
+ 32565, 1, '50-APP'
80
+ 32565, 2, '50-APP'
81
+ 32565, 3, '45-VA'
82
+ 36343, 1, '51-BC'
83
+ 36343, 2, '51-BC'
84
+ 36343, 3, '70-M-VA-SM-DZ'
85
+ 36343, 4, '50-ALM'
86
+ 96619, 1, '90-BLK-PF'
87
+ 86678, 1, '70-M-VA-SM-DZ'
88
+ 86678, 2, '90-LEM-11'
89
+ 44330, 1, '70-R'
90
+ 44330, 2, '90-BLU-11'
91
+ 91937, 1, '51-BC'
92
+ 91937, 2, '51-APR'
93
+ 21545, 1, '90-BER-11'
94
+ 21545, 2, '70-GA'
95
+ 21545, 3, '50-ALM'
96
+ 21545, 4, '90-BER-11'
97
+ 21545, 5, '45-VA'
98
+ 29226, 1, '90-PEC-11'
99
+ 29226, 2, '90-APIE-10'
100
+ 29226, 3, '51-BC'
101
+ 29226, 4, '70-W'
102
+ 29226, 5, '50-ALM'
103
+ 25121, 1, '50-CHS'
104
+ 25121, 2, '90-BER-11'
105
+ 25121, 3, '45-CH'
106
+ 54935, 1, '70-R'
107
+ 54935, 2, '45-CH'
108
+ 36423, 1, '45-VA'
109
+ 83437, 1, '90-LEM-11'
110
+ 83437, 2, '51-APR'
111
+ 49854, 1, '90-BER-11'
112
+ 49854, 2, '90-APP-11'
113
+ 99994, 1, '25-STR-9'
114
+ 99994, 2, '26-8x10'
115
+ 99994, 3, '90-PEC-11'
116
+ 99994, 4, '50-CH'
117
+ 21622, 1, '45-CO'
118
+ 64861, 1, '50-ALM'
119
+ 64861, 2, '46-11'
120
+ 33456, 1, '46-11'
121
+ 33456, 2, '90-BLK-PF'
122
+ 75468, 1, '70-M-CH-DZ'
123
+ 75468, 2, '70-M-CH-DZ'
124
+ 75468, 3, '90-CHR-11'
125
+ 56365, 1, '50-APR'
126
+ 91192, 1, '51-APP'
127
+ 91192, 2, '51-ATW'
128
+ 91192, 3, '50-APP'
129
+ 82056, 1, '90-APP-11'
130
+ 82056, 2, '50-CH'
131
+ 82056, 3, '90-BLK-PF'
132
+ 82056, 4, '45-CO'
133
+ 27192, 1, '70-R'
134
+ 27192, 2, '90-BLU-11'
135
+ 27192, 3, '70-TU'
136
+ 59716, 1, '51-APR'
137
+ 59716, 2, '70-MAR'
138
+ 59716, 3, '90-BLU-11'
139
+ 59716, 4, '45-CO'
140
+ 59716, 5, '90-APP-11'
141
+ 82795, 1, '90-APR-PF'
142
+ 26240, 1, '20-CA-7.5'
143
+ 56724, 1, '70-M-VA-SM-DZ'
144
+ 70796, 1, '45-CO'
145
+ 70796, 2, '20-BC-L-10'
146
+ 70796, 3, '45-CH'
147
+ 70796, 4, '90-BLU-11'
148
+ 37636, 1, '90-APR-PF'
149
+ 37636, 2, '90-CH-PF'
150
+ 37636, 3, '24-8x10'
151
+ 63998, 1, '70-M-VA-SM-DZ'
152
+ 48981, 1, '90-CHR-11'
153
+ 48981, 2, '50-CHS'
154
+ 66704, 1, '90-BER-11'
155
+ 66704, 2, '51-APR'
156
+ 66704, 3, '70-LEM'
157
+ 12698, 1, '51-APP'
158
+ 12698, 2, '70-R'
159
+ 12698, 3, '26-8x10'
160
+ 79287, 1, '90-PEC-11'
161
+ 79287, 2, '45-VA'
162
+ 79287, 3, '90-LEM-11'
163
+ 79287, 4, '90-APP-11'
164
+ 79287, 5, '51-BLU'
165
+ 55690, 1, '70-M-CH-DZ'
166
+ 55690, 2, '51-BLU'
167
+ 55690, 3, '90-APP-11'
168
+ 94371, 1, '51-BLU'
169
+ 26148, 1, '20-CA-7.5'
170
+ 26148, 2, '90-BLU-11'
171
+ 26148, 3, '51-BLU'
172
+ 26148, 4, '70-M-CH-DZ'
173
+ 11923, 1, '70-LEM'
174
+ 46598, 1, '70-R'
175
+ 46598, 2, '70-W'
176
+ 46598, 3, '70-R'
177
+ 76951, 1, '51-BLU'
178
+ 85858, 1, '20-CA-7.5'
179
+ 85858, 2, '70-M-VA-SM-DZ'
180
+ 85858, 3, '51-BLU'
181
+ 85881, 1, '90-APP-11'
182
+ 89937, 1, '51-BLU'
183
+ 89937, 2, '51-BC'
184
+ 89937, 3, '90-BER-11'
185
+ 89937, 4, '70-R'
186
+ 66227, 1, '90-APP-11'
187
+ 66227, 2, '90-APIE-10'
188
+ 66227, 3, '70-MAR'
189
+ 66227, 4, '90-BLK-PF'
190
+ 60240, 1, '90-APP-11'
191
+ 60240, 2, '50-ALM'
192
+ 86085, 1, '50-APR'
193
+ 86085, 2, '50-APP'
194
+ 86085, 3, '90-APR-PF'
195
+ 86085, 4, '51-ATW'
196
+ 67314, 1, '51-BC'
197
+ 67314, 2, '50-CHS'
198
+ 67314, 3, '70-TU'
199
+ 67314, 4, '20-CA-7.5'
200
+ 10013, 1, '70-M-CH-DZ'
201
+ 26741, 1, '70-GA'
202
+ 26741, 2, '50-APP'
203
+ 38157, 1, '70-MAR'
204
+ 38157, 2, '90-CHR-11'
205
+ 38157, 3, '70-LEM'
206
+ 38157, 4, '90-CHR-11'
207
+ 45873, 1, '70-M-VA-SM-DZ'
208
+ 37540, 1, '45-CO'
209
+ 37540, 2, '51-APR'
210
+ 11891, 1, '45-CO'
211
+ 11891, 2, '50-APR'
212
+ 11891, 3, '46-11'
213
+ 61797, 1, '70-GON'
214
+ 61797, 2, '90-CH-PF'
215
+ 61797, 3, '70-M-VA-SM-DZ'
216
+ 61797, 4, '70-M-CH-DZ'
217
+ 61797, 5, '90-BER-11'
218
+ 52369, 1, '90-CHR-11'
219
+ 52369, 2, '70-TU'
220
+ 96430, 1, '90-PEC-11'
221
+ 64301, 1, '70-W'
222
+ 64301, 2, '51-APR'
223
+ 64301, 3, '90-BER-11'
224
+ 45976, 1, '24-8x10'
225
+ 45976, 2, '51-BC'
226
+ 39605, 1, '90-BER-11'
227
+ 52013, 1, '70-W'
228
+ 52013, 2, '50-ALM'
229
+ 52013, 3, '90-ALM-I'
230
+ 52013, 4, '90-APP-11'
231
+ 88626, 1, '90-APP-11'
232
+ 53376, 1, '51-APR'
233
+ 53376, 2, '90-CHR-11'
234
+ 53376, 3, '90-APIE-10'
235
+ 53376, 4, '46-11'
236
+ 53376, 5, '90-BLU-11'
237
+ 15584, 1, '70-LEM'
238
+ 73437, 1, '70-M-CH-DZ'
239
+ 24200, 1, '50-CHS'
240
+ 92252, 1, '70-GON'
241
+ 92252, 2, '51-ATW'
242
+ 92252, 3, '51-BLU'
243
+ 92252, 4, '45-VA'
244
+ 92252, 5, '70-M-VA-SM-DZ'
245
+ 39685, 1, '50-APP'
246
+ 39685, 2, '70-M-CH-DZ'
247
+ 39685, 3, '90-APR-PF'
248
+ 39685, 4, '90-APIE-10'
249
+ 61378, 1, '51-APR'
250
+ 61378, 2, '90-BLK-PF'
251
+ 96761, 1, '26-8x10'
252
+ 96761, 2, '70-LEM'
253
+ 96761, 3, '50-CHS'
254
+ 96761, 4, '50-CHS'
255
+ 26198, 1, '70-GA'
256
+ 26198, 2, '70-GON'
257
+ 26198, 3, '50-APP'
258
+ 26198, 4, '20-BC-L-10'
259
+ 26198, 5, '70-R'
260
+ 78179, 1, '51-BLU'
261
+ 78179, 2, '50-CHS'
262
+ 78179, 3, '90-BLK-PF'
263
+ 78179, 4, '45-CO'
264
+ 78179, 5, '70-R'
265
+ 68890, 1, '50-ALM'
266
+ 75526, 1, '90-LEM-11'
267
+ 86162, 1, '51-BLU'
268
+ 86162, 2, '50-ALM'
269
+ 86162, 3, '50-CHS'
270
+ 86162, 4, '70-TU'
271
+ 86162, 5, '50-ALM'
272
+ 13496, 1, '70-W'
273
+ 13496, 2, '90-ALM-I'
274
+ 13496, 3, '51-ATW'
275
+ 13496, 4, '50-APP'
276
+ 60469, 1, '51-APR'
277
+ 50660, 1, '70-TU'
278
+ 50660, 2, '90-APIE-10'
279
+ 64553, 1, '51-BC'
280
+ 64553, 2, '90-APP-11'
281
+ 64553, 3, '70-LEM'
282
+ 64553, 4, '90-APP-11'
283
+ 57784, 1, '90-CH-PF'
284
+ 84258, 1, '51-APP'
285
+ 84258, 2, '51-BC'
286
+ 68199, 1, '51-APR'
287
+ 68199, 2, '24-8x10'
288
+ 78187, 1, '51-ATW'
289
+ 78187, 2, '51-ATW'
290
+ 81517, 1, '70-M-CH-DZ'
291
+ 81517, 2, '51-ATW'
292
+ 18951, 1, '51-APR'
293
+ 20411, 1, '90-APP-11'
294
+ 20411, 2, '90-APR-PF'
295
+ 55494, 1, '90-APP-11'
296
+ 55494, 2, '45-VA'
297
+ 42162, 1, '70-M-VA-SM-DZ'
298
+ 49977, 1, '26-8x10'
299
+ 49977, 2, '45-CO'
300
+ 49977, 3, '45-CH'
301
+ 49977, 4, '20-BC-L-10'
302
+ 89638, 1, '70-M-CH-DZ'
303
+ 89638, 2, '70-M-CH-DZ'
304
+ 89638, 3, '50-ALM'
305
+ 89638, 4, '90-CH-PF'
306
+ 73438, 1, '90-CHR-11'
307
+ 73438, 2, '50-APR'
308
+ 96258, 1, '90-CHR-11'
309
+ 96258, 2, '90-BLK-PF'
310
+ 96258, 3, '24-8x10'
311
+ 96258, 4, '70-LEM'
312
+ 19258, 1, '90-CHR-11'
313
+ 12800, 1, '70-LEM'
314
+ 12800, 2, '20-CA-7.5'
315
+ 12800, 3, '90-ALM-I'
316
+ 12800, 4, '90-APR-PF'
317
+ 81368, 1, '50-CHS'
318
+ 81368, 2, '90-CH-PF'
319
+ 70655, 1, '26-8x10'
320
+ 70655, 2, '70-TU'
321
+ 70655, 3, '90-ALM-I'
322
+ 70655, 4, '45-CO'
323
+ 19002, 1, '26-8x10'
324
+ 19002, 2, '25-STR-9'
325
+ 31874, 1, '70-MAR'
326
+ 31874, 2, '70-MAR'
327
+ 31874, 3, '90-LEM-11'
328
+ 72207, 1, '70-MAR'
329
+ 72207, 2, '20-CA-7.5'
330
+ 65091, 1, '51-APR'
331
+ 42833, 1, '90-CHR-11'
332
+ 42833, 2, '70-W'
333
+ 42833, 3, '51-BC'
334
+ 72949, 1, '51-APR'
335
+ 72949, 2, '70-LEM'
336
+ 72949, 3, '90-BLK-PF'
337
+ 72949, 4, '51-BLU'
338
+ 72949, 5, '70-W'
339
+ 46248, 1, '70-M-CH-DZ'
340
+ 38849, 1, '45-VA'
341
+ 38849, 2, '70-M-VA-SM-DZ'
342
+ 38849, 3, '46-11'
343
+ 38849, 4, '51-ATW'
344
+ 38849, 5, '50-APR'
345
+ 86861, 1, '20-BC-L-10'
346
+ 86861, 2, '50-CHS'
347
+ 86861, 3, '70-GON'
348
+ 86861, 4, '51-BLU'
349
+ 32701, 1, '90-BLK-PF'
350
+ 32701, 2, '50-APR'
351
+ 32701, 3, '20-CA-7.5'
352
+ 89182, 1, '51-APR'
353
+ 89182, 2, '51-APP'
354
+ 89182, 3, '70-LEM'
355
+ 89182, 4, '50-ALM'
356
+ 89182, 5, '45-CH'
357
+ 68753, 1, '70-R'
358
+ 68753, 2, '46-11'
359
+ 68753, 3, '51-BLU'
360
+ 68753, 4, '70-W'
361
+ 68753, 5, '51-BC'
362
+ 39217, 1, '90-ALM-I'
363
+ 39217, 2, '51-ATW'
364
+ 39217, 3, '45-CH'
365
+ 39217, 4, '90-BLK-PF'
366
+ 96531, 1, '24-8x10'
367
+ 96531, 2, '50-APP'
368
+ 96531, 3, '70-GA'
369
+ 96531, 4, '50-CHS'
370
+ 53922, 1, '70-M-VA-SM-DZ'
371
+ 53922, 2, '46-11'
372
+ 53922, 3, '20-BC-L-10'
373
+ 53922, 4, '70-GON'
374
+ 64477, 1, '70-TU'
375
+ 64477, 2, '90-PEC-11'
376
+ 64477, 3, '90-BLK-PF'
377
+ 64477, 4, '51-ATW'
378
+ 64477, 5, '20-CA-7.5'
379
+ 99058, 1, '50-CHS'
380
+ 99058, 2, '90-BLU-11'
381
+ 99058, 3, '51-BLU'
382
+ 99058, 4, '45-CH'
383
+ 99058, 5, '90-CHR-11'
384
+ 77032, 1, '50-CH'
385
+ 77032, 2, '46-11'
386
+ 77032, 3, '50-ALM'
387
+ 77032, 4, '70-MAR'
388
+ 15286, 1, '70-MAR'
389
+ 15286, 2, '50-APP'
390
+ 15286, 3, '90-APR-PF'
391
+ 59774, 1, '51-BLU'
392
+ 59774, 2, '70-GA'
393
+ 59774, 3, '90-ALM-I'
394
+ 35073, 1, '90-CHR-11'
395
+ 35073, 2, '70-GON'
396
+ 34910, 1, '51-APP'
397
+ 34910, 2, '24-8x10'
398
+ 34910, 3, '90-PEC-11'
399
+ 34910, 4, '51-BC'
400
+ 17685, 1, '20-BC-L-10'
401
+ 17685, 2, '50-APP'
402
+ 17685, 3, '51-ATW'
403
+ 17685, 4, '70-MAR'
404
+ 45062, 1, '50-CHS'
405
+ 45062, 2, '20-CA-7.5'
406
+ 39109, 1, '90-APIE-10'
407
+ 39109, 2, '90-APP-11'
408
+ 37063, 1, '70-TU'
409
+ 37063, 2, '90-APP-11'
410
+ 37063, 3, '70-W'
411
+ 18567, 1, '70-LEM'
412
+ 18567, 2, '90-APR-PF'
413
+ 37586, 1, '70-TU'
414
+ 62707, 1, '70-R'
415
+ 62707, 2, '90-CHR-11'
416
+ 62707, 3, '20-BC-L-10'
417
+ 62707, 4, '90-APR-PF'
418
+ 28117, 1, '90-CH-PF'
419
+ 28117, 2, '50-APP'
420
+ 28117, 3, '25-STR-9'
421
+ 64574, 1, '51-ATW'
422
+ 64574, 2, '70-TU'
423
+ 64574, 3, '70-W'
424
+ 40305, 1, '20-CA-7.5'
425
+ 40305, 2, '70-GA'
426
+ 33060, 1, '45-CO'
427
+ 33060, 2, '46-11'
428
+ 33060, 3, '90-BLK-PF'
429
+ 12396, 1, '90-BER-11'
430
+ 12396, 2, '70-M-VA-SM-DZ'
431
+ 12396, 3, '51-BC'
432
+ 12396, 4, '90-APR-PF'
433
+ 12396, 5, '20-CA-7.5'
434
+ 43103, 1, '70-M-CH-DZ'
435
+ 39575, 1, '70-M-CH-DZ'
436
+ 70162, 1, '46-11'
437
+ 70162, 2, '70-M-CH-DZ'
438
+ 70162, 3, '50-APR'
439
+ 70162, 4, '70-MAR'
440
+ 23034, 1, '70-M-CH-DZ'
441
+ 23034, 2, '90-APR-PF'
442
+ 79296, 1, '90-PEC-11'
443
+ 79296, 2, '50-APR'
444
+ 79296, 3, '90-ALM-I'
445
+ 79296, 4, '51-BC'
446
+ 79296, 5, '90-PEC-11'
447
+ 74741, 1, '90-APP-11'
448
+ 74741, 2, '51-APP'
449
+ 74741, 3, '70-MAR'
450
+ 98806, 1, '26-8x10'
451
+ 98806, 2, '50-APR'
452
+ 98806, 3, '90-APIE-10'
453
+ 98806, 4, '51-APP'
454
+ 43752, 1, '90-BLU-11'
455
+ 47353, 1, '90-APR-PF'
456
+ 47353, 2, '90-APIE-10'
457
+ 47353, 3, '70-TU'
458
+ 47353, 4, '90-BLK-PF'
459
+ 39829, 1, '20-BC-L-10'
460
+ 87454, 1, '90-APIE-10'
461
+ 87454, 2, '50-APP'
462
+ 76663, 1, '25-STR-9'
463
+ 76663, 2, '90-APP-11'
464
+ 85492, 1, '70-M-CH-DZ'
465
+ 85492, 2, '25-STR-9'
466
+ 85492, 3, '90-BLU-11'
467
+ 85492, 4, '70-M-CH-DZ'
468
+ 48647, 1, '51-BC'
469
+ 48647, 2, '90-APIE-10'
470
+ 48647, 3, '90-CHR-11'
471
+ 61008, 1, '20-CA-7.5'
472
+ 61008, 2, '90-APP-11'
473
+ 96402, 1, '50-ALM'
474
+ 96402, 2, '20-CA-7.5'
475
+ 96402, 3, '90-APP-11'
476
+ 35904, 1, '46-11'
477
+ 35904, 2, '90-APR-PF'
478
+ 49845, 1, '90-BLK-PF'
479
+ 49845, 2, '70-LEM'
480
+ 49845, 3, '50-CH'
481
+ 49845, 4, '90-PEC-11'
482
+ 46014, 1, '51-ATW'
483
+ 46014, 2, '90-APR-PF'
484
+ 46014, 3, '45-VA'
485
+ 46014, 4, '90-CH-PF'
486
+ 46014, 5, '90-BLK-PF'
487
+ 46876, 1, '70-TU'
488
+ 46876, 2, '51-APP'
489
+ 34579, 1, '24-8x10'
490
+ 34579, 2, '70-GA'
491
+ 34579, 3, '70-TU'
492
+ 34579, 4, '26-8x10'
493
+ 17729, 1, '51-ATW'
494
+ 17729, 2, '50-APP'
495
+ 17729, 3, '90-BLU-11'
496
+ 17729, 4, '90-CH-PF'
497
+ 17729, 5, '20-CA-7.5'
498
+ 74952, 1, '45-VA'
499
+ 74952, 2, '90-APP-11'
500
+ 74952, 3, '90-BER-11'
501
+ 61948, 1, '70-MAR'
502
+ 61948, 2, '70-GON'
503
+ 61948, 3, '45-CH'
504
+ 61948, 4, '24-8x10'
505
+ 41064, 1, '70-R'
506
+ 41064, 2, '90-APR-PF'
507
+ 41064, 3, '51-APP'
508
+ 17947, 1, '50-APP'
509
+ 20913, 1, '90-LEM-11'
510
+ 20913, 2, '70-M-CH-DZ'
511
+ 20913, 3, '70-LEM'
512
+ 95514, 1, '45-CH'
513
+ 95514, 2, '46-11'
514
+ 95514, 3, '70-MAR'
515
+ 95514, 4, '51-APP'
516
+ 24829, 1, '20-CA-7.5'
517
+ 44590, 1, '90-BLU-11'
518
+ 44590, 2, '24-8x10'
519
+ 44590, 3, '90-BLU-11'
520
+ 44590, 4, '45-CH'
521
+ 44590, 5, '90-PEC-11'
522
+ 65165, 1, '24-8x10'
523
+ 65165, 2, '90-ALM-I'
524
+ 65165, 3, '70-R'
525
+ 65165, 4, '45-CO'
526
+ 89588, 1, '90-BLK-PF'
527
+ 53240, 1, '25-STR-9'
528
+ 53240, 2, '51-ATW'
529
+ 46674, 1, '51-BC'
530
+ 67946, 1, '90-PEC-11'
531
+ 67946, 2, '90-APR-PF'
532
+ 67946, 3, '90-APR-PF'
533
+ 67946, 4, '90-LEM-11'
534
+ 31233, 1, '70-M-VA-SM-DZ'
535
+ 31233, 2, '50-APR'
536
+ 31233, 3, '50-CHS'
537
+ 31233, 4, '51-BC'
538
+ 15904, 1, '90-CH-PF'
539
+ 17488, 1, '50-APP'
540
+ 97097, 1, '70-MAR'
541
+ 50512, 1, '90-APP-11'
542
+ 11548, 1, '45-CO'
543
+ 11548, 2, '90-APIE-10'
544
+ 29908, 1, '45-VA'
545
+ 29908, 2, '51-ATW'
546
+ 29908, 3, '25-STR-9'
547
+ 29908, 4, '70-GA'
548
+ 29908, 5, '90-CH-PF'
549
+ 20127, 1, '90-BER-11'
550
+ 20127, 2, '70-M-CH-DZ'
551
+ 41963, 1, '50-ALM'
552
+ 41963, 2, '90-CH-PF'
553
+ 16532, 1, '50-APP'
554
+ 16532, 2, '70-MAR'
555
+ 16532, 3, '70-TU'
556
+ 16532, 4, '24-8x10'
557
+ 34378, 1, '90-CHR-11'
558
+ 34378, 2, '45-VA'
test_database/bakery_1/data_csv/items.csv ADDED
@@ -0,0 +1,558 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Receipt, Ordinal, Item
2
+ 18129, 1, '70-TU'
3
+ 51991, 1, '90-APIE-10'
4
+ 51991, 2, '90-CH-PF'
5
+ 51991, 3, '90-APP-11'
6
+ 51991, 4, '26-8x10'
7
+ 83085, 1, '25-STR-9'
8
+ 83085, 2, '24-8x10'
9
+ 83085, 3, '90-APR-PF'
10
+ 83085, 4, '51-ATW'
11
+ 83085, 5, '26-8x10'
12
+ 70723, 1, '45-CO'
13
+ 13355, 1, '24-8x10'
14
+ 13355, 2, '70-LEM'
15
+ 13355, 3, '46-11'
16
+ 52761, 1, '90-ALM-I'
17
+ 52761, 2, '26-8x10'
18
+ 52761, 3, '50-CHS'
19
+ 52761, 4, '90-BLK-PF'
20
+ 52761, 5, '90-ALM-I'
21
+ 99002, 1, '50-CHS'
22
+ 99002, 2, '45-VA'
23
+ 58770, 1, '50-CHS'
24
+ 58770, 2, '46-11'
25
+ 58770, 3, '45-CH'
26
+ 58770, 4, '20-CA-7.5'
27
+ 84665, 1, '90-BER-11'
28
+ 55944, 1, '20-CA-7.5'
29
+ 55944, 2, '90-LEM-11'
30
+ 55944, 3, '70-R'
31
+ 55944, 4, '70-R'
32
+ 55944, 5, '50-CHS'
33
+ 42166, 1, '70-M-VA-SM-DZ'
34
+ 16034, 1, '46-11'
35
+ 16034, 2, '26-8x10'
36
+ 16034, 3, '45-CH'
37
+ 16034, 4, '70-R'
38
+ 16034, 5, '46-11'
39
+ 25906, 1, '25-STR-9'
40
+ 27741, 1, '90-BLK-PF'
41
+ 27741, 2, '51-BC'
42
+ 27741, 3, '90-APR-PF'
43
+ 64451, 1, '90-BER-11'
44
+ 64451, 2, '51-BC'
45
+ 64451, 3, '24-8x10'
46
+ 64451, 4, '90-BLK-PF'
47
+ 41028, 1, '90-BER-11'
48
+ 73716, 1, '90-PEC-11'
49
+ 73716, 2, '90-ALM-I'
50
+ 73716, 3, '70-LEM'
51
+ 73716, 4, '50-CH'
52
+ 76667, 1, '70-GON'
53
+ 76667, 2, '90-LEM-11'
54
+ 21040, 1, '70-R'
55
+ 21040, 2, '20-BC-L-10'
56
+ 21040, 3, '90-CH-PF'
57
+ 48332, 1, '70-GA'
58
+ 48332, 2, '70-R'
59
+ 35011, 1, '50-CHS'
60
+ 95962, 1, '90-APR-PF'
61
+ 95962, 2, '90-CHR-11'
62
+ 95962, 3, '50-CH'
63
+ 95962, 4, '45-VA'
64
+ 44798, 1, '90-APR-PF'
65
+ 44798, 2, '90-CH-PF'
66
+ 44798, 3, '90-APIE-10'
67
+ 44798, 4, '90-APP-11'
68
+ 44798, 5, '25-STR-9'
69
+ 60270, 1, '20-BC-L-10'
70
+ 60270, 2, '90-BLU-11'
71
+ 21162, 1, '90-APP-11'
72
+ 21162, 2, '70-TU'
73
+ 21162, 3, '90-APR-PF'
74
+ 77406, 1, '51-ATW'
75
+ 77406, 2, '90-BLK-PF'
76
+ 77406, 3, '50-APR'
77
+ 77406, 4, '50-APR'
78
+ 77406, 5, '24-8x10'
79
+ 32565, 1, '50-APP'
80
+ 32565, 2, '50-APP'
81
+ 32565, 3, '45-VA'
82
+ 36343, 1, '51-BC'
83
+ 36343, 2, '51-BC'
84
+ 36343, 3, '70-M-VA-SM-DZ'
85
+ 36343, 4, '50-ALM'
86
+ 96619, 1, '90-BLK-PF'
87
+ 86678, 1, '70-M-VA-SM-DZ'
88
+ 86678, 2, '90-LEM-11'
89
+ 44330, 1, '70-R'
90
+ 44330, 2, '90-BLU-11'
91
+ 91937, 1, '51-BC'
92
+ 91937, 2, '51-APR'
93
+ 21545, 1, '90-BER-11'
94
+ 21545, 2, '70-GA'
95
+ 21545, 3, '50-ALM'
96
+ 21545, 4, '90-BER-11'
97
+ 21545, 5, '45-VA'
98
+ 29226, 1, '90-PEC-11'
99
+ 29226, 2, '90-APIE-10'
100
+ 29226, 3, '51-BC'
101
+ 29226, 4, '70-W'
102
+ 29226, 5, '50-ALM'
103
+ 25121, 1, '50-CHS'
104
+ 25121, 2, '90-BER-11'
105
+ 25121, 3, '45-CH'
106
+ 54935, 1, '70-R'
107
+ 54935, 2, '45-CH'
108
+ 36423, 1, '45-VA'
109
+ 83437, 1, '90-LEM-11'
110
+ 83437, 2, '51-APR'
111
+ 49854, 1, '90-BER-11'
112
+ 49854, 2, '90-APP-11'
113
+ 99994, 1, '25-STR-9'
114
+ 99994, 2, '26-8x10'
115
+ 99994, 3, '90-PEC-11'
116
+ 99994, 4, '50-CH'
117
+ 21622, 1, '45-CO'
118
+ 64861, 1, '50-ALM'
119
+ 64861, 2, '46-11'
120
+ 33456, 1, '46-11'
121
+ 33456, 2, '90-BLK-PF'
122
+ 75468, 1, '70-M-CH-DZ'
123
+ 75468, 2, '70-M-CH-DZ'
124
+ 75468, 3, '90-CHR-11'
125
+ 56365, 1, '50-APR'
126
+ 91192, 1, '51-APP'
127
+ 91192, 2, '51-ATW'
128
+ 91192, 3, '50-APP'
129
+ 82056, 1, '90-APP-11'
130
+ 82056, 2, '50-CH'
131
+ 82056, 3, '90-BLK-PF'
132
+ 82056, 4, '45-CO'
133
+ 27192, 1, '70-R'
134
+ 27192, 2, '90-BLU-11'
135
+ 27192, 3, '70-TU'
136
+ 59716, 1, '51-APR'
137
+ 59716, 2, '70-MAR'
138
+ 59716, 3, '90-BLU-11'
139
+ 59716, 4, '45-CO'
140
+ 59716, 5, '90-APP-11'
141
+ 82795, 1, '90-APR-PF'
142
+ 26240, 1, '20-CA-7.5'
143
+ 56724, 1, '70-M-VA-SM-DZ'
144
+ 70796, 1, '45-CO'
145
+ 70796, 2, '20-BC-L-10'
146
+ 70796, 3, '45-CH'
147
+ 70796, 4, '90-BLU-11'
148
+ 37636, 1, '90-APR-PF'
149
+ 37636, 2, '90-CH-PF'
150
+ 37636, 3, '24-8x10'
151
+ 63998, 1, '70-M-VA-SM-DZ'
152
+ 48981, 1, '90-CHR-11'
153
+ 48981, 2, '50-CHS'
154
+ 66704, 1, '90-BER-11'
155
+ 66704, 2, '51-APR'
156
+ 66704, 3, '70-LEM'
157
+ 12698, 1, '51-APP'
158
+ 12698, 2, '70-R'
159
+ 12698, 3, '26-8x10'
160
+ 79287, 1, '90-PEC-11'
161
+ 79287, 2, '45-VA'
162
+ 79287, 3, '90-LEM-11'
163
+ 79287, 4, '90-APP-11'
164
+ 79287, 5, '51-BLU'
165
+ 55690, 1, '70-M-CH-DZ'
166
+ 55690, 2, '51-BLU'
167
+ 55690, 3, '90-APP-11'
168
+ 94371, 1, '51-BLU'
169
+ 26148, 1, '20-CA-7.5'
170
+ 26148, 2, '90-BLU-11'
171
+ 26148, 3, '51-BLU'
172
+ 26148, 4, '70-M-CH-DZ'
173
+ 11923, 1, '70-LEM'
174
+ 46598, 1, '70-R'
175
+ 46598, 2, '70-W'
176
+ 46598, 3, '70-R'
177
+ 76951, 1, '51-BLU'
178
+ 85858, 1, '20-CA-7.5'
179
+ 85858, 2, '70-M-VA-SM-DZ'
180
+ 85858, 3, '51-BLU'
181
+ 85881, 1, '90-APP-11'
182
+ 89937, 1, '51-BLU'
183
+ 89937, 2, '51-BC'
184
+ 89937, 3, '90-BER-11'
185
+ 89937, 4, '70-R'
186
+ 66227, 1, '90-APP-11'
187
+ 66227, 2, '90-APIE-10'
188
+ 66227, 3, '70-MAR'
189
+ 66227, 4, '90-BLK-PF'
190
+ 60240, 1, '90-APP-11'
191
+ 60240, 2, '50-ALM'
192
+ 86085, 1, '50-APR'
193
+ 86085, 2, '50-APP'
194
+ 86085, 3, '90-APR-PF'
195
+ 86085, 4, '51-ATW'
196
+ 67314, 1, '51-BC'
197
+ 67314, 2, '50-CHS'
198
+ 67314, 3, '70-TU'
199
+ 67314, 4, '20-CA-7.5'
200
+ 10013, 1, '70-M-CH-DZ'
201
+ 26741, 1, '70-GA'
202
+ 26741, 2, '50-APP'
203
+ 38157, 1, '70-MAR'
204
+ 38157, 2, '90-CHR-11'
205
+ 38157, 3, '70-LEM'
206
+ 38157, 4, '90-CHR-11'
207
+ 45873, 1, '70-M-VA-SM-DZ'
208
+ 37540, 1, '45-CO'
209
+ 37540, 2, '51-APR'
210
+ 11891, 1, '45-CO'
211
+ 11891, 2, '50-APR'
212
+ 11891, 3, '46-11'
213
+ 61797, 1, '70-GON'
214
+ 61797, 2, '90-CH-PF'
215
+ 61797, 3, '70-M-VA-SM-DZ'
216
+ 61797, 4, '70-M-CH-DZ'
217
+ 61797, 5, '90-BER-11'
218
+ 52369, 1, '90-CHR-11'
219
+ 52369, 2, '70-TU'
220
+ 96430, 1, '90-PEC-11'
221
+ 64301, 1, '70-W'
222
+ 64301, 2, '51-APR'
223
+ 64301, 3, '90-BER-11'
224
+ 45976, 1, '24-8x10'
225
+ 45976, 2, '51-BC'
226
+ 39605, 1, '90-BER-11'
227
+ 52013, 1, '70-W'
228
+ 52013, 2, '50-ALM'
229
+ 52013, 3, '90-ALM-I'
230
+ 52013, 4, '90-APP-11'
231
+ 88626, 1, '90-APP-11'
232
+ 53376, 1, '51-APR'
233
+ 53376, 2, '90-CHR-11'
234
+ 53376, 3, '90-APIE-10'
235
+ 53376, 4, '46-11'
236
+ 53376, 5, '90-BLU-11'
237
+ 15584, 1, '70-LEM'
238
+ 73437, 1, '70-M-CH-DZ'
239
+ 24200, 1, '50-CHS'
240
+ 92252, 1, '70-GON'
241
+ 92252, 2, '51-ATW'
242
+ 92252, 3, '51-BLU'
243
+ 92252, 4, '45-VA'
244
+ 92252, 5, '70-M-VA-SM-DZ'
245
+ 39685, 1, '50-APP'
246
+ 39685, 2, '70-M-CH-DZ'
247
+ 39685, 3, '90-APR-PF'
248
+ 39685, 4, '90-APIE-10'
249
+ 61378, 1, '51-APR'
250
+ 61378, 2, '90-BLK-PF'
251
+ 96761, 1, '26-8x10'
252
+ 96761, 2, '70-LEM'
253
+ 96761, 3, '50-CHS'
254
+ 96761, 4, '50-CHS'
255
+ 26198, 1, '70-GA'
256
+ 26198, 2, '70-GON'
257
+ 26198, 3, '50-APP'
258
+ 26198, 4, '20-BC-L-10'
259
+ 26198, 5, '70-R'
260
+ 78179, 1, '51-BLU'
261
+ 78179, 2, '50-CHS'
262
+ 78179, 3, '90-BLK-PF'
263
+ 78179, 4, '45-CO'
264
+ 78179, 5, '70-R'
265
+ 68890, 1, '50-ALM'
266
+ 75526, 1, '90-LEM-11'
267
+ 86162, 1, '51-BLU'
268
+ 86162, 2, '50-ALM'
269
+ 86162, 3, '50-CHS'
270
+ 86162, 4, '70-TU'
271
+ 86162, 5, '50-ALM'
272
+ 13496, 1, '70-W'
273
+ 13496, 2, '90-ALM-I'
274
+ 13496, 3, '51-ATW'
275
+ 13496, 4, '50-APP'
276
+ 60469, 1, '51-APR'
277
+ 50660, 1, '70-TU'
278
+ 50660, 2, '90-APIE-10'
279
+ 64553, 1, '51-BC'
280
+ 64553, 2, '90-APP-11'
281
+ 64553, 3, '70-LEM'
282
+ 64553, 4, '90-APP-11'
283
+ 57784, 1, '90-CH-PF'
284
+ 84258, 1, '51-APP'
285
+ 84258, 2, '51-BC'
286
+ 68199, 1, '51-APR'
287
+ 68199, 2, '24-8x10'
288
+ 78187, 1, '51-ATW'
289
+ 78187, 2, '51-ATW'
290
+ 81517, 1, '70-M-CH-DZ'
291
+ 81517, 2, '51-ATW'
292
+ 18951, 1, '51-APR'
293
+ 20411, 1, '90-APP-11'
294
+ 20411, 2, '90-APR-PF'
295
+ 55494, 1, '90-APP-11'
296
+ 55494, 2, '45-VA'
297
+ 42162, 1, '70-M-VA-SM-DZ'
298
+ 49977, 1, '26-8x10'
299
+ 49977, 2, '45-CO'
300
+ 49977, 3, '45-CH'
301
+ 49977, 4, '20-BC-L-10'
302
+ 89638, 1, '70-M-CH-DZ'
303
+ 89638, 2, '70-M-CH-DZ'
304
+ 89638, 3, '50-ALM'
305
+ 89638, 4, '90-CH-PF'
306
+ 73438, 1, '90-CHR-11'
307
+ 73438, 2, '50-APR'
308
+ 96258, 1, '90-CHR-11'
309
+ 96258, 2, '90-BLK-PF'
310
+ 96258, 3, '24-8x10'
311
+ 96258, 4, '70-LEM'
312
+ 19258, 1, '90-CHR-11'
313
+ 12800, 1, '70-LEM'
314
+ 12800, 2, '20-CA-7.5'
315
+ 12800, 3, '90-ALM-I'
316
+ 12800, 4, '90-APR-PF'
317
+ 81368, 1, '50-CHS'
318
+ 81368, 2, '90-CH-PF'
319
+ 70655, 1, '26-8x10'
320
+ 70655, 2, '70-TU'
321
+ 70655, 3, '90-ALM-I'
322
+ 70655, 4, '45-CO'
323
+ 19002, 1, '26-8x10'
324
+ 19002, 2, '25-STR-9'
325
+ 31874, 1, '70-MAR'
326
+ 31874, 2, '70-MAR'
327
+ 31874, 3, '90-LEM-11'
328
+ 72207, 1, '70-MAR'
329
+ 72207, 2, '20-CA-7.5'
330
+ 65091, 1, '51-APR'
331
+ 42833, 1, '90-CHR-11'
332
+ 42833, 2, '70-W'
333
+ 42833, 3, '51-BC'
334
+ 72949, 1, '51-APR'
335
+ 72949, 2, '70-LEM'
336
+ 72949, 3, '90-BLK-PF'
337
+ 72949, 4, '51-BLU'
338
+ 72949, 5, '70-W'
339
+ 46248, 1, '70-M-CH-DZ'
340
+ 38849, 1, '45-VA'
341
+ 38849, 2, '70-M-VA-SM-DZ'
342
+ 38849, 3, '46-11'
343
+ 38849, 4, '51-ATW'
344
+ 38849, 5, '50-APR'
345
+ 86861, 1, '20-BC-L-10'
346
+ 86861, 2, '50-CHS'
347
+ 86861, 3, '70-GON'
348
+ 86861, 4, '51-BLU'
349
+ 32701, 1, '90-BLK-PF'
350
+ 32701, 2, '50-APR'
351
+ 32701, 3, '20-CA-7.5'
352
+ 89182, 1, '51-APR'
353
+ 89182, 2, '51-APP'
354
+ 89182, 3, '70-LEM'
355
+ 89182, 4, '50-ALM'
356
+ 89182, 5, '45-CH'
357
+ 68753, 1, '70-R'
358
+ 68753, 2, '46-11'
359
+ 68753, 3, '51-BLU'
360
+ 68753, 4, '70-W'
361
+ 68753, 5, '51-BC'
362
+ 39217, 1, '90-ALM-I'
363
+ 39217, 2, '51-ATW'
364
+ 39217, 3, '45-CH'
365
+ 39217, 4, '90-BLK-PF'
366
+ 96531, 1, '24-8x10'
367
+ 96531, 2, '50-APP'
368
+ 96531, 3, '70-GA'
369
+ 96531, 4, '50-CHS'
370
+ 53922, 1, '70-M-VA-SM-DZ'
371
+ 53922, 2, '46-11'
372
+ 53922, 3, '20-BC-L-10'
373
+ 53922, 4, '70-GON'
374
+ 64477, 1, '70-TU'
375
+ 64477, 2, '90-PEC-11'
376
+ 64477, 3, '90-BLK-PF'
377
+ 64477, 4, '51-ATW'
378
+ 64477, 5, '20-CA-7.5'
379
+ 99058, 1, '50-CHS'
380
+ 99058, 2, '90-BLU-11'
381
+ 99058, 3, '51-BLU'
382
+ 99058, 4, '45-CH'
383
+ 99058, 5, '90-CHR-11'
384
+ 77032, 1, '50-CH'
385
+ 77032, 2, '46-11'
386
+ 77032, 3, '50-ALM'
387
+ 77032, 4, '70-MAR'
388
+ 15286, 1, '70-MAR'
389
+ 15286, 2, '50-APP'
390
+ 15286, 3, '90-APR-PF'
391
+ 59774, 1, '51-BLU'
392
+ 59774, 2, '70-GA'
393
+ 59774, 3, '90-ALM-I'
394
+ 35073, 1, '90-CHR-11'
395
+ 35073, 2, '70-GON'
396
+ 34910, 1, '51-APP'
397
+ 34910, 2, '24-8x10'
398
+ 34910, 3, '90-PEC-11'
399
+ 34910, 4, '51-BC'
400
+ 17685, 1, '20-BC-L-10'
401
+ 17685, 2, '50-APP'
402
+ 17685, 3, '51-ATW'
403
+ 17685, 4, '70-MAR'
404
+ 45062, 1, '50-CHS'
405
+ 45062, 2, '20-CA-7.5'
406
+ 39109, 1, '90-APIE-10'
407
+ 39109, 2, '90-APP-11'
408
+ 37063, 1, '70-TU'
409
+ 37063, 2, '90-APP-11'
410
+ 37063, 3, '70-W'
411
+ 18567, 1, '70-LEM'
412
+ 18567, 2, '90-APR-PF'
413
+ 37586, 1, '70-TU'
414
+ 62707, 1, '70-R'
415
+ 62707, 2, '90-CHR-11'
416
+ 62707, 3, '20-BC-L-10'
417
+ 62707, 4, '90-APR-PF'
418
+ 28117, 1, '90-CH-PF'
419
+ 28117, 2, '50-APP'
420
+ 28117, 3, '25-STR-9'
421
+ 64574, 1, '51-ATW'
422
+ 64574, 2, '70-TU'
423
+ 64574, 3, '70-W'
424
+ 40305, 1, '20-CA-7.5'
425
+ 40305, 2, '70-GA'
426
+ 33060, 1, '45-CO'
427
+ 33060, 2, '46-11'
428
+ 33060, 3, '90-BLK-PF'
429
+ 12396, 1, '90-BER-11'
430
+ 12396, 2, '70-M-VA-SM-DZ'
431
+ 12396, 3, '51-BC'
432
+ 12396, 4, '90-APR-PF'
433
+ 12396, 5, '20-CA-7.5'
434
+ 43103, 1, '70-M-CH-DZ'
435
+ 39575, 1, '70-M-CH-DZ'
436
+ 70162, 1, '46-11'
437
+ 70162, 2, '70-M-CH-DZ'
438
+ 70162, 3, '50-APR'
439
+ 70162, 4, '70-MAR'
440
+ 23034, 1, '70-M-CH-DZ'
441
+ 23034, 2, '90-APR-PF'
442
+ 79296, 1, '90-PEC-11'
443
+ 79296, 2, '50-APR'
444
+ 79296, 3, '90-ALM-I'
445
+ 79296, 4, '51-BC'
446
+ 79296, 5, '90-PEC-11'
447
+ 74741, 1, '90-APP-11'
448
+ 74741, 2, '51-APP'
449
+ 74741, 3, '70-MAR'
450
+ 98806, 1, '26-8x10'
451
+ 98806, 2, '50-APR'
452
+ 98806, 3, '90-APIE-10'
453
+ 98806, 4, '51-APP'
454
+ 43752, 1, '90-BLU-11'
455
+ 47353, 1, '90-APR-PF'
456
+ 47353, 2, '90-APIE-10'
457
+ 47353, 3, '70-TU'
458
+ 47353, 4, '90-BLK-PF'
459
+ 39829, 1, '20-BC-L-10'
460
+ 87454, 1, '90-APIE-10'
461
+ 87454, 2, '50-APP'
462
+ 76663, 1, '25-STR-9'
463
+ 76663, 2, '90-APP-11'
464
+ 85492, 1, '70-M-CH-DZ'
465
+ 85492, 2, '25-STR-9'
466
+ 85492, 3, '90-BLU-11'
467
+ 85492, 4, '70-M-CH-DZ'
468
+ 48647, 1, '51-BC'
469
+ 48647, 2, '90-APIE-10'
470
+ 48647, 3, '90-CHR-11'
471
+ 61008, 1, '20-CA-7.5'
472
+ 61008, 2, '90-APP-11'
473
+ 96402, 1, '50-ALM'
474
+ 96402, 2, '20-CA-7.5'
475
+ 96402, 3, '90-APP-11'
476
+ 35904, 1, '46-11'
477
+ 35904, 2, '90-APR-PF'
478
+ 49845, 1, '90-BLK-PF'
479
+ 49845, 2, '70-LEM'
480
+ 49845, 3, '50-CH'
481
+ 49845, 4, '90-PEC-11'
482
+ 46014, 1, '51-ATW'
483
+ 46014, 2, '90-APR-PF'
484
+ 46014, 3, '45-VA'
485
+ 46014, 4, '90-CH-PF'
486
+ 46014, 5, '90-BLK-PF'
487
+ 46876, 1, '70-TU'
488
+ 46876, 2, '51-APP'
489
+ 34579, 1, '24-8x10'
490
+ 34579, 2, '70-GA'
491
+ 34579, 3, '70-TU'
492
+ 34579, 4, '26-8x10'
493
+ 17729, 1, '51-ATW'
494
+ 17729, 2, '50-APP'
495
+ 17729, 3, '90-BLU-11'
496
+ 17729, 4, '90-CH-PF'
497
+ 17729, 5, '20-CA-7.5'
498
+ 74952, 1, '45-VA'
499
+ 74952, 2, '90-APP-11'
500
+ 74952, 3, '90-BER-11'
501
+ 61948, 1, '70-MAR'
502
+ 61948, 2, '70-GON'
503
+ 61948, 3, '45-CH'
504
+ 61948, 4, '24-8x10'
505
+ 41064, 1, '70-R'
506
+ 41064, 2, '90-APR-PF'
507
+ 41064, 3, '51-APP'
508
+ 17947, 1, '50-APP'
509
+ 20913, 1, '90-LEM-11'
510
+ 20913, 2, '70-M-CH-DZ'
511
+ 20913, 3, '70-LEM'
512
+ 95514, 1, '45-CH'
513
+ 95514, 2, '46-11'
514
+ 95514, 3, '70-MAR'
515
+ 95514, 4, '51-APP'
516
+ 24829, 1, '20-CA-7.5'
517
+ 44590, 1, '90-BLU-11'
518
+ 44590, 2, '24-8x10'
519
+ 44590, 3, '90-BLU-11'
520
+ 44590, 4, '45-CH'
521
+ 44590, 5, '90-PEC-11'
522
+ 65165, 1, '24-8x10'
523
+ 65165, 2, '90-ALM-I'
524
+ 65165, 3, '70-R'
525
+ 65165, 4, '45-CO'
526
+ 89588, 1, '90-BLK-PF'
527
+ 53240, 1, '25-STR-9'
528
+ 53240, 2, '51-ATW'
529
+ 46674, 1, '51-BC'
530
+ 67946, 1, '90-PEC-11'
531
+ 67946, 2, '90-APR-PF'
532
+ 67946, 3, '90-APR-PF'
533
+ 67946, 4, '90-LEM-11'
534
+ 31233, 1, '70-M-VA-SM-DZ'
535
+ 31233, 2, '50-APR'
536
+ 31233, 3, '50-CHS'
537
+ 31233, 4, '51-BC'
538
+ 15904, 1, '90-CH-PF'
539
+ 17488, 1, '50-APP'
540
+ 97097, 1, '70-MAR'
541
+ 50512, 1, '90-APP-11'
542
+ 11548, 1, '45-CO'
543
+ 11548, 2, '90-APIE-10'
544
+ 29908, 1, '45-VA'
545
+ 29908, 2, '51-ATW'
546
+ 29908, 3, '25-STR-9'
547
+ 29908, 4, '70-GA'
548
+ 29908, 5, '90-CH-PF'
549
+ 20127, 1, '90-BER-11'
550
+ 20127, 2, '70-M-CH-DZ'
551
+ 41963, 1, '50-ALM'
552
+ 41963, 2, '90-CH-PF'
553
+ 16532, 1, '50-APP'
554
+ 16532, 2, '70-MAR'
555
+ 16532, 3, '70-TU'
556
+ 16532, 4, '24-8x10'
557
+ 34378, 1, '90-CHR-11'
558
+ 34378, 2, '45-VA'
test_database/bakery_1/data_csv/items_t.csv ADDED
@@ -0,0 +1,558 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Receipt,Ordinal,Item
2
+ 18129,1,70-TU
3
+ 51991,1,90-APIE-10
4
+ 51991,2,90-CH-PF
5
+ 51991,3,90-APP-11
6
+ 51991,4,26-8x10
7
+ 83085,1,25-STR-9
8
+ 83085,2,24-8x10
9
+ 83085,3,90-APR-PF
10
+ 83085,4,51-ATW
11
+ 83085,5,26-8x10
12
+ 70723,1,45-CO
13
+ 13355,1,24-8x10
14
+ 13355,2,70-LEM
15
+ 13355,3,46-11
16
+ 52761,1,90-ALM-I
17
+ 52761,2,26-8x10
18
+ 52761,3,50-CHS
19
+ 52761,4,90-BLK-PF
20
+ 52761,5,90-ALM-I
21
+ 99002,1,50-CHS
22
+ 99002,2,45-VA
23
+ 58770,1,50-CHS
24
+ 58770,2,46-11
25
+ 58770,3,45-CH
26
+ 58770,4,20-CA-7.5
27
+ 84665,1,90-BER-11
28
+ 55944,1,20-CA-7.5
29
+ 55944,2,90-LEM-11
30
+ 55944,3,70-R
31
+ 55944,4,70-R
32
+ 55944,5,50-CHS
33
+ 42166,1,70-M-VA-SM-DZ
34
+ 16034,1,46-11
35
+ 16034,2,26-8x10
36
+ 16034,3,45-CH
37
+ 16034,4,70-R
38
+ 16034,5,46-11
39
+ 25906,1,25-STR-9
40
+ 27741,1,90-BLK-PF
41
+ 27741,2,51-BC
42
+ 27741,3,90-APR-PF
43
+ 64451,1,90-BER-11
44
+ 64451,2,51-BC
45
+ 64451,3,24-8x10
46
+ 64451,4,90-BLK-PF
47
+ 41028,1,90-BER-11
48
+ 73716,1,90-PEC-11
49
+ 73716,2,90-ALM-I
50
+ 73716,3,70-LEM
51
+ 73716,4,50-CH
52
+ 76667,1,70-GON
53
+ 76667,2,90-LEM-11
54
+ 21040,1,70-R
55
+ 21040,2,20-BC-L-10
56
+ 21040,3,90-CH-PF
57
+ 48332,1,70-GA
58
+ 48332,2,70-R
59
+ 35011,1,50-CHS
60
+ 95962,1,90-APR-PF
61
+ 95962,2,90-CHR-11
62
+ 95962,3,50-CH
63
+ 95962,4,45-VA
64
+ 44798,1,90-APR-PF
65
+ 44798,2,90-CH-PF
66
+ 44798,3,90-APIE-10
67
+ 44798,4,90-APP-11
68
+ 44798,5,25-STR-9
69
+ 60270,1,20-BC-L-10
70
+ 60270,2,90-BLU-11
71
+ 21162,1,90-APP-11
72
+ 21162,2,70-TU
73
+ 21162,3,90-APR-PF
74
+ 77406,1,51-ATW
75
+ 77406,2,90-BLK-PF
76
+ 77406,3,50-APR
77
+ 77406,4,50-APR
78
+ 77406,5,24-8x10
79
+ 32565,1,50-APP
80
+ 32565,2,50-APP
81
+ 32565,3,45-VA
82
+ 36343,1,51-BC
83
+ 36343,2,51-BC
84
+ 36343,3,70-M-VA-SM-DZ
85
+ 36343,4,50-ALM
86
+ 96619,1,90-BLK-PF
87
+ 86678,1,70-M-VA-SM-DZ
88
+ 86678,2,90-LEM-11
89
+ 44330,1,70-R
90
+ 44330,2,90-BLU-11
91
+ 91937,1,51-BC
92
+ 91937,2,51-APR
93
+ 21545,1,90-BER-11
94
+ 21545,2,70-GA
95
+ 21545,3,50-ALM
96
+ 21545,4,90-BER-11
97
+ 21545,5,45-VA
98
+ 29226,1,90-PEC-11
99
+ 29226,2,90-APIE-10
100
+ 29226,3,51-BC
101
+ 29226,4,70-W
102
+ 29226,5,50-ALM
103
+ 25121,1,50-CHS
104
+ 25121,2,90-BER-11
105
+ 25121,3,45-CH
106
+ 54935,1,70-R
107
+ 54935,2,45-CH
108
+ 36423,1,45-VA
109
+ 83437,1,90-LEM-11
110
+ 83437,2,51-APR
111
+ 49854,1,90-BER-11
112
+ 49854,2,90-APP-11
113
+ 99994,1,25-STR-9
114
+ 99994,2,26-8x10
115
+ 99994,3,90-PEC-11
116
+ 99994,4,50-CH
117
+ 21622,1,45-CO
118
+ 64861,1,50-ALM
119
+ 64861,2,46-11
120
+ 33456,1,46-11
121
+ 33456,2,90-BLK-PF
122
+ 75468,1,70-M-CH-DZ
123
+ 75468,2,70-M-CH-DZ
124
+ 75468,3,90-CHR-11
125
+ 56365,1,50-APR
126
+ 91192,1,51-APP
127
+ 91192,2,51-ATW
128
+ 91192,3,50-APP
129
+ 82056,1,90-APP-11
130
+ 82056,2,50-CH
131
+ 82056,3,90-BLK-PF
132
+ 82056,4,45-CO
133
+ 27192,1,70-R
134
+ 27192,2,90-BLU-11
135
+ 27192,3,70-TU
136
+ 59716,1,51-APR
137
+ 59716,2,70-MAR
138
+ 59716,3,90-BLU-11
139
+ 59716,4,45-CO
140
+ 59716,5,90-APP-11
141
+ 82795,1,90-APR-PF
142
+ 26240,1,20-CA-7.5
143
+ 56724,1,70-M-VA-SM-DZ
144
+ 70796,1,45-CO
145
+ 70796,2,20-BC-L-10
146
+ 70796,3,45-CH
147
+ 70796,4,90-BLU-11
148
+ 37636,1,90-APR-PF
149
+ 37636,2,90-CH-PF
150
+ 37636,3,24-8x10
151
+ 63998,1,70-M-VA-SM-DZ
152
+ 48981,1,90-CHR-11
153
+ 48981,2,50-CHS
154
+ 66704,1,90-BER-11
155
+ 66704,2,51-APR
156
+ 66704,3,70-LEM
157
+ 12698,1,51-APP
158
+ 12698,2,70-R
159
+ 12698,3,26-8x10
160
+ 79287,1,90-PEC-11
161
+ 79287,2,45-VA
162
+ 79287,3,90-LEM-11
163
+ 79287,4,90-APP-11
164
+ 79287,5,51-BLU
165
+ 55690,1,70-M-CH-DZ
166
+ 55690,2,51-BLU
167
+ 55690,3,90-APP-11
168
+ 94371,1,51-BLU
169
+ 26148,1,20-CA-7.5
170
+ 26148,2,90-BLU-11
171
+ 26148,3,51-BLU
172
+ 26148,4,70-M-CH-DZ
173
+ 11923,1,70-LEM
174
+ 46598,1,70-R
175
+ 46598,2,70-W
176
+ 46598,3,70-R
177
+ 76951,1,51-BLU
178
+ 85858,1,20-CA-7.5
179
+ 85858,2,70-M-VA-SM-DZ
180
+ 85858,3,51-BLU
181
+ 85881,1,90-APP-11
182
+ 89937,1,51-BLU
183
+ 89937,2,51-BC
184
+ 89937,3,90-BER-11
185
+ 89937,4,70-R
186
+ 66227,1,90-APP-11
187
+ 66227,2,90-APIE-10
188
+ 66227,3,70-MAR
189
+ 66227,4,90-BLK-PF
190
+ 60240,1,90-APP-11
191
+ 60240,2,50-ALM
192
+ 86085,1,50-APR
193
+ 86085,2,50-APP
194
+ 86085,3,90-APR-PF
195
+ 86085,4,51-ATW
196
+ 67314,1,51-BC
197
+ 67314,2,50-CHS
198
+ 67314,3,70-TU
199
+ 67314,4,20-CA-7.5
200
+ 10013,1,70-M-CH-DZ
201
+ 26741,1,70-GA
202
+ 26741,2,50-APP
203
+ 38157,1,70-MAR
204
+ 38157,2,90-CHR-11
205
+ 38157,3,70-LEM
206
+ 38157,4,90-CHR-11
207
+ 45873,1,70-M-VA-SM-DZ
208
+ 37540,1,45-CO
209
+ 37540,2,51-APR
210
+ 11891,1,45-CO
211
+ 11891,2,50-APR
212
+ 11891,3,46-11
213
+ 61797,1,70-GON
214
+ 61797,2,90-CH-PF
215
+ 61797,3,70-M-VA-SM-DZ
216
+ 61797,4,70-M-CH-DZ
217
+ 61797,5,90-BER-11
218
+ 52369,1,90-CHR-11
219
+ 52369,2,70-TU
220
+ 96430,1,90-PEC-11
221
+ 64301,1,70-W
222
+ 64301,2,51-APR
223
+ 64301,3,90-BER-11
224
+ 45976,1,24-8x10
225
+ 45976,2,51-BC
226
+ 39605,1,90-BER-11
227
+ 52013,1,70-W
228
+ 52013,2,50-ALM
229
+ 52013,3,90-ALM-I
230
+ 52013,4,90-APP-11
231
+ 88626,1,90-APP-11
232
+ 53376,1,51-APR
233
+ 53376,2,90-CHR-11
234
+ 53376,3,90-APIE-10
235
+ 53376,4,46-11
236
+ 53376,5,90-BLU-11
237
+ 15584,1,70-LEM
238
+ 73437,1,70-M-CH-DZ
239
+ 24200,1,50-CHS
240
+ 92252,1,70-GON
241
+ 92252,2,51-ATW
242
+ 92252,3,51-BLU
243
+ 92252,4,45-VA
244
+ 92252,5,70-M-VA-SM-DZ
245
+ 39685,1,50-APP
246
+ 39685,2,70-M-CH-DZ
247
+ 39685,3,90-APR-PF
248
+ 39685,4,90-APIE-10
249
+ 61378,1,51-APR
250
+ 61378,2,90-BLK-PF
251
+ 96761,1,26-8x10
252
+ 96761,2,70-LEM
253
+ 96761,3,50-CHS
254
+ 96761,4,50-CHS
255
+ 26198,1,70-GA
256
+ 26198,2,70-GON
257
+ 26198,3,50-APP
258
+ 26198,4,20-BC-L-10
259
+ 26198,5,70-R
260
+ 78179,1,51-BLU
261
+ 78179,2,50-CHS
262
+ 78179,3,90-BLK-PF
263
+ 78179,4,45-CO
264
+ 78179,5,70-R
265
+ 68890,1,50-ALM
266
+ 75526,1,90-LEM-11
267
+ 86162,1,51-BLU
268
+ 86162,2,50-ALM
269
+ 86162,3,50-CHS
270
+ 86162,4,70-TU
271
+ 86162,5,50-ALM
272
+ 13496,1,70-W
273
+ 13496,2,90-ALM-I
274
+ 13496,3,51-ATW
275
+ 13496,4,50-APP
276
+ 60469,1,51-APR
277
+ 50660,1,70-TU
278
+ 50660,2,90-APIE-10
279
+ 64553,1,51-BC
280
+ 64553,2,90-APP-11
281
+ 64553,3,70-LEM
282
+ 64553,4,90-APP-11
283
+ 57784,1,90-CH-PF
284
+ 84258,1,51-APP
285
+ 84258,2,51-BC
286
+ 68199,1,51-APR
287
+ 68199,2,24-8x10
288
+ 78187,1,51-ATW
289
+ 78187,2,51-ATW
290
+ 81517,1,70-M-CH-DZ
291
+ 81517,2,51-ATW
292
+ 18951,1,51-APR
293
+ 20411,1,90-APP-11
294
+ 20411,2,90-APR-PF
295
+ 55494,1,90-APP-11
296
+ 55494,2,45-VA
297
+ 42162,1,70-M-VA-SM-DZ
298
+ 49977,1,26-8x10
299
+ 49977,2,45-CO
300
+ 49977,3,45-CH
301
+ 49977,4,20-BC-L-10
302
+ 89638,1,70-M-CH-DZ
303
+ 89638,2,70-M-CH-DZ
304
+ 89638,3,50-ALM
305
+ 89638,4,90-CH-PF
306
+ 73438,1,90-CHR-11
307
+ 73438,2,50-APR
308
+ 96258,1,90-CHR-11
309
+ 96258,2,90-BLK-PF
310
+ 96258,3,24-8x10
311
+ 96258,4,70-LEM
312
+ 19258,1,90-CHR-11
313
+ 12800,1,70-LEM
314
+ 12800,2,20-CA-7.5
315
+ 12800,3,90-ALM-I
316
+ 12800,4,90-APR-PF
317
+ 81368,1,50-CHS
318
+ 81368,2,90-CH-PF
319
+ 70655,1,26-8x10
320
+ 70655,2,70-TU
321
+ 70655,3,90-ALM-I
322
+ 70655,4,45-CO
323
+ 19002,1,26-8x10
324
+ 19002,2,25-STR-9
325
+ 31874,1,70-MAR
326
+ 31874,2,70-MAR
327
+ 31874,3,90-LEM-11
328
+ 72207,1,70-MAR
329
+ 72207,2,20-CA-7.5
330
+ 65091,1,51-APR
331
+ 42833,1,90-CHR-11
332
+ 42833,2,70-W
333
+ 42833,3,51-BC
334
+ 72949,1,51-APR
335
+ 72949,2,70-LEM
336
+ 72949,3,90-BLK-PF
337
+ 72949,4,51-BLU
338
+ 72949,5,70-W
339
+ 46248,1,70-M-CH-DZ
340
+ 38849,1,45-VA
341
+ 38849,2,70-M-VA-SM-DZ
342
+ 38849,3,46-11
343
+ 38849,4,51-ATW
344
+ 38849,5,50-APR
345
+ 86861,1,20-BC-L-10
346
+ 86861,2,50-CHS
347
+ 86861,3,70-GON
348
+ 86861,4,51-BLU
349
+ 32701,1,90-BLK-PF
350
+ 32701,2,50-APR
351
+ 32701,3,20-CA-7.5
352
+ 89182,1,51-APR
353
+ 89182,2,51-APP
354
+ 89182,3,70-LEM
355
+ 89182,4,50-ALM
356
+ 89182,5,45-CH
357
+ 68753,1,70-R
358
+ 68753,2,46-11
359
+ 68753,3,51-BLU
360
+ 68753,4,70-W
361
+ 68753,5,51-BC
362
+ 39217,1,90-ALM-I
363
+ 39217,2,51-ATW
364
+ 39217,3,45-CH
365
+ 39217,4,90-BLK-PF
366
+ 96531,1,24-8x10
367
+ 96531,2,50-APP
368
+ 96531,3,70-GA
369
+ 96531,4,50-CHS
370
+ 53922,1,70-M-VA-SM-DZ
371
+ 53922,2,46-11
372
+ 53922,3,20-BC-L-10
373
+ 53922,4,70-GON
374
+ 64477,1,70-TU
375
+ 64477,2,90-PEC-11
376
+ 64477,3,90-BLK-PF
377
+ 64477,4,51-ATW
378
+ 64477,5,20-CA-7.5
379
+ 99058,1,50-CHS
380
+ 99058,2,90-BLU-11
381
+ 99058,3,51-BLU
382
+ 99058,4,45-CH
383
+ 99058,5,90-CHR-11
384
+ 77032,1,50-CH
385
+ 77032,2,46-11
386
+ 77032,3,50-ALM
387
+ 77032,4,70-MAR
388
+ 15286,1,70-MAR
389
+ 15286,2,50-APP
390
+ 15286,3,90-APR-PF
391
+ 59774,1,51-BLU
392
+ 59774,2,70-GA
393
+ 59774,3,90-ALM-I
394
+ 35073,1,90-CHR-11
395
+ 35073,2,70-GON
396
+ 34910,1,51-APP
397
+ 34910,2,24-8x10
398
+ 34910,3,90-PEC-11
399
+ 34910,4,51-BC
400
+ 17685,1,20-BC-L-10
401
+ 17685,2,50-APP
402
+ 17685,3,51-ATW
403
+ 17685,4,70-MAR
404
+ 45062,1,50-CHS
405
+ 45062,2,20-CA-7.5
406
+ 39109,1,90-APIE-10
407
+ 39109,2,90-APP-11
408
+ 37063,1,70-TU
409
+ 37063,2,90-APP-11
410
+ 37063,3,70-W
411
+ 18567,1,70-LEM
412
+ 18567,2,90-APR-PF
413
+ 37586,1,70-TU
414
+ 62707,1,70-R
415
+ 62707,2,90-CHR-11
416
+ 62707,3,20-BC-L-10
417
+ 62707,4,90-APR-PF
418
+ 28117,1,90-CH-PF
419
+ 28117,2,50-APP
420
+ 28117,3,25-STR-9
421
+ 64574,1,51-ATW
422
+ 64574,2,70-TU
423
+ 64574,3,70-W
424
+ 40305,1,20-CA-7.5
425
+ 40305,2,70-GA
426
+ 33060,1,45-CO
427
+ 33060,2,46-11
428
+ 33060,3,90-BLK-PF
429
+ 12396,1,90-BER-11
430
+ 12396,2,70-M-VA-SM-DZ
431
+ 12396,3,51-BC
432
+ 12396,4,90-APR-PF
433
+ 12396,5,20-CA-7.5
434
+ 43103,1,70-M-CH-DZ
435
+ 39575,1,70-M-CH-DZ
436
+ 70162,1,46-11
437
+ 70162,2,70-M-CH-DZ
438
+ 70162,3,50-APR
439
+ 70162,4,70-MAR
440
+ 23034,1,70-M-CH-DZ
441
+ 23034,2,90-APR-PF
442
+ 79296,1,90-PEC-11
443
+ 79296,2,50-APR
444
+ 79296,3,90-ALM-I
445
+ 79296,4,51-BC
446
+ 79296,5,90-PEC-11
447
+ 74741,1,90-APP-11
448
+ 74741,2,51-APP
449
+ 74741,3,70-MAR
450
+ 98806,1,26-8x10
451
+ 98806,2,50-APR
452
+ 98806,3,90-APIE-10
453
+ 98806,4,51-APP
454
+ 43752,1,90-BLU-11
455
+ 47353,1,90-APR-PF
456
+ 47353,2,90-APIE-10
457
+ 47353,3,70-TU
458
+ 47353,4,90-BLK-PF
459
+ 39829,1,20-BC-L-10
460
+ 87454,1,90-APIE-10
461
+ 87454,2,50-APP
462
+ 76663,1,25-STR-9
463
+ 76663,2,90-APP-11
464
+ 85492,1,70-M-CH-DZ
465
+ 85492,2,25-STR-9
466
+ 85492,3,90-BLU-11
467
+ 85492,4,70-M-CH-DZ
468
+ 48647,1,51-BC
469
+ 48647,2,90-APIE-10
470
+ 48647,3,90-CHR-11
471
+ 61008,1,20-CA-7.5
472
+ 61008,2,90-APP-11
473
+ 96402,1,50-ALM
474
+ 96402,2,20-CA-7.5
475
+ 96402,3,90-APP-11
476
+ 35904,1,46-11
477
+ 35904,2,90-APR-PF
478
+ 49845,1,90-BLK-PF
479
+ 49845,2,70-LEM
480
+ 49845,3,50-CH
481
+ 49845,4,90-PEC-11
482
+ 46014,1,51-ATW
483
+ 46014,2,90-APR-PF
484
+ 46014,3,45-VA
485
+ 46014,4,90-CH-PF
486
+ 46014,5,90-BLK-PF
487
+ 46876,1,70-TU
488
+ 46876,2,51-APP
489
+ 34579,1,24-8x10
490
+ 34579,2,70-GA
491
+ 34579,3,70-TU
492
+ 34579,4,26-8x10
493
+ 17729,1,51-ATW
494
+ 17729,2,50-APP
495
+ 17729,3,90-BLU-11
496
+ 17729,4,90-CH-PF
497
+ 17729,5,20-CA-7.5
498
+ 74952,1,45-VA
499
+ 74952,2,90-APP-11
500
+ 74952,3,90-BER-11
501
+ 61948,1,70-MAR
502
+ 61948,2,70-GON
503
+ 61948,3,45-CH
504
+ 61948,4,24-8x10
505
+ 41064,1,70-R
506
+ 41064,2,90-APR-PF
507
+ 41064,3,51-APP
508
+ 17947,1,50-APP
509
+ 20913,1,90-LEM-11
510
+ 20913,2,70-M-CH-DZ
511
+ 20913,3,70-LEM
512
+ 95514,1,45-CH
513
+ 95514,2,46-11
514
+ 95514,3,70-MAR
515
+ 95514,4,51-APP
516
+ 24829,1,20-CA-7.5
517
+ 44590,1,90-BLU-11
518
+ 44590,2,24-8x10
519
+ 44590,3,90-BLU-11
520
+ 44590,4,45-CH
521
+ 44590,5,90-PEC-11
522
+ 65165,1,24-8x10
523
+ 65165,2,90-ALM-I
524
+ 65165,3,70-R
525
+ 65165,4,45-CO
526
+ 89588,1,90-BLK-PF
527
+ 53240,1,25-STR-9
528
+ 53240,2,51-ATW
529
+ 46674,1,51-BC
530
+ 67946,1,90-PEC-11
531
+ 67946,2,90-APR-PF
532
+ 67946,3,90-APR-PF
533
+ 67946,4,90-LEM-11
534
+ 31233,1,70-M-VA-SM-DZ
535
+ 31233,2,50-APR
536
+ 31233,3,50-CHS
537
+ 31233,4,51-BC
538
+ 15904,1,90-CH-PF
539
+ 17488,1,50-APP
540
+ 97097,1,70-MAR
541
+ 50512,1,90-APP-11
542
+ 11548,1,45-CO
543
+ 11548,2,90-APIE-10
544
+ 29908,1,45-VA
545
+ 29908,2,51-ATW
546
+ 29908,3,25-STR-9
547
+ 29908,4,70-GA
548
+ 29908,5,90-CH-PF
549
+ 20127,1,90-BER-11
550
+ 20127,2,70-M-CH-DZ
551
+ 41963,1,50-ALM
552
+ 41963,2,90-CH-PF
553
+ 16532,1,50-APP
554
+ 16532,2,70-MAR
555
+ 16532,3,70-TU
556
+ 16532,4,24-8x10
557
+ 34378,1,90-CHR-11
558
+ 34378,2,45-VA
test_database/bakery_1/data_csv/receipts_t.csv ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ReceiptNumber,Date,CustomerId
2
+ 18129,28-Oct-2007,15
3
+ 51991,17-Oct-2007,14
4
+ 83085,12-Oct-2007,7
5
+ 70723,28-Oct-2007,20
6
+ 13355,19-Oct-2007,7
7
+ 52761,27-Oct-2007,8
8
+ 99002,13-Oct-2007,20
9
+ 58770,22-Oct-2007,18
10
+ 84665,10-Oct-2007,6
11
+ 55944,16-Oct-2007,19
12
+ 42166,14-Oct-2007,8
13
+ 16034,10-Oct-2007,4
14
+ 25906,29-Oct-2007,15
15
+ 27741,25-Oct-2007,8
16
+ 64451,10-Oct-2007,11
17
+ 41028,6-Oct-2007,17
18
+ 73716,29-Oct-2007,18
19
+ 76667,14-Oct-2007,15
20
+ 21040,3-Oct-2007,6
21
+ 48332,15-Oct-2007,20
22
+ 35011,10-Oct-2007,20
23
+ 95962,26-Oct-2007,8
24
+ 44798,4-Oct-2007,16
25
+ 60270,31-Oct-2007,11
26
+ 21162,4-Oct-2007,8
27
+ 77406,9-Oct-2007,13
28
+ 32565,24-Oct-2007,14
29
+ 36343,31-Oct-2007,19
30
+ 96619,7-Oct-2007,18
31
+ 86678,24-Oct-2007,3
32
+ 44330,20-Oct-2007,18
33
+ 91937,21-Oct-2007,12
34
+ 21545,22-Oct-2007,12
35
+ 29226,26-Oct-2007,14
36
+ 25121,20-Oct-2007,18
37
+ 54935,16-Oct-2007,14
38
+ 36423,24-Oct-2007,16
39
+ 83437,15-Oct-2007,8
40
+ 49854,12-Oct-2007,2
41
+ 99994,21-Oct-2007,6
42
+ 21622,10-Oct-2007,7
43
+ 64861,15-Oct-2007,10
44
+ 33456,5-Oct-2007,16
45
+ 75468,21-Oct-2007,10
46
+ 56365,14-Oct-2007,12
47
+ 91192,10-Oct-2007,5
48
+ 82056,7-Oct-2007,18
49
+ 27192,28-Oct-2007,9
50
+ 59716,30-Oct-2007,2
51
+ 82795,8-Oct-2007,15
52
+ 26240,7-Oct-2007,16
53
+ 56724,9-Oct-2007,13
54
+ 70796,31-Oct-2007,12
55
+ 37636,20-Oct-2007,1
56
+ 63998,13-Oct-2007,20
57
+ 48981,24-Oct-2007,20
58
+ 66704,29-Oct-2007,14
59
+ 12698,23-Oct-2007,19
60
+ 79287,30-Oct-2007,8
61
+ 55690,15-Oct-2007,19
62
+ 94371,22-Oct-2007,8
63
+ 26148,19-Oct-2007,20
64
+ 11923,9-Oct-2007,15
65
+ 46598,3-Oct-2007,14
66
+ 76951,27-Oct-2007,14
67
+ 85858,31-Oct-2007,1
68
+ 85881,13-Oct-2007,1
69
+ 89937,20-Oct-2007,7
70
+ 66227,10-Oct-2007,1
71
+ 60240,17-Oct-2007,17
72
+ 86085,16-Oct-2007,1
73
+ 67314,23-Oct-2007,6
74
+ 10013,17-Oct-2007,15
75
+ 26741,24-Oct-2007,7
76
+ 38157,23-Oct-2007,16
77
+ 45873,5-Oct-2007,13
78
+ 37540,3-Oct-2007,20
79
+ 11891,30-Oct-2007,7
80
+ 61797,30-Oct-2007,8
81
+ 52369,15-Oct-2007,5
82
+ 96430,4-Oct-2007,18
83
+ 64301,12-Oct-2007,14
84
+ 45976,3-Oct-2007,10
85
+ 39605,12-Oct-2007,12
86
+ 52013,5-Oct-2007,13
87
+ 88626,25-Oct-2007,17
88
+ 53376,30-Oct-2007,8
89
+ 15584,13-Oct-2007,3
90
+ 73437,1-Oct-2007,6
91
+ 24200,16-Oct-2007,9
92
+ 92252,25-Oct-2007,7
93
+ 39685,28-Oct-2007,1
94
+ 61378,8-Oct-2007,11
95
+ 96761,14-Oct-2007,20
96
+ 26198,12-Oct-2007,11
97
+ 78179,24-Oct-2007,14
98
+ 68890,27-Oct-2007,7
99
+ 75526,22-Oct-2007,18
100
+ 86162,10-Oct-2007,16
101
+ 13496,30-Oct-2007,11
102
+ 60469,20-Oct-2007,4
103
+ 50660,18-Oct-2007,9
104
+ 64553,8-Oct-2007,17
105
+ 57784,15-Oct-2007,7
106
+ 84258,22-Oct-2007,2
107
+ 68199,4-Oct-2007,9
108
+ 78187,17-Oct-2007,14
109
+ 81517,10-Oct-2007,1
110
+ 18951,14-Oct-2007,20
111
+ 20411,8-Oct-2007,7
112
+ 55494,20-Oct-2007,15
113
+ 42162,16-Oct-2007,7
114
+ 49977,18-Oct-2007,3
115
+ 89638,7-Oct-2007,4
116
+ 73438,18-Oct-2007,10
117
+ 96258,12-Oct-2007,8
118
+ 19258,25-Oct-2007,5
119
+ 12800,22-Oct-2007,11
120
+ 81368,17-Oct-2007,19
121
+ 70655,6-Oct-2007,2
122
+ 19002,19-Oct-2007,6
123
+ 31874,13-Oct-2007,2
124
+ 72207,15-Oct-2007,1
125
+ 65091,9-Oct-2007,17
126
+ 42833,22-Oct-2007,3
127
+ 72949,2-Oct-2007,6
128
+ 46248,12-Oct-2007,11
129
+ 38849,25-Oct-2007,1
130
+ 86861,26-Oct-2007,9
131
+ 32701,19-Oct-2007,16
132
+ 89182,29-Oct-2007,5
133
+ 68753,11-Oct-2007,5
134
+ 39217,19-Oct-2007,20
135
+ 96531,12-Oct-2007,8
136
+ 53922,13-Oct-2007,2
137
+ 64477,16-Oct-2007,6
138
+ 99058,3-Oct-2007,14
139
+ 77032,28-Oct-2007,14
140
+ 15286,11-Oct-2007,6
141
+ 59774,2-Oct-2007,16
142
+ 35073,23-Oct-2007,5
143
+ 34910,7-Oct-2007,20
144
+ 17685,2-Oct-2007,12
145
+ 45062,23-Oct-2007,1
146
+ 39109,2-Oct-2007,16
147
+ 37063,22-Oct-2007,14
148
+ 18567,13-Oct-2007,7
149
+ 37586,3-Oct-2007,8
150
+ 62707,7-Oct-2007,8
151
+ 28117,9-Oct-2007,5
152
+ 64574,2-Oct-2007,6
153
+ 40305,25-Oct-2007,8
154
+ 33060,29-Oct-2007,20
155
+ 12396,10-Oct-2007,10
156
+ 43103,7-Oct-2007,4
157
+ 39575,20-Oct-2007,20
158
+ 70162,9-Oct-2007,19
159
+ 23034,15-Oct-2007,17
160
+ 79296,3-Oct-2007,19
161
+ 74741,12-Oct-2007,20
162
+ 98806,15-Oct-2007,17
163
+ 43752,5-Oct-2007,5
164
+ 47353,12-Oct-2007,6
165
+ 39829,31-Oct-2007,3
166
+ 87454,21-Oct-2007,6
167
+ 76663,4-Oct-2007,10
168
+ 85492,20-Oct-2007,12
169
+ 48647,9-Oct-2007,3
170
+ 61008,9-Oct-2007,14
171
+ 96402,4-Oct-2007,6
172
+ 35904,21-Oct-2007,10
173
+ 49845,31-Oct-2007,20
174
+ 46014,16-Oct-2007,15
175
+ 46876,6-Oct-2007,13
176
+ 34579,8-Oct-2007,7
177
+ 17729,16-Oct-2007,16
178
+ 74952,16-Oct-2007,5
179
+ 61948,4-Oct-2007,5
180
+ 41064,25-Oct-2007,16
181
+ 17947,27-Oct-2007,7
182
+ 20913,7-Oct-2007,8
183
+ 95514,9-Oct-2007,10
184
+ 24829,7-Oct-2007,15
185
+ 44590,12-Oct-2007,1
186
+ 65165,4-Oct-2007,4
187
+ 89588,9-Oct-2007,7
188
+ 53240,3-Oct-2007,14
189
+ 46674,29-Oct-2007,15
190
+ 67946,18-Oct-2007,7
191
+ 31233,20-Oct-2007,13
192
+ 15904,6-Oct-2007,13
193
+ 17488,20-Oct-2007,6
194
+ 97097,23-Oct-2007,9
195
+ 50512,27-Oct-2007,8
196
+ 11548,21-Oct-2007,13
197
+ 29908,14-Oct-2007,13
198
+ 20127,7-Oct-2007,15
199
+ 41963,29-Oct-2007,8
200
+ 16532,21-Oct-2007,4
201
+ 34378,23-Oct-2007,6
test_database/bbc_channels/bbc_channels.sqlite ADDED
Binary file (36.9 kB). View file
 
test_database/bbc_channels/schema.sql ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "channel" (
4
+ "Channel_ID" int,
5
+ "Name" text,
6
+ "Analogue_terrestrial_channel" text,
7
+ "Digital_terrestrial_channel" text,
8
+ "Internet" text,
9
+ PRIMARY KEY ("Channel_ID")
10
+ );
11
+
12
+
13
+ CREATE TABLE "director" (
14
+ "Director_ID" int,
15
+ "Name" text,
16
+ "Age" int,
17
+ PRIMARY KEY ("Director_ID")
18
+ );
19
+
20
+ INSERT INTO "channel" VALUES ("1","BBC One","1","HD","bbc.co.uk");
21
+ INSERT INTO "channel" VALUES ("2","ITV","3","HD","ITV - itv.com");
22
+ INSERT INTO "channel" VALUES ("3","BBC Two","2","2","bbc.co.uk");
23
+ INSERT INTO "channel" VALUES ("4","Channel 4","4","8","channel4.com");
24
+ INSERT INTO "channel" VALUES ("5","Channel 5","5","44","unavailable");
25
+ INSERT INTO "channel" VALUES ("6","ITV3","unavailable","10","itv.com");
26
+ INSERT INTO "channel" VALUES ("7","ITV2","unavailable","6","itv.com");
27
+ INSERT INTO "channel" VALUES ("8","E4","unavailable","28","e4.com");
28
+ INSERT INTO "channel" VALUES ("9","Sky Sports 1","unavailable","unavailable","skysports.com");
29
+ INSERT INTO "channel" VALUES ("10","Sky1","unavailable","unavailable","sky.com");
30
+ INSERT INTO "channel" VALUES ("11","CBeebies","unavailable","71","bbc.co.uk");
31
+ INSERT INTO "channel" VALUES ("12","ITV4","unavailable","24","itv.com");
32
+ INSERT INTO "channel" VALUES ("13","BBC Three","unavailable","7","bbc.co.uk");
33
+ INSERT INTO "channel" VALUES ("14","Dave","unavailable","12","dave.uktv.co.uk");
34
+
35
+
36
+ INSERT INTO "director" VALUES (1,"DeSean Jackson","60");
37
+ INSERT INTO "director" VALUES (2,"Hank Baskett","90");
38
+ INSERT INTO "director" VALUES (3,"Greg Lewis","52");
39
+ INSERT INTO "director" VALUES (4,"Brent Celek","44");
40
+ INSERT INTO "director" VALUES (5,"Correll Buckhalter","59");
41
+ INSERT INTO "director" VALUES (6,"Reggie Brown","40");
42
+ INSERT INTO "director" VALUES (7,"Brian Westbrook","47");
43
+ INSERT INTO "director" VALUES (8,"Jason Avant","31");
44
+ INSERT INTO "director" VALUES (9,"Kevin Curtis","32");
45
+ INSERT INTO "director" VALUES (10,"L.J. Smith","43");
46
+
47
+
48
+ CREATE TABLE "program" (
49
+ "Program_ID" int,
50
+ "Start_Year" real,
51
+ "Title" text,
52
+ "Director_ID" int,
53
+ "Channel_ID" int,
54
+ PRIMARY KEY ("Program_ID"),
55
+ FOREIGN KEY ("Director_ID") REFERENCES "director"("Director_ID"),
56
+ FOREIGN KEY ("Channel_ID") REFERENCES "channel"("Channel_ID")
57
+ );
58
+
59
+
60
+ INSERT INTO "program" VALUES (1,"2002","The Angry Brigade",1,14);
61
+ INSERT INTO "program" VALUES (2,"2006","Dracula",2,10);
62
+ INSERT INTO "program" VALUES (3,"2006","Another Country",3,3);
63
+ INSERT INTO "program" VALUES (4,"2007","Caesar III: An Empire Without End",5,14);
64
+ INSERT INTO "program" VALUES (5,"2008","Othello",3,7);
65
+ INSERT INTO "program" VALUES (6,"2008","The Leopard",6,7);
66
+ INSERT INTO "program" VALUES (7,"2008","Cyrano de Bergerac",10,14);
67
+ INSERT INTO "program" VALUES (8,"2009","Carnival",9,10);
68
+
69
+
70
+ CREATE TABLE "director_admin" (
71
+ "Director_ID" int,
72
+ "Channel_ID" int,
73
+ "Is_first_director" bool,
74
+ PRIMARY KEY ("Director_ID","Channel_ID"),
75
+ FOREIGN KEY ("Director_ID") REFERENCES "director"("Director_ID"),
76
+ FOREIGN KEY ("Channel_ID") REFERENCES "channel"("Channel_ID")
77
+ );
78
+ INSERT INTO "director_admin" VALUES (1,14,"T");
79
+ INSERT INTO "director_admin" VALUES (5,14,"F");
80
+ INSERT INTO "director_admin" VALUES (3,14,"F");
81
+ INSERT INTO "director_admin" VALUES (4,7,"T");
82
+ INSERT INTO "director_admin" VALUES (6,7,"F");
83
+
test_database/boat_1/Boats.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ bid,name,color
2
+ 101,Legacy,red
3
+ 102,Melon,blue
4
+ 103,Mars,red
test_database/boat_1/boat_1.sqlite ADDED
Binary file (16.4 kB). View file
 
test_database/candidate_poll/candidate_poll.sqlite ADDED
Binary file (20.5 kB). View file
 
test_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
+
test_database/car_1/data_csv/README.CARS.TXT ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *****************************************************
2
+ CPE 365 Alex Dekhtyar
3
+ Cal Poly Computer Science Department
4
+ San Luis Obispo College of Engineering
5
+ California dekhtyar@csc.calpoly.edu
6
+ *****************************************************
7
+ CARS DATASET
8
+ Version 1.0
9
+ September 26, 2007
10
+ *****************************************************
11
+ Sources:
12
+ The Committee on Statistical Graphics of
13
+ the American Statistical Association (ASA)
14
+ 1983 Cars dataset
15
+ available (among other places) from
16
+ CMU's StatLib server:
17
+ http://lib.stat.cmu.edu/datasets/
18
+
19
+ ******************************************************
20
+
21
+
22
+ This file describes the contents of the CARS dataset
23
+ developed for the CPE 365, Introduction to Databases
24
+ course at Cal Poly.
25
+
26
+ The dataset is a normalized and slightly enhanced version
27
+ of the ASA's Committee on Statistical Graphics "cars"
28
+ dataset offered in 1983 for the visualization competition.
29
+ Please refer to the original dataset description
30
+ in the file "cars.desc" included with this distribution for
31
+ historical purposes. (please, note, cars.desc file does not
32
+ describe the format of this dataset correctly).
33
+
34
+
35
+ The dataset describes the origins and different parameters
36
+ of 406 car models produced in the world between 1970 and 1982.
37
+ The dataset consists of the following files:
38
+
39
+ General Conventions.
40
+
41
+ 1. All files in the dataset are CSV (comma-separated values) files.
42
+ 2. First line of each file provides the names of
43
+ columns. Second line may be empty, or may contain
44
+ the first row of the data
45
+ 3. All string values are enclosed in single quotes (')
46
+
47
+ - car-makers.csv : information about companies that produce cars
48
+ - car-names.csv : information about specific cars (by name)
49
+ - cars-data.csv : operational parameters of the cars
50
+ - continents.csv : list of continents
51
+ - countries.csv : list of countries
52
+ - model-list.csv : information about car models produced by car makers
53
+
54
+
55
+ The core of the dataset consists of four files: car-makes.csv, model-list.csv,
56
+ car-names.csv and cars-data.csv. The first file identifies companies
57
+ that produce cars (e.g, "Ford Motor Company", "Toyota"), the second file
58
+ lists various models and identified their makes (e.g., "Ford" and "Mercury"
59
+ produced by Ford, "Oldsmobile" and "Chevrolet" produced by GM). The third
60
+ file is the masterlist of 406 car makes considered in the database
61
+ (e.g., "ford torino" or "amc rebel set"). The fourth file contains information
62
+ about the operating parameters (see below for a full list) for each make.
63
+
64
+
65
+ Individual files have the following formats.
66
+
67
+
68
+ **************************************************************************
69
+
70
+ car-makers.csv
71
+
72
+ Id : unique identifier of the car maker
73
+ Maker : short nickname for the car maker
74
+ FullName : full name of the car maker
75
+ Country : Id of the home country of the maker (see countries.CountryId)
76
+
77
+
78
+
79
+ **************************************************************************
80
+
81
+ car-names.csv
82
+
83
+ MakeId : unique identifier of the car make
84
+ Model : unique name of the car model (see model-list.Model)
85
+ MakeDescription : description (name) of the car make
86
+
87
+
88
+
89
+ **************************************************************************
90
+
91
+
92
+ cars-data.csv
93
+
94
+ Id : unique identifier of the car make (see car-names.MakeId)
95
+ MPG : milage per gallon
96
+ Cylinders : number of cylinders
97
+ Edispl : engine displacement volume in cubic inches
98
+ Horsepower : power of the engine in horsepowers
99
+ Weight : weight of the car in lbs
100
+ Accelerate : time to accelerate from 0 to 60mph in seconds (possibly
101
+ with fractions of a second)
102
+ Year : year the car was made
103
+
104
+
105
+ NOTE: this file adds the Id attribute to the original cars.data file from
106
+ the ASA cars dataset, removes the Origin attribute (the origin is
107
+ now dealt with elsewhere), and modifies year to be the actual year
108
+ rather than "year - 1900".
109
+
110
+
111
+
112
+ **************************************************************************
113
+
114
+
115
+ continents.csv
116
+
117
+ ContId : unique identifier of the continent
118
+ Continent : name of the continent
119
+
120
+
121
+ **************************************************************************
122
+
123
+ countries.csv
124
+
125
+ CountryId : unique identifier of the country
126
+ CountryName : name of the country
127
+ Continent : unique identifier of the continent the country is on
128
+ (see continents.ContId)
129
+
130
+
131
+ **************************************************************************
132
+
133
+ model-list.csv
134
+
135
+ ModelId : unique identifier of the car model
136
+ Maker : unique identifier of the car maker (see car-makers.id)
137
+ Model : name of the car model (also unique)
138
+
139
+
140
+
141
+ **************************************************************************
142
+ **************************************************************************
143
+
144
+
145
+
146
+
147
+
148
+
149
+
test_database/car_1/data_csv/cars.desc ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The Committee on Statistical Graphics of the American Statistical
2
+ Association (ASA) invites you to participate in its Second (1983)
3
+ Exposition of Statistical Graphics Technology. The purposes of the
4
+ Exposition are (l) to provide a forum in which users and providers of
5
+ statistical graphics technology can exchange information and ideas and
6
+ (2) to expose those members of the ASA community who are less familiar
7
+ with statistical graphics to its capabilities and potential benefits
8
+ to them. The Exposition wil1 be held in conjunction with the Annual
9
+ Meetings in Toronto, August 15-18, 1983 and is tentatively scheduled
10
+ for the afternoon of Wednesday, August 17.
11
+
12
+ Seven providers of statistical graphics technology participated in the
13
+ l982 Exposition. By all accounts, the Exposition was well received by
14
+ the ASA community and was a worthwhile experience for the
15
+ participants. We hope to have those seven involved again this year,
16
+ along with as many new participants as we can muster. The 1982
17
+ Exposition was summarized in a paper to appear in the Proceeding of
18
+ the Statistical Computing Section. A copy of that paper is enclosed
19
+ for your information.
20
+
21
+ The basic format of the 1983 Exposition will be similar to that of
22
+ 1982. However, based upon comments received and experience gained,
23
+ there are some changes. The basic structure, intended to be simpler
24
+ and more flexible than last year, is as follows:
25
+
26
+ A fixed data set is to be analyzed. This data set is a version of the
27
+ CRCARS data set of
28
+
29
+ Donoho, David and Ramos, Ernesto (1982), ``PRIMDATA:
30
+ Data Sets for Use With PRIM-H'' (DRAFT).
31
+
32
+ Because of the Committee's limited (zero) budget for the Exposition,
33
+ we are forced to provide the data in hardcopy form only (enclosed).
34
+ (Sorry!)
35
+
36
+ There are 406 observations on the following 8 variables: MPG (miles
37
+ per gallon), # cylinders, engine displacement (cu. inches), horsepower,
38
+ vehicle weight (lbs.), time to accelerate from O to 60 mph (sec.),
39
+ model year (modulo 100), and origin of car (1. American, 2. European,
40
+ 3. Japanese). These data appear on seven pages. Also provided are the
41
+ car labels (types) in the same order as the 8 variables on seven
42
+ separate pages. Missing data values are marked by series of question
43
+ marks.
44
+
45
+ You are asked to analyze these data using your statistical graphics
46
+ software. Your objective should be to achieve graphical displays which
47
+ will be meaningful to the viewers and highlight relevant aspects of
48
+ the data. If you can best achieve this using simple graphical formats,
49
+ fine. If you choose to illustrate some of the more sophisticated
50
+ capabilities of your software and can do so without losing relevancy
51
+ to the data, that is fine, too. This year, there will be no Committee
52
+ commentary on the individual presentations, so you are not competing
53
+ with other presenters. The role of each presenter is to do his/her
54
+ best job of presenting their statistical graphics technology to the
55
+ viewers.
56
+
57
+ Each participant will be provided with a 6'(long) by 4'(tall)
58
+ posterboard on which to display the results of their analyses. This is
59
+ the same format as last year. You are encouraged to remain by your
60
+ presentation during the Exposition to answer viewers' questions. Three
61
+ copies of your presentation must be submitted to me by July 1. Movie
62
+ or slide show presentations cannot be accommodated (sorry). The
63
+ Committee will prepare its own poster presentation which will orient
64
+ the viewers to the data and the purposes of the Exposition.
65
+
66
+ The ASA has asked us to remind all participants that the Exposition is
67
+ intended for educational and scientific purposes and is not a
68
+ marketing activity. Even though last year's participants did an
69
+ excellent job of maintaining that distinction, a cautionary note at
70
+ this point is appropriate.
71
+
72
+ Those of us who were involved with the 1982 Exposition found it
73
+ worthwhile and fun to do. We would very much like to have you
74
+ participate this year. For planning purposes, please RSVP (to me, in
75
+ writing please) by April 15 as to whether you plan to accept the
76
+ Committee's invitation.
77
+
78
+ If you have any questions about the Exposition, please call me on
79
+ (301/763-5350). If you have specific questions about the data, or the
80
+ analysis, please call Karen Kafadar on (301/921-3651). If you cannot
81
+ participate but know of another person or group in your organization
82
+ who can, please pass this invitation along to them.
83
+
84
+ Sincerely,
85
+
86
+
87
+
88
+ LAWRENCE H. COX
89
+ Statistical Research Division
90
+ Bureau of the Census
91
+ Room 3524-3
92
+ Washington, DC 20233
93
+
94
+
test_database/car_1/data_csv/model-list.csv ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ModelId,Maker,Model
2
+ 1,1,'amc'
3
+ 2,2,'audi'
4
+ 3,3,'bmw'
5
+ 4,4,'buick'
6
+ 5,4,'cadillac'
7
+ 6,5,'capri'
8
+ 7,4,'chevrolet'
9
+ 8,6,'chrysler'
10
+ 9,7,'citroen'
11
+ 10,8,'datsun'
12
+ 11,6,'dodge'
13
+ 12,9,'fiat'
14
+ 13,5,'ford'
15
+ 14,10,'hi'
16
+ 15,11,'honda'
17
+ 16,12,'mazda'
18
+ 17,13,'mercedes'
19
+ 18,13,'mercedes-benz'
20
+ 19,5,'mercury'
21
+ 20,8,'nissan'
22
+ 21,4,'oldsmobile'
23
+ 22,14,'opel'
24
+ 23,15,'peugeot'
25
+ 24,6,'plymouth'
26
+ 25,4,'pontiac'
27
+ 26,16,'renault'
28
+ 27,17,'saab'
29
+ 28,18,'subaru'
30
+ 29,19,'toyota'
31
+ 30,20,'triumph'
32
+ 31,2,'volkswagen'
33
+ 32,21,'volvo'
34
+ 33,22,'kia'
35
+ 34,23,'hyundai'
36
+ 35,6,'jeep'
37
+ 36,19,'scion'
test_database/car_1/link.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ http://users.csc.calpoly.edu/~dekhtyar/365-Spring2017/index.html
test_database/car_racing/car_racing.sqlite ADDED
Binary file (36.9 kB). View file
 
test_database/car_racing/schema.sql ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+
4
+ CREATE TABLE "country" (
5
+ "Country_Id" int,
6
+ "Country" text,
7
+ "Capital" text,
8
+ "Official_native_language" text,
9
+ "Regoin" text,
10
+ PRIMARY KEY ("Country_Id")
11
+ );
12
+
13
+ INSERT INTO "country" VALUES (1,"Japan","Tokyo","Japanese","Asia");
14
+ INSERT INTO "country" VALUES (2,"USA","Washington","English","North America");
15
+ INSERT INTO "country" VALUES (6,"Britain","London","British English","Europe");
16
+ INSERT INTO "country" VALUES (3,"China","Beijing","Chinese","Asia");
17
+ INSERT INTO "country" VALUES (4,"Ireland","Dublin","Irish English","Europe");
18
+ INSERT INTO "country" VALUES (5,"Isle of Man","Douglas","English Manx","Europe");
19
+
20
+
21
+
22
+ CREATE TABLE `team` (
23
+ "Team_ID" int,
24
+ "Team" text,
25
+ "Make" text,
26
+ "Manager" text,
27
+ "Sponsor" text,
28
+ "Car_Owner" text,
29
+ PRIMARY KEY ("Team_ID")
30
+ );
31
+
32
+ CREATE TABLE `driver` (
33
+ "Driver_ID" int,
34
+ "Driver" text,
35
+ "Country" int,
36
+ "Age" int,
37
+ "Car_#" real,
38
+ "Make" text,
39
+ "Points" text,
40
+ "Laps" real,
41
+ "Winnings" text,
42
+ PRIMARY KEY ("Driver_ID"),
43
+ FOREIGN KEY (`Country`) REFERENCES `country`(`Country_ID`)
44
+ );
45
+
46
+
47
+
48
+ CREATE TABLE `team_driver` (
49
+ "Team_ID" int,
50
+ "Driver_ID" int,
51
+ PRIMARY KEY ("Team_ID","Driver_ID"),
52
+ FOREIGN KEY (`Team_ID`) REFERENCES `team`(`Team_ID`),
53
+ FOREIGN KEY (`Driver_ID`) REFERENCES `driver`(`Driver_ID`)
54
+ );
55
+
56
+
57
+ INSERT INTO "team" VALUES (1,"Arrington Racing","Chrysler Imperial","Buddy Arrington","Arrington Racing","Buddy Arrington");
58
+ INSERT INTO "team" VALUES (2,"Benfield Racing","Buick Regal","Joe Ruttman","Levi Garrett","Ron Benfield");
59
+ INSERT INTO "team" VALUES (3,"Blue Max Racing","Pontiac Grand Prix","Tim Richmond","Old Milwaukee","Raymond Beadle");
60
+ INSERT INTO "team" VALUES (4,"Bobby Hawkins Racing","Chevrolet Monte Carlo","David Pearson","Chattanooga Chew","Bobby Hawkins");
61
+ INSERT INTO "team" VALUES (5,"Bud Moore Engineering","Ford Thunderbird","Dale Earnhardt","Wrangler Jeans","Bud Moore");
62
+ INSERT INTO "team" VALUES (6,"Cliff Stewart Racing","Pontiac Grand Prix","Geoff Bodine","Gatorade","Cliff Stewart");
63
+ INSERT INTO "team" VALUES (7,"DiGard Motorsports","Buick Regal","Bobby Allison","Miller American","Bill Gardner");
64
+ INSERT INTO "team" VALUES (8,"Donlavey Racing","Ford Thunderbird","Dick Brooks","Chameleon Sunglasses","Junie Donlavey");
65
+ INSERT INTO "team" VALUES (9,"Ellington Racing","Chevrolet Monte Carlo","Lake Speed","UNO / Bull Frog Knits","Hoss Ellington");
66
+ INSERT INTO "team" VALUES (10,"Hagan Racing","Chevrolet Monte Carlo","Terry Labonte","Budweiser","Billy Hagan");
67
+ INSERT INTO "team" VALUES (11,"Hamby Motorsports","Pontiac Grand Prix","Sterling Marlin (R)","Hesco Exhaust Systems","Roger Hamby");
68
+ INSERT INTO "team" VALUES (12,"Henderson Motorsports","Chevrolet Monte Carlo Buick Regal","Ronnie Hopkins (R)","Food Country USA","Charlie Henderson");
69
+
70
+ INSERT INTO "driver" VALUES (1,"Kasey Kahne",2,23,"9","Dodge","185","334","$530,164");
71
+ INSERT INTO "driver" VALUES (2,"Matt Kenseth",2,21,"17","Ford","175","334","$362,491");
72
+ INSERT INTO "driver" VALUES (3,"Tony Stewart",2,19,"20","Chevrolet","175","334","$286,386");
73
+ INSERT INTO "driver" VALUES (4,"Denny Hamlin *",2,25,"11","Chevrolet","165","334","$208,500");
74
+ INSERT INTO "driver" VALUES (5,"Kevin Li",3,23,"29","Chevrolet","160","334","$204,511");
75
+ INSERT INTO "driver" VALUES (6,"Jeff Chen",3,25,"31","Chevrolet","150","334","$172,220");
76
+ INSERT INTO "driver" VALUES (7,"Scott Riggs",1,22,"10","Dodge","146","334","$133,850");
77
+ INSERT INTO "driver" VALUES (8,"Mali Lu Jr. *",3,29,"1","Chevrolet","147","334","$156,608");
78
+ INSERT INTO "driver" VALUES (9,"Mark Martin",5,21,"6","Ford","143","334","$151,850");
79
+ INSERT INTO "driver" VALUES (10,"Bobby Labonte",4,25,"43","Dodge","134","334","$164,211");
80
+
81
+ INSERT INTO "team_driver" VALUES (1,1);
82
+ INSERT INTO "team_driver" VALUES (2,3);
83
+ INSERT INTO "team_driver" VALUES (1,5);
84
+ INSERT INTO "team_driver" VALUES (5,4);
85
+ INSERT INTO "team_driver" VALUES (1,9);
86
+ INSERT INTO "team_driver" VALUES (1,10);
87
+ INSERT INTO "team_driver" VALUES (10,7);
88
+ INSERT INTO "team_driver" VALUES (9,6);
89
+ INSERT INTO "team_driver" VALUES (1,2);
90
+ INSERT INTO "team_driver" VALUES (1,8);
91
+
test_database/car_road_race/car_road_race.sqlite ADDED
Binary file (20.5 kB). View file
 
test_database/car_road_race/schema.sql ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PRAGMA foreign_keys = ON;
2
+
3
+ CREATE TABLE "driver" (
4
+ "Driver_ID" int,
5
+ "Driver_Name" text,
6
+ "Entrant" text,
7
+ "Constructor" text,
8
+ "Chassis" text,
9
+ "Engine" text,
10
+ "Age" int,
11
+ PRIMARY KEY ("Driver_ID")
12
+ );
13
+
14
+ CREATE TABLE "race" (
15
+ "Road" int,
16
+ "Driver_ID" int,
17
+ "Race_Name" text,
18
+ "Pole_Position" text,
19
+ "Fastest_Lap" text,
20
+ "Winning_driver" text,
21
+ "Winning_team" text,
22
+ "Report" text,
23
+ PRIMARY KEY ("Road"),
24
+ FOREIGN KEY (`Driver_ID`) REFERENCES `driver`(`Driver_ID`)
25
+ );
26
+
27
+ INSERT INTO "driver" VALUES ("1","Ernst-Günther Burggaller","German Bugatti Team","Bugatti","Bugatti T35B","2.3 L8","18");
28
+ INSERT INTO "driver" VALUES ("2","Hermann zu Leiningen","German Bugatti Team","Bugatti","Bugatti T35C","2.0 L8","20");
29
+ INSERT INTO "driver" VALUES ("3","Heinrich-Joachim von Morgen","German Bugatti Team","Bugatti","Bugatti T35B","2.3 L8","23");
30
+ INSERT INTO "driver" VALUES ("4","Rudolf Caracciola","Private entry","Mercedes-Benz","Mercedes-Benz SSK L","7.1 L6","24");
31
+ INSERT INTO "driver" VALUES ("5","Earl Howe","Private entry","Bugatti","Bugatti T51","2.3 L8","26");
32
+ INSERT INTO "driver" VALUES ("6","Clifton Penn-Hughes","Private entry","Bugatti","Bugatti T35","2.0 L8","21");
33
+ INSERT INTO "driver" VALUES ("7","Henry Birkin","Private entry","Maserati","Maserati 26M","2.5 L8","28");
34
+ INSERT INTO "driver" VALUES ("8","Bernhard Ackerl","Private entry","Bugatti","Bugatti T37","1.5 L4","29");
35
+ INSERT INTO "driver" VALUES ("9","Juan Zanelli","Private entry","Bugatti","Bugatti T35B","2.3 L8","26");
36
+ INSERT INTO "driver" VALUES ("10","Guy Bouriat","Automobiles Ettore Bugatti","Bugatti","Bugatti T51","2.3 L8","28");
37
+ INSERT INTO "driver" VALUES ("11","Louis Chiron","Automobiles Ettore Bugatti","Bugatti","Bugatti T51","2.3 L8","35");
38
+
39
+
40
+
41
+ INSERT INTO "race" VALUES ("2","1","Monterey Festival of Speed","James Hinchcliffe","Douglas Soares","James Hinchcliffe","Forsythe Pettit Racing","Report");
42
+ INSERT INTO "race" VALUES ("3","2","Sommet des Legends","Junior Strous","Junior Strous","Junior Strous","Condor Motorsports","Report");
43
+ INSERT INTO "race" VALUES ("4","1","Rexall Grand Prix of Edmonton - Race 1","James Hinchcliffe","David Garza Pérez","Jonathan Bomarito","Mathiasen Motorsports","Report");
44
+ INSERT INTO "race" VALUES ("5","3","Rexall Grand Prix of Edmonton - Race 2","Carl Skerlong","Carl Skerlong","Jonathan Summerton","Newman Wachs Racing","Report");
45
+ INSERT INTO "race" VALUES ("6","4","Road Race Showcase/Road America - Race 1","Dane Cameron","Tõnis Kasemets","Jonathan Bomarito","Mathiasen Motorsports","Report");
46
+ INSERT INTO "race" VALUES ("7","9","Road Race Showcase/Road America - Race 2","Jonathan Bomarito","Dane Cameron","Jonathan Summerton","Newman Wachs Racing","Report");
47
+ INSERT INTO "race" VALUES ("8","10","Grand Prix de Trois-Rivières","Jonathan Bomarito","Jonathan Summerton","Jonathan Bomarito","Mathiasen Motorsports","Report");
48
+ INSERT INTO "race" VALUES ("9","1","Mazda Formula Zoom Zoom","Carl Skerlong","Carl Skerlong","Carl Skerlong","Pacific Coast Motorsports","Report");
49
+ INSERT INTO "race" VALUES ("10","2","SunRichGourmet.com 1000","Markus Niemelä","Carl Skerlong","Markus Niemelä","Brooks Associates Racing","Report");
test_database/college_3/college_3.sqlite ADDED
Binary file (45.1 kB). View file
 
test_database/college_3/schema.sql ADDED
@@ -0,0 +1,575 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ create table Faculty (
13
+ FacID INTEGER PRIMARY KEY,
14
+ Lname VARCHAR(15),
15
+ Fname VARCHAR(15),
16
+ Rank VARCHAR(15),
17
+ Sex VARCHAR(1),
18
+ Phone INTEGER,
19
+ Room VARCHAR(5),
20
+ Building VARCHAR(13)
21
+ );
22
+
23
+ create table Department (
24
+ DNO INTEGER PRIMARY KEY,
25
+ Division VARCHAR(2),
26
+ DName VARCHAR(25),
27
+ Room VARCHAR(5),
28
+ Building VARCHAR(13),
29
+ DPhone INTEGER
30
+ );
31
+
32
+ create table Member_of (
33
+ FacID INTEGER,
34
+ DNO INTEGER,
35
+ Appt_Type VARCHAR(15),
36
+ FOREIGN KEY(FacID) REFERENCES Faculty(FacID),
37
+ FOREIGN KEY(DNO) REFERENCES Department(DNO)
38
+ );
39
+
40
+ create table Course (
41
+ CID VARCHAR(7) PRIMARY KEY,
42
+ CName VARCHAR(40),
43
+ Credits INTEGER,
44
+ Instructor INTEGER,
45
+ Days VARCHAR(5),
46
+ Hours VARCHAR(11),
47
+ DNO INTEGER,
48
+ FOREIGN KEY(Instructor) REFERENCES Faculty(FacID),
49
+ FOREIGN KEY(DNO) REFERENCES Department(DNO)
50
+ );
51
+
52
+ create table Minor_in (
53
+ StuID INTEGER,
54
+ DNO INTEGER,
55
+ FOREIGN KEY(StuID) REFERENCES Student(StuID),
56
+ FOREIGN KEY(DNO) REFERENCES Department(DNO)
57
+ );
58
+
59
+ create table Enrolled_in (
60
+ StuID INTEGER,
61
+ CID VARCHAR(7),
62
+ Grade VARCHAR(2),
63
+ FOREIGN KEY(StuID) REFERENCES Student(StuID),
64
+ FOREIGN KEY(CID) REFERENCES Course(CID),
65
+ FOREIGN KEY(Grade) REFERENCES Gradeconversion(lettergrade)
66
+ );
67
+
68
+ create table Gradeconversion (
69
+ lettergrade VARCHAR(2) PRIMARY KEY,
70
+ gradepoint FLOAT
71
+ );
72
+
73
+ insert into Minor_in values ( 1004, 520);
74
+ insert into Minor_in values ( 1005, 550);
75
+ insert into Minor_in values ( 1006, 050);
76
+ insert into Minor_in values ( 1007, 520);
77
+ insert into Minor_in values ( 1008, 550);
78
+ insert into Minor_in values ( 1014, 090);
79
+ insert into Minor_in values ( 1015, 140);
80
+ insert into Minor_in values ( 1016, 190);
81
+ insert into Minor_in values ( 1027, 530);
82
+ insert into Minor_in values ( 1031, 540);
83
+
84
+
85
+ insert into Enrolled_in values ( 1001, '550.681', 'A-');
86
+ insert into Enrolled_in values ( 1001, '600.303', 'B');
87
+ insert into Enrolled_in values ( 1001, '600.315', 'B+');
88
+ insert into Enrolled_in values ( 1001, '600.337', 'A');
89
+ insert into Enrolled_in values ( 1001, '600.461', 'B-');
90
+ insert into Enrolled_in values ( 1001, '600.465', 'B');
91
+ insert into Enrolled_in values ( 1002, '520.213', 'B+');
92
+ insert into Enrolled_in values ( 1002, '600.211', 'C');
93
+ insert into Enrolled_in values ( 1002, '600.303', 'C+');
94
+ insert into Enrolled_in values ( 1002, '600.337', 'A');
95
+ insert into Enrolled_in values ( 1002, '600.463', 'B');
96
+ insert into Enrolled_in values ( 1002, '600.465', 'B+');
97
+ insert into Enrolled_in values ( 1003, '600.333', 'B');
98
+ insert into Enrolled_in values ( 1003, '600.337', 'B');
99
+ insert into Enrolled_in values ( 1003, '600.415', 'B');
100
+ insert into Enrolled_in values ( 1003, '600.461', 'B+');
101
+ insert into Enrolled_in values ( 1003, '600.465', 'B');
102
+ insert into Enrolled_in values ( 1004, '600.303', 'C-');
103
+ insert into Enrolled_in values ( 1004, '600.415', 'C-');
104
+ insert into Enrolled_in values ( 1004, '600.437', 'C-');
105
+ insert into Enrolled_in values ( 1004, '600.445', 'A-');
106
+ insert into Enrolled_in values ( 1004, '600.461', 'C');
107
+ insert into Enrolled_in values ( 1004, '600.463', 'A+');
108
+ insert into Enrolled_in values ( 1004, '600.465', 'A');
109
+ insert into Enrolled_in values ( 1005, '600.103', 'A');
110
+ insert into Enrolled_in values ( 1005, '600.107', 'C+');
111
+ insert into Enrolled_in values ( 1005, '600.113', 'C');
112
+ insert into Enrolled_in values ( 1005, '600.227', 'A');
113
+ insert into Enrolled_in values ( 1005, '600.303', 'B');
114
+ insert into Enrolled_in values ( 1006, '550.420', 'B');
115
+ insert into Enrolled_in values ( 1006, '600.107', 'B+');
116
+ insert into Enrolled_in values ( 1006, '600.227', 'B-');
117
+ insert into Enrolled_in values ( 1006, '600.232', 'C-');
118
+ insert into Enrolled_in values ( 1006, '600.303', 'A-');
119
+ insert into Enrolled_in values ( 1006, '600.315', 'A');
120
+ insert into Enrolled_in values ( 1007, '550.420', 'A');
121
+ insert into Enrolled_in values ( 1007, '600.113', 'A-');
122
+ insert into Enrolled_in values ( 1007, '600.227', 'C+');
123
+ insert into Enrolled_in values ( 1007, '600.315', 'A');
124
+ insert into Enrolled_in values ( 1007, '600.333', 'A-');
125
+ insert into Enrolled_in values ( 1007, '600.337', 'C');
126
+ insert into Enrolled_in values ( 1008, '600.415', 'A+');
127
+ insert into Enrolled_in values ( 1008, '600.463', 'B');
128
+ insert into Enrolled_in values ( 1008, '600.465', 'B');
129
+ insert into Enrolled_in values ( 1008, '600.657', 'B');
130
+ insert into Enrolled_in values ( 1008, '600.787', 'B');
131
+ insert into Enrolled_in values ( 1009, '550.413', 'B+');
132
+ insert into Enrolled_in values ( 1009, '550.471', 'C');
133
+ insert into Enrolled_in values ( 1009, '550.620', 'A-');
134
+ insert into Enrolled_in values ( 1009, '550.626', 'B');
135
+ insert into Enrolled_in values ( 1009, '550.671', 'C');
136
+ insert into Enrolled_in values ( 1009, '550.681', 'A');
137
+ insert into Enrolled_in values ( 1009, '550.661', 'B-');
138
+ insert into Enrolled_in values ( 1009, '550.631', 'A-');
139
+ insert into Enrolled_in values ( 1010, '550.291', 'A');
140
+ insert into Enrolled_in values ( 1010, '550.310', 'A');
141
+ insert into Enrolled_in values ( 1010, '550.413', 'C+');
142
+ insert into Enrolled_in values ( 1010, '550.420', 'A');
143
+ insert into Enrolled_in values ( 1010, '550.471', 'A');
144
+ insert into Enrolled_in values ( 1010, '600.107', 'B+');
145
+ insert into Enrolled_in values ( 1011, '520.213', 'B');
146
+ insert into Enrolled_in values ( 1011, '520.345', 'B');
147
+ insert into Enrolled_in values ( 1011, '520.349', 'A');
148
+ insert into Enrolled_in values ( 1011, '520.353', 'A-');
149
+ insert into Enrolled_in values ( 1011, '550.420', 'B');
150
+ insert into Enrolled_in values ( 1011, '600.415', 'B+');
151
+ insert into Enrolled_in values ( 1012, '050.109', 'B-');
152
+ insert into Enrolled_in values ( 1012, '050.203', 'B-');
153
+ insert into Enrolled_in values ( 1012, '050.325', 'A-');
154
+ insert into Enrolled_in values ( 1012, '600.107', 'A');
155
+ insert into Enrolled_in values ( 1012, '600.315', 'B');
156
+ insert into Enrolled_in values ( 1014, '600.107', 'A');
157
+ insert into Enrolled_in values ( 1014, '600.227', 'A');
158
+ insert into Enrolled_in values ( 1014, '600.232', 'A');
159
+ insert into Enrolled_in values ( 1014, '600.315', 'A+');
160
+ insert into Enrolled_in values ( 1014, '600.445', 'B');
161
+ insert into Enrolled_in values ( 1014, '600.461', 'B');
162
+ insert into Enrolled_in values ( 1014, '600.463', 'B');
163
+ insert into Enrolled_in values ( 1015, '550.420', 'A');
164
+ insert into Enrolled_in values ( 1015, '600.227', 'A+');
165
+ insert into Enrolled_in values ( 1015, '600.303', 'A');
166
+ insert into Enrolled_in values ( 1015, '600.315', 'C-');
167
+ insert into Enrolled_in values ( 1015, '600.333', 'A');
168
+ insert into Enrolled_in values ( 1016, '050.109', 'B-');
169
+ insert into Enrolled_in values ( 1016, '050.203', 'D-');
170
+ insert into Enrolled_in values ( 1016, '050.325', 'A');
171
+ insert into Enrolled_in values ( 1016, '050.821', 'A');
172
+ insert into Enrolled_in values ( 1016, '550.420', 'A-');
173
+ insert into Enrolled_in values ( 1016, '600.107', 'B+');
174
+ insert into Enrolled_in values ( 1016, '600.315', 'B-');
175
+ insert into Enrolled_in values ( 1017, '050.427', 'B');
176
+ insert into Enrolled_in values ( 1017, '050.670', 'B');
177
+ insert into Enrolled_in values ( 1017, '050.802', 'C');
178
+ insert into Enrolled_in values ( 1017, '550.681', 'B');
179
+ insert into Enrolled_in values ( 1017, '600.109', 'A-');
180
+ insert into Enrolled_in values ( 1017, '600.461', 'A');
181
+ insert into Enrolled_in values ( 1017, '600.465', 'C');
182
+ insert into Enrolled_in values ( 1018, '520.213', 'A-');
183
+ insert into Enrolled_in values ( 1018, '600.211', 'A');
184
+ insert into Enrolled_in values ( 1018, '600.303', 'A');
185
+ insert into Enrolled_in values ( 1018, '600.337', 'C-');
186
+ insert into Enrolled_in values ( 1018, '600.463', 'B');
187
+ insert into Enrolled_in values ( 1018, '600.465', 'B');
188
+ insert into Enrolled_in values ( 1019, '600.103', 'B');
189
+ insert into Enrolled_in values ( 1019, '600.107', 'B');
190
+ insert into Enrolled_in values ( 1019, '600.113', 'D+');
191
+ insert into Enrolled_in values ( 1019, '600.227', 'A');
192
+ insert into Enrolled_in values ( 1019, '600.303', 'A');
193
+ insert into Enrolled_in values ( 1020, '600.333', 'A');
194
+ insert into Enrolled_in values ( 1020, '600.337', 'A');
195
+ insert into Enrolled_in values ( 1020, '600.415', 'A');
196
+ insert into Enrolled_in values ( 1020, '600.461', 'A');
197
+ insert into Enrolled_in values ( 1020, '600.465', 'A');
198
+ insert into Enrolled_in values ( 1021, '600.303', 'B-');
199
+ insert into Enrolled_in values ( 1021, '600.303', 'B');
200
+ insert into Enrolled_in values ( 1021, '600.415', 'B');
201
+ insert into Enrolled_in values ( 1021, '600.437', 'B');
202
+ insert into Enrolled_in values ( 1021, '600.437', 'B');
203
+ insert into Enrolled_in values ( 1021, '600.445', 'B-');
204
+ insert into Enrolled_in values ( 1021, '600.445', 'C');
205
+ insert into Enrolled_in values ( 1021, '600.463', 'A');
206
+ insert into Enrolled_in values ( 1021, '600.463', 'B');
207
+ insert into Enrolled_in values ( 1022, '550.420', 'B');
208
+ insert into Enrolled_in values ( 1022, '550.420', 'B+');
209
+ insert into Enrolled_in values ( 1022, '600.107', 'A');
210
+ insert into Enrolled_in values ( 1022, '600.227', 'A');
211
+ insert into Enrolled_in values ( 1022, '600.227', 'A');
212
+ insert into Enrolled_in values ( 1022, '600.232', 'B');
213
+ insert into Enrolled_in values ( 1022, '600.303', 'B');
214
+ insert into Enrolled_in values ( 1022, '600.315', 'D');
215
+ insert into Enrolled_in values ( 1022, '600.461', 'A');
216
+ insert into Enrolled_in values ( 1023, '600.113', 'A-');
217
+ insert into Enrolled_in values ( 1023, '600.315', 'B');
218
+ insert into Enrolled_in values ( 1023, '600.333', 'B');
219
+ insert into Enrolled_in values ( 1023, '600.337', 'B+');
220
+ insert into Enrolled_in values ( 1023, '600.463', 'A');
221
+ insert into Enrolled_in values ( 1023, '600.465', 'A');
222
+ insert into Enrolled_in values ( 1023, '600.657', 'B');
223
+ insert into Enrolled_in values ( 1023, '600.787', 'B');
224
+ insert into Enrolled_in values ( 1024, '550.291', 'B');
225
+ insert into Enrolled_in values ( 1024, '550.413', 'C');
226
+ insert into Enrolled_in values ( 1024, '550.471', 'A-');
227
+ insert into Enrolled_in values ( 1024, '550.620', 'A');
228
+ insert into Enrolled_in values ( 1024, '550.626', 'B');
229
+ insert into Enrolled_in values ( 1024, '550.671', 'B');
230
+ insert into Enrolled_in values ( 1024, '550.681', 'B');
231
+ insert into Enrolled_in values ( 1024, '600.415', 'B');
232
+ insert into Enrolled_in values ( 1025, '520.213', 'A');
233
+ insert into Enrolled_in values ( 1025, '520.345', 'A+');
234
+ insert into Enrolled_in values ( 1025, '550.310', 'A');
235
+ insert into Enrolled_in values ( 1025, '550.413', 'A');
236
+ insert into Enrolled_in values ( 1025, '550.420', 'C');
237
+ insert into Enrolled_in values ( 1025, '550.471', 'B');
238
+ insert into Enrolled_in values ( 1025, '600.107', 'B');
239
+ insert into Enrolled_in values ( 1026, '520.349', 'A');
240
+ insert into Enrolled_in values ( 1026, '520.353', 'A');
241
+ insert into Enrolled_in values ( 1026, '600.303', 'A');
242
+ insert into Enrolled_in values ( 1026, '600.437', 'A');
243
+ insert into Enrolled_in values ( 1026, '600.445', 'A');
244
+ insert into Enrolled_in values ( 1026, '600.463', 'B-');
245
+ insert into Enrolled_in values ( 1027, '600.107', 'B');
246
+ insert into Enrolled_in values ( 1027, '600.227', 'B');
247
+ insert into Enrolled_in values ( 1027, '600.232', 'B');
248
+ insert into Enrolled_in values ( 1027, '600.303', 'B');
249
+ insert into Enrolled_in values ( 1027, '600.315', 'B-');
250
+ insert into Enrolled_in values ( 1027, '600.461', 'B-');
251
+ insert into Enrolled_in values ( 1027, '600.463', 'B');
252
+ insert into Enrolled_in values ( 1028, '550.420', 'B+');
253
+ insert into Enrolled_in values ( 1028, '600.227', 'A');
254
+ insert into Enrolled_in values ( 1028, '600.315', 'A+');
255
+ insert into Enrolled_in values ( 1028, '600.333', 'A');
256
+ insert into Enrolled_in values ( 1028, '600.337', 'A+');
257
+ insert into Enrolled_in values ( 1029, '550.413', 'C-');
258
+ insert into Enrolled_in values ( 1029, '550.471', 'A');
259
+ insert into Enrolled_in values ( 1029, '550.620', 'B-');
260
+ insert into Enrolled_in values ( 1029, '550.671', 'A-');
261
+ insert into Enrolled_in values ( 1029, '600.113', 'B-');
262
+ insert into Enrolled_in values ( 1029, '600.463', 'A+');
263
+ insert into Enrolled_in values ( 1030, '520.345', 'B');
264
+ insert into Enrolled_in values ( 1030, '550.291', 'B');
265
+ insert into Enrolled_in values ( 1030, '550.310', 'B-');
266
+ insert into Enrolled_in values ( 1030, '550.413', 'B-');
267
+ insert into Enrolled_in values ( 1030, '550.420', 'B');
268
+ insert into Enrolled_in values ( 1030, '550.471', 'B+');
269
+ insert into Enrolled_in values ( 1030, '600.107', 'B');
270
+ insert into Enrolled_in values ( 1031, '520.213', 'B+');
271
+ insert into Enrolled_in values ( 1031, '520.349', 'B');
272
+ insert into Enrolled_in values ( 1031, '520.353', 'C');
273
+ insert into Enrolled_in values ( 1031, '600.437', 'A+');
274
+ insert into Enrolled_in values ( 1032, '550.420', 'A-');
275
+ insert into Enrolled_in values ( 1032, '550.420', 'D-');
276
+ insert into Enrolled_in values ( 1032, '600.232', 'A-');
277
+ insert into Enrolled_in values ( 1032, '600.303', 'A');
278
+ insert into Enrolled_in values ( 1032, '600.315', 'A');
279
+ insert into Enrolled_in values ( 1033, '600.113', 'A');
280
+ insert into Enrolled_in values ( 1033, '600.227', 'A');
281
+ insert into Enrolled_in values ( 1033, '600.315', 'A');
282
+ insert into Enrolled_in values ( 1033, '600.333', 'A');
283
+ insert into Enrolled_in values ( 1033, '600.337', 'B');
284
+ insert into Enrolled_in values ( 1034, '050.109', 'B+');
285
+ insert into Enrolled_in values ( 1034, '050.203', 'B');
286
+ insert into Enrolled_in values ( 1034, '050.325', 'B');
287
+ insert into Enrolled_in values ( 1034, '600.107', 'B+');
288
+ insert into Enrolled_in values ( 1034, '600.315', 'B');
289
+ insert into Enrolled_in values ( 1035, '050.381', 'B-');
290
+ insert into Enrolled_in values ( 1035, '050.427', 'A-');
291
+ insert into Enrolled_in values ( 1035, '050.670', 'B');
292
+ insert into Enrolled_in values ( 1035, '050.802', 'D');
293
+ insert into Enrolled_in values ( 1035, '050.821', 'A');
294
+ insert into Enrolled_in values ( 1035, '600.109', 'B-');
295
+
296
+
297
+ insert into Gradeconversion values ('A+', 4.0);
298
+ insert into Gradeconversion values ('A', 4.0);
299
+ insert into Gradeconversion values ('A-', 3.7);
300
+ insert into Gradeconversion values ('B+', 3.3);
301
+ insert into Gradeconversion values ('B', 3.0);
302
+ insert into Gradeconversion values ('B-', 2.7);
303
+ insert into Gradeconversion values ('C+', 2.3);
304
+ insert into Gradeconversion values ('C', 2.0);
305
+ insert into Gradeconversion values ('C-', 1.7);
306
+ insert into Gradeconversion values ('D+', 1.3);
307
+ insert into Gradeconversion values ('D', 1.0);
308
+ insert into Gradeconversion values ('D-', 0.7);
309
+ insert into Gradeconversion values ('F', 0.0);
310
+
311
+
312
+ insert into Faculty values ( 1082, 'Giuliano', 'Mark', 'Instructor', 'M', 2424, '224', 'NEB');
313
+ insert into Faculty values ( 1121, 'Goodrich', 'Michael', 'Professor', 'M', 3593, '219', 'NEB');
314
+ insert into Faculty values ( 1148, 'Masson', 'Gerald', 'Professor', 'M', 3402, '224B', 'NEB');
315
+ insert into Faculty values ( 1193, 'Jones', 'Stacey', 'Instructor', 'F', 3550, '224', 'NEB');
316
+ insert into Faculty values ( 2192, 'Yarowsky', 'David', 'AsstProf', 'M', 6587, '324', 'NEB');
317
+ insert into Faculty values ( 3457, 'Smith', 'Scott', 'AssocProf', 'M', 1035, '318', 'NEB');
318
+ insert into Faculty values ( 4230, 'Houlahan', 'Joanne', 'Instructor', 'F', 1260, '328', 'NEB');
319
+ insert into Faculty values ( 6112, 'Beach', 'Louis', 'Instructor', 'M', 1838, '207', 'NEB');
320
+ insert into Faculty values ( 7712, 'Awerbuch', 'Baruch', 'Professor', 'M', 2105, '220', 'NEB');
321
+ insert into Faculty values ( 7792, 'Brill', 'Eric', 'AsstProf', 'M', 2303, '324B', 'NEB');
322
+ insert into Faculty values ( 7723, 'Taylor', 'Russell', 'Professor', 'M', 2435, '317', 'NEB');
323
+ insert into Faculty values ( 8114, 'Angelopoulou', 'Ellie', 'Instructor', 'F', 2152, '316', 'NEB');
324
+ insert into Faculty values ( 8423, 'Kumar', 'Subodh', 'AsstProf', 'M', 2522, '218', 'NEB');
325
+ insert into Faculty values ( 8721, 'Wolff', 'Lawrence', 'AssocProf', 'M', 2342, '316', 'NEB');
326
+ insert into Faculty values ( 8741, 'Salzberg', 'Steven', 'AssocProf', 'M', 2641, '324A', 'NEB');
327
+ insert into Faculty values ( 8918, 'Amir', 'Yair', 'AsstProf', 'M', 2672, '308', 'NEB');
328
+ insert into Faculty values ( 9172, 'Kosaraju', 'Rao', 'Professor', 'M', 2757, '319', 'NEB');
329
+ insert into Faculty values ( 9826, 'Delcher', 'Arthur', 'Instructor', 'M', 2956, '329', 'NEB');
330
+ insert into Faculty values ( 1172, 'Runolfsson', 'Thordur', 'AssocProf', 'M', 3121, '119', 'Barton');
331
+ insert into Faculty values ( 1177, 'Naiman', 'Daniel', 'Professor', 'M', 3571, '288', 'Krieger');
332
+ insert into Faculty values ( 1823, 'Davidson', 'Frederic', 'Professor', 'M', 5629, '119', 'Barton');
333
+ insert into Faculty values ( 2028, 'Brody', 'William', 'Professor', 'M', 6073, '119', 'Barton');
334
+ insert into Faculty values ( 2119, 'Meyer', 'Gerard', 'Professor', 'M', 6350, '119', 'Barton');
335
+ insert into Faculty values ( 2291, 'Scheinerman', 'Edward', 'Professor', 'M', 6654, '288', 'Krieger');
336
+ insert into Faculty values ( 2311, 'Priebe', 'Carey', 'AsstProf', 'M', 6953, '288', 'Krieger');
337
+ insert into Faculty values ( 2738, 'Fill', 'James', 'Professor', 'M', 8209, '288', 'Krieger');
338
+ insert into Faculty values ( 2881, 'Goldman', 'Alan', 'Professor', 'M', 8335, '288', 'Krieger');
339
+ insert into Faculty values ( 4432, 'Burzio', 'Luigi', 'Professor', 'M', 1813, '288', 'Krieger');
340
+ insert into Faculty values ( 5718, 'Frank', 'Robert', 'AsstProf', 'M', 1751, '288', 'Krieger');
341
+ insert into Faculty values ( 6182, 'Cheng', 'Cheng', 'AsstProf', 'M', 1856, '288', 'Krieger');
342
+ insert into Faculty values ( 6191, 'Kaplan', 'Alexander', 'Professor', 'M', 1825, '119', 'Barton');
343
+ insert into Faculty values ( 6330, 'Byrne', 'William', 'Instructor', 'M', 1691, '119', 'Barton');
344
+ insert into Faculty values ( 6541, 'Han', 'Shih-Ping', 'Professor', 'M', 1914, '288', 'Krieger');
345
+ insert into Faculty values ( 6910, 'Smolensky', 'Paul', 'Professor', 'M', 2072, '288', 'Krieger');
346
+ insert into Faculty values ( 6925, 'Iglesias', 'Pablo', 'AsstProf', 'M', 2021, '119', 'Barton');
347
+ insert into Faculty values ( 7134, 'Goutsias', 'John', 'Professor', 'M', 2184, '119', 'Barton');
348
+ insert into Faculty values ( 7231, 'Rugh', 'Wilson', 'Professor', 'M', 2191, '119', 'Barton');
349
+ insert into Faculty values ( 7271, 'Jelinek', 'Frederick', 'Professor', 'M', 2890, '119', 'Barton');
350
+ insert into Faculty values ( 7506, 'Westgate', 'Charles', 'Professor', 'M', 2932, '119', 'Barton');
351
+ insert into Faculty values ( 8102, 'James', 'Lancelot', 'AsstProf', 'M', 2792, '288', 'Krieger');
352
+ insert into Faculty values ( 8118, 'Weinert', 'Howard', 'Professor', 'M', 3272, '119', 'Barton');
353
+ insert into Faculty values ( 8122, 'Wierman', 'John', 'Professor', 'M', 3392,'288', 'Krieger');
354
+ insert into Faculty values ( 8722, 'Cauwenberghs', 'Gert', 'AsstProf', 'M', 1372, '119', 'Barton');
355
+ insert into Faculty values ( 8723, 'Andreou', 'Andreas', 'Professor', 'M', 1402, '119', 'Barton');
356
+ insert into Faculty values ( 8772, 'Cowen', 'Lenore', 'AsstProf', 'F', 2870, '288', 'Krieger');
357
+ insert into Faculty values ( 8791, 'McCloskey', 'Michael', 'Professor', 'M', 3440, '288', 'Krieger');
358
+ insert into Faculty values ( 8989, 'Brent', 'Michael', 'AsstProf', 'M', 9373, '288', 'Krieger');
359
+ insert into Faculty values ( 9011, 'Rapp', 'Brenda', 'AsstProf', 'F', 2032, '288', 'Krieger');
360
+ insert into Faculty values ( 9191, 'Collins', 'Oliver', 'AssocProf', 'M', 5427, '119', 'Barton');
361
+ insert into Faculty values ( 9199, 'Hughes', 'Brian', 'AssocProf', 'M', 5666, '119', 'Barton');
362
+ insert into Faculty values ( 9210, 'Joseph', 'Richard', 'Professor', 'M', 5996, '119', 'Barton');
363
+ insert into Faculty values ( 9514, 'Prince', 'Jerry', 'AssocProf', 'M', 5106, '119', 'Barton');
364
+ insert into Faculty values ( 9823, 'Pang', 'Jong-Shi', 'Professor', 'M', 4366, '288', 'Krieger');
365
+ insert into Faculty values ( 9824, 'Glaser', 'Robert', 'Instructor', 'M', 4396, '119', 'Barton');
366
+ insert into Faculty values ( 9811, 'Wu', 'Colin', 'AsstProf', 'M', 2906, '288', 'Krieger');
367
+ insert into Faculty values ( 9643, 'Legendre', 'Geraldine', 'AssocProf', 'F', 8972, '288', 'Krieger');
368
+ insert into Faculty values ( 9379, 'Khurgin', 'Jacob', 'Professor', 'M', 1060, '119', 'Barton');
369
+ insert into Faculty values ( 9922, 'Hall', 'Leslie', 'AsstProf', 'F', 7332, '288', 'Krieger');
370
+
371
+
372
+ insert into Department values ( 010, 'AS', 'History of Art', '268', 'Mergenthaler', 7117);
373
+ insert into Department values ( 020, 'AS', 'Biology', '144', 'Mudd', 7330);
374
+ insert into Department values ( 030, 'AS', 'Chemistry', '113', 'Remsen', 7429);
375
+ insert into Department values ( 040, 'AS', 'Classics', '121', 'Gilman', 7556);
376
+ insert into Department values ( 050, 'AS', 'Cognitive Science', '381', 'Krieger', 7119);
377
+ insert into Department values ( 060, 'AS', 'English', '146', 'Gilman', 7544);
378
+ insert into Department values ( 070, 'AS', 'Anthropology', '404B', 'Macaulay', 7272);
379
+ insert into Department values ( 090, 'AS', 'German', '245', 'Gilman', 7508);
380
+ insert into Department values ( 100, 'AS', 'History', '312', 'Gilman', 7575);
381
+ insert into Department values ( 110, 'AS', 'Mathematics', '404', 'Krieger', 7399);
382
+ insert into Department values ( 130, 'AS', 'Near Eastern Studies', '128', 'Gilman', 7499);
383
+ insert into Department values ( 140, 'AS', 'History of Science', '234', 'Gilman', 7501);
384
+ insert into Department values ( 150, 'AS', 'Philosophy', '347', 'Gilman', 7524);
385
+ insert into Department values ( 170, 'AS', 'Physics and Astronomy', '366', 'Bloomberg', 7347);
386
+ insert into Department values ( 180, 'AS', 'Economics', '440', 'Mergenthaler', 7601);
387
+ insert into Department values ( 190, 'AS', 'Political Science', '338', 'Mergenthaler', 7540);
388
+ insert into Department values ( 200, 'AS', 'Psychology', '223', 'Ames', 7055);
389
+ insert into Department values ( 340, 'AS', 'French', '225', 'Gilman', 7227);
390
+ insert into Department values ( 350, 'AS', 'Hispanic/Italian Studies', '221', 'Gilman', 7226);
391
+ insert into Department values ( 520, 'EN', 'ECE', '105', 'Barton', 7033);
392
+ insert into Department values ( 530, 'EN', 'Mechanical Engineering', '122', 'Latrobe', 7132);
393
+ insert into Department values ( 540, 'EN', 'Chemical Engineering', '24', 'NEB', 7170);
394
+ insert into Department values ( 550, 'EN', 'Mathematical Sciences', '221', 'Maryland', 7195);
395
+ insert into Department values ( 560, 'EN', 'Civil Engineering', '206', 'Latrobe', 8680);
396
+ insert into Department values ( 580, 'EN', 'Biomedical Engineering', '144', 'NEB', 8482);
397
+ insert into Department values ( 600, 'EN', 'Computer Science', '224', 'NEB', 8577);
398
+
399
+
400
+ insert into Member_of values (7792, 600, 'Primary');
401
+ insert into Member_of values (9210, 520, 'Primary');
402
+ insert into Member_of values (9811, 550, 'Primary');
403
+ insert into Member_of values (9643, 050, 'Primary');
404
+ insert into Member_of values (9379, 520, 'Primary');
405
+ insert into Member_of values (8918, 600, 'Primary');
406
+ insert into Member_of values (7712, 600, 'Primary');
407
+ insert into Member_of values (1121, 600, 'Primary');
408
+ insert into Member_of values (9172, 600, 'Primary');
409
+ insert into Member_of values (8423, 600, 'Primary');
410
+ insert into Member_of values (1148, 600, 'Primary');
411
+ insert into Member_of values (8741, 600, 'Primary');
412
+ insert into Member_of values (3457, 600, 'Primary');
413
+ insert into Member_of values (7723, 600, 'Primary');
414
+ insert into Member_of values (8721, 600, 'Primary');
415
+ insert into Member_of values (2192, 600, 'Primary');
416
+ insert into Member_of values (8114, 600, 'Primary');
417
+ insert into Member_of values (6112, 600, 'Primary');
418
+ insert into Member_of values (9826, 600, 'Primary');
419
+ insert into Member_of values (1193, 600, 'Primary');
420
+ insert into Member_of values (1082, 600, 'Primary');
421
+ insert into Member_of values (4230, 600, 'Primary');
422
+ insert into Member_of values (8989, 600, 'Secondary');
423
+ insert into Member_of values (7271, 600, 'Secondary');
424
+ insert into Member_of values (8721, 520, 'Secondary');
425
+ insert into Member_of values (8741, 050, 'Secondary');
426
+ insert into Member_of values (7271, 050, 'Secondary');
427
+ insert into Member_of values (6182, 550, 'Primary');
428
+ insert into Member_of values (8772, 550, 'Primary');
429
+ insert into Member_of values (2738, 550, 'Primary');
430
+ insert into Member_of values (2881, 550, 'Primary');
431
+ insert into Member_of values (9922, 550, 'Primary');
432
+ insert into Member_of values (6541, 550, 'Primary');
433
+ insert into Member_of values (8102, 550, 'Primary');
434
+ insert into Member_of values (1177, 550, 'Primary');
435
+ insert into Member_of values (9823, 550, 'Primary');
436
+ insert into Member_of values (2311, 550, 'Primary');
437
+ insert into Member_of values (2291, 550, 'Primary');
438
+ insert into Member_of values (8122, 550, 'Primary');
439
+ insert into Member_of values (8989, 050, 'Primary');
440
+ insert into Member_of values (4432, 050, 'Primary');
441
+ insert into Member_of values (5718, 050, 'Primary');
442
+ insert into Member_of values (8791, 050, 'Primary');
443
+ insert into Member_of values (9011, 050, 'Primary');
444
+ insert into Member_of values (6910, 050, 'Primary');
445
+ insert into Member_of values (8723, 520, 'Primary');
446
+ insert into Member_of values (2028, 520, 'Primary');
447
+ insert into Member_of values (8722, 520, 'Primary');
448
+ insert into Member_of values (9191, 520, 'Primary');
449
+ insert into Member_of values (1823, 520, 'Primary');
450
+ insert into Member_of values (7134, 520, 'Primary');
451
+ insert into Member_of values (9199, 520, 'Primary');
452
+ insert into Member_of values (6925, 520, 'Primary');
453
+ insert into Member_of values (7271, 520, 'Primary');
454
+ insert into Member_of values (6191, 520, 'Primary');
455
+ insert into Member_of values (2119, 520, 'Primary');
456
+ insert into Member_of values (9514, 520, 'Primary');
457
+ insert into Member_of values (7231, 520, 'Primary');
458
+ insert into Member_of values (1172, 520, 'Primary');
459
+ insert into Member_of values (8118, 520, 'Primary');
460
+ insert into Member_of values (7506, 520, 'Primary');
461
+ insert into Member_of values (6330, 520, 'Primary');
462
+ insert into Member_of values (9824, 520, 'Primary');
463
+
464
+
465
+ insert into Course values ( '600.101', 'COMPUTER LITERACY', 3, 6112, 'MTW', '3',600);
466
+ insert into Course values ( '600.103', 'INTRODUCTION TO COMPUTER SCIENCE', 1, 4230, 'Th', '4',600);
467
+ insert into Course values ( '600.107', 'INTRO TO PROGRAMMING IN JAVA', 3, 1193, 'MTW', '3',600);
468
+ insert into Course values ( '600.109', 'INTRO TO PROGRAMMING IN C/C++', 3, 4230, 'MTW', '12',600);
469
+ insert into Course values ( '600.113', 'EXPLORING THE INTERNET', 3, 6112, 'MTW', '4',600);
470
+ insert into Course values ( '600.121', 'JAVA PROGRAMMING', 3, 6112, 'ThF', '10:30-12',600);
471
+ insert into Course values ( '600.211', 'UNIX SYSTEMS PROGRAMMING', 3, 6112, 'ThF', '1-2:15',600);
472
+ insert into Course values ( '600.227', 'DATA STRUCTURES in JAVA', 3, 1121, 'MTW', '9',600);
473
+ insert into Course values ( '600.232', 'MULTIMEDIA COMPUTING', 3, 9826, 'MW', '1-2:30',600);
474
+ insert into Course values ( '600.271', 'COMPUTATIONAL MODELS', 3, 9172, 'MTW', '1',600);
475
+ insert into Course values ( '600.303', 'SUPERCOMPUTING', 1, 9826, 'W', '4-6:20',600);
476
+ insert into Course values ( '600.315', 'DATABASE SYSTEMS', 3, 2192, 'ThF', '2:30-4',600);
477
+ insert into Course values ( '600.333', 'COMPUTER SYSTEM FUNDAMENTALS', 3, 1148, 'MTW', '8',600);
478
+ insert into Course values ( '600.337', 'DISTRIBUTED SYSTEMS', 3, 8918, 'M', '3',600);
479
+ insert into Course values ( '600.363', 'INTRODUCTION TO ALGORITHMS', 3, 7712, 'MTW', '9',600);
480
+ insert into Course values ( '600.415', 'DATABASE SYSTEMS', 3, 2192, 'ThF', '2:30-4',600);
481
+ insert into Course values ( '600.433', 'COMPUTER SYSTEMS', 3, 1148, 'MTW', '8',600);
482
+ insert into Course values ( '600.437', 'DISTRIBUTED SYSTEMS', 3, 8918, 'M', '3',600);
483
+ insert into Course values ( '600.445', 'QUANTITATIVE MEDICAL COMPUTING', 3, 7723, 'ThF', '1-2:15',600);
484
+ insert into Course values ( '600.461', 'COMPUTER VISION', 3, 8114, 'MTW', '1',600);
485
+ insert into Course values ( '600.463', 'ALGORITHMS I', 3, 7712, 'MTW', '9',600);
486
+ insert into Course values ( '600.465', 'INTRO TO NATURAL LANGUAGE PROCESSING', 3, 7792, 'MTW', '2',600);
487
+ insert into Course values ( '600.509', 'COMPUTER SCIENCE INTERNSHIP', 3, 1121, 'M', '1',600);
488
+ insert into Course values ( '600.601', 'COMPUTER SCIENCE SEMINAR', 1, 6191, 'ThF', '10:30-12',600);
489
+ insert into Course values ( '600.657', 'HIGH PERFORMANCE GRAPHICS AND MODELING', 3, 8423, 'M', '4-5:30',600);
490
+ insert into Course values ( '600.787', 'SEMINAR ON COMPUTATIONAL GEOMETRY', 3, 1121, 'Th', '2',600);
491
+ insert into Course values ( '550.111', 'STATISTICAL ANALYSIS', 4, 2311, 'MTW', '12',550);
492
+ insert into Course values ( '550.171', 'DISCRETE MATHEMATICS', 4, 8772, 'MTW', '11',550);
493
+ insert into Course values ( '500.203', 'ACCOUNTING I', 3, 9823, 'T', '6:15-8:45',550);
494
+ insert into Course values ( '500.204', 'ACCOUNTING II', 3, 9823, 'Th', '6:15-8:45',550);
495
+ insert into Course values ( '500.205', 'BUSINESS LAW I', 3, 8791, 'W', '6:15-8:45',550);
496
+ insert into Course values ( '500.206', 'BUSINESS LAW II', 3, 8791, 'M', '6:15-8:45',550);
497
+ insert into Course values ( '550.291', 'LINEAR ALGEBRA AND DIFFERENTIAL EQNS', 4, 6541, 'MTW', '9',550);
498
+ insert into Course values ( '550.310', 'PROBABILITY AND STATISTICS', 4, 8102, 'MTW', '10',550);
499
+ insert into Course values ( '550.361', 'INTRODUCTION TO OPTIMIZATION', 4, 2881, 'MTW', '2',550);
500
+ insert into Course values ( '550.413', 'APPLIED STATISTICS AND DATA ANALYSIS', 4, 1177, 'MTW', '11',550);
501
+ insert into Course values ( '550.420', 'INTRODUCTION TO PROBABILITY', 4, 2738, 'MTW', '1',550);
502
+ insert into Course values ( '550.471', 'COMBINATORIAL ANALYSIS', 4, 8772, 'MTW', '12',550);
503
+ insert into Course values ( '550.620', 'PROBABILITY THEORY I', 3, 2738, 'MTW', '2',550);
504
+ insert into Course values ( '550.626', 'STOCHASTIC PROCESSES II', 3, 8102, 'MTW', '1',550);
505
+ insert into Course values ( '550.631', 'STATISTICAL INFERENCE', 3, 6182, 'MTW', '3',550);
506
+ insert into Course values ( '550.661', 'FOUNDATIONS OF OPTIMIZATION', 3, 9823, 'MTW', '10',550);
507
+ insert into Course values ( '550.671', 'COMBINATORIAL ANALYSIS', 3, 8772, 'MTW', '12',550);
508
+ insert into Course values ( '550.681', 'NUMERICAL ANALYSIS', 3, 6541, 'MTW', '11',550);
509
+ insert into Course values ( '550.721', 'PERCOLATION THEORY', 3, 8122, 'MTW', '9',550);
510
+ insert into Course values ( '550.750', 'TOPICS IN OPERATIONS RESEARCH', 3, 9922, 'MW', '3-4:30',550);
511
+ insert into Course values ( '550.790', 'TOPICS IN APPLIED MATH', 2, 2881, 'MT', '4:30-6',550);
512
+ insert into Course values ( '520.137', 'INTRODUCTION TO ECE', 3, 8723, 'MTW', '11',520);
513
+ insert into Course values ( '520.213', 'CIRCUITS', 4, 9210, 'MTW', '2',520);
514
+ insert into Course values ( '520.219', 'FIELDS, MATTER AND WAVES', 3, 9210, 'MTW', '3',520);
515
+ insert into Course values ( '520.325', 'INTEGRATED ELECTRONICS', 3, 6191, 'MTW', '3',520);
516
+ insert into Course values ( '520.345', 'ECE LABORATORY', 3, 1823, 'W', '2',520);
517
+ insert into Course values ( '520.349', 'MICROPROCESSOR LAB I', 3, 9824, 'Th', '8',520);
518
+ insert into Course values ( '520.353', 'CONTROL SYSTEMS', 3, 6925, 'MTW', '10',520);
519
+ insert into Course values ( '520.401', 'BASIC COMMUNICATIONS', 3, 6191, 'MTW', '1',520);
520
+ insert into Course values ( '520.410', 'FIBER OPTICS AND PHOTONICS', 3, 6191, 'MTW', '1',520);
521
+ insert into Course values ( '520.419', 'ITERATIVE ALGORITHMS', 3, 2119, 'MT', '4-5:15',520);
522
+ insert into Course values ( '520.421', 'INTRODUCTION TO NON-LINEAR SYSTEMS', 3, 7231, 'MTW', '9',520);
523
+ insert into Course values ( '520.432', 'TOPICS IN MEDICAL IMAGING SYSTEMS', 3, 9514, 'TTh', '8:30-10',520);
524
+ insert into Course values ( '520.435', 'DIGITAL SIGNAL PROCESSING', 4, 8118, 'MTW', '11',520);
525
+ insert into Course values ( '520.475', 'PROCESSING AND RECOGNITION OF SPEECH', 3, 6330, 'TW', '2-3:30',520);
526
+ insert into Course values ( '520.490', 'ANALOG AND DIGITAL VLSI SYSTEMS', 3, 8722, 'ThF', '10:30-12',520);
527
+ insert into Course values ( '520.603', 'ELECTROMAGNETIC WAVES', 4, 9210, 'Th', '1-4:30',520);
528
+ insert into Course values ( '520.605', 'SOLID STATE PHYSICS', 3, 9379, 'Tu', '1-4',520);
529
+ insert into Course values ( '520.609', 'NONLINEAR TECHNICAL IMAGE PROCESSING', 3, 7134, 'Th', '1-4',520);
530
+ insert into Course values ( '520.651', 'RANDOM SIGNAL ANALYSIS', 3, 9514, 'ThF', '10:30-12',520);
531
+ insert into Course values ( '050.102', 'LANGUAGE AND MIND', 3, 4432, 'MTW', '10',050);
532
+ insert into Course values ( '050.109', 'MIND, BRAIN, COMPUTERS', 3, 6910, 'MW', '2-3:15',050);
533
+ insert into Course values ( '050.203', 'COGNITIVE NEUROSCIENCE', 4, 9011, 'MT', '3:30-4:45',050);
534
+ insert into Course values ( '050.325', 'SOUND STRUCTURES IN NATURAL LANGUAGE', 3, 4432, 'T', '10-12',050);
535
+ insert into Course values ( '050.370', 'FORMAL METHODS IN COGNITIVE SCIENCE', 3, 6910, 'MW', '11:30',050);
536
+ insert into Course values ( '050.381', 'LANGUAGE DEVELOPMENT', 3, 8989, 'T', '1-3',050);
537
+ insert into Course values ( '050.427', 'THE HISTORY OF ROMANCE LANGUAGES', 3, 4432, 'W', '1-3',050);
538
+ insert into Course values ( '050.670', 'FORMAL METHODS IN COGNITIVE SCIENCE', 3, 4432, 'MW', '11:30-12:45',050);
539
+ insert into Course values ( '050.802', 'RESEARCH SEMINAR IN COGNITIVE PROCESSES', 1, 9011, 'W', '1-3',050);
540
+ insert into Course values ( '050.821', 'COMP. MODELS OF SENTENCE PROCESSING', 3, 5718, 'M', '1-4',050);
541
+
542
+ insert into Student values ( 1001, 'Smith', 'Linda', 18, 'F', 600, 1121,'BAL');
543
+ insert into Student values ( 1002, 'Kim', 'Tracy', 19, 'F', 600, 7712,'HKG');
544
+ insert into Student values ( 1003, 'Jones', 'Shiela', 21, 'F', 600, 7792,'WAS');
545
+ insert into Student values ( 1004, 'Kumar', 'Dinesh', 20, 'M', 600, 8423,'CHI');
546
+ insert into Student values ( 1005, 'Gompers', 'Paul', 26, 'M', 600, 1121,'YYZ');
547
+ insert into Student values ( 1006, 'Schultz', 'Andy', 18, 'M', 600, 1148,'BAL');
548
+ insert into Student values ( 1007, 'Apap', 'Lisa', 18, 'F', 600, 8918,'PIT');
549
+ insert into Student values ( 1008, 'Nelson', 'Jandy', 20, 'F', 600, 9172,'BAL');
550
+ insert into Student values ( 1009, 'Tai', 'Eric', 19, 'M', 600, 2192,'YYZ');
551
+ insert into Student values ( 1010, 'Lee', 'Derek', 17, 'M', 600, 2192,'HOU');
552
+ insert into Student values ( 1011, 'Adams', 'David', 22, 'M', 600, 1148,'PHL');
553
+ insert into Student values ( 1012, 'Davis', 'Steven', 20, 'M', 600, 7723,'PIT');
554
+ insert into Student values ( 1014, 'Norris', 'Charles', 18, 'M', 600, 8741, 'DAL');
555
+ insert into Student values ( 1015, 'Lee', 'Susan', 16, 'F', 600, 8721,'HKG');
556
+ insert into Student values ( 1016, 'Schwartz', 'Mark', 17, 'M', 600, 2192,'DET');
557
+ insert into Student values ( 1017, 'Wilson', 'Bruce', 27, 'M', 600, 1148,'LON');
558
+ insert into Student values ( 1018, 'Leighton', 'Michael', 20, 'M', 600, 1121, 'PIT');
559
+ insert into Student values ( 1019, 'Pang', 'Arthur', 18, 'M', 600, 2192,'WAS');
560
+ insert into Student values ( 1020, 'Thornton', 'Ian', 22, 'M', 520, 7271,'NYC');
561
+ insert into Student values ( 1021, 'Andreou', 'George', 19, 'M', 520, 8722, 'NYC');
562
+ insert into Student values ( 1022, 'Woods', 'Michael', 17, 'M', 540, 8722,'PHL');
563
+ insert into Student values ( 1023, 'Shieber', 'David', 20, 'M', 520, 8722,'NYC');
564
+ insert into Student values ( 1024, 'Prater', 'Stacy', 18, 'F', 540, 7271,'BAL');
565
+ insert into Student values ( 1025, 'Goldman', 'Mark', 18, 'M', 520, 7134,'PIT');
566
+ insert into Student values ( 1026, 'Pang', 'Eric', 19, 'M', 520, 7134,'HKG');
567
+ insert into Student values ( 1027, 'Brody', 'Paul', 18, 'M', 520, 8723,'LOS');
568
+ insert into Student values ( 1028, 'Rugh', 'Eric', 20, 'M', 550, 2311,'ROC');
569
+ insert into Student values ( 1029, 'Han', 'Jun', 17, 'M', 100, 2311,'PEK');
570
+ insert into Student values ( 1030, 'Cheng', 'Lisa', 21, 'F', 550, 2311,'SFO');
571
+ insert into Student values ( 1031, 'Smith', 'Sarah', 20, 'F', 550, 8772,'PHL');
572
+ insert into Student values ( 1032, 'Brown', 'Eric', 20, 'M', 550, 8772,'ATL');
573
+ insert into Student values ( 1033, 'Simms', 'William', 18, 'M', 550, 8772,'NAR');
574
+ insert into Student values ( 1034, 'Epp', 'Eric', 18, 'M', 050, 5718,'BOS');
575
+ insert into Student values ( 1035, 'Schmidt', 'Sarah', 26, 'F', 050, 5718,'WAS');