Add files using upload-large-folder tool
Browse files- database/academic/academic.sqlite +3 -0
- database/assets_maintenance/schema.sql +355 -0
- database/candidate_poll/candidate_poll.sqlite +0 -0
- database/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sqlite +0 -0
- database/csu_1/csu_1.sqlite +3 -0
- database/formula_1/data_csv/status.csv +135 -0
- database/network_2/schema.sql +25 -0
- database/party_people/party_people.sqlite +0 -0
- database/poker_player/poker_player.sqlite +0 -0
- database/school_player/schema.sql +113 -0
- database/soccer_1/soccer_1.sqlite +3 -0
- database/wine_1/link.txt +1 -0
- test_database/aircraft/schema.sql +108 -0
- test_database/book_1/q.txt +37 -0
- test_database/car_1/data_csv/car-names.csv +407 -0
- test_database/district_spokesman/schema.sql +58 -0
- test_database/e_commerce/schema.sql +188 -0
- test_database/phone_1/schema.sql +65 -0
- test_database/restaurant_bills/schema.sql +61 -0
- test_database/wine_1/wine_1.sqlite +0 -0
database/academic/academic.sqlite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ca59ebaa830731011a222885480e4b9f9d49c3e36849dee25b769fb74f296c2
|
| 3 |
+
size 122880
|
database/assets_maintenance/schema.sql
ADDED
|
@@ -0,0 +1,355 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PRAGMA foreign_keys = ON;
|
| 2 |
+
|
| 3 |
+
CREATE TABLE `Third_Party_Companies` (
|
| 4 |
+
`company_id` INTEGER PRIMARY KEY ,
|
| 5 |
+
`company_type` VARCHAR(5) NOT NULL,
|
| 6 |
+
`company_name` VARCHAR(255),
|
| 7 |
+
`company_address` VARCHAR(255),
|
| 8 |
+
`other_company_details` VARCHAR(255)
|
| 9 |
+
);
|
| 10 |
+
|
| 11 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (1, 'Maintenance Contractor', 'Langworth-Funk', '615 Jacobs Mews', 'Uganda');
|
| 12 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (2, 'Maintenance Contractor', 'McDermott Group', '873 Conrad Creek Apt. 286', 'China');
|
| 13 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (3, 'Maintenance Contractor', 'Schuppe-Carroll', '066 Bechtelar Ridge', 'United Arab Emirates');
|
| 14 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (4, 'Maintenance Contractor', 'Dooley-Langosh', '9576 Jacynthe Point Suite 747', 'Albania');
|
| 15 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (5, 'Supplier', 'Dooley and Sons', '84631 Rosenbaum Well Suite 727', 'Palestinian Territory');
|
| 16 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (6, 'Supplier', 'Grimes, Mosciski and Renner', '9405 Leffler Hollow Apt. 753', 'Kiribati');
|
| 17 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (7, 'Maintenance Contractor', 'Weimann-Swift', '016 Kaitlyn Fall Suite 236', 'Egypt');
|
| 18 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (8, 'Maintenance Contractor', 'Glover-Vandervort', '51515 Conn Corner Suite 696', 'Ethiopia');
|
| 19 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (9, 'Maintenance Contractor', 'Wisoky, Toy and Bashirian', '605 D''Amore Oval', 'Iran');
|
| 20 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (10, 'Maintenance Contractor', 'White Ltd', '680 Hammes Ways', 'Niue');
|
| 21 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (11, 'Maintenance Contractor', 'Kuvalis, Boehm and Hettinger', '99335 Cummings Square Apt. 723', 'Somalia');
|
| 22 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (12, 'Maintenance Contractor', 'Dicki, Erdman and Kris', '60743 Dion Harbors Suite 825', 'Western Sahara');
|
| 23 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (13, 'Supplier', 'Greenholt-D''Amore', '1755 Schaefer Road', 'Slovenia');
|
| 24 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (14, 'Supplier', 'Purdy Inc', '846 Casper Route', 'Saint Helena');
|
| 25 |
+
INSERT INTO Third_Party_Companies (`company_id`, `company_type`, `company_name`, `company_address`, `other_company_details`) VALUES (15, 'Maintenance Contractor', 'Rau, Ullrich and King', '5147 Raul Burg Apt. 623', 'Armenia');
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
CREATE TABLE `Maintenance_Contracts` (
|
| 29 |
+
`maintenance_contract_id` INTEGER PRIMARY KEY,
|
| 30 |
+
`maintenance_contract_company_id` INTEGER NOT NULL,
|
| 31 |
+
`contract_start_date` DATETIME,
|
| 32 |
+
`contract_end_date` DATETIME,
|
| 33 |
+
`other_contract_details` VARCHAR(255),
|
| 34 |
+
FOREIGN KEY (`maintenance_contract_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
|
| 35 |
+
);
|
| 36 |
+
|
| 37 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (1, 15, '2017-09-13 11:51:29', '2018-03-16 21:21:50', NULL);
|
| 38 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (2, 9, '2017-12-18 11:43:16', '2018-03-22 06:00:37', NULL);
|
| 39 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (3, 11, '2017-05-06 02:32:19', '2018-03-20 14:02:54', NULL);
|
| 40 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (4, 13, '2018-01-24 00:06:30', '2018-03-02 16:12:23', NULL);
|
| 41 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (5, 4, '2017-10-28 05:13:21', '2018-02-27 17:36:59', NULL);
|
| 42 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (6, 7, '2018-03-07 10:59:11', '2018-03-14 10:17:43', NULL);
|
| 43 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (7, 13, '2017-09-01 05:34:02', '2018-02-27 05:03:22', NULL);
|
| 44 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (8, 8, '2017-11-23 11:26:12', '2018-03-02 22:26:54', NULL);
|
| 45 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (9, 6, '2017-04-21 00:03:07', '2018-03-07 19:30:50', NULL);
|
| 46 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (10, 6, '2017-06-14 01:46:59', '2018-03-09 10:40:10', NULL);
|
| 47 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (11, 15, '2017-05-04 13:39:18', '2018-03-14 20:21:10', NULL);
|
| 48 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (12, 6, '2017-12-06 20:09:39', '2018-03-06 13:47:14', NULL);
|
| 49 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (13, 14, '2017-07-23 05:07:37', '2018-03-05 21:24:36', NULL);
|
| 50 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (14, 10, '2017-09-19 17:57:17', '2018-03-15 06:45:00', NULL);
|
| 51 |
+
INSERT INTO Maintenance_Contracts (`maintenance_contract_id`, `maintenance_contract_company_id`, `contract_start_date`, `contract_end_date`, `other_contract_details`) VALUES (15, 6, '2017-05-14 11:57:50', '2018-03-23 17:29:21', NULL);
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
CREATE TABLE `Parts` (
|
| 55 |
+
`part_id` INTEGER PRIMARY KEY,
|
| 56 |
+
`part_name` VARCHAR(255),
|
| 57 |
+
`chargeable_yn` VARCHAR(1),
|
| 58 |
+
`chargeable_amount` VARCHAR(20),
|
| 59 |
+
`other_part_details` VARCHAR(255)
|
| 60 |
+
);
|
| 61 |
+
|
| 62 |
+
INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (1, 'top', '0', '4', NULL);
|
| 63 |
+
INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (2, 'middle', '1', '9', NULL);
|
| 64 |
+
INSERT INTO Parts (`part_id`, `part_name`, `chargeable_yn`, `chargeable_amount`, `other_part_details`) VALUES (3, 'package', '1', '9', NULL);
|
| 65 |
+
|
| 66 |
+
CREATE TABLE `Skills` (
|
| 67 |
+
`skill_id` INTEGER PRIMARY KEY,
|
| 68 |
+
`skill_code` VARCHAR(20),
|
| 69 |
+
`skill_description` VARCHAR(255)
|
| 70 |
+
);
|
| 71 |
+
|
| 72 |
+
INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (1, 'ELEC', 'Electrical');
|
| 73 |
+
INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (2, 'MECH', 'Mechanical');
|
| 74 |
+
INSERT INTO Skills (`skill_id`, `skill_code`, `skill_description`) VALUES (3, 'TV', 'TV, Video');
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
CREATE TABLE `Staff` (
|
| 78 |
+
`staff_id` INTEGER PRIMARY KEY,
|
| 79 |
+
`staff_name` VARCHAR(255),
|
| 80 |
+
`gender` VARCHAR(1),
|
| 81 |
+
`other_staff_details` VARCHAR(255)
|
| 82 |
+
);
|
| 83 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (1, 'Audreanne', '1', 'Manager');
|
| 84 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (2, 'Berneice', '1', 'Manager');
|
| 85 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (3, 'Helena', '1', NULL);
|
| 86 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (4, 'Edmond', '0', NULL);
|
| 87 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (5, 'Leola', '1', 'Manager');
|
| 88 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (6, 'Rodger', '1', NULL);
|
| 89 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (7, 'Kadin', '1', NULL);
|
| 90 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (8, 'Christophe', '0', 'Woker');
|
| 91 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (9, 'Bernice', '0', NULL);
|
| 92 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (10, 'Jayda', '1', NULL);
|
| 93 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (11, 'Estel', '0', NULL);
|
| 94 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (12, 'Oren', '1', NULL);
|
| 95 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (13, 'Howell', '0', NULL);
|
| 96 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (14, 'Cyrus', '0', NULL);
|
| 97 |
+
INSERT INTO Staff (`staff_id`, `staff_name`, `gender`, `other_staff_details`) VALUES (15, 'Jeffry', '0', NULL);
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
CREATE TABLE `Assets` (
|
| 102 |
+
`asset_id` INTEGER PRIMARY KEY,
|
| 103 |
+
`maintenance_contract_id` INTEGER NOT NULL,
|
| 104 |
+
`supplier_company_id` INTEGER NOT NULL,
|
| 105 |
+
`asset_details` VARCHAR(255),
|
| 106 |
+
`asset_make` VARCHAR(20),
|
| 107 |
+
`asset_model` VARCHAR(20),
|
| 108 |
+
`asset_acquired_date` DATETIME,
|
| 109 |
+
`asset_disposed_date` DATETIME,
|
| 110 |
+
`other_asset_details` VARCHAR(255),
|
| 111 |
+
FOREIGN KEY (`maintenance_contract_id` )
|
| 112 |
+
REFERENCES `Maintenance_Contracts`(`maintenance_contract_id` ),
|
| 113 |
+
FOREIGN KEY (`supplier_company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
|
| 114 |
+
);
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (1, 2, 2, 'dell laptop1', 'PT', '58 ub', '2017-12-25 00:31:27', '2018-03-14 10:50:00', NULL);
|
| 119 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (2, 14, 1, 'dell laptop2', 'IN', '35 xt', '2018-01-27 00:59:46', '2018-03-20 04:24:09', NULL);
|
| 120 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (3, 7, 2, 'dell laptop3', 'IT', '63 ok', '2017-09-07 08:13:15', '2018-03-08 20:50:40', 'Bad condition');
|
| 121 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (4, 11, 5, 'dell laptop4', 'RU', '69 uv', '2017-06-12 17:37:19', '2018-03-16 05:46:55', NULL);
|
| 122 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (5, 8, 5, 'dell laptop5', 'DE', '90 oq', '2017-07-21 16:03:19', '2018-02-27 18:59:07', NULL);
|
| 123 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (6, 8, 6, 'monitor1', 'CN', '91 ub', '2017-04-22 12:33:39', '2018-03-10 11:11:43', NULL);
|
| 124 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (7, 6, 6, 'monitor2', 'CN', '27 du', '2017-07-18 01:22:58', '2018-03-20 22:45:00', NULL);
|
| 125 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (8, 15, 7, 'monitor3', 'GB', '94 kg', '2017-10-24 04:29:17', '2018-02-28 18:14:13', 'Bad condition');
|
| 126 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (9, 12, 13, 'machine1', 'RU', '07 yt', '2017-04-16 12:19:25', '2018-03-08 18:42:41', NULL);
|
| 127 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (10, 2, 2, 'machine2', 'FR', '20 tl', '2017-09-19 16:15:45', '2018-03-06 20:36:14', NULL);
|
| 128 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (11, 7, 12, 'machine3', 'FR', '11 wi', '2017-11-25 05:04:20', '2018-03-17 00:51:14', NULL);
|
| 129 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (12, 13, 14, 'machine4', 'RU', '95 vn', '2017-09-26 14:05:46', '2018-02-27 23:12:03', 'Bad condition');
|
| 130 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (13, 11, 8, 'system1', 'DE', '08 yy', '2017-12-20 14:05:17', '2018-03-07 20:35:19', 'Bad condition');
|
| 131 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (14, 10, 6, 'system2', 'IN', '66 xm', '2017-10-19 02:54:52', '2018-03-22 23:48:15', NULL);
|
| 132 |
+
INSERT INTO Assets (`asset_id`, `maintenance_contract_id`, `supplier_company_id`, `asset_details`, `asset_make`, `asset_model`, `asset_acquired_date`, `asset_disposed_date`, `other_asset_details`) VALUES (15, 6, 11, 'system3', 'IE', '24 ak', '2017-12-18 19:21:11', '2018-02-27 02:37:16', NULL);
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
CREATE TABLE `Asset_Parts` (
|
| 137 |
+
`asset_id` INTEGER NOT NULL,
|
| 138 |
+
`part_id` INTEGER NOT NULL,
|
| 139 |
+
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` ),
|
| 140 |
+
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` )
|
| 141 |
+
);
|
| 142 |
+
|
| 143 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (5, 3);
|
| 144 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 3);
|
| 145 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (10, 1);
|
| 146 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (1, 2);
|
| 147 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 1);
|
| 148 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (1, 3);
|
| 149 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (6, 2);
|
| 150 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (2, 3);
|
| 151 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 2);
|
| 152 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (2, 2);
|
| 153 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (3, 3);
|
| 154 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (15, 3);
|
| 155 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (4, 1);
|
| 156 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (14, 1);
|
| 157 |
+
INSERT INTO Asset_Parts (`asset_id`, `part_id`) VALUES (15, 2);
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
CREATE TABLE `Maintenance_Engineers` (
|
| 162 |
+
`engineer_id` INTEGER PRIMARY KEY,
|
| 163 |
+
`company_id` INTEGER NOT NULL,
|
| 164 |
+
`first_name` VARCHAR(50),
|
| 165 |
+
`last_name` VARCHAR(50),
|
| 166 |
+
`other_details` VARCHAR(255),
|
| 167 |
+
FOREIGN KEY (`company_id` ) REFERENCES `Third_Party_Companies`(`company_id` )
|
| 168 |
+
);
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (1, 14, 'Etha', 'Reinger', 'Skilled');
|
| 172 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (2, 2, 'Clemens', 'Orn', NULL);
|
| 173 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (3, 6, 'Samanta', 'Hauck', NULL);
|
| 174 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (4, 3, 'Lorine', 'Morar', NULL);
|
| 175 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (5, 15, 'Manley', 'Grady', NULL);
|
| 176 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (6, 1, 'Courtney', 'Adams', NULL);
|
| 177 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (7, 11, 'Josie', 'Harvey', 'Skilled');
|
| 178 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (8, 9, 'Nellie', 'Hirthe', NULL);
|
| 179 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (9, 4, 'Brian', 'Stamm', NULL);
|
| 180 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (10, 4, 'Naomi', 'Price', NULL);
|
| 181 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (11, 7, 'Cullen', 'Kunde', NULL);
|
| 182 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (12, 10, 'Alexys', 'Simonis', NULL);
|
| 183 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (13, 2, 'Weston', 'Hahn', NULL);
|
| 184 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (14, 11, 'Jules', 'Goldner', NULL);
|
| 185 |
+
INSERT INTO Maintenance_Engineers (`engineer_id`, `company_id`, `first_name`, `last_name`, `other_details`) VALUES (15, 3, 'Archibald', 'Streich', NULL);
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
CREATE TABLE `Engineer_Skills` (
|
| 190 |
+
`engineer_id` INTEGER NOT NULL,
|
| 191 |
+
`skill_id` INTEGER NOT NULL,
|
| 192 |
+
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
|
| 193 |
+
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
|
| 194 |
+
);
|
| 195 |
+
|
| 196 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 2);
|
| 197 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 1);
|
| 198 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (15, 1);
|
| 199 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (6, 1);
|
| 200 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (13, 1);
|
| 201 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (6, 3);
|
| 202 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (13, 2);
|
| 203 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (7, 3);
|
| 204 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (5, 2);
|
| 205 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (8, 3);
|
| 206 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (15, 3);
|
| 207 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (5, 1);
|
| 208 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (9, 3);
|
| 209 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (3, 1);
|
| 210 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (11, 2);
|
| 211 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (12, 2);
|
| 212 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (2, 2);
|
| 213 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (10, 1);
|
| 214 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (8, 1);
|
| 215 |
+
INSERT INTO Engineer_Skills (`engineer_id`, `skill_id`) VALUES (4, 1);
|
| 216 |
+
|
| 217 |
+
CREATE TABLE `Fault_Log` (
|
| 218 |
+
`fault_log_entry_id` INTEGER PRIMARY KEY,
|
| 219 |
+
`asset_id` INTEGER NOT NULL,
|
| 220 |
+
`recorded_by_staff_id` INTEGER NOT NULL,
|
| 221 |
+
`fault_log_entry_datetime` DATETIME,
|
| 222 |
+
`fault_description` VARCHAR(255),
|
| 223 |
+
`other_fault_details` VARCHAR(255),
|
| 224 |
+
FOREIGN KEY (`asset_id` ) REFERENCES `Assets`(`asset_id` ),
|
| 225 |
+
FOREIGN KEY (`recorded_by_staff_id` ) REFERENCES `Staff`(`staff_id` )
|
| 226 |
+
);
|
| 227 |
+
|
| 228 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (1, 3, 14, '2018-03-21 04:25:00', 'system error', NULL);
|
| 229 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (2, 7, 4, '2018-03-13 09:43:05', 'system error', NULL);
|
| 230 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (3, 6, 9, '2018-02-24 09:28:20', 'system error', NULL);
|
| 231 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (4, 5, 13, '2018-02-28 02:07:36', 'failed parts', NULL);
|
| 232 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (5, 9, 11, '2018-03-02 03:14:46', 'system error', NULL);
|
| 233 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (6, 8, 8, '2018-02-28 20:15:25', 'failed parts', NULL);
|
| 234 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (7, 5, 14, '2018-03-05 09:44:08', 'system error', NULL);
|
| 235 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (8, 12, 10, '2018-03-19 04:24:18', 'failed parts', NULL);
|
| 236 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (9, 3, 5, '2018-03-06 15:52:54', 'system error', NULL);
|
| 237 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (10, 2, 9, '2018-03-03 10:41:52', 'failed parts', NULL);
|
| 238 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (11, 15, 12, '2018-03-21 15:02:17', 'failed parts', NULL);
|
| 239 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (12, 8, 8, '2018-03-10 07:08:34', 'system error', NULL);
|
| 240 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (13, 3, 13, '2018-03-11 14:00:39', 'system error', NULL);
|
| 241 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (14, 3, 11, '2018-02-27 11:34:20', 'failed parts', NULL);
|
| 242 |
+
INSERT INTO Fault_Log (`fault_log_entry_id`, `asset_id`, `recorded_by_staff_id`, `fault_log_entry_datetime`, `fault_description`, `other_fault_details`) VALUES (15, 12, 13, '2018-03-01 08:52:58', 'system error', NULL);
|
| 243 |
+
|
| 244 |
+
CREATE TABLE `Engineer_Visits` (
|
| 245 |
+
`engineer_visit_id` INTEGER PRIMARY KEY,
|
| 246 |
+
`contact_staff_id` INTEGER,
|
| 247 |
+
`engineer_id` INTEGER NOT NULL,
|
| 248 |
+
`fault_log_entry_id` INTEGER NOT NULL,
|
| 249 |
+
`fault_status` VARCHAR(10) NOT NULL,
|
| 250 |
+
`visit_start_datetime` DATETIME,
|
| 251 |
+
`visit_end_datetime` DATETIME,
|
| 252 |
+
`other_visit_details` VARCHAR(255),
|
| 253 |
+
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` ),
|
| 254 |
+
FOREIGN KEY (`engineer_id` ) REFERENCES `Maintenance_Engineers`(`engineer_id` ),
|
| 255 |
+
FOREIGN KEY (`contact_staff_id` ) REFERENCES `Staff`(`staff_id` )
|
| 256 |
+
);
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (1, 8, 8, 13, 'Waiting', '1978-10-12 23:14:40', '1988-01-07 06:41:51', NULL);
|
| 261 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (2, 7, 15, 13, 'Return', '1980-05-02 23:31:18', '1990-08-30 22:44:16', NULL);
|
| 262 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (3, 7, 15, 4, 'Waiting', '2010-02-23 18:16:23', '1982-05-13 02:08:41', NULL);
|
| 263 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (4, 12, 12, 13, 'Fixed', '1996-11-07 05:31:35', '1973-09-12 07:06:54', NULL);
|
| 264 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (5, 2, 4, 12, 'Fixed', '1994-07-27 22:35:48', '2008-03-24 22:18:47', NULL);
|
| 265 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (6, 4, 15, 11, 'Fixed', '1984-07-14 22:47:51', '2010-07-05 18:36:22', NULL);
|
| 266 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (7, 7, 15, 14, 'Reported', '1996-07-06 23:59:49', '2012-11-27 06:26:01', NULL);
|
| 267 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (8, 6, 15, 2, 'Waiting', '1985-08-26 01:02:49', '1971-03-29 23:46:30', NULL);
|
| 268 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (9, 7, 15, 12, 'Waiting', '1991-05-02 01:39:59', '1970-08-01 15:35:51', NULL);
|
| 269 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (10, 14, 10, 2, 'Fixed', '1996-07-12 22:38:46', '1970-03-25 14:44:29', NULL);
|
| 270 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (11, 9, 6, 3, 'Fixed', '1975-04-06 11:09:23', '2000-01-27 09:33:10', NULL);
|
| 271 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (12, 2, 1, 13, 'Return', '2006-03-31 20:03:10', '2013-09-29 20:50:24', NULL);
|
| 272 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (13, 4, 10, 8, 'Fixed', '2015-07-05 21:37:55', '1988-10-20 12:02:00', NULL);
|
| 273 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (14, 9, 4, 13, 'Return', '1997-06-23 17:45:21', '1980-12-19 08:30:46', NULL);
|
| 274 |
+
INSERT INTO Engineer_Visits (`engineer_visit_id`, `contact_staff_id`, `engineer_id`, `fault_log_entry_id`, `fault_status`, `visit_start_datetime`, `visit_end_datetime`, `other_visit_details`) VALUES (15, 4, 11, 10, 'Reported', '1970-07-19 19:21:32', '2007-11-12 04:24:01', NULL);
|
| 275 |
+
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
CREATE TABLE `Part_Faults` (
|
| 279 |
+
`part_fault_id` INTEGER PRIMARY KEY,
|
| 280 |
+
`part_id` INTEGER NOT NULL,
|
| 281 |
+
`fault_short_name` VARCHAR(20),
|
| 282 |
+
`fault_description` VARCHAR(255),
|
| 283 |
+
`other_fault_details` VARCHAR(255),
|
| 284 |
+
FOREIGN KEY (`part_id` ) REFERENCES `Parts`(`part_id` )
|
| 285 |
+
);
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
CREATE TABLE `Fault_Log_Parts` (
|
| 289 |
+
`fault_log_entry_id` INTEGER NOT NULL,
|
| 290 |
+
`part_fault_id` INTEGER NOT NULL,
|
| 291 |
+
`fault_status` VARCHAR(10) NOT NULL,
|
| 292 |
+
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
|
| 293 |
+
FOREIGN KEY (`fault_log_entry_id` ) REFERENCES `Fault_Log`(`fault_log_entry_id` )
|
| 294 |
+
);
|
| 295 |
+
|
| 296 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (1, 1, 'PW', 'Package Wrong', NULL);
|
| 297 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (2, 1, 'PW', 'Package Wrong', NULL);
|
| 298 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (3, 3, 'TW', 'Top Parts Wrong', NULL);
|
| 299 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (4, 1, 'PW', 'Package Wrong', NULL);
|
| 300 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (5, 1, 'MW', 'Medium Scale Wrong', NULL);
|
| 301 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (6, 2, 'PW', 'Package Wrong', NULL);
|
| 302 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (7, 1, 'PW', 'Package Wrong', NULL);
|
| 303 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (8, 3, 'TW', 'Top Parts Wrong', NULL);
|
| 304 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (9, 3, 'PW', 'Package Wrong', NULL);
|
| 305 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (10, 1, 'PW', 'Package Wrong', NULL);
|
| 306 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (11, 3, 'MW', 'Medium Scale Wrong', NULL);
|
| 307 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (12, 2, 'MW', 'Medium Scale Wrong', NULL);
|
| 308 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (13, 3, 'TW', 'Top Parts Wrong', NULL);
|
| 309 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (14, 1, 'TW', 'Top Parts Wrong', NULL);
|
| 310 |
+
INSERT INTO Part_Faults (`part_fault_id`, `part_id`, `fault_short_name`, `fault_description`, `other_fault_details`) VALUES (15, 3, 'MW', 'Medium Scale Wrong', NULL);
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (12, 3, 'Reported');
|
| 315 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (7, 4, 'Reported');
|
| 316 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 9, 'Return');
|
| 317 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 14, 'Fixed');
|
| 318 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (6, 4, 'Waiting');
|
| 319 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (14, 8, 'Waiting');
|
| 320 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (1, 10, 'Fixed');
|
| 321 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (3, 8, 'Return');
|
| 322 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (11, 2, 'Reported');
|
| 323 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (3, 11, 'Fixed');
|
| 324 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (11, 8, 'Reported');
|
| 325 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (4, 14, 'Waiting');
|
| 326 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (13, 15, 'Fixed');
|
| 327 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (13, 1, 'Fixed');
|
| 328 |
+
INSERT INTO Fault_Log_Parts (`fault_log_entry_id`, `part_fault_id`, `fault_status`) VALUES (4, 6, 'Reported');
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
CREATE TABLE `Skills_Required_To_Fix` (
|
| 332 |
+
`part_fault_id` INTEGER NOT NULL,
|
| 333 |
+
`skill_id` INTEGER NOT NULL,
|
| 334 |
+
FOREIGN KEY (`part_fault_id` ) REFERENCES `Part_Faults`(`part_fault_id` ),
|
| 335 |
+
FOREIGN KEY (`skill_id` ) REFERENCES `Skills`(`skill_id` )
|
| 336 |
+
);
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (3, 2);
|
| 342 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (12, 3);
|
| 343 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (6, 1);
|
| 344 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 3);
|
| 345 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 3);
|
| 346 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 1);
|
| 347 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (5, 3);
|
| 348 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (13, 2);
|
| 349 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (14, 3);
|
| 350 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (10, 2);
|
| 351 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (2, 1);
|
| 352 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (7, 2);
|
| 353 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (1, 3);
|
| 354 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 3);
|
| 355 |
+
INSERT INTO Skills_Required_To_Fix (`part_fault_id`, `skill_id`) VALUES (15, 2);
|
database/candidate_poll/candidate_poll.sqlite
ADDED
|
Binary file (20.5 kB). View file
|
|
|
database/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sqlite
ADDED
|
Binary file (24.6 kB). View file
|
|
|
database/csu_1/csu_1.sqlite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c66e85b742a4941118aab88183c4be7f3e238f9d2558a5e68f8818c504e2710d
|
| 3 |
+
size 102400
|
database/formula_1/data_csv/status.csv
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
statusId,status
|
| 2 |
+
1,Finished
|
| 3 |
+
2,Disqualified
|
| 4 |
+
3,Accident
|
| 5 |
+
4,Collision
|
| 6 |
+
5,Engine
|
| 7 |
+
6,Gearbox
|
| 8 |
+
7,Transmission
|
| 9 |
+
8,Clutch
|
| 10 |
+
9,Hydraulics
|
| 11 |
+
10,Electrical
|
| 12 |
+
11,+1 Lap
|
| 13 |
+
12,+2 Laps
|
| 14 |
+
13,+3 Laps
|
| 15 |
+
14,+4 Laps
|
| 16 |
+
15,+5 Laps
|
| 17 |
+
16,+6 Laps
|
| 18 |
+
17,+7 Laps
|
| 19 |
+
18,+8 Laps
|
| 20 |
+
19,+9 Laps
|
| 21 |
+
20,Spun off
|
| 22 |
+
21,Radiator
|
| 23 |
+
22,Suspension
|
| 24 |
+
23,Brakes
|
| 25 |
+
24,Differential
|
| 26 |
+
25,Overheating
|
| 27 |
+
26,Mechanical
|
| 28 |
+
27,Tyre
|
| 29 |
+
28,Driver Seat
|
| 30 |
+
29,Puncture
|
| 31 |
+
30,Driveshaft
|
| 32 |
+
31,Retired
|
| 33 |
+
32,Fuel pressure
|
| 34 |
+
33,Front wing
|
| 35 |
+
34,Water pressure
|
| 36 |
+
35,Refuelling
|
| 37 |
+
36,Wheel
|
| 38 |
+
37,Throttle
|
| 39 |
+
38,Steering
|
| 40 |
+
39,Technical
|
| 41 |
+
40,Electronics
|
| 42 |
+
41,Broken wing
|
| 43 |
+
42,Heat shield fire
|
| 44 |
+
43,Exhaust
|
| 45 |
+
44,Oil leak
|
| 46 |
+
45,+11 Laps
|
| 47 |
+
46,Wheel rim
|
| 48 |
+
47,Water leak
|
| 49 |
+
48,Fuel pump
|
| 50 |
+
49,Track rod
|
| 51 |
+
50,+17 Laps
|
| 52 |
+
51,Oil pressure
|
| 53 |
+
128,+42 Laps
|
| 54 |
+
53,+13 Laps
|
| 55 |
+
54,Withdrew
|
| 56 |
+
55,+12 Laps
|
| 57 |
+
56,Engine fire
|
| 58 |
+
129,Engine misfire
|
| 59 |
+
58,+26 Laps
|
| 60 |
+
59,Tyre puncture
|
| 61 |
+
60,Out of fuel
|
| 62 |
+
61,Wheel nut
|
| 63 |
+
62,Not classified
|
| 64 |
+
63,Pneumatics
|
| 65 |
+
64,Handling
|
| 66 |
+
65,Rear wing
|
| 67 |
+
66,Fire
|
| 68 |
+
67,Wheel bearing
|
| 69 |
+
68,Physical
|
| 70 |
+
69,Fuel system
|
| 71 |
+
70,Oil line
|
| 72 |
+
71,Fuel rig
|
| 73 |
+
72,Launch control
|
| 74 |
+
73,Injured
|
| 75 |
+
74,Fuel
|
| 76 |
+
75,Power loss
|
| 77 |
+
76,Vibrations
|
| 78 |
+
77,107% Rule
|
| 79 |
+
78,Safety
|
| 80 |
+
79,Drivetrain
|
| 81 |
+
80,Ignition
|
| 82 |
+
81,Did not qualify
|
| 83 |
+
82,Injury
|
| 84 |
+
83,Chassis
|
| 85 |
+
84,Battery
|
| 86 |
+
85,Stalled
|
| 87 |
+
86,Halfshaft
|
| 88 |
+
87,Crankshaft
|
| 89 |
+
88,+10 Laps
|
| 90 |
+
89,Safety concerns
|
| 91 |
+
90,Not restarted
|
| 92 |
+
91,Alternator
|
| 93 |
+
92,Underweight
|
| 94 |
+
93,Safety belt
|
| 95 |
+
94,Oil pump
|
| 96 |
+
95,Fuel leak
|
| 97 |
+
96,Excluded
|
| 98 |
+
97,Did not prequalify
|
| 99 |
+
98,Injection
|
| 100 |
+
99,Distributor
|
| 101 |
+
100,Driver unwell
|
| 102 |
+
101,Turbo
|
| 103 |
+
102,CV joint
|
| 104 |
+
103,Water pump
|
| 105 |
+
104,Fatal accident
|
| 106 |
+
105,Spark plugs
|
| 107 |
+
106,Fuel pipe
|
| 108 |
+
107,Eye injury
|
| 109 |
+
108,Oil pipe
|
| 110 |
+
109,Axle
|
| 111 |
+
110,Water pipe
|
| 112 |
+
111,+14 Laps
|
| 113 |
+
112,+15 Laps
|
| 114 |
+
113,+25 Laps
|
| 115 |
+
114,+18 Laps
|
| 116 |
+
115,+22 Laps
|
| 117 |
+
116,+16 Laps
|
| 118 |
+
117,+24 Laps
|
| 119 |
+
118,+29 Laps
|
| 120 |
+
119,+23 Laps
|
| 121 |
+
120,+21 Laps
|
| 122 |
+
121,Magneto
|
| 123 |
+
122,+44 Laps
|
| 124 |
+
123,+30 Laps
|
| 125 |
+
124,+19 Laps
|
| 126 |
+
125,+46 Laps
|
| 127 |
+
126,Supercharger
|
| 128 |
+
127,+20 Laps
|
| 129 |
+
130,Collision damage
|
| 130 |
+
131,Power Unit
|
| 131 |
+
132,ERS
|
| 132 |
+
133,+49 Laps
|
| 133 |
+
134,+38 Laps
|
| 134 |
+
135,Brake duct
|
| 135 |
+
136,Seat
|
database/network_2/schema.sql
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CREATE TABLE Person (
|
| 2 |
+
name varchar(20) PRIMARY KEY,
|
| 3 |
+
age INTEGER,
|
| 4 |
+
city TEXT,
|
| 5 |
+
gender TEXT,
|
| 6 |
+
job TEXT
|
| 7 |
+
);
|
| 8 |
+
|
| 9 |
+
CREATE TABLE PersonFriend (
|
| 10 |
+
name varchar(20),
|
| 11 |
+
friend varchar(20),
|
| 12 |
+
year INTEGER,
|
| 13 |
+
FOREIGN KEY (name) REFERENCES Person(name),
|
| 14 |
+
FOREIGN KEY (friend) REFERENCES Person(name)
|
| 15 |
+
);
|
| 16 |
+
|
| 17 |
+
INSERT INTO Person VALUES ('Alice',25,'new york city','female','student');
|
| 18 |
+
INSERT INTO Person VALUES ('Bob',35,'salt lake city','male','engineer');
|
| 19 |
+
INSERT INTO Person VALUES ('Zach', 45,'austin','male','doctor');
|
| 20 |
+
INSERT INTO Person VALUES ('Dan',26,'chicago','female','student');
|
| 21 |
+
|
| 22 |
+
INSERT INTO PersonFriend VALUES ('Alice','Bob',10);
|
| 23 |
+
INSERT INTO PersonFriend VALUES ('Zach','Dan', 12);
|
| 24 |
+
INSERT INTO PersonFriend VALUES ('Bob','Zach', 5);
|
| 25 |
+
INSERT INTO PersonFriend VALUES ('Zach','Alice', 6);
|
database/party_people/party_people.sqlite
ADDED
|
Binary file (36.9 kB). View file
|
|
|
database/poker_player/poker_player.sqlite
ADDED
|
Binary file (20.5 kB). View file
|
|
|
database/school_player/schema.sql
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
PRAGMA foreign_keys = ON;
|
| 3 |
+
|
| 4 |
+
CREATE TABLE "school" (
|
| 5 |
+
"School_ID" int,
|
| 6 |
+
"School" text,
|
| 7 |
+
"Location" text,
|
| 8 |
+
"Enrollment" real,
|
| 9 |
+
"Founded" real,
|
| 10 |
+
"Denomination" text,
|
| 11 |
+
"Boys_or_Girls" text,
|
| 12 |
+
"Day_or_Boarding" text,
|
| 13 |
+
"Year_Entered_Competition" real,
|
| 14 |
+
"School_Colors" text,
|
| 15 |
+
PRIMARY KEY ("School_Id")
|
| 16 |
+
);
|
| 17 |
+
|
| 18 |
+
INSERT INTO "school" VALUES (1,"St Aloysius' College","Milsons Point","1200","1879","Catholic","Boys","Day","1929","Royal Blue and Gold");
|
| 19 |
+
INSERT INTO "school" VALUES (2,"Barker College","Hornsby","2300","1890","Anglican","Boys only to Yr 9 Co-ed Year 10 to 12","Day & Boarding","1929","Red & Blue");
|
| 20 |
+
INSERT INTO "school" VALUES (3,"Cranbrook School","Bellevue Hill","1000","1918","Anglican","Boys","Day & Boarding","1929","Red, White & Blue");
|
| 21 |
+
INSERT INTO "school" VALUES (4,"Knox Grammar School","Wahroonga","1850","1924","Uniting Church","Boys","Day & Boarding","1929","Black & Blue");
|
| 22 |
+
INSERT INTO "school" VALUES (5,"Trinity Grammar School","Summer Hill","2200","1913","Anglican","Boys","Day & Boarding","1929","Green and White");
|
| 23 |
+
INSERT INTO "school" VALUES (6,"Waverley College","Waverley","1430","1903","Catholic","Boys","Day","1944","Royal Blue and Gold");
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
CREATE TABLE "school_details" (
|
| 28 |
+
"School_ID" int,
|
| 29 |
+
"Nickname" text,
|
| 30 |
+
"Colors" text,
|
| 31 |
+
"League" text,
|
| 32 |
+
"Class" text,
|
| 33 |
+
"Division" text,
|
| 34 |
+
PRIMARY KEY ("School_Id"),
|
| 35 |
+
FOREIGN KEY (`School_ID`) REFERENCES `school`(`School_ID`)
|
| 36 |
+
);
|
| 37 |
+
|
| 38 |
+
INSERT INTO "school_details" VALUES (1,"Tigers","Blue and Yellow","DSHA","Flight A","Division 1");
|
| 39 |
+
INSERT INTO "school_details" VALUES (2,"Auks","Dark Green and White","DSHA","Flight B","Division 3");
|
| 40 |
+
INSERT INTO "school_details" VALUES (3,"Buccaneers","Garnet and White","DSHA","Fight A","Division 1");
|
| 41 |
+
INSERT INTO "school_details" VALUES (4,"Raiders","Maroon and White","DSHA","Flight B","Division 3");
|
| 42 |
+
INSERT INTO "school_details" VALUES (5,"Seahawks","Blue and Gold","DSHA","Flight B","Division 2");
|
| 43 |
+
INSERT INTO "school_details" VALUES (6,"Silver Eagles","Silver and Maroon","DSHA","Flight B","Division 3");
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
CREATE TABLE "school_performance" (
|
| 48 |
+
"School_Id" int,
|
| 49 |
+
"School_Year" text,
|
| 50 |
+
"Class_A" text,
|
| 51 |
+
"Class_AA" text,
|
| 52 |
+
PRIMARY KEY ("School_Id","School_Year"),
|
| 53 |
+
FOREIGN KEY (`School_ID`) REFERENCES `school`(`School_ID`)
|
| 54 |
+
);
|
| 55 |
+
|
| 56 |
+
INSERT INTO "school_performance" VALUES (1,"1987-88","Yantis","Blanco");
|
| 57 |
+
INSERT INTO "school_performance" VALUES (1,"1988-89","Happy","Blanco");
|
| 58 |
+
INSERT INTO "school_performance" VALUES (1,"1989-90","Skidmore-Tynan", "Bishop");
|
| 59 |
+
INSERT INTO "school_performance" VALUES (2,"1990-91","Louise","Lytle");
|
| 60 |
+
INSERT INTO "school_performance" VALUES (2,"1991-92","Anton","Clarendon");
|
| 61 |
+
INSERT INTO "school_performance" VALUES (3,"1992-93","Anton","Wheeler");
|
| 62 |
+
INSERT INTO "school_performance" VALUES (4,"1993-94","Utopia","Lytle");
|
| 63 |
+
INSERT INTO "school_performance" VALUES (3,"1994-95","Martin's Mill","Wallis Brazos");
|
| 64 |
+
INSERT INTO "school_performance" VALUES (5,"1995-96","Lindsay","Henrietta");
|
| 65 |
+
INSERT INTO "school_performance" VALUES (6,"1996-97","Martin's Mill","Canadian");
|
| 66 |
+
INSERT INTO "school_performance" VALUES (1,"1997-98","Martin's Mill","Buffalo");
|
| 67 |
+
INSERT INTO "school_performance" VALUES (2,"1998-99","Wheeler","Van Alstyne");
|
| 68 |
+
INSERT INTO "school_performance" VALUES (3,"1999-2000","Valley View","Lindsay");
|
| 69 |
+
INSERT INTO "school_performance" VALUES (5,"2000-01","Menard","Weimar");
|
| 70 |
+
INSERT INTO "school_performance" VALUES (6,"2001-02","Santa Anna","Hale Center");
|
| 71 |
+
INSERT INTO "school_performance" VALUES (2,"2002-03","Martin's Mill","Hale Center");
|
| 72 |
+
INSERT INTO "school_performance" VALUES (1,"2003-04","Martin's Mill","S&S Consolidated");
|
| 73 |
+
INSERT INTO "school_performance" VALUES (2,"2004-05","Lindsay","Salado");
|
| 74 |
+
INSERT INTO "school_performance" VALUES (3,"2005-06","Quanah","Salado");
|
| 75 |
+
INSERT INTO "school_performance" VALUES (1,"2006-07","Martin's Mill","Weimar");
|
| 76 |
+
INSERT INTO "school_performance" VALUES (6,"2007-08","Frost","Weimar");
|
| 77 |
+
INSERT INTO "school_performance" VALUES (4,"2008-09","Winters","Dimmitt");
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
CREATE TABLE "player" (
|
| 81 |
+
"Player_ID" int,
|
| 82 |
+
"Player" text,
|
| 83 |
+
"Team" text,
|
| 84 |
+
"Age" int,
|
| 85 |
+
"Position" text,
|
| 86 |
+
"School_ID" int,
|
| 87 |
+
PRIMARY KEY ("Player_ID"),
|
| 88 |
+
FOREIGN KEY (`School_ID`) REFERENCES `school`(`School_ID`)
|
| 89 |
+
);
|
| 90 |
+
|
| 91 |
+
INSERT INTO "player" VALUES ("1","Timothy Beckham","Tampa Bay Devil Rays",15,"Shortstop",1);
|
| 92 |
+
INSERT INTO "player" VALUES ("2","Pedro Álvarez","Pittsburgh Pirates",14,"Third baseman",2);
|
| 93 |
+
INSERT INTO "player" VALUES ("3","Eric Hosmer","Kansas City Royals",16,"First Baseman",1);
|
| 94 |
+
INSERT INTO "player" VALUES ("4","Brian Matusz","Baltimore Orioles",17,"Left-handed pitcher",1);
|
| 95 |
+
INSERT INTO "player" VALUES ("5","Buster Posey","San Francisco Giants",15,"Catcher",2);
|
| 96 |
+
INSERT INTO "player" VALUES ("6","Kyle Skipworth","Florida Marlins",14,"Catcher",2);
|
| 97 |
+
INSERT INTO "player" VALUES ("7","Yonder Alonso","Cincinnati Reds",15,"First baseman",1);
|
| 98 |
+
INSERT INTO "player" VALUES ("8","Gordon Beckham","Chicago White Sox",16,"Shortstop",1);
|
| 99 |
+
INSERT INTO "player" VALUES ("9","Aaron Crow *","Washington Nationals",16,"Right-handed pitcher",1);
|
| 100 |
+
INSERT INTO "player" VALUES ("10","Jason Castro","Houston Astros",15,"Catcher",1);
|
| 101 |
+
INSERT INTO "player" VALUES ("11","Justin Smoak","Texas Rangers",15,"First baseman",1);
|
| 102 |
+
INSERT INTO "player" VALUES ("12","Jemile Weeks","Oakland Athletics",15,"Second baseman",2);
|
| 103 |
+
INSERT INTO "player" VALUES ("13","Brett Wallace","St. Louis Cardinals",17,"Third baseman",5);
|
| 104 |
+
INSERT INTO "player" VALUES ("14","Aaron Hicks","Minnesota Twins",14,"Outfielder",6);
|
| 105 |
+
INSERT INTO "player" VALUES ("15","Ethan Martin","Los Angeles Dodgers",15,"Right-handed pitcher",1);
|
| 106 |
+
INSERT INTO "player" VALUES ("16","Brett Lawrie","Milwaukee Brewers",15,"Catcher",1);
|
| 107 |
+
INSERT INTO "player" VALUES ("17","David Cooper","Toronto Blue Jays",17,"First baseman",1);
|
| 108 |
+
INSERT INTO "player" VALUES ("18","Ike Davis","New York Mets",15,"First baseman",4);
|
| 109 |
+
INSERT INTO "player" VALUES ("19","Andrew Cashner","Chicago Cubs",16,"Right-handed pitcher",4);
|
| 110 |
+
INSERT INTO "player" VALUES ("20","Josh Fields","Seattle Mariners",15,"Right-handed pitcher",4);
|
| 111 |
+
INSERT INTO "player" VALUES ("21","Ryan Perry","Detroit Tigers",17,"Right-handed pitcher",3);
|
| 112 |
+
INSERT INTO "player" VALUES ("22","Reese Havens","New York Mets",18,"Shortstop",5);
|
| 113 |
+
INSERT INTO "player" VALUES ("23","Allan Dykstra","San Diego Padres",15,"First baseman",5);
|
database/soccer_1/soccer_1.sqlite
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:402ea587e7cc71051f4479b5c2b70dcda1ac75176af15b3a1932febee4a528e5
|
| 3 |
+
size 316854272
|
database/wine_1/link.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
http://users.csc.calpoly.edu/~dekhtyar/365-Spring2017/index.html
|
test_database/aircraft/schema.sql
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
PRAGMA foreign_keys = ON;
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
CREATE TABLE `pilot` (
|
| 6 |
+
`Pilot_Id` int(11) NOT NULL,
|
| 7 |
+
`Name` varchar(50) NOT NULL,
|
| 8 |
+
`Age` int(11) NOT NULL,
|
| 9 |
+
PRIMARY KEY (`Pilot_Id`)
|
| 10 |
+
);
|
| 11 |
+
|
| 12 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (1, 'Prof. Zackery Collins', 23);
|
| 13 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (2, 'Katheryn Gorczany IV', 20);
|
| 14 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (3, 'Mr. Cristian Halvorson II', 23);
|
| 15 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (4, 'Ayana Spencer', 25);
|
| 16 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (5, 'Ellen Ledner III', 31);
|
| 17 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (6, 'Elisha Hickle V', 37);
|
| 18 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (7, 'Dr. Jade Bradtke V', 26);
|
| 19 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (8, 'Winnifred Boyle', 30);
|
| 20 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (9, 'Della Lindgren', 29);
|
| 21 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (10, 'Maxwell Graham', 26);
|
| 22 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (11, 'Blaise Muller', 33);
|
| 23 |
+
INSERT INTO `pilot` (`Pilot_Id`, `Name`, `age`) VALUES (12, 'Baylee Steuber', 30);
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
CREATE TABLE `aircraft` (
|
| 27 |
+
"Aircraft_ID" int(11) NOT NULL,
|
| 28 |
+
"Aircraft" varchar(50) NOT NULL,
|
| 29 |
+
"Description" varchar(50) NOT NULL,
|
| 30 |
+
"Max_Gross_Weight" varchar(50) NOT NULL,
|
| 31 |
+
"Total_disk_area" varchar(50) NOT NULL,
|
| 32 |
+
"Max_disk_Loading" varchar(50) NOT NULL,
|
| 33 |
+
PRIMARY KEY (`Aircraft_ID`)
|
| 34 |
+
);
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
CREATE TABLE `match` (
|
| 38 |
+
"Round" real,
|
| 39 |
+
"Location" text,
|
| 40 |
+
"Country" text,
|
| 41 |
+
"Date" text,
|
| 42 |
+
"Fastest_Qualifying" text,
|
| 43 |
+
"Winning_Pilot" text,
|
| 44 |
+
"Winning_Aircraft" text,
|
| 45 |
+
PRIMARY KEY ("Round"),
|
| 46 |
+
FOREIGN KEY (`Winning_Aircraft`) REFERENCES `aircraft`(`Aircraft_ID`),
|
| 47 |
+
FOREIGN KEY (`Winning_Pilot`) REFERENCES `pilot`(`Pilot_Id`)
|
| 48 |
+
);
|
| 49 |
+
|
| 50 |
+
CREATE TABLE `airport` (
|
| 51 |
+
"Airport_ID" int,
|
| 52 |
+
"Airport_Name" text,
|
| 53 |
+
"Total_Passengers" real,
|
| 54 |
+
"%_Change_2007" text,
|
| 55 |
+
"International_Passengers" real,
|
| 56 |
+
"Domestic_Passengers" real,
|
| 57 |
+
"Transit_Passengers" real,
|
| 58 |
+
"Aircraft_Movements" real,
|
| 59 |
+
"Freight_Metric_Tonnes" real,
|
| 60 |
+
PRIMARY KEY ("Airport_ID")
|
| 61 |
+
);
|
| 62 |
+
|
| 63 |
+
CREATE TABLE `airport_aircraft` (
|
| 64 |
+
"ID" int,
|
| 65 |
+
"Airport_ID" int,
|
| 66 |
+
"Aircraft_ID" int,
|
| 67 |
+
PRIMARY KEY ("Airport_ID","Aircraft_ID"),
|
| 68 |
+
FOREIGN KEY ("Airport_ID") REFERENCES `airport`(`Airport_ID`),
|
| 69 |
+
FOREIGN KEY ("Aircraft_ID") REFERENCES `aircraft`(`Aircraft_ID`)
|
| 70 |
+
);
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
INSERT INTO "aircraft" VALUES (1,"Robinson R-22","Light utility helicopter","1,370 lb (635 kg)","497 ft² (46.2 m²)","2.6 lb/ft² (14 kg/m²)");
|
| 75 |
+
INSERT INTO "aircraft" VALUES (2,"Bell 206B3 JetRanger","Turboshaft utility helicopter","3,200 lb (1,451 kg)","872 ft² (81.1 m²)","3.7 lb/ft² (18 kg/m²)");
|
| 76 |
+
INSERT INTO "aircraft" VALUES (3,"CH-47D Chinook","Tandem rotor helicopter","50,000 lb (22,680 kg)","5,655 ft² (526 m²)","8.8 lb/ft² (43 kg/m²)");
|
| 77 |
+
INSERT INTO "aircraft" VALUES (4,"Mil Mi-26","Heavy-lift helicopter","123,500 lb (56,000 kg)","8,495 ft² (789 m²)","14.5 lb/ft² (71 kg/m²)");
|
| 78 |
+
INSERT INTO "aircraft" VALUES (5,"CH-53E Super Stallion","Heavy-lift helicopter","73,500 lb (33,300 kg)","4,900 ft² (460 m²)","15 lb/ft² (72 kg/m²)");
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
INSERT INTO "match" VALUES ("1","Mina' Zayid , Abu Dhabi","United Arab Emirates","March 26–27","Hannes Arch",1,1);
|
| 82 |
+
INSERT INTO "match" VALUES ("2","Swan River , Perth","Australia","April 17–18","Paul Bonhomme",4,1);
|
| 83 |
+
INSERT INTO "match" VALUES ("3","Flamengo Beach , Rio de Janeiro","Brazil","May 8–9","Hannes Arch",6,2);
|
| 84 |
+
INSERT INTO "match" VALUES ("4","Windsor , Ontario","Canada","June 5–6","Nigel Lamb",4,4);
|
| 85 |
+
INSERT INTO "match" VALUES ("5","New York City","United States","June 19–20","Hannes Arch",9,3);
|
| 86 |
+
INSERT INTO "match" VALUES ("6","EuroSpeedway Lausitz","Germany","August 7–8","Paul Bonhomme",2,4);
|
| 87 |
+
INSERT INTO "match" VALUES ("7","River Danube , Budapest","Hungary","Cancelled","Cancelled",6,5);
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
INSERT INTO "airport" VALUES (1,"London Heathrow","67054745","1.5%","61344438","5562516","147791","478693","1397054");
|
| 92 |
+
INSERT INTO "airport" VALUES (2,"London Gatwick","34205887","2.9%","30431051","3730963","43873","263653","107702");
|
| 93 |
+
INSERT INTO "airport" VALUES (3,"London Stansted","22360364","6.0%","19996947","2343428","19989","193282","197738");
|
| 94 |
+
INSERT INTO "airport" VALUES (4,"Manchester","21219195","4.0%","18119230","2943719","156246","204610","141781");
|
| 95 |
+
INSERT INTO "airport" VALUES (5,"London Luton","10180734","2.6%","8853224","1320678","6832","117859","40518");
|
| 96 |
+
INSERT INTO "airport" VALUES (6,"Birmingham Airport","9627589","4.3%","8105162","1471538","50889","112227","12192");
|
| 97 |
+
INSERT INTO "airport" VALUES (7,"Edinburgh","9006702","0.5%","3711140","5281038","14524","125550","12418");
|
| 98 |
+
INSERT INTO "airport" VALUES (8,"Glasgow International","8178891","7.0%","3943139","4192121","43631","100087","3546");
|
| 99 |
+
INSERT INTO "airport" VALUES (9,"Bristol","6267114","5.7%","5057051","1171605","38458","76517","3");
|
| 100 |
+
INSERT INTO "airport" VALUES (10,"East Midlands","5620673","3.8%","4870184","746094","4395","93038","261507");
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
INSERT INTO "airport_aircraft" VALUES (1,6,5);
|
| 105 |
+
INSERT INTO "airport_aircraft" VALUES (2,2,1);
|
| 106 |
+
INSERT INTO "airport_aircraft" VALUES (3,1,2);
|
| 107 |
+
INSERT INTO "airport_aircraft" VALUES (4,9,3);
|
| 108 |
+
|
test_database/book_1/q.txt
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
List of books, the publication year of each of them and their authors, ordered by publication year
|
| 2 |
+
|
| 3 |
+
List of books that were published before 01-01-2000.
|
| 4 |
+
|
| 5 |
+
List of clients that have bought at least one book.
|
| 6 |
+
|
| 7 |
+
List of clients that bought the book whose ISBN= 4554672899910.
|
| 8 |
+
|
| 9 |
+
List of clients whose name contains ‘Jo’ and the books that they have bought.
|
| 10 |
+
|
| 11 |
+
List of clients that have bought at least a book whose price is greater than 10.
|
| 12 |
+
|
| 13 |
+
List of clients that have placed more than one order in the same date.
|
| 14 |
+
|
| 15 |
+
List of clients and dates in which they have placed orders that have not been sent yet.
|
| 16 |
+
|
| 17 |
+
List of clients that have not bought books whose price is greater than 10.
|
| 18 |
+
|
| 19 |
+
List of books whose sale price is greater than 30€ or that were published before 2000.
|
| 20 |
+
|
| 21 |
+
List of books and amount of copies of each of them that have been sold.
|
| 22 |
+
|
| 23 |
+
List of clients and the total amount that they have spent in the bookstore.
|
| 24 |
+
|
| 25 |
+
Profits obtained from sales of books.
|
| 26 |
+
|
| 27 |
+
Orders whose total amount is greater than 100.
|
| 28 |
+
|
| 29 |
+
Orders and the total amount of each of them that contains more than a book (title).
|
| 30 |
+
|
| 31 |
+
Orders and the total amount of each of them that contains more than 4 copies
|
| 32 |
+
|
| 33 |
+
List of the most expensive books.
|
| 34 |
+
|
| 35 |
+
List of books that have not been sold or that have been sold but the profit per copy is less than 5
|
| 36 |
+
|
| 37 |
+
List of clients that have bought more than one copy of a book sometime
|
test_database/car_1/data_csv/car-names.csv
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Id,Model,Make
|
| 2 |
+
1,'chevrolet','chevrolet chevelle malibu'
|
| 3 |
+
2,'buick','buick skylark 320'
|
| 4 |
+
3,'plymouth','plymouth satellite'
|
| 5 |
+
4,'amc','amc rebel sst'
|
| 6 |
+
5,'ford','ford torino'
|
| 7 |
+
6,'ford','ford galaxie 500'
|
| 8 |
+
7,'chevrolet','chevrolet impala'
|
| 9 |
+
8,'plymouth','plymouth fury iii'
|
| 10 |
+
9,'pontiac','pontiac catalina'
|
| 11 |
+
10,'amc','amc ambassador dpl'
|
| 12 |
+
11,'citroen','citroen ds-21 pallas'
|
| 13 |
+
12,'chevrolet','chevrolet chevelle concours (sw)'
|
| 14 |
+
13,'ford','ford torino (sw)'
|
| 15 |
+
14,'plymouth','plymouth satellite (sw)'
|
| 16 |
+
15,'amc','amc rebel sst (sw)'
|
| 17 |
+
16,'dodge','dodge challenger se'
|
| 18 |
+
17,'plymouth','plymouth cuda 340'
|
| 19 |
+
18,'ford','ford mustang boss 302'
|
| 20 |
+
19,'chevrolet','chevrolet monte carlo'
|
| 21 |
+
20,'buick','buick estate wagon (sw)'
|
| 22 |
+
21,'toyota','toyota corona mark ii'
|
| 23 |
+
22,'plymouth','plymouth duster'
|
| 24 |
+
23,'amc','amc hornet'
|
| 25 |
+
24,'ford','ford maverick'
|
| 26 |
+
25,'datsun','datsun pl510'
|
| 27 |
+
26,'volkswagen','volkswagen 1131 deluxe sedan'
|
| 28 |
+
27,'peugeot','peugeot 504'
|
| 29 |
+
28,'audi','audi 100 ls'
|
| 30 |
+
29,'saab','saab 99e'
|
| 31 |
+
30,'bmw','bmw 2002'
|
| 32 |
+
31,'amc','amc gremlin'
|
| 33 |
+
32,'ford','ford f250'
|
| 34 |
+
33,'chevrolet','chevy c20'
|
| 35 |
+
34,'dodge','dodge d200'
|
| 36 |
+
35,'hi','hi 1200d'
|
| 37 |
+
36,'datsun','datsun pl510'
|
| 38 |
+
37,'chevrolet','chevrolet vega 2300'
|
| 39 |
+
38,'toyota','toyota corona'
|
| 40 |
+
39,'ford','ford pinto'
|
| 41 |
+
40,'volkswagen','volkswagen super beetle 117'
|
| 42 |
+
41,'amc','amc gremlin'
|
| 43 |
+
42,'plymouth','plymouth satellite custom'
|
| 44 |
+
43,'chevrolet','chevrolet chevelle malibu'
|
| 45 |
+
44,'ford','ford torino 500'
|
| 46 |
+
45,'amc','amc matador'
|
| 47 |
+
46,'chevrolet','chevrolet impala'
|
| 48 |
+
47,'pontiac','pontiac catalina brougham'
|
| 49 |
+
48,'ford','ford galaxie 500'
|
| 50 |
+
49,'plymouth','plymouth fury iii'
|
| 51 |
+
50,'dodge','dodge monaco (sw)'
|
| 52 |
+
51,'ford','ford country squire (sw)'
|
| 53 |
+
52,'pontiac','pontiac safari (sw)'
|
| 54 |
+
53,'amc','amc hornet sportabout (sw)'
|
| 55 |
+
54,'chevrolet','chevrolet vega (sw)'
|
| 56 |
+
55,'pontiac','pontiac firebird'
|
| 57 |
+
56,'ford','ford mustang'
|
| 58 |
+
57,'mercury','mercury capri 2000'
|
| 59 |
+
58,'opel','opel 1900'
|
| 60 |
+
59,'peugeot','peugeot 304'
|
| 61 |
+
60,'fiat','fiat 124b'
|
| 62 |
+
61,'toyota','toyota corolla 1200'
|
| 63 |
+
62,'datsun','datsun 1200'
|
| 64 |
+
63,'volkswagen','volkswagen model 111'
|
| 65 |
+
64,'plymouth','plymouth cricket'
|
| 66 |
+
65,'toyota','toyota corona hardtop'
|
| 67 |
+
66,'dodge','dodge colt hardtop'
|
| 68 |
+
67,'volkswagen','volkswagen type 3'
|
| 69 |
+
68,'chevrolet','chevrolet vega'
|
| 70 |
+
69,'ford','ford pinto runabout'
|
| 71 |
+
70,'chevrolet','chevrolet impala'
|
| 72 |
+
71,'pontiac','pontiac catalina'
|
| 73 |
+
72,'plymouth','plymouth fury iii'
|
| 74 |
+
73,'ford','ford galaxie 500'
|
| 75 |
+
74,'amc','amc ambassador sst'
|
| 76 |
+
75,'mercury','mercury marquis'
|
| 77 |
+
76,'buick','buick lesabre custom'
|
| 78 |
+
77,'oldsmobile','oldsmobile delta 88 royale'
|
| 79 |
+
78,'chrysler','chrysler newport royal'
|
| 80 |
+
79,'mazda','mazda rx2 coupe'
|
| 81 |
+
80,'amc','amc matador (sw)'
|
| 82 |
+
81,'chevrolet','chevrolet chevelle concours (sw)'
|
| 83 |
+
82,'ford','ford gran torino (sw)'
|
| 84 |
+
83,'plymouth','plymouth satellite custom (sw)'
|
| 85 |
+
84,'volvo','volvo 145e (sw)'
|
| 86 |
+
85,'volkswagen','volkswagen 411 (sw)'
|
| 87 |
+
86,'peugeot','peugeot 504 (sw)'
|
| 88 |
+
87,'renault','renault 12 (sw)'
|
| 89 |
+
88,'ford','ford pinto (sw)'
|
| 90 |
+
89,'datsun','datsun 510 (sw)'
|
| 91 |
+
90,'toyota','toyota corona mark ii (sw)'
|
| 92 |
+
91,'dodge','dodge colt (sw)'
|
| 93 |
+
92,'toyota','toyota corolla 1600 (sw)'
|
| 94 |
+
93,'buick','buick century 350'
|
| 95 |
+
94,'amc','amc matador'
|
| 96 |
+
95,'chevrolet','chevrolet malibu'
|
| 97 |
+
96,'ford','ford gran torino'
|
| 98 |
+
97,'dodge','dodge coronet custom'
|
| 99 |
+
98,'mercury','mercury marquis brougham'
|
| 100 |
+
99,'chevrolet','chevrolet caprice classic'
|
| 101 |
+
100,'ford','ford ltd'
|
| 102 |
+
101,'plymouth','plymouth fury gran sedan'
|
| 103 |
+
102,'chrysler','chrysler new yorker brougham'
|
| 104 |
+
103,'buick','buick electra 225 custom'
|
| 105 |
+
104,'amc','amc ambassador brougham'
|
| 106 |
+
105,'plymouth','plymouth valiant'
|
| 107 |
+
106,'chevrolet','chevrolet nova custom'
|
| 108 |
+
107,'amc','amc hornet'
|
| 109 |
+
108,'ford','ford maverick'
|
| 110 |
+
109,'plymouth','plymouth duster'
|
| 111 |
+
110,'volkswagen','volkswagen super beetle'
|
| 112 |
+
111,'chevrolet','chevrolet impala'
|
| 113 |
+
112,'ford','ford country'
|
| 114 |
+
113,'plymouth','plymouth custom suburb'
|
| 115 |
+
114,'oldsmobile','oldsmobile vista cruiser'
|
| 116 |
+
115,'amc','amc gremlin'
|
| 117 |
+
116,'toyota','toyota carina'
|
| 118 |
+
117,'chevrolet','chevrolet vega'
|
| 119 |
+
118,'datsun','datsun 610'
|
| 120 |
+
119,'mazda','mazda rx3'
|
| 121 |
+
120,'ford','ford pinto'
|
| 122 |
+
121,'mercury','mercury capri v6'
|
| 123 |
+
122,'fiat','fiat 124 sport coupe'
|
| 124 |
+
123,'chevrolet','chevrolet monte carlo s'
|
| 125 |
+
124,'pontiac','pontiac grand prix'
|
| 126 |
+
125,'fiat','fiat 128'
|
| 127 |
+
126,'opel','opel manta'
|
| 128 |
+
127,'audi','audi 100ls'
|
| 129 |
+
128,'volvo','volvo 144ea'
|
| 130 |
+
129,'dodge','dodge dart custom'
|
| 131 |
+
130,'saab','saab 99le'
|
| 132 |
+
131,'toyota','toyota mark ii'
|
| 133 |
+
132,'oldsmobile','oldsmobile omega'
|
| 134 |
+
133,'plymouth','plymouth duster'
|
| 135 |
+
134,'ford','ford maverick'
|
| 136 |
+
135,'amc','amc hornet'
|
| 137 |
+
136,'chevrolet','chevrolet nova'
|
| 138 |
+
137,'datsun','datsun b210'
|
| 139 |
+
138,'ford','ford pinto'
|
| 140 |
+
139,'toyota','toyota corolla 1200'
|
| 141 |
+
140,'chevrolet','chevrolet vega'
|
| 142 |
+
141,'chevrolet','chevrolet chevelle malibu classic'
|
| 143 |
+
142,'amc','amc matador'
|
| 144 |
+
143,'plymouth','plymouth satellite sebring'
|
| 145 |
+
144,'ford','ford gran torino'
|
| 146 |
+
145,'buick','buick century luxus (sw)'
|
| 147 |
+
146,'dodge','dodge coronet custom (sw)'
|
| 148 |
+
147,'ford','ford gran torino (sw)'
|
| 149 |
+
148,'amc','amc matador (sw)'
|
| 150 |
+
149,'audi','audi fox'
|
| 151 |
+
150,'volkswagen','volkswagen dasher'
|
| 152 |
+
151,'opel','opel manta'
|
| 153 |
+
152,'toyota','toyota corona'
|
| 154 |
+
153,'datsun','datsun 710'
|
| 155 |
+
154,'dodge','dodge colt'
|
| 156 |
+
155,'fiat','fiat 128'
|
| 157 |
+
156,'fiat','fiat 124 tc'
|
| 158 |
+
157,'honda','honda civic'
|
| 159 |
+
158,'subaru','subaru'
|
| 160 |
+
159,'fiat','fiat x1.9'
|
| 161 |
+
160,'plymouth','plymouth valiant custom'
|
| 162 |
+
161,'chevrolet','chevrolet nova'
|
| 163 |
+
162,'mercury','mercury monarch'
|
| 164 |
+
163,'ford','ford maverick'
|
| 165 |
+
164,'pontiac','pontiac catalina'
|
| 166 |
+
165,'chevrolet','chevrolet bel air'
|
| 167 |
+
166,'plymouth','plymouth grand fury'
|
| 168 |
+
167,'ford','ford ltd'
|
| 169 |
+
168,'buick','buick century'
|
| 170 |
+
169,'chevrolet','chevrolet chevelle malibu'
|
| 171 |
+
170,'amc','amc matador'
|
| 172 |
+
171,'plymouth','plymouth fury'
|
| 173 |
+
172,'buick','buick skyhawk'
|
| 174 |
+
173,'chevrolet','chevrolet monza 2+2'
|
| 175 |
+
174,'ford','ford mustang ii'
|
| 176 |
+
175,'toyota','toyota corolla'
|
| 177 |
+
176,'ford','ford pinto'
|
| 178 |
+
177,'amc','amc gremlin'
|
| 179 |
+
178,'pontiac','pontiac astro'
|
| 180 |
+
179,'toyota','toyota corona'
|
| 181 |
+
180,'volkswagen','volkswagen dasher'
|
| 182 |
+
181,'datsun','datsun 710'
|
| 183 |
+
182,'ford','ford pinto'
|
| 184 |
+
183,'volkswagen','volkswagen rabbit'
|
| 185 |
+
184,'amc','amc pacer'
|
| 186 |
+
185,'audi','audi 100ls'
|
| 187 |
+
186,'peugeot','peugeot 504'
|
| 188 |
+
187,'volvo','volvo 244dl'
|
| 189 |
+
188,'saab','saab 99le'
|
| 190 |
+
189,'honda','honda civic cvcc'
|
| 191 |
+
190,'fiat','fiat 131'
|
| 192 |
+
191,'opel','opel 1900'
|
| 193 |
+
192,'capri','capri ii'
|
| 194 |
+
193,'dodge','dodge colt'
|
| 195 |
+
194,'renault','renault 12tl'
|
| 196 |
+
195,'chevrolet','chevrolet chevelle malibu classic'
|
| 197 |
+
196,'dodge','dodge coronet brougham'
|
| 198 |
+
197,'amc','amc matador'
|
| 199 |
+
198,'ford','ford gran torino'
|
| 200 |
+
199,'plymouth','plymouth valiant'
|
| 201 |
+
200,'chevrolet','chevrolet nova'
|
| 202 |
+
201,'ford','ford maverick'
|
| 203 |
+
202,'amc','amc hornet'
|
| 204 |
+
203,'chevrolet','chevrolet chevette'
|
| 205 |
+
204,'chevrolet','chevrolet woody'
|
| 206 |
+
205,'volkswagen','vw rabbit'
|
| 207 |
+
206,'honda','honda civic'
|
| 208 |
+
207,'dodge','dodge aspen se'
|
| 209 |
+
208,'ford','ford granada ghia'
|
| 210 |
+
209,'pontiac','pontiac ventura sj'
|
| 211 |
+
210,'amc','amc pacer d/l'
|
| 212 |
+
211,'volkswagen','volkswagen rabbit'
|
| 213 |
+
212,'datsun','datsun b-210'
|
| 214 |
+
213,'toyota','toyota corolla'
|
| 215 |
+
214,'ford','ford pinto'
|
| 216 |
+
215,'volvo','volvo 245'
|
| 217 |
+
216,'plymouth','plymouth volare premier v8'
|
| 218 |
+
217,'peugeot','peugeot 504'
|
| 219 |
+
218,'toyota','toyota mark ii'
|
| 220 |
+
219,'mercedes-benz','mercedes-benz 280s'
|
| 221 |
+
220,'cadillac','cadillac seville'
|
| 222 |
+
221,'chevrolet','chevy c10'
|
| 223 |
+
222,'ford','ford f108'
|
| 224 |
+
223,'dodge','dodge d100'
|
| 225 |
+
224,'honda','honda accord cvcc'
|
| 226 |
+
225,'buick','buick opel isuzu deluxe'
|
| 227 |
+
226,'renault','renault 5 gtl'
|
| 228 |
+
227,'plymouth','plymouth arrow gs'
|
| 229 |
+
228,'datsun','datsun f-10 hatchback'
|
| 230 |
+
229,'chevrolet','chevrolet caprice classic'
|
| 231 |
+
230,'oldsmobile','oldsmobile cutlass supreme'
|
| 232 |
+
231,'dodge','dodge monaco brougham'
|
| 233 |
+
232,'mercury','mercury cougar brougham'
|
| 234 |
+
233,'chevrolet','chevrolet concours'
|
| 235 |
+
234,'buick','buick skylark'
|
| 236 |
+
235,'plymouth','plymouth volare custom'
|
| 237 |
+
236,'ford','ford granada'
|
| 238 |
+
237,'pontiac','pontiac grand prix lj'
|
| 239 |
+
238,'chevrolet','chevrolet monte carlo landau'
|
| 240 |
+
239,'chrysler','chrysler cordoba'
|
| 241 |
+
240,'ford','ford thunderbird'
|
| 242 |
+
241,'volkswagen','volkswagen rabbit custom'
|
| 243 |
+
242,'pontiac','pontiac sunbird coupe'
|
| 244 |
+
243,'toyota','toyota corolla liftback'
|
| 245 |
+
244,'ford','ford mustang ii 2+2'
|
| 246 |
+
245,'chevrolet','chevrolet chevette'
|
| 247 |
+
246,'dodge','dodge colt m/m'
|
| 248 |
+
247,'subaru','subaru dl'
|
| 249 |
+
248,'volkswagen','volkswagen dasher'
|
| 250 |
+
249,'datsun','datsun 810'
|
| 251 |
+
250,'bmw','bmw 320i'
|
| 252 |
+
251,'mazda','mazda rx-4'
|
| 253 |
+
252,'volkswagen','volkswagen rabbit custom diesel'
|
| 254 |
+
253,'ford','ford fiesta'
|
| 255 |
+
254,'mazda','mazda glc deluxe'
|
| 256 |
+
255,'datsun','datsun b210 gx'
|
| 257 |
+
256,'honda','honda civic cvcc'
|
| 258 |
+
257,'oldsmobile','oldsmobile cutlass salon brougham'
|
| 259 |
+
258,'dodge','dodge diplomat'
|
| 260 |
+
259,'mercury','mercury monarch ghia'
|
| 261 |
+
260,'pontiac','pontiac phoenix lj'
|
| 262 |
+
261,'chevrolet','chevrolet malibu'
|
| 263 |
+
262,'ford','ford fairmont (auto)'
|
| 264 |
+
263,'ford','ford fairmont (man)'
|
| 265 |
+
264,'plymouth','plymouth volare'
|
| 266 |
+
265,'amc','amc concord'
|
| 267 |
+
266,'buick','buick century special'
|
| 268 |
+
267,'mercury','mercury zephyr'
|
| 269 |
+
268,'dodge','dodge aspen'
|
| 270 |
+
269,'amc','amc concord d/l'
|
| 271 |
+
270,'chevrolet','chevrolet monte carlo landau'
|
| 272 |
+
271,'buick','buick regal sport coupe (turbo)'
|
| 273 |
+
272,'ford','ford futura'
|
| 274 |
+
273,'dodge','dodge magnum xe'
|
| 275 |
+
274,'chevrolet','chevrolet chevette'
|
| 276 |
+
275,'toyota','toyota corona'
|
| 277 |
+
276,'datsun','datsun 510'
|
| 278 |
+
277,'dodge','dodge omni'
|
| 279 |
+
278,'toyota','toyota celica gt liftback'
|
| 280 |
+
279,'plymouth','plymouth sapporo'
|
| 281 |
+
280,'oldsmobile','oldsmobile starfire sx'
|
| 282 |
+
281,'datsun','datsun 200-sx'
|
| 283 |
+
282,'audi','audi 5000'
|
| 284 |
+
283,'volvo','volvo 264gl'
|
| 285 |
+
284,'saab','saab 99gle'
|
| 286 |
+
285,'peugeot','peugeot 604sl'
|
| 287 |
+
286,'volkswagen','volkswagen scirocco'
|
| 288 |
+
287,'honda','honda accord lx'
|
| 289 |
+
288,'pontiac','pontiac lemans v6'
|
| 290 |
+
289,'mercury','mercury zephyr 6'
|
| 291 |
+
290,'ford','ford fairmont 4'
|
| 292 |
+
291,'amc','amc concord dl 6'
|
| 293 |
+
292,'dodge','dodge aspen 6'
|
| 294 |
+
293,'chevrolet','chevrolet caprice classic'
|
| 295 |
+
294,'ford','ford ltd landau'
|
| 296 |
+
295,'mercury','mercury grand marquis'
|
| 297 |
+
296,'dodge','dodge st. regis'
|
| 298 |
+
297,'buick','buick estate wagon (sw)'
|
| 299 |
+
298,'ford','ford country squire (sw)'
|
| 300 |
+
299,'chevrolet','chevrolet malibu classic (sw)'
|
| 301 |
+
300,'chrysler','chrysler lebaron town @ country (sw)'
|
| 302 |
+
301,'volkswagen','vw rabbit custom'
|
| 303 |
+
302,'mazda', 'mazda glc deluxe'
|
| 304 |
+
303,'dodge','dodge colt hatchback custom'
|
| 305 |
+
304,'amc','amc spirit dl'
|
| 306 |
+
305,'mercedes','mercedes benz 300d'
|
| 307 |
+
306,'cadillac','cadillac eldorado'
|
| 308 |
+
307,'peugeot','peugeot 504'
|
| 309 |
+
308,'oldsmobile','oldsmobile cutlass salon brougham'
|
| 310 |
+
309,'plymouth','plymouth horizon'
|
| 311 |
+
310,'plymouth','plymouth horizon tc3'
|
| 312 |
+
311,'datsun','datsun 210'
|
| 313 |
+
312,'fiat','fiat strada custom'
|
| 314 |
+
313,'buick','buick skylark limited'
|
| 315 |
+
314,'chevrolet','chevrolet citation'
|
| 316 |
+
315,'oldsmobile','oldsmobile omega brougham'
|
| 317 |
+
316,'pontiac','pontiac phoenix'
|
| 318 |
+
317,'volkswagen','vw rabbit'
|
| 319 |
+
318,'toyota','toyota corolla tercel'
|
| 320 |
+
319,'chevrolet','chevrolet chevette'
|
| 321 |
+
320,'datsun','datsun 310'
|
| 322 |
+
321,'chevrolet','chevrolet citation'
|
| 323 |
+
322,'ford','ford fairmont'
|
| 324 |
+
323,'amc','amc concord'
|
| 325 |
+
324,'dodge','dodge aspen'
|
| 326 |
+
325,'audi','audi 4000'
|
| 327 |
+
326,'toyota','toyota corona liftback'
|
| 328 |
+
327,'mazda','mazda 626'
|
| 329 |
+
328,'datsun','datsun 510 hatchback'
|
| 330 |
+
329,'toyota','toyota corolla'
|
| 331 |
+
330,'mazda','mazda glc'
|
| 332 |
+
331,'dodge','dodge colt'
|
| 333 |
+
332,'datsun','datsun 210'
|
| 334 |
+
333,'volkswagen','vw rabbit c (diesel)'
|
| 335 |
+
334,'volkswagen','vw dasher (diesel)'
|
| 336 |
+
335,'audi','audi 5000s (diesel)'
|
| 337 |
+
336,'mercedes-benz','mercedes-benz 240d'
|
| 338 |
+
337,'honda','honda civic 1500 gl'
|
| 339 |
+
338,'renault','renault lecar deluxe'
|
| 340 |
+
339,'subaru','subaru dl'
|
| 341 |
+
340, 'volkswagen','volkswagen rabbit'
|
| 342 |
+
341,'datsun','datsun 280-zx'
|
| 343 |
+
342,'mazda','mazda rx-7 gs'
|
| 344 |
+
343,'triumph','triumph tr7 coupe'
|
| 345 |
+
344,'ford','ford mustang cobra'
|
| 346 |
+
345,'honda','honda accord'
|
| 347 |
+
346,'plymouth','plymouth reliant'
|
| 348 |
+
347,'buick','buick skylark'
|
| 349 |
+
348,'dodge','dodge aries wagon (sw)'
|
| 350 |
+
349,'chevrolet','chevrolet citation'
|
| 351 |
+
350,'plymouth','plymouth reliant'
|
| 352 |
+
351,'toyota','toyota starlet'
|
| 353 |
+
352,'plymouth','plymouth champ'
|
| 354 |
+
353,'honda','honda civic 1300'
|
| 355 |
+
354,'subaru','subaru'
|
| 356 |
+
355,'datsun','datsun 210 mpg'
|
| 357 |
+
356,'toyota','toyota tercel'
|
| 358 |
+
357,'mazda','mazda glc 4'
|
| 359 |
+
358,'plymouth','plymouth horizon 4'
|
| 360 |
+
359,'ford','ford escort 4w'
|
| 361 |
+
360,'ford','ford escort 2h'
|
| 362 |
+
361,'volkswagen','volkswagen jetta'
|
| 363 |
+
362,'renault','renault 18i'
|
| 364 |
+
363,'honda','honda prelude'
|
| 365 |
+
364,'toyota','toyota corolla'
|
| 366 |
+
365,'datsun','datsun 200sx'
|
| 367 |
+
366,'mazda','mazda 626'
|
| 368 |
+
367,'peugeot','peugeot 505s turbo diesel'
|
| 369 |
+
368,'saab','saab 900s'
|
| 370 |
+
369,'volvo','volvo diesel'
|
| 371 |
+
370,'toyota','toyota cressida'
|
| 372 |
+
371,'datsun','datsun 810 maxima'
|
| 373 |
+
372,'buick','buick century'
|
| 374 |
+
373,'oldsmobile','oldsmobile cutlass ls'
|
| 375 |
+
374,'ford','ford granada gl'
|
| 376 |
+
375,'chrysler','chrysler lebaron salon'
|
| 377 |
+
376,'chevrolet','chevrolet cavalier'
|
| 378 |
+
377,'chevrolet','chevrolet cavalier wagon'
|
| 379 |
+
378,'chevrolet','chevrolet cavalier 2-door'
|
| 380 |
+
379,'pontiac','pontiac j2000 se hatchback'
|
| 381 |
+
380,'dodge','dodge aries se'
|
| 382 |
+
381,'pontiac','pontiac phoenix'
|
| 383 |
+
382,'ford','ford fairmont futura'
|
| 384 |
+
383,'amc','amc concord dl'
|
| 385 |
+
384,'volkswagen','volkswagen rabbit l'
|
| 386 |
+
385,'mazda','mazda glc custom l'
|
| 387 |
+
386,'mazda','mazda glc custom'
|
| 388 |
+
387,'plymouth','plymouth horizon miser'
|
| 389 |
+
388,'mercury','mercury lynx l'
|
| 390 |
+
389,'nissan','nissan stanza xe'
|
| 391 |
+
390,'honda','honda accord'
|
| 392 |
+
391,'toyota','toyota corolla'
|
| 393 |
+
392,'honda','honda civic'
|
| 394 |
+
393,'honda','honda civic (auto)'
|
| 395 |
+
394,'datsun','datsun 310 gx'
|
| 396 |
+
395,'buick','buick century limited'
|
| 397 |
+
396,'oldsmobile','oldsmobile cutlass ciera (diesel)'
|
| 398 |
+
397,'chrysler','chrysler lebaron medallion'
|
| 399 |
+
398,'ford','ford granada l'
|
| 400 |
+
399,'toyota','toyota celica gt'
|
| 401 |
+
400,'dodge','dodge charger 2.2'
|
| 402 |
+
401,'chevrolet','chevrolet camaro'
|
| 403 |
+
402,'ford','ford mustang gl'
|
| 404 |
+
403,'volkswagen','vw pickup'
|
| 405 |
+
404,'dodge','dodge rampage'
|
| 406 |
+
405,'ford','ford ranger'
|
| 407 |
+
406,'chevrolet','chevy s-10'
|
test_database/district_spokesman/schema.sql
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
PRAGMA foreign_keys = ON;
|
| 3 |
+
|
| 4 |
+
CREATE TABLE "district" (
|
| 5 |
+
"District_ID" int,
|
| 6 |
+
"Name" text,
|
| 7 |
+
"Area_km" real,
|
| 8 |
+
"Population" real,
|
| 9 |
+
"Density_km" real,
|
| 10 |
+
"Government_website" text,
|
| 11 |
+
PRIMARY KEY ("District_ID")
|
| 12 |
+
);
|
| 13 |
+
|
| 14 |
+
CREATE TABLE "spokesman" (
|
| 15 |
+
"Spokesman_ID" int,
|
| 16 |
+
"Name" text,
|
| 17 |
+
"Age" int,
|
| 18 |
+
"Speach_title" text,
|
| 19 |
+
"Rank_position" real,
|
| 20 |
+
"Points" real,
|
| 21 |
+
PRIMARY KEY ("Spokesman_ID")
|
| 22 |
+
);
|
| 23 |
+
|
| 24 |
+
INSERT INTO "district" VALUES (1,"Pozo Almonte","13765.8","10830","0.8","linke.gov");
|
| 25 |
+
INSERT INTO "district" VALUES (2,"Pica","8934.3","6178","0.7","linkd.gov");
|
| 26 |
+
INSERT INTO "district" VALUES (3,"Huara","10474.6","2599","0.2","linka.gov");
|
| 27 |
+
INSERT INTO "district" VALUES (4,"Colchane","4015.6","1649","0.4","linkg.gov");
|
| 28 |
+
INSERT INTO "district" VALUES (5,"Camiña","2200.2","1275","0.6","abc.com");
|
| 29 |
+
|
| 30 |
+
INSERT INTO "spokesman" VALUES ("1","Rocco Granata",45,"Life and Freedom","1","498");
|
| 31 |
+
INSERT INTO "spokesman" VALUES ("3","Elvis Presley",29,"Now or Never","1","438");
|
| 32 |
+
INSERT INTO "spokesman" VALUES ("4","Lolita",32,"Happiness","1","402");
|
| 33 |
+
INSERT INTO "spokesman" VALUES ("5","Connie Francis",47,"Everybody's Somebody's Fool","1","365");
|
| 34 |
+
INSERT INTO "spokesman" VALUES ("6","Don Gibson",46,"I Can't Stop Loving my People","2","358");
|
| 35 |
+
INSERT INTO "spokesman" VALUES ("7","Jack Scott",38," What in the World's Come Over You","2","354");
|
| 36 |
+
INSERT INTO "spokesman" VALUES ("8","Billy Vaughn Orchestra",48,"Be with the People","1","350");
|
| 37 |
+
INSERT INTO "spokesman" VALUES ("9","Nora Brockstedt",36,"People","1","304");
|
| 38 |
+
INSERT INTO "spokesman" VALUES ("10","Inger Jacobsen",38,"Public Health","1","287");
|
| 39 |
+
INSERT INTO "spokesman" VALUES ("11","Bob Luman",43,"Let's Think About Living","3","240");
|
| 40 |
+
INSERT INTO "spokesman" VALUES ("12","Elvis Presley",39,"Public Health","2","227");
|
| 41 |
+
INSERT INTO "spokesman" VALUES ("13","Roy Orbison",34,"Freedom","4","223");
|
| 42 |
+
|
| 43 |
+
CREATE TABLE "spokesman_district" (
|
| 44 |
+
"Spokesman_ID" int,
|
| 45 |
+
"District_ID" int,
|
| 46 |
+
"Start_year" text,
|
| 47 |
+
PRIMARY KEY ("Spokesman_ID"),
|
| 48 |
+
FOREIGN KEY ("Spokesman_ID") REFERENCES "spokesman"("Spokesman_ID"),
|
| 49 |
+
FOREIGN KEY ("District_ID") REFERENCES "district"("District_ID")
|
| 50 |
+
);
|
| 51 |
+
|
| 52 |
+
INSERT INTO "spokesman_district" VALUES (1,1,"2003");
|
| 53 |
+
INSERT INTO "spokesman_district" VALUES (10,5,"2004");
|
| 54 |
+
INSERT INTO "spokesman_district" VALUES (3,1,"2005");
|
| 55 |
+
INSERT INTO "spokesman_district" VALUES (4,2,"2006");
|
| 56 |
+
INSERT INTO "spokesman_district" VALUES (5,4,"2007");
|
| 57 |
+
INSERT INTO "spokesman_district" VALUES (6,1,"2012");
|
| 58 |
+
|
test_database/e_commerce/schema.sql
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PRAGMA foreign_keys = ON;
|
| 2 |
+
CREATE TABLE `Products` (
|
| 3 |
+
`product_id` INTEGER PRIMARY KEY ,
|
| 4 |
+
`parent_product_id` INTEGER,
|
| 5 |
+
`product_name` VARCHAR(80),
|
| 6 |
+
`product_price` DECIMAL(19,4) DEFAULT 0,
|
| 7 |
+
`product_color` VARCHAR(50),
|
| 8 |
+
`product_size` VARCHAR(50),
|
| 9 |
+
`product_description` VARCHAR(255)
|
| 10 |
+
);
|
| 11 |
+
|
| 12 |
+
INSERT INTO Products (`product_id`, `parent_product_id`, `product_name`, `product_price`, `product_color`, `product_size`, `product_description`) VALUES (1, 8, 'Dell monitor', '795.6200', 'Red', 'Medium', 'Latest model!');
|
| 13 |
+
INSERT INTO Products (`product_id`, `parent_product_id`, `product_name`, `product_price`, `product_color`, `product_size`, `product_description`) VALUES (2, 3, 'Dell keyboard', '104.0000', 'Yellow', 'Medium', 'Keyboard for games!');
|
| 14 |
+
INSERT INTO Products (`product_id`, `parent_product_id`, `product_name`, `product_price`, `product_color`, `product_size`, `product_description`) VALUES (3, 1, 'iPhone6s', '560.9300', 'Red', 'Small', 'Second hand!');
|
| 15 |
+
INSERT INTO Products (`product_id`, `parent_product_id`, `product_name`, `product_price`, `product_color`, `product_size`, `product_description`) VALUES (4, 6, 'iWatch', '369.1100', 'Red', 'Medium', 'Designed for sports!');
|
| 16 |
+
INSERT INTO Products (`product_id`, `parent_product_id`, `product_name`, `product_price`, `product_color`, `product_size`, `product_description`) VALUES (5, 2, 'Lenovo keyboard', '382.6700', 'Yellow', 'Medium', 'Work smartly!');
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
CREATE TABLE `Customers` (
|
| 20 |
+
`customer_id` INTEGER PRIMARY KEY,
|
| 21 |
+
`gender_code` VARCHAR(1) NOT NULL,
|
| 22 |
+
`customer_first_name` VARCHAR(50),
|
| 23 |
+
`customer_middle_initial` VARCHAR(1),
|
| 24 |
+
`customer_last_name` VARCHAR(50),
|
| 25 |
+
`email_address` VARCHAR(255),
|
| 26 |
+
`login_name` VARCHAR(80),
|
| 27 |
+
`login_password` VARCHAR(20),
|
| 28 |
+
`phone_number` VARCHAR(255),
|
| 29 |
+
`address_line_1` VARCHAR(255),
|
| 30 |
+
`town_city` VARCHAR(50),
|
| 31 |
+
`county` VARCHAR(50),
|
| 32 |
+
`country` VARCHAR(50)
|
| 33 |
+
);
|
| 34 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (1, 'Female', 'Carmen', 'K', 'Treutel', 'pgulgowski@example.com', 'murphy07', '58952d0e0d28de32db3b', '(253)336-6277', '646 Herzog Key Suite 702', 'Port Madonnahaven', 'Israel', 'USA');
|
| 35 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (2, 'Male', 'Jace', 'P', 'Mraz', 'zwisozk@example.org', 'desmond.steuber', '7ba2e47aa0904d9fbdbf', '628-468-4228x5917', '67899 Cassin Hollow Suite 071', 'Port Korychester', 'Palau', 'USA');
|
| 36 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (3, 'Male', 'Vickie', 'B', 'Bergnaum', 'herzog.imogene@example.org', 'kihn.alfonso', '83a1afbe21f5ca4cd2d5', '633-223-0975', '395 Christophe Trail', 'Lornaland', 'Moldova', 'USA');
|
| 37 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (4, 'Male', 'Laurianne', 'C', 'Pfeffer', 'columbus.hackett@example.net', 'alena46', '877cbaac266ddb0a513f', '(874)589-9823x696', '14173 Alize Summit', 'Jennyferchester', 'Saint Vincent and the Grenadines', 'USA');
|
| 38 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (5, 'Female', 'Verner', 'V', 'Schulist', 'juliet11@example.net', 'nanderson', 'c3cf21ffb950845c7d39', '(067)124-1804', '69426 Lewis Estates Suite 438', 'Greenfelderberg', 'South Georgia and the South Sandwich Islands', 'USA');
|
| 39 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (6, 'Female', 'Zetta', 'S', 'Streich', 'melody.schuppe@example.org', 'rau.felipe', '52a6ca3fc466757bd7da', '+50(2)2537278491', '4672 Dwight Valleys Apt. 607', 'East Fritz', 'Afghanistan', 'USA');
|
| 40 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (7, 'Male', 'Jailyn', 'C', 'Murray', 'nmarquardt@example.org', 'vwehner', '372350093217369391dd', '+12(1)5491495825', '0933 Mozelle Junctions Suite 416', 'Cliftonberg', 'Reunion', 'USA');
|
| 41 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (8, 'Male', 'Rozella', 'S', 'Crooks', 'gilbert21@example.com', 'jcremin', 'cdda0eefb860f58bd638', '648.826.7415', '0629 Clotilde Mission', 'Ledaville', 'Bangladesh', 'USA');
|
| 42 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (9, 'Female', 'David', 'T', 'West', 'qkoepp@example.org', 'shanie45', 'b4380163b21bf36d5326', '1-852-557-5246x36659', '76015 Zelma Glen Apt. 194', 'Lake Claudiefort', 'Maldives', 'USA');
|
| 43 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (10, 'Unknown', 'America', 'N', 'Nitzsche', 'gino.cruickshank@example.org', 'zsawayn', '9df44b9e0843940e1e87', '(352)290-2941x800', '983 Jamil Way Apt. 732', 'Braunland', 'Swaziland', 'USA');
|
| 44 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (11, 'Male', 'Sincere', 'B', 'Jast', 'fullrich@example.net', 'hosea87', '6b569c0e6af548ff53f9', '342-363-4102x1883', '56465 Raymond Cliffs', 'North Kristybury', 'Iceland', 'USA');
|
| 45 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (12, 'Female', 'Marlen', 'W', 'Anderson', 'emmie.senger@example.net', 'hosea69', '319dd6a930c2657792a4', '+15(7)5437690330', '22704 Thompson Flat', 'West Polly', 'Martinique', 'USA');
|
| 46 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (13, 'Male', 'Jamel', 'E', 'Koelpin', 'bins.nona@example.net', 'stehr.guido', '12acbe4c1c69bbe2feb3', '134-262-9679x29311', '275 Blick Squares', 'Lake Zechariahton', 'Niue', 'USA');
|
| 47 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (14, 'Female', 'Angeline', 'H', 'Huel', 'veum.jalon@example.org', 'parker.providenci', 'd1440743ea0d14fe05cd', '190.171.0323x6749', '03217 Cummings Causeway', 'East Laura', 'Colombia', 'USA');
|
| 48 |
+
INSERT INTO Customers (`customer_id`, `gender_code`, `customer_first_name`, `customer_middle_initial`, `customer_last_name`, `email_address`, `login_name`, `login_password`, `phone_number`, `address_line_1`, `town_city`, `county`, `country`) VALUES (15, 'Male', 'Carmine', 'A', 'Steuber', 'jwatsica@example.net', 'jewell13', '941ccba5e40de7db4ac5', '1-004-853-7921x099', '9318 Hyatt Flats Apt. 999', 'Oletaside', 'Dominican Republic', 'USA');
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
CREATE TABLE `Customer_Payment_Methods` (
|
| 52 |
+
`customer_id` INTEGER NOT NULL,
|
| 53 |
+
`payment_method_code` VARCHAR(10) NOT NULL,
|
| 54 |
+
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
|
| 55 |
+
);
|
| 56 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (15, 'Direct Debit');
|
| 57 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (1, 'Direct Debit');
|
| 58 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (10, 'Direct Debit');
|
| 59 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (13, 'Credit Card');
|
| 60 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (9, 'Credit Card');
|
| 61 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (8, 'Credit Card');
|
| 62 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (13, 'Cheque');
|
| 63 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (15, 'Direct Debit');
|
| 64 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (4, 'Credit Card');
|
| 65 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (7, 'Credit Card');
|
| 66 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (6, 'Credit Card');
|
| 67 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (14, 'Cheque');
|
| 68 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (3, 'Credit Card');
|
| 69 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (2, 'Credit Card');
|
| 70 |
+
INSERT INTO Customer_Payment_Methods (`customer_id`, `payment_method_code`) VALUES (14, 'Direct Debit');
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
CREATE TABLE `Invoices` (
|
| 74 |
+
`invoice_number` INTEGER PRIMARY KEY,
|
| 75 |
+
`invoice_status_code` VARCHAR(10) NOT NULL,
|
| 76 |
+
`invoice_date` DATETIME
|
| 77 |
+
);
|
| 78 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (1, 'Paid', '2018-03-09 07:16:07');
|
| 79 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (2, 'Issued', '2018-01-28 20:08:22');
|
| 80 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (3, 'Paid', '2018-02-13 02:16:55');
|
| 81 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (4, 'Issued', '2018-03-11 02:04:42');
|
| 82 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (5, 'Paid', '2018-03-14 11:58:55');
|
| 83 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (6, 'Paid', '2018-02-19 22:12:45');
|
| 84 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (7, 'Paid', '2018-02-14 02:48:48');
|
| 85 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (8, 'Paid', '2018-03-20 00:29:12');
|
| 86 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (9, 'Issued', '2018-02-17 13:52:46');
|
| 87 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (10, 'Issued', '2018-02-17 11:18:32');
|
| 88 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (11, 'Issued', '2018-03-04 18:54:34');
|
| 89 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (12, 'Paid', '2018-03-05 20:09:18');
|
| 90 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (13, 'Issued', '2018-01-26 02:23:32');
|
| 91 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (14, 'Paid', '2018-03-23 17:12:08');
|
| 92 |
+
INSERT INTO Invoices (`invoice_number`, `invoice_status_code`, `invoice_date`) VALUES (15, 'Issued', '2018-02-03 05:46:16');
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
CREATE TABLE `Orders` (
|
| 96 |
+
`order_id` INTEGER PRIMARY KEY,
|
| 97 |
+
`customer_id` INTEGER NOT NULL,
|
| 98 |
+
`order_status_code` VARCHAR(10) NOT NULL,
|
| 99 |
+
`date_order_placed` DATETIME NOT NULL,
|
| 100 |
+
FOREIGN KEY (`customer_id` ) REFERENCES `Customers`(`customer_id` )
|
| 101 |
+
);
|
| 102 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (1, 5, 'Cancelled', '2017-09-17 16:13:07');
|
| 103 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (2, 13, 'Part Completed', '2017-10-14 12:05:48');
|
| 104 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (3, 13, 'Cancelled', '2017-09-10 08:27:04');
|
| 105 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (4, 11, 'Delivered', '2018-03-19 21:48:59');
|
| 106 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (5, 4, 'Delivered', '2017-09-17 07:48:34');
|
| 107 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (6, 8, 'Delivered', '2018-03-07 15:34:19');
|
| 108 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (7, 4, 'Part Completed', '2017-12-02 13:40:02');
|
| 109 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (8, 15, 'Part Completed', '2018-03-01 04:18:28');
|
| 110 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (9, 1, 'Part Completed', '2018-03-01 05:25:55');
|
| 111 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (10, 15, 'Part Completed', '2017-09-25 14:30:23');
|
| 112 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (11, 2, 'Cancelled', '2017-05-27 10:55:13');
|
| 113 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (12, 10, 'Cancelled', '2017-11-06 00:37:20');
|
| 114 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (13, 6, 'Part Completed', '2017-09-26 06:53:48');
|
| 115 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (14, 6, 'Delivered', '2017-05-02 00:04:13');
|
| 116 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (15, 1, 'Cancelled', '2017-11-23 04:27:11');
|
| 117 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (16, 10, 'Cancelled', '2017-07-19 12:45:12');
|
| 118 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (17, 6, 'Delivered', '2017-10-27 11:27:07');
|
| 119 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (18, 3, 'Cancelled', '2017-05-15 15:13:44');
|
| 120 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (19, 13, 'Part Completed', '2017-12-10 23:45:42');
|
| 121 |
+
INSERT INTO Orders (`order_id`, `customer_id`, `order_status_code`, `date_order_placed`) VALUES (20, 10, 'Cancelled', '2017-09-20 22:18:50');
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
CREATE TABLE `Order_Items` (
|
| 126 |
+
`order_item_id` INTEGER PRIMARY KEY ,
|
| 127 |
+
`product_id` INTEGER NOT NULL,
|
| 128 |
+
`order_id` INTEGER NOT NULL,
|
| 129 |
+
`order_item_status_code` VARCHAR(10) NOT NULL,
|
| 130 |
+
FOREIGN KEY (`product_id` ) REFERENCES `Products`(`product_id` ),
|
| 131 |
+
FOREIGN KEY (`order_id` ) REFERENCES `Orders`(`order_id` )
|
| 132 |
+
);
|
| 133 |
+
|
| 134 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (1, 4, 8, 'Delivered');
|
| 135 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (2, 3, 4, 'Out of Stock');
|
| 136 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (3, 2, 7, 'Delivered');
|
| 137 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (4, 1, 10, 'Out of Stock');
|
| 138 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (5, 1, 3, 'Delivered');
|
| 139 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (6, 1, 18, 'Delivered');
|
| 140 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (7, 5, 3, 'Delivered');
|
| 141 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (8, 4, 19, 'Out of Stock');
|
| 142 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (9, 5, 18, 'Out of Stock');
|
| 143 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (10, 3, 6, 'Delivered');
|
| 144 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (11, 3, 1, 'Out of Stock');
|
| 145 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (12, 5, 10, 'Out of Stock');
|
| 146 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (13, 4, 17, 'Delivered');
|
| 147 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (14, 1, 19, 'Out of Stock');
|
| 148 |
+
INSERT INTO Order_Items (`order_item_id`, `product_id`, `order_id`, `order_item_status_code`) VALUES (15, 3, 20, 'Out of Stock');
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
CREATE TABLE `Shipments` (
|
| 152 |
+
`shipment_id` INTEGER PRIMARY KEY,
|
| 153 |
+
`order_id` INTEGER NOT NULL,
|
| 154 |
+
`invoice_number` INTEGER NOT NULL,
|
| 155 |
+
`shipment_tracking_number` VARCHAR(80),
|
| 156 |
+
`shipment_date` DATETIME,
|
| 157 |
+
FOREIGN KEY (`invoice_number` ) REFERENCES `Invoices`(`invoice_number` ),
|
| 158 |
+
FOREIGN KEY (`order_id` ) REFERENCES `Orders`(`order_id` )
|
| 159 |
+
);
|
| 160 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (1, 7, 5, '6900', '2018-02-28 00:04:11');
|
| 161 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (2, 6, 2, '3499', '2018-03-07 01:57:14');
|
| 162 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (3, 9, 4, '5617', '2018-03-18 22:23:19');
|
| 163 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (4, 8, 14, '6074', '2018-03-11 23:48:37');
|
| 164 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (5, 12, 9, '3848', '2018-02-25 21:42:52');
|
| 165 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (6, 15, 15, '3335', '2018-03-15 01:10:18');
|
| 166 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (7, 14, 3, '8731', '2018-03-14 16:21:03');
|
| 167 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (8, 12, 5, '6804', '2018-03-12 01:44:44');
|
| 168 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (9, 18, 7, '4377', '2018-03-20 01:23:34');
|
| 169 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (10, 4, 13, '8149', '2018-03-16 03:30:05');
|
| 170 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (11, 6, 2, '9190', '2018-02-25 19:24:52');
|
| 171 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (12, 17, 13, '9206', '2018-03-20 21:01:04');
|
| 172 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (13, 7, 9, '4276', '2018-03-25 15:37:44');
|
| 173 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (14, 5, 11, '9195', '2018-03-10 22:34:34');
|
| 174 |
+
INSERT INTO Shipments (`shipment_id`, `order_id`, `invoice_number`, `shipment_tracking_number`, `shipment_date`) VALUES (15, 6, 11, '5506', '2018-03-09 07:24:28');
|
| 175 |
+
|
| 176 |
+
CREATE TABLE `Shipment_Items` (
|
| 177 |
+
`shipment_id` INTEGER NOT NULL,
|
| 178 |
+
`order_item_id` INTEGER NOT NULL,
|
| 179 |
+
PRIMARY KEY (`shipment_id`,`order_item_id`),
|
| 180 |
+
FOREIGN KEY (`shipment_id` ) REFERENCES `Shipments`(`shipment_id` ),
|
| 181 |
+
FOREIGN KEY (`order_item_id` ) REFERENCES `Order_Items`(`order_item_id` )
|
| 182 |
+
);
|
| 183 |
+
INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (4, 4);
|
| 184 |
+
INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (7, 14);
|
| 185 |
+
INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (15, 9);
|
| 186 |
+
INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (8, 14);
|
| 187 |
+
INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (9, 15);
|
| 188 |
+
INSERT INTO Shipment_Items (`shipment_id`, `order_item_id`) VALUES (6, 14);
|
test_database/phone_1/schema.sql
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PRAGMA foreign_keys=ON;
|
| 2 |
+
BEGIN TRANSACTION;
|
| 3 |
+
CREATE TABLE IF NOT EXISTS "chip_model" (
|
| 4 |
+
"Model_name" text,
|
| 5 |
+
"Launch_year" real,
|
| 6 |
+
"RAM_MiB" real,
|
| 7 |
+
"ROM_MiB" real,
|
| 8 |
+
"Slots" text,
|
| 9 |
+
"WiFi" text,
|
| 10 |
+
"Bluetooth" text,
|
| 11 |
+
PRIMARY KEY ("Model_name")
|
| 12 |
+
);
|
| 13 |
+
INSERT INTO chip_model VALUES('X5',2002.0,32.0,32.0,'1CFII,1SD','No','No');
|
| 14 |
+
INSERT INTO chip_model VALUES('X5 high end',2002.0,64.0,48.000000000000000001,'1CFII,1SD','No','No');
|
| 15 |
+
INSERT INTO chip_model VALUES('X3 Basic',2003.0,32.0,32.0,'1SD','No','No');
|
| 16 |
+
INSERT INTO chip_model VALUES('X3 Advanced',2003.0,64.0,64.0,'1SD','No','No');
|
| 17 |
+
INSERT INTO chip_model VALUES('X3i',2003.0,64.0,64.0,'1SD','802.11b','No');
|
| 18 |
+
INSERT INTO chip_model VALUES('X30 low-end',2004.0,32.0,32.0,'1SD','No','No');
|
| 19 |
+
INSERT INTO chip_model VALUES('X30 mid-range',2004.0,64.0,64.0,'1SD','802.11b','1.1');
|
| 20 |
+
INSERT INTO chip_model VALUES('X30 high-end',2004.0,64.0,64.0,'1SD','802.11b','1.1');
|
| 21 |
+
INSERT INTO chip_model VALUES('X50 Standard',2004.0,64.0,64.0,'1CFII,1SD','No','Yes');
|
| 22 |
+
INSERT INTO chip_model VALUES('X50 Advanced',2004.0,64.0,127.99999999999999999,'1CFII,1SD','802.11b','Yes');
|
| 23 |
+
INSERT INTO chip_model VALUES('X50v',2004.0,64.0,127.99999999999999999,'1CFII,1SD','802.11b','1.2');
|
| 24 |
+
INSERT INTO chip_model VALUES('X51 low-end',2005.0000000000000001,64.0,127.99999999999999999,'1CFII,1SD','No','1.2');
|
| 25 |
+
INSERT INTO chip_model VALUES('X51 mid-range',2005.0000000000000001,64.0,127.99999999999999999,'1CFII,1SD','802.11b','1.2');
|
| 26 |
+
INSERT INTO chip_model VALUES('X51v',2005.0000000000000001,64.0,255.99999999999999999,'1CFII,1SD','802.11b','1.2');
|
| 27 |
+
CREATE TABLE IF NOT EXISTS "screen_mode" (
|
| 28 |
+
"Graphics_mode" real,
|
| 29 |
+
"Char_cells" text,
|
| 30 |
+
"Pixels" text,
|
| 31 |
+
"Hardware_colours" real,
|
| 32 |
+
"used_kb" real,
|
| 33 |
+
"map" text,
|
| 34 |
+
"Type" text,
|
| 35 |
+
PRIMARY KEY ("Graphics_mode")
|
| 36 |
+
);
|
| 37 |
+
INSERT INTO "screen_mode" VALUES(0.0,'80 × 32','640 × 256',2.0,20.0,'3000–7FFF','Graphics');
|
| 38 |
+
INSERT INTO "screen_mode" VALUES(1.0,'40 × 32','320 × 256',4.0,20.0,'3000–7FFF','Graphics');
|
| 39 |
+
INSERT INTO "screen_mode" VALUES(2.0,'20 × 32','160 × 256',8.0,20.0,'3000–7FFF','Graphics');
|
| 40 |
+
INSERT INTO "screen_mode" VALUES(3.0,'80 × 25','640 × 200',2.0,16.0,'4000–7FFF','Text');
|
| 41 |
+
INSERT INTO "screen_mode" VALUES(4.0,'40 × 32','320 × 256',2.0,10.0,'5800–7FFF','Graphics');
|
| 42 |
+
INSERT INTO "screen_mode" VALUES(5.0,'20 × 32','160 × 256',4.0,10.0,'5800–7FFF','Graphics');
|
| 43 |
+
INSERT INTO "screen_mode" VALUES(6.0,'40 × 25','320 × 200',2.0,8.0,'6000–7FFF','Text');
|
| 44 |
+
|
| 45 |
+
CREATE TABLE IF NOT EXISTS "phone" (
|
| 46 |
+
"Company_name" text,
|
| 47 |
+
"Hardware_Model_name" text,
|
| 48 |
+
"Accreditation_type" text,
|
| 49 |
+
"Accreditation_level" text,
|
| 50 |
+
"Date" text,
|
| 51 |
+
"chip_model" text,
|
| 52 |
+
"screen_mode" text,
|
| 53 |
+
PRIMARY KEY("Hardware_Model_name"),
|
| 54 |
+
FOREIGN KEY (`screen_mode`) REFERENCES `screen_mode`(`Graphics_mode`),
|
| 55 |
+
FOREIGN KEY (`chip_model`) REFERENCES `chip_model`(`Model_name`)
|
| 56 |
+
);
|
| 57 |
+
INSERT INTO phone VALUES('Sony Mobile Communications','XPERIA T, XPERIA J','Full','joyn Hot Fixes','Approved (awarded 15.11.12)','X5','1');
|
| 58 |
+
INSERT INTO phone VALUES('LG Electronics','LG-P760','Full','joyn Hot Fixes','Approved (awarded 19.11.12)','X51v','3');
|
| 59 |
+
INSERT INTO phone VALUES('Nokia Corporation','Lumia 920, Lumia 820, Lumia 620','Full','joyn Hot Fixes','Approved (awarded 05.12.12)','X5','4');
|
| 60 |
+
INSERT INTO phone VALUES('Samsung Electronics Co Ltd','GT-I9300','Full','joyn','Approved (awarded 23.10.12)','X30 low-end','5');
|
| 61 |
+
INSERT INTO phone VALUES('HTC Corporation','Z520e','Provisional','joyn','Approved (valid until 14.09.13)','X3i','6');
|
| 62 |
+
INSERT INTO phone VALUES('Samsung Electronics Co Ltd','GT-I9100','Provisional','joyn','Approved (valid until 06.04.13)','X50 Advanced','1');
|
| 63 |
+
INSERT INTO phone VALUES('Nokia Corporation','Nokia 700','Provisional','joyn','Approved (valid until 03.05.13)','X5','2');
|
| 64 |
+
INSERT INTO phone VALUES('Huawei Technologies Co.Ltd.','U8815 Asura','Provisional','joyn','Approved (valid until 03.05.13)','X50 Standard','3');
|
| 65 |
+
COMMIT;
|
test_database/restaurant_bills/schema.sql
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PRAGMA foreign_keys = ON;
|
| 2 |
+
|
| 3 |
+
CREATE TABLE "customer" (
|
| 4 |
+
"Customer_ID" int,
|
| 5 |
+
"Name" text,
|
| 6 |
+
"Nationality" text,
|
| 7 |
+
"Card_Credit" real,
|
| 8 |
+
"Level_of_Membership" int,
|
| 9 |
+
PRIMARY KEY ("Customer_ID")
|
| 10 |
+
);
|
| 11 |
+
|
| 12 |
+
CREATE TABLE "branch" (
|
| 13 |
+
"Branch_ID" int,
|
| 14 |
+
"Manager" text,
|
| 15 |
+
"Years_opened" int,
|
| 16 |
+
"Location_of_office" text,
|
| 17 |
+
PRIMARY KEY ("Branch_ID")
|
| 18 |
+
);
|
| 19 |
+
|
| 20 |
+
INSERT INTO "customer" VALUES (1,"Arthur Morris","Australia","87.00","3");
|
| 21 |
+
INSERT INTO "customer" VALUES (2,"Denis Compton","England","62.44","2");
|
| 22 |
+
INSERT INTO "customer" VALUES (3,"Donald Bradman","Australia","72.57","2");
|
| 23 |
+
INSERT INTO "customer" VALUES (4,"Cyril Washbrook","England","50.85","1");
|
| 24 |
+
INSERT INTO "customer" VALUES (5,"Len Hutton","England","42.75","0");
|
| 25 |
+
INSERT INTO "customer" VALUES (6,"Sid Barnes","Australia","82.25","1");
|
| 26 |
+
INSERT INTO "customer" VALUES (7,"Bill Edrich","England","31.90","1");
|
| 27 |
+
INSERT INTO "customer" VALUES (8,"Lindsay Hassett","Australia","44.28","1");
|
| 28 |
+
|
| 29 |
+
INSERT INTO "branch" VALUES (1,"Ashby Lazale",5,"Hartford");
|
| 30 |
+
INSERT INTO "branch" VALUES (2,"Breton Robert",4,"Waterbury");
|
| 31 |
+
INSERT INTO "branch" VALUES (3,"Campbell Jessie",6,"Hartford");
|
| 32 |
+
INSERT INTO "branch" VALUES (4,"Cobb Sedrick",2,"Waterbury");
|
| 33 |
+
INSERT INTO "branch" VALUES (5,"Hayes Steven",3,"Cheshire");
|
| 34 |
+
INSERT INTO "branch" VALUES (6,"Komisarjevsky Joshua",2,"Cheshire");
|
| 35 |
+
INSERT INTO "branch" VALUES (7,"Peeler Russell",6,"Bridgeport");
|
| 36 |
+
INSERT INTO "branch" VALUES (8,"Reynolds Richard",8,"Waterbury");
|
| 37 |
+
INSERT INTO "branch" VALUES (9,"Rizzo Todd",4,"Waterbury");
|
| 38 |
+
INSERT INTO "branch" VALUES (10,"Webb Daniel",2,"Hartford");
|
| 39 |
+
|
| 40 |
+
CREATE TABLE "customer_order" (
|
| 41 |
+
"Customer_ID" int,
|
| 42 |
+
"Branch_ID" int,
|
| 43 |
+
"Dish_Name" text,
|
| 44 |
+
"Quantity" int,
|
| 45 |
+
PRIMARY KEY ("Customer_ID","Branch_ID","Dish_Name"),
|
| 46 |
+
FOREIGN KEY ("Customer_ID") REFERENCES `customer`("Customer_ID"),
|
| 47 |
+
FOREIGN KEY ("Branch_ID") REFERENCES `branch`("Branch_ID")
|
| 48 |
+
);
|
| 49 |
+
|
| 50 |
+
INSERT INTO "customer_order" VALUES (2,10,"Ma Po Tofu",1);
|
| 51 |
+
INSERT INTO "customer_order" VALUES (2,9,"Kung Pao Chicken",2);
|
| 52 |
+
INSERT INTO "customer_order" VALUES (3,10,"Peking Roasted Duck",1);
|
| 53 |
+
INSERT INTO "customer_order" VALUES (4,6,"Chow Mein",2);
|
| 54 |
+
INSERT INTO "customer_order" VALUES (5,6,"Chow Mein",1);
|
| 55 |
+
INSERT INTO "customer_order" VALUES (1,10,"Spring Rolls",4);
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
|
test_database/wine_1/wine_1.sqlite
ADDED
|
Binary file (69.6 kB). View file
|
|
|