blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
133
path
stringlengths
3
276
src_encoding
stringclasses
33 values
length_bytes
int64
23
9.61M
score
float64
2.52
5.28
int_score
int64
3
5
detected_licenses
listlengths
0
44
license_type
stringclasses
2 values
text
stringlengths
23
9.43M
download_success
bool
1 class
692afb62ed3fd6de280fdc22c15f6b25dbd49705
SQL
mzxssg/Java_Learning_Notes
/尚医通/资料/资料1/02-项目sql语句/sql/yygh表结构.sql
UTF-8
10,545
3.125
3
[]
no_license
# Host: localhost (Version 5.7.19-log) # Date: 2020-07-31 12:02:29 # Generator: MySQL-Front 6.1 (Build 1.26) # # Database "yygh_cmn" # CREATE DATABASE IF NOT EXISTS `yygh_cmn` CHARACTER SET utf8; USE `yygh_cmn`; # # Structure for table "dict" # CREATE TABLE `dict` ( `id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'id', `parent_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '上级id', `name` varchar(100) NOT NULL DEFAULT '' COMMENT '名称', `value` bigint(20) DEFAULT NULL COMMENT '值', `dict_code` varchar(20) DEFAULT NULL COMMENT '编码', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '1' COMMENT '删除标记(0:不可用 1:可用)', PRIMARY KEY (`id`), KEY `idx_dict_code` (`dict_code`), KEY `idx_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='组织架构表'; # # Database "yygh_hosp" # CREATE DATABASE IF NOT EXISTS `yygh_hosp` CHARACTER SET utf8mb4; USE `yygh_hosp`; # # Structure for table "hospital_set" # CREATE TABLE `hospital_set` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `hosname` varchar(100) DEFAULT NULL COMMENT '医院名称', `hoscode` varchar(30) DEFAULT NULL COMMENT '医院编号', `api_url` varchar(100) DEFAULT NULL COMMENT 'api基础路径', `sign_key` varchar(50) DEFAULT NULL COMMENT '签名秘钥', `contacts_name` varchar(20) DEFAULT NULL COMMENT '联系人', `contacts_phone` varchar(11) DEFAULT NULL COMMENT '联系人手机', `status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '状态', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '逻辑删除(1:已删除,0:未删除)', PRIMARY KEY (`id`), UNIQUE KEY `uk_hoscode` (`hoscode`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='医院设置表'; # # Database "yygh_order" # CREATE DATABASE IF NOT EXISTS `yygh_order` CHARACTER SET utf8; USE `yygh_order`; # # Structure for table "order_info" # CREATE TABLE `order_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `user_id` bigint(20) DEFAULT NULL, `out_trade_no` varchar(300) DEFAULT NULL COMMENT '订单交易号', `hoscode` varchar(30) DEFAULT NULL COMMENT '医院编号', `hosname` varchar(100) DEFAULT NULL COMMENT '医院名称', `depcode` varchar(30) DEFAULT NULL COMMENT '科室编号', `depname` varchar(20) DEFAULT NULL COMMENT '科室名称', `title` varchar(20) DEFAULT NULL COMMENT '医生职称', `hos_schedule_id` varchar(50) DEFAULT NULL COMMENT '排班编号(医院自己的排班主键)', `reserve_date` date DEFAULT NULL COMMENT '安排日期', `reserve_time` tinyint(3) DEFAULT '0' COMMENT '安排时间(0:上午 1:下午)', `patient_id` bigint(20) DEFAULT NULL COMMENT '就诊人id', `patient_name` varchar(20) DEFAULT NULL COMMENT '就诊人名称', `patient_phone` varchar(11) DEFAULT NULL COMMENT '就诊人手机', `hos_record_id` varchar(30) DEFAULT NULL COMMENT '预约记录唯一标识(医院预约记录主键)', `number` int(11) DEFAULT NULL COMMENT '预约号序', `fetch_time` varchar(50) DEFAULT NULL COMMENT '建议取号时间', `fetch_address` varchar(255) DEFAULT NULL COMMENT '取号地点', `amount` decimal(10,0) DEFAULT NULL COMMENT '医事服务费', `quit_time` datetime DEFAULT NULL COMMENT '退号时间', `order_status` tinyint(3) DEFAULT NULL COMMENT '订单状态', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '逻辑删除(1:已删除,0:未删除)', PRIMARY KEY (`id`), UNIQUE KEY `uk_out_trade_no` (`out_trade_no`), KEY `idx_user_id` (`user_id`), KEY `idx_hoscode` (`hoscode`), KEY `idx_hos_schedule_id` (`hos_schedule_id`), KEY `idx_hos_record_id` (`hos_record_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='订单表'; # # Structure for table "payment_info" # CREATE TABLE `payment_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号', `out_trade_no` varchar(30) DEFAULT NULL COMMENT '对外业务编号', `order_id` bigint(20) DEFAULT NULL COMMENT '订单id', `payment_type` tinyint(1) DEFAULT NULL COMMENT '支付类型(微信 支付宝)', `trade_no` varchar(50) DEFAULT NULL COMMENT '交易编号', `total_amount` decimal(10,2) DEFAULT NULL COMMENT '支付金额', `subject` varchar(200) DEFAULT NULL COMMENT '交易内容', `payment_status` tinyint(3) DEFAULT NULL COMMENT '支付状态', `callback_time` datetime DEFAULT NULL COMMENT '回调时间', `callback_content` varchar(1000) DEFAULT NULL COMMENT '回调信息', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '逻辑删除(1:已删除,0:未删除)', PRIMARY KEY (`id`), KEY `idx_out_trade_no` (`out_trade_no`), KEY `idx_order_id` (`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='支付信息表'; # # Structure for table "refund_info" # CREATE TABLE `refund_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号', `out_trade_no` varchar(50) DEFAULT NULL COMMENT '对外业务编号', `order_id` bigint(20) DEFAULT NULL COMMENT '订单编号', `payment_type` tinyint(3) DEFAULT NULL COMMENT '支付类型(微信 支付宝)', `trade_no` varchar(50) DEFAULT NULL COMMENT '交易编号', `total_amount` decimal(10,2) DEFAULT NULL COMMENT '退款金额', `subject` varchar(200) DEFAULT NULL COMMENT '交易内容', `refund_status` tinyint(3) DEFAULT NULL COMMENT '退款状态', `callback_content` varchar(1000) DEFAULT NULL COMMENT '回调信息', `callback_time` datetime DEFAULT NULL, `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '逻辑删除(1:已删除,0:未删除)', PRIMARY KEY (`id`), KEY `idx_out_trade_no` (`out_trade_no`), KEY `idx_order_id` (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='退款信息表'; # # Database "yygh_user" # CREATE DATABASE IF NOT EXISTS `yygh_user` CHARACTER SET utf8; USE `yygh_user`; # # Structure for table "patient" # CREATE TABLE `patient` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `user_id` bigint(20) DEFAULT NULL COMMENT '用户id', `name` varchar(20) DEFAULT NULL COMMENT '姓名', `certificates_type` varchar(3) DEFAULT NULL COMMENT '证件类型', `certificates_no` varchar(30) DEFAULT NULL COMMENT '证件编号', `sex` tinyint(3) DEFAULT NULL COMMENT '性别', `birthdate` date DEFAULT NULL COMMENT '出生年月', `phone` varchar(11) DEFAULT NULL COMMENT '手机', `is_marry` tinyint(3) DEFAULT NULL COMMENT '是否结婚', `province_code` varchar(20) DEFAULT NULL COMMENT '省code', `city_code` varchar(20) DEFAULT NULL COMMENT '市code', `district_code` varchar(20) DEFAULT NULL COMMENT '区code', `address` varchar(100) DEFAULT NULL COMMENT '详情地址', `contacts_name` varchar(20) DEFAULT NULL COMMENT '联系人姓名', `contacts_certificates_type` varchar(3) DEFAULT NULL COMMENT '联系人证件类型', `contacts_certificates_no` varchar(30) DEFAULT NULL COMMENT '联系人证件号', `contacts_phone` varchar(11) DEFAULT NULL COMMENT '联系人手机', `card_no` varchar(50) DEFAULT NULL COMMENT '就诊卡号', `is_insure` tinyint(3) DEFAULT '0' COMMENT '是否有医保', `status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '状态(0:默认 1:已认证)', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '逻辑删除(1:已删除,0:未删除)', PRIMARY KEY (`id`), KEY `idx_user_id` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='就诊人表'; # # Structure for table "user_info" # CREATE TABLE `user_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `openid` varchar(100) DEFAULT NULL COMMENT '微信openid', `nick_name` varchar(20) DEFAULT NULL COMMENT '昵称', `phone` varchar(11) NOT NULL DEFAULT '' COMMENT '手机号', `name` varchar(20) DEFAULT NULL COMMENT '用户姓名', `certificates_type` varchar(3) DEFAULT NULL COMMENT '证件类型', `certificates_no` varchar(30) DEFAULT NULL COMMENT '证件编号', `certificates_url` varchar(200) DEFAULT NULL COMMENT '证件路径', `auth_status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '认证状态(0:未认证 1:认证中 2:认证成功 -1:认证失败)', `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '状态(0:锁定 1:正常)', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '逻辑删除(1:已删除,0:未删除)', PRIMARY KEY (`id`), KEY `uk_mobile` (`phone`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='用户表'; # # Structure for table "user_login_record" # CREATE TABLE `user_login_record` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `user_id` bigint(20) DEFAULT NULL COMMENT '用户id', `ip` varchar(32) DEFAULT NULL COMMENT 'ip', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(3) NOT NULL DEFAULT '0' COMMENT '逻辑删除(1:已删除,0:未删除)', PRIMARY KEY (`id`), KEY `idx_user_id` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 COMMENT='用户登录记录表';
true
4d84335794349d2d0f1a3c6d8c0be421c0be4813
SQL
decker389/bottega-mysql-project
/sample data for courses table.sql
UTF-8
1,766
2.765625
3
[]
no_license
USE school_project_schema; INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(1, "beauty and the beast", "History", 1); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(2, "World War 2", "History", 2); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(3, "MR PYTHON", "science", 3); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(4, "High School Musical", "Music", 4); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(5, "Factories", "Production", 5); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(6, "Astronomy", "Science", 6); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(7, "English 1A", "E/nglsih", 7); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES (8, "Manifest Destiny", "History", RAND() * 7); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES (9, "High Hopes", "Music", RAND() * 7); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES (10, "Algrebra", "Math", RAND() * 7); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES (11, "Earth Science", "Science", RAND() * 7); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES (12, "Pyshics", "Science", RAND() * 7); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES (13,"coding", "Science", RAND() * 7); SELECT * FROM courses;
true
d6609cd52ed400a7d982dbe3136ebf93ac449c95
SQL
kadyrm/mydict.kg-encyclopedias-pure_php_based
/databases/department.sql
UTF-8
7,294
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.11.1deb2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 23, 2014 at 02:49 PM -- Server version: 5.5.35 -- PHP Version: 5.4.4-14+deb7u8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `dep` -- -- -------------------------------------------------------- -- -- Table structure for table `department` -- CREATE TABLE IF NOT EXISTS `department` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `personeldb_id` int(11) NOT NULL, `faculty_id` int(10) unsigned NOT NULL, `name` varchar(250) COLLATE utf8_unicode_ci NOT NULL, `en` varchar(250) COLLATE utf8_unicode_ci NOT NULL, `kg` varchar(250) COLLATE utf8_unicode_ci NOT NULL, `tr` varchar(250) COLLATE utf8_unicode_ci NOT NULL, `ru` varchar(250) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `department_faculty_id_foreign` (`faculty_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=39 ; -- -- Dumping data for table `department` -- INSERT INTO `department` (`id`, `personeldb_id`, `faculty_id`, `name`, `en`, `kg`, `tr`, `ru`) VALUES (1, 13, 9, 'Western Languages', 'Western Languages', 'Батыш Тилдер', 'Batı Diller', 'Западные Языки'), (2, 14, 9, 'Eastern Languages (Chinese Language)', 'Eastern Languages (Chinese Language)', 'Чыгыш Тилдер (Кытай Тили жана Адабияты)', 'Doğu Diller (Çin dili ve Edebiyatı)', 'Восточные Языки (Китайский Язык и Литература)'), (3, 63, 9, 'Eastern Languages (The Russian Language and Literature)', 'Eastern Languages (The Russian Language and Literature)', 'Чыгыш Тилдер (Орус Тили жана Адабияты)', 'Doğu Diller (Rus dili ve Edebiyatı)', 'Восточные Языки (Русский Язык и Литература)'), (4, 15, 9, 'Educational Science', 'Educational Science', 'Педагогика', 'Eğitim Bilimler', 'Педагогика'), (5, 12, 9, 'Philosophy', 'Philosophy', 'Философия', 'Felsefe', 'Философия'), (6, 11, 9, 'Sociology', 'Sociology', 'Социология', 'Sosyoloji', 'Социология'), (7, 9, 9, 'History', 'History', 'Тарых', 'Tarih', 'История'), (8, 10, 9, 'Turkology', 'Turkology', 'Түркология', 'Türkoloji', 'Тюркология'), (9, 41, 9, 'Translations', 'Translations', 'Синхрондук Котормо', 'Mütercim-Tercümanlık', 'Синхронный Перевод'), (10, 16, 10, 'Mathematics', 'Mathematics', 'Математика', 'Matematik', 'Математика'), (11, 99, 10, 'Applied Mathematics and Informatics', 'Applied Mathematics and Informatics', 'Колдонмо Математика жана Информатика', 'Uygulamalı Matematik ve Enformatik', 'Прикладная Математика и Информатика'), (12, 17, 10, 'Biology', 'Biology', 'Биология', 'Bioloji', 'Биология'), (13, 18, 11, 'Painting', 'Painting', 'Сүрөт', 'Resim', 'Живопись'), (14, 19, 11, 'Graphics', 'Graphics', 'Графика', 'Grafik', 'Графика'), (15, 23, 14, 'Economy', 'Economy', 'Экономика', 'İktisat', 'Экономика'), (16, 24, 14, 'Management', 'Management', 'Менеджмент', 'İşletme', 'Менеджмент'), (17, 25, 14, 'Finance', 'Finance', 'Финанстар', 'Maliye', 'Финансы'), (18, 26, 14, 'International Relations', 'International Relations', 'Эл Аралык Мамилелер', 'Uluslararası İlişkiler', 'Международные Отношения'), (19, 100, 14, 'Finance and Banking', 'Finance and Banking', 'Финанстар жана Банктык Иштер', 'Finans ve Bankacılık', 'Финансы жана Банковское Дело'), (20, 20, 12, 'Journalism', 'Journalism', 'Журналистика', 'Gazetecilik', 'Журналистика'), (21, 21, 12, 'Public Relations and Advertising', 'Public Relations and Advertising', 'Коом менен Байланыш жана Реклама', 'Halkla İlişkiler ve Reklamcılık', 'Связи с Общественностью и Рекламное Дело'), (22, 22, 12, 'Radio, TV and Cinema', 'Radio, TV and Cinema', 'Радио, телевидения жана кино', 'Radyo, TV ve Sinema', 'Радио, телевидения и кино'), (23, 30, 15, 'Chemical Engineering', 'Chemical Engineering', 'Химия Инженердиги', 'Kimya Mühendisliği', 'Химическая Инженерия'), (24, 27, 15, 'Computer Engineering', 'Computer Engineering', 'Компьютер Инженердиги', 'Bilgisayar Mühendisliği', 'Компьютерная Инженерия'), (25, 28, 15, 'Ecological Engineering', 'Ecological Engineering', 'Экологиялык', 'Çevre Mühendisliği', 'Экология'), (26, 29, 15, 'Food Engineering', 'Food Engineering', 'Тамак-Аш', 'Gıda Mühendisliği', 'Пищевая Инженерия'), (27, 141, 16, 'Veterinary', 'Veterinary', 'Ветеринария', 'Veteriner', 'Ветеренария'), (28, 31, 17, 'Horticulture and Agronomy', 'Horticulture and Agronomy', 'Мөмө-жемиш жана Талаа өсүмдүктөрү', 'Bahçe ve Tarla Bitkileri', 'Плодоовощеводство'), (29, 32, 17, 'Plant Protection', 'Plant Protection', 'Өсүмдүктөрдү Коргоо', 'Bitki Koruma', 'Защита Растений'), (30, 33, 17, 'Animal Science', 'Animal Science', 'Зоотехника', 'Zootekni', 'Зоотехника'), (31, 102, 13, 'Islamic Studies', 'Islamic Studies', 'Ислам Билимдери', 'İslam Bilimler', 'Исламоведение'), (32, 101, 13, 'Religious Studies', 'Religious Studies', 'Дин Билимдери', 'Din Bilimler', 'Религоиведение'), (33, 46, 21, 'Turkish Language', 'Turkish Language', 'Түрк Тили', 'Türk Dili', 'Турецкый Язык'), (34, 45, 21, 'Kyrgyz Language', 'Kyrgyz Language', 'Компьютер Инженердиги', 'Кыргыз Тили', 'Кыргызский Язык'), (35, 44, 21, 'Russian Language', 'Russian Language', 'Орус Тили', 'Rus Dili', 'Русский Язык'), (36, 43, 21, 'English Language', 'English Language', 'Англис Тили', 'İnglizce Dili', 'Английский Язык'), (37, 117, 21, 'Chinese Language', 'Chinese Language', 'Кытай Тили', 'Çin Dili', 'Китайский Язык'), (38, 118, 21, 'Language Teaching', 'Language Teaching', 'Тил үйрөтүү Бөлүмү', 'Dil Hazırlık', 'Преподавание Языков'); -- -- Constraints for dumped tables -- -- -- Constraints for table `department` -- ALTER TABLE `department` ADD CONSTRAINT `department_faculty_id_foreign` FOREIGN KEY (`faculty_id`) REFERENCES `faculty` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
b7cb82857ec6f2f03ff55819563ccef2b974fc46
SQL
twoscoops/two-scoops-of-django-1.11
/code/chapter_07_example_09.sql
UTF-8
1,589
3.234375
3
[]
no_license
Using This Code Example ========================= The code examples provided are provided by Daniel Greenfeld and Audrey Roy of Two Scoops Press to help you reference Two Scoops of Django: Best Practices for Django 1.11. Code samples follow PEP-0008, with exceptions made for the purposes of improving book formatting. Example code is provided "as is", and is not intended to be, and should not be considered or labeled as "tutorial code". Permissions ============ In general, you may use the code we've provided with this book in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code or using it in commercial distributions. Examples: * Writing a program that uses several chunks of code from this course does not require permission. * Selling or distributing a digital package from material taken from this book does require permission. * Answering a question by citing this book and quoting example code does not require permission. * Incorporating a significant amount of example code from this book into your product's documentation does require permission. Attributions usually include the title, author, publisher and an ISBN. For example, "Two Scoops of Django: Best Practices for Django 1.11, by Daniel Roy Greenfeld and Audrey Roy Greenfeld. Copyright 2017 Two Scoops Press (978-0-692-91572-1)." If you feel your use of code examples falls outside fair use of the permission given here, please contact us at [email protected]. ******************* SELECT * from customers_customer where scoops_ordered > store_visits
true
33b3231b7571d784f83b7f86f295a0d4e22748bf
SQL
SanderCokart/SCRUM-DG2-Tutorial-Assignments
/database_export/wedstrijd_oefening.sql
UTF-8
2,667
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 01 mrt 2019 om 09:55 -- Serverversie: 10.1.38-MariaDB -- PHP-versie: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `wedstrijd_oefening` -- CREATE DATABASE IF NOT EXISTS `wedstrijd_oefening` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `wedstrijd_oefening`; -- -------------------------------------------------------- -- -- Tabelstructuur voor tabel `clubs` -- CREATE TABLE `clubs` ( `id` int(11) NOT NULL, `club_name` varchar(25) NOT NULL, `removed` tinyint(1) NOT NULL, `reason` tinytext, `solution` tinytext ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Gegevens worden geëxporteerd voor tabel `clubs` -- INSERT INTO `clubs` (`id`, `club_name`, `removed`, `reason`, `solution`) VALUES (1, 'Feyenoord', 0, NULL, NULL), (2, 'Ajax', 0, NULL, NULL), (3, 'PSV', 0, NULL, NULL), (4, 'Heerenveen', 0, NULL, NULL), (5, 'Brabant', 0, NULL, NULL), (6, 'FC Utrecht', 0, NULL, NULL); -- -------------------------------------------------------- -- -- Tabelstructuur voor tabel `games` -- CREATE TABLE `games` ( `id` int(11) NOT NULL, `played` tinyint(1) NOT NULL, `club_1_name` varchar(25) NOT NULL, `score` varchar(5) NOT NULL, `club_2_name` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Gegevens worden geëxporteerd voor tabel `games` -- INSERT INTO `games` (`id`, `played`, `club_1_name`, `score`, `club_2_name`) VALUES (1, 0, 'Feyenoord', '5-2', 'FC Utrecht'), (2, 1, 'Ajax', 'N.A.', 'Feyenoord'); -- -- Indexen voor geëxporteerde tabellen -- -- -- Indexen voor tabel `clubs` -- ALTER TABLE `clubs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `club_name` (`club_name`); -- -- Indexen voor tabel `games` -- ALTER TABLE `games` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT voor geëxporteerde tabellen -- -- -- AUTO_INCREMENT voor een tabel `clubs` -- ALTER TABLE `clubs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT voor een tabel `games` -- ALTER TABLE `games` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
c97778c18c221bb2b73e42b321a3c0caf144427d
SQL
rlip1994/IQApp
/modelo bd/mydb_.sql
UTF-8
13,592
2.8125
3
[]
no_license
-- ----------------------------------------------------- -- procedure sp_insertAddress -- ----------------------------------------------------- DELIMITER $$ USE `mydb`$$ DELIMITER ; INSERT INTO playersxusers (idplayer,iduser) VALUES (8,17); INSERT INTO playersxusers (idplayer,iduser) VALUES (9,17); INSERT INTO playersxusers (idplayer,iduser) VALUES (10,17); INSERT INTO playersxusers (idplayer,iduser) VALUES (11,17); INSERT INTO playersxusers (idplayer,iduser) VALUES (12,18); INSERT INTO playersxusers (idplayer,iduser) VALUES (13,19); INSERT INTO playersxusers (idplayer,iduser) VALUES (14,20); DELIMITER ; INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("234","a","b",1); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("567","a","b",2); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("890","a","b",8); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("222","a","b",4); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("333","a","b",2); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("444","a","b",6); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("555","a","b",9); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("666","a","b",5); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("777","a","b",6); INSERT INTO addresses (zipCode,detail1,detail2,idCitiy) VALUES ("888","a","b",2); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertAnswer -- ----------------------------------------------------- INSERT INTO answers(value,idimage) VALUES ("anws1",4); INSERT INTO answers(value,idimage) VALUES ("anws2",5); INSERT INTO answers(value,idimage) VALUES ("anws3",5); INSERT INTO answers(value,idimage) VALUES ("anws3",4); INSERT INTO answers(value,idimage) VALUES ("anws4",3); INSERT INTO answers(value,idimage) VALUES ("anws5",3); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertCategories -- ----------------------------------------------------- INSERT INTO categories(name) VALUE ("categoria1"); INSERT INTO categories(name) VALUE ("categoria2"); INSERT INTO categories(name) VALUE ("categoria3"); INSERT INTO categories(name) VALUE ("categoria4"); INSERT INTO categories(name) VALUE ("categoria5"); INSERT INTO categories(name) VALUE ("categoria6"); INSERT INTO categories(name) VALUE ("categoria7"); INSERT INTO categories(name) VALUE ("categoria8"); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertCities -- ----------------------------------------------------- INSERT INTO cities (name,idRegion) VALUES ("San Jose",1); INSERT INTO cities (name,idRegion) VALUES ("Los Angeles",2); INSERT INTO cities (name,idRegion) VALUES ("Turin",4); INSERT INTO cities (name,idRegion) VALUES ("San Diego",2); INSERT INTO cities (name,idRegion) VALUES ("Barrio Mexico",1); INSERT INTO cities (name,idRegion) VALUES ("Sarchi",3); INSERT INTO cities (name,idRegion) VALUES ("Esparza",7); INSERT INTO cities (name,idRegion) VALUES ("Nicoya",8); INSERT INTO cities (name,idRegion) VALUES ("Liberia",8); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertCountries -- ----------------------------------------------------- INSERT INTO countries (name) VALUES("Costa Rica"); INSERT INTO countries (name) VALUES("Mexico"); INSERT INTO countries (name) VALUES("Canada"); INSERT INTO countries (name) VALUES("Estados Unidos"); INSERT INTO countries (name) VALUES("Francia"); INSERT INTO countries (name) VALUES("Italia"); INSERT INTO countries (name) VALUES("Honduras"); INSERT INTO countries (name) VALUES("Guatemala"); INSERT INTO countries (name) VALUES("Panama"); INSERT INTO countries (name) VALUES("Colombia"); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertGames -- ----------------------------------------------------- INSERT INTO games (idplayer,totalPoints) VALUES (1,20); INSERT INTO games (idplayer,totalPoints) VALUES (5,40); INSERT INTO games (idplayer,totalPoints) VALUES (6,50); INSERT INTO games (idplayer,totalPoints) VALUES (2,0); INSERT INTO games (idplayer,totalPoints) VALUES (7,102); INSERT INTO games (idplayer,totalPoints) VALUES (4,200); INSERT INTO games (idplayer,totalPoints) VALUES (3,1); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertGrades -- ----------------------------------------------------- INSERT INTO grades (name) VALUES ("1"); INSERT INTO grades (name) VALUES ("2"); INSERT INTO grades (name) VALUES ("3"); INSERT INTO grades (name) VALUES ("4"); INSERT INTO grades (name) VALUES ("5"); INSERT INTO grades (name) VALUES ("6"); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertImages -- ----------------------------------------------------- INSERT INTO images (value) VALUES (LOAD_FILE("/IQApp-Master/1.png")); INSERT INTO images (value) VALUES (LOAD_FILE("/IQApp-Master/2.png")); INSERT INTO images (value) VALUES (LOAD_FILE("/IQApp-Master/3.png")); INSERT INTO images (value) VALUES (LOAD_FILE("/IQApp-Master/4.png")); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertPlayers -- ----------------------------------------------------- INSERT INTO players (name,age,idgrade,lastname1,lastname2,enable) VALUES ("Fulano",8,2,"apellido1","apellido2",1); INSERT INTO players (name,age,idgrade,lastname1,lastname2,enable) VALUES ("Sutano",10,4,"apellido1","apellido2",2); INSERT INTO players (name,age,idgrade,lastname1,lastname2,enable) VALUES ("Mengano",12,6,"apellido1","apellido2",3); INSERT INTO players (name,age,idgrade,lastname1,lastname2,enable) VALUES ("Paco",9,3,"apellido1","apellido2",4); INSERT INTO players (name,age,idgrade,lastname1,lastname2,enable) VALUES ("Lola",11,5,"apellido1","apellido2",5); INSERT INTO players (name,age,idgrade,lastname1,lastname2,enable) VALUES ("Jeff",10,4,"apellido1","apellido2",6); INSERT INTO players (name,age,idgrade,lastname1,lastname2,enable) VALUES ("Saul",8,2,"apellido1","apellido2",7); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertPlayersXSchool -- ----------------------------------------------------- INSERT INTO playersxschools (idplayer,idSchool) VALUES (1,2); INSERT INTO playersxschools (idplayer,idSchool) VALUES (2,3); INSERT INTO playersxschools (idplayer,idSchool) VALUES (4,6); INSERT INTO playersxschools (idplayer,idSchool) VALUES (7,9); INSERT INTO playersxschools (idplayer,idSchool) VALUES (3,2); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertPlayersxAdress -- ----------------------------------------------------- INSERT INTO playersxaddresses (idplayer,idAddress,date,enable) VALUES (1,10,"2017-09-15",1); INSERT INTO playersxaddresses (idplayer,idAddress,date,enable) VALUES (3,9,"2017-09-15",1); INSERT INTO playersxaddresses (idplayer,idAddress,date,enable) VALUES (5,6,"2017-09-15",0); INSERT INTO playersxaddresses (idplayer,idAddress,date,enable) VALUES (2,1,"2017-09-15",1); INSERT INTO playersxaddresses (idplayer,idAddress,date,enable) VALUES (6,3,"2017-09-15",0); INSERT INTO playersxaddresses (idplayer,idAddress,date,enable) VALUES (8,5,"2017-09-15",1); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertQuestions -- ----------------------------------------------------- INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta1",1,1,3,40,6); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta2",2,2,2,50,2); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta3",3,3,3,60,3); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta4",4,4,4,70,5); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta5",5,5,5,40,4); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta6",6,6,6,80,1); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta7",7,1,5,90,6); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta8",8,2,2,100,5); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta9",1,3,3,110,4); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta10",9,3,3,110,4); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta11",9,3,3,110,4); INSERT INTO questions(description,idcategory,idgrade,idanswer,points,idTime) VALUES ("pregunta12",11,3,3,110,4); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertRegions -- ----------------------------------------------------- INSERT INTO regions (name,idCountry) VALUES ("San Jose",23); INSERT INTO regions (name,idCountry) VALUES ("California",26); INSERT INTO regions (name,idCountry) VALUES ("Alajuela",23); INSERT INTO regions (name,idCountry) VALUES ("Turin",28); INSERT INTO regions (name,idCountry) VALUES ("Paris",27); INSERT INTO regions (name,idCountry) VALUES ("Heredia",23); INSERT INTO regions (name,idCountry) VALUES ("Puntarenas",23); INSERT INTO regions (name,idCountry) VALUES ("Guanacaste",23); INSERT INTO regions (name,idCountry) VALUES ("Limon",23); INSERT INTO regions (name,idCountry) VALUES ("Cartago",23); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertSchools -- ----------------------------------------------------- INSERT INTO schools (name,idAddress) VALUES ("escuela1",1); INSERT INTO schools (name,idAddress) VALUES ("escuela2",2); INSERT INTO schools (name,idAddress) VALUES ("escuela3",8); INSERT INTO schools (name,idAddress) VALUES ("escuela4",5); INSERT INTO schools (name,idAddress) VALUES ("escuela5",5); INSERT INTO schools (name,idAddress) VALUES ("escuela6",3); INSERT INTO schools (name,idAddress) VALUES ("escuela7",3); INSERT INTO schools (name,idAddress) VALUES ("escuela8",1); INSERT INTO schools (name,idAddress) VALUES ("escuela9",1); INSERT INTO schools (name,idAddress) VALUES ("escuela10",9); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertTimes -- ----------------------------------------------------- INSERT INTO times(idTime,value,idUnit) VALUES (1,42,1); INSERT INTO times(idTime,value,idUnit) VALUES (2,0,2); INSERT INTO times(idTime,value,idUnit) VALUES (3,5,3); INSERT INTO times(idTime,value,idUnit) VALUES (4,30,1); INSERT INTO times(idTime,value,idUnit) VALUES (5,23,5); INSERT INTO times(idTime,value,idUnit) VALUES (6,40,4); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertUnits -- ----------------------------------------------------- INSERT INTO units (idUnit,name) VALUES (1,"unit1"); INSERT INTO units (idUnit,name) VALUES (2,"unit2"); INSERT INTO units (idUnit,name) VALUES (3,"unit3"); INSERT INTO units (idUnit,name) VALUES (4,"unit4"); INSERT INTO units (idUnit,name) VALUES (5,"unit5"); INSERT INTO units (idUnit,name) VALUES (6,"unit6"); INSERT INTO units (idUnit,name) VALUES (7,"unit7"); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertUserTypes -- ----------------------------------------------------- INSERT INTO userstypes(name) VALUES ("tipoUsuario1"); INSERT INTO userstypes(name) VALUES ("tipoUsuario2"); INSERT INTO userstypes(name) VALUES ("tipoUsuario3"); INSERT INTO userstypes(name) VALUES ("tipoUsuario4"); INSERT INTO userstypes(name) VALUES ("tipoUsuario5"); DELIMITER ; -- ----------------------------------------------------- -- procedure sp_insertUsers -- ----------------------------------------------------- INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam1","[email protected]","1234",2,0); INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam2","[email protected]","5678",5,1); INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam3","[email protected]","1379",3,0); INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam4","[email protected]","2468",1,1); INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam5","[email protected]","12345",2,0); INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam5","[email protected]","123456",3,1); INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam6","[email protected]","1234567",4,0); INSERT INTO users(username,email,password,idUserType,enable) VALUES("usernam7","[email protected]","12345678",1,1); DELIMITER ; CREATE PROCEDURE getAllCategories() BEGIN SELECT name FROM mydb.categories; END CREATE PROCEDURE getAllKidsxUser(pUserName nvarchar(16)) BEGIN Select players.idplayer,players.name, players.age, players.idgrade, players.lastname1, players.lastname2 from mydb.playersxusers inner join mydb.players on players.idPlayer=playersxusers.idPlayer inner join mydb.users on users.iduser=playersxusers.iduser where username=pUserName and players.enable=True ; END CREATE PROCEDURE getGroupQuestionsxCategory(pCategoryName nvarchar(16)) BEGIN Select questions.description , questions.points from mydb.questions inner join mydb.categories on categories.idcategory=questions.idcategory and categories.name=pCategoryName; END
true
a5ae38aefe2b77d3adc6ff07a7bc1b98c57454d7
SQL
ruden/oscommerce2-catalog-sample-data
/install/oscommerce_data_sample.sql
UTF-8
94,051
2.71875
3
[]
no_license
#TRUNCATE `categories`; #TRUNCATE `categories_description`; #TRUNCATE `manufacturers`; #TRUNCATE `manufacturers_info`; #TRUNCATE `products`; #TRUNCATE `products_attributes`; #TRUNCATE `products_description`; #TRUNCATE `products_images`; #TRUNCATE `products_options`; #TRUNCATE `products_options_values`; #TRUNCATE `products_options_values_to_products_options`; #TRUNCATE `products_to_categories`; #TRUNCATE `reviews`; #TRUNCATE `specials`; INSERT INTO `categories` (`categories_id`, `categories_image`, `parent_id`, `sort_order`, `date_added`) VALUES (1, NULL, 0, 2, now()), (2, NULL, 0, 1, now()), (3, NULL, 0, 4, now()), (4, 'minimalist.jpg', 2, 0, now()), (5, NULL, 1, 0, now()), (6, 'carefree.jpg', 2, 0, now()), (7, NULL, 1, 0, now()), (8, 'beachy.jpg', 2, 0, now()), (9, NULL, 1, 0, now()), (10, NULL, 4, 0, now()), (11, NULL, 4, 0, now()), (12, NULL, 6, 0, now()), (13, NULL, 6, 0, now()), (14, NULL, 8, 0, now()), (15, NULL, 8, 0, now()), (16, NULL, 8, 0, now()), (17, 'timeless.jpg', 2, 0, now()), (30, NULL, 3, 0, now()), (31, NULL, 3, 0, now()), (32, NULL, 3, 0, now()), (33, NULL, 0, 3, now()); INSERT INTO `categories_description` (`categories_id`, `language_id`, `categories_name`) VALUES (8, 1, 'Accessories'), (9, 1, 'Accessories'), (30, 1, 'Bags'), (14, 1, 'Belts'), (10, 1, 'Blouses & Shirts'), (6, 1, 'Bottoms'), (7, 1, 'Bottoms'), (17, 1, 'Dresses'), (31, 1, 'Fitness Equipment'), (3, 1, 'Gear'), (15, 1, 'Jewelry'), (33, 1, 'Kids'), (1, 1, 'Men'), (12, 1, 'Pants & Shorts'), (16, 1, 'Scarves'), (13, 1, 'Skirts'), (11, 1, 'Sweaters'), (4, 1, 'Tops'), (5, 1, 'Tops'), (32, 1, 'Watches'), (2, 1, 'Women'); INSERT INTO `manufacturers` (`manufacturers_id`, `manufacturers_name`, `manufacturers_image`, `date_added`) VALUES (1, 'Rendell', 'rendell.png', now()), (2, 'JCrew', 'jcrew.png', now()), (3, 'Lulus', 'lulus.png', now()), (4, 'Pandora', 'pandora.png', now()), (5, 'Nova', 'nova.png', now()), (6, 'American Apparel', 'american-apparel.png', now()), (7, 'Versace', 'versace.png', now()); INSERT INTO `manufacturers_info` (`manufacturers_id`, `languages_id`, `manufacturers_url`) VALUES (1, 1, ''), (2, 1, ''), (3, 1, ''), (4, 1, ''), (5, 1, ''), (6, 1, ''), (7, 1, ''); INSERT INTO `products` (`products_id`, `products_quantity`, `products_model`, `products_image`, `products_price`, `products_date_added`, `products_weight`, `products_status`, `products_tax_class_id`, `manufacturers_id`) VALUES (3, 999, 'VA22', 'va22-si_main.jpg', '98.0000', now(), '1.00', 1, 1, 4), (4, 999, 'VA21', 'va21-gbt_main.jpg', '118.0000', now(), '1.00', 1, 1, 4), (5, 999, 'VA20', 'va20-gb_main.jpg', '101.0000', now(), '1.00', 1, 1, 4), (6, 999, 'VA19', 'va19-go_main.jpg', '98.0000', now(), '1.00', 1, 1, 4), (7, 999, 'VA18', 'va18-go_main.jpg', '68.0000', now(), '1.00', 1, 1, 4), (8, 999, 'VA17', 'va17-si_main.jpg', '61.0000', now(), '1.00', 1, 1, 4), (9, 999, 'VA16', 'va16-go_main.jpg', '49.0000', now(), '1.00', 1, 1, 4), (10, 999, 'VA15', 'va15-si_main.jpg', '48.0000', now(), '1.00', 1, 1, 4), (11, 999, 'VA14', 'va14-ts_main.jpg', '98.0000', now(), '1.00', 1, 1, 4), (12, 999, 'VA13', 'va13-sg_main.jpg', '98.0000', now(), '1.00', 1, 1, 4), (13, 999, 'VA12', 'va12-ts_main.jpg', '78.0000', now(), '1.00', 1, 1, 4), (14, 999, 'VA11', 'va11-sg_main.jpg', '58.0000', now(), '1.00', 1, 1, 4), (33, 999, 'VT12', 'vt12-kh_main.jpg', '58.0000', now(), '1.00', 1, 1, 3), (34, 999, 'VT11', 'vt11-ll_main.jpg', '61.0000', now(), '1.00', 1, 1, 3), (35, 999, 'VT10', 'vt10-ly_main.jpg', '99.0000', now(), '1.00', 1, 1, 3), (36, 999, 'VT09', 'vt09-ll_main.jpg', '79.0000', now(), '1.00', 1, 1, 5), (37, 999, 'VT08', 'vt08-mt_main.jpg', '98.0000', now(), '1.00', 1, 1, 3), (38, 999, 'VT07', 'vt07-rn_main.jpg', '59.0000', now(), '1.00', 1, 1, 3), (39, 999, 'VT06', 'vt06-mt_main.jpg', '88.0000', now(), '1.00', 1, 1, 3), (40, 999, 'VT05', 'vt05-pe_main.jpg', '108.0000', now(), '1.00', 1, 1, 5), (41, 999, 'VT04', 'vt04-mt_main.jpg', '88.0000', now(), '1.00', 1, 1, 3), (42, 999, 'VT03', 'vt03-rn_main.jpg', '98.0000', now(), '1.00', 1, 1, 3), (43, 999, 'VT02', 'vt02-rn_main.jpg', '69.0000', now(), '1.00', 1, 1, 5), (44, 999, 'VT01', 'vt01-kh_main.jpg', '87.0000', now(), '1.00', 1, 1, 3), (45, 999, 'VSW12', 'vsw12-pe_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (47, 999, 'VSW10', 'vsw10-ly_main.jpg', '108.0000', now(), '1.00', 1, 1, NULL), (48, 999, 'VSW09', 'vsw09-rn_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (49, 999, 'VSW08', 'vsw08-ll_main.jpg', '79.0000', now(), '1.00', 1, 1, NULL), (50, 999, 'VSW07', 'vsw07-mt_main.jpg', '118.0000', now(), '1.00', 1, 1, NULL), (51, 999, 'VSW06', 'vsw06-rn_main.jpg', '101.0000', now(), '1.00', 1, 1, NULL), (52, 999, 'VSW05', 'vsw05-kh_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (53, 999, 'VSW04', 'vsw04-pe_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (54, 999, 'VSW03', 'vsw03-kh_main.jpg', '83.0000', now(), '1.00', 1, 1, NULL), (55, 999, 'VSW02', 'vsw02-pe_main.jpg', '66.0000', now(), '1.00', 1, 1, NULL), (56, 999, 'VSW01', 'vsw01-rn_main.jpg', '78.0000', now(), '1.00', 1, 1, NULL), (57, 999, 'VSK12', 'vsk12-la_main.jpg', '118.0000', now(), '1.00', 1, 1, NULL), (58, 999, 'VSK11', 'vsk11-ly_main.jpg', '97.0000', now(), '1.00', 1, 1, NULL), (59, 999, 'VSK10', 'vsk10-pe_main.jpg', '101.0000', now(), '1.00', 1, 1, NULL), (60, 999, 'VSK09', 'vsk09-rn_main.jpg', '88.0000', now(), '1.00', 1, 1, NULL), (61, 999, 'VSK08', 'vsk08-ly_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (62, 999, 'VSK07', 'vsk07-rn_main.jpg', '108.0000', now(), '1.00', 1, 1, NULL), (63, 999, 'VSK06', 'vsk06-la_main.jpg', '88.0000', now(), '1.00', 1, 1, NULL), (64, 999, 'VSK05', 'vsk05-pe_main.jpg', '78.0000', now(), '1.00', 1, 1, NULL), (65, 999, 'VSK04', 'vsk04-kh_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (66, 999, 'VSK03', 'vsk03-pe_main.jpg', '76.0000', now(), '1.00', 1, 1, NULL), (67, 999, 'VSK02', 'vsk02-ll_main.jpg', '78.0000', now(), '1.00', 1, 1, NULL), (68, 999, 'VSK01', 'vsk01-la_main.jpg', '78.0000', now(), '1.00', 1, 1, NULL), (69, 999, 'VP12', 'vp12-la_main.jpg', '95.0000', now(), '1.00', 1, 1, NULL), (70, 999, 'VP11', 'vp11-pe_main.jpg', '108.0000', now(), '1.00', 1, 1, NULL), (71, 999, 'VP10', 'vp10-la_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (72, 999, 'VP09', 'vp09-pe_main.jpg', '75.0000', now(), '1.00', 1, 1, NULL), (73, 999, 'VP08', 'vp08-rn_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (74, 999, 'VP07', 'vp07-ll_main.jpg', '88.0000', now(), '1.00', 1, 1, NULL), (75, 999, 'VP06', 'vp06-ly_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (76, 999, 'VP05', 'vp05-rn_main.jpg', '78.0000', now(), '1.00', 1, 1, NULL), (77, 999, 'VP04', 'vp04-ll_main.jpg', '98.0000', now(), '1.00', 1, 1, NULL), (78, 999, 'VP03', 'vp03-pe_main.jpg', '88.0000', now(), '1.00', 1, 1, NULL), (79, 999, 'VP02', 'vp02-pe_main.jpg', '88.0000', now(), '1.00', 1, 1, NULL), (80, 999, 'VP01', 'vp01-ll_main.jpg', '101.0000', now(), '1.00', 1, 1, NULL), (81, 999, 'VD12', 'vd12-rn_main.jpg', '108.0000', now(), '1.00', 1, 1, 3), (82, 999, 'VD11', 'vd11-ly_main.jpg', '128.0000', now(), '1.00', 1, 1, 5), (83, 999, 'VD10', 'vd10-ly_main.jpg', '98.0000', now(), '1.00', 1, 1, 5), (84, 999, 'VD09', 'vd09-pe_main.jpg', '78.0000', now(), '1.00', 1, 1, 5), (85, 999, 'VD08', 'vd08-ll_main.jpg', '78.0000', now(), '1.00', 1, 1, 3), (86, 999, 'VD07', 'vd07-pe_main.jpg', '108.0000', now(), '1.00', 1, 1, 3), (87, 999, 'VD06', 'vd06-mt_main.jpg', '148.0000', now(), '1.00', 1, 1, 3), (88, 999, 'VD05', 'vd05-ly_main.jpg', '88.0000', now(), '1.00', 1, 1, 3), (89, 999, 'VD04', 'vd04-pe_main.jpg', '128.0000', now(), '1.00', 1, 1, 3), (90, 999, 'VD03', 'vd03-mt_main.jpg', '78.0000', now(), '1.00', 1, 1, 3), (91, 999, 'VD02', 'vd02-ll_main.jpg', '108.0000', now(), '1.00', 1, 1, 3), (92, 999, 'VD01', 'vd01-ll_main.jpg', '98.0000', now(), '1.00', 1, 1, 3), (93, 999, 'VA10', 'va10-ct_main.jpg', '48.0000', now(), '1.00', 1, 1, NULL), (97, 999, 'VA06', 'va06-ly_main.jpg', '59.0000', now(), '1.00', 1, 1, 0), (98, 999, 'VA05', 'va05-ll_main.jpg', '59.0000', now(), '1.00', 1, 1, 0), (99, 999, 'VA04', 'va04-ll_main.jpg', '49.0000', now(), '1.00', 1, 1, 0), (100, 999, 'VA03', 'va03-ly_main.jpg', '48.0000', now(), '1.00', 1, 1, 0), (101, 999, 'VA02', 'va02-pe_main.jpg', '48.0000', now(), '1.00', 1, 1, 0), (102, 999, 'VA01', 'va01-pe_main.jpg', '48.0000', now(), '1.00', 1, 1, 0), (103, 999, 'VSW11', 'vsw11-pe_main.jpg', '78.0000', now(), '1.00', 1, 1, 0), (104, 999, 'VA07', 'va07-bc_main.jpg', '43.0000', now(), '1.00', 1, 1, 0), (105, 999, 'VA08', 'va08-br_main.jpg', '49.0000', now(), '1.00', 1, 1, 0), (106, 999, 'VA09', 'va09-br_main.jpg', '39.0000', now(), '1.00', 1, 1, 0); INSERT INTO `products_attributes` (`products_attributes_id`, `products_id`, `options_id`, `options_values_id`, `options_values_price`, `price_prefix`) VALUES (1, 64, 1, 1, '0.0000', '+'), (2, 64, 1, 2, '0.0000', '+'), (3, 64, 1, 3, '0.0000', '+'), (4, 64, 1, 4, '0.0000', '+'), (5, 64, 2, 15, '0.0000', '+'), (6, 64, 2, 14, '0.0000', '+'), (7, 64, 2, 13, '0.0000', '+'), (8, 64, 2, 12, '0.0000', '+'), (9, 33, 1, 2, '0.0000', '+'), (10, 33, 1, 3, '0.0000', '+'), (11, 33, 1, 1, '0.0000', '+'), (12, 33, 1, 4, '0.0000', '+'), (13, 33, 2, 15, '0.0000', '+'), (14, 33, 2, 14, '0.0000', '+'), (15, 33, 2, 13, '0.0000', '+'), (16, 33, 2, 12, '0.0000', '+'), (17, 34, 1, 3, '0.0000', '+'), (18, 34, 1, 6, '0.0000', '+'), (19, 34, 1, 5, '0.0000', '+'), (20, 34, 1, 4, '0.0000', '+'), (21, 34, 2, 15, '0.0000', '+'), (22, 34, 2, 14, '0.0000', '+'), (23, 34, 2, 13, '0.0000', '+'), (24, 34, 2, 12, '0.0000', '+'), (25, 35, 1, 2, '0.0000', '+'), (26, 35, 1, 7, '0.0000', '+'), (27, 35, 1, 6, '0.0000', '+'), (28, 35, 1, 1, '0.0000', '+'), (29, 35, 2, 15, '0.0000', '+'), (30, 35, 2, 14, '0.0000', '+'), (31, 35, 2, 13, '0.0000', '+'), (32, 35, 2, 12, '0.0000', '+'), (33, 36, 1, 2, '0.0000', '+'), (34, 36, 1, 3, '0.0000', '+'), (35, 36, 1, 1, '0.0000', '+'), (36, 36, 1, 4, '0.0000', '+'), (37, 36, 2, 15, '0.0000', '+'), (38, 36, 2, 14, '0.0000', '+'), (39, 36, 2, 13, '0.0000', '+'), (40, 36, 2, 12, '0.0000', '+'), (41, 37, 1, 7, '0.0000', '+'), (42, 37, 1, 3, '0.0000', '+'), (43, 37, 1, 5, '0.0000', '+'), (44, 37, 1, 4, '0.0000', '+'), (45, 37, 2, 15, '0.0000', '+'), (46, 37, 2, 14, '0.0000', '+'), (47, 37, 2, 13, '0.0000', '+'), (48, 37, 2, 12, '0.0000', '+'), (49, 38, 1, 2, '0.0000', '+'), (50, 38, 1, 3, '0.0000', '+'), (51, 38, 1, 1, '0.0000', '+'), (52, 38, 1, 4, '0.0000', '+'), (53, 38, 2, 15, '0.0000', '+'), (54, 38, 2, 14, '0.0000', '+'), (55, 38, 2, 13, '0.0000', '+'), (56, 38, 2, 12, '0.0000', '+'), (57, 39, 1, 3, '0.0000', '+'), (58, 39, 1, 6, '0.0000', '+'), (59, 39, 1, 5, '0.0000', '+'), (60, 39, 1, 4, '0.0000', '+'), (61, 39, 2, 15, '0.0000', '+'), (62, 39, 2, 14, '0.0000', '+'), (63, 39, 2, 13, '0.0000', '+'), (64, 39, 2, 12, '0.0000', '+'), (65, 40, 1, 1, '0.0000', '+'), (66, 40, 1, 6, '0.0000', '+'), (67, 40, 1, 5, '0.0000', '+'), (68, 40, 1, 4, '0.0000', '+'), (69, 40, 2, 15, '0.0000', '+'), (70, 40, 2, 14, '0.0000', '+'), (71, 40, 2, 13, '0.0000', '+'), (72, 40, 2, 12, '0.0000', '+'), (73, 41, 1, 7, '0.0000', '+'), (74, 41, 1, 3, '0.0000', '+'), (75, 41, 1, 5, '0.0000', '+'), (76, 41, 1, 4, '0.0000', '+'), (77, 41, 2, 15, '0.0000', '+'), (78, 41, 2, 14, '0.0000', '+'), (79, 41, 2, 13, '0.0000', '+'), (80, 41, 2, 12, '0.0000', '+'), (81, 42, 1, 3, '0.0000', '+'), (82, 42, 1, 6, '0.0000', '+'), (83, 42, 1, 5, '0.0000', '+'), (84, 42, 1, 4, '0.0000', '+'), (85, 42, 2, 15, '0.0000', '+'), (86, 42, 2, 14, '0.0000', '+'), (87, 42, 2, 13, '0.0000', '+'), (88, 42, 2, 12, '0.0000', '+'), (89, 43, 1, 2, '0.0000', '+'), (90, 43, 1, 3, '0.0000', '+'), (91, 43, 1, 1, '0.0000', '+'), (92, 43, 1, 4, '0.0000', '+'), (93, 43, 2, 15, '0.0000', '+'), (94, 43, 2, 14, '0.0000', '+'), (95, 43, 2, 13, '0.0000', '+'), (96, 43, 2, 12, '0.0000', '+'), (97, 44, 1, 2, '0.0000', '+'), (98, 44, 1, 3, '0.0000', '+'), (99, 44, 1, 1, '0.0000', '+'), (100, 44, 1, 4, '0.0000', '+'), (101, 44, 2, 15, '0.0000', '+'), (102, 44, 2, 14, '0.0000', '+'), (103, 44, 2, 13, '0.0000', '+'), (104, 44, 2, 12, '0.0000', '+'), (105, 45, 1, 2, '0.0000', '+'), (106, 45, 1, 3, '0.0000', '+'), (107, 45, 1, 1, '0.0000', '+'), (108, 45, 1, 4, '0.0000', '+'), (109, 45, 2, 15, '0.0000', '+'), (110, 45, 2, 14, '0.0000', '+'), (111, 45, 2, 13, '0.0000', '+'), (112, 45, 2, 12, '0.0000', '+'), (113, 47, 1, 3, '0.0000', '+'), (114, 47, 1, 6, '0.0000', '+'), (115, 47, 1, 5, '0.0000', '+'), (116, 47, 1, 4, '0.0000', '+'), (117, 47, 2, 15, '0.0000', '+'), (118, 47, 2, 14, '0.0000', '+'), (119, 47, 2, 13, '0.0000', '+'), (120, 47, 2, 12, '0.0000', '+'), (121, 48, 1, 2, '0.0000', '+'), (122, 48, 1, 3, '0.0000', '+'), (123, 48, 1, 5, '0.0000', '+'), (124, 48, 1, 4, '0.0000', '+'), (125, 48, 2, 15, '0.0000', '+'), (126, 48, 2, 14, '0.0000', '+'), (127, 48, 2, 13, '0.0000', '+'), (128, 48, 2, 12, '0.0000', '+'), (129, 49, 1, 2, '0.0000', '+'), (130, 49, 1, 3, '0.0000', '+'), (131, 49, 1, 5, '0.0000', '+'), (132, 49, 1, 4, '0.0000', '+'), (133, 49, 2, 15, '0.0000', '+'), (134, 49, 2, 14, '0.0000', '+'), (135, 49, 2, 13, '0.0000', '+'), (136, 49, 2, 12, '0.0000', '+'), (137, 50, 1, 7, '0.0000', '+'), (138, 50, 1, 3, '0.0000', '+'), (139, 50, 1, 5, '0.0000', '+'), (140, 50, 1, 4, '0.0000', '+'), (141, 50, 2, 15, '0.0000', '+'), (142, 50, 2, 14, '0.0000', '+'), (143, 50, 2, 13, '0.0000', '+'), (144, 50, 2, 12, '0.0000', '+'), (145, 51, 1, 2, '0.0000', '+'), (146, 51, 1, 3, '0.0000', '+'), (147, 51, 1, 1, '0.0000', '+'), (148, 51, 1, 4, '0.0000', '+'), (149, 51, 2, 15, '0.0000', '+'), (150, 51, 2, 14, '0.0000', '+'), (151, 51, 2, 13, '0.0000', '+'), (152, 51, 2, 12, '0.0000', '+'), (153, 52, 1, 2, '0.0000', '+'), (154, 52, 1, 6, '0.0000', '+'), (155, 52, 1, 5, '0.0000', '+'), (156, 52, 1, 4, '0.0000', '+'), (157, 52, 2, 15, '0.0000', '+'), (158, 52, 2, 14, '0.0000', '+'), (159, 52, 2, 13, '0.0000', '+'), (160, 52, 2, 12, '0.0000', '+'), (161, 53, 1, 2, '0.0000', '+'), (162, 53, 1, 3, '0.0000', '+'), (163, 53, 1, 1, '0.0000', '+'), (164, 53, 1, 4, '0.0000', '+'), (165, 53, 2, 15, '0.0000', '+'), (166, 53, 2, 14, '0.0000', '+'), (167, 53, 2, 13, '0.0000', '+'), (168, 53, 2, 12, '0.0000', '+'), (169, 54, 1, 2, '0.0000', '+'), (170, 54, 1, 3, '0.0000', '+'), (171, 54, 1, 5, '0.0000', '+'), (172, 54, 1, 4, '0.0000', '+'), (173, 54, 2, 15, '0.0000', '+'), (174, 54, 2, 14, '0.0000', '+'), (175, 54, 2, 13, '0.0000', '+'), (176, 54, 2, 12, '0.0000', '+'), (177, 55, 1, 2, '0.0000', '+'), (178, 55, 1, 3, '0.0000', '+'), (179, 55, 1, 1, '0.0000', '+'), (180, 55, 1, 4, '0.0000', '+'), (181, 55, 2, 15, '0.0000', '+'), (182, 55, 2, 14, '0.0000', '+'), (183, 55, 2, 13, '0.0000', '+'), (184, 55, 2, 12, '0.0000', '+'), (185, 56, 1, 2, '0.0000', '+'), (186, 56, 1, 3, '0.0000', '+'), (187, 56, 1, 1, '0.0000', '+'), (188, 56, 1, 4, '0.0000', '+'), (189, 56, 2, 15, '0.0000', '+'), (190, 56, 2, 14, '0.0000', '+'), (191, 56, 2, 13, '0.0000', '+'), (192, 56, 2, 12, '0.0000', '+'), (193, 57, 1, 7, '0.0000', '+'), (194, 57, 1, 3, '0.0000', '+'), (195, 57, 1, 5, '0.0000', '+'), (196, 57, 1, 4, '0.0000', '+'), (197, 57, 2, 16, '0.0000', '+'), (198, 57, 2, 17, '0.0000', '+'), (199, 57, 2, 18, '0.0000', '+'), (200, 57, 2, 19, '0.0000', '+'), (201, 57, 2, 20, '0.0000', '+'), (202, 58, 1, 3, '0.0000', '+'), (203, 58, 1, 6, '0.0000', '+'), (204, 58, 1, 5, '0.0000', '+'), (205, 58, 1, 4, '0.0000', '+'), (206, 58, 2, 15, '0.0000', '+'), (207, 58, 2, 14, '0.0000', '+'), (208, 58, 2, 13, '0.0000', '+'), (209, 58, 2, 12, '0.0000', '+'), (210, 59, 1, 2, '0.0000', '+'), (211, 59, 1, 3, '0.0000', '+'), (212, 59, 1, 1, '0.0000', '+'), (213, 59, 1, 4, '0.0000', '+'), (214, 59, 2, 15, '0.0000', '+'), (215, 59, 2, 14, '0.0000', '+'), (216, 59, 2, 13, '0.0000', '+'), (217, 59, 2, 12, '0.0000', '+'), (218, 60, 1, 2, '0.0000', '+'), (219, 60, 1, 3, '0.0000', '+'), (220, 60, 1, 1, '0.0000', '+'), (221, 60, 1, 4, '0.0000', '+'), (222, 60, 2, 15, '0.0000', '+'), (223, 60, 2, 14, '0.0000', '+'), (224, 60, 2, 13, '0.0000', '+'), (225, 60, 2, 12, '0.0000', '+'), (226, 61, 1, 7, '0.0000', '+'), (227, 61, 1, 6, '0.0000', '+'), (228, 61, 1, 5, '0.0000', '+'), (229, 61, 1, 1, '0.0000', '+'), (230, 61, 2, 15, '0.0000', '+'), (231, 61, 2, 14, '0.0000', '+'), (232, 61, 2, 13, '0.0000', '+'), (233, 61, 2, 12, '0.0000', '+'), (234, 62, 1, 2, '0.0000', '+'), (235, 62, 1, 3, '0.0000', '+'), (236, 62, 1, 1, '0.0000', '+'), (237, 62, 1, 4, '0.0000', '+'), (238, 62, 2, 15, '0.0000', '+'), (239, 62, 2, 14, '0.0000', '+'), (240, 62, 2, 13, '0.0000', '+'), (241, 62, 2, 12, '0.0000', '+'), (242, 63, 1, 7, '0.0000', '+'), (243, 63, 1, 6, '0.0000', '+'), (244, 63, 1, 5, '0.0000', '+'), (245, 63, 1, 4, '0.0000', '+'), (246, 63, 2, 15, '0.0000', '+'), (247, 63, 2, 14, '0.0000', '+'), (248, 63, 2, 13, '0.0000', '+'), (249, 63, 2, 12, '0.0000', '+'), (258, 65, 1, 2, '0.0000', '+'), (259, 65, 1, 3, '0.0000', '+'), (260, 65, 1, 1, '0.0000', '+'), (261, 65, 1, 4, '0.0000', '+'), (262, 65, 2, 15, '0.0000', '+'), (263, 65, 2, 14, '0.0000', '+'), (264, 65, 2, 13, '0.0000', '+'), (265, 65, 2, 12, '0.0000', '+'), (266, 66, 1, 2, '0.0000', '+'), (267, 66, 1, 3, '0.0000', '+'), (268, 66, 1, 1, '0.0000', '+'), (269, 66, 1, 4, '0.0000', '+'), (270, 66, 2, 15, '0.0000', '+'), (271, 66, 2, 14, '0.0000', '+'), (272, 66, 2, 13, '0.0000', '+'), (273, 66, 2, 12, '0.0000', '+'), (274, 67, 1, 2, '0.0000', '+'), (275, 67, 1, 3, '0.0000', '+'), (276, 67, 1, 1, '0.0000', '+'), (277, 67, 1, 4, '0.0000', '+'), (278, 67, 2, 15, '0.0000', '+'), (279, 67, 2, 14, '0.0000', '+'), (280, 67, 2, 13, '0.0000', '+'), (281, 67, 2, 12, '0.0000', '+'), (282, 68, 1, 7, '0.0000', '+'), (283, 68, 1, 3, '0.0000', '+'), (284, 68, 1, 5, '0.0000', '+'), (285, 68, 1, 4, '0.0000', '+'), (286, 68, 2, 15, '0.0000', '+'), (287, 68, 2, 14, '0.0000', '+'), (288, 68, 2, 13, '0.0000', '+'), (289, 68, 2, 12, '0.0000', '+'), (290, 69, 1, 7, '0.0000', '+'), (291, 69, 1, 3, '0.0000', '+'), (292, 69, 1, 6, '0.0000', '+'), (293, 69, 1, 4, '0.0000', '+'), (294, 69, 2, 16, '0.0000', '+'), (295, 69, 2, 17, '0.0000', '+'), (296, 69, 2, 18, '0.0000', '+'), (297, 69, 2, 19, '0.0000', '+'), (298, 69, 2, 20, '0.0000', '+'), (299, 70, 1, 2, '0.0000', '+'), (300, 70, 1, 3, '0.0000', '+'), (301, 70, 1, 1, '0.0000', '+'), (302, 70, 1, 4, '0.0000', '+'), (303, 70, 2, 15, '0.0000', '+'), (304, 70, 2, 14, '0.0000', '+'), (305, 70, 2, 13, '0.0000', '+'), (306, 70, 2, 12, '0.0000', '+'), (307, 71, 1, 7, '0.0000', '+'), (308, 71, 1, 3, '0.0000', '+'), (309, 71, 1, 5, '0.0000', '+'), (310, 71, 1, 4, '0.0000', '+'), (311, 71, 2, 15, '0.0000', '+'), (312, 71, 2, 14, '0.0000', '+'), (313, 71, 2, 13, '0.0000', '+'), (314, 71, 2, 12, '0.0000', '+'), (315, 72, 1, 2, '0.0000', '+'), (316, 72, 1, 7, '0.0000', '+'), (317, 72, 1, 3, '0.0000', '+'), (318, 72, 1, 1, '0.0000', '+'), (319, 72, 2, 15, '0.0000', '+'), (320, 72, 2, 14, '0.0000', '+'), (321, 72, 2, 13, '0.0000', '+'), (322, 72, 2, 12, '0.0000', '+'), (323, 73, 1, 7, '0.0000', '+'), (324, 73, 1, 3, '0.0000', '+'), (325, 73, 1, 5, '0.0000', '+'), (326, 73, 1, 4, '0.0000', '+'), (327, 73, 2, 16, '0.0000', '+'), (328, 73, 2, 17, '0.0000', '+'), (329, 73, 2, 18, '0.0000', '+'), (330, 73, 2, 19, '0.0000', '+'), (331, 73, 2, 20, '0.0000', '+'), (332, 74, 1, 3, '0.0000', '+'), (333, 74, 1, 6, '0.0000', '+'), (334, 74, 1, 1, '0.0000', '+'), (335, 74, 1, 4, '0.0000', '+'), (336, 74, 2, 15, '0.0000', '+'), (337, 74, 2, 14, '0.0000', '+'), (338, 74, 2, 13, '0.0000', '+'), (339, 74, 2, 12, '0.0000', '+'), (340, 75, 1, 2, '0.0000', '+'), (341, 75, 1, 7, '0.0000', '+'), (342, 75, 1, 6, '0.0000', '+'), (343, 75, 1, 1, '0.0000', '+'), (344, 75, 2, 15, '0.0000', '+'), (345, 75, 2, 14, '0.0000', '+'), (346, 75, 2, 13, '0.0000', '+'), (347, 75, 2, 12, '0.0000', '+'), (348, 76, 1, 7, '0.0000', '+'), (349, 76, 1, 6, '0.0000', '+'), (350, 76, 1, 5, '0.0000', '+'), (351, 76, 1, 4, '0.0000', '+'), (352, 76, 2, 15, '0.0000', '+'), (353, 76, 2, 14, '0.0000', '+'), (354, 76, 2, 13, '0.0000', '+'), (355, 76, 2, 12, '0.0000', '+'), (356, 77, 1, 2, '0.0000', '+'), (357, 77, 1, 3, '0.0000', '+'), (358, 77, 1, 5, '0.0000', '+'), (359, 77, 1, 4, '0.0000', '+'), (360, 77, 2, 15, '0.0000', '+'), (361, 77, 2, 14, '0.0000', '+'), (362, 77, 2, 13, '0.0000', '+'), (363, 77, 2, 12, '0.0000', '+'), (364, 78, 1, 2, '0.0000', '+'), (365, 78, 1, 3, '0.0000', '+'), (366, 78, 1, 1, '0.0000', '+'), (367, 78, 1, 4, '0.0000', '+'), (368, 78, 2, 15, '0.0000', '+'), (369, 78, 2, 14, '0.0000', '+'), (370, 78, 2, 13, '0.0000', '+'), (371, 78, 2, 12, '0.0000', '+'), (372, 79, 1, 3, '0.0000', '+'), (373, 79, 1, 5, '0.0000', '+'), (374, 79, 1, 1, '0.0000', '+'), (375, 79, 1, 4, '0.0000', '+'), (376, 79, 2, 15, '0.0000', '+'), (377, 79, 2, 14, '0.0000', '+'), (378, 79, 2, 13, '0.0000', '+'), (379, 79, 2, 12, '0.0000', '+'), (380, 80, 1, 7, '0.0000', '+'), (381, 80, 1, 3, '0.0000', '+'), (382, 80, 1, 5, '0.0000', '+'), (383, 80, 1, 4, '0.0000', '+'), (384, 80, 2, 15, '0.0000', '+'), (385, 80, 2, 14, '0.0000', '+'), (386, 80, 2, 13, '0.0000', '+'), (387, 80, 2, 12, '0.0000', '+'), (388, 81, 1, 2, '0.0000', '+'), (389, 81, 1, 7, '0.0000', '+'), (390, 81, 1, 3, '0.0000', '+'), (391, 81, 1, 4, '0.0000', '+'), (392, 81, 2, 15, '0.0000', '+'), (393, 81, 2, 14, '0.0000', '+'), (394, 81, 2, 13, '0.0000', '+'), (395, 81, 2, 12, '0.0000', '+'), (396, 82, 1, 2, '0.0000', '+'), (397, 82, 1, 7, '0.0000', '+'), (398, 82, 1, 6, '0.0000', '+'), (399, 82, 1, 1, '0.0000', '+'), (400, 82, 2, 15, '0.0000', '+'), (401, 82, 2, 14, '0.0000', '+'), (402, 82, 2, 13, '0.0000', '+'), (403, 82, 2, 12, '0.0000', '+'), (404, 83, 1, 3, '0.0000', '+'), (405, 83, 1, 6, '0.0000', '+'), (406, 83, 1, 1, '0.0000', '+'), (407, 83, 1, 4, '0.0000', '+'), (408, 83, 2, 15, '0.0000', '+'), (409, 83, 2, 14, '0.0000', '+'), (410, 83, 2, 13, '0.0000', '+'), (411, 83, 2, 12, '0.0000', '+'), (412, 84, 1, 2, '0.0000', '+'), (413, 84, 1, 3, '0.0000', '+'), (414, 84, 1, 1, '0.0000', '+'), (415, 84, 1, 4, '0.0000', '+'), (416, 84, 2, 15, '0.0000', '+'), (417, 84, 2, 14, '0.0000', '+'), (418, 84, 2, 13, '0.0000', '+'), (419, 84, 2, 12, '0.0000', '+'), (420, 85, 1, 7, '0.0000', '+'), (421, 85, 1, 3, '0.0000', '+'), (422, 85, 1, 1, '0.0000', '+'), (423, 85, 1, 4, '0.0000', '+'), (424, 85, 2, 15, '0.0000', '+'), (425, 85, 2, 14, '0.0000', '+'), (426, 85, 2, 13, '0.0000', '+'), (427, 85, 2, 12, '0.0000', '+'), (428, 86, 1, 7, '0.0000', '+'), (429, 86, 1, 6, '0.0000', '+'), (430, 86, 1, 5, '0.0000', '+'), (431, 86, 1, 1, '0.0000', '+'), (432, 86, 2, 15, '0.0000', '+'), (433, 86, 2, 14, '0.0000', '+'), (434, 86, 2, 13, '0.0000', '+'), (435, 86, 2, 12, '0.0000', '+'), (436, 87, 1, 3, '0.0000', '+'), (437, 87, 1, 5, '0.0000', '+'), (438, 87, 1, 1, '0.0000', '+'), (439, 87, 1, 4, '0.0000', '+'), (440, 87, 2, 15, '0.0000', '+'), (441, 87, 2, 14, '0.0000', '+'), (442, 87, 2, 13, '0.0000', '+'), (443, 87, 2, 12, '0.0000', '+'), (444, 88, 1, 2, '0.0000', '+'), (445, 88, 1, 6, '0.0000', '+'), (446, 88, 1, 3, '0.0000', '+'), (447, 88, 1, 5, '0.0000', '+'), (448, 88, 2, 15, '0.0000', '+'), (449, 88, 2, 14, '0.0000', '+'), (450, 88, 2, 13, '0.0000', '+'), (451, 88, 2, 12, '0.0000', '+'), (452, 89, 1, 2, '0.0000', '+'), (453, 89, 1, 5, '0.0000', '+'), (454, 89, 1, 1, '0.0000', '+'), (455, 89, 1, 4, '0.0000', '+'), (456, 89, 2, 15, '0.0000', '+'), (457, 89, 2, 14, '0.0000', '+'), (458, 89, 2, 13, '0.0000', '+'), (459, 89, 2, 12, '0.0000', '+'), (460, 90, 1, 7, '0.0000', '+'), (461, 90, 1, 3, '0.0000', '+'), (462, 90, 1, 5, '0.0000', '+'), (463, 90, 1, 4, '0.0000', '+'), (464, 90, 2, 15, '0.0000', '+'), (465, 90, 2, 14, '0.0000', '+'), (466, 90, 2, 13, '0.0000', '+'), (467, 90, 2, 12, '0.0000', '+'), (468, 91, 1, 3, '0.0000', '+'), (469, 91, 1, 6, '0.0000', '+'), (470, 91, 1, 5, '0.0000', '+'), (471, 91, 1, 1, '0.0000', '+'), (472, 91, 2, 15, '0.0000', '+'), (473, 91, 2, 14, '0.0000', '+'), (474, 91, 2, 13, '0.0000', '+'), (475, 91, 2, 12, '0.0000', '+'), (476, 92, 1, 1, '0.0000', '+'), (477, 92, 1, 3, '0.0000', '+'), (478, 92, 1, 6, '0.0000', '+'), (479, 92, 1, 5, '0.0000', '+'), (480, 92, 2, 15, '0.0000', '+'), (481, 92, 2, 14, '0.0000', '+'), (482, 92, 2, 13, '0.0000', '+'), (483, 92, 2, 12, '0.0000', '+'), (484, 93, 2, 14, '0.0000', '+'), (485, 93, 2, 13, '0.0000', '+'), (486, 93, 2, 12, '0.0000', '+'), (487, 97, 1, 7, '0.0000', '+'), (488, 97, 1, 6, '0.0000', '+'), (489, 97, 1, 5, '0.0000', '+'), (490, 97, 1, 4, '0.0000', '+'), (491, 97, 2, 15, '0.0000', '+'), (492, 97, 2, 14, '0.0000', '+'), (493, 97, 2, 13, '0.0000', '+'), (494, 97, 2, 12, '0.0000', '+'), (495, 98, 1, 3, '0.0000', '+'), (496, 98, 1, 6, '0.0000', '+'), (497, 98, 1, 5, '0.0000', '+'), (498, 98, 1, 4, '0.0000', '+'), (499, 98, 2, 15, '0.0000', '+'), (500, 98, 2, 14, '0.0000', '+'), (501, 98, 2, 13, '0.0000', '+'), (502, 98, 2, 12, '0.0000', '+'), (503, 99, 1, 2, '0.0000', '+'), (504, 99, 1, 3, '0.0000', '+'), (505, 99, 1, 6, '0.0000', '+'), (506, 99, 1, 1, '0.0000', '+'), (507, 99, 2, 15, '0.0000', '+'), (508, 99, 2, 14, '0.0000', '+'), (509, 99, 2, 13, '0.0000', '+'), (510, 99, 2, 12, '0.0000', '+'), (511, 100, 1, 2, '0.0000', '+'), (512, 100, 1, 7, '0.0000', '+'), (513, 100, 1, 3, '0.0000', '+'), (514, 100, 1, 6, '0.0000', '+'), (515, 100, 2, 15, '0.0000', '+'), (516, 100, 2, 14, '0.0000', '+'), (517, 100, 2, 13, '0.0000', '+'), (518, 100, 2, 12, '0.0000', '+'), (519, 101, 1, 2, '0.0000', '+'), (520, 101, 1, 3, '0.0000', '+'), (521, 101, 1, 1, '0.0000', '+'), (522, 101, 1, 4, '0.0000', '+'), (523, 101, 2, 15, '0.0000', '+'), (524, 101, 2, 14, '0.0000', '+'), (525, 101, 2, 13, '0.0000', '+'), (526, 101, 2, 12, '0.0000', '+'), (527, 102, 1, 2, '0.0000', '+'), (528, 102, 1, 3, '0.0000', '+'), (529, 102, 1, 1, '0.0000', '+'), (530, 102, 1, 4, '0.0000', '+'), (531, 102, 2, 15, '0.0000', '+'), (532, 102, 2, 14, '0.0000', '+'), (533, 102, 2, 13, '0.0000', '+'), (534, 102, 2, 12, '0.0000', '+'), (535, 103, 1, 1, '0.0000', '+'), (536, 103, 1, 3, '0.0000', '+'), (537, 103, 1, 5, '0.0000', '+'), (538, 103, 1, 4, '0.0000', '+'), (539, 103, 2, 15, '0.0000', '+'), (540, 103, 2, 14, '0.0000', '+'), (541, 103, 2, 13, '0.0000', '+'), (542, 103, 2, 12, '0.0000', '+'); INSERT INTO `products_description` (`products_id`, `language_id`, `products_name`, `products_description`) VALUES (3, 1, 'Silver Amor Bangle Set', '<p>Made for mixing &amp; matching, these bangles can be worn simply or with additional bracelets for more advanced accessorizing. </p><ul><li>Set of 4</li><li>7.5\" diameter</li><li>Sterling Silver</li></ul>'), (4, 1, 'Gold Veritas Cuff Set', '<p>Made for mixing &amp; matching, these bangles can be worn simply or with additional bracelets for more advanced accessorizing. </p><ul><li>Set of 2</li><li>6.5\" diameter</li><li>14K gold, onyx, turquoise</li></ul>'), (5, 1, 'Semper Bangle Set', '<p>Made for mixing &amp; matching, these bangles can be worn simply or with additional bracelets for more advanced accessorizing. </p><ul><li>Set of 20</li><li>7\" diameter</li><li>14K gold</li></ul>'), (6, 1, 'Gold Omni Bangle Set', '<p>Made for mixing &amp; matching, these bangles can be worn simply or with additional bracelets for more advanced accessorizing. </p><ul><li>Set of 8</li><li>7\" diameter</li><li>14K gold</li></ul>'), (7, 1, 'Gold Cirque Earrings', '<p>Simple, gold hoop earrings complement every outfit without feeling overstated. </p><ul><li>1.5\" diameter</li><li>14K gold</li><li>Snap-top closure</li></ul>'), (8, 1, 'Silver Cirque Earrings', '<p>Simple, silver hoop earrings complement every outfit without feeling overstated. </p><ul><li>1.5\" diameter</li><li>Silver-plated</li><li>Snap-top closure</li></ul>'), (9, 1, 'Gold Sol Earrings', '<p>Simple, elegant gold stud earrings.</p><ul><li>3/8\" diameter </li><li>18K gold</li><li>Post back</li></ul>'), (10, 1, 'Silver Sol Earrings', '<p>Simple, elegant silver stud earrings. </p><ul><li>3/8\" diameter </li><li>Sterling silver</li><li>Post back</li></ul>'), (11, 1, 'Augusta Necklace', '<p>A medley of brightly colored glass seed beads.</p><ul><li>20\" length</li><li>Silvertone</li><li>Lobster clasp</li></ul>'), (12, 1, 'Carmina Necklace', '<p>A medley of brightly colored glass seed beads.</p><ul><li>20\" length</li><li>Goldtone</li><li>Lobster clasp</li></ul>'), (13, 1, 'Augusta Earrings', '<p>Silver &amp; aqua chandelier earrings.</p><ul><li>2.5\" length</li><li>Sterling silver</li><li>Fish hook style</li></ul>'), (14, 1, 'Carmina Earrings', '<p>Gold &amp; coral chandelier earrings.</p><ul><li>2.5\" length</li><li>18K gold</li><li>Fish hook style</li></ul>'), (33, 1, 'Jillian Top', '<p>The Jillian Top takes a wardrobe essential and kicks it up a notch with soft, heathered material and lace detail. Next time you feel like wearing a t-shirt, grab this instead. Comfort can look this good. </p><p>Features:</p><ul><li>Crewneck</li><li>Capped sleeve</li><li>Sits on the hips</li><li>Longer back hemline</li><li>Machine wash, line dry</li></ul>'), (34, 1, 'Valeria Two-Layer Tank', '<p>The Valeria Tank features two layers of possibility. The loose fit flatters without impacting comfort and the tiered material hangs beautifully. Wear alone or add a belt for a little more definition. </p><p>Features:</p><ul><li>Scoop neck</li><li>Sleeveless</li><li>Sits below the hips</li><li>Two layers</li><li>Machine wash, tumble dry low</li></ul>'), (35, 1, 'Vitalia Top', '<p>The Vitalia Top is all about mixing it up. An interesting mix of cotton &amp rayon materials makes this top hard to pin down. Wear it casual or dress it up. There are no rules here. </p><p>Features:</p><ul><li>V-neck</li><li>Capped sleeve</li><li>Sits on the hips</li><li>Faux wrap detail</li><li>Dry clean recommended</li></ul>'), (36, 1, 'Emilia Cropped Lace Top', '<p>The Emilia Lace Top is made to spice up your wardrobe without making you feel uncomfortable. Gorgeous open lace detail, back buttons, and the fun, cropped length will give you a little extra pep in your step. </p><p>Features:</p><ul><li>Crewneck </li><li>Button down back</li><li>Short sleeve</li><li>Cropped</li><li>Dry clean recommended</li></ul>'), (37, 1, 'Aurora Sleeveless Blouse', '<p>The Aurora Blouse is ready to go wherever you are. This top is wrinkle resistant, so it packs beautifully and hangs perfectly. Tabbed detail at the shoulders and dual pockets offer just the right amount of thoughtful design. </p><p>Features:</p><ul><li>Button down</li><li>Sleeveless </li><li>Falls below the hips</li><li>Shoulder tabs, pockets</li><li>Dry clean recommended</li></ul>'), (38, 1, 'Serena Blouse', '<p>The Serena Blouse is made with a silk rayon blend that will keep you feeling light and airy. Resistant to watermarks, you can feel confident in any temperature while looking flawless. </p><p>Features:</p><ul><li>Button down</li><li>Sleeveless </li><li>Sits at the hips</li><li>Spread collar</li><li>Dry clean recommended</li></ul>'), (39, 1, 'Isabella Sleeveless Blouse', '<p>The Isabella Blouse is a wonderful balance of grace and comfort. The attention to detail is notable, from the open design along the shoulders, to the perfectly placed seams, to the peplum waist. </p><p>Features:</p><ul><li>Button down</li><li>Sleeveless </li><li>Sits at the waist</li><li>Open design along the shoulders</li><li>Dry clean recommended</li></ul>'), (40, 1, 'Cora Open-Back Tank', '<p>The Cora Tank carries intrigue both coming and going. The delicate lace panel in the front, the slight a-line form, and the open back design make this top a target for compliments galore. </p><p>Features:</p><ul><li>Crewneck</li><li>Sleeveless </li><li>Sits at the waist</li><li>Front lace panel and open back</li><li>Hand wash, line dry</li></ul>'), (41, 1, 'Anna Draped Top', '<p>The Anna Draped Top hangs beautifully in the all the right places. The soft, sheer material offers graceful lines and seamless movement. Back lace detail and tie at the neckline complete the look. </p><p>Features:</p><ul><li>Draped neckline</li><li>Capped sleeves</li><li>Hits at the hips</li><li>Lace detail back &amp; tie neckline</li><li>Hand wash, line dry</li></ul>'), (42, 1, 'Susanna Draped Tank', '<p>The Susana Draped Tank is made of heathered jersey material and flaunts a draped, wrapover front. This sleeveless top doesn\'t sacrifice comfort for style. Yes, you can have it all. </p><p>Features:</p><ul><li>V-neck</li><li>Sleeveless</li><li>Hits at the waist</li><li>Wrapover front</li><li>Machine wash, line dry</li></ul>'), (43, 1, 'Chloe Silk Shell', '<p>The Chloe Shell is stunning on its own or as a layering piece. Made with soft, silk blend fabric, this top is flattering on every body type. The cap sleeves and detailed stitching offer just the right amount of femininity. </p><p>Features:</p><ul><li>Scoop neck</li><li>Capped sleeve</li><li>Hits below the waist</li><li>Stitching detail</li><li>Dry clean only </li></ul>'), (44, 1, 'Penelope Peasant Blouse', '<p>The Penelope Peasant Blouse will quickly become one of the most versatile pieces of your wardrobe. The classic sheer gauze material is a nod to this timeless style. Accessorize and make it your own.</p><p>Features:</p><ul><li>Crewneck</li><li>Long sleeve</li><li>Hits below the waist</li><li>Keyhole detail</li><li>Machine, line dry</li></ul>'), (45, 1, 'Lorena Cardigan', '<p>The Lorena Cardigan is a simple way to dress up any outfit while remaining comfortable. Wide sleeves provide ease of movement while the back offers beautiful inset floral detail. </p><p>Features:</p><ul><li>Open front</li><li>Short sleeve</li><li>Hits low on the hips</li><li>Back inset detail</li><li>Hand wash, line dry</li></ul>'), (47, 1, 'Corina Lace-Back Sweater', '<p>The Corina Sweater is delicate and sweet with a hint of mystique. This heathered knit beauty has an inset lace back that is slightly unexpected. You\'ll be looking for opportunities to walk away. </p><p>Features:</p><ul><li>Crewneck</li><li>3/4 sleeve</li><li>Cropped</li><li>Back lace detail</li><li>Dry clean only</li></ul>'), (48, 1, 'Helena Cardigan', '<p>The Helena Cardigan is understated yet elegant. Great for keeping you warm without feeling constricted. The soft lines of this sweater provide endless comfort while keeping you looking flawless. </p><p>Features:</p><ul><li>Open front</li><li>Long sleeve</li><li>Sits below the hip</li><li>Loose fit</li><li>Machine wash, line dry</li></ul>'), (49, 1, 'Roxana Cropped Sweater', '<p>The Roxana Sweater will perk your closet right up. This bold boucle top is the right choice for those days when you\'re seeking a sunny disposition. Soft fabric and loose fit will keep you feeling good. </p><p>Features:</p><ul><li>Crewneck</li><li>Long sleeve</li><li>Cropped</li><li>Loose fit</li><li>Machine wash, line dry</li></ul>'), (50, 1, 'Brigid Boucle Cardigan', '<p>The Brigid Cardigan brings texture and richness to any outfit. Perfect over a tank and jeans or your favorite sundress. This sweater can be dressed up or down depending on your mood. </p><p>Features:</p><ul><li>Open front</li><li>3/4 sleeve</li><li>Sit below the hip</li><li>Versatile</li><li>Machine wash, line dry</li></ul>'), (51, 1, 'Sabina Hooded Cardigan', '<p>The Sabina Cardigan is perfect for those days when you want to look good without a whole lot of effort. Breathable cotton combined with a hood and pockets will have you looking perfectly put together.</p><p>Features:</p><ul><li>Open front</li><li>Long sleeve</li><li>Hits just below the waist</li><li>Hooded, side pockets</li><li>Dry clean recommended</li></ul>'), (52, 1, 'Hanna Sweater', '<p>The Hanna Sweater will make you feel like you\'re sitting overlooking the ocean, no matter where you are. This sheer cotton sweater is fabulous over a tank top and feels perfectly beachy. </p><p>Features:</p><ul><li>Crewneck</li><li>3/4 sleeve</li><li>Hits just below the waist</li><li>Great for layering</li><li>Machine wash, line dry</li></ul>'), (53, 1, 'Rosalina Cardigan', '<p>The Rosalina Cardigan is the definition of easy going. This lightweight cotton sweater has a fun little swing and just enough extra material to wrap it around you a little tighter when the temperature requires. </p><p>Features:</p><ul><li>Open front </li><li>Long sleeve</li><li>Hits below the hip</li><li>Great with a belt</li><li>Machine wash, line dry</li></ul>'), (54, 1, 'Phoebe Cardigan', '<p>The Phoebe Cardigan is a great addition to any tank dress. Perfect to have for those warm days that turn into chilly nights. Keeps arms warm without hiding what you\'re wearing underneath.</p><p>Features:</p><ul><li>Open front </li><li>Short sleeve</li><li>Hits mid-thigh</li><li>Great with a belt</li><li>Machine wash, line dry</li></ul>'), (55, 1, 'Juno Sweater', '<p>The Juno Sweater is a good time waiting to happen. This fun &amp; functional two-layer cotton sweater combines subtlety with a hint of bold personality. Pair with shorts or jeans and get outside.</p><p>Features:</p><ul><li>Two layer open weave</li><li>Long sleeve</li><li>Sits on the hip</li><li>Fitted </li><li>Machine wash, line dry</li></ul>'), (56, 1, 'Carina Cardigan', '<p>The Carina Cardigan is the perfect complement to a breezy summer evening. The loose knit, lightweight cotton fabric moves with you and provides just the right amount of breathable warmth.</p><p>Features:</p><ul><li>Open front </li><li>3/4 sleeve</li><li>Tapered to hip </li><li>Specked design </li><li>Dry clean recommended </li></ul>'), (57, 1, 'Isadora Skirt', '<p>The Isadora Skirt has just the right amount of flounce to make it playful and yet still chic. Lovely wrap detail and draped layering in the front add a bit of sophistication to the lush print. </p><p>Features:</p><ul><li>Side zip</li><li>Length: 17\"</li><li>Hits mid thigh</li><li>Set on waist</li><li>Dry clean recommended</li></ul>'), (58, 1, 'Pomona Skirt', '<p>The Pomona Skirt lets you appear slightly wild, while still maintaining your composure. You don\'t need to do much in seeking a companion for this skirt. A simple tank or tee will do. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 43\"</li><li>Hits below ankle</li><li>Elastic waistband</li><li>Machine wash, line dry</li></ul>'), (59, 1, 'Samara Skirt', '<p>The Samara Skirt has a nice fit and flare feel to it. It hugs closely down through the hips and gracefully extends down past the ankles. The jersey material and complex pattern compliment every figure. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 43\"</li><li>Hits below ankle</li><li>Elastic waistband</li><li>Machine wash, line dry</li></ul>'), (60, 1, 'Iona Skirt', '<p>The Iona Skirt is quite unique. Its lines are generous and flattering, without hugging the body too close. Pleating in the front as well as two long walking slits make this skirt extremely easy to wear. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 42\"</li><li>Hits below ankle</li><li>Front walking slits</li><li>Machine wash, line dry</li></ul>'), (61, 1, 'Tatiana Skirt', '<p>The Tatiana Skirt is just plain flirty and fun. The energetic print and short length demand attention no matter what the occasion. Strap on a pair of wedges and your legs will look amazing!</p><p>Features:</p><ul><li>Pull on</li><li>Length: 17\"</li><li>Hits mid thigh</li><li>Elastic waist</li><li>Hand wash, line dry</li></ul>'), (62, 1, 'Davina Skirt', '<p>The Davina Skirt is sure to warrant a second glance. While the sheer top layer falls somewhere around the ankles, the interior lining falls above the knee. Add in a long side slit and things just got a lot more interesting. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 42\"</li><li>Hits below the ankle</li><li>Short lining, sheer overlay</li><li>Hand wash, line dry</li></ul>'), (63, 1, 'Leona Skirt', '<p>The Leona Skirt hugs you in all the right places. The rouched waistband adds a little formality to this otherwise casual skirt. Its a-line shape keeps things breezy while still looking put together. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 44\"</li><li>Hits below the ankle</li><li>Thick, rouched waistband</li><li>Hand wash, line dry</li></ul>'), (64, 1, 'Agatha Skirt', '<p>The Agatha Skirt has a large circumference that lends itself to all sorts of drama. Take it out for a spin. The stretchy, cozy fabric is ready for all kinds of adventure. Just be prepared for whatever lies in store. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 43\"</li><li>Hits below the ankle</li><li>Thick waistband</li><li>Machine wash, line dry</li></ul>'), (65, 1, 'Daria Crochet Skirt', '<p>The Daria Crochet Skirt has a genuine air of innocence about it. From its modest lines to the delicate crochet detail, this skirt just feels fresh. Wear with a soft tee or tank and be on your way. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 26\"</li><li>Hits below the knee</li><li>Roll down waist</li><li>Hand wash, line dry</li></ul>'), (66, 1, 'Johanna Skirt', '<p>The Johanna Skirt is probably the last skirt you\'ll ever need. Soft jersey fabric makes this the quintessential everyday skirt. Wear it to work. Wear it to the beach. Ditch the sweats and wear it grocery shopping. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 42\"</li><li>Hits below the ankle</li><li>Thick waistband</li><li>Machine wash, line dry</li></ul>'), (67, 1, 'Rowena Skirt', '<p>The Rowena Skirt will have you twirling a little more than usual. Inset kick panels give this skirt more swing than your typical maxi skirt. Try it. We guarantee you\'ll find more reasons to dance. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 43\"</li><li>Hits below the ankle</li><li>Kick pleats</li><li>Machine wash, line dry</li></ul>'), (68, 1, 'Bellona Skirt', '<p>The Bellona Skirt features stretchy, heathered material that moves right along with you. The a-line cut allows for long, easy strides while strategically placed external seams provide texture and contour. </p><p>Features:</p><ul><li>Pull on</li><li>Length: 44\"</li><li>Hits below the ankle</li><li>Roll down waist</li><li>Machine wash, line dry</li></ul>'), (69, 1, 'Liana Lace Shorts', '<p>The Liana Lace Shorts are a juxtaposition of new sophistication and classic style. The lace overlay brings back an elegant ornament of femininity without feeling formal or stodgy. </p><p>Features:</p><ul><li>Set on waist</li><li>Zip fly</li><li>Sit just below the waist</li><li>4\" inseam</li><li>Machine wash, machine dry</li></ul>'), (70, 1, 'Amara Crochet Shorts', '<p>The Amara Crochet Shorts are just…wow. Rows of varying crochet patterns cover a complementary linen short. These shorts are overflowing with hand-stitched details that will garner attention (the good kind). </p><p>Features:</p><ul><li>Set on waist</li><li>Side zip</li><li>Sit just below the waist</li><li>3\" inseam</li><li>Hand wash, line dry</li></ul>'), (71, 1, 'Portia Shorts', '<p>The Portia Shorts take the classic combo of black and white and add the contemporary edge of a dress short. Feminine scalloped edges finish these shorts and make them truly elegant. </p><p>Features:</p><ul><li>Elastic drawstring waist </li><li>Scalloped edges</li><li>Sit just below the waist</li><li>3\" inseam</li><li>Hand wash, line dry</li></ul>'), (72, 1, 'Lenora Crochet Shorts', '<p>The Lenora Crochet Shorts are perfect for those days when the weather dictates your wardrobe options. The good news is you can keep cool and still look good. These cotton shorts have got you covered. </p><p>Features:</p><ul><li>Elastic waist </li><li>Drawstring waist</li><li>Sit just below the waist</li><li>4\" inseam</li><li>Hand wash, line dry</li></ul>'), (73, 1, 'Bella Eyelet Capris', '<p>The Bella Eyelet Capris are a reminder of simpler days. Pair these with a vibrant top and you\'re off for whatever the day holds in store. Prepare yourself for thoughtful design and impeccable seam placement.</p><p>Features:</p><ul><li>Set on waist</li><li>Zip fly</li><li>Sit just below the waist</li><li>26\" inseam</li><li>Machine wash, machine dry</li></ul>'), (74, 1, 'Fauna Palazzo Pants', '<p>The Fauna Palazzo Pants are not for the weak of heart. They are a bold fashion statement, and demand a personality to match. These sheer pants will be the life of the party, with or without you. </p><p>Features:</p><ul><li>Elastic waist</li><li>Tie waistband</li><li>Cotton hot pants lining</li><li>32\" inseam</li><li>Hand wash, line dry</li></ul>'), (75, 1, 'Calista Linen Pants', '<p>The Calista Linen Pants are subdued yet classic. Your closet will welcome these versatile additions. Forget everything you know about linen, because things are about to get interesting. </p><p>Features:</p><ul><li>Cotton waistband</li><li>Drawstring waist</li><li>Sits just below the waist</li><li>31\" inseam</li><li>Machine wash, line dry</li></ul>'), (76, 1, 'Honora Wide Leg Pants', '<p>The Honora Wide Leg Pants definitely hold their own when it comes to standing out from the crowd. These pants feature a unique design and a varying color palette to make pairing a snap.</p><p>Features:</p><ul><li>Elastic waistband</li><li>Drawstring waist</li><li>Sits just below the waist</li><li>31\" inseam</li><li>Machine wash, line dry</li></ul>'), (77, 1, 'Clara Wide Leg Pants', '<p>Slip on the Clara Wide Leg Pants and you\'ll immediately begin to feel something like an ocean breeze sweep over you. These pants are wrinkle-resistant and easy going, just like you. </p><p>Features:</p><ul><li>Cotton fold-down waistband</li><li>Wrinkle-resistant linen</li><li>Sits just below the waist</li><li>32\" inseam</li><li>Hand wash, line dry</li></ul>'), (78, 1, 'Camilla Palazzo Pants', '<p>The Camilla Palazzo Pants are a toss up when it comes to fashion or function. And really it doesn\'t matter because you\'ll love them for both. They carry amazing detail without the need for structure. </p><p>Features:</p><ul><li>Elastic waistband</li><li>Pull on</li><li>Sits at the waist</li><li>32\" inseam</li><li>Machine wash, line dry</li></ul>'), (79, 1, 'Gloria Palazzo Pants', '<p>The Gloria Palazzo Pants are pretty much the best pants ever. Dress them up or dress them down. Throw them on in lieu of a skirt and feel sweet freedom from the constraints of regular pants. </p><p>Features:</p><ul><li>Elastic waistband</li><li>Pull on</li><li>Sits at the waist</li><li>32\" inseam</li><li>Machine wash, line dry</li></ul>'), (80, 1, 'Selena Pants', '<p>The Selena Pants are one of the more form-fitting pieces in the Venia collection. But don\'t be fooled by their appearance. These gems are made with soft pima cotton and just the right amount of stretch.</p><p>Features:</p><ul><li>Cotton waistband</li><li>Drawstring waist</li><li>Sits just below waist</li><li>31\" inseam</li><li>Machine wash, line dry</li></ul>'), (81, 1, 'Petra Sundress', '<p>The Petra Sundress strikes a delightful balance between fun and functional. The easy style of this dress lends itself to relaxing and having a good time. Put your hands in the pockets and just chill. </p><p>Features:</p><ul><li>V-neck</li><li>Capped sleeve</li><li>Hits above the knee</li><li>Keyhole back, side pockets</li><li>Hand wash, line dry</li></ul>'), (82, 1, 'Athena Tank Dress', '<p>The Athena Tank Dress offers a high level of structure &amp details without sacrificing comfort. The collar and front pocket accents paired with pleating detail give a polished look with little effort. </p><p>Features:</p><ul><li>Crewneck</li><li>Sleeveless</li><li>Hits above the knee</li><li>Pleated design</li><li>Dry clean only</li></ul>'), (83, 1, 'Claudia Crochet Dress', '<p>The Claudia Dress is made to be paired with your favorite wardrobe basics. The sheer cotton material is perfect over a tank top and a pair of leggings. Gorgeous crochet details complete the look. </p><p>Features:</p><ul><li>Scoop neck</li><li>Short sleeves</li><li>Hits above the knee</li><li>Crochet details</li><li>Hand wash, line dry</li></ul>'), (84, 1, 'Alexia Maxi Dress', '<p>The Alexia Maxi Dress laughs at the notion that horizontal stripes are a no-no. The pattern in this dress creates a wonderful slimming effect. Add in the exceptionally soft fabric and it\'s downright irresistible. </p><p>Features:</p><ul><li>Scoop neck</li><li>Capped sleeves</li><li>Hits at the ankle</li><li>Front pocket</li><li>Machine wash, line dry</li></ul>'), (85, 1, 'Valentina Tank Dress', '<p>The Valentina Tank Dress has lines placed in all the right places. What this freeform dress lacks in structure it makes up in exceptional design and composition. Wash &amp; wear care is a bonus. </p><p>Features:</p><ul><li>Scoop neck</li><li>Piping around the neckline &amp; arms</li><li>Hits at the ankle</li><li>Elastic waist</li><li>Machine wash, line dry</li></ul>'), (86, 1, 'Paulina Draped Tank Dress', '<p>The Paulina Tank Dress has the potential to replace your favorite LBD. This dress is chic yet classic, with the flexibility to dress up its delicate draping. No one needs to know you\'re incredibly comfortable. </p><p>Features:</p><ul><li>Draped scoop neck</li><li>Lined</li><li>Hits at the knee</li><li>Elastic waist</li><li>Machine wash, line dry</li></ul>'), (87, 1, 'Flora Tank Dress', '<p>The Flora Tank Dress is soft to the touch, featuring a sheer, crushed velvet overlay that adds texture without heat. The vertical pattern of the design elegantly slims and camouflages. </p><p>Features:</p><ul><li>Scoop neck</li><li>Two layers</li><li>Hits above the knee</li><li>Elastic waist</li><li>Dry clean only</li></ul>'), (88, 1, 'Veronica Maxi Dress', '<p>The Veronica Maxi Dress is literally a tall drink of water. Perfect for those days when you\'d rather be sitting on the beach. This dress will keep you feeling cool on the even the hottest days. </p><p>Features:</p><ul><li>Scoop neck</li><li>Knot racerback</li><li>Hits at the ankles</li><li>Elastic waist</li><li>Machine wash, line dry</li></ul>'), (89, 1, 'Felicia Maxi Dress', '<p>The Felicia Maxi Dress is your go-to on the days when you don\'t feel like wearing anything at all. This dress is lightweight without being see-through, and forgiving exactly where you need it to be. </p><p>Features:</p><ul><li>Scoop neck</li><li>Spaghetti straps</li><li>Hits below the ankles</li><li>Elastic waist</li><li>Machine wash, line dry</li></ul>'), (90, 1, 'Karena Halter Dress', '<p>The Karena Halter Dress loves to be the center of attention. The jersey material of this dress resists wrinkles, and hangs beautifully in all the right places. It\'s perfect for a long day of sun &amp; fun. </p><p>Features:</p><ul><li>Halter top</li><li>Open back, neck tie</li><li>Hits below the knee</li><li>Longer back hemline</li><li>Machine wash, line dry</li></ul>'), (91, 1, 'Candace Dress', '<p>The Candace dress is the perfect escape for the days when you just can\'t bear the thought of wearing pants. From the serene pattern of the fabric to the incredibly soft material, everything about this dress says “ahhhhh.\"</p><p>Features:</p><ul><li>Deep v-neck</li><li>Draped short sleeves</li><li>Hits below the knee</li><li>Front &amp; back ties</li><li>Machine wash, line dry</li></ul>'), (92, 1, 'Angelina Tank Dress', '<p>The Angelina Tank Dress is simple yet sophisticated. This dress can be thrown over a swimsuit for last minute lunch plans or belted for dinner on the patio. The high-low hemline gives it the perfect amount of swing. </p><p>Features:</p><ul><li>Scoopneck</li><li>Sleeveless</li><li>Hits below the knee</li><li>Longer back hemline</li><li>Machine wash, tumble dry low</li></ul>'), (93, 1, 'Stretch Belt With Leather Clasp', '<ul><li>S: 28\" L; M: 30\" L; L: 32\" L</li><li>2\" W</li><li>Cotton, leather</li><li>Fold over front clasp</li><li>Wipe clean</li></ul>'), (97, 1, 'Natalia Scarf', '<p>This is the perfect addition to add a touch of whimsy to your favorite outfit. Oversized for versatility, this scarf will quickly become your new best friend. </p><ul><li>72\" L x 42\" W</li><li>Cotton/Viscose blend</li></ul>'), (98, 1, 'Luna Scarf', '<p>This is the perfect addition to add a touch of whimsy to your favorite outfit. Oversized for versatility, this scarf will quickly become your new best friend. </p><ul><li>72\" L x 42\" W</li><li>Cotton/Viscose blend</li></ul>'), (99, 1, 'Antonia Infinity Scarf', '<p>Made of super soft pima cotton, this lightweight scarf is laid out in a chic, continuous loop. Double it or drape it to create the perfect embellishment to any ensemble.</p><ul><li>58\" L x 32\" W</li><li>Cotton/Viscose blend</li></ul>'), (100, 1, 'Ombre Infinity Scarf', '<p>Made of super soft pima cotton, this lightweight scarf is laid out in a chic, continuous loop. Double it or drape it to create the perfect embellishment to any ensemble.</p><ul><li>58\" L x 32\" W</li><li>Cotton/Viscose blend</li></ul>'), (101, 1, 'Carola Infinity Scarf', '<p>Made of super soft pima cotton, this lightweight scarf is laid out in a chic, continuous loop. Double it or drape it to create the perfect embellishment to any ensemble.</p><ul><li>58\" L x 32\" W</li><li>Cotton/Viscose blend</li></ul>'), (102, 1, 'Dulcea Infinity Scarf', '<p>Made of super soft pima cotton, this lightweight scarf is laid out in a chic, continuous loop. Double it or drape it to create the perfect embellishment to any ensemble.</p><ul><li>58\" L x 32\" W</li><li>Cotton/Viscose blend</li></ul>'), (103, 1, 'Echo Sweater', '<p>The Echo Sweater is sure to become your favorite weekend staple. Soft material and easy fit make it the perfect option for reading a book on the deck, or grabbing a cup of coffee with a friend. </p><p>Features:</p><ul><li>Crewneck</li><li>3/4 sleeve</li><li>Sits below waist</li><li>Two front pockets</li><li>Machine wash, line dry</li></ul>'), (104, 1, 'Laser Cut Stretch Belt', '<ul><li>S: 28\" L; M: 30\" L; L: 32\" L</li><li>4\" W</li><li>Leather, elastic</li><li>Rounded metal buckle</li><li>Wipe clean</li></ul>'), (105, 1, 'Thick Leather Braided Belt', '<ul><li googl=\"true\">S: 28\" L; M: 30\" L; L: 32\" L</li><li>3\" W</li><li>Leather, elastic</li><li>Rounded metal buckle</li><li>Wipe clean</li></ul>'), (106, 1, 'Thin Leather Braided Belt', '<ul><li googl=\"true\">S: 28\" L; M: 30\" L; L: 32\" L</li><li>1\" W</li><li>Leather, elastic</li><li>Rounded metal buckle</li><li>Wipe clean</li></ul>'); INSERT INTO `products_images` (`id`, `products_id`, `image`, `htmlcontent`, `sort_order`) VALUES (1, 102, 'va01-rn_main.jpg', NULL, 0), (2, 102, 'va01-pe_alt.jpg', NULL, 0), (3, 102, 'va01-kh_main.jpg', NULL, 0), (4, 102, 'va01-ll_main.jpg', NULL, 0), (5, 101, 'va02-pe_alt.jpg', NULL, 0), (6, 101, 'va02-kh_main.jpg', NULL, 0), (7, 101, 'va02-ll_main.jpg', NULL, 0), (8, 101, 'va02-rn_main.jpg', NULL, 0), (9, 100, 'va03-ly_alt.jpg', NULL, 0), (10, 100, 'va03-kh_main.jpg', NULL, 0), (11, 100, 'va03-la_main.jpg', NULL, 0), (12, 100, 'va03-ll_main.jpg', NULL, 0), (13, 99, 'va04-pe_alt.jpg', NULL, 0), (14, 99, 'va04-kh_main.jpg', NULL, 0), (15, 99, 'va04-ly_main.jpg', NULL, 0), (16, 99, 'va04-pe_main.jpg', NULL, 0), (17, 98, 'va05-ll_alt.jpg', NULL, 0), (18, 98, 'va05-ly_main.jpg', NULL, 0), (19, 98, 'va05-mt_main.jpg', NULL, 0), (20, 98, 'va05-rn_main.jpg', NULL, 0), (21, 97, 'va06-ly_alt.jpg', NULL, 0), (22, 97, 'va06-la_main.jpg', NULL, 0), (23, 97, 'va06-mt_main.jpg', NULL, 0), (24, 97, 'va06-rn_main.jpg', NULL, 0), (25, 14, 'va11-sg_alt.jpg', '', 1), (27, 12, 'va13-sg_alt.jpg', '', 1), (29, 11, 'va14-ts_alt.jpg', '', 1), (30, 10, 'va15-si_alt.jpg', '', 1), (32, 9, 'va16-go_alt.jpg', '', 1), (34, 8, 'va17-si_alt.jpg', '', 1), (35, 7, 'va18-go_alt.jpg', '', 1), (36, 6, 'va19-go_alt.jpg', '', 1), (38, 5, 'va20-gb_alt.jpg', '', 1), (40, 4, 'va21-gbt_alt.jpg', '', 1), (41, 3, 'va22-si_alt.jpg', '', 1), (43, 92, 'vd01-ll_alt.jpg', '', 1), (44, 92, 'vd01-ll_back.jpg', '', 2), (45, 92, 'vd01-ly_main.jpg', '', 3), (46, 92, 'vd01-mt_main.jpg', '', 4), (47, 92, 'vd01-pe_main.jpg', '', 5), (48, 91, 'vd02-ll_alt.jpg', '', 1), (49, 91, 'vd02-ll_back.jpg', '', 2), (50, 91, 'vd02-ly_main.jpg', '', 3), (51, 91, 'vd02-mt_main.jpg', '', 4), (52, 91, 'vd02-pe_main.jpg', '', 5), (53, 90, 'vd03-mt_alt.jpg', '', 1), (54, 90, 'vd03-mt_back.jpg', '', 2), (55, 90, 'vd03-la_main.jpg', '', 3), (56, 90, 'vd03-ll_main.jpg', '', 4), (57, 90, 'vd03-rn_main.jpg', '', 5), (58, 89, 'vd04-pe_back.jpg', '', 1), (60, 89, 'vd04-kh_main.jpg', '', 2), (61, 89, 'vd04-mt_main.jpg', '', 3), (62, 89, 'vd04-rn_main.jpg', '', 4), (63, 88, 'vd05-ly_alt.jpg', '', 1), (64, 88, 'vd05-ly_back.jpg', '', 2), (65, 88, 'vd05-kh_main.jpg', '', 3), (66, 88, 'vd05-ll_main.jpg', '', 4), (67, 88, 'vd05-mt_main.jpg', '', 5), (68, 87, 'vd06-mt_alt.jpg', '', 1), (69, 87, 'vd06-mt_back.jpg', '', 2), (71, 87, 'vd06-ll_main.jpg', '', 3), (72, 87, 'vd06-pe_main.jpg', '', 4), (73, 87, 'vd06-rn_main.jpg', '', 5), (74, 86, 'vd07-pe_back.jpg', '', 1), (75, 86, 'vd07-la_main.jpg', '', 2), (76, 86, 'vd07-ly_main.jpg', '', 3), (77, 86, 'vd07-mt_main.jpg', '', 4), (78, 85, 'vd08-ll_back.jpg', '', 1), (79, 85, 'vd08-la_main.jpg', '', 2), (80, 85, 'vd08-pe_main.jpg', '', 3), (81, 85, 'vd08-rn_main.jpg', '', 4), (82, 84, 'vd09-pe_alt.jpg', '', 1), (83, 84, 'vd09-pe_back.jpg', '', 2), (84, 84, 'vd09-kh_main.jpg', '', 3), (85, 84, 'vd09-ll_main.jpg', '', 4), (86, 84, 'vd09-rn_main.jpg', '', 5), (87, 83, 'vd10-ly_alt.jpg', '', 1), (88, 83, 'vd10-ly_back.jpg', '', 2), (89, 83, 'vd10-ll_main.jpg', '', 3), (90, 83, 'vd10-pe_main.jpg', '', 4), (91, 83, 'vd10-rn_main.jpg', '', 5), (92, 81, 'vd12-rn_back.jpg', '', 1), (93, 81, 'vd12-kh_main.jpg', '', 2), (94, 81, 'vd12-la_main.jpg', '', 3), (95, 81, 'vd12-ll_main.jpg', '', 4), (96, 80, 'vp01-ll_alt.jpg', NULL, 0), (97, 80, 'vp01-ll_back.jpg', NULL, 0), (98, 80, 'vp01-la_main.jpg', NULL, 0), (99, 80, 'vp01-mt_main.jpg', NULL, 0), (100, 80, 'vp01-rn_main.jpg', NULL, 0), (101, 79, 'vp02-pe_alt.jpg', NULL, 0), (102, 79, 'vp02-pe_back.jpg', NULL, 0), (103, 79, 'vp02-ll_main.jpg', NULL, 0), (104, 79, 'vp02-mt_main.jpg', NULL, 0), (105, 79, 'vp02-rn_main.jpg', NULL, 0), (106, 78, 'vp03-pe_back.jpg', NULL, 0), (107, 78, 'vp03-kh_main.jpg', NULL, 0), (108, 78, 'vp03-ll_main.jpg', NULL, 0), (109, 78, 'vp03-rn_main.jpg', NULL, 0), (110, 77, 'vp04-ll_back.jpg', NULL, 0), (111, 77, 'vp04_look.jpg', NULL, 0), (112, 77, 'vp04-kh_main.jpg', NULL, 0), (113, 77, 'vp04-mt_main.jpg', NULL, 0), (114, 77, 'vp04-rn_main.jpg', NULL, 0), (115, 76, 'vp05-rn_alt.jpg', NULL, 0), (116, 76, 'vp05-rn_back.jpg', NULL, 0), (117, 76, 'vp05_look.jpg', NULL, 0), (118, 76, 'vp05-la_main.jpg', NULL, 0), (119, 76, 'vp05-ly_main.jpg', NULL, 0), (120, 76, 'vp05-mt_main.jpg', NULL, 0), (121, 75, 'vp06-ly_back.jpg', NULL, 0), (122, 75, 'vp06-kh_main.jpg', NULL, 0), (123, 75, 'vp06-la_main.jpg', NULL, 0), (124, 75, 'vp06-pe_main.jpg', NULL, 0), (125, 74, 'vp07-ll_alt.jpg', NULL, 0), (126, 74, 'vp07-ll_back.jpg', NULL, 0), (127, 74, 'vp07-ly_main.jpg', NULL, 0), (128, 74, 'vp07-pe_main.jpg', NULL, 0), (129, 74, 'vp07-rn_main.jpg', NULL, 0), (130, 73, 'vp08-rn_alt.jpg', NULL, 0), (131, 73, 'vp08-rn_back.jpg', NULL, 0), (132, 73, 'vp08-la_main.jpg', NULL, 0), (133, 73, 'vp08-ll_main.jpg', NULL, 0), (134, 73, 'vp08-mt_main.jpg', NULL, 0), (135, 72, 'vp09-pe_alt.jpg', NULL, 0), (136, 72, 'vp09-pe_back.jpg', NULL, 0), (137, 72, 'vp09-kh_main.jpg', NULL, 0), (138, 72, 'vp09-la_main.jpg', NULL, 0), (139, 72, 'vp09-ll_main.jpg', NULL, 0), (140, 71, 'vp10-la_alt.jpg', NULL, 0), (141, 71, 'vp10-la_back.jpg', NULL, 0), (142, 71, 'vp10-ll_main.jpg', NULL, 0), (143, 71, 'vp10-mt_main.jpg', NULL, 0), (144, 71, 'vp10-rn_main.jpg', NULL, 0), (145, 70, 'vp11-pe_alt.jpg', NULL, 0), (146, 70, 'vp11-pe_back.jpg', NULL, 0), (147, 70, 'vp11-kh_main.jpg', NULL, 0), (148, 70, 'vp11-ll_main.jpg', NULL, 0), (149, 70, 'vp11-rn_main.jpg', NULL, 0), (150, 69, 'vp12-la_alt.jpg', NULL, 0), (151, 69, 'vp12-la_back.jpg', NULL, 0), (152, 69, 'vp12-ll_main.jpg', NULL, 0), (153, 69, 'vp12-ly_main.jpg', NULL, 0), (154, 69, 'vp12-rn_main.jpg', NULL, 0), (155, 68, 'vsk01-la_alt.jpg', NULL, 0), (156, 68, 'vsk01-la_back.jpg', NULL, 0), (157, 68, 'vsk01-ll_main.jpg', NULL, 0), (158, 68, 'vsk01-mt_main.jpg', NULL, 0), (159, 68, 'vsk01-rn_main.jpg', NULL, 0), (160, 67, 'vsk02-ll_alt.jpg', NULL, 0), (161, 67, 'vsk02-ll_back.jpg', NULL, 0), (162, 67, 'vsk02-kh_main.jpg', NULL, 0), (163, 67, 'vsk02-pe_main.jpg', NULL, 0), (164, 67, 'vsk02-rn_main.jpg', NULL, 0), (165, 66, 'vsk03-pe_alt.jpg', NULL, 0), (166, 66, 'vsk03-pe_back.jpg', NULL, 0), (167, 66, 'vsk03-kh_main.jpg', NULL, 0), (168, 66, 'vsk03-ll_main.jpg', NULL, 0), (169, 66, 'vsk03-rn_main.jpg', NULL, 0), (170, 65, 'vsk04-kh_alt.jpg', NULL, 0), (171, 65, 'vsk04-kh_back.jpg', NULL, 0), (172, 65, 'vsk04-ll_main.jpg', NULL, 0), (173, 65, 'vsk04-pe_main.jpg', NULL, 0), (174, 65, 'vsk04-rn_main.jpg', NULL, 0), (175, 64, 'vsk05-pe_alt.jpg', NULL, 0), (176, 64, 'vsk05-pe_back.jpg', NULL, 0), (177, 64, 'vsk05-kh_main.jpg', NULL, 0), (178, 64, 'vsk05-ll_main.jpg', NULL, 0), (179, 64, 'vsk05-rn_main.jpg', NULL, 0), (180, 63, 'vsk06-la_alt.jpg', NULL, 0), (181, 63, 'vsk06-la_back.jpg', NULL, 0), (182, 63, 'vsk06-ly_main.jpg', NULL, 0), (183, 63, 'vsk06-mt_main.jpg', NULL, 0), (184, 63, 'vsk06-rn_main.jpg', NULL, 0), (185, 62, 'vsk07-rn_alt.jpg', NULL, 0), (186, 62, 'vsk07-rn_back.jpg', NULL, 0), (187, 62, 'vsk07-kh_main.jpg', NULL, 0), (188, 62, 'vsk07-ll_main.jpg', NULL, 0), (189, 62, 'vsk07-pe_main.jpg', NULL, 0), (190, 61, 'vsk08-ly_back.jpg', NULL, 0), (191, 61, 'vsk08_look.jpg', NULL, 0), (192, 61, 'vsk08-la_main.jpg', NULL, 0), (193, 61, 'vsk08-mt_main.jpg', NULL, 0), (194, 61, 'vsk08-pe_main.jpg', NULL, 0), (195, 60, 'vsk09-rn_alt.jpg', NULL, 0), (196, 60, 'vsk09-rn_back.jpg', NULL, 0), (197, 60, 'vsk09-kh_main.jpg', NULL, 0), (198, 60, 'vsk09-ll_main.jpg', NULL, 0), (199, 60, 'vsk09-pe_main.jpg', NULL, 0), (200, 59, 'vsk10-pe_alt.jpg', NULL, 0), (201, 59, 'vsk10-pe_back.jpg', NULL, 0), (202, 59, 'vsk10-kh_main.jpg', NULL, 0), (203, 59, 'vsk10-ll_main.jpg', NULL, 0), (204, 59, 'vsk10-rn_main.jpg', NULL, 0), (205, 58, 'vsk11-ly_alt.jpg', NULL, 0), (206, 58, 'vsk11-ly_back.jpg', NULL, 0), (207, 58, 'vsk11-ll_main.jpg', NULL, 0), (208, 58, 'vsk11-mt_main.jpg', NULL, 0), (209, 58, 'vsk11-rn_main.jpg', NULL, 0), (210, 57, 'vsk12-la_alt.jpg', NULL, 0), (211, 57, 'vsk12-la_back.jpg', NULL, 0), (212, 57, 'vsk12-ll_main.jpg', NULL, 0), (213, 57, 'vsk12-mt_main.jpg', NULL, 0), (214, 57, 'vsk12-rn_main.jpg', NULL, 0), (215, 56, 'vsw01-rn_back.jpg', NULL, 0), (216, 56, 'vsw01-kh_main.jpg', NULL, 0), (217, 56, 'vsw01-ll_main.jpg', NULL, 0), (218, 56, 'vsw01-pe_main.jpg', NULL, 0), (219, 55, 'vsw02-pe_alt.jpg', NULL, 0), (220, 55, 'vsw02-pe_back.jpg', NULL, 0), (221, 55, 'vsw02-kh_main.jpg', NULL, 0), (222, 55, 'vsw02-ll_main.jpg', NULL, 0), (223, 55, 'vsw02-rn_main.jpg', NULL, 0), (224, 54, 'vsw03-kh_back.jpg', NULL, 0), (225, 54, 'vsw03-ll_main.jpg', NULL, 0), (226, 54, 'vsw03-mt_main.jpg', NULL, 0), (227, 54, 'vsw03-rn_main.jpg', NULL, 0), (228, 53, 'vsw04-pe_back.jpg', NULL, 0), (229, 53, 'vsw04-kh_main.jpg', NULL, 0), (230, 53, 'vsw04-ll_main.jpg', NULL, 0), (231, 53, 'vsw04-rn_main.jpg', NULL, 0), (232, 52, 'vsw05-kh_back.jpg', NULL, 0), (233, 52, 'vsw05_look.jpg', NULL, 0), (234, 52, 'vsw05-ly_main.jpg', NULL, 0), (235, 52, 'vsw05-mt_main.jpg', NULL, 0), (236, 52, 'vsw05-rn_main.jpg', NULL, 0), (237, 51, 'vsw06-rn_back.jpg', NULL, 0), (238, 51, 'vsw06-kh_main.jpg', NULL, 0), (239, 51, 'vsw06-ll_main.jpg', NULL, 0), (240, 51, 'vsw06-pe_main.jpg', NULL, 0), (241, 50, 'vsw07-mt_back.jpg', NULL, 0), (242, 50, 'vsw07-la_main.jpg', NULL, 0), (243, 50, 'vsw07-ll_main.jpg', NULL, 0), (244, 50, 'vsw07-rn_main.jpg', NULL, 0), (245, 49, 'vsw08-ll_back.jpg', NULL, 0), (246, 49, 'vsw08-kh_main.jpg', NULL, 0), (247, 49, 'vsw08-mt_main.jpg', NULL, 0), (248, 49, 'vsw08-rn_main.jpg', NULL, 0), (249, 48, 'vsw09-rn_back.jpg', NULL, 0), (250, 48, 'vsw09_look.jpg', NULL, 0), (251, 48, 'vsw09-kh_main.jpg', NULL, 0), (252, 48, 'vsw09-ll_main.jpg', NULL, 0), (253, 48, 'vsw09-mt_main.jpg', NULL, 0), (254, 47, 'vsw10-ly_alt.jpg', NULL, 0), (255, 47, 'vsw10-ly_back.jpg', NULL, 0), (256, 47, 'vsw10-ll_main.jpg', NULL, 0), (257, 47, 'vsw10-mt_main.jpg', NULL, 0), (258, 47, 'vsw10-rn_main.jpg', NULL, 0), (259, 103, 'vsw11-ll_main.jpg', NULL, 0), (260, 103, 'vsw11-mt_main.jpg', NULL, 0), (261, 103, 'vsw11-rn_main.jpg', NULL, 0), (262, 45, 'vsw12-pe_alt.jpg', NULL, 0), (263, 45, 'vsw12-pe_back.jpg', NULL, 0), (264, 45, 'vsw12-kh_main.jpg', NULL, 0), (265, 45, 'vsw12-ll_main.jpg', NULL, 0), (266, 45, 'vsw12-rn_main.jpg', NULL, 0), (267, 44, 'vt01-kh_alt.jpg', '', 1), (268, 44, 'vt01-kh_back.jpg', '', 2), (269, 44, 'vt01-ll_main.jpg', '', 3), (270, 44, 'vt01-pe_main.jpg', '', 4), (271, 44, 'vt01-rn_main.jpg', '', 5), (272, 43, 'vt02-rn_alt.jpg', '', 1), (273, 43, 'vt02-rn_back.jpg', '', 2), (274, 43, 'vt02-kh_main.jpg', '', 3), (275, 43, 'vt02-ll_main.jpg', '', 4), (276, 43, 'vt02-pe_main.jpg', '', 5), (277, 42, 'vt03-rn_alt.jpg', '', 1), (278, 42, 'vt03-rn_back.jpg', '', 2), (279, 42, 'vt03-ll_main.jpg', '', 3), (280, 42, 'vt03-ly_main.jpg', '', 4), (281, 42, 'vt03-mt_main.jpg', '', 5), (282, 41, 'vt04-mt_alt.jpg', '', 1), (283, 41, 'vt04-mt_back.jpg', '', 2), (284, 41, 'vt04-la_main.jpg', '', 3), (285, 41, 'vt04-ll_main.jpg', '', 4), (286, 41, 'vt04-rn_main.jpg', '', 5), (287, 40, 'vt05-pe_alt.jpg', '', 1), (288, 40, 'vt05-pe_back.jpg', '', 2), (289, 40, 'vt05-ly_main.jpg', '', 3), (290, 40, 'vt05-mt_main.jpg', '', 4), (291, 40, 'vt05-rn_main.jpg', '', 5), (292, 39, 'vt06-mt_alt.jpg', '', 1), (293, 39, 'vt06-mt_back.jpg', '', 2), (294, 39, 'vt06-ll_main.jpg', '', 3), (295, 39, 'vt06-ly_main.jpg', '', 4), (296, 39, 'vt06-rn_main.jpg', '', 5), (297, 38, 'vt07-rn_back.jpg', '', 1), (298, 38, 'vt07-kh_main.jpg', '', 2), (299, 38, 'vt07-ll_main.jpg', '', 3), (300, 38, 'vt07-pe_main.jpg', '', 4), (301, 37, 'vt08-mt_alt.jpg', '', 1), (302, 37, 'vt08-la_main.jpg', '', 2), (303, 37, 'vt08-ll_main.jpg', '', 3), (304, 37, 'vt08-rn_main.jpg', '', 4), (305, 36, 'vt09-ll_alt.jpg', '', 1), (306, 36, 'vt09-ll_back.jpg', '', 2), (307, 36, 'vt09-kh_main.jpg', '', 3), (308, 36, 'vt09-pe_main.jpg', '', 4), (309, 36, 'vt09-rn_main.jpg', '', 5), (310, 34, 'vt11-ll_back.jpg', '', 1), (311, 34, 'vt11_look.jpg', '', 2), (312, 34, 'vt11-ly_main.jpg', '', 3), (313, 34, 'vt11-mt_main.jpg', '', 4), (314, 34, 'vt11-rn_main.jpg', '', 5), (315, 33, 'vt12-kh_alt.jpg', '', 1), (316, 33, 'vt12-kh_back.jpg', '', 2), (317, 33, 'vt12-ll_main.jpg', '', 3), (318, 33, 'vt12-pe_main.jpg', '', 4), (319, 33, 'vt12-rn_main.jpg', '', 5), (320, 82, 'vd11-ly_back.jpg', '', 1), (321, 82, 'vd11-ly_alt.jpg', '', 2), (322, 82, 'vd11-kh_main.jpg', '', 3), (323, 82, 'vd11-la_main.jpg', '', 4), (324, 82, 'vd11-pe_main.jpg', '', 5), (325, 35, 'vt10-ly_alt.jpg', '', 1), (326, 35, 'vt10-ly_back.jpg', '', 2), (327, 35, 'vt10-la_main.jpg', '', 3), (328, 35, 'vt10-pe_main.jpg', '', 4), (329, 35, 'vt10-kh_main.jpg', '', 5); INSERT INTO `products_options` (`products_options_id`, `language_id`, `products_options_name`) VALUES (1, 1, 'Color'), (2, 1, 'Size'); INSERT INTO `products_options_values` (`products_options_values_id`, `language_id`, `products_options_values_name`) VALUES (1, 1, 'Peach'), (2, 1, 'Khaki'), (3, 1, 'Lilac'), (4, 1, 'Rain'), (5, 1, 'Mint'), (6, 1, 'Lily'), (7, 1, 'Latte'), (8, 1, 'Gold'), (9, 1, 'Silver'), (10, 1, 'Cocoa'), (11, 1, 'XL'), (12, 1, 'L'), (13, 1, 'M'), (14, 1, 'S'), (15, 1, 'XS'), (16, 1, '2'), (17, 1, '4'), (18, 1, '6'), (19, 1, '8'), (20, 1, '10'); INSERT INTO `products_options_values_to_products_options` (`products_options_values_to_products_options_id`, `products_options_id`, `products_options_values_id`) VALUES (1, 1, 1), (2, 1, 2), (3, 1, 3), (4, 1, 4), (5, 1, 5), (6, 1, 6), (7, 1, 7), (8, 1, 8), (9, 1, 9), (10, 1, 10), (11, 2, 11), (12, 2, 12), (13, 2, 13), (14, 2, 14), (15, 2, 15), (16, 2, 16), (17, 2, 17), (18, 2, 18), (19, 2, 19), (20, 2, 20); INSERT INTO `products_to_categories` (`products_id`, `categories_id`) VALUES (3, 15), (4, 15), (5, 15), (6, 15), (7, 15), (8, 15), (9, 15), (10, 15), (11, 15), (12, 15), (13, 15), (14, 15), (33, 10), (34, 10), (35, 10), (36, 10), (37, 10), (38, 10), (39, 10), (40, 10), (41, 10), (42, 10), (43, 10), (44, 10), (45, 11), (47, 11), (48, 11), (49, 11), (50, 11), (51, 11), (52, 11), (53, 11), (54, 11), (55, 11), (56, 11), (57, 13), (58, 13), (59, 13), (60, 13), (61, 13), (62, 13), (63, 13), (64, 13), (65, 13), (66, 13), (67, 13), (68, 13), (69, 12), (70, 12), (71, 12), (72, 12), (73, 12), (74, 12), (75, 12), (76, 12), (77, 12), (78, 12), (79, 12), (80, 12), (81, 17), (82, 17), (83, 17), (84, 17), (85, 17), (86, 17), (87, 17), (88, 17), (89, 17), (90, 17), (91, 17), (92, 17), (93, 14), (97, 16), (98, 16), (99, 16), (100, 16), (101, 16), (102, 16), (103, 11), (104, 14), (105, 14), (106, 14); INSERT INTO `reviews` (`reviews_id`, `products_id`, `customers_id`, `customers_name`, `reviews_rating`, `date_added`, `reviews_status`, `reviews_text`) VALUES (1, 93, NULL, 'Grace', 3, '2020-07-20 17:20:05', 1, 'Love this belt. The color and style make it so versatile and it works with pretty much my entire wardrobe. Total essential. '), (2, 58, NULL, 'Jaci', 5, '2020-07-22 03:21:03', 1, 'This skirt is so cute and playful. Add a basic tee or tank for a casual look, or a blouse or blazer for work. I love it!'), (3, 57, NULL, 'Grace', 5, '2020-07-23 13:22:01', 1, 'This skirt is so cute and playful. Add a basic tee or tank for a casual look, or a blouse or blazer for work. I love it!'), (4, 78, NULL, 'Eva', 4, '2020-07-24 23:22:59', 1, 'Aside from being ridiculously comfortable, these pants are extremely versatile. I can easily dress them up or down. '), (5, 76, NULL, 'Jaci', 5, '2020-07-26 09:23:57', 1, 'Aside from being ridiculously comfortable, these pants are extremely versatile. I can easily dress them up or down. '), (6, 40, NULL, 'Jaci', 4, '2020-07-27 19:24:55', 1, 'I wanted to love this top. But it\'s see through in the front, in addition to the open back. So something must be worn under.'), (7, 85, NULL, 'Talia', 5, '2020-07-29 05:25:53', 1, 'This is my favorite wake up and go dress. It requires absolutey no effort, and looks great on. Even over a bathing suit! '), (8, 81, NULL, 'Mia', 3, '2020-07-30 15:26:51', 1, 'This is my favorite wake up and go dress. It requires absolutey no effort, and looks great on. Even over a bathing suit! '), (9, 72, NULL, 'Eva', 5, '2020-08-01 01:27:49', 1, 'I purchased these as an essential to my summer wardrobe and they didn\'t disappoint. Perfect for throwing on over a bikini.'), (10, 91, NULL, 'Talia', 5, '2020-08-02 11:28:47', 1, 'The details on this dress are outstanding. If I had one complaint it would be the price. But worth it based on how I feel when I wear it. '), (11, 88, NULL, 'Jaci', 5, '2020-08-03 21:29:45', 1, 'This is a fantastic dress! My only complaint is it falls just a tad short on my 5\'10\" frame, but I\'m used to that problem!'), (12, 85, NULL, 'Lisa', 4, '2020-08-05 07:30:43', 1, 'This is a fantastic dress! My only complaint is it falls just a tad short on my 5\'10\" frame, but I\'m used to that problem!'), (13, 102, NULL, 'Ainsley', 4, '2020-08-06 17:31:41', 1, 'I adore this beautiful scarf. It is the perfect year-round weight. It also washes and wears very easily. '), (14, 101, NULL, 'Elizabeth', 4, '2020-08-08 03:32:39', 1, 'No matter when I shop this store, or what I\'m looking for, I always wind up with a scarf. They\'re just too lovely to resist!'), (15, 98, NULL, 'Sarah', 3, '2020-08-09 13:33:37', 1, 'No matter when I shop this store, or what I\'m looking for, I always wind up with a scarf. They\'re just too lovely to resist!'), (16, 89, NULL, 'Elizabeth', 5, '2020-08-10 23:34:35', 1, 'The built-in bra on this is perfection. It\'s so diificult to find the right support with spaghetti straps, and now it\'s a non-issue. Bravo!'), (17, 92, NULL, 'Sarah', 5, '2020-08-12 09:35:33', 1, 'I love the lightness and softness of this fabric. It allows me to look very put together and still feel extremely comfortable. Win win!'), (18, 52, NULL, 'Laura', 4, '2020-08-13 19:36:31', 1, 'Lovely lightweight sweater. I bought a small in the Lily and it fits true to size. A good length, not too long, not too short.'), (19, 47, NULL, 'Marie', 4, '2020-08-15 05:37:29', 1, 'Lovely lightweight sweater. I bought a small in the Lily and it fits true to size. A good length, not too long, not too short.'), (20, 89, NULL, 'Marie', 4, '2020-08-16 15:38:27', 1, 'This is a fantastic, versatile dress! My only complaint is it falls just a tad short on my 5\'10\" frame, but I\'m used to that problem!'), (21, 42, NULL, 'Eva', 4, '2020-08-18 01:39:25', 1, 'This tank top is a wardrobe essential. I wear it regularly with yoga pants and can easily dress it up with accessories.'), (22, 34, NULL, 'Laura', 5, '2020-08-19 11:40:23', 1, 'This tank top is a wardrobe essential. I wear it regularly with basic shorts and can easily dress it up with accessories.'), (23, 68, NULL, 'Sharon', 5, '2020-08-20 21:41:21', 1, 'The quality of this skirt is exceptional. It is lined, the material is soft and fluid, and the color is fabulous. Maybe a hair too long. '), (24, 66, NULL, 'Ainsley', 5, '2020-08-22 07:42:19', 1, 'The quality of this skirt is exceptional. It is lined, the material is soft and fluid, and the color is fabulous. Maybe a hair too long. '), (25, 64, NULL, 'Laura', 5, '2020-08-23 17:43:17', 1, 'The quality of this skirt is exceptional. It is lined, the material is soft and fluid, and the color is fabulous. Maybe a hair too long. '), (26, 63, NULL, 'Mia', 2, '2020-08-25 03:44:15', 1, 'The quality of this skirt is exceptional. It is lined, the material is soft and fluid, and the color is fabulous. Maybe a hair too long. '), (27, 33, NULL, 'Grace', 3, '2020-08-26 13:45:13', 1, 'This looks fantastic under a sweater, blazer or cardigan. Pretty own its own, too. Nice fabric that can be worn year round. '), (28, 80, NULL, 'Sharon', 3, '2020-08-27 23:46:11', 1, 'That\'s the only way I can describe these pants. They\'re like wearing sweats without people thinking you\'re wearing sweats. Win!'), (29, 42, NULL, 'Ainsley', 3, '2020-08-29 09:47:09', 1, 'This is a happy girl! Just what I was looking for a first date. Love the fit. The small fit perfectly. True to size. HIghly recommend. '), (30, 34, NULL, 'Jaci', 4, '2020-08-30 19:48:07', 1, 'This is a happy girl! Just what I was looking for a first date. Love the fit. The small fit perfectly. True to size. HIghly recommend. '), (31, 66, NULL, 'Eva', 4, '2020-09-01 05:49:05', 1, 'This skirt fits like butter. The lines are so smooth, even in places where I\'m not! It is so flattering. Definitely my new favorite.'), (32, 64, NULL, 'Jaci', 2, '2020-09-02 15:50:03', 1, 'This skirt fits like butter. The lines are so smooth, even in places where I\'m not! It is so flattering. Definitely my new favorite.'), (33, 63, NULL, 'Grace', 3, '2020-09-04 01:51:01', 1, 'This skirt fits like butter. The lines are so smooth, even in places where I\'m not! It is so flattering. Definitely my new favorite.'), (34, 86, NULL, 'Sharon', 4, '2020-09-05 11:51:59', 1, 'The drape on this dress is magnificent. I carry most of my weight in my middle and this style perfectly camouflages all the right spots. '), (35, 41, NULL, 'Marie', 3, '2020-09-06 21:52:57', 1, 'So excited about this top! I got it for a upcoming trip to the islands can\'t wait to wear it. The open back is sexy without showing too much skin.'), (36, 40, NULL, 'Laura', 4, '2020-09-08 07:53:55', 1, 'So excited about this top! I got it for an upcoming trip and can\'t wait to wear it. The open back is sexy without showing too much skin.'), (37, 36, NULL, 'Eva', 5, '2020-09-09 17:54:53', 1, 'So excited about this top! I got it for an upcoming trip and can\'t wait to wear it. The open lace detail is sexy without showing too much skin.'), (38, 71, NULL, 'Elizabeth', 3, '2020-09-11 03:55:51', 1, 'These shorts are so cute! I love the scalloped edges. They\'re super feminine and still feel sophisticated as well. '), (39, 67, NULL, 'Lisa', 4, '2020-09-12 13:56:49', 1, 'This is an interesting skirt. The cut is almost like a trumpet. Fitted through the hip and flares at the knee. It\'s fun to wear!'), (40, 74, NULL, 'Sarah', 5, '2020-09-13 23:57:47', 1, 'These pants are funky and I love it! Completely unique and unlike anything I have in my wardrobe. Love wearing these.'), (41, 45, NULL, 'Mia', 4, '2020-09-15 09:58:45', 1, 'I didn\'t think there was anything particularly special about this sweater until I saw the back. It\'s beautiful! So many compliments. '), (42, 70, NULL, 'Laura', 5, '2020-09-16 19:59:43', 1, 'These shorts are simply beautiful. The detail is incredible. My biggest problem is the urge to wear them every day. '), (43, 41, NULL, 'Elizabeth', 4, '2020-09-18 06:00:41', 1, 'Absolutely love the drape of this top. The fabric is not see through either, which lets me really show off the low back.'), (44, 88, NULL, 'Laura', 4, '2020-09-19 16:01:39', 1, 'The print is gorgeous as is the styling. But I usually wear a size 8 and it was tight on the waist. The size 10 fits like an 8.'), (45, 54, NULL, 'Eva', 3, '2020-09-21 02:02:37', 1, 'I love the weight and feel of this sweater. Nice for layering. Fantastic colors for spring. I couldn\'t decide so bought two!'), (46, 50, NULL, 'Sarah', 3, '2020-09-22 12:03:35', 1, 'I love the weight and feel of this sweater. Nice for layering. Fantastic colors for spring. I couldn\'t decide so bought two!'), (47, 49, NULL, 'Lisa', 5, '2020-09-23 22:04:33', 1, 'I love the weight and feel of this sweater. Nice for layering. Fantastic colors for spring. I couldn\'t decide so bought two!'), (48, 68, NULL, 'Sarah', 4, '2020-09-25 08:05:31', 1, 'I love the long waistband and fullness of this skirt. It\'s perfect for those days when you\'re feeling a bit bloated. Camouflages my belly.'), (49, 80, NULL, 'Sarah', 3, '2020-09-26 18:06:29', 1, 'Love the fit of these! After having them for a while, I would say hang to dry is likely best to maintain color and crispness of pants.'), (50, 73, NULL, 'Lisa', 3, '2020-09-28 04:07:27', 1, 'Love the fit of these! After having them for a while, I would say hang to dry is likely best to maintain color and crispness of pants.'), (51, 90, NULL, 'Eva', 3, '2020-09-29 14:08:25', 1, 'I always love this style dress. Offers a great length and super flattering in all the right places. It\'s my new favorite!'), (52, 62, NULL, 'Sharon', 3, '2020-10-01 00:09:23', 1, 'This skirt has kind of a \"peekaboo\" feature where the internal slip is much shorter than the skirt. Fun to wear and work appropriate. '), (53, 53, NULL, 'Elizabeth', 5, '2020-10-02 10:10:21', 1, 'This is an excellent staple for casual or work. The Peach is beautiful, the cut is classic, and the sleeve is long enough. Quality piece!'), (54, 50, NULL, 'Sharon', 4, '2020-10-03 20:11:19', 1, 'This is an excellent staple for casual or work. The Latte is beautiful, the cut is classic, and the sleeve is long enough. Quality piece!'), (55, 48, NULL, 'Ainsley', 4, '2020-10-05 06:12:17', 1, 'This is an excellent staple for casual or work. The Rain is beautiful, the cut is classic, and the sleeve is long enough. Quality piece!'), (56, 70, NULL, 'Jaci', 3, '2020-10-06 16:13:15', 1, 'The layering on these shorts is beautiful, but also very delicate. I would definitely recommend hand washing and hang dry. '), (57, 92, NULL, 'Sharon', 5, '2020-10-08 02:14:13', 1, 'I always love this style dress. Offers a great length and super flattering in all the right places. It\'s my new favorite!'), (58, 44, NULL, 'Sarah', 5, '2020-10-09 12:15:11', 1, 'Absolutely fell in love with this blouse. It\'s elegant and feels very comfortable. I bought the Large and fits perfectly. Highly recommend.'), (59, 55, NULL, 'Lisa', 5, '2020-10-10 22:16:09', 1, 'There were several things off on this sweater. The length hit in an awkward spot on my hip, and the arm length was off. '), (60, 45, NULL, 'Grace', 3, '2020-10-12 08:17:07', 1, 'There were several things off on this sweater. The length hit in an awkward spot on my hip, and the shoulders seemed too large. '), (61, 84, NULL, 'Eva', 4, '2020-10-13 18:18:05', 1, 'This is a fantastic dress! My only complaint is it falls just a tad short on my 5\'10\" frame, but I\'m used to that problem!'), (62, 69, NULL, 'Grace', 4, '2020-10-15 04:19:03', 1, 'I just bought these shorts and love them. They\'re an upgrade from your everyday shorts. Good amount of stretch when you sit.'), (63, 83, NULL, 'Elizabeth', 5, '2020-10-16 14:20:01', 1, 'I agree with other reviewers that this is not what I would qualify as a \"dress\". That said, I love it and layer appropriately. '), (64, 79, NULL, 'Lisa', 4, '2020-10-18 00:20:59', 1, 'I love that I can go out looking super cute and yet feel like I\'m in my pajamas. Seriously the most comfortable pants!'), (65, 78, NULL, 'Ainsley', 4, '2020-10-19 10:21:57', 1, 'I love that I can go out looking super cute and yet feel like I\'m in my pajamas. Seriously the most comfortable pants!'), (66, 76, NULL, 'Laura', 4, '2020-10-20 20:22:55', 1, 'I love that I can go out looking super cute and yet feel like I\'m in my pajamas. Seriously the most comfortable pants!'), (67, 74, NULL, 'Sharon', 3, '2020-10-22 06:23:53', 1, 'I love that I can go out looking super cute and yet feel like I\'m in my pajamas. Seriously the most comfortable pants!'), (68, 67, NULL, 'Talia', 5, '2020-10-23 16:24:51', 1, 'Such an unflattering fit. If you are tall and skinny, may not be an issue but it wasn\'t a figure flattering look. Sadly, returned it.'), (69, 59, NULL, 'Elizabeth', 3, '2020-10-25 02:25:49', 1, 'Such an unflattering fit. If you are tall and skinny, may not be an issue but it wasn\'t a figure flattering look. Sadly, returned it.'), (70, 97, NULL, 'Talia', 3, '2020-10-26 12:26:47', 1, 'I love this scarf and look forward to having it as a long time staple. Unfortunately it isn\'t wash and wear so its longevity is TBD.'), (71, 60, NULL, 'Eva', 4, '2020-10-27 22:27:45', 1, 'This skirt is not flattering at all. Falls weird over the hip and makes me look much wider than I am. Will be returning.'), (72, 82, NULL, 'Jaci', 4, '2020-10-29 08:28:43', 1, 'This dress is just not for me. I think maybe I\'m just a little too curvy. The pleats do not flatter at all! Disappointed as I loved it online. '), (73, 100, NULL, 'Laura', 3, '2020-10-30 18:29:41', 1, 'This scarf is very pretty and I\'ve received lots of compliments. But I would say it\'s more decorative and less warm. '), (74, 102, NULL, 'Eva', 3, '2020-11-01 04:30:39', 1, 'This scarf is actually nicer in person than the pictures online show. It\'s so soft and easily works with just about every outfit. '), (75, 99, NULL, 'Grace', 5, '2020-11-02 14:31:37', 1, 'This scarf is actually nicer in person than the pictures online show. It\'s so soft and easily works with just about every outfit. '), (76, 91, NULL, 'Lisa', 4, '2020-11-04 00:32:35', 1, 'This dress has the perfect amount of twirl to it. It feels like it was made for dancing so can\'t wait to take it for a test drive!'), (77, 87, NULL, 'Grace', 3, '2020-11-05 10:33:33', 1, 'This dress has the perfect profile for my petite figure. While I\'m only 5\'3\", I do have some problem areas, and this fits beautifully. '), (78, 86, NULL, 'Sarah', 4, '2020-11-06 20:34:31', 1, 'This dress has the perfect profile for my petite figure. While I\'m only 5\'3\", I do have some problem areas, and this fits beautifully. '), (79, 39, NULL, 'Mia', 3, '2020-11-08 06:35:29', 1, 'This blouse is perfect for spring. I wasn\'t sure how I felt about the lace detail at first, but I think it adds some interesting texture.'), (80, 37, NULL, 'Lisa', 3, '2020-11-09 16:36:27', 1, 'This blouse is perfect for spring. I wasn\'t sure how I felt about the placement of the front pocket detail at first, but now I really like it.'), (81, 51, NULL, 'Mia', 3, '2020-11-11 02:37:25', 1, 'I travel for work and am always looking for easy layers for cold plane rides. The hood is a nice bonus when I want to grab a nap!'), (82, 59, NULL, 'Marie', 4, '2020-11-12 12:38:23', 1, 'This is such a great purchase and a must have for any working professional. I love the look, the feel, and the length of the skirt.'), (83, 58, NULL, 'Laura', 4, '2020-11-13 22:39:21', 1, 'This is such a great purchase and a must have for any working professional. I love the look, the feel, and the length of the skirt.'), (84, 77, NULL, 'Elizabeth', 4, '2020-11-15 08:40:19', 1, 'These pants have just wide enough of a leg for a cute pair of wedges. They were a little long, so I needed the height anyway!'), (85, 75, NULL, 'Grace', 5, '2020-11-16 18:41:17', 1, 'These pants have just wide enough of a leg for a cute pair of wedges. They were a little long, so I needed the height anyway!'), (86, 62, NULL, 'Sarah', 5, '2020-11-18 04:42:15', 1, 'I missed the length of the inside slip when I viewed this skirt online. It hits above the knee while the skirt is ankle length. Weird. '), (87, 73, NULL, 'Talia', 5, '2020-11-19 14:43:13', 1, 'Lightweight and fit well. Multi-season. Although I would say not quite true to size and perhaps some vanity sizing.'), (88, 93, NULL, 'Mia', 3, '2020-11-21 00:44:11', 1, 'I with I could keep this belt but it\'s far too large for me. I got the XS which usually works for me in other Venia belts.'), (89, 38, NULL, 'Sarah', 4, '2020-11-22 10:45:09', 1, 'I am typically a M in this brand, and it was swimming on me. But I love it so returning and getting a S.'), (90, 35, NULL, 'Elizabeth', 4, '2020-11-23 20:46:07', 1, 'I am typically a M in this brand, and it was swimming on me. But I love it so returning and getting a S.'), (91, 65, NULL, 'Marie', 4, '2020-11-25 06:47:05', 1, 'I loved the pattern and style of the skirt, but it was not straight cut as it appeared on the model. It was cut for someone much curvier.'), (92, 36, NULL, 'Ainsley', 3, '2020-11-26 16:48:03', 1, 'This is a happy girl! Just what I was looking for a first date. Sexy and love the fit. The small fit perfectly. True to size. '), (93, 49, NULL, 'Talia', 5, '2020-11-28 02:49:01', 1, 'I bought this beautifully made sweater and am thrilled at the fit, the softness of the fabric, and the beautiful Lilac color.'), (94, 47, NULL, 'Elizabeth', 4, '2020-11-29 12:49:59', 1, 'I bought this beautifully made sweater and am thrilled at the fit, the softness of the fabric, and the beautiful Mint color.'), (95, 71, NULL, 'Marie', 5, '2020-11-30 22:50:57', 1, 'I wear a lot of skirts and it can get boring. I love these shorts because I can dress them up with a cami and blazer.'), (96, 69, NULL, 'Mia', 3, '2020-12-02 08:51:55', 1, 'I wear a lot of skirts and it can get boring. I love these shorts because I can dress them up with a cami and blazer.'), (97, 61, NULL, 'Talia', 4, '2020-12-03 18:52:53', 1, 'Love it! Fabric is gorgeous, beautifully handled, fit is sleek, unusual elegant look. Does not add weight to my pear shape.'), (98, 57, NULL, 'Mia', 2, '2020-12-05 04:53:51', 1, 'Love it! Fabric is gorgeous, beautifully handled, fit is sleek, unusual elegant look. Does not add weight to my pear shape.'), (99, 55, NULL, 'Talia', 5, '2020-12-06 14:54:49', 1, 'This sweater has great detail but every time I wear it I wind up caught on something. The open weave is not optimal.'), (100, 52, NULL, 'Jaci', 5, '2020-12-08 00:55:47', 1, 'I love this sweater for layering on vacation. It is the perfect weight and super comfy. I wear it even when I want to feel close to the beach!'), (101, 79, NULL, 'Talia', 4, '2020-12-09 10:56:45', 1, 'These are the perfect alternative to sweatpants without losing any of the comfort. I look like I put in so much effort. Shhhh, don\'t tell! '), (102, 75, NULL, 'Mia', 3, '2020-12-10 20:57:43', 1, 'These are the perfect alternative to sweatpants without losing any of the comfort. I look like I put in so much effort. Shhhh, don\'t tell! '), (103, 35, NULL, 'Marie', 5, '2020-12-12 06:58:41', 1, 'This is the perfect top for when I want to look cute but don\'t want to put in the effort! It has an easy fit that hangs really well. '), (104, 56, NULL, 'Sarah', 4, '2020-12-13 16:59:39', 1, 'I wanted a cozy cardigan and found this one. I absolutely love it! The side pockets are a bonus, and the length is perfect.'), (105, 53, NULL, 'Marie', 3, '2020-12-15 03:00:37', 1, 'I wanted a cozy cardigan and found this one. I absolutely love it! The side pockets are a bonus, and the length is perfect.'), (106, 51, NULL, 'Grace', 4, '2020-12-16 13:01:35', 1, 'I wanted a cozy cardigan and found this one. I absolutely love it! The hood is a bonus, and the length is perfect.'), (107, 48, NULL, 'Eva', 5, '2020-12-17 23:02:33', 1, 'I wanted a cozy cardigan and found this one. I absolutely love it! The side pockets are a bonus, and the length is perfect.'), (108, 84, NULL, 'Ainsley', 4, '2020-12-19 09:03:31', 1, 'Love a good t-shirt dress, and this is no exception. Super soft material and washes and wears well. I\'m 5\'6\" and the length was perfect. '), (109, 101, NULL, 'Marie', 5, '2020-12-20 19:04:29', 1, 'This scarf came with instructions on how to wear many different ways which is perfect for someone like me. '), (110, 100, NULL, 'Jaci', 5, '2020-12-22 05:05:27', 1, 'This scarf came with instructions on how to wear many different ways which is perfect for someone like me. '), (111, 99, NULL, 'Mia', 4, '2020-12-23 15:06:25', 1, 'This scarf came with instructions on how to wear many different ways which is perfect for someone like me. '), (112, 98, NULL, 'Sharon', 3, '2020-12-25 01:07:23', 1, 'This scarf came with instructions on how to wear many different ways which is perfect for someone like me. '), (113, 97, NULL, 'Lisa', 3, '2020-12-26 11:08:21', 1, 'This scarf came with instructions on how to wear many different ways which is perfect for someone like me. '), (114, 90, NULL, 'Ainsley', 5, '2020-12-27 21:09:19', 1, 'It fits true to size and the fabric lays nicely (not clingy). This dress is extremely lightweight and makes me feel amazing. '), (115, 87, NULL, 'Mia', 4, '2020-12-29 07:10:17', 1, 'It fits true to size and the fabric lays nicely (not clingy). This dress is extremely lightweight and makes me feel amazing. '), (116, 82, NULL, 'Laura', 3, '2020-12-30 17:11:15', 1, 'It fits true to size and the fabric lays nicely (not clingy). This dress is extremely lightweight and makes me feel amazing. '), (117, 33, NULL, 'Mia', 3, '2021-01-01 03:12:13', 1, 'I thought I\'d like this top as a layering piece, but I think that it\'s just too basic for me. Fabric is too much like a t-shirt.'), (118, 83, NULL, 'Marie', 5, '2021-01-02 13:13:11', 1, 'While I adore the style and detail of this dress, it cannot be worn on its own. Too short and material is see through. '), (119, 72, NULL, 'Ainsley', 4, '2021-01-03 23:14:09', 1, 'These were too short for my frame. I agree with one of the other reviewers that these would be best as a beach cover up. '), (120, 61, NULL, 'Lisa', 3, '2021-01-05 09:15:07', 1, 'I love this skirt because I can dress it down with a tee or cami, or dress it up with a blazer. It might be a smidge too short for work though. '), (121, 60, NULL, 'Ainsley', 4, '2021-01-06 19:16:05', 1, 'I\'ve never seen a skirt quite like this one before. It\'s kinda funky but I like it. The leg openings definitely help with walking. '), (122, 43, NULL, 'Lisa', 3, '2021-01-08 05:17:03', 1, 'This looks fantastic under a sweater, blazer or cardigan. Pretty own its own, too. Nice fabric that can be worn year round. '), (123, 39, NULL, 'Grace', 3, '2021-01-09 15:18:01', 1, 'This looks fantastic under a sweater, blazer or cardigan. Pretty own its own, too. Nice fabric that can be worn year round. '), (124, 38, NULL, 'Sharon', 5, '2021-01-11 01:18:59', 1, 'This looks fantastic under a sweater, blazer or cardigan. Pretty own its own, too. Nice fabric that can be worn year round. '), (125, 81, NULL, 'Grace', 3, '2021-01-12 11:19:57', 1, 'I love that it only takes a belt to completely transform this dress. I\'ve even used a scarf as a belt for a nice boho touch.'), (126, 77, NULL, 'Marie', 4, '2021-01-13 21:20:55', 1, 'The waistband ruins these pants. It folds down, and unless your stomach is completely flat, it\'s going to roll and bunch. '), (127, 65, NULL, 'Elizabeth', 3, '2021-01-15 07:21:53', 1, 'The waistband ruins this skirt. It folds down, and unless your stomach is completely flat, it\'s going to roll and bunch. '), (128, 56, NULL, 'Sharon', 5, '2021-01-16 17:22:51', 1, 'The perfect throw on and chill sweater. Soft material. Loose, comfy fit. And great length for over leggings. '), (129, 54, NULL, 'Ainsley', 5, '2021-01-18 03:23:49', 1, 'The perfect throw on and chill sweater. Soft material. Arm stops at the elbow. And great length for over leggings. '), (130, 44, NULL, 'Sharon', 5, '2021-01-19 13:24:47', 1, 'This top is gorgeously designed and super feminine. But, it is very lightweight and see-through. Requires a cami or additional layer. '), (131, 43, NULL, 'Talia', 4, '2021-01-20 23:25:45', 1, 'This top is gorgeously designed and super feminine. But, it is very lightweight and see-through. Requires a cami or additional layer. '), (132, 37, NULL, 'Talia', 4, '2021-01-22 09:26:43', 1, 'This top is gorgeously designed and super feminine. But, it is very lightweight and see-through. Requires a cami or additional layer. '); INSERT INTO `specials` (`specials_id`, `products_id`, `specials_new_products_price`, `specials_date_added`, `expires_date`, `date_status_change`, `status`) VALUES (1, 6, '78.0000', now(), '2022-08-27 00:00:00', NULL, 1), (2, 12, '78.0000', now(), '2022-08-27 00:00:00', NULL, 1), (3, 33, '46.0000', now(), '2022-08-27 00:00:00', NULL, 1), (4, 37, '78.0000', now(), '2022-08-27 00:00:00', NULL, 1), (5, 50, '94.0000', now(), '2022-08-27 00:00:00', NULL, 1), (6, 59, '86.0000', now(), '2022-08-27 00:00:00', NULL, 1), (7, 60, '69.0000', now(), '2022-08-27 00:00:00', NULL, 1), (8, 74, '71.0000', now(), '2022-08-27 00:00:00', NULL, 1), (9, 78, '70.0000', now(), '2022-08-27 00:00:00', NULL, 1), (10, 81, '86.0000', now(), '2022-08-27 00:00:00', NULL, 1), (11, 88, '70.0000', now(), '2022-08-27 00:00:00', NULL, 1), (12, 93, '38.0000', now(), '2022-08-27 00:00:00', NULL, 1), (13, 102, '38.0000', now(), '2022-08-27 00:00:00', NULL, 1), (14, 75, '78.4000', now(), NULL, NULL, 1), (15, 91, '86.4000', now(), NULL, NULL, 1), (16, 61, '78.4000', now(), NULL, NULL, 1);
true
835ca0fce6d2e5b3a916a9dabaa9c16bc99fa5f1
SQL
correnm/DataStax
/DataModel/1_urm_application_master/common_application_objects/2_tables/table_hardware_archive.cql
UTF-8
2,667
2.65625
3
[]
no_license
/** Modifications date author description 2/13/2018 sara.bergman removed risk_likelihood float, to be placed into business_value_attribution 02-28-2018 corren.mccoy column changed to business_process_ids to list<uuid> 04-05-2018 sara.bergman Modified/Renamed installed_software to software_installed list<text> Modified/renamed run_date to run_datetime timestamp removed cyvar text 04-27-2018 sara.bergman removed neighbor_coefficient_value float, ip_gateway text, ip_netmask text altered node_impact_value from float to decimal altered installed_software from list<text> to list<software> */ USE keyspacename; CREATE TABLE IF NOT EXISTS hardware_archive ( site_id uuid, ip_subnet_or_building text, // 192.168.0.0, site/building archive_date date, // date the current architecture was archived internal_system_id uuid, // UUID computed to ensure uniqueness system_type text, ip_address text, // Query with MV mac_address text, // Search w/ Solr or MV cvss_scores list<frozen<cvss_scores>>, // patch_availability text, cpe_id text, // product part text, // should always be [h]ardware vendor text, product text, version text, version_update text, run_date date, // From scan file in format YYYY-MM-DD (last entry) end_of_sale date, end_of_life_date date, end_of_support_date date, node_impact_value decimal, // output of VMASC algorithm crown_jewel boolean, // MBSE model element reportable_flag boolean, // if TRUE, include in calculation of NIV vendor_stencil_icon text, // refers to file location on web server for icons to use in viz vulnerability_count int, // total number of CVE IDs identified for this item audit_upsert frozen<audit_upsert>, connected_elements list <frozen <connected_elements>>, // traceroute, asset_type text, // business practice metrics asset_visibility text, // business practice metrics os_general text, // windows, linux operating_system text, // specific operating system installed_software list <software>, host_name text, business_process_ids list<uuid>, // valid entries in business_value_attribution table PRIMARY KEY (site_id, ip_subnet_or_building, archive_date, internal_system_id) ) WITH COMMENT = 'Historical Infrastructure (by archive date) maintained for the site obtained via a vulnerability scan or a physical survey' ;
true
b0ffed0dbf6eb20080bfb5b363e66d2a784aeccb
SQL
naye0ng/Algorithm
/CodingTestPractice/SQL/Programmers/sum,max,min.sql
UTF-8
317
3.359375
3
[]
no_license
-- [1] 최대값 구하기 SELECT MAX(DATETIME) AS 시간 FROM ANIMAL_INS; -- [2] 최소값 구하기 SELECT MIN(DATETIME) AS 시간 FROM ANIMAL_INS; -- [3] 동물 수 구하기 SELECT COUNT(*) AS count FROM ANIMAL_INS; -- [4] 중복 제거하기 SELECT COUNT(DISTINCT NAME) FROM ANIMAL_INS WHERE NAME IS NOT NULL;
true
e0320b2f94ab2e662c0dec570645c5ea0ac5324a
SQL
mayanxi/testgit
/src/test/resources/schema.sql
UTF-8
12,838
3.40625
3
[]
no_license
CREATE DATABASE `ipplus360_mall` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; use ipplus360_mall; DROP TABLE IF EXISTS `users`; DROP TABLE IF EXISTS `organizations`; DROP TABLE IF EXISTS `products`; DROP TABLE IF EXISTS `carts`; DROP TABLE IF EXISTS `cart_item`; DROP TABLE IF EXISTS `price_package`; DROP TABLE IF EXISTS `user_product_record`; DROP TABLE IF EXISTS `tokens`; DROP TABLE IF EXISTS `user_log`; DROP TABLE IF EXISTS `geoip_version`; CREATE TABLE `users` ( id BIGINT AUTO_INCREMENT COMMENT '主键', username VARCHAR(100) COMMENT '用户名', realname VARCHAR(100) COMMENT '真实姓名', email VARCHAR(100) COMMENT '邮箱', mobile VARCHAR(100) COMMENT '手机号', password VARCHAR(100) COMMENT '密码', password_salt VARCHAR(100) COMMENT '盐', organization_id BIGINT COMMENT '所属公司', date_created TIMESTAMP DEFAULT now() COMMENT '创建时间', date_updated TIMESTAMP COMMENT '修改时间', last_login TIMESTAMP COMMENT '上次登录时间', last_login_from VARCHAR(100) COMMENT '上次登录IP', loginCount BIGINT COMMENT '登录次数', source TINYINT DEFAULT 0 COMMENT '注册方式', productIds VARCHAR(100) COMMENT '购买产品', test_count TINYINT DEFAULT 3 COMMENT '测试包购买次数', test_date_started TIMESTAMP COMMENT '测试包时间限制,一年必须使用完毕', status TINYINT DEFAULT 0 COMMENT '帐号状态', description VARCHAR(255) COMMENT '备注', CONSTRAINT pk_users PRIMARY KEY(id) ) CHARSET=utf8 ENGINE=Innodb COMMENT '用户'; CREATE UNIQUE INDEX idx_users_username ON users(username); CREATE UNIQUE INDEX idx_users_email ON users(email); CREATE UNIQUE INDEX idx_users_mobile ON users(mobile); CREATE UNIQUE INDEX idx_users_organization ON users(organization_id); CREATE TABLE `organizations` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `org_name` VARCHAR(100) NULL DEFAULT NULL COMMENT '公司名称', `user_id` BIGINT(20) NOT NULL COMMENT '用户ID', `industry` VARCHAR(255) NULL DEFAULT NULL COMMENT '所属行业', `legal_person` VARCHAR(255) NULL DEFAULT NULL COMMENT '公司法人', `legal_person_id` VARCHAR(255) NULL DEFAULT NULL COMMENT '法人身份证号', `budiness_contacts` VARCHAR(255) NULL DEFAULT NULL COMMENT '公司业务联系人', `mobile` VARCHAR(100) NULL DEFAULT NULL COMMENT '公司业务联系人手机', `email` VARCHAR(100) NULL DEFAULT NULL COMMENT '公司业务联系人邮箱', `license_number` VARCHAR(255) NULL DEFAULT NULL COMMENT '营业执照号/统一社会信用代码', `license_address` VARCHAR(255) NULL DEFAULT NULL COMMENT '营业执照号所在地', `license_start_date` DATE NULL DEFAULT NULL COMMENT '营业执照有效期/营业期限,开始时间', `license_end_date` DATE NULL DEFAULT NULL COMMENT '营业执照有效期/营业期限,结束时间', `license_dir` VARCHAR(255) NULL DEFAULT NULL COMMENT '营业执照电子版存放路径', `bank_account` VARCHAR(100) NULL DEFAULT NULL COMMENT '公司对公账号', `bank_user_name` VARCHAR(100) NULL DEFAULT NULL COMMENT '银行开户名', `bank` VARCHAR(100) NULL DEFAULT NULL COMMENT '对公账号开户行', `available` TINYINT(1) NULL DEFAULT '0' COMMENT '是否认证成功', PRIMARY KEY (`id`), UNIQUE INDEX `idx_organizations_org_name` (`org_name`) ) COMMENT='组织机构' COLLATE='utf8_general_ci' ENGINE=InnoDB ; CREATE TABLE `products` ( id BIGINT AUTO_INCREMENT COMMENT 'id 自增主键', sku_id VARCHAR(100) COMMENT '商品唯一标识', product_name VARCHAR(100) COMMENT '商品名称', icon_url VARCHAR(100) COMMENT '图标url', resource_ids VARCHAR(255) COMMENT '产品路径API', price DOUBLE COMMENT '商品单价', available BOOL DEFAULT TRUE COMMENT '商品是否可购买', description VARCHAR(255), CONSTRAINT pk_products PRIMARY KEY (id) ) CHARSET=utf8 ENGINE=Innodb COMMENT '商品'; CREATE UNIQUE INDEX idx_products_skuId ON products(sku_id); CREATE TABLE `price_package` ( id BIGINT AUTO_INCREMENT COMMENT 'id 自增主键', product_id BIGINT COMMENT 'product表id', type TINYINT COMMENT '套餐类型', amount BIGINT COMMENT '套餐包含查询次数', price DOUBLE COMMENT '套餐价格', discount INT COMMENT '套餐折扣', start_date TIMESTAMP COMMENT '有效期开始时间', end_date TIMESTAMP COMMENT '有效期截止时间', description VARCHAR(255) COMMENT '备注', CONSTRAINT pk_price_package PRIMARY KEY (id) ) CHARSET = utf8 ENGINE = Innodb COMMENT '价格套餐'; CREATE TABLE `carts` ( id BIGINT AUTO_INCREMENT COMMENT 'id 自增主键', price DOUBLE DEFAULT 0 COMMENT '总价钱', user_id BIGINT COMMENT '所属用户', status TINYINT COMMENT '购物车状态', date_created TIMESTAMP COMMENT '创建时间', date_updated TIMESTAMP COMMENT '更新时间', description VARCHAR(255) COMMENT '备注' )CHARSET = utf8 ENGINE = Innodb COMMENT '购物车'; CREATE TABLE `cart_item` ( id BIGINT AUTO_INCREMENT COMMENT 'id 自增主键', product_id BIGINT COMMENT '关联products表id', price_package_id BIGINT COMMENT '关联price_package表id', price DOUBLE COMMENT '购物车项价格', CONSTRAINT pk_cart_item PRIMARY KEY (id) ) CHARSET = utf8 ENGINE = Innodb COMMENT '购物车项'; CREATE TABLE `user_product_record` ( id BIGINT AUTO_INCREMENT COMMENT 'id 自增主键', user_id BIGINT COMMENT '用户ID', product_id BIGINT COMMENT '商品ID', counts BIGINT COMMENT '剩余次数', CONSTRAINT pk_user_product PRIMARY KEY (id), UNIQUE KEY uni_user_product (`user_id`, `product_id`) ) CHARSET = utf8 ENGINE = Innodb COMMENT '用户对应产品API使用次数'; CREATE TABLE `orders` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'id 自增主键', `order_serial` VARCHAR(100) NULL DEFAULT NULL COMMENT '订单号', `price` DOUBLE NULL DEFAULT '0' COMMENT '总价钱', `user_id` BIGINT(20) NULL DEFAULT NULL COMMENT '所属用户', `status` TINYINT(4) NULL DEFAULT NULL COMMENT '订单状态', `date_created` TIMESTAMP NULL DEFAULT NULL COMMENT '创建时间', `date_updated` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `description` VARCHAR(255) NULL DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), INDEX `fk_carts_user_id` (`user_id`) ) COMMENT='订单' COLLATE='utf8_general_ci' ENGINE=InnoDB; CREATE TABLE `order_item` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'id 自增主键', `item_num` INT(10) NOT NULL DEFAULT '1' COMMENT '购买数量', `order_id` BIGINT(20) NULL DEFAULT NULL COMMENT '关联orders表id', `product_id` BIGINT(20) NULL DEFAULT NULL COMMENT '关联products表id', `price_package_id` BIGINT(20) NULL DEFAULT NULL COMMENT '关联price_package表id', `price` DOUBLE NULL DEFAULT NULL COMMENT '订单项价格', PRIMARY KEY (`id`), INDEX `fk_cart_item_product_id` (`product_id`), INDEX `fk_cart_item_price_package_id` (`price_package_id`), INDEX `fk_cart_item_carts_id` (`order_id`) ) COMMENT='订单项' COLLATE='utf8_general_ci' ENGINE=InnoDB; ALTER TABLE `carts` CHANGE COLUMN `date_created` `date_created` TIMESTAMP NULL DEFAULT NULL COMMENT '创建时间' AFTER `status`, CHANGE COLUMN `date_updated` `date_updated` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' AFTER `date_created`; ALTER TABLE `cart_item` ADD COLUMN `item_num` INT(11) NULL DEFAULT '1' COMMENT '购买数量' AFTER `id`; ALTER TABLE `orders` ADD UNIQUE INDEX `order_serial` (`order_serial`); CREATE TABLE `invoice` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `order_id` BIGINT(20) NOT NULL COMMENT '关联orders表id', `org_name` VARCHAR(100) NOT NULL COMMENT '公司名称', `tax_id` VARCHAR(100) NOT NULL COMMENT '纳税人识别号', `reg_address` VARCHAR(255) NOT NULL COMMENT '注册地址', `reg_mobile` VARCHAR(100) NOT NULL COMMENT '注册电话', `bank` VARCHAR(100) NOT NULL COMMENT '开户银行', `bank_account` VARCHAR(100) NOT NULL COMMENT '银行帐户', `user_contacts` VARCHAR(100) NOT NULL COMMENT '收票人姓名', `user_mobile` VARCHAR(100) NOT NULL COMMENT '收票人电话', `user_address` VARCHAR(255) NOT NULL COMMENT '收票人地址', PRIMARY KEY (`id`) ) COMMENT='发票信息' COLLATE='utf8_general_ci' ENGINE=InnoDB; CREATE TABLE `tokens` ( `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT 'id 自增主键', `token` VARCHAR(255) COMMENT '用户token', user_id BIGINT NOT NULL COMMENT '所属用户id', created_date TIMESTAMP NOT NULL COMMENT '生成时间', update_date TIMESTAMP COMMENT '更新时间', effective_date TIMESTAMP NOT NULL COMMENT '生效时间', expire_date TIMESTAMP COMMENT '过期时间', product_Ids VARCHAR(255) COMMENT '产品ID', available BOOL DEFAULT TRUE COMMENT '状态,是否可用', is_test BOOL DEFAULT FALSE COMMENT '测试包token', test_count BIGINT(20) COMMENT '测试包次数', count BIGINT(20) COMMENT '剩余次数', description VARCHAR(255) COMMENT '描述', CONSTRAINT pk_tokens PRIMARY KEY (`id`) ) CHARSET = utf8 ENGINE = InnoDB COMMENT = '用户token表'; CREATE TABLE `user_log` ( `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT 'id 自增主键', `source` VARCHAR(50) COMMENT '用户查询方式,web,api', `is_test` BOOL COMMENT '是否是测试包', `log_id` VARCHAR(255) NOT NULL COMMENT '查询记录唯一标识', `user_id` BIGINT NOT NULL COMMENT '用户ID', `user_ip` VARCHAR(100) COMMENT '客户端IP', `token` VARCHAR(255) COMMENT '用户token', `data_id` BIGINT NOT NULL COMMENT '对应数据的ID', `ip` BIGINT NOT NULL COMMENT '用户查询IP', `product_id` BIGINT NOT NULL COMMENT '使用产品', `version` VARCHAR(255) NOT NULL COMMENT '数据版本', `log_date` TIMESTAMP NOT NULL COMMENT '查询日期', CONSTRAINT pk_user_log PRIMARY KEY (`id`) ) CHARSET =utf8 ENGINE InnoDB COMMENT '用户查询记录表,如果一次查询里边包含多款产品,分条记录'; CREATE TABLE `product_desc` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `product_id` BIGINT(20) UNSIGNED NULL DEFAULT NULL COMMENT '对应产品ID', `description` LONGTEXT NULL, `coverage` LONGTEXT NULL COMMENT '覆盖范围', `application_areas` LONGTEXT NULL COMMENT '应用领域', `product_features` LONGTEXT NULL COMMENT '产品特点', `concurrency` LONGTEXT NULL COMMENT '在线并发', `usage_rules` LONGTEXT NULL COMMENT '使用规范', `attention` LONGTEXT NULL COMMENT '注意事项', `discount_policies` LONGTEXT NULL COMMENT '优惠规则', PRIMARY KEY (`id`) ) CHARSET=utf8 ENGINE InnoDB COMMENT '产品详情介绍'; CREATE TABLE geoip_version ( `id` BIGINT not null AUTO_INCREMENT, `private_version` VARCHAR(255) NOT NULL COMMENT '数据版本-内部版本号', `public_version` VARCHAR(255) COMMENT '数据版本-外部版本号(对外),暂时留空', `db_name` VARCHAR(255) NOT NULL COMMENT '版本所在数据库名字', `table_name` VARCHAR(255) NOT NULL COMMENT '版本表名字', `start_time` TIMESTAMP NOT NULL COMMENT '版本上线时间', `end_time` TIMESTAMP COMMENT '版本下线时间', `desc` VARCHAR(255) COMMENT '备注', PRIMARY KEY (`id`) ) CHARSET=utf8 ENGINE InnoDB COMMENT 'GeoIP数据版本'; ALTER TABLE `orders` ADD COLUMN `is_invoice` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '是否需要发票' AFTER `description`; ALTER TABLE `discount` ADD COLUMN `accuracy_id` BIGINT(20) NULL DEFAULT NULL COMMENT '关联定位精度accuracy表id' AFTER `id`, ADD COLUMN `amount` BIGINT(20) NULL DEFAULT NULL COMMENT '套餐包含查询次数' AFTER `discount`, ADD COLUMN `price` DOUBLE NULL DEFAULT NULL COMMENT '套餐价格' AFTER `amount`, ADD COLUMN `unit` VARCHAR(20) NULL DEFAULT '元/千次' COMMENT '计价方式' AFTER `price`; ALTER TABLE `discount` CHANGE COLUMN `price_id` `price_pakage_id` BIGINT(20) NULL DEFAULT NULL COMMENT 'pricepackage表id' AFTER `accuracy_id`; ALTER TABLE `users` CHANGE COLUMN `test_count` `test_count` TINYINT(4) NULL DEFAULT '0' COMMENT '测试包购买次数' AFTER `productIds`; ALTER TABLE `cart_item` ADD COLUMN `discount` DOUBLE NULL COMMENT '折扣' AFTER `price`, ADD COLUMN `original_price` DOUBLE NULL DEFAULT NULL COMMENT '原价' AFTER `discount`; ALTER TABLE `invoice` ADD COLUMN `user_id` BIGINT(20) NOT NULL DEFAULT '0' COMMENT '关联users表ID' AFTER `id`, ADD COLUMN `user_province` VARCHAR(255) NULL NOT NULL COMMENT '收票人省份' AFTER `user_mobile`, ADD COLUMN `user_city` VARCHAR(255) NULL DEFAULT NULL COMMENT '收票人城市' AFTER `user_province`, ADD COLUMN `user_area` VARCHAR(255) NULL DEFAULT NULL COMMENT '收票人城市' AFTER `user_city`;
true
8a7521e1c595a9adfff9db971685061634e13a50
SQL
rizalzulkarnain/mastery-with-sql
/exercises/3_15.sql
UTF-8
292
3.0625
3
[]
no_license
SELECT rental_id, rental_date, return_date FROM rental WHERE return_date > rental_date OR return_date = rental_date OR return_date < rental_date; /* The reason this does not return all the rows in the table is because 183 rows have a NULL return_date. */
true
7c2ef4a2c91f60fff2d4f5548851a9918a4d2d83
SQL
CUBRID/cubrid-testcases
/sql/_31_cherry/issue_22162_more_json_functions/cases/json_functions_with_host_variable_2.sql
UTF-8
5,346
2.59375
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set @jdoc = '{"name":"Lily", "age":12, "hobbies":["Reading","Watching movies","Play tennis"]}'; set @jobj = '{"hobbies":["drawing"], "grade":5}'; set @jarr = '["flower arrangement","swimming"]'; set @int1 = 1; set @int2 = 2; set @str1 = '1'; set @str_a = 'a'; set @b1_true = 'true'; set @b2_false = 'false'; set @b3_TRUE = 'TRUE'; set @b3_False = 'False'; set @n1_null = 'null'; set @n1_NULL = NULL; set @empty_str = ''; set @path_root = '$'; set @path_0 = '$[0]'; set @path_1 = '$[1]'; prepare st from 'select json_object(?,?);'; execute st using @jdoc , @jobj ; execute st using @jobj , @jarr ; execute st using @jarr , @int1 ; execute st using @str1 , @str_a ; execute st using @b1_true , @b2_false ; execute st using @n1_null , @n1_NULL ; execute st using @n1_NULL , @empty_str ; execute st using @path_1 , @jdoc ; prepare st from 'select json_object(?,?,?,?,?,?);'; execute st using @int1, @int2, @int2, @str1, @str1, @str_a; execute st using @int1, @int2, @int2, @str1, @str_a, @b1_true; execute st using @b2_false, @b3_TRUE, @b3_TRUE, @b3_False, @b3_False, @n1_null; execute st using @empty_str, @path_root, @path_root, @path_0, @path_0, @path_1; prepare st from 'select json_array(?,?);'; execute st using @jdoc , @jobj ; execute st using @jobj , @jarr ; execute st using @jarr , @int1 ; execute st using @str1 , @str_a ; execute st using @b1_true , @b2_false ; execute st using @n1_null , @n1_NULL ; execute st using @n1_NULL , @empty_str ; execute st using @path_1 , @jdoc ; prepare st from 'select json_array(?,?,?,?,?,?);'; execute st using @int1, @int2, @int2, @str1, @str1, @str_a; execute st using @int1, @int2, @int2, @str1, @str_a, @b1_true; execute st using @b2_false, @b3_TRUE, @b3_TRUE, @b3_False, @b3_False, @n1_null; execute st using @empty_str, @path_root, @path_root, @path_0, @path_0, @path_1; prepare st from 'select json_objectagg(?,?);'; execute st using @jdoc , @jobj ; execute st using @jobj , @jarr ; execute st using @jarr , @int1 ; execute st using @int1 , @int2 ; execute st using @int2 , @str1 ; execute st using @str1 , @str_a ; execute st using @str_a , @b1_true ; execute st using @b1_true , @b2_false ; execute st using @b2_false , @b3_TRUE ; execute st using @b3_TRUE , @b3_False ; execute st using @b3_False , @n1_null ; execute st using @n1_null , @n1_NULL ; execute st using @n1_NULL , @empty_str ; execute st using @empty_str , @path_root ; execute st using @path_root , @path_0 ; execute st using @path_0 , @path_1 ; execute st using @path_1 , @jdoc ; prepare st from 'select json_merge(?,?);'; execute st using @jdoc , @jobj ; execute st using @jobj , @jarr ; execute st using @b1_true , @b2_false ; execute st using @n1_null , @n1_NULL ; execute st using @n1_NULL , @empty_str ; execute st using @jarr , @int1 ; execute st using @int1 , @int2 ; execute st using @int2 , @str1 ; execute st using @str1 , @str_a ; execute st using @str_a , @b1_true ; execute st using @b2_false , @b3_TRUE ; execute st using @b3_TRUE , @b3_False ; execute st using @b3_False , @n1_null ; execute st using @empty_str , @path_root ; execute st using @path_root , @path_0 ; execute st using @path_0 , @path_1 ; execute st using @path_1 , @jdoc ; prepare st from 'select json_merge_preserve(?,?,?,?);'; execute st using @jdoc, @jobj, @jobj, @jarr; prepare st from 'select json_merge_preserve(?,?,?,?,?);'; execute st using @jdoc, @jobj, @jobj, @jarr, @n1_null; execute st using @jdoc, @jobj, @jobj, @jarr, @n1_NULL; prepare st from 'select json_merge_patch(?,?);'; execute st using @jdoc , @jobj ; execute st using @jobj , @jarr ; execute st using @b1_true , @b2_false ; execute st using @n1_null , @n1_NULL ; --CBRD-22695 following two qureies have different results with MySQL. (fixed as return null) execute st using @n1_NULL , @empty_str ; execute st using @empty_str , @n1_NULL ; execute st using @jarr , @int1 ; execute st using @int1 , @int2 ; execute st using @int2 , @str1 ; execute st using @str1 , @str_a ; execute st using @str_a , @b1_true ; execute st using @b2_false , @b3_TRUE ; execute st using @b3_TRUE , @b3_False ; execute st using @b3_False , @n1_null ; execute st using @empty_str , @path_root ; execute st using @path_root , @path_0 ; execute st using @path_0 , @path_1 ; execute st using @path_1 , @jdoc ; prepare st from 'select json_merge_patch(?,?,?,?);'; execute st using @jdoc, @jobj, @jobj, @jarr ; prepare st from 'select json_merge_patch(?,?,?,?,?);'; execute st using @jdoc, @jobj, @jobj, @jarr, @n1_null; execute st using @jdoc, @jobj, @jobj, @jarr, @n1_NULL; drop prepare st; drop variable @jdoc, @jobj, @jarr, @int1, @int2, @str1, @b1_true, @b2_false, @b3_TRUE, @b3_False; drop variable @str_a,@path_root,@path_0,@path_1, @n1_null, @n1_NULL, @empty_str; --+ holdcas off;
true
75d94017f73f0f404dc8147af8e51b9bf8229235
SQL
kfrancoeur/Markup-Project
/schema/MarkupDB.sql
UTF-8
304
2.828125
3
[]
no_license
CREATE DATABASE MarkupProject; USE MarkupProject; CREATE TABLE IF NOT EXISTS Scores ( `RunID` INT NOT NULL AUTO_INCREMENT, `PrefixID` VARCHAR(20) NOT NULL, `DateRun` DATE NOT NULL, `TimeRun` TIME NOT NULL, `FileDate` DATE NOT NULL, `Score` INT NOT NULL DEFAULT 0, PRIMARY KEY (`RunID`) );
true
b383328150b50245b736984278492ace6d6748a3
SQL
zuokai666/WorkFlow
/workflow/src/main/resources/sql/workflow3_ddl.sql
UTF-8
3,339
3.3125
3
[]
no_license
drop table if EXISTS WorkFlowModel; create table WorkFlowModel( flowNo varchar(255) not null, phaseNo varchar(255) not null, version varchar(255) default null, phaseType varchar(255) default null, phaseName varchar(255) default null, phaseDescribe varchar(255) default null, phaseAttribute varchar(255) default null, preScript varchar(255) default null, initScript varchar(255) default null, choiceDescribe varchar(255) default null, choiceScript varchar(255) default null, actionDescribe varchar(255) default null, actionScript varchar(255) default null, postScript varchar(255) default null, attribute1 varchar(255) default null, attribute2 varchar(255) default null, attribute3 varchar(255) default null, attribute4 varchar(255) default null, attribute5 varchar(255) default null, attribute6 varchar(255) default null, attribute7 varchar(255) default null, attribute8 varchar(255) default null, attribute9 varchar(255) default null, attribute10 varchar(255) default null, standardTime1 varchar(255) default null, standardTime2 varchar(255) default null, update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, primary key (flowNo,phaseNo) )engine=InnoDB default charset=utf8 comment='流程模型'; drop table if EXISTS WorkFlowObject; create table WorkFlowObject( objectNo varchar(255) not null, objectType varchar(255) not null, applyType varchar(255) default null comment '申请类型', flowNo varchar(255) default null comment '当前流程号', flowName varchar(255) default null comment '当前流程名称', phaseNo varchar(255) default null comment '当前阶段号', phaseType varchar(255) default null comment '当前阶段类型', phaseName varchar(255) default null comment '当前阶段名称', update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, primary key (objectNo,objectType) )engine=InnoDB default charset=utf8 comment='流程对象表'; drop table if EXISTS WorkFlowTask; create table WorkFlowTask( serialNo varchar(255) not null, objectNo varchar(255) default null, objectType varchar(255) default null, relativeSerialNo varchar(255) default null comment '上一流水号', flowNo varchar(255) default null comment '流程编号', flowName varchar(255) default null comment '流程名称', phaseNo varchar(255) default null comment '阶段编号', phaseName varchar(255) default null comment '阶段名称', phaseType varchar(255) default null comment '阶段类型', applyType varchar(255) default null comment '申请类型', beginTime varchar(255) default null comment '开始时间', endTime varchar(255) default null comment '结束时间', phaseChoice varchar(255) default null comment '阶段意见', phasePinion varchar(255) default null comment '意见详情', phasePinion1 varchar(255) default null comment '意见详情1', phasePinion2 varchar(255) default null comment '意见详情2', processTaskNo varchar(255) default null comment '流程任务编号', flowState varchar(255) default null comment '流程状态', update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, primary key (serialNo) )engine=InnoDB default charset=utf8 comment='流程任务';
true
81b00e357e73905045f53f027b924c40c0b8d012
SQL
JuanesMedCol/Movies-DataBase
/Movies-DB.sql
UTF-8
5,934
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 16-04-2021 a las 21:27:43 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `films` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `gender` -- CREATE TABLE `gender` ( `gender_id` int(11) NOT NULL, `name` varchar(500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `gender` -- INSERT INTO `gender` (`gender_id`, `name`) VALUES (1, 'Acción'), (2, 'Aventura'), (3, 'Comedia'), (4, 'Terror'), (5, 'Animado'), (6, 'Suspenso'), (7, 'Infantil'), (8, 'Familiar'), (9, 'Romance'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `movie` -- CREATE TABLE `movie` ( `movie_id` int(11) NOT NULL, `name` varchar(500) NOT NULL, `description` longtext DEFAULT NULL, `image` varchar(500) NOT NULL, `create_at` datetime NOT NULL, `release_date` date DEFAULT NULL, `actors` varchar(500) DEFAULT NULL, `gender_id` int(11) NOT NULL, `rating` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `movie` -- INSERT INTO `movie` (`movie_id`, `name`, `description`, `image`, `create_at`, `release_date`, `actors`, `gender_id`, `rating`) VALUES (1, 'La Liga de la Justicia de Zack Snyder', 'Decidido a garantizar que el último sacrificio de Superman no fuera en vano, Bruce Wayne alinea fuerzas con Diana Prince con planes de reclutar un equipo de metahumanos para proteger al mundo de una amenaza inminente de proporciones catastróficas. La tarea resulta más difícil de lo que Bruce imaginaba, ya que cada uno de los reclutas debe enfrentarse a los demonios de su propio pasado para trascender lo que los ha frenado, permitiéndoles unirse y finalmente formar una liga de héroes sin precedentes. Ahora unidos, Batman, Wonder Woman, Aquaman, Cyborg y The Flash pueden ser demasiado tarde para salvar al planeta de Steppenwolf, DeSaad y Darkseid y sus terribles intenciones.', 'https://image.tmdb.org/t/p/w185_and_h278_bestv2/pI25ennflmJ1R9q7ZTI681f0WBb.jpg', '2021-04-16 18:51:28', '2021-03-15', 'Amber Heard, Amy Adams, Ann Ogbomo, Ben Affleck, Billy Crudup, Brooke Ence, Ciarán Hinds, Clem So, Connie Nielsen, David Thewlis, Diane Lane, Doutzen Kroes, Ezra Miller, Francis Magee', 1, 10), (3, 'Godzilla vs. Kong', 'Godzilla y Kong, dos de las fuerzas más poderosas de un planeta habitado por todo tipo de aterradoras criaturas, se enfrentan en un espectacular combate que sacude los cimientos de la humanidad. Monarch (Kyle Chandler) se embarca en una misión de alto riesgo y pone rumbo hacia territorios inexplorados para descubrir los orígenes de estos dos titanes, en un último esfuerzo por tratar de salvar a dos bestias que parecen tener las horas contadas sobre la faz de la Tierra.', 'https://image.tmdb.org/t/p/w185_and_h278_bestv2/bnuC6hu7AB5dYW26A3o6NNLlIlE.jpg', '2021-04-16 14:18:32', '2021-03-25', 'Alexander Skarsgård, Benjamin Rigby, Brad McMurray, Bradd Buckley, Brian Tyree Henry, Chris Chalk, Conlan Casal, Daniel Nelson, David Castillo, Demián Bichir, Drew Walton, Eiza González, Erol Brandis, Hakeem Kae-Kazim', 1, 5); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `profile` -- CREATE TABLE `profile` ( `profile_id` int(11) NOT NULL, `name` varchar(500) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `profile` -- INSERT INTO `profile` (`profile_id`, `name`) VALUES (1, 'Administrador'), (2, 'Cliente'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `user` -- CREATE TABLE `user` ( `user_id` int(11) NOT NULL, `name` varchar(500) NOT NULL, `email` varchar(100) NOT NULL, `password` varchar(500) NOT NULL, `create_at` datetime NOT NULL, `profile_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `user` -- INSERT INTO `user` (`user_id`, `name`, `email`, `password`, `create_at`, `profile_id`) VALUES (1, 'Juan Atehortua', '[email protected]', 'DEMO1234', '2021-04-15 23:45:29', 1), (2, 'Esteban Sanchez', '[email protected]', 'EJEMPLO', '2021-04-15 23:45:29', 2), (4, 'Juanes AtSa', '[email protected]', '123456789', '2021-04-16 14:17:41', 1); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `gender` -- ALTER TABLE `gender` ADD PRIMARY KEY (`gender_id`); -- -- Indices de la tabla `movie` -- ALTER TABLE `movie` ADD PRIMARY KEY (`movie_id`), ADD KEY `gender_id` (`gender_id`); -- -- Indices de la tabla `profile` -- ALTER TABLE `profile` ADD PRIMARY KEY (`profile_id`); -- -- Indices de la tabla `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `email` (`email`), ADD KEY `profile_id` (`profile_id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `movie` -- ALTER TABLE `movie` MODIFY `movie_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `user` -- ALTER TABLE `user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `movie` -- ALTER TABLE `movie` ADD CONSTRAINT `movie_ibfk_1` FOREIGN KEY (`gender_id`) REFERENCES `gender` (`gender_id`); -- -- Filtros para la tabla `user` -- ALTER TABLE `user` ADD CONSTRAINT `user_ibfk_1` FOREIGN KEY (`profile_id`) REFERENCES `profile` (`profile_id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
94ee6c293f0ece60cb5ca4553679f65e03bb4ac5
SQL
betacompany/pipeinpipe
/main/auxiliaries/sql/update-001.sql
UTF-8
2,208
3.375
3
[]
no_license
CREATE DATABASE `ortemij` DEFAULT CHARACTER SET cp1251 COLLATE cp1251_general_ci; GRANT ALL PRIVILEGES ON * . * TO 'abracadabra'@'%' IDENTIFIED BY 'zcjcexkty' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ; CREATE TABLE `p_men` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR( 128 ) NOT NULL , `surname` VARCHAR( 128 ) NOT NULL , `gender` ENUM( 'm', 'f' ) NOT NULL , `country` VARCHAR( 128 ) NOT NULL , `city` VARCHAR( 128 ) NOT NULL , `email` VARCHAR( 128 ) NOT NULL , `wiki` TEXT NOT NULL , `iswpr` ENUM( '0', '1' ) NOT NULL , PRIMARY KEY ( `id` ) ); CREATE TABLE `p_leagues` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR( 256 ) NOT NULL , `wiki` TEXT NOT NULL , PRIMARY KEY ( `id` ) ); CREATE TABLE `p_competitions` ( `id` INT NOT NULL AUTO_INCREMENT , `league_id` INT NOT NULL , `name` VARCHAR( 128 ) NOT NULL , `season` VARCHAR( 16 ) NOT NULL , `date` DATE NOT NULL , `coef` INT NOT NULL , PRIMARY KEY ( `id` ) ); ALTER TABLE `p_competitions` ADD `wiki` TEXT NOT NULL AFTER `coef` ; CREATE TABLE `p_cups` ( `id` INT NOT NULL AUTO_INCREMENT , `competition_id` INT NOT NULL , `parent_cup_id` INT NOT NULL , `type` ENUM( 'playoff', 'one-lap', 'two-laps' ) NOT NULL , PRIMARY KEY ( `id` ) ); CREATE TABLE `p_men_cups` ( `id` INT NOT NULL AUTO_INCREMENT , `pmid` INT NOT NULL , `cup_id` INT NOT NULL , `date` DATE NOT NULL , `points` DOUBLE NOT NULL , `place` INT NOT NULL , PRIMARY KEY ( `id` ) ); CREATE TABLE `p_rating` ( `id` INT NOT NULL AUTO_INCREMENT , `league_id` INT NOT NULL , `pmid` INT NOT NULL , `points` DOUBLE NOT NULL , PRIMARY KEY ( `id` ) ); ALTER TABLE `p_rating` ADD `date` DATE NOT NULL AFTER `points` , ADD `rating_place` INT NOT NULL AFTER `date` ; CREATE TABLE `p_games` ( `id` INT NOT NULL AUTO_INCREMENT , `cup_id` INT NOT NULL , `stage` INT NOT NULL , `tour` INT NOT NULL , `pmid1` INT NOT NULL , `pmid2` INT NOT NULL , `score1` INT NOT NULL , `score2` INT NOT NULL , `timestamp` TIMESTAMP NOT NULL , `is_tech` ENUM( '0', '1' ) NOT NULL , PRIMARY KEY ( `id` ) );
true
70d37ddc801b21c1e50622239bdcd40e31d49392
SQL
j7ng/CLFY_SA
/SA/Tables/BIZ_ERROR_TABLE.sql
UTF-8
668
2.765625
3
[]
no_license
CREATE TABLE sa.biz_error_table ( error_text VARCHAR2(400 BYTE), error_date DATE, error_num VARCHAR2(400 BYTE), error_key VARCHAR2(100 BYTE), program_name VARCHAR2(100 BYTE) ); COMMENT ON TABLE sa.biz_error_table IS 'Table Will Log The Errors Occured During The Fulfillment'; COMMENT ON COLUMN sa.biz_error_table.error_text IS 'Error_Message'; COMMENT ON COLUMN sa.biz_error_table.error_date IS 'Error_Date'; COMMENT ON COLUMN sa.biz_error_table.error_num IS 'Error_Number'; COMMENT ON COLUMN sa.biz_error_table.error_key IS 'To Identify The Error_Key '; COMMENT ON COLUMN sa.biz_error_table.program_name IS 'Error Occured In Perticular Program';
true
820258be2d5109f493c98a306d2e1be79663d19f
SQL
FrancescoCt/hw2
/Db.sql
UTF-8
52,186
3.546875
4
[]
no_license
-- PROGETTO DATABASE GESTIONE CATENA MAGAZZINI FRANCESCO CATANIA O46002194 ING. INFORMATICA -- ______________________________________________ CREATE TABLES ______________________________________________ --Disclaimer: tutte le tabelle sono già descritte ampiamente nella presentazione /*Dopo aver eseguito i comandi in ordine:*/ mysql -u root create database magazzino_modificato; use magazzino_modificato; /*PRODOTTO */ create table prodotto( codice integer primary key, nome varchar(20), marca varchar(20), /*Parte nuova rispetto all'originale*/ immagine varchar(50) /*Fine parte nuova rispetto all'originale*/ )engine = InnoDB; /*PEZZI*/ create table pezzi( id integer(10) not null auto_increment primary key, codice_prodotto integer, id1 integer, prezzo float, /*primary key(codice_prodotto, id),*/ foreign key (codice_prodotto) references prodotto(codice) on update cascade on delete cascade, index(codice_prodotto) )engine = InnoDB; /*CLIENTE */ create table cliente( cf varchar(20) primary key, nome varchar(20), cognome varchar(20), telefono integer, nascita date, eta integer, abbonamento varchar(20), /*Parte nuova rispetto all'originale*/ userPswd varchar(32), created_at TIMESTAMP NOT NULL, updated_at TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW() /*Fine parte nuova rispetto all'originale*/ )engine = InnoDB; /*Nuova aggiunta: tabella preferiti*/ create table preferiti( id integer(10) not null auto_increment primary key, cliente_cf varchar(20) not null, pezzi_id integer(10) not null, /*cf varchar(20),*/ immagine varchar(100), ora time, giorno date, created_at TIMESTAMP NOT NULL, updated_at TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW() )engine = InnoDB; /*IMPIEGATO*/ create table impiegato( cf varchar(20) primary key, nome varchar(20), cognome varchar(20), telefono integer, nascita date, matricola integer, ruolo varchar(20) )engine = InnoDB; /*FORNITORE*/ create table fornitore( codice integer primary key, nome varchar(20), sede varchar(20), via varchar (20), /*Parte nuova rispetto all'originale*/ immagine varchar(50) /*Fine parte nuova rispetto all'originale*/ )engine = InnoDB; /*FILIALE*/ create table filiale( codice integer primary key, citta varchar(20), via varchar (20) )engine = InnoDB; /*AFFERENZA_CORRENTE*/ create table afferenza_corrente( impiegato varchar(20) primary key, filiale integer, inizio date, foreign key (impiegato) references impiegato(cf) on update cascade on delete cascade, foreign key (filiale) references filiale(codice) on update cascade on delete cascade, index (impiegato), index(filiale) )engine = InnoDB; /*AFFERENZA_PASSATA*/ create table afferenza_passata( impiegato varchar(20) , filiale integer, inizio date, fine date, primary key(impiegato, filiale, inizio, fine), foreign key (impiegato) references impiegato(cf) on update cascade on delete cascade, foreign key (filiale) references filiale(codice) on update cascade on delete cascade, index(impiegato), index(filiale) )engine = InnoDB; /*REPARTO*/ create table reparto( filiale integer , codice integer, nome varchar(20), /*Parte nuova rispetto all'originale*/ immagine varchar(50), /*Parte nuova rispetto all'originale*/ primary key(filiale,codice), foreign key (filiale) references filiale(codice) on update cascade on delete cascade, index(filiale) )engine = InnoDB; /*SEZIONE*/ create table sezione( filiale integer , reparto integer, codice integer, nome varchar(20), disponibile integer, primary key(filiale, reparto, codice), foreign key (filiale, reparto) references reparto(filiale, codice) on update cascade on delete cascade, index(filiale, reparto) )engine = InnoDB; /*DEPOSITO*/ create table deposito( filiale integer, reparto integer, sezione integer, prodotto integer , id_prodotto integer, ora time, giorno date, mittente varchar(20), primary key(prodotto, id_prodotto), foreign key (filiale, reparto, sezione) references sezione(filiale, reparto, codice) on update cascade on delete cascade, /*foreign key (prodotto, id_prodotto) references pezzi(codice_prodotto, id) on update cascade on delete cascade,*/ foreign key (id_prodotto) references pezzi(id) on update cascade on delete cascade, index(filiale, reparto, sezione) /*index(prodotto, id_prodotto)*/ )engine = InnoDB; /*TIROCINIO*/ create table tirocinio( magazziniere varchar(20), caporeparto varchar(20), inizio date, fine date , primary key(magazziniere), unique(caporeparto), foreign key (magazziniere) references impiegato(cf) on update cascade on delete cascade, foreign key (caporeparto) references impiegato(cf) on update cascade on delete cascade, index (magazziniere), index (caporeparto) )engine = InnoDB; /*ORDINE*/ create table ordine( gestore varchar(20), fornitore integer, prodotto integer, quantita integer, inizio date, previsto date , primary key(gestore, fornitore, prodotto, inizio), foreign key (gestore) references impiegato(cf) on update cascade on delete cascade, foreign key (fornitore) references fornitore(codice) on update cascade on delete cascade, foreign key (prodotto) references prodotto(codice) on update cascade on delete cascade, index (gestore), index (fornitore), index (prodotto) )engine = InnoDB; /*ACQUISTO*/ create table acquisto( codice_prodotto integer, id_prodotto integer, cliente varchar(20), giorno date, ora time , ricavo float, /*primary key(codice_prodotto, id_prodotto),*/ foreign key (id_prodotto) references pezzi(id) on update cascade on delete cascade, foreign key (cliente) references cliente(cf) on update cascade on delete cascade, index (codice_prodotto, id_prodotto), index (cliente) )engine = InnoDB; /*GESTIONE*/ create table gestione( magazziniere varchar(20), filiale integer, reparto integer, sezione integer, primary key(filiale, reparto, sezione), foreign key (magazziniere) references impiegato(cf) on update cascade on delete cascade, foreign key (filiale, reparto, sezione) references sezione(filiale, reparto, codice) on update cascade on delete cascade, index (magazziniere), index (filiale, reparto, sezione) )engine = InnoDB; /*CONTROLLO*/ create table controllo( caporeparto varchar(20), filiale integer, codice integer, primary key(caporeparto), unique (filiale, codice), foreign key (caporeparto) references impiegato(cf) on update cascade on delete cascade, foreign key (filiale, codice) references reparto(filiale, codice) on update cascade on delete cascade, index (caporeparto), index (filiale, codice) )engine = InnoDB; --______________________________________________ TRIGGERS ______________________________________________ /* 1 Un impiegato controlla un solo reparto e solo se è caporeparto*/ delimiter // create trigger caporeparto before insert on controllo for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è caporeparto'; if(select ruolo from impiegato where cf = new.caporeparto ) != 'caporeparto' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; delimiter // create trigger caporeparto1 before update on controllo for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è caporeparto'; if(select ruolo from impiegato where cf = new.caporeparto ) != 'caporeparto' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; /*2 L'impiegato può effettuare ordini solo se è gestore*/ delimiter // create trigger gestore before insert on ordine for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è gestore'; if(select ruolo from impiegato where cf = new.gestore ) != 'gestore' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; delimiter // create trigger gestore1 before update on ordine for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è gestore'; if(select ruolo from impiegato where cf = new.gestore ) != 'gestore' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; /*3 Un impiegato gestisce una sezione solo se è magazziniere*/ delimiter // create trigger magazziniere before insert on gestione for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è magazziniere'; if(select ruolo from impiegato where cf = new.magazziniere ) != 'magazziniere' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; delimiter // create trigger magazziniere1 before update on gestione for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è magazziniere'; if(select ruolo from impiegato where cf = new.magazziniere ) != 'magazziniere' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; /*4 Il tirocinio avviene solo tra impiegato con ruolo magazziniere e caporeparto*/ delimiter // create trigger apprendistato before insert on tirocinio for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è magazziniere'; if(select ruolo from impiegato where cf = new.magazziniere ) != 'magazziniere' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; set errorMessage = 'Questo impiegato non è caporeparto'; if(select ruolo from impiegato where cf = new.caporeparto ) != 'caporeparto' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; delimiter // create trigger apprendistato1 before update on tirocinio for each row begin declare errorMessage varchar(255); set errorMessage = 'Questo impiegato non è magazziniere'; if(select ruolo from impiegato where cf = new.magazziniere ) != 'magazziniere' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; set errorMessage = 'Questo impiegato non è caporeparto'; if(select ruolo from impiegato where cf = new.caporeparto ) != 'caporeparto' then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end // delimiter ; /*5 L'abbonamento di cliente può essere "settimanale", "mensile", "annuale" e comporta una riduzione di prezzo rispettivamente del 10%, 15%, 20%*/ --N.B: questo trigger implementa la business rule n.3 delimiter // create trigger sconto before insert on acquisto for each row begin set new.ricavo= case when (select abbonamento from cliente where cf = new.cliente ) = 'settimanale' then (select prezzo from pezzi where codice_prodotto=new.codice_prodotto and id1 = new.id_prodotto) - ((select prezzo from pezzi where codice_prodotto=new.codice_prodotto and id1 = new.id_prodotto)*0.10) when (select abbonamento from cliente where cf = new.cliente ) = 'mensile' then (select prezzo from pezzi where codice_prodotto=new.codice_prodotto and id1 = new.id_prodotto) - ((select prezzo from pezzi where codice_prodotto=new.codice_prodotto and id1 = new.id_prodotto)*0.15) when (select abbonamento from cliente where cf = new.cliente ) = 'annuale' then (select prezzo from pezzi where codice_prodotto=new.codice_prodotto and id1 = new.id_prodotto) - ((select prezzo from pezzi where codice_prodotto=new.codice_prodotto and id1 = new.id_prodotto)*0.20) else new.ricavo end; end // delimiter ; /*6 Ogni oggetto per ipotesi ha peso 1, al momento dell'inserimento in deposito bisogna implementare un trigger per insert e update*/ -- N.B: Questo trigger implementa la Business rule n.1 delimiter // create trigger spazio before insert on deposito for each row begin declare errorMessage varchar(255); set errorMessage = 'Spazio nella sezione terminato!'; if(select disponibile from sezione where filiale = new.filiale and reparto = new.reparto and codice = new.sezione ) = 0 then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; update sezione set disponibile = (disponibile-1) where filiale = new.filiale and reparto = new.reparto and codice = new.sezione; end // delimiter ; delimiter // create trigger spazio1 before update on deposito for each row begin declare errorMessage varchar(255); set errorMessage = 'Spazio nella sezione terminato!'; if(select disponibile from sezione where filiale = new.filiale and reparto = new.reparto and codice = new.sezione ) = 0 then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; update sezione set disponibile = (disponibile+1) where filiale = old.filiale and reparto = old.reparto and codice = old.sezione; update sezione set disponibile = (disponibile-1) where filiale = new.filiale and reparto = new.reparto and codice = new.sezione; end // delimiter ; delimiter // create trigger spazio2 after delete on deposito for each row begin declare errorMessage varchar(255); set errorMessage = 'Spazio nella sezione terminato!'; update sezione set disponibile = (disponibile+1) where filiale = old.filiale and reparto = old.reparto and codice = old.sezione; end // delimiter ; /*7) Al momento dell'ordine vengono generati dei pezzi con prezzo null e codice prodotto uguale a quello dell'ordine*/ delimiter // create trigger ordinativo after insert on ordine for each row begin DECLARE variabile INT; Declare indice int; SET variabile = 1; set indice = (select max(id1) from pezzi where codice_prodotto = new.prodotto); WHILE variabile <= new.quantita DO INSERT INTO pezzi VALUES (new.prodotto, (variabile+indice ), null); SET variabile = variabile + 1; END WHILE; end// delimiter ; /*8 Trasferire i dati di afferenza_corrente in afferenza_passata mettendo come fine la data corrente*/ delimiter // create trigger trasferimento after update on afferenza_corrente for each row begin if(new.filiale != old.filiale) then insert into afferenza_passata values (new.impiegato,old.filiale, (select inizio from afferenza_corrente where impiegato = new.impiegato), current_date()); end if; end// delimiter ; /*9a) Trigger su gestione per inserire in corrente tutti i magazzinieri con rispettiva filiale*/ delimiter // create trigger aff_c1 after insert on gestione for each row begin /*Controllo che il magazziniere non sia stato già registrato prima altrimenti lo inserisco*/ if new.magazziniere not in (select impiegato from afferenza_corrente) then INSERT INTO afferenza_corrente VALUES (new.magazziniere, new.filiale, current_date()); end if; end// delimiter ; /*9b) Trigger su controllo per inserire in corrente tutti i caporeparto con rispettiva filiale*/ delimiter // create trigger aff_c3 after insert on controllo for each row begin if new.caporeparto not in (select impiegato from afferenza_corrente) then INSERT INTO afferenza_corrente VALUES (new.caporeparto, new.filiale, current_date()); end if; end// delimiter ; /*10 Controllare che la data immessa in afferenza_passata sia minore di quella dell'afferenza_corrente*/ delimiter // create trigger c1 before insert on afferenza_passata for each row begin declare errorMessage varchar(255); set errorMessage = 'Ci deve essere un errore di ritorno al futuro'; if datediff(new.fine,(select max(inizio) from afferenza_corrente)) < 0 or datediff(new.inizio, new.fine) > 0 then signal sqlstate '45000' set MESSAGE_TEXT = errorMessage; end if; end// delimiter ; /*11 All'acquisto, il prodotto viene cancellato dal deposito*/ delimiter // create trigger uscita after insert on acquisto for each row begin update sezione set disponibile = (disponibile+1) where (select d.filiale from deposito d where d.prodotto = new.codice_prodotto and id_prodotto = new.id_prodotto) = filiale and (select d.reparto from deposito d where d.prodotto = new.codice_prodotto and id_prodotto = new.id_prodotto) = reparto and (select d.sezione from deposito d where d.prodotto = new.codice_prodotto and id_prodotto = new.id_prodotto) = codice; delete from deposito where prodotto=new.codice_prodotto and id_prodotto=new.id_prodotto; end// delimiter ; --______________________________________________ PROCEDURE ______________________________________________ /*1) call cliente(codicefiscale) : visualizza tutti i dettagli di un singolo cliente nella tabella CLIENTE*/ delimiter // create procedure cliente(in codicefiscale varchar(20)) begin if codicefiscale in (select cf from impiegato) then select c.nome, c.cognome, c.nascita, c.eta, c.telefono, c.abbonamento, i.matricola, i.ruolo from cliente c right join impiegato i on (c.cf = i.cf) where c.cf = codicefiscale group by c.cf; else select * from cliente where cf = codicefiscale; end if; end // delimiter ; /*2) Operazione di lettura che mi consente di vedere le fasce di età dei miei clienti*/ delimiter // create procedure fasce(in e integer) begin if e is null then select eta, count(cf) as Numero_Clienti from cliente group by eta order by eta; else select eta, count(cf) as Numero_Clienti from cliente where eta = e group by eta order by eta; end if; end // delimiter ; /*3) call acquisto(codicefiscale, codice_prodotto, id_prodotto) : se il cliente ha età tra i 12 e 18 anni ottiene uno sconto ulteriore del 0.08% su quello che acquista (più l'abbonamento) se il cliente ha età tra i 18 e 28 anni ottiene uno sconto ulteriore del 0.10% su quello che acquista (più l'abbonamento) se il cliente ha età maggiore di 18 anni ottiene uno sconto ulteriore del 0.12% su quello che acquista (più l'abbonamento) Siccome il bonus derivato si aggiunge a quello già implementato col trigger dell'abbonamento, intervengo sul prezzo del pezzo, non sul ricavo direttamente */ delimiter // create procedure acquisto(in cod_prod integer, in id_prod integer, in codf varchar(20)) begin update pezzi set prezzo = case when (select eta from cliente where cf = codf ) > 12 and (select eta from cliente where cf = codf ) < 18 then (prezzo - prezzo*0.08) when (select eta from cliente where cf = codf ) >= 18 and (select eta from cliente where cf = codf ) < 28 then (prezzo - prezzo*0.10) when (select eta from cliente where cf = codf ) >= 28 then (prezzo - prezzo*0.12) end where codice_prodotto = cod_prod and id1 = id_prod; insert into acquisto values (cod_prod, id_prod, codf, current_date(), current_time(), '1.1'); update pezzi set prezzo = (prezzo + prezzo*0.10) where codice_prodotto = cod_prod and id1 = id_prod; end // delimiter ; /*4) call spazio(filiale) : vedo quanto spazio ho disponibile in ogni reparto di una filiale per accumulare pezzi in magazzino*/ delimiter // create procedure spazio(in fil integer) begin select s.reparto, r.nome ,sum(s.disponibile) as spazio from sezione s join reparto r on(s.reparto = r.codice) where s.filiale = fil group by reparto; end // delimiter ; /*5) Operazione di cambio*/ delimiter // create procedure cambio(in cod_prod_nuovo integer, in id_prod_nuovo integer, in cod_prod_vecchio integer, in id_prod_vecchio integer, in cf varchar(20)) begin /*Mi assicuro che il pezzo da cambiare esista in deposito*/ if (cod_prod_nuovo, id_prod_nuovo) in (select prodotto, id_prodotto from deposito) then /*Salvo la filiale dell'oggetto nuovo (è lì che metterò il cambio)*/ drop table if exists temp; create temporary table temp(fil integer, rep integer, sez integer); insert into temp values( (select filiale from deposito where prodotto = cod_prod_nuovo and id_prodotto = id_prod_nuovo), (select reparto from deposito where prodotto = cod_prod_nuovo and id_prodotto = id_prod_nuovo), (select sezione from deposito where prodotto = cod_prod_nuovo and id_prodotto = id_prod_nuovo)); /*modifico il prodotto acquistato, non uso l'update per vincoli di integrità legati all'update nelle figlie*/ insert into acquisto values(cod_prod_nuovo, id_prod_nuovo, cf, current_date(), current_time(), 1.1); delete from acquisto where codice_prodotto = cod_prod_vecchio and id_prodotto = id_prod_vecchio; /*segnalo che si è liberato spazio nella sezione del pezzo nuovo*/ update sezione set disponibile = (disponibile+1) where (select d.filiale from deposito d where d.prodotto = cod_prod_nuovo and id_prodotto = id_prod_nuovo) = filiale and (select d.reparto from deposito d where d.prodotto = cod_prod_nuovo and id_prodotto = id_prod_nuovo) = reparto and (select d.sezione from deposito d where d.prodotto = cod_prod_nuovo and id_prodotto = id_prod_nuovo) = codice; /*segnalo che c'è meno spazio nella sezione del prodotto che ci stava prima*/ update sezione set disponibile = (disponibile-1) where (select d.filiale from deposito d where d.prodotto = cod_prod_vecchio and id_prodotto = id_prod_vecchio) = filiale and (select d.reparto from deposito d where d.prodotto = cod_prod_vecchio and id_prodotto = id_prod_vecchio) = reparto and (select d.sezione from deposito d where d.prodotto = cod_prod_vecchio and id_prodotto = id_prod_vecchio) = codice; /*Cancello dal deposito l'altro oggetto*/ delete from deposito where prodotto=cod_prod_nuovo and id_prodotto=id_prod_nuovo; /*Inserisco in deposito il pezzo scambiato, ricorrendo alla temporale di prima*/ insert into deposito values ( (select fil from temp), (select rep from temp), (select sez from temp), cod_prod_vecchio, id_prod_vecchio, current_time(), current_date(), null); /*Se non funziona rimettere qui la delete*/ end if; end// delimiter ; --6) Bilancio complessivo delimiter // create procedure bilancio() begin declare abbonamenti float; declare acquisti float; declare spese_personale float; declare spese_immobili float; set abbonamenti = (select sum(entrata) from abbonamenti); set acquisti = (select sum(ricavo) from acquisto); set spese_personale = (select sum(retribuzione) from spese); set spese_immobili = (select (100*count(codice)) from filiale); select abbonamenti, acquisti, spese_personale, spese_immobili; end // delimiter ; /*7) Operazione che mi permette di vedere mediamente gli acquisti da chi sono stati fatti e in che quantita*/ delimiter // create procedure acquisti(in e integer) begin if e is null then select eta, count(cf) as Numero_Clienti, avg(ricavo) as Spesa_media from cliente join acquisto on (cf=cliente) group by eta order by eta; else select eta, count(cf) as Numero_Clienti, avg(ricavo) as Spesa_media from cliente join acquisto on (cf=cliente) where eta = e group by eta order by eta; end if; end // delimiter ; /*8) Procedura di trasferimento*/ delimiter // create procedure trasferisci (in impieg varchar(20), in fil integer, fine_corrente date) begin update afferenza_corrente set filiale = fil where impiegato = impieg; update afferenza_corrente set inizio=current_date() where impiegato = impieg; end // delimiter ; /*9) call percorso(codicefiscale) : una join delle due tabelle di storicizzazione per vedere i mesi di un impiegato in una filiale da sistemare alla luce della view*/ delimiter // create procedure percorso(in codicefiscale varchar(20)) begin if codicefiscale in (select cf from impiegato) then select c.impiegato, c.filiale as Corrente, p.filiale as Passata , sum(coalesce (datediff(p.fine,p.inizio), 0)+ datediff(current_date(), c.inizio)) as giorni_trascorsi from afferenza_corrente c left join afferenza_passata p on (c.impiegato = p.impiegato) where c.impiegato = codicefiscale ; end if ; end // delimiter ; -- Altre procedure non menzionate -- Vedo quanti prodotti non sono in magazzino e ne mostro i nomi delimiter // create procedure collocandi() begin select nome,marca,codice, id1, prezzo from pezzi join prodotto on (codice_prodotto= codice) where codice_prodotto not in (select prodotto from deposito); end // delimiter ; -- Inserimento di inter blocchi di pezzi in una sezione in data e ora dell'inserimento delimiter // create procedure posa(fil integer, rep integer, sez integer, prod integer, mitt integer) begin insert into deposito select fil, rep, sez, prod, id1 , current_time(), current_date(), mitt from pezzi join prodotto on(codice_prodotto= codice) where codice = prod; end// delimiter ; --Aggiornamento eta delimiter // create procedure eta() begin update cliente set eta = (datediff(current_date(), nascita)/365); end// delimiter ; -- ______________________________________________ VISTE ______________________________________________ --una visione del rendimento generale di un prodotto acquistato create view media as select nome, marca, count(cliente) as Acquistato, avg(ricavo) as Ricavo_medio from prodotto join acquisto on (codice = codice_prodotto) group by codice_prodotto; --una visione sulle spese totali create view spese as select c.impiegato, sum(coalesce (datediff(p.fine,p.inizio), 0)+datediff(current_date(), c.inizio)) as giorni_trascorsi, case when(select ruolo from impiegato where cf = c.impiegato)= 'magazziniere'then sum(coalesce (datediff(p.fine,p.inizio) , 0) + datediff(current_date(), c.inizio))*45 when(select ruolo from impiegato where cf = c.impiegato) = 'caporeparto' then sum(coalesce (datediff(p.fine,p.inizio), 0)+ datediff(current_date(), c.inizio))*55 when(select ruolo from impiegato where cf = c.impiegato) = 'gestore' then sum(coalesce (datediff(p.fine,p.inizio), 0)+ datediff(current_date(), c.inizio))*70 end as retribuzione from afferenza_corrente c left join afferenza_passata p on (c.impiegato = p.impiegato) group by c.impiegato; --implementare una vista che mi permette di vedere quanti pezzi di un prodotto ci sono complessivamente --(per vederlo nella singola filiale basta guardare deposito) create view unita as select nome, marca, prodotto, count(prodotto) as n_pezzi from deposito join prodotto on (codice = prodotto) group by prodotto; /*Es. sbagliato: select nome, count(prodotto) from deposito, prodotto group by prodotto; Bisogna fare la join: select nome, marca, prodotto, count(prodotto) from deposito join prodotto on (codice = prodotto) group by prodotto;*/ --implementare una vista con il ricavo degli abbonamenti che i clienti hanno acquistato create view abbonamenti as select abbonamento, count(abbonamento) n_abbonamenti, case when abbonamento = 'settimanale' then (count(abbonamento)*25.00) when abbonamento = 'mensile' then (count(abbonamento)*50.00) when abbonamento = 'annuale' then (count(abbonamento)*60.00) end as entrata from cliente group by abbonamento; --implementare una vista che mostri il valore totale di prodotti stipati in ogni filiale create view potenziale as select filiale, sum(prezzo) as Valore_potenziale from deposito join pezzi on(codice_prodotto = prodotto and id1=id_prodotto) join prodotto on(prodotto = codice) group by filiale; --implementare una vista con i dettagli sui pezzi e rispettivo valore in magazzino create view potenziale_prodotto select nome, marca, prodotto, sum(prezzo) as Valore_potenziale from deposito join pezzi on(codice_prodotto = prodotto and id1=id_prodotto) join prodotto on(prodotto = codice) group by prodotto; -- ______________________________________________ CODICE TERMINATO ______________________________________________ --____________________________________________________________________________________________________________________________ -- ______________________________________________ QUALCHE INSERT ______________________________________________ /*Nuove insert per PREFERITI*/ /*cf varchar(20), immagine varchar(100), ora time, giorno date,*/ /*insert into preferiti(cf, immagine, ora, giorno) values ('CTFR55','http://localhost/Sogno_Italiano/Immagini/magliettaRagazzo.jfif',current_time(), current_date());*/ insert into preferiti(cliente_cf, pezzi_id, immagine, ora, giorno) values ('CTFR55','12', 'http://localhost/Sogno_Italiano/Immagini/magliettaRagazzo.jfif',current_time(), current_date()); insert into preferiti(cliente_cf, pezzi_id, immagine, ora, giorno) values ('CTFR55','14', 'http://localhost/Sogno_Italiano/Immagini/magliettaRagazza.jfif',current_time(), current_date()); insert into preferiti(cliente_cf, pezzi_id, immagine, ora, giorno) values ('CTFR56','14', 'http://localhost/Sogno_Italiano/Immagini/magliettaRagazza.jfif',current_time(), current_date()); /*PRODOTTO (CODICE, NOME, MARCA, IMMAGINE)*/ insert into prodotto values('1', 'Camicia', 'Navigare', 'CamiciaJeansUomo.jpg'); insert into prodotto values('2', 'Maglia', 'Gucci', 'MagliaDonna.jpg'); insert into prodotto values('3', 'Felpa', 'Adidas', 'FelpaRagazza.jpg'); insert into prodotto values('4', 'Jeans', 'Gucci', 'JeansUomo.jpg'); insert into prodotto values('5', 'Camicia', 'Nikita', 'CamiciaUomo.jpg'); insert into prodotto values('6', 'Pigiama', 'Trussardi', 'PigiamaUomo.jpg'); insert into prodotto values('7', 'Jeans', 'Wrangler', 'CamiciaJeansUomo.jpg'); insert into prodotto values('8', 'Parka', 'Robe di kappa', 'ParkaRagazza.jpg'); insert into prodotto values('9', 'Felpa', 'Tommy Hilfiger', 'felpa.jfif'); insert into prodotto values('10', 'Camicia', 'Supreme', 'CamiciaDonna.jpg'); insert into prodotto values('11', 'Camicia', 'Levi s', 'CamiciaJeansUomo.jpg'); insert into prodotto values('12', 'Maglietta', 'Nike', 'magliettaRagazzo.jfif'); insert into prodotto values('13', 'Maglietta', 'Xiaoyao', 'magliettaRagazzo1.jfif'); insert into prodotto values('14', 'Maglietta', 'Norway', 'magliettaRagazza.jfif'); /*PEZZI (CODICE_PRODOTTO, ID, PREZZO)*/ /*codice_prodotto integer, id1 integer, prezzo float,*/ insert into pezzi(codice_prodotto, id1, prezzo) values ('1','1','179.38'); insert into pezzi(codice_prodotto, id1, prezzo) values ('1','2','179.38'); insert into pezzi(codice_prodotto, id1, prezzo) values ('1','3','179.38'); insert into pezzi(codice_prodotto, id1, prezzo) values ('1','4','179.38'); insert into pezzi (codice_prodotto, id1, prezzo)values ('1','5','179.38'); insert into pezzi(codice_prodotto, id1, prezzo) values ('2','1','44.7'); insert into pezzi(codice_prodotto, id1, prezzo) values ('2','2','44.17'); insert into pezzi(codice_prodotto, id1, prezzo) values ('2','3','44.17'); insert into pezzi(codice_prodotto, id1, prezzo) values ('2','4','44.17'); insert into pezzi (codice_prodotto, id1, prezzo)values ('2','5','44.17'); insert into pezzi(codice_prodotto, id1, prezzo) values ('3','1','110.59'); insert into pezzi(codice_prodotto, id1, prezzo) values ('3','2','110.59'); insert into pezzi(codice_prodotto, id1, prezzo) values ('3','3','110.59'); insert into pezzi(codice_prodotto, id1, prezzo) values ('3','4','110.59'); insert into pezzi(codice_prodotto, id1, prezzo) values ('3','5','110.59'); insert into pezzi(codice_prodotto, id1, prezzo) values ('4','1','14.6'); insert into pezzi(codice_prodotto, id1, prezzo) values ('4','2','14.56'); insert into pezzi(codice_prodotto, id1, prezzo) values ('4','3','14.56'); insert into pezzi(codice_prodotto, id1, prezzo) values ('4','4','14.56'); insert into pezzi(codice_prodotto, id1, prezzo) values ('4','5','14.56'); insert into pezzi(codice_prodotto, id1, prezzo) values ('5','1','137.68'); insert into pezzi(codice_prodotto, id1, prezzo) values ('5','2','137.68'); insert into pezzi(codice_prodotto, id1, prezzo) values ('5','3','137.68'); insert into pezzi(codice_prodotto, id1, prezzo) values ('5','4','137.68'); insert into pezzi(codice_prodotto, id1, prezzo) values ('5','5','137.68'); insert into pezzi(codice_prodotto, id1, prezzo) values ('6','1','157.96'); insert into pezzi(codice_prodotto, id1, prezzo) values ('6','2','157.96'); insert into pezzi(codice_prodotto, id1, prezzo) values ('6','3','157.96'); insert into pezzi(codice_prodotto, id1, prezzo) values ('6','4','157.96'); insert into pezzi(codice_prodotto, id1, prezzo) values ('6','5','157.96'); insert into pezzi(codice_prodotto, id1, prezzo) values ('7','1','162.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('7','2','162.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('7','3','162.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('7','4','162.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('7','5','162.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('8','1','6.71'); insert into pezzi(codice_prodotto, id1, prezzo) values ('8','2','6.71'); insert into pezzi(codice_prodotto, id1, prezzo) values ('8','3','6.71'); insert into pezzi (codice_prodotto, id1, prezzo)values ('8','4','6.71'); insert into pezzi(codice_prodotto, id1, prezzo) values ('8','5','6.71'); insert into pezzi(codice_prodotto, id1, prezzo) values ('9','1','70.02'); insert into pezzi(codice_prodotto, id1, prezzo) values ('9','2','70.02'); insert into pezzi(codice_prodotto, id1, prezzo) values ('9','3','70.02'); insert into pezzi(codice_prodotto, id1, prezzo) values ('9','4','70.02'); insert into pezzi(codice_prodotto, id1, prezzo) values ('9','5','70.02'); insert into pezzi(codice_prodotto, id1, prezzo) values ('10','1','85.78'); insert into pezzi(codice_prodotto, id1, prezzo) values ('10','2','85.78'); insert into pezzi(codice_prodotto, id1, prezzo) values ('10','3','85.78'); insert into pezzi(codice_prodotto, id1, prezzo) values ('10','4','85.78'); insert into pezzi(codice_prodotto, id1, prezzo) values ('10','5','85.78'); insert into pezzi(codice_prodotto, id1, prezzo) values ('11','1','147.24'); insert into pezzi(codice_prodotto, id1, prezzo) values ('11','2','147.24'); insert into pezzi(codice_prodotto, id1, prezzo) values ('11','3','147.24'); insert into pezzi(codice_prodotto, id1, prezzo) values ('11','4','147.24'); insert into pezzi(codice_prodotto, id1, prezzo) values ('11','5','147.24'); insert into pezzi(codice_prodotto, id1, prezzo) values ('12','1','16.6'); insert into pezzi(codice_prodotto, id1, prezzo) values ('12','2','16.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('12','3','16.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('12','4','16.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('12','5','16.76'); insert into pezzi(codice_prodotto, id1, prezzo) values ('13','1','18.98'); insert into pezzi(codice_prodotto, id1, prezzo) values ('13','2','18.98'); insert into pezzi(codice_prodotto, id1, prezzo) values ('13','3','18.98'); insert into pezzi(codice_prodotto, id1, prezzo) values ('13','4','18.98'); insert into pezzi(codice_prodotto, id1, prezzo) values ('13','5','18.98'); insert into pezzi(codice_prodotto, id1, prezzo) values ('14','1','30.74'); insert into pezzi (codice_prodotto, id1, prezzo)values ('14','2','30.74'); insert into pezzi (codice_prodotto, id1, prezzo)values ('14','3','30.74'); insert into pezzi (codice_prodotto, id1, prezzo)values ('14','4','30.74'); insert into pezzi (codice_prodotto, id1, prezzo)values ('14','5','30.74'); /*CLIENTE (CF, NOME, COGNOME, TELEFONO, NASCITA, ETA, ABBONAMENTO, PASSWORD)*/ /*PASSWORD DI DEFAULT DEI CLIENTI PROVA è L'HASH DI "123456789" OTTENUTO CON md5('SognoItaliano!1') LATO PHP*/ insert into cliente values ('SEMADA08','Sempronio', 'Adamo','003083437','1960-04-03',(datediff(current_timestamp(),nascita )/365),'settimanale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('LUIVER42','Luigi', 'Vergari','864764342','1977-3-2',(datediff(current_timestamp(),nascita )/365),'settimanale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp() ); insert into cliente values ('LUIVER82','Luigi', 'Vergari','745772823','2001-10-7',(datediff(current_timestamp(),nascita )/365),'settimanale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('FRACAT01','Francesco', 'Catanzaro','727320636','1990-11-0',(datediff(current_timestamp(),nascita )/365),'settimanale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('LUIVER67','Luigi', 'Vergari','452312027','2000-11-3',(datediff(current_timestamp(),nascita )/365),'settimanale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('VALDES61','Valentina', 'Desantis','435261274','1977-2-6',(datediff(current_timestamp(),nascita )/365),'mensile','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('EMAPAN73','Emanuele', 'Panascia','615066616','2001-1-10',(datediff(current_timestamp(),nascita )/365),'mensile','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('CARDES56','Carolina', 'Desantis','548128735','1977-1-4',(datediff(current_timestamp(),nascita )/365),'mensile','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('GIUBEL62','Giulio', 'Belfiore','244014632','2002-2-9',(datediff(current_timestamp(),nascita )/365),'annuale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('LUIGUE15','Luigi', 'Guerrera','880607467','1994-5-7',(datediff(current_timestamp(),nascita )/365),'annuale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); insert into cliente values ('FRAMAR34','Francesco', 'Marano','050067412','2001-10-9',(datediff(current_timestamp(),nascita )/365),'annuale','b42fc6e1122b95d186773704f69bb634', current_timestamp(), current_timestamp()); /*IMPIEGATO(CF, NOME, COGNOME, TELEFONO, NASCITA, MATRICOLA, RUOLO)*/ insert into impiegato values ('GIUBEL62','Giulio', 'Belfiore','244014632','2002-2-9',49387 ,'gestore'); insert into impiegato values ('LUIGUE15','Luigi', 'Guerrera','880607467','1994-5-7',49388 ,'gestore'); insert into impiegato values ('FRAMAR34','Francesco', 'Marano','050067412','2001-10-9',49389 ,'gestore'); insert into impiegato values ('SIMPAN71','Simone', 'Panascia','083744700','1980-10-10','87670','gestore'); insert into impiegato values ('SEMFIL80','Sempronio', 'Filadelfo','603546273','1985-7-4','77144','gestore'); insert into impiegato values ('LUIBEL65','Luigi', 'Belfiore','152023003','1975-6-11','54644','gestore'); insert into impiegato values ('EMABEL58','Emanuele', 'Belfiore','487838773','1985-9-10','35476','gestore'); insert into impiegato values ('SIMBEL02','Simone', 'Belfiore','003732782','1990-10-2','16802','gestore'); insert into impiegato values ('EMACAT40','Emanuele', 'Catanzaro','370433652','1990-9-5','14167','caporeparto'); insert into impiegato values ('LUIVER72','Luigi', 'Vergari','264133362','1990-6-6','64313','caporeparto'); insert into impiegato values ('GIUADA04','Giulio', 'Adamo','013464241','1990-2-2','03637','caporeparto'); insert into impiegato values ('CARBEL54','Carolina', 'Belfiore','387106628','1990-8-6','41641','caporeparto'); insert into impiegato values ('LUICAT76','Luigi', 'Catanzaro','624667542','1970-8-10','66007','caporeparto'); insert into impiegato values ('CARADA18','Carolina', 'Adamo','324822132','1980-1-2','68387','caporeparto'); insert into impiegato values ('GIUFIL86','Giulio', 'Filadelfo','127444672','1990-3-3','74485','caporeparto'); insert into impiegato values ('LUIDES86','Luigi', 'Desantis','242775187','1990-2-1','57444','caporeparto'); insert into impiegato values ('LUIMAR88','Luigi', 'Marano','508874473','1989-4-8','25333','caporeparto'); insert into impiegato values ('SIMDES16','Simone', 'Desantis','615351818','1991-7-3','41257','caporeparto'); insert into impiegato values ('FRAMAR62','Francesco', 'Marano','711816547','1993-3-9','73873','magazziniere'); insert into impiegato values ('STEADA67','Stefania', 'Adamo','874713667','1993-11-9','07377','magazziniere'); insert into impiegato values ('GIUCAT25','Giulio', 'Catanzaro','015252417','1993-2-0','41747','magazziniere'); insert into impiegato values ('EMADES16','Emanuele', 'Desantis','412307888','1993-3-9','08137','magazziniere'); insert into impiegato values ('STEADA31','Stefania', 'Adamo','220326641','1993-11-2','12825','magazziniere'); insert into impiegato values ('CARFIL20','Carolina', 'Filadelfo','547408546','1993-8-9','54273','magazziniere'); insert into impiegato values ('EMAADA76','Emanuele', 'Adamo','777641821','1993-7-4','00661','magazziniere'); insert into impiegato values ('FRAPAN66','Francesco', 'Panascia','823687584','1993-5-4','46013','magazziniere'); insert into impiegato values ('SIMPAN63','Simone', 'Panascia','130814476','1993-1-5','63810','magazziniere'); insert into impiegato values ('SEMFIL82','Sempronio', 'Filadelfo','046672451','1993-9-2','74540','magazziniere'); insert into impiegato values ('VALBEL55','Valentina', 'Belfiore','545543771','1993-7-1','18271','magazziniere'); insert into impiegato values ('GIUFIL71','Giulio', 'Filadelfo','686224540','1993-10-10','56647','magazziniere'); insert into impiegato values ('STECAT44','Stefania', 'Catanzaro','318241541','1993-7-10','17022','magazziniere'); insert into impiegato values ('LUIVER13','Luigi', 'Vergari','527306274','1993-3-11','64265','magazziniere'); insert into impiegato values ('MATCAT22','Matteo', 'Catanzaro','126650541','1993-8-4','88511','magazziniere'); insert into impiegato values ('SEMADA71','Sempronio', 'Adamo','005810776','1993-1-3','26157','magazziniere'); insert into impiegato values ('STEFIL83','Stefania', 'Filadelfo','525070712','1993-1-6','67011','magazziniere'); insert into impiegato values ('FRAADA57','Francesco', 'Adamo','644243268','1993-11-8','81327','magazziniere'); insert into impiegato values ('STEPAN32','Stefania', 'Panascia','082527478','1993-1-8','81843','magazziniere'); insert into impiegato values ('SEMBEL68','Sempronio', 'Belfiore','747547335','1993-4-7','80573','magazziniere'); /*FORNITORE(CODICE, NOME, SEDE, VIA)*/ insert into fornitore values ('65783','Gate Eleven s.r.l.','Palermo','Via Garibaldi 12', '../Immagini/Database/gateEleven.jpg'); insert into fornitore values ('68340','Tech by Tex','Roma','Via Castelvecchio 77','../Immagini/Database/tec-by-tex.png'); insert into fornitore values ('26144','Andes Organic','Palermo','Via Federico II 33','../Immagini/Database/fumettoDonna.jpg'); insert into fornitore values ('14665','Tech by Tex','Pisa','Via Aldo Moro 31','../Immagini/Database/tec-by-tex.png'); insert into fornitore values ('84003','Tech by Tex','Pisa','Via Manzoni 89','../Immagini/Database/tec-by-tex.png'); insert into fornitore values ('35005','Double A','Firenze','Viale XX Settembre 64','../Immagini/Database/doubleA.gif'); insert into fornitore values ('75047','Gate Eleven s.r.l.','Firenze','Viale XX Settembre 64','../Immagini/Database/gateEleven.jpg'); insert into fornitore values ('30360','Gate Eleven s.r.l.','Catania','Via Garibaldi 12','../Immagini/Database/gateEleven.jpg'); insert into fornitore values ('61448','Pricy B2B','Firenze','Viale Borgo 55','../Immagini/Database/fumettoDonna.jpg'); insert into fornitore values ('73251','Gate Eleven s.r.l.','Milano','Viale XX Settembre 64','../Immagini/Database/gateEleven.jpg'); insert into fornitore values ('11416','Vero Style s.r.l.','Pisa','Via Aldo Moro 31','../Immagini/Database/vero-style.png'); insert into fornitore values ('14024','Double A','Milano','Via Castelvecchio 77','../Immagini/Database/doubleA.gif'); insert into fornitore values ('81308','Vero Style s.r.l.','Milano','Via Aldo Moro 31','../Immagini/Database/vero-style.png'); insert into fornitore values ('64832','Double A','Bologna','Viale Borgo 55','../Immagini/Database/doubleA.gif'); insert into fornitore values ('56187','Vero Style s.r.l.','Pisa','Via Castelvecchio 77','../Immagini/Database/vero-style.png'); insert into fornitore values ('25766','Vero Style s.r.l.','Roma','Via Castelvecchio 77','../Immagini/Database/vero-style.png'); insert into fornitore values ('76845','Tech by Tex','Pisa','Viale Borgo 55','../Immagini/Database/tec-by-tex.png'); insert into fornitore values ('63612','Vesto italiano','Firenze','Via Manzoni 89','../Immagini/Database/fumettoDonna.jpg'); insert into fornitore values ('82810','Double A','Roma','Via Aldo Moro 31','../Immagini/Database/doubleA.gif'); insert into fornitore values ('15141','Double A','Milano','Via Federico II 33','../Immagini/Database/doubleA.gif'); /*FILIALE(CODICE, CITTA, VIA)*/ insert into filiale values ('01331','Catania','Viale Borgo 55'); insert into filiale values ('24160','Torino','Via Manzoni 89'); insert into filiale values ('82351','Roma','Via Badoglio 48'); insert into filiale values ('67234','Firenze','Viale Borgo 55'); /*AFFERENZA_CORRENTE (IMPIEGATO, FILIALE, INIZIO)*/ /*Bisogna piazzare i gestori, gli altri si fanno facile con un trigger*/ /*AFFERENZA_PASSATA(IMPIEGATO, FILIALE, INIZIO, FINE)*/ insert into afferenza_passata values('STEADA67',24160, '2020-1-1','2020-4-1'); insert into afferenza_passata values('LUIVER72',24160, '2020-1-1','2020-4-1'); /*REPARTO (FILIALE, CODICE, NOME )*/ insert into reparto values ('01331','21','City', 'repartoRagazzo.jpg' ); insert into reparto values ('24160','22','Classico', 'repartoDonna.jpg'); insert into reparto values ('67234','23','Street', 'grucce.jpg' ); insert into reparto values ('82351','22','Casual', 'repartoDonna.jpg'); insert into reparto values ('01331','21','City', 'repartoRagazzo.jpg'); insert into reparto values ('01331','23','Sportivo', 'grucce.jpg'); insert into reparto values ('01331','24','Elegante', 'repartoUomo.jpeg'); insert into reparto values ('01331','21','City', 'repartoRagazzo.jpg'); insert into reparto values ('24160','22','Classico', 'repartoDonna.jpg'); insert into reparto values ('24160','21','City', 'repartoRagazzo.jpg'); insert into reparto values ('24160','22','Classico', 'repartoDonna.jpg'); insert into reparto values ('24160','23','Sportivo', 'grucce.jpg'); insert into reparto values ('82351','24','Elegante', 'repartoUomo.jpeg'); insert into reparto values ('82351','23','Sportivo', 'grucce.jpg'); insert into reparto values ('82351','21','City', 'repartoRagazzo.jpg'); insert into reparto values ('67234','21','City', 'repartoRagazzo.jpg'); insert into reparto values ('67234','24','Elegante', 'repartoUomo.jpeg'); /*SEZIONE (FILIALE, REPARTO, CODICE, NOME, DISPONIBILE)*/ insert into sezione values ('01331','22','1','Ragazza','195'); insert into sezione values ('24160','21','1','Bambino','195'); insert into sezione values ('82351','24','1','Uomo','195'); insert into sezione values ('67234','21','1','Ragazzo','195'); insert into sezione values ('24160','22','1','Ragazza','69'); insert into sezione values ('24160','24','3','Uomo','38'); insert into sezione values ('01331','22','3','Donna','36'); insert into sezione values ('01331','21','1','Ragazzo','44'); insert into sezione values ('01331','21','2','Ragazzo','175'); insert into sezione values ('01331','21','3','Ragazzo','180'); insert into sezione values ('82351','24',,'0','Uomo','115'); insert into sezione values ('82351','21','0','Ragazzo','59'); insert into sezione values ('82351','22','2','Ragazza','178'); insert into sezione values ('67234','22','2','Ragazza','53'); insert into sezione values ('01331','24','1','Uomo','40'); insert into sezione values ('82351','24','2','Uomo','171'); insert into sezione values ('67234','22','2','Donna','170'); insert into sezione values ('82351','22','3','Ragazza','147'); insert into sezione values ('67234','21','3','Ragazzo','46'); insert into sezione values ('01331','24','2','Uomo','131'); insert into sezione values ('82351','22','2','Donna','93'); insert into sezione values ('82351','24','0','Uomo','136'); insert into sezione values ('24160','22','3','Ragazza','107'); insert into sezione values ('82351','22','2','Donna','198'); insert into sezione values ('24160','24','2','Uomo','168'); insert into sezione values ('82351','22','2','Donna','22'); insert into sezione values ('82351','24','3','Uomo','97'); insert into sezione values ('67234','21', '4', 'Bambino', '79'); insert into sezione values ('67234','21', '4', 'Bambino', '79'); /*DEPOSITO(FILIALE, REPARTO, SEZIONE, PRODOTTO, ID_PRODOTTO, ORA, GIORNO, MITTENTE)*/ insert into deposito values ('1331','21','1', '1', '1', current_time(), current_date(), '65783'); insert into deposito values ('1331','22','1', '2', '2', current_time(), current_date(), '65783'); insert into deposito values ('1331','21','2', '1', '3', current_time(), current_date(), '65783'); insert into deposito values ('1331','24','2', '1', '4', current_time(), current_date(), '65783'); insert into deposito values ('1331','22','1', '14', '1', current_time(), current_date(), '65783'); insert into deposito values ('1331','21','1', '9', '1', current_time(), current_date(), '84003'); insert into deposito values ('1331','22','1', '2', '2', current_time(), current_date(), '84003'); insert into deposito values ('1331','22','1', '2', '3', current_time(), current_date(), '84003'); insert into deposito values ('1331','24','1', '4', '4', current_time(), current_date(), '11416'); insert into deposito values ('1331','24','1', '4', '5', current_time(), current_date(), '11416'); insert into deposito values ('82351','24','3', '4', '1', current_time(), current_date(), '25766'); insert into deposito values ('82351','21','0', '7', '2', current_time(), current_date(), '25766'); insert into deposito values ('82351','22','2', '3', '3', current_time(), current_date(), '25766'); insert into deposito values ('82351','22','2', '3', '4', current_time(), current_date(), '76845'); insert into deposito values ('82351','21','0', '6', '5', current_time(), current_date(), '76845'); /*TIROCINIO(MAGAZZINIERE, CAPOREPARTO, INIZIO, FINE)*/ insert into tirocinio values ('FRAMAR62','EMACAT40', current_date(), date_add(current_date(), interval + 2 month)); insert into tirocinio values ('EMACAT40','FRAMAR62', current_date(), date_add(current_date(), interval + 2 month)); /*ORDINE(GESTORE, FORNITORE, PRODOTTO, QUANTITA, INIZIO, PREVISTO )*/ insert into ordine values('SIMPAN71', '65783', 1 , 5, current_date(),DATE_ADD(current_date(), interval 5 day)); insert into ordine values('SIMPAN71', 11416, 2, 10, current_date(), date_add(current_date, interval 5 day)); /*ACQUISTO (CODICE_PRODOTTO, ID_PRODOTTO, CLIENTE, GIORNO, ORA, RICAVO)*/ insert into acquisto values (1,1,'SEMADA08',current_date(), current_time(),'179.38'); insert into acquisto values (1,2,'SEMADA08',current_date(), current_time(),'1'); insert into acquisto values (1,1,'SEMADA08',current_date(), current_time(),'179.38'); insert into acquisto values (1,2,'GIUBEL62',current_date(), current_time(),'1'); insert into acquisto values (2,5,'GIUBEL62',current_date(), current_time(),'1'); insert into acquisto values (3,5,'GIUBEL62',current_date(), current_time(),'1'); /*GESTIONE(MAGAZZINIERE, FILIALE, REPARTO, SEZIONE)*/ insert into gestione values('EMADES16', 1331, 1,1); insert into gestione values('FRAADA57', 24160, 1,1); insert into gestione values ('FRAMAR62','1331','37860','2'); insert into gestione values ('STEADA67','1331','86178','2'); insert into gestione values ('GIUCAT25','1331','27157','3'); insert into gestione values ('EMADES16','1331','11708','1'); insert into gestione values ('STEADA31','24160','07805','1'); insert into gestione values ('CARFIL20','24160','27671','3'); insert into gestione values ('EMAADA76','24160','31555','2'); insert into gestione values ('FRAPAN66','82351','10068','1'); insert into gestione values ('SIMPAN63','67234','66186','5'); insert into gestione values ('SEMFIL82','1331','37860','1'); insert into gestione values ('SEMFIL82','1331','37860','3'); /*CONTROLLO(CAPOREPARTO, FILIALE, CODICE)*/ insert into controllo values ('EMACAT40','01331','37860'); insert into controllo values ('LUIVER72','01331','86178'); insert into controllo values ('GIUADA04','01331','27157'); insert into controllo values ('CARBEL54','01331','11708'); insert into controllo values ('LUICAT76','24160','07805'); insert into controllo values ('CARADA18','24160','27671'); insert into controllo values ('GIUFIL86','24160','31555'); insert into controllo values ('LUIDES86','24160','33044'); insert into controllo values ('LUIMAR88','82351','10068'); insert into controllo values ('SIMDES16','67234','66186'); Qualche insert per il database call posa(1331, 21, 1, 13, 1146); call posa(82351, 22, 2, 14, 1146); call posa(82351, 22, 2, 8, 1146); call posa(1331, 24, 1, 6, 1146); call posa(1331, 21, 1, 12, 1146); --N.B: Ho dimenticato di mettere alcuni valori non nulli, ho rimediato dopo usando il seguente costrutto su ogni tabella interessata --alter table nometab add constraint nomeconstraint check(attributo is not null); -- Fine
true
0c1c6adc3257ad5f7e8096286e9c5f967bb372c5
SQL
j0schey/businessIntelligenceGroup20
/01_HandIn/task1/oltp/TB_ProductCategory.sql
UTF-8
346
3.28125
3
[]
no_license
CREATE TABLE TB_ProductCategory( ProductCategoryID int NOT NULL, ParentProductCategoryID int, Name varchar(255) NOT NULL, CONSTRAINT PK_ProductCategory PRIMARY KEY (ProductCategoryID), CONSTRAINT FK_ParentProductCategory_ProductCategory FOREIGN KEY (ParentProductCategoryID) REFERENCES TB_ProductCategory(ProductCategoryID) )
true
680c2218a7ee74fec67d69400168afcacad15d75
SQL
antono124/egradebook_hibernate
/database/queries.sql
UTF-8
1,215
3.9375
4
[]
no_license
CREATE TABLE student ( student_id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT , username VARCHAR(400) NOT NULL, password VARCHAR(400) NOT NULL, creation_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE student_info ( student_id BIGINT NOT NULL PRIMARY KEY, first_name VARCHAR(400), last_name VARCHAR(400), semester VARCHAR(50), address VARCHAR(1000), city VARCHAR(400), country VARCHAR(400), phone_1 VARCHAR(100), phone_2 VARCHAR(100), FOREIGN KEY (student_id) REFERENCES student(student_id) ); create table class ( class_id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) NOT NULL, description varchar(500), semester VARCHAR(50), UNIQUE (name) ); create table student_class ( student_id BIGINT, class_id BIGINT, FOREIGN KEY (student_id) REFERENCES student(student_id), FOREIGN KEY (class_id) REFERENCES class(class_id) ); CREATE TABLE results ( result_id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, grade INT, student_id BIGINT, class_id BIGINT, creation_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (student_id) REFERENCES student(student_id), FOREIGN KEY (class_id) REFERENCES class(class_id) );
true
da5ac3ca47734e12c7bd9fce09cecd22fb2429a5
SQL
E41181181/pariwisataci
/agentour.sql
UTF-8
2,682
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 20, 2020 at 08:37 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `agentour` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `username` varchar(15) NOT NULL, `password` char(32) NOT NULL, `nama` varchar(15) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `konten` -- CREATE TABLE `konten` ( `id` int(11) NOT NULL, `judul` varchar(30) NOT NULL, `fasilitas` varchar(300) NOT NULL, `harga` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `konten` -- INSERT INTO `konten` (`id`, `judul`, `fasilitas`, `harga`) VALUES (1, 'Tour Jepang', 'Hotel/penginapan berbintang tiga atau setaraf. Makan tiga kali sehari sembari mencicipi menu masakan khas Jepang. Transportasi (bus/kereta) selama perjalanan. Tiket masuk lokasi wisata sesuai itinerary. Tour guide berpengalaman dan fasih berbahasa Jepang', '700'), (4, 'Tour China', 'Hotel/penginapan berbintang tiga atau setaraf. Makan tiga kali sehari sembari mencicipi menu masakan khas China. Transportasi (bus/kereta) selama perjalanan. Tiket masuk lokasi wisata sesuai itinerary. Tour guide berpengalaman dan fasih berbahasa China', '100'), (5, 'Tour Korea', 'Hotel/penginapan berbintang tiga atau setaraf.\r\nMakan tiga kali sehari sembari mencicipi menu masakan khas Korea.\r\nTransportasi (bus/kereta) selama perjalanan.\r\nTiket masuk lokasi wisata sesuai itinerary.\r\nTour guide berpengalaman dan fasih berbahasa Korea', '1800'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`username`); -- -- Indexes for table `konten` -- ALTER TABLE `konten` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `konten` -- ALTER TABLE `konten` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
cd658a99a50904f765740b215cfcc5b1f96de86e
SQL
Konstyantin/audi
/dumpDb/audi_dealer.sql
UTF-8
2,712
3.046875
3
[ "BSD-3-Clause" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.16, for Linux (x86_64) -- -- Host: localhost Database: audi -- ------------------------------------------------------ -- Server version 5.7.16-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `dealer` -- DROP TABLE IF EXISTS `dealer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dealer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `city` varchar(45) NOT NULL, `street` varchar(45) NOT NULL, `location` varchar(45) NOT NULL, `description` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dealer` -- LOCK TABLES `dealer` WRITE; /*!40000 ALTER TABLE `dealer` DISABLE KEYS */; INSERT INTO `dealer` VALUES (1,'Kharkov','Shevchenko street 135','Ukraine','<p>Contacts</p>\r\n<p>Kharkov center east</p>\r\n<p>Kharkov Shevchenka street 135</p>\r\n<p>phone +38066558891</p>\r\n<p>work time 9:00 - 19:00</p>\r\n<p>test drive time 10:00 - 18:00</p>'),(2,'Kiev','Degtyarova street 54','Ukraine','<div>\r\n<p>Contacts</p>\r\n<p>Kiev center</p>\r\n<p>Kiev Degtiarivska street 54</p>\r\n<p>phone +38066558891</p>\r\n<p>work time 9:00 - 19:00</p>\r\n<p>test drive time 10:00 - 18:00</p>\r\n</div>'),(3,'Odesa','Ovidiopolska street 121','Ukraine','<div>\r\n<p>Contacts</p>\r\n<p>Odesa center south</p>\r\n<p>Odesa Ovidiopolska street 121</p>\r\n<p>phone +38066558891</p>\r\n<p>work time 9:00 - 19:00</p>\r\n<p>test drive time 10:00 - 18:00</p>\r\n</div>'); /*!40000 ALTER TABLE `dealer` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-11-23 18:15:18
true
5b3b88598b3b4eeb15d64b26f40935c8751be7ba
SQL
Intraholics/Ticket_Monster
/ticketmonster_schema.sql
UTF-8
4,470
3.4375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.2.15-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping database structure for ticketmonster CREATE DATABASE IF NOT EXISTS `ticketmonster` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `ticketmonster`; -- Dumping structure for table ticketmonster.cart CREATE TABLE IF NOT EXISTS `cart` ( `cartID` int(11) NOT NULL AUTO_INCREMENT, `userID` int(11) NOT NULL, `eventID` int(11) NOT NULL, `quantity` int(11) NOT NULL, `final_price` int(11) NOT NULL, PRIMARY KEY (`cartID`), KEY `FK__user` (`userID`), KEY `FK__events` (`eventID`), CONSTRAINT `FK_cart_events` FOREIGN KEY (`eventID`) REFERENCES `events` (`eventID`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `FK_cart_user` FOREIGN KEY (`userID`) REFERENCES `user` (`userID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Dumping data for table ticketmonster.cart: ~0 rows (approximately) /*!40000 ALTER TABLE `cart` DISABLE KEYS */; /*!40000 ALTER TABLE `cart` ENABLE KEYS */; -- Dumping structure for table ticketmonster.events CREATE TABLE IF NOT EXISTS `events` ( `eventID` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `date` datetime NOT NULL, `tickets_left` int(11) NOT NULL DEFAULT 0, `price` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`eventID`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Dumping data for table ticketmonster.events: ~0 rows (approximately) /*!40000 ALTER TABLE `events` DISABLE KEYS */; INSERT INTO `events` (`eventID`, `description`, `date`, `tickets_left`, `price`) VALUES (1, 'rock_concert', '2018-06-16 20:30:00', 100, 10), (2, 'romcom', '2018-07-06 10:00:00', 50, 5); /*!40000 ALTER TABLE `events` ENABLE KEYS */; -- Dumping structure for table ticketmonster.order CREATE TABLE IF NOT EXISTS `order` ( `orderID` int(11) NOT NULL AUTO_INCREMENT, `cartID` int(11) NOT NULL, `phone` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `creditcard` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `purchase_date` datetime NOT NULL, PRIMARY KEY (`orderID`), KEY `FK__order` (`cartID`), CONSTRAINT `FK_order_cart` FOREIGN KEY (`cartID`) REFERENCES `cart` (`cartID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Dumping data for table ticketmonster.order: ~0 rows (approximately) /*!40000 ALTER TABLE `order` DISABLE KEYS */; /*!40000 ALTER TABLE `order` ENABLE KEYS */; -- Dumping structure for table ticketmonster.user CREATE TABLE IF NOT EXISTS `user` ( `userID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `surname` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `username` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `user_role` bit(1) NOT NULL, PRIMARY KEY (`userID`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Dumping data for table ticketmonster.user: ~0 rows (approximately) /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` (`userID`, `name`, `surname`, `username`, `password`, `email`, `user_role`) VALUES (1, 'kostas', 'kok', 'konkok', '12345k', '[email protected]', b'1'), (2, 'kostas', 'hatz', 'konhatz', '67890h', '[email protected]', b'1'), (3, 'manolis', 'mof', 'manmof', '13579m', '[email protected]', b'0'), (4, 'john', 'tsou', 'jtsou', '24680j', '[email protected]', b'0'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
true
a53d5124eaabe4765514ba86dc6538a8c8d2845b
SQL
yyj8023/archivesManagementSystem
/src/main/resources/dataBase/档案管理系统数据表v1.5.sql
UTF-8
43,613
3.421875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 档案管理系统 Source Server Version : 50515 Source Host : localhost:3306 Source Database : archivesmanagementsystem Target Server Type : MYSQL Target Server Version : 50515 File Encoding : 65001 Date: 2021-02-28 10:39:43 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for birthday_info -- ---------------------------- DROP TABLE IF EXISTS `birthday_info`; CREATE TABLE `birthday_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `birthday_card` date DEFAULT NULL COMMENT '身份证中的出生日期', `birthday_archives` date DEFAULT NULL COMMENT '档案中的出生日期', `birthday_judgment` date DEFAULT NULL COMMENT '认定出生日期', `birthday_problem_detail` text COMMENT '出生日期问题描述', `birthday_check_result` text COMMENT '出生日期认定结果描述', `birthday_problem_category` varchar(255) DEFAULT NULL COMMENT '出生日期问题分类', `birthday_check_rule` varchar(255) DEFAULT NULL COMMENT '出生日期认定规则', `birthday_check_remark` varchar(255) DEFAULT NULL COMMENT '出生日期小结', `update_by` varchar(255) DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1717 DEFAULT CHARSET=utf8 COMMENT='出生日期信息认定表'; -- ---------------------------- -- Records of birthday_info -- ---------------------------- INSERT INTO `birthday_info` VALUES ('1711', '3245', '刘溜溜', '1966-07-02', null, '1996-07-02', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', null, '2021-02-20 14:46:45'); INSERT INTO `birthday_info` VALUES ('1712', '8397255', '周某某', '1966-07-02', null, '1996-07-02', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', null, '2021-02-20 14:46:45'); INSERT INTO `birthday_info` VALUES ('1713', '998', '老蔡', '1966-07-02', null, '1996-07-02', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', null, '2021-02-20 15:03:25'); INSERT INTO `birthday_info` VALUES ('1714', '955', '老王', '1966-07-02', null, '1996-07-02', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', null, '2021-02-20 15:03:25'); INSERT INTO `birthday_info` VALUES ('1715', '1999', '老方', '1966-07-02', null, '1996-07-02', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', null, '2021-02-25 21:22:19'); INSERT INTO `birthday_info` VALUES ('1716', '912', '小周', '1966-07-02', null, '1996-07-02', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', null, '2021-02-25 21:22:19'); -- ---------------------------- -- Table structure for education_career_info -- ---------------------------- DROP TABLE IF EXISTS `education_career_info`; CREATE TABLE `education_career_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `associate_school` varchar(255) DEFAULT NULL COMMENT '大专学校', `associate_college` varchar(255) DEFAULT NULL COMMENT '大专学院', `associate_major` varchar(255) DEFAULT NULL COMMENT '大专专业', `associate_career` varchar(255) DEFAULT NULL COMMENT '大专学历', `associate_degree` varchar(255) DEFAULT NULL COMMENT '大专学位', `undergraduate_school` varchar(255) DEFAULT NULL COMMENT '本科学校', `undergraduate_college` varchar(255) DEFAULT NULL COMMENT '本科学院', `undergraduate_major` varchar(255) DEFAULT NULL COMMENT '本科专业', `undergraduate_major_second` varchar(255) DEFAULT NULL COMMENT '本科第二专业', `undergraduate_career` varchar(255) DEFAULT NULL COMMENT '本科学历', `undergraduate_degree` varchar(255) DEFAULT NULL COMMENT '本科学位', `undergraduate_degree_second` varchar(255) DEFAULT NULL COMMENT '本科第二学位', `master_school` varchar(255) DEFAULT NULL COMMENT '硕士学校', `master_college` varchar(255) DEFAULT NULL COMMENT '硕士学院', `master_major` varchar(255) DEFAULT NULL COMMENT '硕士专业', `master_career` varchar(255) DEFAULT NULL COMMENT '硕士学历', `master_degree` varchar(255) DEFAULT NULL COMMENT '硕士学位', `phd_school` varchar(255) DEFAULT NULL COMMENT '博士学校', `phd_college` varchar(255) DEFAULT NULL COMMENT '博士学院', `phd_major` varchar(255) DEFAULT NULL COMMENT '博士专业', `phd_career` varchar(255) DEFAULT NULL COMMENT '博士学历', `phd_degree` varchar(255) DEFAULT NULL COMMENT '博士学位', `update_by` varchar(255) DEFAULT NULL COMMENT '最新的更新人', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='学位学历信息详细表'; -- ---------------------------- -- Records of education_career_info -- ---------------------------- INSERT INTO `education_career_info` VALUES ('9', '2010', '张三', null, null, null, null, null, '北京大学', '信息学院', '信息管理', null, '本科', '学士', null, null, null, null, null, null, null, null, null, null, null, 'yyj', '2021-01-29 00:00:00'); INSERT INTO `education_career_info` VALUES ('10', '2011', '李四', null, null, null, null, null, '湖南大学', '计算机学院', '软件工程', null, '本科', '学士', null, '中南大学', '计算机学院', '计算机', '研究生', '工学硕士', null, null, null, null, null, 'yyj', '2021-01-29 00:00:00'); INSERT INTO `education_career_info` VALUES ('11', '28', 'yyj', '11', '11', null, '', '', '暨南大学', '计算机科学与工程学院', '网络工程', '', '', '', '', '', '', '', '', '', '', '', '', '', '11', 'yyj', '2021-01-27 00:00:00'); -- ---------------------------- -- Table structure for education_info -- ---------------------------- DROP TABLE IF EXISTS `education_info`; CREATE TABLE `education_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `education_degree` varchar(255) DEFAULT NULL COMMENT '最高学位', `education_backgroud` varchar(255) DEFAULT NULL COMMENT '最高学历', `education_problem_category` varchar(255) DEFAULT NULL COMMENT '学历问题分类', `education_problem_detail` text COMMENT '学历问题描述', `education_check_result` text COMMENT '学历认定结果描述', `education_backgroud_judgment` varchar(255) DEFAULT NULL COMMENT '最高学历认定', `education_degreee_judgment` varchar(255) DEFAULT NULL COMMENT '最高学位认定', `education_remark` varchar(255) DEFAULT NULL COMMENT '学历小结', `update_by` varchar(255) DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1717 DEFAULT CHARSET=utf8 COMMENT='学历信息认定表'; -- ---------------------------- -- Records of education_info -- ---------------------------- INSERT INTO `education_info` VALUES ('1711', '3245', '刘溜溜', null, null, '补充相关材料', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', '本科', '学士', '无问题', null, '2021-02-20 14:46:45'); INSERT INTO `education_info` VALUES ('1712', '8397255', '周某某', null, null, '补充相关材料', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', '本科', '学士', '无问题', null, '2021-02-20 14:46:45'); INSERT INTO `education_info` VALUES ('1713', '998', '老蔡', null, null, '补充相关材料', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', '本科', '学士', '无问题', null, '2021-02-20 15:03:25'); INSERT INTO `education_info` VALUES ('1714', '955', '老王', null, null, '补充相关材料', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', '本科', '学士', '无问题', null, '2021-02-20 15:03:25'); INSERT INTO `education_info` VALUES ('1715', '1999', '老方', null, null, '补充相关材料', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', '本科', '学士', '无问题', null, '2021-02-25 21:22:19'); INSERT INTO `education_info` VALUES ('1716', '912', '小周', null, null, '补充相关材料', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', '本科', '学士', '无问题', null, '2021-02-25 21:22:19'); -- ---------------------------- -- Table structure for employee_info -- ---------------------------- DROP TABLE IF EXISTS `employee_info`; CREATE TABLE `employee_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `department_name` varchar(64) DEFAULT NULL COMMENT '所在部门', `job_property` varchar(64) DEFAULT NULL COMMENT '岗位性质', `department_line` varchar(64) DEFAULT NULL COMMENT '所属线条', `confirmation_content_flag` tinyint(1) DEFAULT NULL COMMENT '认定表是否有内容', `confirmation_signature_flag` tinyint(1) DEFAULT NULL COMMENT '认定表是否已签字', `birthday_problem_detail` text COMMENT '出生日期问题描述', `birthday_check_result` text COMMENT '出生日期认定结果描述', `birthday_card` date DEFAULT NULL COMMENT '身份证出生日期', `birthday_archives` date DEFAULT NULL COMMENT '档案中的出生日期', `birthday_judgment` date DEFAULT NULL COMMENT '认定出生日期', `birthday_problem_category` varchar(255) DEFAULT NULL COMMENT '出生日期问题分类', `birthday_check_rule` varchar(255) DEFAULT NULL COMMENT '出生日期认定规则', `birthday_check_remark` varchar(255) DEFAULT NULL COMMENT '出生日期小结', `join_party_time_problem_detail` text COMMENT '入党时间问题描述', `join_party_time_check_result` text COMMENT '入党时间认定结果描述', `join_party_time_research_situation` text COMMENT '入党时间调研情况', `join_party_time` date DEFAULT NULL COMMENT '入党时间', `join_party_introducer` varchar(255) DEFAULT NULL COMMENT '入党介绍人', `join_group_time` date DEFAULT NULL COMMENT '入团时间', `join_party_time_remark` varchar(255) DEFAULT NULL COMMENT '入党时间小结', `starting_job_time_problem_detail` text COMMENT '参加工作时间问题描述', `starting_job_time_check_result` text COMMENT '参加工作时间认定结果描述', `starting_job_time_own` date DEFAULT NULL COMMENT '自填工作时间', `starting_job_time_archvies` date DEFAULT NULL COMMENT '档案材料中有效工作时间', `starting_job_time_judgment` date DEFAULT NULL COMMENT '参加工作时间认定时间', `starting_job_time_problem_category` varchar(255) DEFAULT NULL COMMENT '参加工作时间问题分类', `starting_job_time_check_remark` varchar(255) DEFAULT NULL COMMENT '参加工作时间小结', `education_problem_detail` text COMMENT '学历问题描述', `education_check_result` text COMMENT '学历认定结果描述', `education_degree` varchar(255) DEFAULT NULL COMMENT '最高学位', `education_backgroud` varchar(255) DEFAULT NULL COMMENT '最高学历', `education_backgroud_judgment` varchar(255) DEFAULT NULL COMMENT '认定后最高学历', `education_degree_judgment` varchar(255) DEFAULT NULL COMMENT '认定后最高学位', `education_problem_category` varchar(255) DEFAULT NULL COMMENT '学历问题分类', `education_remark` varchar(255) DEFAULT NULL COMMENT '学历小结', `work_experience_problem_detail` text COMMENT '工作经历问题描述', `work_experience_check_result` text COMMENT '工作经历认定结果描述', `work_experience_problem_category` varchar(255) DEFAULT NULL COMMENT '工作经历问题分类', `work_experience_remark` varchar(255) DEFAULT NULL COMMENT '工作经历小结', `marterial_supplement_remark` varchar(255) DEFAULT NULL COMMENT '补充材料情况', `electronic_paper_check_flag` tinyint(1) DEFAULT NULL COMMENT '是否已核对纸质电子版一致性', `check_user` varchar(255) DEFAULT NULL COMMENT '核对人', `update_by` varchar(255) DEFAULT NULL COMMENT '最后的更新人', `update_time` datetime DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1732 DEFAULT CHARSET=utf8 COMMENT='员工基本信息表'; -- ---------------------------- -- Records of employee_info -- ---------------------------- INSERT INTO `employee_info` VALUES ('1726', '3245', '刘溜溜', '信息化营销中心', '普通员工', '网络线', '0', '0', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '1966-07-02', null, '1996-07-02', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', '无问题', '沃尔夫家偶尔玩', '软件饿哦网球拍', '2020-12-01', 'rejwpqo ', null, 'jfodsajp ', '啊发的视频', 'rl;qrjeowpqjwq ', '1999-02-01', '1999-02-01', null, 'i4329014u', 'ofdsh9w ', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', null, null, '本科', '学士', '补充相关材料', '无问题', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '认定结果可能影响退休工龄', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', '无问题', '0', 'lzz', null, null); INSERT INTO `employee_info` VALUES ('1727', '8397255', '周某某', '信息化营销中心', '普通员工', '集客线', '0', '0', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '1966-07-02', null, '1996-07-02', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', '无问题', '沃尔夫家偶尔玩', '软件饿哦网球拍', '2020-12-01', 'rejwpqo ', null, 'jfodsajp ', '啊发的视频', 'rl;qrjeowpqjwq ', '1999-02-01', '1999-02-01', null, 'i4329014u', 'ofdsh9w ', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', null, null, '本科', '学士', '补充相关材料', '无问题', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '认定结果可能影响退休工龄', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', '无问题', '0', 'yyj', null, null); INSERT INTO `employee_info` VALUES ('1728', '998', '老蔡', '信息集成中心', '普通员工', '集客线', '0', '0', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '1966-07-02', null, '1996-07-02', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', '无问题', '不存在任何问题', '经过调查,该同志思想觉悟很高', '2020-12-01', 'rejwpqo ', '2020-12-01', 'jfodsajp ', '参加工作时间与实际不太一致', 'rl;qrjeowpqjwq ', '1999-02-01', '1999-02-01', null, 'i4329014u', '暂无任何问题', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', null, null, '本科', '学士', '补充相关材料', '无问题', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '认定结果可能影响退休工龄', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', '无问题', '0', 'lzz', null, null); INSERT INTO `employee_info` VALUES ('1729', '955', '老王', '信息化营销中心', '普通员工', '市场线', '0', '0', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '1966-07-02', null, '1996-07-02', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', '无问题', '不存在任何问题', '软件饿哦网球拍', '2020-12-01', 'rejwpqo ', '2020-12-01', 'jfodsajp ', '参加工作时间与实际不太一致', 'rl;qrjeowpqjwq ', '1999-02-01', '1999-02-01', null, 'i4329014u', '暂无任何问题', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', null, null, '本科', '学士', '补充相关材料', '无问题', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '认定结果可能影响退休工龄', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', '无问题', '0', 'yyj', null, null); INSERT INTO `employee_info` VALUES ('1730', '1999', '老方', '信息集成中心', '普通员工', '集客线', '0', '0', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '1966-07-02', null, '1996-07-02', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', '无问题', '不存在任何问题', '经过调查,该同志思想觉悟很高', '2020-12-01', 'rejwpqo ', '2020-12-01', 'jfodsajp ', '参加工作时间与实际不太一致', 'rl;qrjeowpqjwq ', '1999-02-01', '1999-02-01', null, 'i4329014u', '暂无任何问题', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', null, null, '本科', '学士', '补充相关材料', '无问题', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '认定结果可能影响退休工龄', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', '无问题', '0', 'lzz', null, null); INSERT INTO `employee_info` VALUES ('1731', '912', '小周', '信息化营销中心', '普通员工', '集客线', '0', '0', '最新任免表记载1966.07出生,最早形成材料高中等学生招生预选登记表记载出生时间为1966.08,还有大专院校毕业生登记表记载出生时间为1966年06月。', '根据省公司“出生日期允许出入55天内”的要求,经组织认定,其出生日期按身份证日期为1966.07', '1966-07-02', null, '1996-07-02', '出生日期前后不一致', '允许出生日期相差55天(阴阳历情况)', '认定结果与身份证一致', '无问题', '不存在任何问题', '软件饿哦网球拍', '2020-12-01', 'rejwpqo ', '2020-12-01', 'jfodsajp ', '参加工作时间与实际不太一致', 'rl;qrjeowpqjwq ', '1999-02-01', '1999-02-01', null, 'i4329014u', '暂无任何问题', '1、档案记载1985.09-1989.07就读华东工学院电子工程系电子工程专业全日制本科,缺少学生登记表。\n2、档案记载1992.09-1995.04就读华南理工大学无线电工程系通信与电子系统专业研究生,缺少研究生登记表、成绩单', '1、 学生登记表为一般性材料,经组织研究认定其具有华东工学院电子工程系电子工程专业全日制本科学历。\n2、 本人无法补充华南理工大学无线电工程系通信与电子系统专业研究生研究生登记表、成绩单,本人提供研究生学历鉴定报告,经组织研究认定其具有研究生学历。', null, null, '本科', '学士', '补充相关材料', '无问题', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '认定结果可能影响退休工龄', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', '无问题', '0', 'yyj', null, null); -- ---------------------------- -- Table structure for join_party_time_info -- ---------------------------- DROP TABLE IF EXISTS `join_party_time_info`; CREATE TABLE `join_party_time_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `join_party_time` date DEFAULT NULL COMMENT '入党时间', `join_party_introducer` varchar(255) DEFAULT NULL COMMENT '入党介绍人', `join_group_time` date DEFAULT NULL COMMENT '入团时间', `join_party_time_problem_detail` text COMMENT '入党时间问题描述', `join_party_time_check_result` text COMMENT '入党时间认定结果描述', `join_party_time_research_situation` text COMMENT '入党时间调研情况', `join_party_time_remark` varchar(255) DEFAULT '' COMMENT '入党时间小结', `update_by` varchar(255) DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1717 DEFAULT CHARSET=utf8 COMMENT='入党时间信息认定表'; -- ---------------------------- -- Records of join_party_time_info -- ---------------------------- INSERT INTO `join_party_time_info` VALUES ('1711', '3245', '刘溜溜', '2020-12-01', 'rejwpqo ', null, '无问题', '沃尔夫家偶尔玩', '软件饿哦网球拍', 'jfodsajp ', null, '2021-02-20 14:46:45'); INSERT INTO `join_party_time_info` VALUES ('1712', '8397255', '周某某', '2020-12-01', 'rejwpqo ', null, '无问题', '沃尔夫家偶尔玩', '软件饿哦网球拍', 'jfodsajp ', null, '2021-02-20 14:46:45'); INSERT INTO `join_party_time_info` VALUES ('1713', '998', '老蔡', '2020-12-01', 'rejwpqo ', '2020-12-01', '无问题', '不存在任何问题', '经过调查,该同志思想觉悟很高', 'jfodsajp ', null, '2021-02-20 15:03:25'); INSERT INTO `join_party_time_info` VALUES ('1714', '955', '老王', '2020-12-01', 'rejwpqo ', '2020-12-01', '无问题', '不存在任何问题', '软件饿哦网球拍', 'jfodsajp ', null, '2021-02-20 15:03:25'); INSERT INTO `join_party_time_info` VALUES ('1715', '1999', '老方', '2020-12-01', 'rejwpqo ', '2020-12-01', '无问题', '不存在任何问题', '经过调查,该同志思想觉悟很高', 'jfodsajp ', null, '2021-02-25 21:22:19'); INSERT INTO `join_party_time_info` VALUES ('1716', '912', '小周', '2020-12-01', 'rejwpqo ', '2020-12-01', '无问题', '不存在任何问题', '软件饿哦网球拍', 'jfodsajp ', null, '2021-02-25 21:22:19'); -- ---------------------------- -- Table structure for ordinary_operate_log -- ---------------------------- DROP TABLE IF EXISTS `ordinary_operate_log`; CREATE TABLE `ordinary_operate_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `check_table_name` varchar(255) DEFAULT NULL COMMENT '操作的数据表名称', `check_column_name` varchar(255) DEFAULT NULL COMMENT '更新的字段', `old_value` text COMMENT '字段旧值', `new_value` text COMMENT '字段新值', `operate_type` varchar(255) DEFAULT NULL COMMENT '操作类型(新增、修改、删除)', `operator` varchar(255) DEFAULT NULL COMMENT '操作人', `operate_time` datetime DEFAULT NULL COMMENT '操作时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='日常操作记录表,主要用于记录增加、修改、删除认定表的更新前和更新后每一个字段内容。不做太详细的记录(因为没给钱)'; -- ---------------------------- -- Records of ordinary_operate_log -- ---------------------------- INSERT INTO `ordinary_operate_log` VALUES ('1', '2008', '张三', '测试表', '认定表字段测试', '1', '2', '修改', 'yyj', '2021-01-28 00:00:00'); -- ---------------------------- -- Table structure for process_operate_log -- ---------------------------- DROP TABLE IF EXISTS `process_operate_log`; CREATE TABLE `process_operate_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '操作流程记录ID号', `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `operate_state` varchar(255) DEFAULT NULL COMMENT '当前操作状态(日期认定..)', `operator` varchar(255) DEFAULT NULL COMMENT '操作人', `operate_time` datetime DEFAULT NULL COMMENT '操作时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='业务流程操作记录表,用于记录该员工哪些认定步骤已走完。'; -- ---------------------------- -- Records of process_operate_log -- ---------------------------- INSERT INTO `process_operate_log` VALUES ('1', '2008', '张三', '日期认定', 'yyj', '2021-01-28 00:00:00'); INSERT INTO `process_operate_log` VALUES ('3', '2009', '李四', '开始工作时间认定', 'yyj', '2021-01-28 00:00:00'); -- ---------------------------- -- Table structure for starting_job_time_info -- ---------------------------- DROP TABLE IF EXISTS `starting_job_time_info`; CREATE TABLE `starting_job_time_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `starting_job_time_own` date DEFAULT NULL COMMENT '自填工作时间', `starting_job_time_archvies` date DEFAULT NULL COMMENT '档案材料中有效工作时间', `starting_job_time_judgment` date DEFAULT NULL COMMENT '参加工作时间认定时间', `starting_job_time_problem_detail` text COMMENT '参加工作问题描述', `starting_job_time_problem_category` varchar(255) DEFAULT NULL COMMENT '参加工作时间问题分类', `starting_job_time_check_result` text COMMENT '参加工作时间认定结果描述', `starting_job_time_check_remark` varchar(255) DEFAULT NULL COMMENT '参加工作时间小结', `update_by` varchar(255) DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1717 DEFAULT CHARSET=utf8 COMMENT='参加工作时间基本信息认定表'; -- ---------------------------- -- Records of starting_job_time_info -- ---------------------------- INSERT INTO `starting_job_time_info` VALUES ('1711', '3245', '刘溜溜', '1999-02-01', '1999-02-01', null, '啊发的视频', 'i4329014u', 'rl;qrjeowpqjwq ', 'ofdsh9w ', null, '2021-02-20 14:46:45'); INSERT INTO `starting_job_time_info` VALUES ('1712', '8397255', '周某某', '1999-02-01', '1999-02-01', null, '啊发的视频', 'i4329014u', 'rl;qrjeowpqjwq ', 'ofdsh9w ', null, '2021-02-20 14:46:45'); INSERT INTO `starting_job_time_info` VALUES ('1713', '998', '老蔡', '1999-02-01', '1999-02-01', null, '参加工作时间与实际不太一致', 'i4329014u', 'rl;qrjeowpqjwq ', '暂无任何问题', null, '2021-02-20 15:03:25'); INSERT INTO `starting_job_time_info` VALUES ('1714', '955', '老王', '1999-02-01', '1999-02-01', null, '参加工作时间与实际不太一致', 'i4329014u', 'rl;qrjeowpqjwq ', '暂无任何问题', null, '2021-02-20 15:03:25'); INSERT INTO `starting_job_time_info` VALUES ('1715', '1999', '老方', '1999-02-01', '1999-02-01', null, '参加工作时间与实际不太一致', 'i4329014u', 'rl;qrjeowpqjwq ', '暂无任何问题', null, '2021-02-25 21:22:19'); INSERT INTO `starting_job_time_info` VALUES ('1716', '912', '小周', '1999-02-01', '1999-02-01', null, '参加工作时间与实际不太一致', 'i4329014u', 'rl;qrjeowpqjwq ', '暂无任何问题', null, '2021-02-25 21:22:19'); -- ---------------------------- -- Table structure for sys_user -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户id', `user_name` varchar(255) DEFAULT NULL COMMENT '用户名', `user_password` varchar(255) DEFAULT NULL COMMENT '用户密码', `user_role` varchar(255) DEFAULT NULL COMMENT '用户角色', `user_flag` tinyint(1) DEFAULT NULL COMMENT '用户状态是否可用', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COMMENT='系统用户表'; -- ---------------------------- -- Records of sys_user -- ---------------------------- INSERT INTO `sys_user` VALUES ('5', 'yyj', 'yyj', '系统管理员', '1'); INSERT INTO `sys_user` VALUES ('6', 'fty', 'tty', '系统管理员', '1'); INSERT INTO `sys_user` VALUES ('19', '毛阿敏', '324', '录入者', '1'); INSERT INTO `sys_user` VALUES ('20', '齐秦', '2313', '管理员', '0'); INSERT INTO `sys_user` VALUES ('21', '王祖贤', '21312', '管理员', '1'); -- ---------------------------- -- Table structure for work_experience_info -- ---------------------------- DROP TABLE IF EXISTS `work_experience_info`; CREATE TABLE `work_experience_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `employee_id` varchar(20) DEFAULT NULL COMMENT '员工ID', `employee_name` varchar(16) DEFAULT NULL COMMENT '员工姓名', `work_experience_problem_detail` text COMMENT '工作经历问题描述', `work_experience_problem_category` varchar(255) DEFAULT NULL COMMENT '工作经历问题分类', `work_experience_check_result` text COMMENT '工作经历认定结果描述', `work_experience_remark` varchar(255) DEFAULT NULL COMMENT '工作经历小结', `update_by` varchar(255) DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1717 DEFAULT CHARSET=utf8 COMMENT='工作经历信息认定表'; -- ---------------------------- -- Records of work_experience_info -- ---------------------------- INSERT INTO `work_experience_info` VALUES ('1711', '3245', '刘溜溜', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '认定结果可能影响退休工龄', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', null, '2021-02-20 14:46:45'); INSERT INTO `work_experience_info` VALUES ('1712', '8397255', '周某某', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '认定结果可能影响退休工龄', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', null, '2021-02-20 14:46:45'); INSERT INTO `work_experience_info` VALUES ('1713', '998', '老蔡', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '认定结果可能影响退休工龄', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', null, '2021-02-20 15:03:25'); INSERT INTO `work_experience_info` VALUES ('1714', '955', '老王', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '认定结果可能影响退休工龄', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', null, '2021-02-20 15:03:25'); INSERT INTO `work_experience_info` VALUES ('1715', '1999', '老方', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '认定结果可能影响退休工龄', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', null, '2021-02-25 21:22:19'); INSERT INTO `work_experience_info` VALUES ('1716', '912', '小周', '最新任免表记载1989.07-1992.08江西电机厂工作,缺少该段工作结束时间证明材料。', '认定结果可能影响退休工龄', '材料记载1990.09《转正、定级工资审核表》记录1989年8月进入江西电机厂工作,档案内未有该段工作结束时间证明材料,经组织研究该段工作结束时间暂不予以认定。', '工作结束时间待定,可能影响退休工龄,具体由社保局核定', null, '2021-02-25 21:22:19');
true
c1fd82c32b9bdae659f32c995577f4882b04c50a
SQL
jong481/hitmen-hockey
/sql.sql
UTF-8
611
4.0625
4
[]
no_license
select * from wnba_game_stats_four_factors select * from wnba_game_schedule SELECT count(gid) FROM wnba_game_schedule where cast(gdte as date) < now() - interval '1 day' select max(cast(a.gdte as date)) from ( select distinct s.game_id, f.gdte from wnba_game_stats_four_factors s left join wnba_game_schedule f on s.game_id = f.gid ) a select distinct s.game_id, cast(f.gdte as date) from wnba_game_stats_four_factors s left join wnba_game_schedule f on s.game_id = f.gid order by cast(f.gdte as date) desc; select * from wnba_game_stats_four_factors where game_id = '1021900060'
true
fd3a607efbff843f8ea1ecac48991471c4b0bcad
SQL
chenjian-520/sparkDemo
/data-engine/src/main/resource/metafile/sqls/sprint3/sql_dws/sprint_three_dpm_dws_dsn_day_output_calculate.sql
UTF-8
15,558
2.765625
3
[]
no_license
SELECT nvl(concat( '20', ':', concat(to_unix_timestamp(concat(L5_6_10.WorkDate, ' 00:00:00'), 'yyyy-MM-dd HH:mm:ss'), '000'), ':', L5_6_10.Site_Code, ':', L5_6_10.Level_Code, ':', uuid() ), 'N/A') Rowkey, L5_6_10.Site_Code site_code, L5_6_10.Level_Code level_code, L5_6_10.PlantCode factory_code, 'ASSEMBLY1' process_code, L5_6_10.area_code area_code, L5_6_10.line_code line_code, L5_6_10.part_no part_no, L5_6_10.sku sku, L5_6_10.plantform platform, L5_6_10.WOType workorder_type, L5_6_10.WorkDate work_dt, cast(L5_6_10.UN_NOR_QTY AS VARCHAR(128)) output_qty, cast(L5_6_10.QTY AS VARCHAR(128)) normalized_output_qty, 'process' data_granularity, L5_6_10.customer customer, cast(to_unix_timestamp(now()) AS VARCHAR(128)) update_dt, 'HS' update_by, 'DWD' data_from, L5_6_10.work_shift work_shift FROM ( SELECT L6_OUTPUT_TB.WorkDate, L6_OUTPUT_TB.Site_Code, L6_OUTPUT_TB.Level_Code, L6_OUTPUT_TB.L6_QTY QTY, L6_OUTPUT_TB.L6_UN_NOR_QTY UN_NOR_QTY, 2.18 online_dl_upph_target, 4.79 offline_var_dl_upph_target, 253 offline_fix_dl_headcount_target, L6_OUTPUT_TB.PlantCode, L6_OUTPUT_TB.ProcessCode, L6_OUTPUT_TB.area_code, L6_OUTPUT_TB.line_code, L6_OUTPUT_TB.part_no, L6_OUTPUT_TB.sku, L6_OUTPUT_TB.plantform, L6_OUTPUT_TB.WOType, L6_OUTPUT_TB.customer, L6_OUTPUT_TB.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.Site_Code, dpm_dws_dsn_day_output.Level_Code, sum(dpm_dws_dsn_day_output.L6_QTY) L6_QTY, sum(dpm_dws_dsn_day_output.L6_UN_NOR_QTY) L6_UN_NOR_QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate WorkDate, dpm_dws_dsn_day_output.SiteCode Site_Code, dpm_dws_dsn_day_output.LevelCode Level_Code, nvl(dpm_dws_dsn_day_output.QTY * dpm_dim_production_normalized_factor.Normalization, 0) L6_QTY, nvl(dpm_dws_dsn_day_output.QTY, 0) L6_UN_NOR_QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.SiteCode, dpm_dws_dsn_day_output.LevelCode, dpm_dws_dsn_day_output.Key, dpm_dws_dsn_day_output.QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, LineTotranfView(dpm_dws_dsn_day_output.line_code) line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM dpm_dws_dsn_day_output WHERE dpm_dws_dsn_day_output.LevelCode = 'L6' ) dpm_dws_dsn_day_output LEFT JOIN dpm_dim_production_normalized_factor ON dpm_dws_dsn_day_output.Key = dpm_dim_production_normalized_factor.Key AND dpm_dws_dsn_day_output.LevelCode = dpm_dim_production_normalized_factor.Level AND dpm_dws_dsn_day_output.SiteCode = dpm_dim_production_normalized_factor.site_code ) dpm_dws_dsn_day_output GROUP BY dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.Site_Code, dpm_dws_dsn_day_output.Level_Code, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift ) L6_OUTPUT_TB UNION ALL SELECT L5_SFC_OUTPUT_TB.WorkDate, L5_SFC_OUTPUT_TB.Site_Code, L5_SFC_OUTPUT_TB.Level_Code, L5_SFC_OUTPUT_TB.L5_QTY QTY, L5_SFC_OUTPUT_TB.L5_UN_NOR_QTY UN_NOR_QTY, 1.855 online_dl_upph_target, 7.98 offline_var_dl_upph_target, 236 offline_fix_dl_headcount_target, L5_SFC_OUTPUT_TB.PlantCode, L5_SFC_OUTPUT_TB.ProcessCode, L5_SFC_OUTPUT_TB.area_code, L5_SFC_OUTPUT_TB.line_code, L5_SFC_OUTPUT_TB.part_no, L5_SFC_OUTPUT_TB.sku, L5_SFC_OUTPUT_TB.plantform, L5_SFC_OUTPUT_TB.WOType, L5_SFC_OUTPUT_TB.customer, L5_SFC_OUTPUT_TB.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.Site_Code, dpm_dws_dsn_day_output.Level_Code, sum(dpm_dws_dsn_day_output.L5_QTY) L5_QTY, sum(dpm_dws_dsn_day_output.L5_UN_NOR_QTY) L5_UN_NOR_QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate WorkDate, dpm_dws_dsn_day_output.SiteCode Site_Code, dpm_dws_dsn_day_output.LevelCode Level_Code, nvl(dpm_dws_dsn_day_output.QTY * dpm_dim_production_normalized_factor.Normalization, 0) L5_QTY, nvl(dpm_dws_dsn_day_output.QTY, 0) L5_UN_NOR_QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.SiteCode, dpm_dws_dsn_day_output.LevelCode, dpm_dws_dsn_day_output.Key, dpm_dws_dsn_day_output.QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM dpm_dws_dsn_day_output WHERE dpm_dws_dsn_day_output.LevelCode = 'L5' ) dpm_dws_dsn_day_output LEFT JOIN dpm_dim_production_normalized_factor ON dpm_dws_dsn_day_output.Key = dpm_dim_production_normalized_factor.Key AND dpm_dws_dsn_day_output.LevelCode = dpm_dim_production_normalized_factor.Level AND dpm_dws_dsn_day_output.SiteCode = dpm_dim_production_normalized_factor.site_code ) dpm_dws_dsn_day_output GROUP BY dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.Site_Code, dpm_dws_dsn_day_output.Level_Code, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift ) L5_SFC_OUTPUT_TB UNION ALL SELECT L10_OUTPUT_TB.WorkDate, L10_OUTPUT_TB.Site_Code, L10_OUTPUT_TB.Level_Code, L10_OUTPUT_TB.L10_QTY QTY, L10_OUTPUT_TB.L10_UN_NOR_QTY UN_NOR_QTY, 2.29 online_dl_upph_target, 10.51 offline_var_dl_upph_target, 117 offline_fix_dl_headcount_target, L10_OUTPUT_TB.PlantCode, L10_OUTPUT_TB.ProcessCode, L10_OUTPUT_TB.area_code, L10_OUTPUT_TB.line_code, L10_OUTPUT_TB.part_no, L10_OUTPUT_TB.sku, L10_OUTPUT_TB.plantform, L10_OUTPUT_TB.WOType, L10_OUTPUT_TB.customer, L10_OUTPUT_TB.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.Site_Code, dpm_dws_dsn_day_output.Level_Code, sum(dpm_dws_dsn_day_output.L10_QTY) L10_QTY, sum(dpm_dws_dsn_day_output.L10_UN_NOR_QTY) L10_UN_NOR_QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate WorkDate, dpm_dws_dsn_day_output.SiteCode Site_Code, dpm_dws_dsn_day_output.LevelCode Level_Code, nvl( if(dpm_dws_dsn_day_output.SiteCode = 'CQ', dpm_dws_dsn_day_output.QTY * dpm_dim_production_normalized_factor.Normalization, if(dpm_dws_dsn_day_output.WOType = 'BTO', dpm_dws_dsn_day_output.QTY * dpm_dim_production_normalized_factor.Normalization_BTO, if(dpm_dws_dsn_day_output.WOType = 'CTO', dpm_dws_dsn_day_output.QTY * dpm_dim_production_normalized_factor.Normalization_CTO, dpm_dws_dsn_day_output.QTY * dpm_dim_production_normalized_factor.Normalization ) ) ), 0) L10_QTY, nvl(dpm_dws_dsn_day_output.QTY, 0) L10_UN_NOR_QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM ( SELECT dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.SiteCode, dpm_dws_dsn_day_output.LevelCode, dpm_dws_dsn_day_output.Key, dpm_dws_dsn_day_output.QTY, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift FROM dpm_dws_dsn_day_output WHERE dpm_dws_dsn_day_output.LevelCode = 'L10' ) dpm_dws_dsn_day_output LEFT JOIN dpm_dim_production_normalized_factor ON dpm_dws_dsn_day_output.Key = dpm_dim_production_normalized_factor.Key AND dpm_dws_dsn_day_output.LevelCode = dpm_dim_production_normalized_factor.Level AND dpm_dws_dsn_day_output.SiteCode = dpm_dim_production_normalized_factor.site_code ) dpm_dws_dsn_day_output GROUP BY dpm_dws_dsn_day_output.WorkDate, dpm_dws_dsn_day_output.Site_Code, dpm_dws_dsn_day_output.Level_Code, dpm_dws_dsn_day_output.PlantCode, dpm_dws_dsn_day_output.ProcessCode, dpm_dws_dsn_day_output.area_code, dpm_dws_dsn_day_output.line_code, dpm_dws_dsn_day_output.part_no, dpm_dws_dsn_day_output.sku, dpm_dws_dsn_day_output.plantform, dpm_dws_dsn_day_output.WOType, dpm_dws_dsn_day_output.customer, dpm_dws_dsn_day_output.work_shift ) L10_OUTPUT_TB ) L5_6_10 WHERE nvl(L5_6_10.WorkDate, 'N/A') <> 'N/A'
true
27154f4d97cd676a94c7b92e567d3d80f6115b53
SQL
jkmccray/chinook-jkmccray
/line_item_track.sql
UTF-8
256
3.375
3
[]
no_license
--line_item_track.sql: Provide a query that includes the purchased track name with each invoice line item. SELECT t.Name AS [Purchased Track Name], il.InvoiceLineId AS [Invoice Line Item] FROM Track t INNER JOIN InvoiceLine il on t.TrackId = il.TrackId
true
497d003313f84d8f58cc4c253a9599c54972da4a
SQL
pkornijasz/jdbc
/src/main/resources/data.sql
UTF-8
335
2.75
3
[]
no_license
DROP TABLE vehicles; CREATE TABLE vehicles(id int auto_increment, mark varchar(255), model varchar(255), color varchar(255), year int, PRIMARY KEY (id)); INSERT INTO vehicles(mark, model, color, year) VALUES ('Citroen', 'C4', 'Brązowy', 2012); INSERT INTO vehicles(mark, model, color, year) VALUES ('Volvo', 'XC70', 'Zielony', 2008);
true
7baad78bd8f83b0a36992fff3bf19567063db215
SQL
geniv/nette-translator
/sql/prefix_translation.sql
UTF-8
2,117
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Počítač: localhost:3306 -- Vytvořeno: Sob 27. led 2018, 20:28 -- Verze serveru: 10.1.26-MariaDB-0+deb9u1 -- Verze PHP: 7.0.27-0+deb9u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Databáze: `netteweb` -- -- -------------------------------------------------------- -- -- Struktura tabulky `prefix_translation` -- CREATE TABLE `prefix_translation` ( `id` bigint(20) UNSIGNED NOT NULL, `id_locale` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'vazba na jazyk', `id_ident` bigint(20) UNSIGNED NOT NULL COMMENT 'vazba na ident', `translate` text COMMENT 'preklad' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='preklady'; -- -- Klíče pro exportované tabulky -- -- -- Klíče pro tabulku `prefix_translation` -- ALTER TABLE `prefix_translation` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `locale_ident_UNIQUE` (`id_locale`,`id_ident`), ADD KEY `fk_translation_locale_idx` (`id_locale`), ADD KEY `fk_translation_translation_ident_idx` (`id_ident`); -- -- AUTO_INCREMENT pro tabulky -- -- -- AUTO_INCREMENT pro tabulku `prefix_translation` -- ALTER TABLE `prefix_translation` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Omezení pro exportované tabulky -- -- -- Omezení pro tabulku `prefix_translation` -- ALTER TABLE `prefix_translation` ADD CONSTRAINT `fk_translation_locale` FOREIGN KEY (`id_locale`) REFERENCES `prefix_locale` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_translation_translation_ident` FOREIGN KEY (`id_ident`) REFERENCES `prefix_translation_ident` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
b85749f26348564f1f0ff5ece689cde74fa62dbc
SQL
alphagov/verify-event-system-database-scripts
/migrations/V000011__generate_event_id_for_NULL_values.sql
UTF-8
425
3.046875
3
[]
no_license
-- For any rows that don't have a matching audit event, generate a random event_id -- The below UUID formula is used instead of having to install the uuid-ossp extension module UPDATE billing.billing_events SET event_id = uuid_in(overlay(overlay(md5(random()::text || ':' || clock_timestamp()::text) placing '4' from 13) placing to_hex(floor(random()*(11-8+1) + 8)::int)::text from 17)::cstring) WHERE event_id IS NULL ;
true
fca0730c30fe9e2040dd6afcfce7b980926953c0
SQL
ua-eas/kc-3.1.1-5.2.1-dbupgrade
/current_mysql/5.0.1/constraints/KC_FK_UNIT_FORMULATED_COST.sql
UTF-8
333
3.171875
3
[]
no_license
DELIMITER / ALTER TABLE UNIT_FORMULATED_COST ADD CONSTRAINT FK_UNIT_FORMULATED_COST FOREIGN KEY (FORMULATED_TYPE_CODE) REFERENCES FORMULATED_TYPE (FORMULATED_TYPE_CODE) / ALTER TABLE UNIT_FORMULATED_COST ADD CONSTRAINT FK_UNIT_FORMULATED_COST_1 FOREIGN KEY (UNIT_NUMBER) REFERENCES UNIT (UNIT_NUMBER) / DELIMITER ;
true
f6db35c38ebb5bbaa21e3b2dc9b2ca9207139512
SQL
magnus80/Autotests
/src/main/resources/SQL/delete_for_273717_2_2.sql
WINDOWS-1251
466
2.765625
3
[]
no_license
declare ctn varchar2(100); deleteUsersessionsStmt varchar2(5000); deleteAccumulatorStmt varchar2(5000); begin ctn:='9030371111'; -- deleteUsersessionsStmt:='DELETE USERSESSIONS where CHRMSISDN='||ctn; deleteAccumulatorStmt:='DELETE ACCUMULATOR where CHRMSISDN='||ctn; execute immediate deleteUsersessionsStmt; execute immediate deleteAccumulatorStmt; commit; end;
true
e100058b584ee81cec0e9156c25e56112df53bf2
SQL
alibaba/canal
/parse/src/main/resources/ddl/derby/meta_history.sql
UTF-8
947
3.28125
3
[ "Apache-2.0" ]
permissive
CREATE TABLE meta_history ( id bigint GENERATED ALWAYS AS IDENTITY NOT NULL, gmt_create timestamp NOT NULL, gmt_modified timestamp NOT NULL, destination varchar(128) DEFAULT NULL, binlog_file varchar(64) DEFAULT NULL, binlog_offest bigint DEFAULT NULL, binlog_master_id varchar(64) DEFAULT NULL, binlog_timestamp bigint DEFAULT NULL, use_schema varchar(1024) DEFAULT NULL, sql_schema varchar(1024) DEFAULT NULL, sql_table varchar(1024) DEFAULT NULL, sql_text clob(16 M) DEFAULT NULL, sql_type varchar(1024) DEFAULT NULL, extra varchar(512) DEFAULT NULL, PRIMARY KEY (id), CONSTRAINT meta_history_binlog_file_offest UNIQUE (destination,binlog_master_id,binlog_file,binlog_offest) ); create index meta_history_destination on meta_history(destination); create index meta_history_destination_timestamp on meta_history(destination,binlog_timestamp); create index meta_history_gmt_modified on meta_history(gmt_modified);
true
06365b6229dff4837e67c04c56d7b2e9b8806bc1
SQL
Oscajunq/HandsON
/HandsON_Oracle/DBA/VER_SESSION.SQL
ISO-8859-1
10,558
2.96875
3
[]
no_license
-- -- ver detalhamento da sessao utilizada pelo usuario -- -- scripts criado em 10/01/2008 -- DBA: Osmar -- -- eliminar forcadamente uma sesso inativa -- ALTER SYSTEM DISCONNECT 'sid, serial' IMMEDIATE -- -- SELECT username,SID, s.serial#, status FROM v$session s WHERE --SID = '244' -- AND ( (s.username IS NOT NULL) AND (NVL (s.osuser, 'x') <> 'SYSTEM') AND (s.TYPE <> 'BACKGROUND') ); -- SELECT username, status, program, count(*) FROM v$session s WHERE ( (s.username IS NOT NULL) AND (NVL (s.osuser, 'x') <> 'SYSTEM') AND (s.TYPE <> 'BACKGROUND') ) group BY username,status,program -- -- -- mais detalhamento da sessao -- SELECT sharable_mem, persistent_mem, runtime_mem, sorts, loaded_versions, open_versions, users_opening, executions, users_executing, loads, first_load_time, invalidations, parse_calls, disk_reads, buffer_gets, rows_processed, command_type, optimizer_mode, optimizer_cost, parsing_user_id, parsing_schema_id, kept_versions, address, hash_value, child_number, module, module_hash, action, action_hash, serializable_aborts, type_chk_heap, outline_category, is_obsolete, last_load_time, outline_sid, elapsed_time, cpu_time, plan_hash_value, fetches FROM v$sql WHERE (address, hash_value) = (SELECT sql_address, sql_hash_value FROM v$session WHERE SID = :SID); -- -- -- -- VER TODAS AS SESSOES DE UM DETERMINADOR OWNER -- SELECT ROUND (BITAND (s.ownerid, 65535)) parent_session_sid, ROUND (BITAND (s.ownerid, 16711680) / 65536) parent_session_instid, s.saddr, s.SID, s.serial#, s.audsid, s.paddr, s.user#, s.username, s.command, s.ownerid, s.taddr, s.lockwait, s.status, s.server, s.schema#, s.schemaname, s.osuser, s.process, s.machine, s.terminal, UPPER (s.program) program, s.TYPE, s.sql_address, s.sql_hash_value, s.sql_id, s.sql_child_number, s.prev_sql_addr, s.prev_hash_value, s.prev_sql_id, s.prev_child_number, s.plsql_entry_object_id, s.plsql_entry_subprogram_id, s.plsql_object_id, s.plsql_subprogram_id, s.module, s.module_hash, s.action, s.action_hash, s.client_info, s.fixed_table_sequence, s.row_wait_obj#, s.row_wait_file#, s.row_wait_block#, s.row_wait_row#, s.logon_time, s.last_call_et, s.pdml_enabled, s.failover_type, s.failover_method, s.failed_over, s.resource_consumer_group, s.pdml_status, s.pddl_status, s.pq_status, s.current_queue_duration, s.client_identifier, s.blocking_session_status, s.blocking_instance, s.blocking_session, s.seq#, s.event#, s.event, s.p1text, s.p1, s.p1raw, s.p2text, s.p2, s.p2raw, s.p3text, s.p3, s.p3raw, s.wait_class_id, s.wait_class#, s.wait_class, s.wait_time, s.seconds_in_wait, s.state, s.service_name, s.sql_trace, s.sql_trace_waits, s.sql_trace_binds FROM v$session s WHERE (s.username = 'HOMISSR2') AND ( (s.username IS NOT NULL) AND (NVL (s.osuser, 'x') <> 'SYSTEM') AND (s.TYPE <> 'BACKGROUND') ) -- -- -- VER O LONG OPS DA SESSAO ATIVA -- SELECT SID, DECODE (totalwork, 0, 0, ROUND (100 * sofar / totalwork, 2) ) "Percent", MESSAGE "Message", start_time, elapsed_seconds, time_remaining FROM v$session_longops WHERE (SID = 149 AND serial# = 32850) ORDER BY SID ------------------------------------------------------------------------------------------------ --- verificando a sessao que esta rodando em relacao ao PID no unix --- --- [brsassmm085]# top PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND 23695 oracle 2 50 0 1693M 1651M cpu 5:23 97.65% oracle 4650 oracle 1 50 0 1704M 1661M cpu 0:03 56.43% oracle 12993 oracle 2 31 0 1691M 1649M sleep 2:01 18.91% oracle 7099 oracle 1 100 -20 1697M 1620M sleep 38:53 1.33% oracle 7103 oracle 1 100 -20 1697M 1612M sleep 35:20 1.24% oracle 29301 oracle 2 59 0 1688M 1645M sleep 3:42 0.80% oracle 26903 oracle 2 59 0 1688M 1631M sleep 2:07 0.49% oracle 3153 oracle 1 59 0 2536K 2136K cpu 0:00 0.42% top 7119 oracle 1 59 0 1688M 1628M sleep 6:22 0.35% oracle 3711 oracle 15 59 -5 200M 157M sleep 5:36 0.27% ocssd.bin 7095 oracle 2 59 0 1692M 1607M sleep 4:18 0.22% oracle 2373 root 1 11 0 1384K 1000K sleep 3:45 0.21% init.cssd 2879 root 1 111 -20 165M 132M sleep 3:23 0.18% lkmgr 3102 root 10 59 0 11M 7832K sleep 5:59 0.16% caiUxOs 7097 oracle 1 59 0 1698M 1604M sleep 3:34 0.14% oracle SELECT lpad(A.username,8) "User", lpad(A.osuser,8) "OSUser", lpad(A.sid, 5) "SID", TO_CHAR(A.serial#, '999999999') "SERIAL#", A.status, TO_CHAR(B.spid, '999999999') "OS PID", TO_CHAR(A.logon_time, 'DD/MM/YYYY HH24:MI:SS') "LOGON" , A.program, A.machine, S_IO.physical_reads, ( select SQL_TEXT from v$sqlarea C where (C.address,C.HASH_VALUE)=(select D.PREV_SQL_addr,D.PREV_HASH_VALUE from v$session D where D.sid=A.sid) ) as "SQL" FROM v$session A, v$process B, v$sess_io S_IO WHERE A.type = 'USER' AND LENGTH(LTRIM(RTRIM(A.username))) > 0 AND B.addr = A.paddr AND A.sid = S_IO.sid AND B.SPID = &spid ORDER BY A.username, A.logon_time DESC; Enter value for spid: 23695 old 18: AND B.SPID = &spid new 18: AND B.SPID = 23695 User OSUser SID SERIAL# STATUS OS PID LOGON Program MACHINE PHYSICAL_READS SQL ---------- ---------- ----- ---------- ------ ---------- -------------------- ------------------------- --------------- -------------- ---------------------------------------- ISSR_PRD 215 2425 ACTIVE 23695 03/06/2008 10:11:07 BRSASSMM083 2991 select produto, sum(qtd_paginas) qtd_pag inas, count(1) total_contas, to_char(sum (valor_fatura),'9999999999990d00') valor _fatura from vw_eds_rel_e133_arq Where COD_EMISSOR= '1001' and trim(COD_ARQUI VO) = '810' group by produto SELECT lpad(A.username,8) "User", lpad(A.osuser,8) "OSUser", lpad(A.sid, 5) "SID", TO_CHAR(A.serial#, '999999999') "SERIAL#", A.status, TO_CHAR(B.spid, '999999999') "OS PID", TO_CHAR(A.logon_time, 'DD/MM/YYYY HH24:MI:SS') "LOGON" , A.program, A.machine, ( select SQL_TEXT from v$sqlarea C where (C.address,C.HASH_VALUE)=(select D.PREV_SQL_addr,D.PREV_HASH_VALUE from v$session D where D.sid=A.sid) ) as "SQL" FROM v$session A, v$process B WHERE B.addr = A.paddr AND A.STATUS ='KILLED' ORDER BY A.username, A.logon_time DESC; Eliminando sesses Inativas no bd Oracle ======================================== Muitas vezes necessrio a eliminao "forada" de sesses inativas num bd Oracle (normalmente porque o operador encerrou o seu trabalho mas no desconectou, deixando erradamente a tale do aplicativo aberta, ainda conectada. Pensando em conexo dedicada e banco 9i ou superior, que so o caso mais comum, essa eliminao seria feita num job que periodicamente, seja via comandos ALTER SYSTEM DISCONNECT 'sid, serial' IMMEDIATE; , ou at mais diretamente eliminando-se o processo shadow dessa conexo diretamente no servidor. H porm um ponto a considerar, qual seja : no bd Oracle quando vc elimina uma sesso ela NO removida at que expire OU que o usurio tente fazer um novo acesso ao banco, quando a sim receber uma mensagem "vc foi desconectado" e s ento efetivamente ser desconectado e a respectiva sesso eliminada - se quisermos que a sesso seja removida antes mesmo que o usurio tente fazer novo acesso ao banco, poderamos utilizar um PROFILE, cfrme : system@BDDEV:SQL>show parameters resource_limit NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ resource_limit boolean TRUE system@BDDEV:SQL>create profile prof_idle_2_minutos limit idle_time 120; Perfil criado. system@BDDEV:SQL>alter user scott profile prof_idle_2_minutos; Usurio alterado. ==> a conecto no usurio SCOTT. Veja que enquanto a sesso no est fazendo NADA mas est conectada o idle_time no atua : scott@BDDEV:SQL>select sysdate from dual; SYSDATE ------------------- 04/07/2006 09:47:41 ... no estou fazendo nada , espero uns minutos e volto sesso, tento fazer outro acesso ao banco, vai ok : scott@BDDEV:SQL>/ SYSDATE ------------------- 04/07/2006 09:50:18 ==> agora vem o teste: vou fazer uma QUERY "grande" e demorada (*** NO *** DML, pois no caso de DMLs h que se remover locks, fazer rollback, isso MESMO demorado) : scott@BDDEV:SQL>select * from all_tab_columns; ... executando ... ==> a consulto a situao na v$session, est l, est ativa, normal : ..... SID SERIAL# ... STATUS SERVER ... ---- ------- -------- --------- 20 34889 ACTIVE DEDICATED system@BDDEV:SQL>alter system disconnect session '20, 34889' immediate; ==> imediatamente a sesso foi marcada como KILLED system@BDDEV:SQL>select * from v$session where username='SCOTT'; ..... SID SERIAL# ... STATUS SERVER ... ..... ---- ------- ... -------- --------- ..... 20 34889 ... KILLED PSEUDO ==> espero um pouco pra dar o tempo de inatividade... system@BDDEV:SQL>/ no h linhas selecionadas ==> e senm ter feito nada, na sesso que "morreu" eu obtenho : SYS EXU8NXPU NAME SYS EXU9TABU DOBJID ERROR: ORA-00028: your session has been killed e realmente a sesso foi eliminada, se tentar um acesso ao banco : scott@BDDEV:SQL>select 1 from dual; select 1 from dual * ERRO na linha 1: ORA-01012: not logged on
true
97e9424ba6e378f1b6da99d5e6bf264a802de73e
SQL
VKMUSTH/Musth.sql
/equipement.sql
UTF-8
1,664
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Dim 12 Mai 2019 à 19:00 -- Version du serveur: 5.5.54-0ubuntu0.14.04.1 -- Version de PHP: 5.5.9-1ubuntu4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de données: `Musth` -- -- -------------------------------------------------------- -- -- Structure de la table `equipement` -- CREATE TABLE IF NOT EXISTS `equipement` ( `id` int(10) NOT NULL AUTO_INCREMENT, `numdossier` varchar(255) NOT NULL, `equipement` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ; -- -- Contenu de la table `equipement` -- INSERT INTO `equipement` (`id`, `numdossier`, `equipement`) VALUES (1, '106', 'Arches noir mat'), (2, '106', 'Coques de rétro. exté noir Perla Nera'), (3, '106', 'Pack Vision'), (4, '106', 'ABS'), (5, '106', 'Aide au freinage d''urgence'), (6, '106', 'Airbag passager déconnectable'), (7, '106', 'Barettes de calandre AV noir brillant'), (8, '106', 'JA 19'''' Sortilège'), (9, '106', 'WIP Nav Plus'), (10, '106', 'Aide au démarrage en côte'), (11, '106', 'Airbag conducteur'), (12, '106', 'Airbag latéraux avant'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
d890fa4ed39673cbcd1f6faccbd8a2fbdf8e8d72
SQL
simonscerri/keyAppTest
/keyAppSensor.sql
UTF-8
2,217
2.703125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : local_machine Source Server Version : 50612 Source Host : 127.0.0.1:3306 Source Database : m2m Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2015-02-27 10:50:41 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for keyappsensor -- ---------------------------- DROP TABLE IF EXISTS `keyappsensor`; CREATE TABLE `keyappsensor` ( `identifier` int(255) NOT NULL AUTO_INCREMENT, `date_time` datetime DEFAULT NULL, `temperature` int(2) DEFAULT NULL, `battery` int(6) DEFAULT NULL, `device_id` varchar(20) DEFAULT NULL, PRIMARY KEY (`identifier`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of keyappsensor -- ---------------------------- INSERT INTO `keyappsensor` VALUES ('1', '2015-02-25 15:27:58', '22', '3120', '16941'); INSERT INTO `keyappsensor` VALUES ('2', '2015-02-25 15:28:40', '21', '3120', '16941'); INSERT INTO `keyappsensor` VALUES ('3', '2015-02-25 15:56:36', '20', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('4', '2015-02-25 15:57:03', '21', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('5', '2015-02-26 12:08:35', '21', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('6', '2015-02-26 12:09:54', '23', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('7', '2015-02-26 12:14:15', '21', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('8', '2015-02-26 12:15:06', '37', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('9', '2015-02-26 12:15:20', '18', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('10', '2015-02-26 12:22:18', '21', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('11', '2015-02-26 12:53:02', '25', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('12', '2015-02-26 12:54:02', '17', '3170', '16941'); INSERT INTO `keyappsensor` VALUES ('13', '2015-02-26 13:10:34', '24', '3173', '16941'); INSERT INTO `keyappsensor` VALUES ('14', '2015-02-26 13:17:09', '20', '3173', '16941'); INSERT INTO `keyappsensor` VALUES ('15', '2015-02-27 09:16:10', '24', '3170', '16941');
true
384c44183520ac17a54ab87b22c34017244a1f7e
SQL
Prema44/Address_Book_Service_DB
/AddressBook.sql
UTF-8
3,697
4.125
4
[]
no_license
#UC1 CREATE DATABASE AddressBookService; SHOW DATABASES; USE addressbookservice; #UC2 CREATE TABLE AddressBook -> ( -> firstName varchar(100) NOT NULL, -> lastName varchar(100) NOT NULL, -> address varchar(250) NOT NULL, -> city varchar(50) NOT NULL, -> state varchar(50) NOT NULL, -> zip numeric(6), -> phone numeric(10) NOT NULL, -> email varchar(100) NOT NULL, -> primary key (firstName, lastName) -> ); DESCRIBE Addressbook; #UC3 INSERT INTO addressBook values('Adity','Kharade','Kaulkhed','Akola','Maharashtra',444001, 8844557722,'[email protected]'); INSERT INTO AddressBook VALUES ('Aniket','Sarap','Kaulkhed','Akola','Maharashtra',444001,8475612478,'[email protected]'); INSERT INTO AddressBook VALUES ('Prajwal','Bhamodre','Kaulkhed','Akola','Maharashtra',444001,8475574178,'[email protected]'); INSERT INTO AddressBook VALUES ('Sanket','Deshmukh','Kaulkhed','Akola','Maharashtra',444001,7445566221,'[email protected]'); #UC4 Update AddressBook SET phone=1234567890 WHERE name='Adity'; Update AddressBook SET phone=7896541235 WHERE firstname='Aniket'; #UC5 DELETE from AddressBook where firstname='Sanket'; #UC6 SELECT * from AddressBook WHERE city ='Mumbai'; SELECT * from AddressBook WHERE state ='Karnataka'; #UC7 SELECT city, count(*) FROM AddressBook -> GROUP BY city; SELECT state, count(*) FROM AddressBook -> GROUP BY state; #UC8 SELECT * from AddressBook -> WHERE city = 'Akola' -> ORDER BY firstname, lastname; #UC9 ALTER TABLE AddressBook RENAME TO Contacts; ALTER TABLE Contacts -> DROP PRIMARY KEY; ALTER TABLE Contacts -> ADD ContactID INT NOT NULL AUTO_INCREMENT FIRST, -> ADD PRIMARY KEY(ContactID); CREATE TABLE AddressBook -> ( -> BookID INT NOT NULL AUTO_INCREMENT, -> ContactID INT NOT NULL, -> BookName VARCHAR(100) NOT NULL, -> PRIMARY KEY (BookID), -> FOREIGN KEY (ContactID) REFERENCES Contacts (ContactID) -> ); ALTER TABLE AddressBook -> ADD BookType VARCHAR(100) NOT NULL AFTER BookName; #UC10 SELECT BookType, COUNT(*) FROM AddressBook -> GROUP BY BookType; #UC11 INSERT INTO AddressBook (contactId, BookName, BookType) VALUES -> (1, 'FamilyBook', 'Family'), -> (1, 'FriendBook', 'Friend'), -> (2, 'FriendBook','Friend'), -> (2, 'ProfessionBook','Profession'), -> (3, 'FamilyBook','Family'), -> (4, 'ProfessionBook','Profession'), -> (4, 'FamilyBook','Family'), -> (5, 'FriendBook','Friend'); # UC 12 create table zipCityState ( zip numeric(6) not null, city varchar(100) not null, state varchar(100) not null, foreign key (zip) references contact_table(zip) ); create table addressbookTypes ( addressbookName varchar(100) not null, type varchar(100) not null, foreign key (addressbookName) references contact_table(addressbookName) ); alter table contacts_table drop column city, drop column state; alter table addressbook_table drop column type; insert into addressbookTypes values ('AddressBook1', 'family'), ('AddressBook2','friend'), ('AddressBook3','profession'); insert into addressbookTypes values (405689, 'Mumbai', 'Maharashtra'), (400067, 'Mumbai', 'Maharashtra'), (481023, 'Pune', 'Maharashtra'), (408574, 'Satara', 'Maharashtra'), (800561, 'hubli', 'Karnataka'), (281557, 'Delhi', 'Delhi'); #Usecase 13: select contacts.contactId, addressbook.addressbookName, addressbookTypes.type, contacts.firstName, contacts.lastName, contacts.address, address.city, address.state, address.zip, contacts.phone, contacts.email from contacts inner join address on contacts.zip = address.zip inner join addressbook on contacts.contactId = addressbook.contactId inner join addressbookTypes on addressbookTypes.addressbookName = addressbook.addressbookName;
true
bae277abcdea9a39f1b415b4f7305e2bf2819e09
SQL
kyle-d-pearce/ISTA420
/Week-5-SetOperators/Labs/Lab 5D/LAB 5D TSQL.sql
UTF-8
2,284
4.4375
4
[]
no_license
-- 1. Explain the difference between the UNION ALL and UNION operators. In what cases are the two -- equivalent? When they are equivalent, which one should you use? -- 2. Write a query that generates a virtual auxiliary table of 10 numbers in the range 1 through 10 without -- using a looping construct. You do not need to guarantee any order of the rows in the output of your solution: SELECT 1 AS n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5 UNION ALL SELECT 6 UNION ALL SELECT 7 UNION ALL SELECT 8 UNION ALL SELECT 9 UNION ALL SELECT 10; -- 3. Write a query that returns customer and employee pairs that had order activity in January 2016 but not in February 2016: SELECT custid, empid FROM Sales.Orders WHERE orderdate >= '20160101' AND orderdate < '20160201' EXCEPT SELECT custid, empid FROM Sales.Orders WHERE orderdate >= '20160201' AND orderdate < '20160301'; -- 4. Write a query that returns customer and employee pairs that had order activity in both January 2016 and February 2016: SELECT custid, empid FROM Sales.Orders WHERE orderdate >= '20160101' AND orderdate < '20160201' INTERSECT SELECT custid, empid FROM Sales.Orders WHERE orderdate >= '20160201' AND orderdate < '20160301'; -- 5. Write a query that returns customer and employee pairs that had order activity in both January 2016 and February 2016 but not in 2015: SELECT custid, empid FROM Sales.Orders WHERE orderdate >= '20160101' AND orderdate < '20160201' INTERSECT SELECT custid, empid FROM Sales.Orders WHERE orderdate >= '20160201' AND orderdate < '20160301' EXCEPT SELECT custid, empid FROM Sales.Orders WHERE orderdate >= '20150101' AND orderdate < '20160101'; -- 6.a. You are given the following query: SELECT country, region, city FROM HR.Employees UNION ALL SELECT country, region, city FROM Production.Suppliers; -- 6.b. Add logic to the query so that it guarantees that the rows from Employees are returned in the output before the rows from Suppliers. -- Also, within each segment, the rows should be sorted by country, region, and city: SELECT country, region, city FROM (SELECT 1 AS sortcol, country, region, city FROM HR.Employees UNION ALL SELECT 2, country, region, city FROM Production.Suppliers) AS D ORDER BY sortcol, country, region, city;
true
e4a99dc2c1c43701cf470d3f852b32c46539312f
SQL
LoganCrockett/URL-Shortener
/shortURL.sql
UTF-8
328
3.21875
3
[]
no_license
drop schema if exists shortURL; create schema shortURL; use shortURL; create table shorturl.URL ( url_id int auto_increment not null, longURL varchar(512) null, shortURL varchar(18) null, numRedirects int not null, constraint url_pk primary key (url_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
true
9e97f9c5c49c46cb1abd8889113056e47275ae76
SQL
mikaelma/NidarvollVR
/bLCAd/Scripts/C. Queries/Multiple building queries/stats_materialsBuilding.sql
UTF-8
1,214
3.984375
4
[]
no_license
-- shows some statistics about data used in the calculations and groups by building -- can be changed to view stats by building element by just changing the grouping to group by be.idlevels (and displaying the levels as well) -- or group by both of the above -- NB: only buildings that have material inventories will show up here SELECT b.building_identifier, b.building_name, COUNT(b.building_identifier) AS numberOfInventoryEntries, COUNT(DISTINCT m.name) AS numberOfDistinctMaterials, COUNT(b.building_identifier) / COUNT(DISTINCT m.name) AS materialUsedAvgNbrOfTimes, SUM(mi.quantity*m.density)/1000 as Mass_tonn, AVG(m.dataYear), MIN(m.dataYear), MAX(m.dataYear), AVG(RSL_mi), AVG(EEf_A1A3/density) FROM materialinventory mi JOIN materials m ON mi.idmaterials = m.idmaterials JOIN buildingelements be ON be.idbuilding_elements = mi.idbuilding_elements JOIN materialcat mc ON m.idmaterialCat = mc.idmaterialCat JOIN levels l ON l.idlevels = be.idlevels JOIN buildings b ON b.idbuildings = be.idbuildings GROUP BY b.building_identifier; -- l.idlevels; -- b.building_identifier, l.idlevels;
true
f57279c0cc88309d118c408a5463588796064d71
SQL
spergen14/myprojects-1
/garage/garage.sql
UTF-8
1,965
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 15, 2016 at 11:34 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `garage` -- -- -------------------------------------------------------- -- -- Table structure for table `login` -- CREATE TABLE IF NOT EXISTS `login` ( `userName` varchar(30) NOT NULL, `Pass` varchar(10) NOT NULL, PRIMARY KEY (`userName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `login` -- INSERT INTO `login` (`userName`, `Pass`) VALUES ('Amey', '1234'), ('Yash', 'ambre1234'); -- -------------------------------------------------------- -- -- Table structure for table `register` -- CREATE TABLE IF NOT EXISTS `register` ( `username` varchar(10) NOT NULL, `email_id` varchar(30) NOT NULL, `contact` bigint(10) NOT NULL, `veh_name` varchar(20) NOT NULL, `veh_no` bigint(8) NOT NULL, `issue` varchar(30) NOT NULL, PRIMARY KEY (`veh_no`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `register` -- INSERT INTO `register` (`username`, `email_id`, `contact`, `veh_name`, `veh_no`, `issue`) VALUES ('Yash', '[email protected]', 9876543212, 'Mercedes Benz', 0, 'Acceleration Issue'), ('Neil', '[email protected]', 1312524353, 'Jaquar', 123213, 'Battery'), ('Ron', '[email protected]', 2132453524, 'Maruti 800', 133412, 'Brake, Clutch, Acceleration'), ('Brandon', '[email protected]', 1234567891, 'BMW', 696969, 'Clutch Issue'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
89eda5d032c232c44b876166d1aa14cc98733182
SQL
sqlfluff/sqlfluff
/test/fixtures/dialects/bigquery/parameters.sql
UTF-8
576
3.609375
4
[ "MIT" ]
permissive
--bigquery allows for named params like @param or ordered params in ? select "1" from x where y = @z_test1; select datetime_trunc(@z2, week); select datetime_trunc(@_ab, week); select datetime_trunc(@a, week); select parse_date("%Y%m", year); -- this should parse year as an identifier select "1" from x where y = ?; select concat("1", ?); select id, datetime_trunc(@z2, week), sum(something) over( partition by some_id order by some_date rows BETWEEN @query_parameter PRECEDING AND CURRENT ROW) as some_sum from some_table where some_column = @query_parameter2;
true
fe23a09d802bbcabb6984c8a1076e50bbc4d5f1a
SQL
DiazLighuen/Grupo10Taller
/taller.sql
UTF-8
266,840
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-12-2017 a las 17:39:29 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `taller` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `airline` -- CREATE TABLE `airline` ( `user_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `airline` -- INSERT INTO `airline` (`user_id`) VALUES (6); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cart` -- CREATE TABLE `cart` ( `id` int(11) NOT NULL, `date` date NOT NULL, `price` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `cart` -- INSERT INTO `cart` (`id`, `date`, `price`) VALUES (1, '2017-12-06', 0), (2, '2017-12-06', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `city` -- CREATE TABLE `city` ( `id` int(11) NOT NULL, `name` varchar(25) COLLATE utf8_spanish_ci NOT NULL, `country_id` int(11) NOT NULL, `state_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `city` -- INSERT INTO `city` (`id`, `name`, `country_id`, `state_id`) VALUES (1, 'Barcelona', 205, 3315), (2, 'Ezeiza', 10, 208), (3, 'Milan', 107, 1848); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `concessionaire` -- CREATE TABLE `concessionaire` ( `concessionaire_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `concessionaire` -- INSERT INTO `concessionaire` (`concessionaire_id`) VALUES (5); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `country` -- CREATE TABLE `country` ( `id` int(11) NOT NULL, `sortname` varchar(3) NOT NULL, `name` varchar(150) NOT NULL, `phonecode` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `country` -- INSERT INTO `country` (`id`, `sortname`, `name`, `phonecode`) VALUES (1, 'AF', 'Afghanistan', 93), (2, 'AL', 'Albania', 355), (3, 'DZ', 'Algeria', 213), (4, 'AS', 'American Samoa', 1684), (5, 'AD', 'Andorra', 376), (6, 'AO', 'Angola', 244), (7, 'AI', 'Anguilla', 1264), (8, 'AQ', 'Antarctica', 0), (9, 'AG', 'Antigua And Barbuda', 1268), (10, 'AR', 'Argentina', 54), (11, 'AM', 'Armenia', 374), (12, 'AW', 'Aruba', 297), (13, 'AU', 'Australia', 61), (14, 'AT', 'Austria', 43), (15, 'AZ', 'Azerbaijan', 994), (16, 'BS', 'Bahamas The', 1242), (17, 'BH', 'Bahrain', 973), (18, 'BD', 'Bangladesh', 880), (19, 'BB', 'Barbados', 1246), (20, 'BY', 'Belarus', 375), (21, 'BE', 'Belgium', 32), (22, 'BZ', 'Belize', 501), (23, 'BJ', 'Benin', 229), (24, 'BM', 'Bermuda', 1441), (25, 'BT', 'Bhutan', 975), (26, 'BO', 'Bolivia', 591), (27, 'BA', 'Bosnia and Herzegovina', 387), (28, 'BW', 'Botswana', 267), (29, 'BV', 'Bouvet Island', 0), (30, 'BR', 'Brazil', 55), (31, 'IO', 'British Indian Ocean Territory', 246), (32, 'BN', 'Brunei', 673), (33, 'BG', 'Bulgaria', 359), (34, 'BF', 'Burkina Faso', 226), (35, 'BI', 'Burundi', 257), (36, 'KH', 'Cambodia', 855), (37, 'CM', 'Cameroon', 237), (38, 'CA', 'Canada', 1), (39, 'CV', 'Cape Verde', 238), (40, 'KY', 'Cayman Islands', 1345), (41, 'CF', 'Central African Republic', 236), (42, 'TD', 'Chad', 235), (43, 'CL', 'Chile', 56), (44, 'CN', 'China', 86), (45, 'CX', 'Christmas Island', 61), (46, 'CC', 'Cocos (Keeling) Islands', 672), (47, 'CO', 'Colombia', 57), (48, 'KM', 'Comoros', 269), (49, 'CG', 'Republic Of The Congo', 242), (50, 'CD', 'Democratic Republic Of The Congo', 242), (51, 'CK', 'Cook Islands', 682), (52, 'CR', 'Costa Rica', 506), (53, 'CI', 'Cote D\'Ivoire (Ivory Coast)', 225), (54, 'HR', 'Croatia (Hrvatska)', 385), (55, 'CU', 'Cuba', 53), (56, 'CY', 'Cyprus', 357), (57, 'CZ', 'Czech Republic', 420), (58, 'DK', 'Denmark', 45), (59, 'DJ', 'Djibouti', 253), (60, 'DM', 'Dominica', 1767), (61, 'DO', 'Dominican Republic', 1809), (62, 'TP', 'East Timor', 670), (63, 'EC', 'Ecuador', 593), (64, 'EG', 'Egypt', 20), (65, 'SV', 'El Salvador', 503), (66, 'GQ', 'Equatorial Guinea', 240), (67, 'ER', 'Eritrea', 291), (68, 'EE', 'Estonia', 372), (69, 'ET', 'Ethiopia', 251), (70, 'XA', 'External Territories of Australia', 61), (71, 'FK', 'Falkland Islands', 500), (72, 'FO', 'Faroe Islands', 298), (73, 'FJ', 'Fiji Islands', 679), (74, 'FI', 'Finland', 358), (75, 'FR', 'France', 33), (76, 'GF', 'French Guiana', 594), (77, 'PF', 'French Polynesia', 689), (78, 'TF', 'French Southern Territories', 0), (79, 'GA', 'Gabon', 241), (80, 'GM', 'Gambia The', 220), (81, 'GE', 'Georgia', 995), (82, 'DE', 'Germany', 49), (83, 'GH', 'Ghana', 233), (84, 'GI', 'Gibraltar', 350), (85, 'GR', 'Greece', 30), (86, 'GL', 'Greenland', 299), (87, 'GD', 'Grenada', 1473), (88, 'GP', 'Guadeloupe', 590), (89, 'GU', 'Guam', 1671), (90, 'GT', 'Guatemala', 502), (91, 'XU', 'Guernsey and Alderney', 44), (92, 'GN', 'Guinea', 224), (93, 'GW', 'Guinea-Bissau', 245), (94, 'GY', 'Guyana', 592), (95, 'HT', 'Haiti', 509), (96, 'HM', 'Heard and McDonald Islands', 0), (97, 'HN', 'Honduras', 504), (98, 'HK', 'Hong Kong S.A.R.', 852), (99, 'HU', 'Hungary', 36), (100, 'IS', 'Iceland', 354), (101, 'IN', 'India', 91), (102, 'ID', 'Indonesia', 62), (103, 'IR', 'Iran', 98), (104, 'IQ', 'Iraq', 964), (105, 'IE', 'Ireland', 353), (106, 'IL', 'Israel', 972), (107, 'IT', 'Italy', 39), (108, 'JM', 'Jamaica', 1876), (109, 'JP', 'Japan', 81), (110, 'XJ', 'Jersey', 44), (111, 'JO', 'Jordan', 962), (112, 'KZ', 'Kazakhstan', 7), (113, 'KE', 'Kenya', 254), (114, 'KI', 'Kiribati', 686), (115, 'KP', 'Korea North', 850), (116, 'KR', 'Korea South', 82), (117, 'KW', 'Kuwait', 965), (118, 'KG', 'Kyrgyzstan', 996), (119, 'LA', 'Laos', 856), (120, 'LV', 'Latvia', 371), (121, 'LB', 'Lebanon', 961), (122, 'LS', 'Lesotho', 266), (123, 'LR', 'Liberia', 231), (124, 'LY', 'Libya', 218), (125, 'LI', 'Liechtenstein', 423), (126, 'LT', 'Lithuania', 370), (127, 'LU', 'Luxembourg', 352), (128, 'MO', 'Macau S.A.R.', 853), (129, 'MK', 'Macedonia', 389), (130, 'MG', 'Madagascar', 261), (131, 'MW', 'Malawi', 265), (132, 'MY', 'Malaysia', 60), (133, 'MV', 'Maldives', 960), (134, 'ML', 'Mali', 223), (135, 'MT', 'Malta', 356), (136, 'XM', 'Man (Isle of)', 44), (137, 'MH', 'Marshall Islands', 692), (138, 'MQ', 'Martinique', 596), (139, 'MR', 'Mauritania', 222), (140, 'MU', 'Mauritius', 230), (141, 'YT', 'Mayotte', 269), (142, 'MX', 'Mexico', 52), (143, 'FM', 'Micronesia', 691), (144, 'MD', 'Moldova', 373), (145, 'MC', 'Monaco', 377), (146, 'MN', 'Mongolia', 976), (147, 'MS', 'Montserrat', 1664), (148, 'MA', 'Morocco', 212), (149, 'MZ', 'Mozambique', 258), (150, 'MM', 'Myanmar', 95), (151, 'NA', 'Namibia', 264), (152, 'NR', 'Nauru', 674), (153, 'NP', 'Nepal', 977), (154, 'AN', 'Netherlands Antilles', 599), (155, 'NL', 'Netherlands The', 31), (156, 'NC', 'New Caledonia', 687), (157, 'NZ', 'New Zealand', 64), (158, 'NI', 'Nicaragua', 505), (159, 'NE', 'Niger', 227), (160, 'NG', 'Nigeria', 234), (161, 'NU', 'Niue', 683), (162, 'NF', 'Norfolk Island', 672), (163, 'MP', 'Northern Mariana Islands', 1670), (164, 'NO', 'Norway', 47), (165, 'OM', 'Oman', 968), (166, 'PK', 'Pakistan', 92), (167, 'PW', 'Palau', 680), (168, 'PS', 'Palestinian Territory Occupied', 970), (169, 'PA', 'Panama', 507), (170, 'PG', 'Papua new Guinea', 675), (171, 'PY', 'Paraguay', 595), (172, 'PE', 'Peru', 51), (173, 'PH', 'Philippines', 63), (174, 'PN', 'Pitcairn Island', 0), (175, 'PL', 'Poland', 48), (176, 'PT', 'Portugal', 351), (177, 'PR', 'Puerto Rico', 1787), (178, 'QA', 'Qatar', 974), (179, 'RE', 'Reunion', 262), (180, 'RO', 'Romania', 40), (181, 'RU', 'Russia', 70), (182, 'RW', 'Rwanda', 250), (183, 'SH', 'Saint Helena', 290), (184, 'KN', 'Saint Kitts And Nevis', 1869), (185, 'LC', 'Saint Lucia', 1758), (186, 'PM', 'Saint Pierre and Miquelon', 508), (187, 'VC', 'Saint Vincent And The Grenadines', 1784), (188, 'WS', 'Samoa', 684), (189, 'SM', 'San Marino', 378), (190, 'ST', 'Sao Tome and Principe', 239), (191, 'SA', 'Saudi Arabia', 966), (192, 'SN', 'Senegal', 221), (193, 'RS', 'Serbia', 381), (194, 'SC', 'Seychelles', 248), (195, 'SL', 'Sierra Leone', 232), (196, 'SG', 'Singapore', 65), (197, 'SK', 'Slovakia', 421), (198, 'SI', 'Slovenia', 386), (199, 'XG', 'Smaller Territories of the UK', 44), (200, 'SB', 'Solomon Islands', 677), (201, 'SO', 'Somalia', 252), (202, 'ZA', 'South Africa', 27), (203, 'GS', 'South Georgia', 0), (204, 'SS', 'South Sudan', 211), (205, 'ES', 'Spain', 34), (206, 'LK', 'Sri Lanka', 94), (207, 'SD', 'Sudan', 249), (208, 'SR', 'Suriname', 597), (209, 'SJ', 'Svalbard And Jan Mayen Islands', 47), (210, 'SZ', 'Swaziland', 268), (211, 'SE', 'Sweden', 46), (212, 'CH', 'Switzerland', 41), (213, 'SY', 'Syria', 963), (214, 'TW', 'Taiwan', 886), (215, 'TJ', 'Tajikistan', 992), (216, 'TZ', 'Tanzania', 255), (217, 'TH', 'Thailand', 66), (218, 'TG', 'Togo', 228), (219, 'TK', 'Tokelau', 690), (220, 'TO', 'Tonga', 676), (221, 'TT', 'Trinidad And Tobago', 1868), (222, 'TN', 'Tunisia', 216), (223, 'TR', 'Turkey', 90), (224, 'TM', 'Turkmenistan', 7370), (225, 'TC', 'Turks And Caicos Islands', 1649), (226, 'TV', 'Tuvalu', 688), (227, 'UG', 'Uganda', 256), (228, 'UA', 'Ukraine', 380), (229, 'AE', 'United Arab Emirates', 971), (230, 'GB', 'United Kingdom', 44), (231, 'US', 'United States', 1), (232, 'UM', 'United States Minor Outlying Islands', 1), (233, 'UY', 'Uruguay', 598), (234, 'UZ', 'Uzbekistan', 998), (235, 'VU', 'Vanuatu', 678), (236, 'VA', 'Vatican City State (Holy See)', 39), (237, 'VE', 'Venezuela', 58), (238, 'VN', 'Vietnam', 84), (239, 'VG', 'Virgin Islands (British)', 1284), (240, 'VI', 'Virgin Islands (US)', 1340), (241, 'WF', 'Wallis And Futuna Islands', 681), (242, 'EH', 'Western Sahara', 212), (243, 'YE', 'Yemen', 967), (244, 'YU', 'Yugoslavia', 38), (245, 'ZM', 'Zambia', 260), (246, 'ZW', 'Zimbabwe', 263); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `flight` -- CREATE TABLE `flight` ( `id` int(11) NOT NULL, `airline_id` int(11) NOT NULL, `origin_id` int(11) NOT NULL, `destiny_id` int(11) NOT NULL, `origin_date` date NOT NULL, `destiny_date` date NOT NULL, `status` varchar(25) COLLATE utf8_spanish_ci NOT NULL, `seats` int(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `flight` -- INSERT INTO `flight` (`id`, `airline_id`, `origin_id`, `destiny_id`, `origin_date`, `destiny_date`, `status`, `seats`) VALUES (1, 6, 1, 2, '2017-12-01', '2017-12-01', 'OnTime', 20), (2, 6, 1, 2, '2017-12-02', '2017-12-02', 'OnTime', 20), (3, 6, 1, 2, '2017-12-03', '2017-12-03', 'OnTime', 20), (4, 6, 1, 2, '2017-12-04', '2017-12-04', 'OnTime', 20), (5, 6, 1, 2, '2017-12-05', '2017-12-05', 'OnTime', 20), (6, 6, 1, 2, '2017-12-06', '2017-12-06', 'OnTime', 20), (7, 6, 1, 2, '2017-12-07', '2017-12-07', 'OnTime', 20), (8, 6, 1, 2, '2017-12-08', '2017-12-08', 'OnTime', 20), (9, 6, 1, 2, '2017-12-09', '2017-12-09', 'OnTime', 20), (10, 6, 1, 2, '2017-12-10', '2017-12-10', 'OnTime', 20), (11, 6, 1, 2, '2017-12-11', '2017-12-11', 'OnTime', 20), (12, 6, 1, 2, '2017-12-12', '2017-12-12', 'OnTime', 20), (13, 6, 1, 2, '2017-12-13', '2017-12-13', 'OnTime', 20), (14, 6, 1, 2, '2017-12-14', '2017-12-14', 'OnTime', 20), (15, 6, 1, 2, '2017-12-15', '2017-12-15', 'OnTime', 20), (16, 6, 1, 2, '2017-12-16', '2017-12-16', 'OnTime', 20), (17, 6, 1, 2, '2017-12-17', '2017-12-17', 'OnTime', 20), (18, 6, 1, 2, '2017-12-18', '2017-12-18', 'OnTime', 20), (19, 6, 1, 2, '2017-12-19', '2017-12-19', 'OnTime', 20), (20, 6, 1, 2, '2017-12-20', '2017-12-20', 'OnTime', 20), (21, 6, 1, 2, '2017-12-21', '2017-12-21', 'OnTime', 20), (22, 6, 1, 2, '2017-12-22', '2017-12-22', 'OnTime', 20), (23, 6, 1, 2, '2017-12-23', '2017-12-23', 'OnTime', 20), (24, 6, 1, 2, '2017-12-24', '2017-12-24', 'OnTime', 20), (25, 6, 1, 2, '2017-12-25', '2017-12-25', 'OnTime', 20), (26, 6, 1, 2, '2017-12-26', '2017-12-26', 'OnTime', 20), (27, 6, 1, 2, '2017-12-27', '2017-12-27', 'OnTime', 20), (28, 6, 1, 2, '2017-12-28', '2017-12-28', 'OnTime', 20), (29, 6, 1, 2, '2017-12-29', '2017-12-29', 'OnTime', 20), (30, 6, 1, 2, '2017-12-30', '2017-12-30', 'OnTime', 20), (31, 6, 1, 2, '2017-12-31', '2017-12-31', 'OnTime', 20), (32, 6, 2, 1, '2017-12-01', '2017-12-01', 'OnTime', 20), (33, 6, 2, 1, '2017-12-02', '2017-12-02', 'OnTime', 20), (34, 6, 2, 1, '2017-12-03', '2017-12-03', 'OnTime', 20), (35, 6, 2, 1, '2017-12-04', '2017-12-04', 'OnTime', 20), (36, 6, 2, 1, '2017-12-05', '2017-12-05', 'OnTime', 20), (37, 6, 2, 1, '2017-12-06', '2017-12-06', 'OnTime', 20), (38, 6, 2, 1, '2017-12-07', '2017-12-07', 'OnTime', 20), (39, 6, 2, 1, '2017-12-08', '2017-12-08', 'OnTime', 20), (40, 6, 2, 1, '2017-12-09', '2017-12-09', 'OnTime', 20), (41, 6, 2, 1, '2017-12-10', '2017-12-10', 'OnTime', 20), (42, 6, 2, 1, '2017-12-11', '2017-12-11', 'OnTime', 20), (43, 6, 2, 1, '2017-12-12', '2017-12-12', 'OnTime', 20), (44, 6, 2, 1, '2017-12-13', '2017-12-13', 'OnTime', 20), (45, 6, 2, 1, '2017-12-14', '2017-12-14', 'OnTime', 20), (46, 6, 2, 1, '2017-12-15', '2017-12-15', 'OnTime', 20), (47, 6, 2, 1, '2017-12-16', '2017-12-16', 'OnTime', 20), (48, 6, 2, 1, '2017-12-17', '2017-12-17', 'OnTime', 20), (49, 6, 2, 1, '2017-12-18', '2017-12-18', 'OnTime', 20), (50, 6, 2, 1, '2017-12-19', '2017-12-19', 'OnTime', 20), (51, 6, 2, 1, '2017-12-20', '2017-12-20', 'OnTime', 20), (52, 6, 2, 1, '2017-12-21', '2017-12-21', 'OnTime', 20), (53, 6, 2, 1, '2017-12-22', '2017-12-22', 'OnTime', 20), (54, 6, 2, 1, '2017-12-23', '2017-12-23', 'OnTime', 20), (55, 6, 2, 1, '2017-12-24', '2017-12-24', 'OnTime', 20), (56, 6, 2, 1, '2017-12-25', '2017-12-25', 'OnTime', 20), (57, 6, 2, 1, '2017-12-26', '2017-12-26', 'OnTime', 20), (58, 6, 2, 1, '2017-12-27', '2017-12-27', 'OnTime', 20), (59, 6, 2, 1, '2017-12-28', '2017-12-28', 'OnTime', 20), (60, 6, 2, 1, '2017-12-29', '2017-12-29', 'OnTime', 20), (61, 6, 2, 1, '2017-12-30', '2017-12-30', 'OnTime', 20), (62, 6, 2, 1, '2017-12-31', '2017-12-31', 'OnTime', 20), (63, 6, 1, 3, '2017-12-01', '2017-12-01', 'OnTime', 20), (64, 6, 1, 3, '2017-12-02', '2017-12-02', 'OnTime', 20), (65, 6, 1, 3, '2017-12-03', '2017-12-03', 'OnTime', 20), (66, 6, 1, 3, '2017-12-04', '2017-12-04', 'OnTime', 20), (67, 6, 1, 3, '2017-12-05', '2017-12-05', 'OnTime', 20), (68, 6, 1, 3, '2017-12-06', '2017-12-06', 'OnTime', 20), (69, 6, 1, 3, '2017-12-07', '2017-12-07', 'OnTime', 20), (70, 6, 1, 3, '2017-12-08', '2017-12-08', 'OnTime', 20), (71, 6, 1, 3, '2017-12-09', '2017-12-09', 'OnTime', 20), (72, 6, 1, 3, '2017-12-10', '2017-12-10', 'OnTime', 20), (73, 6, 1, 3, '2017-12-11', '2017-12-11', 'OnTime', 20), (74, 6, 1, 3, '2017-12-12', '2017-12-12', 'OnTime', 20), (75, 6, 1, 3, '2017-12-13', '2017-12-13', 'OnTime', 20), (76, 6, 1, 3, '2017-12-14', '2017-12-14', 'OnTime', 20), (77, 6, 1, 3, '2017-12-15', '2017-12-15', 'OnTime', 20), (78, 6, 1, 3, '2017-12-16', '2017-12-16', 'OnTime', 20), (79, 6, 1, 3, '2017-12-17', '2017-12-17', 'OnTime', 20), (80, 6, 1, 3, '2017-12-18', '2017-12-18', 'OnTime', 20), (81, 6, 1, 3, '2017-12-19', '2017-12-19', 'OnTime', 20), (82, 6, 1, 3, '2017-12-20', '2017-12-20', 'OnTime', 20), (83, 6, 1, 3, '2017-12-21', '2017-12-21', 'OnTime', 20), (84, 6, 1, 3, '2017-12-22', '2017-12-22', 'OnTime', 20), (85, 6, 1, 3, '2017-12-23', '2017-12-23', 'OnTime', 20), (86, 6, 1, 3, '2017-12-24', '2017-12-24', 'OnTime', 20), (87, 6, 1, 3, '2017-12-25', '2017-12-25', 'OnTime', 20), (88, 6, 1, 3, '2017-12-26', '2017-12-26', 'OnTime', 20), (89, 6, 1, 3, '2017-12-27', '2017-12-27', 'OnTime', 20), (90, 6, 1, 3, '2017-12-28', '2017-12-28', 'OnTime', 20), (91, 6, 1, 3, '2017-12-29', '2017-12-29', 'OnTime', 20), (92, 6, 1, 3, '2017-12-30', '2017-12-30', 'OnTime', 20), (93, 6, 1, 3, '2017-12-31', '2017-12-31', 'OnTime', 20), (94, 6, 3, 1, '2017-12-01', '2017-12-01', 'OnTime', 20), (95, 6, 3, 1, '2017-12-02', '2017-12-02', 'OnTime', 20), (96, 6, 3, 1, '2017-12-03', '2017-12-03', 'OnTime', 20), (97, 6, 3, 1, '2017-12-04', '2017-12-04', 'OnTime', 20), (98, 6, 3, 1, '2017-12-05', '2017-12-05', 'OnTime', 20), (99, 6, 3, 1, '2017-12-06', '2017-12-06', 'OnTime', 20), (100, 6, 3, 1, '2017-12-07', '2017-12-07', 'OnTime', 20), (101, 6, 3, 1, '2017-12-08', '2017-12-08', 'OnTime', 20), (102, 6, 3, 1, '2017-12-09', '2017-12-09', 'OnTime', 20), (103, 6, 3, 1, '2017-12-10', '2017-12-10', 'OnTime', 20), (104, 6, 3, 1, '2017-12-11', '2017-12-11', 'OnTime', 20), (105, 6, 3, 1, '2017-12-12', '2017-12-12', 'OnTime', 20), (106, 6, 3, 1, '2017-12-13', '2017-12-13', 'OnTime', 20), (107, 6, 3, 1, '2017-12-14', '2017-12-14', 'OnTime', 20), (108, 6, 3, 1, '2017-12-15', '2017-12-15', 'OnTime', 20), (109, 6, 3, 1, '2017-12-16', '2017-12-16', 'OnTime', 20), (110, 6, 3, 1, '2017-12-17', '2017-12-17', 'OnTime', 20), (111, 6, 3, 1, '2017-12-18', '2017-12-18', 'OnTime', 20), (112, 6, 3, 1, '2017-12-19', '2017-12-19', 'OnTime', 20), (113, 6, 3, 1, '2017-12-20', '2017-12-20', 'OnTime', 20), (114, 6, 3, 1, '2017-12-21', '2017-12-21', 'OnTime', 20), (115, 6, 3, 1, '2017-12-22', '2017-12-22', 'OnTime', 20), (116, 6, 3, 1, '2017-12-23', '2017-12-23', 'OnTime', 20), (117, 6, 3, 1, '2017-12-24', '2017-12-24', 'OnTime', 20), (118, 6, 3, 1, '2017-12-25', '2017-12-25', 'OnTime', 20), (119, 6, 3, 1, '2017-12-26', '2017-12-26', 'OnTime', 20), (120, 6, 3, 1, '2017-12-27', '2017-12-27', 'OnTime', 20), (121, 6, 3, 1, '2017-12-28', '2017-12-28', 'OnTime', 20), (122, 6, 3, 1, '2017-12-29', '2017-12-29', 'OnTime', 20), (123, 6, 3, 1, '2017-12-30', '2017-12-30', 'OnTime', 20), (124, 6, 3, 1, '2017-12-31', '2017-12-31', 'OnTime', 20), (125, 6, 2, 3, '2017-12-01', '2017-12-01', 'OnTime', 20), (126, 6, 2, 3, '2017-12-02', '2017-12-02', 'OnTime', 20), (127, 6, 2, 3, '2017-12-03', '2017-12-03', 'OnTime', 20), (128, 6, 2, 3, '2017-12-04', '2017-12-04', 'OnTime', 20), (129, 6, 2, 3, '2017-12-05', '2017-12-05', 'OnTime', 20), (130, 6, 2, 3, '2017-12-06', '2017-12-06', 'OnTime', 20), (131, 6, 2, 3, '2017-12-07', '2017-12-07', 'OnTime', 20), (132, 6, 2, 3, '2017-12-08', '2017-12-08', 'OnTime', 20), (133, 6, 2, 3, '2017-12-09', '2017-12-09', 'OnTime', 20), (134, 6, 2, 3, '2017-12-10', '2017-12-10', 'OnTime', 20), (135, 6, 2, 3, '2017-12-11', '2017-12-11', 'OnTime', 20), (136, 6, 2, 3, '2017-12-12', '2017-12-12', 'OnTime', 20), (137, 6, 2, 3, '2017-12-13', '2017-12-13', 'OnTime', 20), (138, 6, 2, 3, '2017-12-14', '2017-12-14', 'OnTime', 20), (139, 6, 2, 3, '2017-12-15', '2017-12-15', 'OnTime', 20), (140, 6, 2, 3, '2017-12-16', '2017-12-16', 'OnTime', 20), (141, 6, 2, 3, '2017-12-17', '2017-12-17', 'OnTime', 20), (142, 6, 2, 3, '2017-12-18', '2017-12-18', 'OnTime', 20), (143, 6, 2, 3, '2017-12-19', '2017-12-19', 'OnTime', 20), (144, 6, 2, 3, '2017-12-20', '2017-12-20', 'OnTime', 20), (145, 6, 2, 3, '2017-12-21', '2017-12-21', 'OnTime', 20), (146, 6, 2, 3, '2017-12-22', '2017-12-22', 'OnTime', 20), (147, 6, 2, 3, '2017-12-23', '2017-12-23', 'OnTime', 20), (148, 6, 2, 3, '2017-12-24', '2017-12-24', 'OnTime', 20), (149, 6, 2, 3, '2017-12-25', '2017-12-25', 'OnTime', 20), (150, 6, 2, 3, '2017-12-26', '2017-12-26', 'OnTime', 20), (151, 6, 2, 3, '2017-12-27', '2017-12-27', 'OnTime', 20), (152, 6, 2, 3, '2017-12-28', '2017-12-28', 'OnTime', 20), (153, 6, 2, 3, '2017-12-29', '2017-12-29', 'OnTime', 20), (154, 6, 2, 3, '2017-12-30', '2017-12-30', 'OnTime', 20), (155, 6, 2, 3, '2017-12-31', '2017-12-31', 'OnTime', 20), (156, 6, 3, 2, '2017-12-01', '2017-12-01', 'OnTime', 20), (157, 6, 3, 2, '2017-12-02', '2017-12-02', 'OnTime', 20), (158, 6, 3, 2, '2017-12-03', '2017-12-03', 'OnTime', 20), (159, 6, 3, 2, '2017-12-04', '2017-12-04', 'OnTime', 20), (160, 6, 3, 2, '2017-12-05', '2017-12-05', 'OnTime', 20), (161, 6, 3, 2, '2017-12-06', '2017-12-06', 'OnTime', 20), (162, 6, 3, 2, '2017-12-07', '2017-12-07', 'OnTime', 20), (163, 6, 3, 2, '2017-12-08', '2017-12-08', 'OnTime', 20), (164, 6, 3, 2, '2017-12-09', '2017-12-09', 'OnTime', 20), (165, 6, 3, 2, '2017-12-10', '2017-12-10', 'OnTime', 20), (166, 6, 3, 2, '2017-12-11', '2017-12-11', 'OnTime', 20), (167, 6, 3, 2, '2017-12-12', '2017-12-12', 'OnTime', 20), (168, 6, 3, 2, '2017-12-13', '2017-12-13', 'OnTime', 20), (169, 6, 3, 2, '2017-12-14', '2017-12-14', 'OnTime', 20), (170, 6, 3, 2, '2017-12-15', '2017-12-15', 'OnTime', 20), (171, 6, 3, 2, '2017-12-16', '2017-12-16', 'OnTime', 20), (172, 6, 3, 2, '2017-12-17', '2017-12-17', 'OnTime', 20), (173, 6, 3, 2, '2017-12-18', '2017-12-18', 'OnTime', 20), (174, 6, 3, 2, '2017-12-19', '2017-12-19', 'OnTime', 20), (175, 6, 3, 2, '2017-12-20', '2017-12-20', 'OnTime', 20), (176, 6, 3, 2, '2017-12-21', '2017-12-21', 'OnTime', 20), (177, 6, 3, 2, '2017-12-22', '2017-12-22', 'OnTime', 20), (178, 6, 3, 2, '2017-12-23', '2017-12-23', 'OnTime', 20), (179, 6, 3, 2, '2017-12-24', '2017-12-24', 'OnTime', 20), (180, 6, 3, 2, '2017-12-25', '2017-12-25', 'OnTime', 20), (181, 6, 3, 2, '2017-12-26', '2017-12-26', 'OnTime', 20), (182, 6, 3, 2, '2017-12-27', '2017-12-27', 'OnTime', 20), (183, 6, 3, 2, '2017-12-28', '2017-12-28', 'OnTime', 20), (184, 6, 3, 2, '2017-12-29', '2017-12-29', 'OnTime', 20), (185, 6, 3, 2, '2017-12-30', '2017-12-30', 'OnTime', 20), (186, 6, 3, 2, '2017-12-31', '2017-12-31', 'OnTime', 20); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `history` -- CREATE TABLE `history` ( `user_consumer_id` int(11) NOT NULL, `cart_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `hotel` -- CREATE TABLE `hotel` ( `id` int(11) NOT NULL, `hotel_company_id` int(11) NOT NULL, `address` varchar(50) COLLATE utf8_spanish_ci NOT NULL, `city_id` int(11) NOT NULL, `country_id` int(11) NOT NULL, `state_id` int(11) NOT NULL, `quality` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `hotel` -- INSERT INTO `hotel` (`id`, `hotel_company_id`, `address`, `city_id`, `country_id`, `state_id`, `quality`) VALUES (1, 4, 'Cañuelas, 1806 Tristan Suárez, Buenos Aires', 2, 10, 208, 4), (2, 4, 'Via Ugo Bassi, 1A, 20159 Milano', 3, 107, 1848, 4), (3, 4, 'Carrer de Palaudàries, 26, 08004 Barcelona', 1, 205, 3315, 3); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `hotel_company` -- CREATE TABLE `hotel_company` ( `user_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `hotel_company` -- INSERT INTO `hotel_company` (`user_id`) VALUES (4); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `room` -- CREATE TABLE `room` ( `id` int(11) NOT NULL, `hotel_id` int(11) NOT NULL, `number` int(4) NOT NULL, `beds` int(1) NOT NULL, `description` text COLLATE utf8_spanish_ci NOT NULL, `price` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `room` -- INSERT INTO `room` (`id`, `hotel_id`, `number`, `beds`, `description`, `price`) VALUES (1, 1, 1, 3, 'Habitacion familiar', 1200), (2, 1, 2, 3, 'Habitacion familiar', 1200), (3, 1, 3, 3, 'Habitacion familiar', 1200), (4, 1, 4, 3, 'Habitacion familiar', 1200), (5, 1, 5, 3, 'Habitacion familiar', 1200), (6, 1, 6, 3, 'Habitacion familiar', 1200), (7, 1, 7, 3, 'Habitacion familiar', 1200), (8, 1, 8, 3, 'Habitacion familiar', 1200), (9, 1, 9, 1, 'Habitacion matrimonial', 500), (10, 1, 10, 1, 'Habitacion matrimonial', 500), (11, 1, 11, 1, 'Habitacion matrimonial', 500), (12, 1, 12, 1, 'Habitacion matrimonial', 500), (13, 1, 13, 1, 'Habitacion matrimonial', 500), (14, 1, 14, 1, 'Habitacion matrimonial', 500), (15, 1, 15, 1, 'Habitacion matrimonial', 500), (16, 1, 16, 1, 'Habitacion matrimonial', 500), (17, 2, 1, 3, 'Habitacion familiar', 1200), (18, 2, 2, 3, 'Habitacion familiar', 1200), (19, 2, 3, 3, 'Habitacion familiar', 1200), (20, 2, 4, 3, 'Habitacion familiar', 1200), (21, 2, 5, 3, 'Habitacion familiar', 1200), (22, 2, 6, 3, 'Habitacion familiar', 1200), (23, 2, 7, 3, 'Habitacion familiar', 1200), (24, 2, 8, 3, 'Habitacion familiar', 1200), (25, 2, 9, 1, 'Habitacion matrimonial', 500), (26, 2, 10, 1, 'Habitacion matrimonial', 500), (27, 2, 11, 1, 'Habitacion matrimonial', 500), (28, 2, 12, 1, 'Habitacion matrimonial', 500), (29, 2, 13, 1, 'Habitacion matrimonial', 500), (30, 2, 14, 1, 'Habitacion matrimonial', 500), (31, 2, 15, 1, 'Habitacion matrimonial', 500), (32, 2, 16, 1, 'Habitacion matrimonial', 500), (33, 3, 1, 3, 'Habitacion familiar', 1200), (34, 3, 2, 3, 'Habitacion familiar', 1200), (35, 3, 3, 3, 'Habitacion familiar', 1200), (36, 3, 4, 3, 'Habitacion familiar', 1200), (37, 3, 5, 3, 'Habitacion familiar', 1200), (38, 3, 6, 3, 'Habitacion familiar', 1200), (39, 3, 7, 3, 'Habitacion familiar', 1200), (40, 3, 8, 3, 'Habitacion familiar', 1200), (41, 3, 9, 1, 'Habitacion matrimonial', 500), (42, 3, 10, 1, 'Habitacion matrimonial', 500), (43, 3, 11, 1, 'Habitacion matrimonial', 500), (44, 3, 12, 1, 'Habitacion matrimonial', 500), (45, 3, 13, 1, 'Habitacion matrimonial', 500), (46, 3, 14, 1, 'Habitacion matrimonial', 500), (47, 3, 15, 1, 'Habitacion matrimonial', 500), (48, 3, 16, 1, 'Habitacion matrimonial', 500); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `room_reserve` -- CREATE TABLE `room_reserve` ( `id` int(11) NOT NULL, `id_room` int(11) NOT NULL, `id_user` int(11) NOT NULL, `date_in` date NOT NULL, `date_out` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `seat` -- CREATE TABLE `seat` ( `id` int(11) NOT NULL, `flight_id` int(11) NOT NULL, `number` int(4) NOT NULL, `class` varchar(10) COLLATE utf8_spanish_ci NOT NULL, `price` float NOT NULL, `sell` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `seat` -- INSERT INTO `seat` (`id`, `flight_id`, `number`, `class`, `price`, `sell`) VALUES (1, 1, 1, 'business', 15000, 0), (2, 1, 2, 'business', 15000, 0), (3, 1, 3, 'business', 15000, 0), (4, 1, 4, 'business', 15000, 0), (5, 1, 5, 'business', 15000, 0), (6, 1, 6, 'business', 15000, 0), (7, 1, 7, 'business', 15000, 0), (8, 1, 8, 'business', 15000, 0), (9, 1, 9, 'business', 15000, 0), (10, 1, 10, 'business', 15000, 0), (11, 1, 11, 'business', 15000, 0), (12, 1, 12, 'business', 15000, 0), (13, 1, 13, 'business', 15000, 0), (14, 1, 14, 'business', 15000, 0), (15, 1, 15, 'business', 15000, 0), (16, 1, 16, 'business', 15000, 0), (17, 1, 17, 'business', 15000, 0), (18, 1, 18, 'business', 15000, 0), (19, 1, 19, 'business', 15000, 0), (20, 1, 20, 'business', 15000, 0), (21, 2, 1, 'business', 15000, 0), (22, 2, 2, 'business', 15000, 0), (23, 2, 3, 'business', 15000, 0), (24, 2, 4, 'business', 15000, 0), (25, 2, 5, 'business', 15000, 0), (26, 2, 6, 'business', 15000, 0), (27, 2, 7, 'business', 15000, 0), (28, 2, 8, 'business', 15000, 0), (29, 2, 9, 'business', 15000, 0), (30, 2, 10, 'business', 15000, 0), (31, 2, 11, 'business', 15000, 0), (32, 2, 12, 'business', 15000, 0), (33, 2, 13, 'business', 15000, 0), (34, 2, 14, 'business', 15000, 0), (35, 2, 15, 'business', 15000, 0), (36, 2, 16, 'business', 15000, 0), (37, 2, 17, 'business', 15000, 0), (38, 2, 18, 'business', 15000, 0), (39, 2, 19, 'business', 15000, 0), (40, 2, 20, 'business', 15000, 0), (41, 3, 1, 'business', 15000, 0), (42, 3, 2, 'business', 15000, 0), (43, 3, 3, 'business', 15000, 0), (44, 3, 4, 'business', 15000, 0), (45, 3, 5, 'business', 15000, 0), (46, 3, 6, 'business', 15000, 0), (47, 3, 7, 'business', 15000, 0), (48, 3, 8, 'business', 15000, 0), (49, 3, 9, 'business', 15000, 0), (50, 3, 10, 'business', 15000, 0), (51, 3, 11, 'business', 15000, 0), (52, 3, 12, 'business', 15000, 0), (53, 3, 13, 'business', 15000, 0), (54, 3, 14, 'business', 15000, 0), (55, 3, 15, 'business', 15000, 0), (56, 3, 16, 'business', 15000, 0), (57, 3, 17, 'business', 15000, 0), (58, 3, 18, 'business', 15000, 0), (59, 3, 19, 'business', 15000, 0), (60, 3, 20, 'business', 15000, 0), (61, 4, 1, 'business', 15000, 0), (62, 4, 2, 'business', 15000, 0), (63, 4, 3, 'business', 15000, 0), (64, 4, 4, 'business', 15000, 0), (65, 4, 5, 'business', 15000, 0), (66, 4, 6, 'business', 15000, 0), (67, 4, 7, 'business', 15000, 0), (68, 4, 8, 'business', 15000, 0), (69, 4, 9, 'business', 15000, 0), (70, 4, 10, 'business', 15000, 0), (71, 4, 11, 'business', 15000, 0), (72, 4, 12, 'business', 15000, 0), (73, 4, 13, 'business', 15000, 0), (74, 4, 14, 'business', 15000, 0), (75, 4, 15, 'business', 15000, 0), (76, 4, 16, 'business', 15000, 0), (77, 4, 17, 'business', 15000, 0), (78, 4, 18, 'business', 15000, 0), (79, 4, 19, 'business', 15000, 0), (80, 4, 20, 'business', 15000, 0), (81, 5, 1, 'business', 15000, 0), (82, 5, 2, 'business', 15000, 0), (83, 5, 3, 'business', 15000, 0), (84, 5, 4, 'business', 15000, 0), (85, 5, 5, 'business', 15000, 0), (86, 5, 6, 'business', 15000, 0), (87, 5, 7, 'business', 15000, 0), (88, 5, 8, 'business', 15000, 0), (89, 5, 9, 'business', 15000, 0), (90, 5, 10, 'business', 15000, 0), (91, 5, 11, 'business', 15000, 0), (92, 5, 12, 'business', 15000, 0), (93, 5, 13, 'business', 15000, 0), (94, 5, 14, 'business', 15000, 0), (95, 5, 15, 'business', 15000, 0), (96, 5, 16, 'business', 15000, 0), (97, 5, 17, 'business', 15000, 0), (98, 5, 18, 'business', 15000, 0), (99, 5, 19, 'business', 15000, 0), (100, 5, 20, 'business', 15000, 0), (101, 6, 1, 'business', 15000, 0), (102, 6, 2, 'business', 15000, 0), (103, 6, 3, 'business', 15000, 0), (104, 6, 4, 'business', 15000, 0), (105, 6, 5, 'business', 15000, 0), (106, 6, 6, 'business', 15000, 0), (107, 6, 7, 'business', 15000, 0), (108, 6, 8, 'business', 15000, 0), (109, 6, 9, 'business', 15000, 0), (110, 6, 10, 'business', 15000, 0), (111, 6, 11, 'business', 15000, 0), (112, 6, 12, 'business', 15000, 0), (113, 6, 13, 'business', 15000, 0), (114, 6, 14, 'business', 15000, 0), (115, 6, 15, 'business', 15000, 0), (116, 6, 16, 'business', 15000, 0), (117, 6, 17, 'business', 15000, 0), (118, 6, 18, 'business', 15000, 0), (119, 6, 19, 'business', 15000, 0), (120, 6, 20, 'business', 15000, 0), (121, 7, 1, 'business', 15000, 0), (122, 7, 2, 'business', 15000, 0), (123, 7, 3, 'business', 15000, 0), (124, 7, 4, 'business', 15000, 0), (125, 7, 5, 'business', 15000, 0), (126, 7, 6, 'business', 15000, 0), (127, 7, 7, 'business', 15000, 0), (128, 7, 8, 'business', 15000, 0), (129, 7, 9, 'business', 15000, 0), (130, 7, 10, 'business', 15000, 0), (131, 7, 11, 'business', 15000, 0), (132, 7, 12, 'business', 15000, 0), (133, 7, 13, 'business', 15000, 0), (134, 7, 14, 'business', 15000, 0), (135, 7, 15, 'business', 15000, 0), (136, 7, 16, 'business', 15000, 0), (137, 7, 17, 'business', 15000, 0), (138, 7, 18, 'business', 15000, 0), (139, 7, 19, 'business', 15000, 0), (140, 7, 20, 'business', 15000, 0), (141, 8, 1, 'business', 15000, 0), (142, 8, 2, 'business', 15000, 0), (143, 8, 3, 'business', 15000, 0), (144, 8, 4, 'business', 15000, 0), (145, 8, 5, 'business', 15000, 0), (146, 8, 6, 'business', 15000, 0), (147, 8, 7, 'business', 15000, 0), (148, 8, 8, 'business', 15000, 0), (149, 8, 9, 'business', 15000, 0), (150, 8, 10, 'business', 15000, 0), (151, 8, 11, 'business', 15000, 0), (152, 8, 12, 'business', 15000, 0), (153, 8, 13, 'business', 15000, 0), (154, 8, 14, 'business', 15000, 0), (155, 8, 15, 'business', 15000, 0), (156, 8, 16, 'business', 15000, 0), (157, 8, 17, 'business', 15000, 0), (158, 8, 18, 'business', 15000, 0), (159, 8, 19, 'business', 15000, 0), (160, 8, 20, 'business', 15000, 0), (161, 9, 1, 'business', 15000, 0), (162, 9, 2, 'business', 15000, 0), (163, 9, 3, 'business', 15000, 0), (164, 9, 4, 'business', 15000, 0), (165, 9, 5, 'business', 15000, 0), (166, 9, 6, 'business', 15000, 0), (167, 9, 7, 'business', 15000, 0), (168, 9, 8, 'business', 15000, 0), (169, 9, 9, 'business', 15000, 0), (170, 9, 10, 'business', 15000, 0), (171, 9, 11, 'business', 15000, 0), (172, 9, 12, 'business', 15000, 0), (173, 9, 13, 'business', 15000, 0), (174, 9, 14, 'business', 15000, 0), (175, 9, 15, 'business', 15000, 0), (176, 9, 16, 'business', 15000, 0), (177, 9, 17, 'business', 15000, 0), (178, 9, 18, 'business', 15000, 0), (179, 9, 19, 'business', 15000, 0), (180, 9, 20, 'business', 15000, 0), (181, 10, 1, 'business', 15000, 0), (182, 10, 2, 'business', 15000, 0), (183, 10, 3, 'business', 15000, 0), (184, 10, 4, 'business', 15000, 0), (185, 10, 5, 'business', 15000, 0), (186, 10, 6, 'business', 15000, 0), (187, 10, 7, 'business', 15000, 0), (188, 10, 8, 'business', 15000, 0), (189, 10, 9, 'business', 15000, 0), (190, 10, 10, 'business', 15000, 0), (191, 10, 11, 'business', 15000, 0), (192, 10, 12, 'business', 15000, 0), (193, 10, 13, 'business', 15000, 0), (194, 10, 14, 'business', 15000, 0), (195, 10, 15, 'business', 15000, 0), (196, 10, 16, 'business', 15000, 0), (197, 10, 17, 'business', 15000, 0), (198, 10, 18, 'business', 15000, 0), (199, 10, 19, 'business', 15000, 0), (200, 10, 20, 'business', 15000, 0), (201, 11, 1, 'business', 15000, 0), (202, 11, 2, 'business', 15000, 0), (203, 11, 3, 'business', 15000, 0), (204, 11, 4, 'business', 15000, 0), (205, 11, 5, 'business', 15000, 0), (206, 11, 6, 'business', 15000, 0), (207, 11, 7, 'business', 15000, 0), (208, 11, 8, 'business', 15000, 0), (209, 11, 9, 'business', 15000, 0), (210, 11, 10, 'business', 15000, 0), (211, 11, 11, 'business', 15000, 0), (212, 11, 12, 'business', 15000, 0), (213, 11, 13, 'business', 15000, 0), (214, 11, 14, 'business', 15000, 0), (215, 11, 15, 'business', 15000, 0), (216, 11, 16, 'business', 15000, 0), (217, 11, 17, 'business', 15000, 0), (218, 11, 18, 'business', 15000, 0), (219, 11, 19, 'business', 15000, 0), (220, 11, 20, 'business', 15000, 0), (221, 12, 1, 'business', 15000, 0), (222, 12, 2, 'business', 15000, 0), (223, 12, 3, 'business', 15000, 0), (224, 12, 4, 'business', 15000, 0), (225, 12, 5, 'business', 15000, 0), (226, 12, 6, 'business', 15000, 0), (227, 12, 7, 'business', 15000, 0), (228, 12, 8, 'business', 15000, 0), (229, 12, 9, 'business', 15000, 0), (230, 12, 10, 'business', 15000, 0), (231, 12, 11, 'business', 15000, 0), (232, 12, 12, 'business', 15000, 0), (233, 12, 13, 'business', 15000, 0), (234, 12, 14, 'business', 15000, 0), (235, 12, 15, 'business', 15000, 0), (236, 12, 16, 'business', 15000, 0), (237, 12, 17, 'business', 15000, 0), (238, 12, 18, 'business', 15000, 0), (239, 12, 19, 'business', 15000, 0), (240, 12, 20, 'business', 15000, 0), (241, 13, 1, 'business', 15000, 0), (242, 13, 2, 'business', 15000, 0), (243, 13, 3, 'business', 15000, 0), (244, 13, 4, 'business', 15000, 0), (245, 13, 5, 'business', 15000, 0), (246, 13, 6, 'business', 15000, 0), (247, 13, 7, 'business', 15000, 0), (248, 13, 8, 'business', 15000, 0), (249, 13, 9, 'business', 15000, 0), (250, 13, 10, 'business', 15000, 0), (251, 13, 11, 'business', 15000, 0), (252, 13, 12, 'business', 15000, 0), (253, 13, 13, 'business', 15000, 0), (254, 13, 14, 'business', 15000, 0), (255, 13, 15, 'business', 15000, 0), (256, 13, 16, 'business', 15000, 0), (257, 13, 17, 'business', 15000, 0), (258, 13, 18, 'business', 15000, 0), (259, 13, 19, 'business', 15000, 0), (260, 13, 20, 'business', 15000, 0), (261, 14, 1, 'business', 15000, 0), (262, 14, 2, 'business', 15000, 0), (263, 14, 3, 'business', 15000, 0), (264, 14, 4, 'business', 15000, 0), (265, 14, 5, 'business', 15000, 0), (266, 14, 6, 'business', 15000, 0), (267, 14, 7, 'business', 15000, 0), (268, 14, 8, 'business', 15000, 0), (269, 14, 9, 'business', 15000, 0), (270, 14, 10, 'business', 15000, 0), (271, 14, 11, 'business', 15000, 0), (272, 14, 12, 'business', 15000, 0), (273, 14, 13, 'business', 15000, 0), (274, 14, 14, 'business', 15000, 0), (275, 14, 15, 'business', 15000, 0), (276, 14, 16, 'business', 15000, 0), (277, 14, 17, 'business', 15000, 0), (278, 14, 18, 'business', 15000, 0), (279, 14, 19, 'business', 15000, 0), (280, 14, 20, 'business', 15000, 0), (281, 15, 1, 'business', 15000, 0), (282, 15, 2, 'business', 15000, 0), (283, 15, 3, 'business', 15000, 0), (284, 15, 4, 'business', 15000, 0), (285, 15, 5, 'business', 15000, 0), (286, 15, 6, 'business', 15000, 0), (287, 15, 7, 'business', 15000, 0), (288, 15, 8, 'business', 15000, 0), (289, 15, 9, 'business', 15000, 0), (290, 15, 10, 'business', 15000, 0), (291, 15, 11, 'business', 15000, 0), (292, 15, 12, 'business', 15000, 0), (293, 15, 13, 'business', 15000, 0), (294, 15, 14, 'business', 15000, 0), (295, 15, 15, 'business', 15000, 0), (296, 15, 16, 'business', 15000, 0), (297, 15, 17, 'business', 15000, 0), (298, 15, 18, 'business', 15000, 0), (299, 15, 19, 'business', 15000, 0), (300, 15, 20, 'business', 15000, 0), (301, 16, 1, 'business', 15000, 0), (302, 16, 2, 'business', 15000, 0), (303, 16, 3, 'business', 15000, 0), (304, 16, 4, 'business', 15000, 0), (305, 16, 5, 'business', 15000, 0), (306, 16, 6, 'business', 15000, 0), (307, 16, 7, 'business', 15000, 0), (308, 16, 8, 'business', 15000, 0), (309, 16, 9, 'business', 15000, 0), (310, 16, 10, 'business', 15000, 0), (311, 16, 11, 'business', 15000, 0), (312, 16, 12, 'business', 15000, 0), (313, 16, 13, 'business', 15000, 0), (314, 16, 14, 'business', 15000, 0), (315, 16, 15, 'business', 15000, 0), (316, 16, 16, 'business', 15000, 0), (317, 16, 17, 'business', 15000, 0), (318, 16, 18, 'business', 15000, 0), (319, 16, 19, 'business', 15000, 0), (320, 16, 20, 'business', 15000, 0), (321, 17, 1, 'business', 15000, 0), (322, 17, 2, 'business', 15000, 0), (323, 17, 3, 'business', 15000, 0), (324, 17, 4, 'business', 15000, 0), (325, 17, 5, 'business', 15000, 0), (326, 17, 6, 'business', 15000, 0), (327, 17, 7, 'business', 15000, 0), (328, 17, 8, 'business', 15000, 0), (329, 17, 9, 'business', 15000, 0), (330, 17, 10, 'business', 15000, 0), (331, 17, 11, 'business', 15000, 0), (332, 17, 12, 'business', 15000, 0), (333, 17, 13, 'business', 15000, 0), (334, 17, 14, 'business', 15000, 0), (335, 17, 15, 'business', 15000, 0), (336, 17, 16, 'business', 15000, 0), (337, 17, 17, 'business', 15000, 0), (338, 17, 18, 'business', 15000, 0), (339, 17, 19, 'business', 15000, 0), (340, 17, 20, 'business', 15000, 0), (341, 18, 1, 'business', 15000, 0), (342, 18, 2, 'business', 15000, 0), (343, 18, 3, 'business', 15000, 0), (344, 18, 4, 'business', 15000, 0), (345, 18, 5, 'business', 15000, 0), (346, 18, 6, 'business', 15000, 0), (347, 18, 7, 'business', 15000, 0), (348, 18, 8, 'business', 15000, 0), (349, 18, 9, 'business', 15000, 0), (350, 18, 10, 'business', 15000, 0), (351, 18, 11, 'business', 15000, 0), (352, 18, 12, 'business', 15000, 0), (353, 18, 13, 'business', 15000, 0), (354, 18, 14, 'business', 15000, 0), (355, 18, 15, 'business', 15000, 0), (356, 18, 16, 'business', 15000, 0), (357, 18, 17, 'business', 15000, 0), (358, 18, 18, 'business', 15000, 0), (359, 18, 19, 'business', 15000, 0), (360, 18, 20, 'business', 15000, 0), (361, 19, 1, 'business', 15000, 0), (362, 19, 2, 'business', 15000, 0), (363, 19, 3, 'business', 15000, 0), (364, 19, 4, 'business', 15000, 0), (365, 19, 5, 'business', 15000, 0), (366, 19, 6, 'business', 15000, 0), (367, 19, 7, 'business', 15000, 0), (368, 19, 8, 'business', 15000, 0), (369, 19, 9, 'business', 15000, 0), (370, 19, 10, 'business', 15000, 0), (371, 19, 11, 'business', 15000, 0), (372, 19, 12, 'business', 15000, 0), (373, 19, 13, 'business', 15000, 0), (374, 19, 14, 'business', 15000, 0), (375, 19, 15, 'business', 15000, 0), (376, 19, 16, 'business', 15000, 0), (377, 19, 17, 'business', 15000, 0), (378, 19, 18, 'business', 15000, 0), (379, 19, 19, 'business', 15000, 0), (380, 19, 20, 'business', 15000, 0), (381, 20, 1, 'business', 15000, 0), (382, 20, 2, 'business', 15000, 0), (383, 20, 3, 'business', 15000, 0), (384, 20, 4, 'business', 15000, 0), (385, 20, 5, 'business', 15000, 0), (386, 20, 6, 'business', 15000, 0), (387, 20, 7, 'business', 15000, 0), (388, 20, 8, 'business', 15000, 0), (389, 20, 9, 'business', 15000, 0), (390, 20, 10, 'business', 15000, 0), (391, 20, 11, 'business', 15000, 0), (392, 20, 12, 'business', 15000, 0), (393, 20, 13, 'business', 15000, 0), (394, 20, 14, 'business', 15000, 0), (395, 20, 15, 'business', 15000, 0), (396, 20, 16, 'business', 15000, 0), (397, 20, 17, 'business', 15000, 0), (398, 20, 18, 'business', 15000, 0), (399, 20, 19, 'business', 15000, 0), (400, 20, 20, 'business', 15000, 0), (401, 21, 1, 'business', 15000, 0), (402, 21, 2, 'business', 15000, 0), (403, 21, 3, 'business', 15000, 0), (404, 21, 4, 'business', 15000, 0), (405, 21, 5, 'business', 15000, 0), (406, 21, 6, 'business', 15000, 0), (407, 21, 7, 'business', 15000, 0), (408, 21, 8, 'business', 15000, 0), (409, 21, 9, 'business', 15000, 0), (410, 21, 10, 'business', 15000, 0), (411, 21, 11, 'business', 15000, 0), (412, 21, 12, 'business', 15000, 0), (413, 21, 13, 'business', 15000, 0), (414, 21, 14, 'business', 15000, 0), (415, 21, 15, 'business', 15000, 0), (416, 21, 16, 'business', 15000, 0), (417, 21, 17, 'business', 15000, 0), (418, 21, 18, 'business', 15000, 0), (419, 21, 19, 'business', 15000, 0), (420, 21, 20, 'business', 15000, 0), (421, 22, 1, 'business', 15000, 0), (422, 22, 2, 'business', 15000, 0), (423, 22, 3, 'business', 15000, 0), (424, 22, 4, 'business', 15000, 0), (425, 22, 5, 'business', 15000, 0), (426, 22, 6, 'business', 15000, 0), (427, 22, 7, 'business', 15000, 0), (428, 22, 8, 'business', 15000, 0), (429, 22, 9, 'business', 15000, 0), (430, 22, 10, 'business', 15000, 0), (431, 22, 11, 'business', 15000, 0), (432, 22, 12, 'business', 15000, 0), (433, 22, 13, 'business', 15000, 0), (434, 22, 14, 'business', 15000, 0), (435, 22, 15, 'business', 15000, 0), (436, 22, 16, 'business', 15000, 0), (437, 22, 17, 'business', 15000, 0), (438, 22, 18, 'business', 15000, 0), (439, 22, 19, 'business', 15000, 0), (440, 22, 20, 'business', 15000, 0), (441, 23, 1, 'business', 15000, 0), (442, 23, 2, 'business', 15000, 0), (443, 23, 3, 'business', 15000, 0), (444, 23, 4, 'business', 15000, 0), (445, 23, 5, 'business', 15000, 0), (446, 23, 6, 'business', 15000, 0), (447, 23, 7, 'business', 15000, 0), (448, 23, 8, 'business', 15000, 0), (449, 23, 9, 'business', 15000, 0), (450, 23, 10, 'business', 15000, 0), (451, 23, 11, 'business', 15000, 0), (452, 23, 12, 'business', 15000, 0), (453, 23, 13, 'business', 15000, 0), (454, 23, 14, 'business', 15000, 0), (455, 23, 15, 'business', 15000, 0), (456, 23, 16, 'business', 15000, 0), (457, 23, 17, 'business', 15000, 0), (458, 23, 18, 'business', 15000, 0), (459, 23, 19, 'business', 15000, 0), (460, 23, 20, 'business', 15000, 0), (461, 24, 1, 'business', 15000, 0), (462, 24, 2, 'business', 15000, 0), (463, 24, 3, 'business', 15000, 0), (464, 24, 4, 'business', 15000, 0), (465, 24, 5, 'business', 15000, 0), (466, 24, 6, 'business', 15000, 0), (467, 24, 7, 'business', 15000, 0), (468, 24, 8, 'business', 15000, 0), (469, 24, 9, 'business', 15000, 0), (470, 24, 10, 'business', 15000, 0), (471, 24, 11, 'business', 15000, 0), (472, 24, 12, 'business', 15000, 0), (473, 24, 13, 'business', 15000, 0), (474, 24, 14, 'business', 15000, 0), (475, 24, 15, 'business', 15000, 0), (476, 24, 16, 'business', 15000, 0), (477, 24, 17, 'business', 15000, 0), (478, 24, 18, 'business', 15000, 0), (479, 24, 19, 'business', 15000, 0), (480, 24, 20, 'business', 15000, 0), (481, 25, 1, 'business', 15000, 0), (482, 25, 2, 'business', 15000, 0), (483, 25, 3, 'business', 15000, 0), (484, 25, 4, 'business', 15000, 0), (485, 25, 5, 'business', 15000, 0), (486, 25, 6, 'business', 15000, 0), (487, 25, 7, 'business', 15000, 0), (488, 25, 8, 'business', 15000, 0), (489, 25, 9, 'business', 15000, 0), (490, 25, 10, 'business', 15000, 0), (491, 25, 11, 'business', 15000, 0), (492, 25, 12, 'business', 15000, 0), (493, 25, 13, 'business', 15000, 0), (494, 25, 14, 'business', 15000, 0), (495, 25, 15, 'business', 15000, 0), (496, 25, 16, 'business', 15000, 0), (497, 25, 17, 'business', 15000, 0), (498, 25, 18, 'business', 15000, 0), (499, 25, 19, 'business', 15000, 0), (500, 25, 20, 'business', 15000, 0), (501, 26, 1, 'business', 15000, 0), (502, 26, 2, 'business', 15000, 0), (503, 26, 3, 'business', 15000, 0), (504, 26, 4, 'business', 15000, 0), (505, 26, 5, 'business', 15000, 0), (506, 26, 6, 'business', 15000, 0), (507, 26, 7, 'business', 15000, 0), (508, 26, 8, 'business', 15000, 0), (509, 26, 9, 'business', 15000, 0), (510, 26, 10, 'business', 15000, 0), (511, 26, 11, 'business', 15000, 0), (512, 26, 12, 'business', 15000, 0), (513, 26, 13, 'business', 15000, 0), (514, 26, 14, 'business', 15000, 0), (515, 26, 15, 'business', 15000, 0), (516, 26, 16, 'business', 15000, 0), (517, 26, 17, 'business', 15000, 0), (518, 26, 18, 'business', 15000, 0), (519, 26, 19, 'business', 15000, 0), (520, 26, 20, 'business', 15000, 0), (521, 27, 1, 'business', 15000, 0), (522, 27, 2, 'business', 15000, 0), (523, 27, 3, 'business', 15000, 0), (524, 27, 4, 'business', 15000, 0), (525, 27, 5, 'business', 15000, 0), (526, 27, 6, 'business', 15000, 0), (527, 27, 7, 'business', 15000, 0), (528, 27, 8, 'business', 15000, 0), (529, 27, 9, 'business', 15000, 0), (530, 27, 10, 'business', 15000, 0), (531, 27, 11, 'business', 15000, 0), (532, 27, 12, 'business', 15000, 0), (533, 27, 13, 'business', 15000, 0), (534, 27, 14, 'business', 15000, 0), (535, 27, 15, 'business', 15000, 0), (536, 27, 16, 'business', 15000, 0), (537, 27, 17, 'business', 15000, 0), (538, 27, 18, 'business', 15000, 0), (539, 27, 19, 'business', 15000, 0), (540, 27, 20, 'business', 15000, 0), (541, 28, 1, 'business', 15000, 0), (542, 28, 2, 'business', 15000, 0), (543, 28, 3, 'business', 15000, 0), (544, 28, 4, 'business', 15000, 0), (545, 28, 5, 'business', 15000, 0), (546, 28, 6, 'business', 15000, 0), (547, 28, 7, 'business', 15000, 0), (548, 28, 8, 'business', 15000, 0), (549, 28, 9, 'business', 15000, 0), (550, 28, 10, 'business', 15000, 0), (551, 28, 11, 'business', 15000, 0), (552, 28, 12, 'business', 15000, 0), (553, 28, 13, 'business', 15000, 0), (554, 28, 14, 'business', 15000, 0), (555, 28, 15, 'business', 15000, 0), (556, 28, 16, 'business', 15000, 0), (557, 28, 17, 'business', 15000, 0), (558, 28, 18, 'business', 15000, 0), (559, 28, 19, 'business', 15000, 0), (560, 28, 20, 'business', 15000, 0), (561, 29, 1, 'business', 15000, 0), (562, 29, 2, 'business', 15000, 0), (563, 29, 3, 'business', 15000, 0), (564, 29, 4, 'business', 15000, 0), (565, 29, 5, 'business', 15000, 0), (566, 29, 6, 'business', 15000, 0), (567, 29, 7, 'business', 15000, 0), (568, 29, 8, 'business', 15000, 0), (569, 29, 9, 'business', 15000, 0), (570, 29, 10, 'business', 15000, 0), (571, 29, 11, 'business', 15000, 0), (572, 29, 12, 'business', 15000, 0), (573, 29, 13, 'business', 15000, 0), (574, 29, 14, 'business', 15000, 0), (575, 29, 15, 'business', 15000, 0), (576, 29, 16, 'business', 15000, 0), (577, 29, 17, 'business', 15000, 0), (578, 29, 18, 'business', 15000, 0), (579, 29, 19, 'business', 15000, 0), (580, 29, 20, 'business', 15000, 0), (581, 30, 1, 'business', 15000, 0), (582, 30, 2, 'business', 15000, 0), (583, 30, 3, 'business', 15000, 0), (584, 30, 4, 'business', 15000, 0), (585, 30, 5, 'business', 15000, 0), (586, 30, 6, 'business', 15000, 0), (587, 30, 7, 'business', 15000, 0), (588, 30, 8, 'business', 15000, 0), (589, 30, 9, 'business', 15000, 0), (590, 30, 10, 'business', 15000, 0), (591, 30, 11, 'business', 15000, 0), (592, 30, 12, 'business', 15000, 0), (593, 30, 13, 'business', 15000, 0), (594, 30, 14, 'business', 15000, 0), (595, 30, 15, 'business', 15000, 0), (596, 30, 16, 'business', 15000, 0), (597, 30, 17, 'business', 15000, 0), (598, 30, 18, 'business', 15000, 0), (599, 30, 19, 'business', 15000, 0), (600, 30, 20, 'business', 15000, 0), (601, 31, 1, 'business', 15000, 0), (602, 31, 2, 'business', 15000, 0), (603, 31, 3, 'business', 15000, 0), (604, 31, 4, 'business', 15000, 0), (605, 31, 5, 'business', 15000, 0), (606, 31, 6, 'business', 15000, 0), (607, 31, 7, 'business', 15000, 0), (608, 31, 8, 'business', 15000, 0), (609, 31, 9, 'business', 15000, 0), (610, 31, 10, 'business', 15000, 0), (611, 31, 11, 'business', 15000, 0), (612, 31, 12, 'business', 15000, 0), (613, 31, 13, 'business', 15000, 0), (614, 31, 14, 'business', 15000, 0), (615, 31, 15, 'business', 15000, 0), (616, 31, 16, 'business', 15000, 0), (617, 31, 17, 'business', 15000, 0), (618, 31, 18, 'business', 15000, 0), (619, 31, 19, 'business', 15000, 0), (620, 31, 20, 'business', 15000, 0), (621, 32, 1, 'business', 15000, 0), (622, 32, 2, 'business', 15000, 0), (623, 32, 3, 'business', 15000, 0), (624, 32, 4, 'business', 15000, 0), (625, 32, 5, 'business', 15000, 0), (626, 32, 6, 'business', 15000, 0), (627, 32, 7, 'business', 15000, 0), (628, 32, 8, 'business', 15000, 0), (629, 32, 9, 'business', 15000, 0), (630, 32, 10, 'business', 15000, 0), (631, 32, 11, 'business', 15000, 0), (632, 32, 12, 'business', 15000, 0), (633, 32, 13, 'business', 15000, 0), (634, 32, 14, 'business', 15000, 0), (635, 32, 15, 'business', 15000, 0), (636, 32, 16, 'business', 15000, 0), (637, 32, 17, 'business', 15000, 0), (638, 32, 18, 'business', 15000, 0), (639, 32, 19, 'business', 15000, 0), (640, 32, 20, 'business', 15000, 0), (641, 33, 1, 'business', 15000, 0), (642, 33, 2, 'business', 15000, 0), (643, 33, 3, 'business', 15000, 0), (644, 33, 4, 'business', 15000, 0), (645, 33, 5, 'business', 15000, 0), (646, 33, 6, 'business', 15000, 0), (647, 33, 7, 'business', 15000, 0), (648, 33, 8, 'business', 15000, 0), (649, 33, 9, 'business', 15000, 0), (650, 33, 10, 'business', 15000, 0), (651, 33, 11, 'business', 15000, 0), (652, 33, 12, 'business', 15000, 0), (653, 33, 13, 'business', 15000, 0), (654, 33, 14, 'business', 15000, 0), (655, 33, 15, 'business', 15000, 0), (656, 33, 16, 'business', 15000, 0), (657, 33, 17, 'business', 15000, 0), (658, 33, 18, 'business', 15000, 0), (659, 33, 19, 'business', 15000, 0), (660, 33, 20, 'business', 15000, 0), (661, 34, 1, 'business', 15000, 0), (662, 34, 2, 'business', 15000, 0), (663, 34, 3, 'business', 15000, 0), (664, 34, 4, 'business', 15000, 0), (665, 34, 5, 'business', 15000, 0), (666, 34, 6, 'business', 15000, 0), (667, 34, 7, 'business', 15000, 0), (668, 34, 8, 'business', 15000, 0), (669, 34, 9, 'business', 15000, 0), (670, 34, 10, 'business', 15000, 0), (671, 34, 11, 'business', 15000, 0), (672, 34, 12, 'business', 15000, 0), (673, 34, 13, 'business', 15000, 0), (674, 34, 14, 'business', 15000, 0), (675, 34, 15, 'business', 15000, 0), (676, 34, 16, 'business', 15000, 0), (677, 34, 17, 'business', 15000, 0), (678, 34, 18, 'business', 15000, 0), (679, 34, 19, 'business', 15000, 0), (680, 34, 20, 'business', 15000, 0), (681, 35, 1, 'business', 15000, 0), (682, 35, 2, 'business', 15000, 0), (683, 35, 3, 'business', 15000, 0), (684, 35, 4, 'business', 15000, 0), (685, 35, 5, 'business', 15000, 0), (686, 35, 6, 'business', 15000, 0), (687, 35, 7, 'business', 15000, 0), (688, 35, 8, 'business', 15000, 0), (689, 35, 9, 'business', 15000, 0), (690, 35, 10, 'business', 15000, 0), (691, 35, 11, 'business', 15000, 0), (692, 35, 12, 'business', 15000, 0), (693, 35, 13, 'business', 15000, 0), (694, 35, 14, 'business', 15000, 0), (695, 35, 15, 'business', 15000, 0), (696, 35, 16, 'business', 15000, 0), (697, 35, 17, 'business', 15000, 0), (698, 35, 18, 'business', 15000, 0), (699, 35, 19, 'business', 15000, 0), (700, 35, 20, 'business', 15000, 0), (701, 36, 1, 'business', 15000, 0), (702, 36, 2, 'business', 15000, 0), (703, 36, 3, 'business', 15000, 0), (704, 36, 4, 'business', 15000, 0), (705, 36, 5, 'business', 15000, 0), (706, 36, 6, 'business', 15000, 0), (707, 36, 7, 'business', 15000, 0), (708, 36, 8, 'business', 15000, 0), (709, 36, 9, 'business', 15000, 0), (710, 36, 10, 'business', 15000, 0), (711, 36, 11, 'business', 15000, 0), (712, 36, 12, 'business', 15000, 0), (713, 36, 13, 'business', 15000, 0), (714, 36, 14, 'business', 15000, 0), (715, 36, 15, 'business', 15000, 0), (716, 36, 16, 'business', 15000, 0), (717, 36, 17, 'business', 15000, 0), (718, 36, 18, 'business', 15000, 0), (719, 36, 19, 'business', 15000, 0), (720, 36, 20, 'business', 15000, 0), (721, 37, 1, 'business', 15000, 0), (722, 37, 2, 'business', 15000, 0), (723, 37, 3, 'business', 15000, 0), (724, 37, 4, 'business', 15000, 0), (725, 37, 5, 'business', 15000, 0), (726, 37, 6, 'business', 15000, 0), (727, 37, 7, 'business', 15000, 0), (728, 37, 8, 'business', 15000, 0), (729, 37, 9, 'business', 15000, 0), (730, 37, 10, 'business', 15000, 0), (731, 37, 11, 'business', 15000, 0), (732, 37, 12, 'business', 15000, 0), (733, 37, 13, 'business', 15000, 0), (734, 37, 14, 'business', 15000, 0), (735, 37, 15, 'business', 15000, 0), (736, 37, 16, 'business', 15000, 0), (737, 37, 17, 'business', 15000, 0), (738, 37, 18, 'business', 15000, 0), (739, 37, 19, 'business', 15000, 0), (740, 37, 20, 'business', 15000, 0), (741, 38, 1, 'business', 15000, 0), (742, 38, 2, 'business', 15000, 0), (743, 38, 3, 'business', 15000, 0), (744, 38, 4, 'business', 15000, 0), (745, 38, 5, 'business', 15000, 0), (746, 38, 6, 'business', 15000, 0), (747, 38, 7, 'business', 15000, 0), (748, 38, 8, 'business', 15000, 0), (749, 38, 9, 'business', 15000, 0), (750, 38, 10, 'business', 15000, 0), (751, 38, 11, 'business', 15000, 0), (752, 38, 12, 'business', 15000, 0), (753, 38, 13, 'business', 15000, 0), (754, 38, 14, 'business', 15000, 0), (755, 38, 15, 'business', 15000, 0), (756, 38, 16, 'business', 15000, 0), (757, 38, 17, 'business', 15000, 0), (758, 38, 18, 'business', 15000, 0), (759, 38, 19, 'business', 15000, 0), (760, 38, 20, 'business', 15000, 0), (761, 39, 1, 'business', 15000, 0), (762, 39, 2, 'business', 15000, 0), (763, 39, 3, 'business', 15000, 0), (764, 39, 4, 'business', 15000, 0), (765, 39, 5, 'business', 15000, 0), (766, 39, 6, 'business', 15000, 0), (767, 39, 7, 'business', 15000, 0), (768, 39, 8, 'business', 15000, 0), (769, 39, 9, 'business', 15000, 0), (770, 39, 10, 'business', 15000, 0), (771, 39, 11, 'business', 15000, 0), (772, 39, 12, 'business', 15000, 0), (773, 39, 13, 'business', 15000, 0), (774, 39, 14, 'business', 15000, 0), (775, 39, 15, 'business', 15000, 0), (776, 39, 16, 'business', 15000, 0), (777, 39, 17, 'business', 15000, 0), (778, 39, 18, 'business', 15000, 0), (779, 39, 19, 'business', 15000, 0), (780, 39, 20, 'business', 15000, 0), (781, 40, 1, 'business', 15000, 0), (782, 40, 2, 'business', 15000, 0), (783, 40, 3, 'business', 15000, 0), (784, 40, 4, 'business', 15000, 0), (785, 40, 5, 'business', 15000, 0), (786, 40, 6, 'business', 15000, 0), (787, 40, 7, 'business', 15000, 0), (788, 40, 8, 'business', 15000, 0), (789, 40, 9, 'business', 15000, 0), (790, 40, 10, 'business', 15000, 0), (791, 40, 11, 'business', 15000, 0), (792, 40, 12, 'business', 15000, 0), (793, 40, 13, 'business', 15000, 0), (794, 40, 14, 'business', 15000, 0), (795, 40, 15, 'business', 15000, 0), (796, 40, 16, 'business', 15000, 0), (797, 40, 17, 'business', 15000, 0), (798, 40, 18, 'business', 15000, 0), (799, 40, 19, 'business', 15000, 0), (800, 40, 20, 'business', 15000, 0), (801, 41, 1, 'business', 15000, 0), (802, 41, 2, 'business', 15000, 0), (803, 41, 3, 'business', 15000, 0), (804, 41, 4, 'business', 15000, 0), (805, 41, 5, 'business', 15000, 0), (806, 41, 6, 'business', 15000, 0), (807, 41, 7, 'business', 15000, 0), (808, 41, 8, 'business', 15000, 0), (809, 41, 9, 'business', 15000, 0), (810, 41, 10, 'business', 15000, 0), (811, 41, 11, 'business', 15000, 0), (812, 41, 12, 'business', 15000, 0), (813, 41, 13, 'business', 15000, 0), (814, 41, 14, 'business', 15000, 0), (815, 41, 15, 'business', 15000, 0), (816, 41, 16, 'business', 15000, 0), (817, 41, 17, 'business', 15000, 0), (818, 41, 18, 'business', 15000, 0), (819, 41, 19, 'business', 15000, 0), (820, 41, 20, 'business', 15000, 0), (821, 42, 1, 'business', 15000, 0), (822, 42, 2, 'business', 15000, 0), (823, 42, 3, 'business', 15000, 0), (824, 42, 4, 'business', 15000, 0), (825, 42, 5, 'business', 15000, 0), (826, 42, 6, 'business', 15000, 0), (827, 42, 7, 'business', 15000, 0), (828, 42, 8, 'business', 15000, 0), (829, 42, 9, 'business', 15000, 0), (830, 42, 10, 'business', 15000, 0), (831, 42, 11, 'business', 15000, 0), (832, 42, 12, 'business', 15000, 0), (833, 42, 13, 'business', 15000, 0), (834, 42, 14, 'business', 15000, 0), (835, 42, 15, 'business', 15000, 0), (836, 42, 16, 'business', 15000, 0), (837, 42, 17, 'business', 15000, 0), (838, 42, 18, 'business', 15000, 0), (839, 42, 19, 'business', 15000, 0), (840, 42, 20, 'business', 15000, 0), (841, 43, 1, 'business', 15000, 0), (842, 43, 2, 'business', 15000, 0), (843, 43, 3, 'business', 15000, 0), (844, 43, 4, 'business', 15000, 0), (845, 43, 5, 'business', 15000, 0), (846, 43, 6, 'business', 15000, 0), (847, 43, 7, 'business', 15000, 0), (848, 43, 8, 'business', 15000, 0), (849, 43, 9, 'business', 15000, 0), (850, 43, 10, 'business', 15000, 0), (851, 43, 11, 'business', 15000, 0), (852, 43, 12, 'business', 15000, 0), (853, 43, 13, 'business', 15000, 0), (854, 43, 14, 'business', 15000, 0), (855, 43, 15, 'business', 15000, 0), (856, 43, 16, 'business', 15000, 0), (857, 43, 17, 'business', 15000, 0), (858, 43, 18, 'business', 15000, 0), (859, 43, 19, 'business', 15000, 0), (860, 43, 20, 'business', 15000, 0), (861, 44, 1, 'business', 15000, 0), (862, 44, 2, 'business', 15000, 0), (863, 44, 3, 'business', 15000, 0), (864, 44, 4, 'business', 15000, 0), (865, 44, 5, 'business', 15000, 0), (866, 44, 6, 'business', 15000, 0), (867, 44, 7, 'business', 15000, 0), (868, 44, 8, 'business', 15000, 0), (869, 44, 9, 'business', 15000, 0), (870, 44, 10, 'business', 15000, 0), (871, 44, 11, 'business', 15000, 0), (872, 44, 12, 'business', 15000, 0), (873, 44, 13, 'business', 15000, 0), (874, 44, 14, 'business', 15000, 0), (875, 44, 15, 'business', 15000, 0), (876, 44, 16, 'business', 15000, 0), (877, 44, 17, 'business', 15000, 0), (878, 44, 18, 'business', 15000, 0), (879, 44, 19, 'business', 15000, 0), (880, 44, 20, 'business', 15000, 0), (881, 45, 1, 'business', 15000, 0), (882, 45, 2, 'business', 15000, 0), (883, 45, 3, 'business', 15000, 0), (884, 45, 4, 'business', 15000, 0), (885, 45, 5, 'business', 15000, 0), (886, 45, 6, 'business', 15000, 0), (887, 45, 7, 'business', 15000, 0), (888, 45, 8, 'business', 15000, 0), (889, 45, 9, 'business', 15000, 0), (890, 45, 10, 'business', 15000, 0), (891, 45, 11, 'business', 15000, 0), (892, 45, 12, 'business', 15000, 0), (893, 45, 13, 'business', 15000, 0), (894, 45, 14, 'business', 15000, 0), (895, 45, 15, 'business', 15000, 0), (896, 45, 16, 'business', 15000, 0), (897, 45, 17, 'business', 15000, 0), (898, 45, 18, 'business', 15000, 0), (899, 45, 19, 'business', 15000, 0), (900, 45, 20, 'business', 15000, 0), (901, 46, 1, 'business', 15000, 0), (902, 46, 2, 'business', 15000, 0), (903, 46, 3, 'business', 15000, 0), (904, 46, 4, 'business', 15000, 0), (905, 46, 5, 'business', 15000, 0), (906, 46, 6, 'business', 15000, 0), (907, 46, 7, 'business', 15000, 0), (908, 46, 8, 'business', 15000, 0), (909, 46, 9, 'business', 15000, 0), (910, 46, 10, 'business', 15000, 0), (911, 46, 11, 'business', 15000, 0), (912, 46, 12, 'business', 15000, 0), (913, 46, 13, 'business', 15000, 0), (914, 46, 14, 'business', 15000, 0), (915, 46, 15, 'business', 15000, 0), (916, 46, 16, 'business', 15000, 0), (917, 46, 17, 'business', 15000, 0), (918, 46, 18, 'business', 15000, 0), (919, 46, 19, 'business', 15000, 0), (920, 46, 20, 'business', 15000, 0), (921, 47, 1, 'business', 15000, 0), (922, 47, 2, 'business', 15000, 0), (923, 47, 3, 'business', 15000, 0), (924, 47, 4, 'business', 15000, 0), (925, 47, 5, 'business', 15000, 0), (926, 47, 6, 'business', 15000, 0), (927, 47, 7, 'business', 15000, 0), (928, 47, 8, 'business', 15000, 0), (929, 47, 9, 'business', 15000, 0), (930, 47, 10, 'business', 15000, 0), (931, 47, 11, 'business', 15000, 0), (932, 47, 12, 'business', 15000, 0), (933, 47, 13, 'business', 15000, 0), (934, 47, 14, 'business', 15000, 0), (935, 47, 15, 'business', 15000, 0), (936, 47, 16, 'business', 15000, 0), (937, 47, 17, 'business', 15000, 0), (938, 47, 18, 'business', 15000, 0), (939, 47, 19, 'business', 15000, 0), (940, 47, 20, 'business', 15000, 0), (941, 48, 1, 'business', 15000, 0), (942, 48, 2, 'business', 15000, 0), (943, 48, 3, 'business', 15000, 0), (944, 48, 4, 'business', 15000, 0), (945, 48, 5, 'business', 15000, 0), (946, 48, 6, 'business', 15000, 0), (947, 48, 7, 'business', 15000, 0), (948, 48, 8, 'business', 15000, 0), (949, 48, 9, 'business', 15000, 0), (950, 48, 10, 'business', 15000, 0), (951, 48, 11, 'business', 15000, 0), (952, 48, 12, 'business', 15000, 0), (953, 48, 13, 'business', 15000, 0), (954, 48, 14, 'business', 15000, 0), (955, 48, 15, 'business', 15000, 0), (956, 48, 16, 'business', 15000, 0), (957, 48, 17, 'business', 15000, 0), (958, 48, 18, 'business', 15000, 0), (959, 48, 19, 'business', 15000, 0), (960, 48, 20, 'business', 15000, 0), (961, 49, 1, 'business', 15000, 0), (962, 49, 2, 'business', 15000, 0), (963, 49, 3, 'business', 15000, 0), (964, 49, 4, 'business', 15000, 0), (965, 49, 5, 'business', 15000, 0), (966, 49, 6, 'business', 15000, 0), (967, 49, 7, 'business', 15000, 0), (968, 49, 8, 'business', 15000, 0), (969, 49, 9, 'business', 15000, 0), (970, 49, 10, 'business', 15000, 0), (971, 49, 11, 'business', 15000, 0), (972, 49, 12, 'business', 15000, 0), (973, 49, 13, 'business', 15000, 0), (974, 49, 14, 'business', 15000, 0), (975, 49, 15, 'business', 15000, 0), (976, 49, 16, 'business', 15000, 0), (977, 49, 17, 'business', 15000, 0), (978, 49, 18, 'business', 15000, 0), (979, 49, 19, 'business', 15000, 0), (980, 49, 20, 'business', 15000, 0), (981, 50, 1, 'business', 15000, 0), (982, 50, 2, 'business', 15000, 0), (983, 50, 3, 'business', 15000, 0), (984, 50, 4, 'business', 15000, 0), (985, 50, 5, 'business', 15000, 0), (986, 50, 6, 'business', 15000, 0), (987, 50, 7, 'business', 15000, 0), (988, 50, 8, 'business', 15000, 0), (989, 50, 9, 'business', 15000, 0), (990, 50, 10, 'business', 15000, 0), (991, 50, 11, 'business', 15000, 0), (992, 50, 12, 'business', 15000, 0), (993, 50, 13, 'business', 15000, 0), (994, 50, 14, 'business', 15000, 0), (995, 50, 15, 'business', 15000, 0), (996, 50, 16, 'business', 15000, 0), (997, 50, 17, 'business', 15000, 0), (998, 50, 18, 'business', 15000, 0), (999, 50, 19, 'business', 15000, 0), (1000, 50, 20, 'business', 15000, 0), (1001, 51, 1, 'business', 15000, 0), (1002, 51, 2, 'business', 15000, 0), (1003, 51, 3, 'business', 15000, 0), (1004, 51, 4, 'business', 15000, 0), (1005, 51, 5, 'business', 15000, 0), (1006, 51, 6, 'business', 15000, 0), (1007, 51, 7, 'business', 15000, 0), (1008, 51, 8, 'business', 15000, 0), (1009, 51, 9, 'business', 15000, 0), (1010, 51, 10, 'business', 15000, 0), (1011, 51, 11, 'business', 15000, 0), (1012, 51, 12, 'business', 15000, 0), (1013, 51, 13, 'business', 15000, 0), (1014, 51, 14, 'business', 15000, 0), (1015, 51, 15, 'business', 15000, 0), (1016, 51, 16, 'business', 15000, 0), (1017, 51, 17, 'business', 15000, 0), (1018, 51, 18, 'business', 15000, 0), (1019, 51, 19, 'business', 15000, 0), (1020, 51, 20, 'business', 15000, 0), (1021, 52, 1, 'business', 15000, 0), (1022, 52, 2, 'business', 15000, 0), (1023, 52, 3, 'business', 15000, 0), (1024, 52, 4, 'business', 15000, 0), (1025, 52, 5, 'business', 15000, 0), (1026, 52, 6, 'business', 15000, 0), (1027, 52, 7, 'business', 15000, 0), (1028, 52, 8, 'business', 15000, 0), (1029, 52, 9, 'business', 15000, 0), (1030, 52, 10, 'business', 15000, 0), (1031, 52, 11, 'business', 15000, 0), (1032, 52, 12, 'business', 15000, 0), (1033, 52, 13, 'business', 15000, 0), (1034, 52, 14, 'business', 15000, 0), (1035, 52, 15, 'business', 15000, 0), (1036, 52, 16, 'business', 15000, 0), (1037, 52, 17, 'business', 15000, 0), (1038, 52, 18, 'business', 15000, 0), (1039, 52, 19, 'business', 15000, 0), (1040, 52, 20, 'business', 15000, 0), (1041, 53, 1, 'business', 15000, 0), (1042, 53, 2, 'business', 15000, 0), (1043, 53, 3, 'business', 15000, 0), (1044, 53, 4, 'business', 15000, 0), (1045, 53, 5, 'business', 15000, 0), (1046, 53, 6, 'business', 15000, 0), (1047, 53, 7, 'business', 15000, 0), (1048, 53, 8, 'business', 15000, 0), (1049, 53, 9, 'business', 15000, 0), (1050, 53, 10, 'business', 15000, 0), (1051, 53, 11, 'business', 15000, 0), (1052, 53, 12, 'business', 15000, 0), (1053, 53, 13, 'business', 15000, 0), (1054, 53, 14, 'business', 15000, 0), (1055, 53, 15, 'business', 15000, 0), (1056, 53, 16, 'business', 15000, 0), (1057, 53, 17, 'business', 15000, 0), (1058, 53, 18, 'business', 15000, 0), (1059, 53, 19, 'business', 15000, 0), (1060, 53, 20, 'business', 15000, 0), (1061, 54, 1, 'business', 15000, 0), (1062, 54, 2, 'business', 15000, 0), (1063, 54, 3, 'business', 15000, 0), (1064, 54, 4, 'business', 15000, 0), (1065, 54, 5, 'business', 15000, 0), (1066, 54, 6, 'business', 15000, 0), (1067, 54, 7, 'business', 15000, 0), (1068, 54, 8, 'business', 15000, 0), (1069, 54, 9, 'business', 15000, 0), (1070, 54, 10, 'business', 15000, 0), (1071, 54, 11, 'business', 15000, 0), (1072, 54, 12, 'business', 15000, 0), (1073, 54, 13, 'business', 15000, 0), (1074, 54, 14, 'business', 15000, 0), (1075, 54, 15, 'business', 15000, 0), (1076, 54, 16, 'business', 15000, 0), (1077, 54, 17, 'business', 15000, 0), (1078, 54, 18, 'business', 15000, 0), (1079, 54, 19, 'business', 15000, 0), (1080, 54, 20, 'business', 15000, 0), (1081, 55, 1, 'business', 15000, 0), (1082, 55, 2, 'business', 15000, 0), (1083, 55, 3, 'business', 15000, 0), (1084, 55, 4, 'business', 15000, 0), (1085, 55, 5, 'business', 15000, 0), (1086, 55, 6, 'business', 15000, 0), (1087, 55, 7, 'business', 15000, 0), (1088, 55, 8, 'business', 15000, 0), (1089, 55, 9, 'business', 15000, 0), (1090, 55, 10, 'business', 15000, 0), (1091, 55, 11, 'business', 15000, 0), (1092, 55, 12, 'business', 15000, 0), (1093, 55, 13, 'business', 15000, 0), (1094, 55, 14, 'business', 15000, 0), (1095, 55, 15, 'business', 15000, 0), (1096, 55, 16, 'business', 15000, 0), (1097, 55, 17, 'business', 15000, 0), (1098, 55, 18, 'business', 15000, 0), (1099, 55, 19, 'business', 15000, 0), (1100, 55, 20, 'business', 15000, 0), (1101, 56, 1, 'business', 15000, 0), (1102, 56, 2, 'business', 15000, 0), (1103, 56, 3, 'business', 15000, 0), (1104, 56, 4, 'business', 15000, 0), (1105, 56, 5, 'business', 15000, 0), (1106, 56, 6, 'business', 15000, 0), (1107, 56, 7, 'business', 15000, 0), (1108, 56, 8, 'business', 15000, 0), (1109, 56, 9, 'business', 15000, 0), (1110, 56, 10, 'business', 15000, 0), (1111, 56, 11, 'business', 15000, 0), (1112, 56, 12, 'business', 15000, 0), (1113, 56, 13, 'business', 15000, 0), (1114, 56, 14, 'business', 15000, 0), (1115, 56, 15, 'business', 15000, 0), (1116, 56, 16, 'business', 15000, 0), (1117, 56, 17, 'business', 15000, 0), (1118, 56, 18, 'business', 15000, 0), (1119, 56, 19, 'business', 15000, 0), (1120, 56, 20, 'business', 15000, 0), (1121, 57, 1, 'business', 15000, 0), (1122, 57, 2, 'business', 15000, 0), (1123, 57, 3, 'business', 15000, 0), (1124, 57, 4, 'business', 15000, 0), (1125, 57, 5, 'business', 15000, 0), (1126, 57, 6, 'business', 15000, 0), (1127, 57, 7, 'business', 15000, 0), (1128, 57, 8, 'business', 15000, 0), (1129, 57, 9, 'business', 15000, 0), (1130, 57, 10, 'business', 15000, 0), (1131, 57, 11, 'business', 15000, 0), (1132, 57, 12, 'business', 15000, 0), (1133, 57, 13, 'business', 15000, 0), (1134, 57, 14, 'business', 15000, 0), (1135, 57, 15, 'business', 15000, 0), (1136, 57, 16, 'business', 15000, 0), (1137, 57, 17, 'business', 15000, 0), (1138, 57, 18, 'business', 15000, 0), (1139, 57, 19, 'business', 15000, 0), (1140, 57, 20, 'business', 15000, 0), (1141, 58, 1, 'business', 15000, 0), (1142, 58, 2, 'business', 15000, 0), (1143, 58, 3, 'business', 15000, 0), (1144, 58, 4, 'business', 15000, 0), (1145, 58, 5, 'business', 15000, 0), (1146, 58, 6, 'business', 15000, 0), (1147, 58, 7, 'business', 15000, 0), (1148, 58, 8, 'business', 15000, 0), (1149, 58, 9, 'business', 15000, 0), (1150, 58, 10, 'business', 15000, 0), (1151, 58, 11, 'business', 15000, 0), (1152, 58, 12, 'business', 15000, 0), (1153, 58, 13, 'business', 15000, 0), (1154, 58, 14, 'business', 15000, 0), (1155, 58, 15, 'business', 15000, 0), (1156, 58, 16, 'business', 15000, 0), (1157, 58, 17, 'business', 15000, 0), (1158, 58, 18, 'business', 15000, 0), (1159, 58, 19, 'business', 15000, 0), (1160, 58, 20, 'business', 15000, 0), (1161, 59, 1, 'business', 15000, 0), (1162, 59, 2, 'business', 15000, 0), (1163, 59, 3, 'business', 15000, 0), (1164, 59, 4, 'business', 15000, 0), (1165, 59, 5, 'business', 15000, 0), (1166, 59, 6, 'business', 15000, 0), (1167, 59, 7, 'business', 15000, 0), (1168, 59, 8, 'business', 15000, 0), (1169, 59, 9, 'business', 15000, 0), (1170, 59, 10, 'business', 15000, 0), (1171, 59, 11, 'business', 15000, 0), (1172, 59, 12, 'business', 15000, 0), (1173, 59, 13, 'business', 15000, 0), (1174, 59, 14, 'business', 15000, 0), (1175, 59, 15, 'business', 15000, 0), (1176, 59, 16, 'business', 15000, 0), (1177, 59, 17, 'business', 15000, 0), (1178, 59, 18, 'business', 15000, 0), (1179, 59, 19, 'business', 15000, 0), (1180, 59, 20, 'business', 15000, 0), (1181, 60, 1, 'business', 15000, 0), (1182, 60, 2, 'business', 15000, 0), (1183, 60, 3, 'business', 15000, 0), (1184, 60, 4, 'business', 15000, 0), (1185, 60, 5, 'business', 15000, 0), (1186, 60, 6, 'business', 15000, 0), (1187, 60, 7, 'business', 15000, 0), (1188, 60, 8, 'business', 15000, 0), (1189, 60, 9, 'business', 15000, 0), (1190, 60, 10, 'business', 15000, 0), (1191, 60, 11, 'business', 15000, 0), (1192, 60, 12, 'business', 15000, 0), (1193, 60, 13, 'business', 15000, 0), (1194, 60, 14, 'business', 15000, 0), (1195, 60, 15, 'business', 15000, 0), (1196, 60, 16, 'business', 15000, 0), (1197, 60, 17, 'business', 15000, 0), (1198, 60, 18, 'business', 15000, 0), (1199, 60, 19, 'business', 15000, 0), (1200, 60, 20, 'business', 15000, 0), (1201, 61, 1, 'business', 15000, 0), (1202, 61, 2, 'business', 15000, 0), (1203, 61, 3, 'business', 15000, 0), (1204, 61, 4, 'business', 15000, 0), (1205, 61, 5, 'business', 15000, 0), (1206, 61, 6, 'business', 15000, 0), (1207, 61, 7, 'business', 15000, 0), (1208, 61, 8, 'business', 15000, 0), (1209, 61, 9, 'business', 15000, 0), (1210, 61, 10, 'business', 15000, 0), (1211, 61, 11, 'business', 15000, 0), (1212, 61, 12, 'business', 15000, 0), (1213, 61, 13, 'business', 15000, 0), (1214, 61, 14, 'business', 15000, 0), (1215, 61, 15, 'business', 15000, 0), (1216, 61, 16, 'business', 15000, 0), (1217, 61, 17, 'business', 15000, 0), (1218, 61, 18, 'business', 15000, 0), (1219, 61, 19, 'business', 15000, 0), (1220, 61, 20, 'business', 15000, 0), (1221, 62, 1, 'business', 15000, 0), (1222, 62, 2, 'business', 15000, 0), (1223, 62, 3, 'business', 15000, 0), (1224, 62, 4, 'business', 15000, 0), (1225, 62, 5, 'business', 15000, 0), (1226, 62, 6, 'business', 15000, 0), (1227, 62, 7, 'business', 15000, 0), (1228, 62, 8, 'business', 15000, 0), (1229, 62, 9, 'business', 15000, 0), (1230, 62, 10, 'business', 15000, 0), (1231, 62, 11, 'business', 15000, 0), (1232, 62, 12, 'business', 15000, 0), (1233, 62, 13, 'business', 15000, 0), (1234, 62, 14, 'business', 15000, 0), (1235, 62, 15, 'business', 15000, 0), (1236, 62, 16, 'business', 15000, 0), (1237, 62, 17, 'business', 15000, 0), (1238, 62, 18, 'business', 15000, 0), (1239, 62, 19, 'business', 15000, 0), (1240, 62, 20, 'business', 15000, 0), (1241, 63, 1, 'business', 15000, 0), (1242, 63, 2, 'business', 15000, 0), (1243, 63, 3, 'business', 15000, 0), (1244, 63, 4, 'business', 15000, 0), (1245, 63, 5, 'business', 15000, 0), (1246, 63, 6, 'business', 15000, 0), (1247, 63, 7, 'business', 15000, 0), (1248, 63, 8, 'business', 15000, 0), (1249, 63, 9, 'business', 15000, 0), (1250, 63, 10, 'business', 15000, 0), (1251, 63, 11, 'business', 15000, 0), (1252, 63, 12, 'business', 15000, 0), (1253, 63, 13, 'business', 15000, 0), (1254, 63, 14, 'business', 15000, 0), (1255, 63, 15, 'business', 15000, 0), (1256, 63, 16, 'business', 15000, 0), (1257, 63, 17, 'business', 15000, 0), (1258, 63, 18, 'business', 15000, 0), (1259, 63, 19, 'business', 15000, 0), (1260, 63, 20, 'business', 15000, 0), (1261, 64, 1, 'business', 15000, 0), (1262, 64, 2, 'business', 15000, 0), (1263, 64, 3, 'business', 15000, 0), (1264, 64, 4, 'business', 15000, 0), (1265, 64, 5, 'business', 15000, 0), (1266, 64, 6, 'business', 15000, 0), (1267, 64, 7, 'business', 15000, 0), (1268, 64, 8, 'business', 15000, 0), (1269, 64, 9, 'business', 15000, 0), (1270, 64, 10, 'business', 15000, 0), (1271, 64, 11, 'business', 15000, 0), (1272, 64, 12, 'business', 15000, 0), (1273, 64, 13, 'business', 15000, 0), (1274, 64, 14, 'business', 15000, 0), (1275, 64, 15, 'business', 15000, 0), (1276, 64, 16, 'business', 15000, 0), (1277, 64, 17, 'business', 15000, 0), (1278, 64, 18, 'business', 15000, 0), (1279, 64, 19, 'business', 15000, 0), (1280, 64, 20, 'business', 15000, 0), (1281, 65, 1, 'business', 15000, 0), (1282, 65, 2, 'business', 15000, 0), (1283, 65, 3, 'business', 15000, 0), (1284, 65, 4, 'business', 15000, 0), (1285, 65, 5, 'business', 15000, 0), (1286, 65, 6, 'business', 15000, 0), (1287, 65, 7, 'business', 15000, 0), (1288, 65, 8, 'business', 15000, 0), (1289, 65, 9, 'business', 15000, 0), (1290, 65, 10, 'business', 15000, 0), (1291, 65, 11, 'business', 15000, 0), (1292, 65, 12, 'business', 15000, 0), (1293, 65, 13, 'business', 15000, 0), (1294, 65, 14, 'business', 15000, 0), (1295, 65, 15, 'business', 15000, 0), (1296, 65, 16, 'business', 15000, 0), (1297, 65, 17, 'business', 15000, 0), (1298, 65, 18, 'business', 15000, 0), (1299, 65, 19, 'business', 15000, 0), (1300, 65, 20, 'business', 15000, 0), (1301, 66, 1, 'business', 15000, 0), (1302, 66, 2, 'business', 15000, 0), (1303, 66, 3, 'business', 15000, 0), (1304, 66, 4, 'business', 15000, 0), (1305, 66, 5, 'business', 15000, 0), (1306, 66, 6, 'business', 15000, 0), (1307, 66, 7, 'business', 15000, 0), (1308, 66, 8, 'business', 15000, 0), (1309, 66, 9, 'business', 15000, 0), (1310, 66, 10, 'business', 15000, 0), (1311, 66, 11, 'business', 15000, 0), (1312, 66, 12, 'business', 15000, 0), (1313, 66, 13, 'business', 15000, 0), (1314, 66, 14, 'business', 15000, 0), (1315, 66, 15, 'business', 15000, 0), (1316, 66, 16, 'business', 15000, 0), (1317, 66, 17, 'business', 15000, 0), (1318, 66, 18, 'business', 15000, 0), (1319, 66, 19, 'business', 15000, 0), (1320, 66, 20, 'business', 15000, 0), (1321, 67, 1, 'business', 15000, 0), (1322, 67, 2, 'business', 15000, 0), (1323, 67, 3, 'business', 15000, 0), (1324, 67, 4, 'business', 15000, 0), (1325, 67, 5, 'business', 15000, 0), (1326, 67, 6, 'business', 15000, 0), (1327, 67, 7, 'business', 15000, 0), (1328, 67, 8, 'business', 15000, 0), (1329, 67, 9, 'business', 15000, 0), (1330, 67, 10, 'business', 15000, 0), (1331, 67, 11, 'business', 15000, 0), (1332, 67, 12, 'business', 15000, 0), (1333, 67, 13, 'business', 15000, 0), (1334, 67, 14, 'business', 15000, 0), (1335, 67, 15, 'business', 15000, 0), (1336, 67, 16, 'business', 15000, 0), (1337, 67, 17, 'business', 15000, 0), (1338, 67, 18, 'business', 15000, 0), (1339, 67, 19, 'business', 15000, 0), (1340, 67, 20, 'business', 15000, 0), (1341, 68, 1, 'business', 15000, 0), (1342, 68, 2, 'business', 15000, 0), (1343, 68, 3, 'business', 15000, 0), (1344, 68, 4, 'business', 15000, 0), (1345, 68, 5, 'business', 15000, 0), (1346, 68, 6, 'business', 15000, 0), (1347, 68, 7, 'business', 15000, 0), (1348, 68, 8, 'business', 15000, 0), (1349, 68, 9, 'business', 15000, 0), (1350, 68, 10, 'business', 15000, 0), (1351, 68, 11, 'business', 15000, 0), (1352, 68, 12, 'business', 15000, 0), (1353, 68, 13, 'business', 15000, 0), (1354, 68, 14, 'business', 15000, 0), (1355, 68, 15, 'business', 15000, 0), (1356, 68, 16, 'business', 15000, 0), (1357, 68, 17, 'business', 15000, 0), (1358, 68, 18, 'business', 15000, 0), (1359, 68, 19, 'business', 15000, 0), (1360, 68, 20, 'business', 15000, 0), (1361, 69, 1, 'business', 15000, 0), (1362, 69, 2, 'business', 15000, 0), (1363, 69, 3, 'business', 15000, 0), (1364, 69, 4, 'business', 15000, 0), (1365, 69, 5, 'business', 15000, 0), (1366, 69, 6, 'business', 15000, 0), (1367, 69, 7, 'business', 15000, 0), (1368, 69, 8, 'business', 15000, 0), (1369, 69, 9, 'business', 15000, 0), (1370, 69, 10, 'business', 15000, 0), (1371, 69, 11, 'business', 15000, 0), (1372, 69, 12, 'business', 15000, 0), (1373, 69, 13, 'business', 15000, 0), (1374, 69, 14, 'business', 15000, 0), (1375, 69, 15, 'business', 15000, 0), (1376, 69, 16, 'business', 15000, 0), (1377, 69, 17, 'business', 15000, 0), (1378, 69, 18, 'business', 15000, 0), (1379, 69, 19, 'business', 15000, 0), (1380, 69, 20, 'business', 15000, 0), (1381, 70, 1, 'business', 15000, 0), (1382, 70, 2, 'business', 15000, 0), (1383, 70, 3, 'business', 15000, 0), (1384, 70, 4, 'business', 15000, 0), (1385, 70, 5, 'business', 15000, 0), (1386, 70, 6, 'business', 15000, 0), (1387, 70, 7, 'business', 15000, 0), (1388, 70, 8, 'business', 15000, 0), (1389, 70, 9, 'business', 15000, 0), (1390, 70, 10, 'business', 15000, 0), (1391, 70, 11, 'business', 15000, 0), (1392, 70, 12, 'business', 15000, 0), (1393, 70, 13, 'business', 15000, 0), (1394, 70, 14, 'business', 15000, 0), (1395, 70, 15, 'business', 15000, 0), (1396, 70, 16, 'business', 15000, 0), (1397, 70, 17, 'business', 15000, 0), (1398, 70, 18, 'business', 15000, 0), (1399, 70, 19, 'business', 15000, 0), (1400, 70, 20, 'business', 15000, 0), (1401, 71, 1, 'business', 15000, 0), (1402, 71, 2, 'business', 15000, 0), (1403, 71, 3, 'business', 15000, 0), (1404, 71, 4, 'business', 15000, 0), (1405, 71, 5, 'business', 15000, 0), (1406, 71, 6, 'business', 15000, 0), (1407, 71, 7, 'business', 15000, 0), (1408, 71, 8, 'business', 15000, 0), (1409, 71, 9, 'business', 15000, 0), (1410, 71, 10, 'business', 15000, 0), (1411, 71, 11, 'business', 15000, 0), (1412, 71, 12, 'business', 15000, 0), (1413, 71, 13, 'business', 15000, 0), (1414, 71, 14, 'business', 15000, 0), (1415, 71, 15, 'business', 15000, 0), (1416, 71, 16, 'business', 15000, 0), (1417, 71, 17, 'business', 15000, 0), (1418, 71, 18, 'business', 15000, 0), (1419, 71, 19, 'business', 15000, 0), (1420, 71, 20, 'business', 15000, 0), (1421, 72, 1, 'business', 15000, 0), (1422, 72, 2, 'business', 15000, 0), (1423, 72, 3, 'business', 15000, 0), (1424, 72, 4, 'business', 15000, 0), (1425, 72, 5, 'business', 15000, 0), (1426, 72, 6, 'business', 15000, 0), (1427, 72, 7, 'business', 15000, 0), (1428, 72, 8, 'business', 15000, 0), (1429, 72, 9, 'business', 15000, 0), (1430, 72, 10, 'business', 15000, 0), (1431, 72, 11, 'business', 15000, 0), (1432, 72, 12, 'business', 15000, 0), (1433, 72, 13, 'business', 15000, 0), (1434, 72, 14, 'business', 15000, 0), (1435, 72, 15, 'business', 15000, 0), (1436, 72, 16, 'business', 15000, 0), (1437, 72, 17, 'business', 15000, 0), (1438, 72, 18, 'business', 15000, 0), (1439, 72, 19, 'business', 15000, 0), (1440, 72, 20, 'business', 15000, 0); INSERT INTO `seat` (`id`, `flight_id`, `number`, `class`, `price`, `sell`) VALUES (1441, 73, 1, 'business', 15000, 0), (1442, 73, 2, 'business', 15000, 0), (1443, 73, 3, 'business', 15000, 0), (1444, 73, 4, 'business', 15000, 0), (1445, 73, 5, 'business', 15000, 0), (1446, 73, 6, 'business', 15000, 0), (1447, 73, 7, 'business', 15000, 0), (1448, 73, 8, 'business', 15000, 0), (1449, 73, 9, 'business', 15000, 0), (1450, 73, 10, 'business', 15000, 0), (1451, 73, 11, 'business', 15000, 0), (1452, 73, 12, 'business', 15000, 0), (1453, 73, 13, 'business', 15000, 0), (1454, 73, 14, 'business', 15000, 0), (1455, 73, 15, 'business', 15000, 0), (1456, 73, 16, 'business', 15000, 0), (1457, 73, 17, 'business', 15000, 0), (1458, 73, 18, 'business', 15000, 0), (1459, 73, 19, 'business', 15000, 0), (1460, 73, 20, 'business', 15000, 0), (1461, 74, 1, 'business', 15000, 0), (1462, 74, 2, 'business', 15000, 0), (1463, 74, 3, 'business', 15000, 0), (1464, 74, 4, 'business', 15000, 0), (1465, 74, 5, 'business', 15000, 0), (1466, 74, 6, 'business', 15000, 0), (1467, 74, 7, 'business', 15000, 0), (1468, 74, 8, 'business', 15000, 0), (1469, 74, 9, 'business', 15000, 0), (1470, 74, 10, 'business', 15000, 0), (1471, 74, 11, 'business', 15000, 0), (1472, 74, 12, 'business', 15000, 0), (1473, 74, 13, 'business', 15000, 0), (1474, 74, 14, 'business', 15000, 0), (1475, 74, 15, 'business', 15000, 0), (1476, 74, 16, 'business', 15000, 0), (1477, 74, 17, 'business', 15000, 0), (1478, 74, 18, 'business', 15000, 0), (1479, 74, 19, 'business', 15000, 0), (1480, 74, 20, 'business', 15000, 0), (1481, 75, 1, 'business', 15000, 0), (1482, 75, 2, 'business', 15000, 0), (1483, 75, 3, 'business', 15000, 0), (1484, 75, 4, 'business', 15000, 0), (1485, 75, 5, 'business', 15000, 0), (1486, 75, 6, 'business', 15000, 0), (1487, 75, 7, 'business', 15000, 0), (1488, 75, 8, 'business', 15000, 0), (1489, 75, 9, 'business', 15000, 0), (1490, 75, 10, 'business', 15000, 0), (1491, 75, 11, 'business', 15000, 0), (1492, 75, 12, 'business', 15000, 0), (1493, 75, 13, 'business', 15000, 0), (1494, 75, 14, 'business', 15000, 0), (1495, 75, 15, 'business', 15000, 0), (1496, 75, 16, 'business', 15000, 0), (1497, 75, 17, 'business', 15000, 0), (1498, 75, 18, 'business', 15000, 0), (1499, 75, 19, 'business', 15000, 0), (1500, 75, 20, 'business', 15000, 0), (1501, 76, 1, 'business', 15000, 0), (1502, 76, 2, 'business', 15000, 0), (1503, 76, 3, 'business', 15000, 0), (1504, 76, 4, 'business', 15000, 0), (1505, 76, 5, 'business', 15000, 0), (1506, 76, 6, 'business', 15000, 0), (1507, 76, 7, 'business', 15000, 0), (1508, 76, 8, 'business', 15000, 0), (1509, 76, 9, 'business', 15000, 0), (1510, 76, 10, 'business', 15000, 0), (1511, 76, 11, 'business', 15000, 0), (1512, 76, 12, 'business', 15000, 0), (1513, 76, 13, 'business', 15000, 0), (1514, 76, 14, 'business', 15000, 0), (1515, 76, 15, 'business', 15000, 0), (1516, 76, 16, 'business', 15000, 0), (1517, 76, 17, 'business', 15000, 0), (1518, 76, 18, 'business', 15000, 0), (1519, 76, 19, 'business', 15000, 0), (1520, 76, 20, 'business', 15000, 0), (1521, 77, 1, 'business', 15000, 0), (1522, 77, 2, 'business', 15000, 0), (1523, 77, 3, 'business', 15000, 0), (1524, 77, 4, 'business', 15000, 0), (1525, 77, 5, 'business', 15000, 0), (1526, 77, 6, 'business', 15000, 0), (1527, 77, 7, 'business', 15000, 0), (1528, 77, 8, 'business', 15000, 0), (1529, 77, 9, 'business', 15000, 0), (1530, 77, 10, 'business', 15000, 0), (1531, 77, 11, 'business', 15000, 0), (1532, 77, 12, 'business', 15000, 0), (1533, 77, 13, 'business', 15000, 0), (1534, 77, 14, 'business', 15000, 0), (1535, 77, 15, 'business', 15000, 0), (1536, 77, 16, 'business', 15000, 0), (1537, 77, 17, 'business', 15000, 0), (1538, 77, 18, 'business', 15000, 0), (1539, 77, 19, 'business', 15000, 0), (1540, 77, 20, 'business', 15000, 0), (1541, 78, 1, 'business', 15000, 0), (1542, 78, 2, 'business', 15000, 0), (1543, 78, 3, 'business', 15000, 0), (1544, 78, 4, 'business', 15000, 0), (1545, 78, 5, 'business', 15000, 0), (1546, 78, 6, 'business', 15000, 0), (1547, 78, 7, 'business', 15000, 0), (1548, 78, 8, 'business', 15000, 0), (1549, 78, 9, 'business', 15000, 0), (1550, 78, 10, 'business', 15000, 0), (1551, 78, 11, 'business', 15000, 0), (1552, 78, 12, 'business', 15000, 0), (1553, 78, 13, 'business', 15000, 0), (1554, 78, 14, 'business', 15000, 0), (1555, 78, 15, 'business', 15000, 0), (1556, 78, 16, 'business', 15000, 0), (1557, 78, 17, 'business', 15000, 0), (1558, 78, 18, 'business', 15000, 0), (1559, 78, 19, 'business', 15000, 0), (1560, 78, 20, 'business', 15000, 0), (1561, 79, 1, 'business', 15000, 0), (1562, 79, 2, 'business', 15000, 0), (1563, 79, 3, 'business', 15000, 0), (1564, 79, 4, 'business', 15000, 0), (1565, 79, 5, 'business', 15000, 0), (1566, 79, 6, 'business', 15000, 0), (1567, 79, 7, 'business', 15000, 0), (1568, 79, 8, 'business', 15000, 0), (1569, 79, 9, 'business', 15000, 0), (1570, 79, 10, 'business', 15000, 0), (1571, 79, 11, 'business', 15000, 0), (1572, 79, 12, 'business', 15000, 0), (1573, 79, 13, 'business', 15000, 0), (1574, 79, 14, 'business', 15000, 0), (1575, 79, 15, 'business', 15000, 0), (1576, 79, 16, 'business', 15000, 0), (1577, 79, 17, 'business', 15000, 0), (1578, 79, 18, 'business', 15000, 0), (1579, 79, 19, 'business', 15000, 0), (1580, 79, 20, 'business', 15000, 0), (1581, 80, 1, 'business', 15000, 0), (1582, 80, 2, 'business', 15000, 0), (1583, 80, 3, 'business', 15000, 0), (1584, 80, 4, 'business', 15000, 0), (1585, 80, 5, 'business', 15000, 0), (1586, 80, 6, 'business', 15000, 0), (1587, 80, 7, 'business', 15000, 0), (1588, 80, 8, 'business', 15000, 0), (1589, 80, 9, 'business', 15000, 0), (1590, 80, 10, 'business', 15000, 0), (1591, 80, 11, 'business', 15000, 0), (1592, 80, 12, 'business', 15000, 0), (1593, 80, 13, 'business', 15000, 0), (1594, 80, 14, 'business', 15000, 0), (1595, 80, 15, 'business', 15000, 0), (1596, 80, 16, 'business', 15000, 0), (1597, 80, 17, 'business', 15000, 0), (1598, 80, 18, 'business', 15000, 0), (1599, 80, 19, 'business', 15000, 0), (1600, 80, 20, 'business', 15000, 0), (1601, 81, 1, 'business', 15000, 0), (1602, 81, 2, 'business', 15000, 0), (1603, 81, 3, 'business', 15000, 0), (1604, 81, 4, 'business', 15000, 0), (1605, 81, 5, 'business', 15000, 0), (1606, 81, 6, 'business', 15000, 0), (1607, 81, 7, 'business', 15000, 0), (1608, 81, 8, 'business', 15000, 0), (1609, 81, 9, 'business', 15000, 0), (1610, 81, 10, 'business', 15000, 0), (1611, 81, 11, 'business', 15000, 0), (1612, 81, 12, 'business', 15000, 0), (1613, 81, 13, 'business', 15000, 0), (1614, 81, 14, 'business', 15000, 0), (1615, 81, 15, 'business', 15000, 0), (1616, 81, 16, 'business', 15000, 0), (1617, 81, 17, 'business', 15000, 0), (1618, 81, 18, 'business', 15000, 0), (1619, 81, 19, 'business', 15000, 0), (1620, 81, 20, 'business', 15000, 0), (1621, 82, 1, 'business', 15000, 0), (1622, 82, 2, 'business', 15000, 0), (1623, 82, 3, 'business', 15000, 0), (1624, 82, 4, 'business', 15000, 0), (1625, 82, 5, 'business', 15000, 0), (1626, 82, 6, 'business', 15000, 0), (1627, 82, 7, 'business', 15000, 0), (1628, 82, 8, 'business', 15000, 0), (1629, 82, 9, 'business', 15000, 0), (1630, 82, 10, 'business', 15000, 0), (1631, 82, 11, 'business', 15000, 0), (1632, 82, 12, 'business', 15000, 0), (1633, 82, 13, 'business', 15000, 0), (1634, 82, 14, 'business', 15000, 0), (1635, 82, 15, 'business', 15000, 0), (1636, 82, 16, 'business', 15000, 0), (1637, 82, 17, 'business', 15000, 0), (1638, 82, 18, 'business', 15000, 0), (1639, 82, 19, 'business', 15000, 0), (1640, 82, 20, 'business', 15000, 0), (1641, 83, 1, 'business', 15000, 0), (1642, 83, 2, 'business', 15000, 0), (1643, 83, 3, 'business', 15000, 0), (1644, 83, 4, 'business', 15000, 0), (1645, 83, 5, 'business', 15000, 0), (1646, 83, 6, 'business', 15000, 0), (1647, 83, 7, 'business', 15000, 0), (1648, 83, 8, 'business', 15000, 0), (1649, 83, 9, 'business', 15000, 0), (1650, 83, 10, 'business', 15000, 0), (1651, 83, 11, 'business', 15000, 0), (1652, 83, 12, 'business', 15000, 0), (1653, 83, 13, 'business', 15000, 0), (1654, 83, 14, 'business', 15000, 0), (1655, 83, 15, 'business', 15000, 0), (1656, 83, 16, 'business', 15000, 0), (1657, 83, 17, 'business', 15000, 0), (1658, 83, 18, 'business', 15000, 0), (1659, 83, 19, 'business', 15000, 0), (1660, 83, 20, 'business', 15000, 0), (1661, 84, 1, 'business', 15000, 0), (1662, 84, 2, 'business', 15000, 0), (1663, 84, 3, 'business', 15000, 0), (1664, 84, 4, 'business', 15000, 0), (1665, 84, 5, 'business', 15000, 0), (1666, 84, 6, 'business', 15000, 0), (1667, 84, 7, 'business', 15000, 0), (1668, 84, 8, 'business', 15000, 0), (1669, 84, 9, 'business', 15000, 0), (1670, 84, 10, 'business', 15000, 0), (1671, 84, 11, 'business', 15000, 0), (1672, 84, 12, 'business', 15000, 0), (1673, 84, 13, 'business', 15000, 0), (1674, 84, 14, 'business', 15000, 0), (1675, 84, 15, 'business', 15000, 0), (1676, 84, 16, 'business', 15000, 0), (1677, 84, 17, 'business', 15000, 0), (1678, 84, 18, 'business', 15000, 0), (1679, 84, 19, 'business', 15000, 0), (1680, 84, 20, 'business', 15000, 0), (1681, 85, 1, 'business', 15000, 0), (1682, 85, 2, 'business', 15000, 0), (1683, 85, 3, 'business', 15000, 0), (1684, 85, 4, 'business', 15000, 0), (1685, 85, 5, 'business', 15000, 0), (1686, 85, 6, 'business', 15000, 0), (1687, 85, 7, 'business', 15000, 0), (1688, 85, 8, 'business', 15000, 0), (1689, 85, 9, 'business', 15000, 0), (1690, 85, 10, 'business', 15000, 0), (1691, 85, 11, 'business', 15000, 0), (1692, 85, 12, 'business', 15000, 0), (1693, 85, 13, 'business', 15000, 0), (1694, 85, 14, 'business', 15000, 0), (1695, 85, 15, 'business', 15000, 0), (1696, 85, 16, 'business', 15000, 0), (1697, 85, 17, 'business', 15000, 0), (1698, 85, 18, 'business', 15000, 0), (1699, 85, 19, 'business', 15000, 0), (1700, 85, 20, 'business', 15000, 0), (1701, 86, 1, 'business', 15000, 0), (1702, 86, 2, 'business', 15000, 0), (1703, 86, 3, 'business', 15000, 0), (1704, 86, 4, 'business', 15000, 0), (1705, 86, 5, 'business', 15000, 0), (1706, 86, 6, 'business', 15000, 0), (1707, 86, 7, 'business', 15000, 0), (1708, 86, 8, 'business', 15000, 0), (1709, 86, 9, 'business', 15000, 0), (1710, 86, 10, 'business', 15000, 0), (1711, 86, 11, 'business', 15000, 0), (1712, 86, 12, 'business', 15000, 0), (1713, 86, 13, 'business', 15000, 0), (1714, 86, 14, 'business', 15000, 0), (1715, 86, 15, 'business', 15000, 0), (1716, 86, 16, 'business', 15000, 0), (1717, 86, 17, 'business', 15000, 0), (1718, 86, 18, 'business', 15000, 0), (1719, 86, 19, 'business', 15000, 0), (1720, 86, 20, 'business', 15000, 0), (1721, 87, 1, 'business', 15000, 0), (1722, 87, 2, 'business', 15000, 0), (1723, 87, 3, 'business', 15000, 0), (1724, 87, 4, 'business', 15000, 0), (1725, 87, 5, 'business', 15000, 0), (1726, 87, 6, 'business', 15000, 0), (1727, 87, 7, 'business', 15000, 0), (1728, 87, 8, 'business', 15000, 0), (1729, 87, 9, 'business', 15000, 0), (1730, 87, 10, 'business', 15000, 0), (1731, 87, 11, 'business', 15000, 0), (1732, 87, 12, 'business', 15000, 0), (1733, 87, 13, 'business', 15000, 0), (1734, 87, 14, 'business', 15000, 0), (1735, 87, 15, 'business', 15000, 0), (1736, 87, 16, 'business', 15000, 0), (1737, 87, 17, 'business', 15000, 0), (1738, 87, 18, 'business', 15000, 0), (1739, 87, 19, 'business', 15000, 0), (1740, 87, 20, 'business', 15000, 0), (1741, 88, 1, 'business', 15000, 0), (1742, 88, 2, 'business', 15000, 0), (1743, 88, 3, 'business', 15000, 0), (1744, 88, 4, 'business', 15000, 0), (1745, 88, 5, 'business', 15000, 0), (1746, 88, 6, 'business', 15000, 0), (1747, 88, 7, 'business', 15000, 0), (1748, 88, 8, 'business', 15000, 0), (1749, 88, 9, 'business', 15000, 0), (1750, 88, 10, 'business', 15000, 0), (1751, 88, 11, 'business', 15000, 0), (1752, 88, 12, 'business', 15000, 0), (1753, 88, 13, 'business', 15000, 0), (1754, 88, 14, 'business', 15000, 0), (1755, 88, 15, 'business', 15000, 0), (1756, 88, 16, 'business', 15000, 0), (1757, 88, 17, 'business', 15000, 0), (1758, 88, 18, 'business', 15000, 0), (1759, 88, 19, 'business', 15000, 0), (1760, 88, 20, 'business', 15000, 0), (1761, 89, 1, 'business', 15000, 0), (1762, 89, 2, 'business', 15000, 0), (1763, 89, 3, 'business', 15000, 0), (1764, 89, 4, 'business', 15000, 0), (1765, 89, 5, 'business', 15000, 0), (1766, 89, 6, 'business', 15000, 0), (1767, 89, 7, 'business', 15000, 0), (1768, 89, 8, 'business', 15000, 0), (1769, 89, 9, 'business', 15000, 0), (1770, 89, 10, 'business', 15000, 0), (1771, 89, 11, 'business', 15000, 0), (1772, 89, 12, 'business', 15000, 0), (1773, 89, 13, 'business', 15000, 0), (1774, 89, 14, 'business', 15000, 0), (1775, 89, 15, 'business', 15000, 0), (1776, 89, 16, 'business', 15000, 0), (1777, 89, 17, 'business', 15000, 0), (1778, 89, 18, 'business', 15000, 0), (1779, 89, 19, 'business', 15000, 0), (1780, 89, 20, 'business', 15000, 0), (1781, 90, 1, 'business', 15000, 0), (1782, 90, 2, 'business', 15000, 0), (1783, 90, 3, 'business', 15000, 0), (1784, 90, 4, 'business', 15000, 0), (1785, 90, 5, 'business', 15000, 0), (1786, 90, 6, 'business', 15000, 0), (1787, 90, 7, 'business', 15000, 0), (1788, 90, 8, 'business', 15000, 0), (1789, 90, 9, 'business', 15000, 0), (1790, 90, 10, 'business', 15000, 0), (1791, 90, 11, 'business', 15000, 0), (1792, 90, 12, 'business', 15000, 0), (1793, 90, 13, 'business', 15000, 0), (1794, 90, 14, 'business', 15000, 0), (1795, 90, 15, 'business', 15000, 0), (1796, 90, 16, 'business', 15000, 0), (1797, 90, 17, 'business', 15000, 0), (1798, 90, 18, 'business', 15000, 0), (1799, 90, 19, 'business', 15000, 0), (1800, 90, 20, 'business', 15000, 0), (1801, 91, 1, 'business', 15000, 0), (1802, 91, 2, 'business', 15000, 0), (1803, 91, 3, 'business', 15000, 0), (1804, 91, 4, 'business', 15000, 0), (1805, 91, 5, 'business', 15000, 0), (1806, 91, 6, 'business', 15000, 0), (1807, 91, 7, 'business', 15000, 0), (1808, 91, 8, 'business', 15000, 0), (1809, 91, 9, 'business', 15000, 0), (1810, 91, 10, 'business', 15000, 0), (1811, 91, 11, 'business', 15000, 0), (1812, 91, 12, 'business', 15000, 0), (1813, 91, 13, 'business', 15000, 0), (1814, 91, 14, 'business', 15000, 0), (1815, 91, 15, 'business', 15000, 0), (1816, 91, 16, 'business', 15000, 0), (1817, 91, 17, 'business', 15000, 0), (1818, 91, 18, 'business', 15000, 0), (1819, 91, 19, 'business', 15000, 0), (1820, 91, 20, 'business', 15000, 0), (1821, 92, 1, 'business', 15000, 0), (1822, 92, 2, 'business', 15000, 0), (1823, 92, 3, 'business', 15000, 0), (1824, 92, 4, 'business', 15000, 0), (1825, 92, 5, 'business', 15000, 0), (1826, 92, 6, 'business', 15000, 0), (1827, 92, 7, 'business', 15000, 0), (1828, 92, 8, 'business', 15000, 0), (1829, 92, 9, 'business', 15000, 0), (1830, 92, 10, 'business', 15000, 0), (1831, 92, 11, 'business', 15000, 0), (1832, 92, 12, 'business', 15000, 0), (1833, 92, 13, 'business', 15000, 0), (1834, 92, 14, 'business', 15000, 0), (1835, 92, 15, 'business', 15000, 0), (1836, 92, 16, 'business', 15000, 0), (1837, 92, 17, 'business', 15000, 0), (1838, 92, 18, 'business', 15000, 0), (1839, 92, 19, 'business', 15000, 0), (1840, 92, 20, 'business', 15000, 0), (1841, 93, 1, 'business', 15000, 0), (1842, 93, 2, 'business', 15000, 0), (1843, 93, 3, 'business', 15000, 0), (1844, 93, 4, 'business', 15000, 0), (1845, 93, 5, 'business', 15000, 0), (1846, 93, 6, 'business', 15000, 0), (1847, 93, 7, 'business', 15000, 0), (1848, 93, 8, 'business', 15000, 0), (1849, 93, 9, 'business', 15000, 0), (1850, 93, 10, 'business', 15000, 0), (1851, 93, 11, 'business', 15000, 0), (1852, 93, 12, 'business', 15000, 0), (1853, 93, 13, 'business', 15000, 0), (1854, 93, 14, 'business', 15000, 0), (1855, 93, 15, 'business', 15000, 0), (1856, 93, 16, 'business', 15000, 0), (1857, 93, 17, 'business', 15000, 0), (1858, 93, 18, 'business', 15000, 0), (1859, 93, 19, 'business', 15000, 0), (1860, 93, 20, 'business', 15000, 0), (1861, 94, 1, 'business', 15000, 0), (1862, 94, 2, 'business', 15000, 0), (1863, 94, 3, 'business', 15000, 0), (1864, 94, 4, 'business', 15000, 0), (1865, 94, 5, 'business', 15000, 0), (1866, 94, 6, 'business', 15000, 0), (1867, 94, 7, 'business', 15000, 0), (1868, 94, 8, 'business', 15000, 0), (1869, 94, 9, 'business', 15000, 0), (1870, 94, 10, 'business', 15000, 0), (1871, 94, 11, 'business', 15000, 0), (1872, 94, 12, 'business', 15000, 0), (1873, 94, 13, 'business', 15000, 0), (1874, 94, 14, 'business', 15000, 0), (1875, 94, 15, 'business', 15000, 0), (1876, 94, 16, 'business', 15000, 0), (1877, 94, 17, 'business', 15000, 0), (1878, 94, 18, 'business', 15000, 0), (1879, 94, 19, 'business', 15000, 0), (1880, 94, 20, 'business', 15000, 0), (1881, 95, 1, 'business', 15000, 0), (1882, 95, 2, 'business', 15000, 0), (1883, 95, 3, 'business', 15000, 0), (1884, 95, 4, 'business', 15000, 0), (1885, 95, 5, 'business', 15000, 0), (1886, 95, 6, 'business', 15000, 0), (1887, 95, 7, 'business', 15000, 0), (1888, 95, 8, 'business', 15000, 0), (1889, 95, 9, 'business', 15000, 0), (1890, 95, 10, 'business', 15000, 0), (1891, 95, 11, 'business', 15000, 0), (1892, 95, 12, 'business', 15000, 0), (1893, 95, 13, 'business', 15000, 0), (1894, 95, 14, 'business', 15000, 0), (1895, 95, 15, 'business', 15000, 0), (1896, 95, 16, 'business', 15000, 0), (1897, 95, 17, 'business', 15000, 0), (1898, 95, 18, 'business', 15000, 0), (1899, 95, 19, 'business', 15000, 0), (1900, 95, 20, 'business', 15000, 0), (1901, 96, 1, 'business', 15000, 0), (1902, 96, 2, 'business', 15000, 0), (1903, 96, 3, 'business', 15000, 0), (1904, 96, 4, 'business', 15000, 0), (1905, 96, 5, 'business', 15000, 0), (1906, 96, 6, 'business', 15000, 0), (1907, 96, 7, 'business', 15000, 0), (1908, 96, 8, 'business', 15000, 0), (1909, 96, 9, 'business', 15000, 0), (1910, 96, 10, 'business', 15000, 0), (1911, 96, 11, 'business', 15000, 0), (1912, 96, 12, 'business', 15000, 0), (1913, 96, 13, 'business', 15000, 0), (1914, 96, 14, 'business', 15000, 0), (1915, 96, 15, 'business', 15000, 0), (1916, 96, 16, 'business', 15000, 0), (1917, 96, 17, 'business', 15000, 0), (1918, 96, 18, 'business', 15000, 0), (1919, 96, 19, 'business', 15000, 0), (1920, 96, 20, 'business', 15000, 0), (1921, 97, 1, 'business', 15000, 0), (1922, 97, 2, 'business', 15000, 0), (1923, 97, 3, 'business', 15000, 0), (1924, 97, 4, 'business', 15000, 0), (1925, 97, 5, 'business', 15000, 0), (1926, 97, 6, 'business', 15000, 0), (1927, 97, 7, 'business', 15000, 0), (1928, 97, 8, 'business', 15000, 0), (1929, 97, 9, 'business', 15000, 0), (1930, 97, 10, 'business', 15000, 0), (1931, 97, 11, 'business', 15000, 0), (1932, 97, 12, 'business', 15000, 0), (1933, 97, 13, 'business', 15000, 0), (1934, 97, 14, 'business', 15000, 0), (1935, 97, 15, 'business', 15000, 0), (1936, 97, 16, 'business', 15000, 0), (1937, 97, 17, 'business', 15000, 0), (1938, 97, 18, 'business', 15000, 0), (1939, 97, 19, 'business', 15000, 0), (1940, 97, 20, 'business', 15000, 0), (1941, 98, 1, 'business', 15000, 0), (1942, 98, 2, 'business', 15000, 0), (1943, 98, 3, 'business', 15000, 0), (1944, 98, 4, 'business', 15000, 0), (1945, 98, 5, 'business', 15000, 0), (1946, 98, 6, 'business', 15000, 0), (1947, 98, 7, 'business', 15000, 0), (1948, 98, 8, 'business', 15000, 0), (1949, 98, 9, 'business', 15000, 0), (1950, 98, 10, 'business', 15000, 0), (1951, 98, 11, 'business', 15000, 0), (1952, 98, 12, 'business', 15000, 0), (1953, 98, 13, 'business', 15000, 0), (1954, 98, 14, 'business', 15000, 0), (1955, 98, 15, 'business', 15000, 0), (1956, 98, 16, 'business', 15000, 0), (1957, 98, 17, 'business', 15000, 0), (1958, 98, 18, 'business', 15000, 0), (1959, 98, 19, 'business', 15000, 0), (1960, 98, 20, 'business', 15000, 0), (1961, 99, 1, 'business', 15000, 0), (1962, 99, 2, 'business', 15000, 0), (1963, 99, 3, 'business', 15000, 0), (1964, 99, 4, 'business', 15000, 0), (1965, 99, 5, 'business', 15000, 0), (1966, 99, 6, 'business', 15000, 0), (1967, 99, 7, 'business', 15000, 0), (1968, 99, 8, 'business', 15000, 0), (1969, 99, 9, 'business', 15000, 0), (1970, 99, 10, 'business', 15000, 0), (1971, 99, 11, 'business', 15000, 0), (1972, 99, 12, 'business', 15000, 0), (1973, 99, 13, 'business', 15000, 0), (1974, 99, 14, 'business', 15000, 0), (1975, 99, 15, 'business', 15000, 0), (1976, 99, 16, 'business', 15000, 0), (1977, 99, 17, 'business', 15000, 0), (1978, 99, 18, 'business', 15000, 0), (1979, 99, 19, 'business', 15000, 0), (1980, 99, 20, 'business', 15000, 0), (1981, 100, 1, 'business', 15000, 0), (1982, 100, 2, 'business', 15000, 0), (1983, 100, 3, 'business', 15000, 0), (1984, 100, 4, 'business', 15000, 0), (1985, 100, 5, 'business', 15000, 0), (1986, 100, 6, 'business', 15000, 0), (1987, 100, 7, 'business', 15000, 0), (1988, 100, 8, 'business', 15000, 0), (1989, 100, 9, 'business', 15000, 0), (1990, 100, 10, 'business', 15000, 0), (1991, 100, 11, 'business', 15000, 0), (1992, 100, 12, 'business', 15000, 0), (1993, 100, 13, 'business', 15000, 0), (1994, 100, 14, 'business', 15000, 0), (1995, 100, 15, 'business', 15000, 0), (1996, 100, 16, 'business', 15000, 0), (1997, 100, 17, 'business', 15000, 0), (1998, 100, 18, 'business', 15000, 0), (1999, 100, 19, 'business', 15000, 0), (2000, 100, 20, 'business', 15000, 0), (2001, 101, 1, 'business', 15000, 0), (2002, 101, 2, 'business', 15000, 0), (2003, 101, 3, 'business', 15000, 0), (2004, 101, 4, 'business', 15000, 0), (2005, 101, 5, 'business', 15000, 0), (2006, 101, 6, 'business', 15000, 0), (2007, 101, 7, 'business', 15000, 0), (2008, 101, 8, 'business', 15000, 0), (2009, 101, 9, 'business', 15000, 0), (2010, 101, 10, 'business', 15000, 0), (2011, 101, 11, 'business', 15000, 0), (2012, 101, 12, 'business', 15000, 0), (2013, 101, 13, 'business', 15000, 0), (2014, 101, 14, 'business', 15000, 0), (2015, 101, 15, 'business', 15000, 0), (2016, 101, 16, 'business', 15000, 0), (2017, 101, 17, 'business', 15000, 0), (2018, 101, 18, 'business', 15000, 0), (2019, 101, 19, 'business', 15000, 0), (2020, 101, 20, 'business', 15000, 0), (2021, 102, 1, 'business', 15000, 0), (2022, 102, 2, 'business', 15000, 0), (2023, 102, 3, 'business', 15000, 0), (2024, 102, 4, 'business', 15000, 0), (2025, 102, 5, 'business', 15000, 0), (2026, 102, 6, 'business', 15000, 0), (2027, 102, 7, 'business', 15000, 0), (2028, 102, 8, 'business', 15000, 0), (2029, 102, 9, 'business', 15000, 0), (2030, 102, 10, 'business', 15000, 0), (2031, 102, 11, 'business', 15000, 0), (2032, 102, 12, 'business', 15000, 0), (2033, 102, 13, 'business', 15000, 0), (2034, 102, 14, 'business', 15000, 0), (2035, 102, 15, 'business', 15000, 0), (2036, 102, 16, 'business', 15000, 0), (2037, 102, 17, 'business', 15000, 0), (2038, 102, 18, 'business', 15000, 0), (2039, 102, 19, 'business', 15000, 0), (2040, 102, 20, 'business', 15000, 0), (2041, 103, 1, 'business', 15000, 0), (2042, 103, 2, 'business', 15000, 0), (2043, 103, 3, 'business', 15000, 0), (2044, 103, 4, 'business', 15000, 0), (2045, 103, 5, 'business', 15000, 0), (2046, 103, 6, 'business', 15000, 0), (2047, 103, 7, 'business', 15000, 0), (2048, 103, 8, 'business', 15000, 0), (2049, 103, 9, 'business', 15000, 0), (2050, 103, 10, 'business', 15000, 0), (2051, 103, 11, 'business', 15000, 0), (2052, 103, 12, 'business', 15000, 0), (2053, 103, 13, 'business', 15000, 0), (2054, 103, 14, 'business', 15000, 0), (2055, 103, 15, 'business', 15000, 0), (2056, 103, 16, 'business', 15000, 0), (2057, 103, 17, 'business', 15000, 0), (2058, 103, 18, 'business', 15000, 0), (2059, 103, 19, 'business', 15000, 0), (2060, 103, 20, 'business', 15000, 0), (2061, 104, 1, 'business', 15000, 0), (2062, 104, 2, 'business', 15000, 0), (2063, 104, 3, 'business', 15000, 0), (2064, 104, 4, 'business', 15000, 0), (2065, 104, 5, 'business', 15000, 0), (2066, 104, 6, 'business', 15000, 0), (2067, 104, 7, 'business', 15000, 0), (2068, 104, 8, 'business', 15000, 0), (2069, 104, 9, 'business', 15000, 0), (2070, 104, 10, 'business', 15000, 0), (2071, 104, 11, 'business', 15000, 0), (2072, 104, 12, 'business', 15000, 0), (2073, 104, 13, 'business', 15000, 0), (2074, 104, 14, 'business', 15000, 0), (2075, 104, 15, 'business', 15000, 0), (2076, 104, 16, 'business', 15000, 0), (2077, 104, 17, 'business', 15000, 0), (2078, 104, 18, 'business', 15000, 0), (2079, 104, 19, 'business', 15000, 0), (2080, 104, 20, 'business', 15000, 0), (2081, 105, 1, 'business', 15000, 0), (2082, 105, 2, 'business', 15000, 0), (2083, 105, 3, 'business', 15000, 0), (2084, 105, 4, 'business', 15000, 0), (2085, 105, 5, 'business', 15000, 0), (2086, 105, 6, 'business', 15000, 0), (2087, 105, 7, 'business', 15000, 0), (2088, 105, 8, 'business', 15000, 0), (2089, 105, 9, 'business', 15000, 0), (2090, 105, 10, 'business', 15000, 0), (2091, 105, 11, 'business', 15000, 0), (2092, 105, 12, 'business', 15000, 0), (2093, 105, 13, 'business', 15000, 0), (2094, 105, 14, 'business', 15000, 0), (2095, 105, 15, 'business', 15000, 0), (2096, 105, 16, 'business', 15000, 0), (2097, 105, 17, 'business', 15000, 0), (2098, 105, 18, 'business', 15000, 0), (2099, 105, 19, 'business', 15000, 0), (2100, 105, 20, 'business', 15000, 0), (2101, 106, 1, 'business', 15000, 0), (2102, 106, 2, 'business', 15000, 0), (2103, 106, 3, 'business', 15000, 0), (2104, 106, 4, 'business', 15000, 0), (2105, 106, 5, 'business', 15000, 0), (2106, 106, 6, 'business', 15000, 0), (2107, 106, 7, 'business', 15000, 0), (2108, 106, 8, 'business', 15000, 0), (2109, 106, 9, 'business', 15000, 0), (2110, 106, 10, 'business', 15000, 0), (2111, 106, 11, 'business', 15000, 0), (2112, 106, 12, 'business', 15000, 0), (2113, 106, 13, 'business', 15000, 0), (2114, 106, 14, 'business', 15000, 0), (2115, 106, 15, 'business', 15000, 0), (2116, 106, 16, 'business', 15000, 0), (2117, 106, 17, 'business', 15000, 0), (2118, 106, 18, 'business', 15000, 0), (2119, 106, 19, 'business', 15000, 0), (2120, 106, 20, 'business', 15000, 0), (2121, 107, 1, 'business', 15000, 0), (2122, 107, 2, 'business', 15000, 0), (2123, 107, 3, 'business', 15000, 0), (2124, 107, 4, 'business', 15000, 0), (2125, 107, 5, 'business', 15000, 0), (2126, 107, 6, 'business', 15000, 0), (2127, 107, 7, 'business', 15000, 0), (2128, 107, 8, 'business', 15000, 0), (2129, 107, 9, 'business', 15000, 0), (2130, 107, 10, 'business', 15000, 0), (2131, 107, 11, 'business', 15000, 0), (2132, 107, 12, 'business', 15000, 0), (2133, 107, 13, 'business', 15000, 0), (2134, 107, 14, 'business', 15000, 0), (2135, 107, 15, 'business', 15000, 0), (2136, 107, 16, 'business', 15000, 0), (2137, 107, 17, 'business', 15000, 0), (2138, 107, 18, 'business', 15000, 0), (2139, 107, 19, 'business', 15000, 0), (2140, 107, 20, 'business', 15000, 0), (2141, 108, 1, 'business', 15000, 0), (2142, 108, 2, 'business', 15000, 0), (2143, 108, 3, 'business', 15000, 0), (2144, 108, 4, 'business', 15000, 0), (2145, 108, 5, 'business', 15000, 0), (2146, 108, 6, 'business', 15000, 0), (2147, 108, 7, 'business', 15000, 0), (2148, 108, 8, 'business', 15000, 0), (2149, 108, 9, 'business', 15000, 0), (2150, 108, 10, 'business', 15000, 0), (2151, 108, 11, 'business', 15000, 0), (2152, 108, 12, 'business', 15000, 0), (2153, 108, 13, 'business', 15000, 0), (2154, 108, 14, 'business', 15000, 0), (2155, 108, 15, 'business', 15000, 0), (2156, 108, 16, 'business', 15000, 0), (2157, 108, 17, 'business', 15000, 0), (2158, 108, 18, 'business', 15000, 0), (2159, 108, 19, 'business', 15000, 0), (2160, 108, 20, 'business', 15000, 0), (2161, 109, 1, 'business', 15000, 0), (2162, 109, 2, 'business', 15000, 0), (2163, 109, 3, 'business', 15000, 0), (2164, 109, 4, 'business', 15000, 0), (2165, 109, 5, 'business', 15000, 0), (2166, 109, 6, 'business', 15000, 0), (2167, 109, 7, 'business', 15000, 0), (2168, 109, 8, 'business', 15000, 0), (2169, 109, 9, 'business', 15000, 0), (2170, 109, 10, 'business', 15000, 0), (2171, 109, 11, 'business', 15000, 0), (2172, 109, 12, 'business', 15000, 0), (2173, 109, 13, 'business', 15000, 0), (2174, 109, 14, 'business', 15000, 0), (2175, 109, 15, 'business', 15000, 0), (2176, 109, 16, 'business', 15000, 0), (2177, 109, 17, 'business', 15000, 0), (2178, 109, 18, 'business', 15000, 0), (2179, 109, 19, 'business', 15000, 0), (2180, 109, 20, 'business', 15000, 0), (2181, 110, 1, 'business', 15000, 0), (2182, 110, 2, 'business', 15000, 0), (2183, 110, 3, 'business', 15000, 0), (2184, 110, 4, 'business', 15000, 0), (2185, 110, 5, 'business', 15000, 0), (2186, 110, 6, 'business', 15000, 0), (2187, 110, 7, 'business', 15000, 0), (2188, 110, 8, 'business', 15000, 0), (2189, 110, 9, 'business', 15000, 0), (2190, 110, 10, 'business', 15000, 0), (2191, 110, 11, 'business', 15000, 0), (2192, 110, 12, 'business', 15000, 0), (2193, 110, 13, 'business', 15000, 0), (2194, 110, 14, 'business', 15000, 0), (2195, 110, 15, 'business', 15000, 0), (2196, 110, 16, 'business', 15000, 0), (2197, 110, 17, 'business', 15000, 0), (2198, 110, 18, 'business', 15000, 0), (2199, 110, 19, 'business', 15000, 0), (2200, 110, 20, 'business', 15000, 0), (2201, 111, 1, 'business', 15000, 0), (2202, 111, 2, 'business', 15000, 0), (2203, 111, 3, 'business', 15000, 0), (2204, 111, 4, 'business', 15000, 0), (2205, 111, 5, 'business', 15000, 0), (2206, 111, 6, 'business', 15000, 0), (2207, 111, 7, 'business', 15000, 0), (2208, 111, 8, 'business', 15000, 0), (2209, 111, 9, 'business', 15000, 0), (2210, 111, 10, 'business', 15000, 0), (2211, 111, 11, 'business', 15000, 0), (2212, 111, 12, 'business', 15000, 0), (2213, 111, 13, 'business', 15000, 0), (2214, 111, 14, 'business', 15000, 0), (2215, 111, 15, 'business', 15000, 0), (2216, 111, 16, 'business', 15000, 0), (2217, 111, 17, 'business', 15000, 0), (2218, 111, 18, 'business', 15000, 0), (2219, 111, 19, 'business', 15000, 0), (2220, 111, 20, 'business', 15000, 0), (2221, 112, 1, 'business', 15000, 0), (2222, 112, 2, 'business', 15000, 0), (2223, 112, 3, 'business', 15000, 0), (2224, 112, 4, 'business', 15000, 0), (2225, 112, 5, 'business', 15000, 0), (2226, 112, 6, 'business', 15000, 0), (2227, 112, 7, 'business', 15000, 0), (2228, 112, 8, 'business', 15000, 0), (2229, 112, 9, 'business', 15000, 0), (2230, 112, 10, 'business', 15000, 0), (2231, 112, 11, 'business', 15000, 0), (2232, 112, 12, 'business', 15000, 0), (2233, 112, 13, 'business', 15000, 0), (2234, 112, 14, 'business', 15000, 0), (2235, 112, 15, 'business', 15000, 0), (2236, 112, 16, 'business', 15000, 0), (2237, 112, 17, 'business', 15000, 0), (2238, 112, 18, 'business', 15000, 0), (2239, 112, 19, 'business', 15000, 0), (2240, 112, 20, 'business', 15000, 0), (2241, 113, 1, 'business', 15000, 0), (2242, 113, 2, 'business', 15000, 0), (2243, 113, 3, 'business', 15000, 0), (2244, 113, 4, 'business', 15000, 0), (2245, 113, 5, 'business', 15000, 0), (2246, 113, 6, 'business', 15000, 0), (2247, 113, 7, 'business', 15000, 0), (2248, 113, 8, 'business', 15000, 0), (2249, 113, 9, 'business', 15000, 0), (2250, 113, 10, 'business', 15000, 0), (2251, 113, 11, 'business', 15000, 0), (2252, 113, 12, 'business', 15000, 0), (2253, 113, 13, 'business', 15000, 0), (2254, 113, 14, 'business', 15000, 0), (2255, 113, 15, 'business', 15000, 0), (2256, 113, 16, 'business', 15000, 0), (2257, 113, 17, 'business', 15000, 0), (2258, 113, 18, 'business', 15000, 0), (2259, 113, 19, 'business', 15000, 0), (2260, 113, 20, 'business', 15000, 0), (2261, 114, 1, 'business', 15000, 0), (2262, 114, 2, 'business', 15000, 0), (2263, 114, 3, 'business', 15000, 0), (2264, 114, 4, 'business', 15000, 0), (2265, 114, 5, 'business', 15000, 0), (2266, 114, 6, 'business', 15000, 0), (2267, 114, 7, 'business', 15000, 0), (2268, 114, 8, 'business', 15000, 0), (2269, 114, 9, 'business', 15000, 0), (2270, 114, 10, 'business', 15000, 0), (2271, 114, 11, 'business', 15000, 0), (2272, 114, 12, 'business', 15000, 0), (2273, 114, 13, 'business', 15000, 0), (2274, 114, 14, 'business', 15000, 0), (2275, 114, 15, 'business', 15000, 0), (2276, 114, 16, 'business', 15000, 0), (2277, 114, 17, 'business', 15000, 0), (2278, 114, 18, 'business', 15000, 0), (2279, 114, 19, 'business', 15000, 0), (2280, 114, 20, 'business', 15000, 0), (2281, 115, 1, 'business', 15000, 0), (2282, 115, 2, 'business', 15000, 0), (2283, 115, 3, 'business', 15000, 0), (2284, 115, 4, 'business', 15000, 0), (2285, 115, 5, 'business', 15000, 0), (2286, 115, 6, 'business', 15000, 0), (2287, 115, 7, 'business', 15000, 0), (2288, 115, 8, 'business', 15000, 0), (2289, 115, 9, 'business', 15000, 0), (2290, 115, 10, 'business', 15000, 0), (2291, 115, 11, 'business', 15000, 0), (2292, 115, 12, 'business', 15000, 0), (2293, 115, 13, 'business', 15000, 0), (2294, 115, 14, 'business', 15000, 0), (2295, 115, 15, 'business', 15000, 0), (2296, 115, 16, 'business', 15000, 0), (2297, 115, 17, 'business', 15000, 0), (2298, 115, 18, 'business', 15000, 0), (2299, 115, 19, 'business', 15000, 0), (2300, 115, 20, 'business', 15000, 0), (2301, 116, 1, 'business', 15000, 0), (2302, 116, 2, 'business', 15000, 0), (2303, 116, 3, 'business', 15000, 0), (2304, 116, 4, 'business', 15000, 0), (2305, 116, 5, 'business', 15000, 0), (2306, 116, 6, 'business', 15000, 0), (2307, 116, 7, 'business', 15000, 0), (2308, 116, 8, 'business', 15000, 0), (2309, 116, 9, 'business', 15000, 0), (2310, 116, 10, 'business', 15000, 0), (2311, 116, 11, 'business', 15000, 0), (2312, 116, 12, 'business', 15000, 0), (2313, 116, 13, 'business', 15000, 0), (2314, 116, 14, 'business', 15000, 0), (2315, 116, 15, 'business', 15000, 0), (2316, 116, 16, 'business', 15000, 0), (2317, 116, 17, 'business', 15000, 0), (2318, 116, 18, 'business', 15000, 0), (2319, 116, 19, 'business', 15000, 0), (2320, 116, 20, 'business', 15000, 0), (2321, 117, 1, 'business', 15000, 0), (2322, 117, 2, 'business', 15000, 0), (2323, 117, 3, 'business', 15000, 0), (2324, 117, 4, 'business', 15000, 0), (2325, 117, 5, 'business', 15000, 0), (2326, 117, 6, 'business', 15000, 0), (2327, 117, 7, 'business', 15000, 0), (2328, 117, 8, 'business', 15000, 0), (2329, 117, 9, 'business', 15000, 0), (2330, 117, 10, 'business', 15000, 0), (2331, 117, 11, 'business', 15000, 0), (2332, 117, 12, 'business', 15000, 0), (2333, 117, 13, 'business', 15000, 0), (2334, 117, 14, 'business', 15000, 0), (2335, 117, 15, 'business', 15000, 0), (2336, 117, 16, 'business', 15000, 0), (2337, 117, 17, 'business', 15000, 0), (2338, 117, 18, 'business', 15000, 0), (2339, 117, 19, 'business', 15000, 0), (2340, 117, 20, 'business', 15000, 0), (2341, 118, 1, 'business', 15000, 0), (2342, 118, 2, 'business', 15000, 0), (2343, 118, 3, 'business', 15000, 0), (2344, 118, 4, 'business', 15000, 0), (2345, 118, 5, 'business', 15000, 0), (2346, 118, 6, 'business', 15000, 0), (2347, 118, 7, 'business', 15000, 0), (2348, 118, 8, 'business', 15000, 0), (2349, 118, 9, 'business', 15000, 0), (2350, 118, 10, 'business', 15000, 0), (2351, 118, 11, 'business', 15000, 0), (2352, 118, 12, 'business', 15000, 0), (2353, 118, 13, 'business', 15000, 0), (2354, 118, 14, 'business', 15000, 0), (2355, 118, 15, 'business', 15000, 0), (2356, 118, 16, 'business', 15000, 0), (2357, 118, 17, 'business', 15000, 0), (2358, 118, 18, 'business', 15000, 0), (2359, 118, 19, 'business', 15000, 0), (2360, 118, 20, 'business', 15000, 0), (2361, 119, 1, 'business', 15000, 0), (2362, 119, 2, 'business', 15000, 0), (2363, 119, 3, 'business', 15000, 0), (2364, 119, 4, 'business', 15000, 0), (2365, 119, 5, 'business', 15000, 0), (2366, 119, 6, 'business', 15000, 0), (2367, 119, 7, 'business', 15000, 0), (2368, 119, 8, 'business', 15000, 0), (2369, 119, 9, 'business', 15000, 0), (2370, 119, 10, 'business', 15000, 0), (2371, 119, 11, 'business', 15000, 0), (2372, 119, 12, 'business', 15000, 0), (2373, 119, 13, 'business', 15000, 0), (2374, 119, 14, 'business', 15000, 0), (2375, 119, 15, 'business', 15000, 0), (2376, 119, 16, 'business', 15000, 0), (2377, 119, 17, 'business', 15000, 0), (2378, 119, 18, 'business', 15000, 0), (2379, 119, 19, 'business', 15000, 0), (2380, 119, 20, 'business', 15000, 0), (2381, 120, 1, 'business', 15000, 0), (2382, 120, 2, 'business', 15000, 0), (2383, 120, 3, 'business', 15000, 0), (2384, 120, 4, 'business', 15000, 0), (2385, 120, 5, 'business', 15000, 0), (2386, 120, 6, 'business', 15000, 0), (2387, 120, 7, 'business', 15000, 0), (2388, 120, 8, 'business', 15000, 0), (2389, 120, 9, 'business', 15000, 0), (2390, 120, 10, 'business', 15000, 0), (2391, 120, 11, 'business', 15000, 0), (2392, 120, 12, 'business', 15000, 0), (2393, 120, 13, 'business', 15000, 0), (2394, 120, 14, 'business', 15000, 0), (2395, 120, 15, 'business', 15000, 0), (2396, 120, 16, 'business', 15000, 0), (2397, 120, 17, 'business', 15000, 0), (2398, 120, 18, 'business', 15000, 0), (2399, 120, 19, 'business', 15000, 0), (2400, 120, 20, 'business', 15000, 0), (2401, 121, 1, 'business', 15000, 0), (2402, 121, 2, 'business', 15000, 0), (2403, 121, 3, 'business', 15000, 0), (2404, 121, 4, 'business', 15000, 0), (2405, 121, 5, 'business', 15000, 0), (2406, 121, 6, 'business', 15000, 0), (2407, 121, 7, 'business', 15000, 0), (2408, 121, 8, 'business', 15000, 0), (2409, 121, 9, 'business', 15000, 0), (2410, 121, 10, 'business', 15000, 0), (2411, 121, 11, 'business', 15000, 0), (2412, 121, 12, 'business', 15000, 0), (2413, 121, 13, 'business', 15000, 0), (2414, 121, 14, 'business', 15000, 0), (2415, 121, 15, 'business', 15000, 0), (2416, 121, 16, 'business', 15000, 0), (2417, 121, 17, 'business', 15000, 0), (2418, 121, 18, 'business', 15000, 0), (2419, 121, 19, 'business', 15000, 0), (2420, 121, 20, 'business', 15000, 0), (2421, 122, 1, 'business', 15000, 0), (2422, 122, 2, 'business', 15000, 0), (2423, 122, 3, 'business', 15000, 0), (2424, 122, 4, 'business', 15000, 0), (2425, 122, 5, 'business', 15000, 0), (2426, 122, 6, 'business', 15000, 0), (2427, 122, 7, 'business', 15000, 0), (2428, 122, 8, 'business', 15000, 0), (2429, 122, 9, 'business', 15000, 0), (2430, 122, 10, 'business', 15000, 0), (2431, 122, 11, 'business', 15000, 0), (2432, 122, 12, 'business', 15000, 0), (2433, 122, 13, 'business', 15000, 0), (2434, 122, 14, 'business', 15000, 0), (2435, 122, 15, 'business', 15000, 0), (2436, 122, 16, 'business', 15000, 0), (2437, 122, 17, 'business', 15000, 0), (2438, 122, 18, 'business', 15000, 0), (2439, 122, 19, 'business', 15000, 0), (2440, 122, 20, 'business', 15000, 0), (2441, 123, 1, 'business', 15000, 0), (2442, 123, 2, 'business', 15000, 0), (2443, 123, 3, 'business', 15000, 0), (2444, 123, 4, 'business', 15000, 0), (2445, 123, 5, 'business', 15000, 0), (2446, 123, 6, 'business', 15000, 0), (2447, 123, 7, 'business', 15000, 0), (2448, 123, 8, 'business', 15000, 0), (2449, 123, 9, 'business', 15000, 0), (2450, 123, 10, 'business', 15000, 0), (2451, 123, 11, 'business', 15000, 0), (2452, 123, 12, 'business', 15000, 0), (2453, 123, 13, 'business', 15000, 0), (2454, 123, 14, 'business', 15000, 0), (2455, 123, 15, 'business', 15000, 0), (2456, 123, 16, 'business', 15000, 0), (2457, 123, 17, 'business', 15000, 0), (2458, 123, 18, 'business', 15000, 0), (2459, 123, 19, 'business', 15000, 0), (2460, 123, 20, 'business', 15000, 0), (2461, 124, 1, 'business', 15000, 0), (2462, 124, 2, 'business', 15000, 0), (2463, 124, 3, 'business', 15000, 0), (2464, 124, 4, 'business', 15000, 0), (2465, 124, 5, 'business', 15000, 0), (2466, 124, 6, 'business', 15000, 0), (2467, 124, 7, 'business', 15000, 0), (2468, 124, 8, 'business', 15000, 0), (2469, 124, 9, 'business', 15000, 0), (2470, 124, 10, 'business', 15000, 0), (2471, 124, 11, 'business', 15000, 0), (2472, 124, 12, 'business', 15000, 0), (2473, 124, 13, 'business', 15000, 0), (2474, 124, 14, 'business', 15000, 0), (2475, 124, 15, 'business', 15000, 0), (2476, 124, 16, 'business', 15000, 0), (2477, 124, 17, 'business', 15000, 0), (2478, 124, 18, 'business', 15000, 0), (2479, 124, 19, 'business', 15000, 0), (2480, 124, 20, 'business', 15000, 0), (2481, 125, 1, 'business', 15000, 0), (2482, 125, 2, 'business', 15000, 0), (2483, 125, 3, 'business', 15000, 0), (2484, 125, 4, 'business', 15000, 0), (2485, 125, 5, 'business', 15000, 0), (2486, 125, 6, 'business', 15000, 0), (2487, 125, 7, 'business', 15000, 0), (2488, 125, 8, 'business', 15000, 0), (2489, 125, 9, 'business', 15000, 0), (2490, 125, 10, 'business', 15000, 0), (2491, 125, 11, 'business', 15000, 0), (2492, 125, 12, 'business', 15000, 0), (2493, 125, 13, 'business', 15000, 0), (2494, 125, 14, 'business', 15000, 0), (2495, 125, 15, 'business', 15000, 0), (2496, 125, 16, 'business', 15000, 0), (2497, 125, 17, 'business', 15000, 0), (2498, 125, 18, 'business', 15000, 0), (2499, 125, 19, 'business', 15000, 0), (2500, 125, 20, 'business', 15000, 0), (2501, 126, 1, 'business', 15000, 0), (2502, 126, 2, 'business', 15000, 0), (2503, 126, 3, 'business', 15000, 0), (2504, 126, 4, 'business', 15000, 0), (2505, 126, 5, 'business', 15000, 0), (2506, 126, 6, 'business', 15000, 0), (2507, 126, 7, 'business', 15000, 0), (2508, 126, 8, 'business', 15000, 0), (2509, 126, 9, 'business', 15000, 0), (2510, 126, 10, 'business', 15000, 0), (2511, 126, 11, 'business', 15000, 0), (2512, 126, 12, 'business', 15000, 0), (2513, 126, 13, 'business', 15000, 0), (2514, 126, 14, 'business', 15000, 0), (2515, 126, 15, 'business', 15000, 0), (2516, 126, 16, 'business', 15000, 0), (2517, 126, 17, 'business', 15000, 0), (2518, 126, 18, 'business', 15000, 0), (2519, 126, 19, 'business', 15000, 0), (2520, 126, 20, 'business', 15000, 0), (2521, 127, 1, 'business', 15000, 0), (2522, 127, 2, 'business', 15000, 0), (2523, 127, 3, 'business', 15000, 0), (2524, 127, 4, 'business', 15000, 0), (2525, 127, 5, 'business', 15000, 0), (2526, 127, 6, 'business', 15000, 0), (2527, 127, 7, 'business', 15000, 0), (2528, 127, 8, 'business', 15000, 0), (2529, 127, 9, 'business', 15000, 0), (2530, 127, 10, 'business', 15000, 0), (2531, 127, 11, 'business', 15000, 0), (2532, 127, 12, 'business', 15000, 0), (2533, 127, 13, 'business', 15000, 0), (2534, 127, 14, 'business', 15000, 0), (2535, 127, 15, 'business', 15000, 0), (2536, 127, 16, 'business', 15000, 0), (2537, 127, 17, 'business', 15000, 0), (2538, 127, 18, 'business', 15000, 0), (2539, 127, 19, 'business', 15000, 0), (2540, 127, 20, 'business', 15000, 0), (2541, 128, 1, 'business', 15000, 0), (2542, 128, 2, 'business', 15000, 0), (2543, 128, 3, 'business', 15000, 0), (2544, 128, 4, 'business', 15000, 0), (2545, 128, 5, 'business', 15000, 0), (2546, 128, 6, 'business', 15000, 0), (2547, 128, 7, 'business', 15000, 0), (2548, 128, 8, 'business', 15000, 0), (2549, 128, 9, 'business', 15000, 0), (2550, 128, 10, 'business', 15000, 0), (2551, 128, 11, 'business', 15000, 0), (2552, 128, 12, 'business', 15000, 0), (2553, 128, 13, 'business', 15000, 0), (2554, 128, 14, 'business', 15000, 0), (2555, 128, 15, 'business', 15000, 0), (2556, 128, 16, 'business', 15000, 0), (2557, 128, 17, 'business', 15000, 0), (2558, 128, 18, 'business', 15000, 0), (2559, 128, 19, 'business', 15000, 0), (2560, 128, 20, 'business', 15000, 0), (2561, 129, 1, 'business', 15000, 0), (2562, 129, 2, 'business', 15000, 0), (2563, 129, 3, 'business', 15000, 0), (2564, 129, 4, 'business', 15000, 0), (2565, 129, 5, 'business', 15000, 0), (2566, 129, 6, 'business', 15000, 0), (2567, 129, 7, 'business', 15000, 0), (2568, 129, 8, 'business', 15000, 0), (2569, 129, 9, 'business', 15000, 0), (2570, 129, 10, 'business', 15000, 0), (2571, 129, 11, 'business', 15000, 0), (2572, 129, 12, 'business', 15000, 0), (2573, 129, 13, 'business', 15000, 0), (2574, 129, 14, 'business', 15000, 0), (2575, 129, 15, 'business', 15000, 0), (2576, 129, 16, 'business', 15000, 0), (2577, 129, 17, 'business', 15000, 0), (2578, 129, 18, 'business', 15000, 0), (2579, 129, 19, 'business', 15000, 0), (2580, 129, 20, 'business', 15000, 0), (2581, 130, 1, 'business', 15000, 0), (2582, 130, 2, 'business', 15000, 0), (2583, 130, 3, 'business', 15000, 0), (2584, 130, 4, 'business', 15000, 0), (2585, 130, 5, 'business', 15000, 0), (2586, 130, 6, 'business', 15000, 0), (2587, 130, 7, 'business', 15000, 0), (2588, 130, 8, 'business', 15000, 0), (2589, 130, 9, 'business', 15000, 0), (2590, 130, 10, 'business', 15000, 0), (2591, 130, 11, 'business', 15000, 0), (2592, 130, 12, 'business', 15000, 0), (2593, 130, 13, 'business', 15000, 0), (2594, 130, 14, 'business', 15000, 0), (2595, 130, 15, 'business', 15000, 0), (2596, 130, 16, 'business', 15000, 0), (2597, 130, 17, 'business', 15000, 0), (2598, 130, 18, 'business', 15000, 0), (2599, 130, 19, 'business', 15000, 0), (2600, 130, 20, 'business', 15000, 0), (2601, 131, 1, 'business', 15000, 0), (2602, 131, 2, 'business', 15000, 0), (2603, 131, 3, 'business', 15000, 0), (2604, 131, 4, 'business', 15000, 0), (2605, 131, 5, 'business', 15000, 0), (2606, 131, 6, 'business', 15000, 0), (2607, 131, 7, 'business', 15000, 0), (2608, 131, 8, 'business', 15000, 0), (2609, 131, 9, 'business', 15000, 0), (2610, 131, 10, 'business', 15000, 0), (2611, 131, 11, 'business', 15000, 0), (2612, 131, 12, 'business', 15000, 0), (2613, 131, 13, 'business', 15000, 0), (2614, 131, 14, 'business', 15000, 0), (2615, 131, 15, 'business', 15000, 0), (2616, 131, 16, 'business', 15000, 0), (2617, 131, 17, 'business', 15000, 0), (2618, 131, 18, 'business', 15000, 0), (2619, 131, 19, 'business', 15000, 0), (2620, 131, 20, 'business', 15000, 0), (2621, 132, 1, 'business', 15000, 0), (2622, 132, 2, 'business', 15000, 0), (2623, 132, 3, 'business', 15000, 0), (2624, 132, 4, 'business', 15000, 0), (2625, 132, 5, 'business', 15000, 0), (2626, 132, 6, 'business', 15000, 0), (2627, 132, 7, 'business', 15000, 0), (2628, 132, 8, 'business', 15000, 0), (2629, 132, 9, 'business', 15000, 0), (2630, 132, 10, 'business', 15000, 0), (2631, 132, 11, 'business', 15000, 0), (2632, 132, 12, 'business', 15000, 0), (2633, 132, 13, 'business', 15000, 0), (2634, 132, 14, 'business', 15000, 0), (2635, 132, 15, 'business', 15000, 0), (2636, 132, 16, 'business', 15000, 0), (2637, 132, 17, 'business', 15000, 0), (2638, 132, 18, 'business', 15000, 0), (2639, 132, 19, 'business', 15000, 0), (2640, 132, 20, 'business', 15000, 0), (2641, 133, 1, 'business', 15000, 0), (2642, 133, 2, 'business', 15000, 0), (2643, 133, 3, 'business', 15000, 0), (2644, 133, 4, 'business', 15000, 0), (2645, 133, 5, 'business', 15000, 0), (2646, 133, 6, 'business', 15000, 0), (2647, 133, 7, 'business', 15000, 0), (2648, 133, 8, 'business', 15000, 0), (2649, 133, 9, 'business', 15000, 0), (2650, 133, 10, 'business', 15000, 0), (2651, 133, 11, 'business', 15000, 0), (2652, 133, 12, 'business', 15000, 0), (2653, 133, 13, 'business', 15000, 0), (2654, 133, 14, 'business', 15000, 0), (2655, 133, 15, 'business', 15000, 0), (2656, 133, 16, 'business', 15000, 0), (2657, 133, 17, 'business', 15000, 0), (2658, 133, 18, 'business', 15000, 0), (2659, 133, 19, 'business', 15000, 0), (2660, 133, 20, 'business', 15000, 0), (2661, 134, 1, 'business', 15000, 0), (2662, 134, 2, 'business', 15000, 0), (2663, 134, 3, 'business', 15000, 0), (2664, 134, 4, 'business', 15000, 0), (2665, 134, 5, 'business', 15000, 0), (2666, 134, 6, 'business', 15000, 0), (2667, 134, 7, 'business', 15000, 0), (2668, 134, 8, 'business', 15000, 0), (2669, 134, 9, 'business', 15000, 0), (2670, 134, 10, 'business', 15000, 0), (2671, 134, 11, 'business', 15000, 0), (2672, 134, 12, 'business', 15000, 0), (2673, 134, 13, 'business', 15000, 0), (2674, 134, 14, 'business', 15000, 0), (2675, 134, 15, 'business', 15000, 0), (2676, 134, 16, 'business', 15000, 0), (2677, 134, 17, 'business', 15000, 0), (2678, 134, 18, 'business', 15000, 0), (2679, 134, 19, 'business', 15000, 0), (2680, 134, 20, 'business', 15000, 0), (2681, 135, 1, 'business', 15000, 0), (2682, 135, 2, 'business', 15000, 0), (2683, 135, 3, 'business', 15000, 0), (2684, 135, 4, 'business', 15000, 0), (2685, 135, 5, 'business', 15000, 0), (2686, 135, 6, 'business', 15000, 0), (2687, 135, 7, 'business', 15000, 0), (2688, 135, 8, 'business', 15000, 0), (2689, 135, 9, 'business', 15000, 0), (2690, 135, 10, 'business', 15000, 0), (2691, 135, 11, 'business', 15000, 0), (2692, 135, 12, 'business', 15000, 0), (2693, 135, 13, 'business', 15000, 0), (2694, 135, 14, 'business', 15000, 0), (2695, 135, 15, 'business', 15000, 0), (2696, 135, 16, 'business', 15000, 0), (2697, 135, 17, 'business', 15000, 0), (2698, 135, 18, 'business', 15000, 0), (2699, 135, 19, 'business', 15000, 0), (2700, 135, 20, 'business', 15000, 0), (2701, 136, 1, 'business', 15000, 0), (2702, 136, 2, 'business', 15000, 0), (2703, 136, 3, 'business', 15000, 0), (2704, 136, 4, 'business', 15000, 0), (2705, 136, 5, 'business', 15000, 0), (2706, 136, 6, 'business', 15000, 0), (2707, 136, 7, 'business', 15000, 0), (2708, 136, 8, 'business', 15000, 0), (2709, 136, 9, 'business', 15000, 0), (2710, 136, 10, 'business', 15000, 0), (2711, 136, 11, 'business', 15000, 0), (2712, 136, 12, 'business', 15000, 0), (2713, 136, 13, 'business', 15000, 0), (2714, 136, 14, 'business', 15000, 0), (2715, 136, 15, 'business', 15000, 0), (2716, 136, 16, 'business', 15000, 0), (2717, 136, 17, 'business', 15000, 0), (2718, 136, 18, 'business', 15000, 0), (2719, 136, 19, 'business', 15000, 0), (2720, 136, 20, 'business', 15000, 0), (2721, 137, 1, 'business', 15000, 0), (2722, 137, 2, 'business', 15000, 0), (2723, 137, 3, 'business', 15000, 0), (2724, 137, 4, 'business', 15000, 0), (2725, 137, 5, 'business', 15000, 0), (2726, 137, 6, 'business', 15000, 0), (2727, 137, 7, 'business', 15000, 0), (2728, 137, 8, 'business', 15000, 0), (2729, 137, 9, 'business', 15000, 0), (2730, 137, 10, 'business', 15000, 0), (2731, 137, 11, 'business', 15000, 0), (2732, 137, 12, 'business', 15000, 0), (2733, 137, 13, 'business', 15000, 0), (2734, 137, 14, 'business', 15000, 0), (2735, 137, 15, 'business', 15000, 0), (2736, 137, 16, 'business', 15000, 0), (2737, 137, 17, 'business', 15000, 0), (2738, 137, 18, 'business', 15000, 0), (2739, 137, 19, 'business', 15000, 0), (2740, 137, 20, 'business', 15000, 0), (2741, 138, 1, 'business', 15000, 0), (2742, 138, 2, 'business', 15000, 0), (2743, 138, 3, 'business', 15000, 0), (2744, 138, 4, 'business', 15000, 0), (2745, 138, 5, 'business', 15000, 0), (2746, 138, 6, 'business', 15000, 0), (2747, 138, 7, 'business', 15000, 0), (2748, 138, 8, 'business', 15000, 0), (2749, 138, 9, 'business', 15000, 0), (2750, 138, 10, 'business', 15000, 0), (2751, 138, 11, 'business', 15000, 0), (2752, 138, 12, 'business', 15000, 0), (2753, 138, 13, 'business', 15000, 0), (2754, 138, 14, 'business', 15000, 0), (2755, 138, 15, 'business', 15000, 0), (2756, 138, 16, 'business', 15000, 0), (2757, 138, 17, 'business', 15000, 0), (2758, 138, 18, 'business', 15000, 0), (2759, 138, 19, 'business', 15000, 0), (2760, 138, 20, 'business', 15000, 0), (2761, 139, 1, 'business', 15000, 0), (2762, 139, 2, 'business', 15000, 0), (2763, 139, 3, 'business', 15000, 0), (2764, 139, 4, 'business', 15000, 0), (2765, 139, 5, 'business', 15000, 0), (2766, 139, 6, 'business', 15000, 0), (2767, 139, 7, 'business', 15000, 0), (2768, 139, 8, 'business', 15000, 0), (2769, 139, 9, 'business', 15000, 0), (2770, 139, 10, 'business', 15000, 0), (2771, 139, 11, 'business', 15000, 0), (2772, 139, 12, 'business', 15000, 0), (2773, 139, 13, 'business', 15000, 0), (2774, 139, 14, 'business', 15000, 0), (2775, 139, 15, 'business', 15000, 0), (2776, 139, 16, 'business', 15000, 0), (2777, 139, 17, 'business', 15000, 0), (2778, 139, 18, 'business', 15000, 0), (2779, 139, 19, 'business', 15000, 0), (2780, 139, 20, 'business', 15000, 0), (2781, 140, 1, 'business', 15000, 0), (2782, 140, 2, 'business', 15000, 0), (2783, 140, 3, 'business', 15000, 0), (2784, 140, 4, 'business', 15000, 0), (2785, 140, 5, 'business', 15000, 0), (2786, 140, 6, 'business', 15000, 0), (2787, 140, 7, 'business', 15000, 0), (2788, 140, 8, 'business', 15000, 0), (2789, 140, 9, 'business', 15000, 0), (2790, 140, 10, 'business', 15000, 0), (2791, 140, 11, 'business', 15000, 0), (2792, 140, 12, 'business', 15000, 0), (2793, 140, 13, 'business', 15000, 0), (2794, 140, 14, 'business', 15000, 0), (2795, 140, 15, 'business', 15000, 0), (2796, 140, 16, 'business', 15000, 0), (2797, 140, 17, 'business', 15000, 0), (2798, 140, 18, 'business', 15000, 0), (2799, 140, 19, 'business', 15000, 0), (2800, 140, 20, 'business', 15000, 0), (2801, 141, 1, 'business', 15000, 0), (2802, 141, 2, 'business', 15000, 0), (2803, 141, 3, 'business', 15000, 0), (2804, 141, 4, 'business', 15000, 0), (2805, 141, 5, 'business', 15000, 0), (2806, 141, 6, 'business', 15000, 0), (2807, 141, 7, 'business', 15000, 0), (2808, 141, 8, 'business', 15000, 0), (2809, 141, 9, 'business', 15000, 0), (2810, 141, 10, 'business', 15000, 0), (2811, 141, 11, 'business', 15000, 0), (2812, 141, 12, 'business', 15000, 0), (2813, 141, 13, 'business', 15000, 0), (2814, 141, 14, 'business', 15000, 0), (2815, 141, 15, 'business', 15000, 0), (2816, 141, 16, 'business', 15000, 0), (2817, 141, 17, 'business', 15000, 0), (2818, 141, 18, 'business', 15000, 0), (2819, 141, 19, 'business', 15000, 0), (2820, 141, 20, 'business', 15000, 0); INSERT INTO `seat` (`id`, `flight_id`, `number`, `class`, `price`, `sell`) VALUES (2821, 142, 1, 'business', 15000, 0), (2822, 142, 2, 'business', 15000, 0), (2823, 142, 3, 'business', 15000, 0), (2824, 142, 4, 'business', 15000, 0), (2825, 142, 5, 'business', 15000, 0), (2826, 142, 6, 'business', 15000, 0), (2827, 142, 7, 'business', 15000, 0), (2828, 142, 8, 'business', 15000, 0), (2829, 142, 9, 'business', 15000, 0), (2830, 142, 10, 'business', 15000, 0), (2831, 142, 11, 'business', 15000, 0), (2832, 142, 12, 'business', 15000, 0), (2833, 142, 13, 'business', 15000, 0), (2834, 142, 14, 'business', 15000, 0), (2835, 142, 15, 'business', 15000, 0), (2836, 142, 16, 'business', 15000, 0), (2837, 142, 17, 'business', 15000, 0), (2838, 142, 18, 'business', 15000, 0), (2839, 142, 19, 'business', 15000, 0), (2840, 142, 20, 'business', 15000, 0), (2841, 143, 1, 'business', 15000, 0), (2842, 143, 2, 'business', 15000, 0), (2843, 143, 3, 'business', 15000, 0), (2844, 143, 4, 'business', 15000, 0), (2845, 143, 5, 'business', 15000, 0), (2846, 143, 6, 'business', 15000, 0), (2847, 143, 7, 'business', 15000, 0), (2848, 143, 8, 'business', 15000, 0), (2849, 143, 9, 'business', 15000, 0), (2850, 143, 10, 'business', 15000, 0), (2851, 143, 11, 'business', 15000, 0), (2852, 143, 12, 'business', 15000, 0), (2853, 143, 13, 'business', 15000, 0), (2854, 143, 14, 'business', 15000, 0), (2855, 143, 15, 'business', 15000, 0), (2856, 143, 16, 'business', 15000, 0), (2857, 143, 17, 'business', 15000, 0), (2858, 143, 18, 'business', 15000, 0), (2859, 143, 19, 'business', 15000, 0), (2860, 143, 20, 'business', 15000, 0), (2861, 144, 1, 'business', 15000, 0), (2862, 144, 2, 'business', 15000, 0), (2863, 144, 3, 'business', 15000, 0), (2864, 144, 4, 'business', 15000, 0), (2865, 144, 5, 'business', 15000, 0), (2866, 144, 6, 'business', 15000, 0), (2867, 144, 7, 'business', 15000, 0), (2868, 144, 8, 'business', 15000, 0), (2869, 144, 9, 'business', 15000, 0), (2870, 144, 10, 'business', 15000, 0), (2871, 144, 11, 'business', 15000, 0), (2872, 144, 12, 'business', 15000, 0), (2873, 144, 13, 'business', 15000, 0), (2874, 144, 14, 'business', 15000, 0), (2875, 144, 15, 'business', 15000, 0), (2876, 144, 16, 'business', 15000, 0), (2877, 144, 17, 'business', 15000, 0), (2878, 144, 18, 'business', 15000, 0), (2879, 144, 19, 'business', 15000, 0), (2880, 144, 20, 'business', 15000, 0), (2881, 145, 1, 'business', 15000, 0), (2882, 145, 2, 'business', 15000, 0), (2883, 145, 3, 'business', 15000, 0), (2884, 145, 4, 'business', 15000, 0), (2885, 145, 5, 'business', 15000, 0), (2886, 145, 6, 'business', 15000, 0), (2887, 145, 7, 'business', 15000, 0), (2888, 145, 8, 'business', 15000, 0), (2889, 145, 9, 'business', 15000, 0), (2890, 145, 10, 'business', 15000, 0), (2891, 145, 11, 'business', 15000, 0), (2892, 145, 12, 'business', 15000, 0), (2893, 145, 13, 'business', 15000, 0), (2894, 145, 14, 'business', 15000, 0), (2895, 145, 15, 'business', 15000, 0), (2896, 145, 16, 'business', 15000, 0), (2897, 145, 17, 'business', 15000, 0), (2898, 145, 18, 'business', 15000, 0), (2899, 145, 19, 'business', 15000, 0), (2900, 145, 20, 'business', 15000, 0), (2901, 146, 1, 'business', 15000, 0), (2902, 146, 2, 'business', 15000, 0), (2903, 146, 3, 'business', 15000, 0), (2904, 146, 4, 'business', 15000, 0), (2905, 146, 5, 'business', 15000, 0), (2906, 146, 6, 'business', 15000, 0), (2907, 146, 7, 'business', 15000, 0), (2908, 146, 8, 'business', 15000, 0), (2909, 146, 9, 'business', 15000, 0), (2910, 146, 10, 'business', 15000, 0), (2911, 146, 11, 'business', 15000, 0), (2912, 146, 12, 'business', 15000, 0), (2913, 146, 13, 'business', 15000, 0), (2914, 146, 14, 'business', 15000, 0), (2915, 146, 15, 'business', 15000, 0), (2916, 146, 16, 'business', 15000, 0), (2917, 146, 17, 'business', 15000, 0), (2918, 146, 18, 'business', 15000, 0), (2919, 146, 19, 'business', 15000, 0), (2920, 146, 20, 'business', 15000, 0), (2921, 147, 1, 'business', 15000, 0), (2922, 147, 2, 'business', 15000, 0), (2923, 147, 3, 'business', 15000, 0), (2924, 147, 4, 'business', 15000, 0), (2925, 147, 5, 'business', 15000, 0), (2926, 147, 6, 'business', 15000, 0), (2927, 147, 7, 'business', 15000, 0), (2928, 147, 8, 'business', 15000, 0), (2929, 147, 9, 'business', 15000, 0), (2930, 147, 10, 'business', 15000, 0), (2931, 147, 11, 'business', 15000, 0), (2932, 147, 12, 'business', 15000, 0), (2933, 147, 13, 'business', 15000, 0), (2934, 147, 14, 'business', 15000, 0), (2935, 147, 15, 'business', 15000, 0), (2936, 147, 16, 'business', 15000, 0), (2937, 147, 17, 'business', 15000, 0), (2938, 147, 18, 'business', 15000, 0), (2939, 147, 19, 'business', 15000, 0), (2940, 147, 20, 'business', 15000, 0), (2941, 148, 1, 'business', 15000, 0), (2942, 148, 2, 'business', 15000, 0), (2943, 148, 3, 'business', 15000, 0), (2944, 148, 4, 'business', 15000, 0), (2945, 148, 5, 'business', 15000, 0), (2946, 148, 6, 'business', 15000, 0), (2947, 148, 7, 'business', 15000, 0), (2948, 148, 8, 'business', 15000, 0), (2949, 148, 9, 'business', 15000, 0), (2950, 148, 10, 'business', 15000, 0), (2951, 148, 11, 'business', 15000, 0), (2952, 148, 12, 'business', 15000, 0), (2953, 148, 13, 'business', 15000, 0), (2954, 148, 14, 'business', 15000, 0), (2955, 148, 15, 'business', 15000, 0), (2956, 148, 16, 'business', 15000, 0), (2957, 148, 17, 'business', 15000, 0), (2958, 148, 18, 'business', 15000, 0), (2959, 148, 19, 'business', 15000, 0), (2960, 148, 20, 'business', 15000, 0), (2961, 149, 1, 'business', 15000, 0), (2962, 149, 2, 'business', 15000, 0), (2963, 149, 3, 'business', 15000, 0), (2964, 149, 4, 'business', 15000, 0), (2965, 149, 5, 'business', 15000, 0), (2966, 149, 6, 'business', 15000, 0), (2967, 149, 7, 'business', 15000, 0), (2968, 149, 8, 'business', 15000, 0), (2969, 149, 9, 'business', 15000, 0), (2970, 149, 10, 'business', 15000, 0), (2971, 149, 11, 'business', 15000, 0), (2972, 149, 12, 'business', 15000, 0), (2973, 149, 13, 'business', 15000, 0), (2974, 149, 14, 'business', 15000, 0), (2975, 149, 15, 'business', 15000, 0), (2976, 149, 16, 'business', 15000, 0), (2977, 149, 17, 'business', 15000, 0), (2978, 149, 18, 'business', 15000, 0), (2979, 149, 19, 'business', 15000, 0), (2980, 149, 20, 'business', 15000, 0), (2981, 150, 1, 'business', 15000, 0), (2982, 150, 2, 'business', 15000, 0), (2983, 150, 3, 'business', 15000, 0), (2984, 150, 4, 'business', 15000, 0), (2985, 150, 5, 'business', 15000, 0), (2986, 150, 6, 'business', 15000, 0), (2987, 150, 7, 'business', 15000, 0), (2988, 150, 8, 'business', 15000, 0), (2989, 150, 9, 'business', 15000, 0), (2990, 150, 10, 'business', 15000, 0), (2991, 150, 11, 'business', 15000, 0), (2992, 150, 12, 'business', 15000, 0), (2993, 150, 13, 'business', 15000, 0), (2994, 150, 14, 'business', 15000, 0), (2995, 150, 15, 'business', 15000, 0), (2996, 150, 16, 'business', 15000, 0), (2997, 150, 17, 'business', 15000, 0), (2998, 150, 18, 'business', 15000, 0), (2999, 150, 19, 'business', 15000, 0), (3000, 150, 20, 'business', 15000, 0), (3001, 151, 1, 'business', 15000, 0), (3002, 151, 2, 'business', 15000, 0), (3003, 151, 3, 'business', 15000, 0), (3004, 151, 4, 'business', 15000, 0), (3005, 151, 5, 'business', 15000, 0), (3006, 151, 6, 'business', 15000, 0), (3007, 151, 7, 'business', 15000, 0), (3008, 151, 8, 'business', 15000, 0), (3009, 151, 9, 'business', 15000, 0), (3010, 151, 10, 'business', 15000, 0), (3011, 151, 11, 'business', 15000, 0), (3012, 151, 12, 'business', 15000, 0), (3013, 151, 13, 'business', 15000, 0), (3014, 151, 14, 'business', 15000, 0), (3015, 151, 15, 'business', 15000, 0), (3016, 151, 16, 'business', 15000, 0), (3017, 151, 17, 'business', 15000, 0), (3018, 151, 18, 'business', 15000, 0), (3019, 151, 19, 'business', 15000, 0), (3020, 151, 20, 'business', 15000, 0), (3021, 152, 1, 'business', 15000, 0), (3022, 152, 2, 'business', 15000, 0), (3023, 152, 3, 'business', 15000, 0), (3024, 152, 4, 'business', 15000, 0), (3025, 152, 5, 'business', 15000, 0), (3026, 152, 6, 'business', 15000, 0), (3027, 152, 7, 'business', 15000, 0), (3028, 152, 8, 'business', 15000, 0), (3029, 152, 9, 'business', 15000, 0), (3030, 152, 10, 'business', 15000, 0), (3031, 152, 11, 'business', 15000, 0), (3032, 152, 12, 'business', 15000, 0), (3033, 152, 13, 'business', 15000, 0), (3034, 152, 14, 'business', 15000, 0), (3035, 152, 15, 'business', 15000, 0), (3036, 152, 16, 'business', 15000, 0), (3037, 152, 17, 'business', 15000, 0), (3038, 152, 18, 'business', 15000, 0), (3039, 152, 19, 'business', 15000, 0), (3040, 152, 20, 'business', 15000, 0), (3041, 153, 1, 'business', 15000, 0), (3042, 153, 2, 'business', 15000, 0), (3043, 153, 3, 'business', 15000, 0), (3044, 153, 4, 'business', 15000, 0), (3045, 153, 5, 'business', 15000, 0), (3046, 153, 6, 'business', 15000, 0), (3047, 153, 7, 'business', 15000, 0), (3048, 153, 8, 'business', 15000, 0), (3049, 153, 9, 'business', 15000, 0), (3050, 153, 10, 'business', 15000, 0), (3051, 153, 11, 'business', 15000, 0), (3052, 153, 12, 'business', 15000, 0), (3053, 153, 13, 'business', 15000, 0), (3054, 153, 14, 'business', 15000, 0), (3055, 153, 15, 'business', 15000, 0), (3056, 153, 16, 'business', 15000, 0), (3057, 153, 17, 'business', 15000, 0), (3058, 153, 18, 'business', 15000, 0), (3059, 153, 19, 'business', 15000, 0), (3060, 153, 20, 'business', 15000, 0), (3061, 154, 1, 'business', 15000, 0), (3062, 154, 2, 'business', 15000, 0), (3063, 154, 3, 'business', 15000, 0), (3064, 154, 4, 'business', 15000, 0), (3065, 154, 5, 'business', 15000, 0), (3066, 154, 6, 'business', 15000, 0), (3067, 154, 7, 'business', 15000, 0), (3068, 154, 8, 'business', 15000, 0), (3069, 154, 9, 'business', 15000, 0), (3070, 154, 10, 'business', 15000, 0), (3071, 154, 11, 'business', 15000, 0), (3072, 154, 12, 'business', 15000, 0), (3073, 154, 13, 'business', 15000, 0), (3074, 154, 14, 'business', 15000, 0), (3075, 154, 15, 'business', 15000, 0), (3076, 154, 16, 'business', 15000, 0), (3077, 154, 17, 'business', 15000, 0), (3078, 154, 18, 'business', 15000, 0), (3079, 154, 19, 'business', 15000, 0), (3080, 154, 20, 'business', 15000, 0), (3081, 155, 1, 'business', 15000, 0), (3082, 155, 2, 'business', 15000, 0), (3083, 155, 3, 'business', 15000, 0), (3084, 155, 4, 'business', 15000, 0), (3085, 155, 5, 'business', 15000, 0), (3086, 155, 6, 'business', 15000, 0), (3087, 155, 7, 'business', 15000, 0), (3088, 155, 8, 'business', 15000, 0), (3089, 155, 9, 'business', 15000, 0), (3090, 155, 10, 'business', 15000, 0), (3091, 155, 11, 'business', 15000, 0), (3092, 155, 12, 'business', 15000, 0), (3093, 155, 13, 'business', 15000, 0), (3094, 155, 14, 'business', 15000, 0), (3095, 155, 15, 'business', 15000, 0), (3096, 155, 16, 'business', 15000, 0), (3097, 155, 17, 'business', 15000, 0), (3098, 155, 18, 'business', 15000, 0), (3099, 155, 19, 'business', 15000, 0), (3100, 155, 20, 'business', 15000, 0), (3101, 156, 1, 'business', 15000, 0), (3102, 156, 2, 'business', 15000, 0), (3103, 156, 3, 'business', 15000, 0), (3104, 156, 4, 'business', 15000, 0), (3105, 156, 5, 'business', 15000, 0), (3106, 156, 6, 'business', 15000, 0), (3107, 156, 7, 'business', 15000, 0), (3108, 156, 8, 'business', 15000, 0), (3109, 156, 9, 'business', 15000, 0), (3110, 156, 10, 'business', 15000, 0), (3111, 156, 11, 'business', 15000, 0), (3112, 156, 12, 'business', 15000, 0), (3113, 156, 13, 'business', 15000, 0), (3114, 156, 14, 'business', 15000, 0), (3115, 156, 15, 'business', 15000, 0), (3116, 156, 16, 'business', 15000, 0), (3117, 156, 17, 'business', 15000, 0), (3118, 156, 18, 'business', 15000, 0), (3119, 156, 19, 'business', 15000, 0), (3120, 156, 20, 'business', 15000, 0), (3121, 157, 1, 'business', 15000, 0), (3122, 157, 2, 'business', 15000, 0), (3123, 157, 3, 'business', 15000, 0), (3124, 157, 4, 'business', 15000, 0), (3125, 157, 5, 'business', 15000, 0), (3126, 157, 6, 'business', 15000, 0), (3127, 157, 7, 'business', 15000, 0), (3128, 157, 8, 'business', 15000, 0), (3129, 157, 9, 'business', 15000, 0), (3130, 157, 10, 'business', 15000, 0), (3131, 157, 11, 'business', 15000, 0), (3132, 157, 12, 'business', 15000, 0), (3133, 157, 13, 'business', 15000, 0), (3134, 157, 14, 'business', 15000, 0), (3135, 157, 15, 'business', 15000, 0), (3136, 157, 16, 'business', 15000, 0), (3137, 157, 17, 'business', 15000, 0), (3138, 157, 18, 'business', 15000, 0), (3139, 157, 19, 'business', 15000, 0), (3140, 157, 20, 'business', 15000, 0), (3141, 158, 1, 'business', 15000, 0), (3142, 158, 2, 'business', 15000, 0), (3143, 158, 3, 'business', 15000, 0), (3144, 158, 4, 'business', 15000, 0), (3145, 158, 5, 'business', 15000, 0), (3146, 158, 6, 'business', 15000, 0), (3147, 158, 7, 'business', 15000, 0), (3148, 158, 8, 'business', 15000, 0), (3149, 158, 9, 'business', 15000, 0), (3150, 158, 10, 'business', 15000, 0), (3151, 158, 11, 'business', 15000, 0), (3152, 158, 12, 'business', 15000, 0), (3153, 158, 13, 'business', 15000, 0), (3154, 158, 14, 'business', 15000, 0), (3155, 158, 15, 'business', 15000, 0), (3156, 158, 16, 'business', 15000, 0), (3157, 158, 17, 'business', 15000, 0), (3158, 158, 18, 'business', 15000, 0), (3159, 158, 19, 'business', 15000, 0), (3160, 158, 20, 'business', 15000, 0), (3161, 159, 1, 'business', 15000, 0), (3162, 159, 2, 'business', 15000, 0), (3163, 159, 3, 'business', 15000, 0), (3164, 159, 4, 'business', 15000, 0), (3165, 159, 5, 'business', 15000, 0), (3166, 159, 6, 'business', 15000, 0), (3167, 159, 7, 'business', 15000, 0), (3168, 159, 8, 'business', 15000, 0), (3169, 159, 9, 'business', 15000, 0), (3170, 159, 10, 'business', 15000, 0), (3171, 159, 11, 'business', 15000, 0), (3172, 159, 12, 'business', 15000, 0), (3173, 159, 13, 'business', 15000, 0), (3174, 159, 14, 'business', 15000, 0), (3175, 159, 15, 'business', 15000, 0), (3176, 159, 16, 'business', 15000, 0), (3177, 159, 17, 'business', 15000, 0), (3178, 159, 18, 'business', 15000, 0), (3179, 159, 19, 'business', 15000, 0), (3180, 159, 20, 'business', 15000, 0), (3181, 160, 1, 'business', 15000, 0), (3182, 160, 2, 'business', 15000, 0), (3183, 160, 3, 'business', 15000, 0), (3184, 160, 4, 'business', 15000, 0), (3185, 160, 5, 'business', 15000, 0), (3186, 160, 6, 'business', 15000, 0), (3187, 160, 7, 'business', 15000, 0), (3188, 160, 8, 'business', 15000, 0), (3189, 160, 9, 'business', 15000, 0), (3190, 160, 10, 'business', 15000, 0), (3191, 160, 11, 'business', 15000, 0), (3192, 160, 12, 'business', 15000, 0), (3193, 160, 13, 'business', 15000, 0), (3194, 160, 14, 'business', 15000, 0), (3195, 160, 15, 'business', 15000, 0), (3196, 160, 16, 'business', 15000, 0), (3197, 160, 17, 'business', 15000, 0), (3198, 160, 18, 'business', 15000, 0), (3199, 160, 19, 'business', 15000, 0), (3200, 160, 20, 'business', 15000, 0), (3201, 161, 1, 'business', 15000, 0), (3202, 161, 2, 'business', 15000, 0), (3203, 161, 3, 'business', 15000, 0), (3204, 161, 4, 'business', 15000, 0), (3205, 161, 5, 'business', 15000, 0), (3206, 161, 6, 'business', 15000, 0), (3207, 161, 7, 'business', 15000, 0), (3208, 161, 8, 'business', 15000, 0), (3209, 161, 9, 'business', 15000, 0), (3210, 161, 10, 'business', 15000, 0), (3211, 161, 11, 'business', 15000, 0), (3212, 161, 12, 'business', 15000, 0), (3213, 161, 13, 'business', 15000, 0), (3214, 161, 14, 'business', 15000, 0), (3215, 161, 15, 'business', 15000, 0), (3216, 161, 16, 'business', 15000, 0), (3217, 161, 17, 'business', 15000, 0), (3218, 161, 18, 'business', 15000, 0), (3219, 161, 19, 'business', 15000, 0), (3220, 161, 20, 'business', 15000, 0), (3221, 162, 1, 'business', 15000, 0), (3222, 162, 2, 'business', 15000, 0), (3223, 162, 3, 'business', 15000, 0), (3224, 162, 4, 'business', 15000, 0), (3225, 162, 5, 'business', 15000, 0), (3226, 162, 6, 'business', 15000, 0), (3227, 162, 7, 'business', 15000, 0), (3228, 162, 8, 'business', 15000, 0), (3229, 162, 9, 'business', 15000, 0), (3230, 162, 10, 'business', 15000, 0), (3231, 162, 11, 'business', 15000, 0), (3232, 162, 12, 'business', 15000, 0), (3233, 162, 13, 'business', 15000, 0), (3234, 162, 14, 'business', 15000, 0), (3235, 162, 15, 'business', 15000, 0), (3236, 162, 16, 'business', 15000, 0), (3237, 162, 17, 'business', 15000, 0), (3238, 162, 18, 'business', 15000, 0), (3239, 162, 19, 'business', 15000, 0), (3240, 162, 20, 'business', 15000, 0), (3241, 163, 1, 'business', 15000, 0), (3242, 163, 2, 'business', 15000, 0), (3243, 163, 3, 'business', 15000, 0), (3244, 163, 4, 'business', 15000, 0), (3245, 163, 5, 'business', 15000, 0), (3246, 163, 6, 'business', 15000, 0), (3247, 163, 7, 'business', 15000, 0), (3248, 163, 8, 'business', 15000, 0), (3249, 163, 9, 'business', 15000, 0), (3250, 163, 10, 'business', 15000, 0), (3251, 163, 11, 'business', 15000, 0), (3252, 163, 12, 'business', 15000, 0), (3253, 163, 13, 'business', 15000, 0), (3254, 163, 14, 'business', 15000, 0), (3255, 163, 15, 'business', 15000, 0), (3256, 163, 16, 'business', 15000, 0), (3257, 163, 17, 'business', 15000, 0), (3258, 163, 18, 'business', 15000, 0), (3259, 163, 19, 'business', 15000, 0), (3260, 163, 20, 'business', 15000, 0), (3261, 164, 1, 'business', 15000, 0), (3262, 164, 2, 'business', 15000, 0), (3263, 164, 3, 'business', 15000, 0), (3264, 164, 4, 'business', 15000, 0), (3265, 164, 5, 'business', 15000, 0), (3266, 164, 6, 'business', 15000, 0), (3267, 164, 7, 'business', 15000, 0), (3268, 164, 8, 'business', 15000, 0), (3269, 164, 9, 'business', 15000, 0), (3270, 164, 10, 'business', 15000, 0), (3271, 164, 11, 'business', 15000, 0), (3272, 164, 12, 'business', 15000, 0), (3273, 164, 13, 'business', 15000, 0), (3274, 164, 14, 'business', 15000, 0), (3275, 164, 15, 'business', 15000, 0), (3276, 164, 16, 'business', 15000, 0), (3277, 164, 17, 'business', 15000, 0), (3278, 164, 18, 'business', 15000, 0), (3279, 164, 19, 'business', 15000, 0), (3280, 164, 20, 'business', 15000, 0), (3281, 165, 1, 'business', 15000, 0), (3282, 165, 2, 'business', 15000, 0), (3283, 165, 3, 'business', 15000, 0), (3284, 165, 4, 'business', 15000, 0), (3285, 165, 5, 'business', 15000, 0), (3286, 165, 6, 'business', 15000, 0), (3287, 165, 7, 'business', 15000, 0), (3288, 165, 8, 'business', 15000, 0), (3289, 165, 9, 'business', 15000, 0), (3290, 165, 10, 'business', 15000, 0), (3291, 165, 11, 'business', 15000, 0), (3292, 165, 12, 'business', 15000, 0), (3293, 165, 13, 'business', 15000, 0), (3294, 165, 14, 'business', 15000, 0), (3295, 165, 15, 'business', 15000, 0), (3296, 165, 16, 'business', 15000, 0), (3297, 165, 17, 'business', 15000, 0), (3298, 165, 18, 'business', 15000, 0), (3299, 165, 19, 'business', 15000, 0), (3300, 165, 20, 'business', 15000, 0), (3301, 166, 1, 'business', 15000, 0), (3302, 166, 2, 'business', 15000, 0), (3303, 166, 3, 'business', 15000, 0), (3304, 166, 4, 'business', 15000, 0), (3305, 166, 5, 'business', 15000, 0), (3306, 166, 6, 'business', 15000, 0), (3307, 166, 7, 'business', 15000, 0), (3308, 166, 8, 'business', 15000, 0), (3309, 166, 9, 'business', 15000, 0), (3310, 166, 10, 'business', 15000, 0), (3311, 166, 11, 'business', 15000, 0), (3312, 166, 12, 'business', 15000, 0), (3313, 166, 13, 'business', 15000, 0), (3314, 166, 14, 'business', 15000, 0), (3315, 166, 15, 'business', 15000, 0), (3316, 166, 16, 'business', 15000, 0), (3317, 166, 17, 'business', 15000, 0), (3318, 166, 18, 'business', 15000, 0), (3319, 166, 19, 'business', 15000, 0), (3320, 166, 20, 'business', 15000, 0), (3321, 167, 1, 'business', 15000, 0), (3322, 167, 2, 'business', 15000, 0), (3323, 167, 3, 'business', 15000, 0), (3324, 167, 4, 'business', 15000, 0), (3325, 167, 5, 'business', 15000, 0), (3326, 167, 6, 'business', 15000, 0), (3327, 167, 7, 'business', 15000, 0), (3328, 167, 8, 'business', 15000, 0), (3329, 167, 9, 'business', 15000, 0), (3330, 167, 10, 'business', 15000, 0), (3331, 167, 11, 'business', 15000, 0), (3332, 167, 12, 'business', 15000, 0), (3333, 167, 13, 'business', 15000, 0), (3334, 167, 14, 'business', 15000, 0), (3335, 167, 15, 'business', 15000, 0), (3336, 167, 16, 'business', 15000, 0), (3337, 167, 17, 'business', 15000, 0), (3338, 167, 18, 'business', 15000, 0), (3339, 167, 19, 'business', 15000, 0), (3340, 167, 20, 'business', 15000, 0), (3341, 168, 1, 'business', 15000, 0), (3342, 168, 2, 'business', 15000, 0), (3343, 168, 3, 'business', 15000, 0), (3344, 168, 4, 'business', 15000, 0), (3345, 168, 5, 'business', 15000, 0), (3346, 168, 6, 'business', 15000, 0), (3347, 168, 7, 'business', 15000, 0), (3348, 168, 8, 'business', 15000, 0), (3349, 168, 9, 'business', 15000, 0), (3350, 168, 10, 'business', 15000, 0), (3351, 168, 11, 'business', 15000, 0), (3352, 168, 12, 'business', 15000, 0), (3353, 168, 13, 'business', 15000, 0), (3354, 168, 14, 'business', 15000, 0), (3355, 168, 15, 'business', 15000, 0), (3356, 168, 16, 'business', 15000, 0), (3357, 168, 17, 'business', 15000, 0), (3358, 168, 18, 'business', 15000, 0), (3359, 168, 19, 'business', 15000, 0), (3360, 168, 20, 'business', 15000, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `services` -- CREATE TABLE `services` ( `cart_id` int(11) NOT NULL, `type` varchar(10) COLLATE utf8_spanish_ci NOT NULL, `service_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `state` -- CREATE TABLE `state` ( `id` int(11) NOT NULL, `name` varchar(30) NOT NULL, `country_id` int(11) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `state` -- INSERT INTO `state` (`id`, `name`, `country_id`) VALUES (1, 'Andaman and Nicobar Islands', 101), (2, 'Andhra Pradesh', 101), (3, 'Arunachal Pradesh', 101), (4, 'Assam', 101), (5, 'Bihar', 101), (6, 'Chandigarh', 101), (7, 'Chhattisgarh', 101), (8, 'Dadra and Nagar Haveli', 101), (9, 'Daman and Diu', 101), (10, 'Delhi', 101), (11, 'Goa', 101), (12, 'Gujarat', 101), (13, 'Haryana', 101), (14, 'Himachal Pradesh', 101), (15, 'Jammu and Kashmir', 101), (16, 'Jharkhand', 101), (17, 'Karnataka', 101), (18, 'Kenmore', 101), (19, 'Kerala', 101), (20, 'Lakshadweep', 101), (21, 'Madhya Pradesh', 101), (22, 'Maharashtra', 101), (23, 'Manipur', 101), (24, 'Meghalaya', 101), (25, 'Mizoram', 101), (26, 'Nagaland', 101), (27, 'Narora', 101), (28, 'Natwar', 101), (29, 'Odisha', 101), (30, 'Paschim Medinipur', 101), (31, 'Pondicherry', 101), (32, 'Punjab', 101), (33, 'Rajasthan', 101), (34, 'Sikkim', 101), (35, 'Tamil Nadu', 101), (36, 'Telangana', 101), (37, 'Tripura', 101), (38, 'Uttar Pradesh', 101), (39, 'Uttarakhand', 101), (40, 'Vaishali', 101), (41, 'West Bengal', 101), (42, 'Badakhshan', 1), (43, 'Badgis', 1), (44, 'Baglan', 1), (45, 'Balkh', 1), (46, 'Bamiyan', 1), (47, 'Farah', 1), (48, 'Faryab', 1), (49, 'Gawr', 1), (50, 'Gazni', 1), (51, 'Herat', 1), (52, 'Hilmand', 1), (53, 'Jawzjan', 1), (54, 'Kabul', 1), (55, 'Kapisa', 1), (56, 'Khawst', 1), (57, 'Kunar', 1), (58, 'Lagman', 1), (59, 'Lawghar', 1), (60, 'Nangarhar', 1), (61, 'Nimruz', 1), (62, 'Nuristan', 1), (63, 'Paktika', 1), (64, 'Paktiya', 1), (65, 'Parwan', 1), (66, 'Qandahar', 1), (67, 'Qunduz', 1), (68, 'Samangan', 1), (69, 'Sar-e Pul', 1), (70, 'Takhar', 1), (71, 'Uruzgan', 1), (72, 'Wardag', 1), (73, 'Zabul', 1), (74, 'Berat', 2), (75, 'Bulqize', 2), (76, 'Delvine', 2), (77, 'Devoll', 2), (78, 'Dibre', 2), (79, 'Durres', 2), (80, 'Elbasan', 2), (81, 'Fier', 2), (82, 'Gjirokaster', 2), (83, 'Gramsh', 2), (84, 'Has', 2), (85, 'Kavaje', 2), (86, 'Kolonje', 2), (87, 'Korce', 2), (88, 'Kruje', 2), (89, 'Kucove', 2), (90, 'Kukes', 2), (91, 'Kurbin', 2), (92, 'Lezhe', 2), (93, 'Librazhd', 2), (94, 'Lushnje', 2), (95, 'Mallakaster', 2), (96, 'Malsi e Madhe', 2), (97, 'Mat', 2), (98, 'Mirdite', 2), (99, 'Peqin', 2), (100, 'Permet', 2), (101, 'Pogradec', 2), (102, 'Puke', 2), (103, 'Sarande', 2), (104, 'Shkoder', 2), (105, 'Skrapar', 2), (106, 'Tepelene', 2), (107, 'Tirane', 2), (108, 'Tropoje', 2), (109, 'Vlore', 2), (110, '\'Ayn Daflah', 3), (111, '\'Ayn Tamushanat', 3), (112, 'Adrar', 3), (113, 'Algiers', 3), (114, 'Annabah', 3), (115, 'Bashshar', 3), (116, 'Batnah', 3), (117, 'Bijayah', 3), (118, 'Biskrah', 3), (119, 'Blidah', 3), (120, 'Buirah', 3), (121, 'Bumardas', 3), (122, 'Burj Bu Arririj', 3), (123, 'Ghalizan', 3), (124, 'Ghardayah', 3), (125, 'Ilizi', 3), (126, 'Jijili', 3), (127, 'Jilfah', 3), (128, 'Khanshalah', 3), (129, 'Masilah', 3), (130, 'Midyah', 3), (131, 'Milah', 3), (132, 'Muaskar', 3), (133, 'Mustaghanam', 3), (134, 'Naama', 3), (135, 'Oran', 3), (136, 'Ouargla', 3), (137, 'Qalmah', 3), (138, 'Qustantinah', 3), (139, 'Sakikdah', 3), (140, 'Satif', 3), (141, 'Sayda\'', 3), (142, 'Sidi ban-al-\'Abbas', 3), (143, 'Suq Ahras', 3), (144, 'Tamanghasat', 3), (145, 'Tibazah', 3), (146, 'Tibissah', 3), (147, 'Tilimsan', 3), (148, 'Tinduf', 3), (149, 'Tisamsilt', 3), (150, 'Tiyarat', 3), (151, 'Tizi Wazu', 3), (152, 'Umm-al-Bawaghi', 3), (153, 'Wahran', 3), (154, 'Warqla', 3), (155, 'Wilaya d Alger', 3), (156, 'Wilaya de Bejaia', 3), (157, 'Wilaya de Constantine', 3), (158, 'al-Aghwat', 3), (159, 'al-Bayadh', 3), (160, 'al-Jaza\'ir', 3), (161, 'al-Wad', 3), (162, 'ash-Shalif', 3), (163, 'at-Tarif', 3), (164, 'Eastern', 4), (165, 'Manu\'a', 4), (166, 'Swains Island', 4), (167, 'Western', 4), (168, 'Andorra la Vella', 5), (169, 'Canillo', 5), (170, 'Encamp', 5), (171, 'La Massana', 5), (172, 'Les Escaldes', 5), (173, 'Ordino', 5), (174, 'Sant Julia de Loria', 5), (175, 'Bengo', 6), (176, 'Benguela', 6), (177, 'Bie', 6), (178, 'Cabinda', 6), (179, 'Cunene', 6), (180, 'Huambo', 6), (181, 'Huila', 6), (182, 'Kuando-Kubango', 6), (183, 'Kwanza Norte', 6), (184, 'Kwanza Sul', 6), (185, 'Luanda', 6), (186, 'Lunda Norte', 6), (187, 'Lunda Sul', 6), (188, 'Malanje', 6), (189, 'Moxico', 6), (190, 'Namibe', 6), (191, 'Uige', 6), (192, 'Zaire', 6), (193, 'Other Provinces', 7), (194, 'Sector claimed by Argentina/Ch', 8), (195, 'Sector claimed by Argentina/UK', 8), (196, 'Sector claimed by Australia', 8), (197, 'Sector claimed by France', 8), (198, 'Sector claimed by New Zealand', 8), (199, 'Sector claimed by Norway', 8), (200, 'Unclaimed Sector', 8), (201, 'Barbuda', 9), (202, 'Saint George', 9), (203, 'Saint John', 9), (204, 'Saint Mary', 9), (205, 'Saint Paul', 9), (206, 'Saint Peter', 9), (207, 'Saint Philip', 9), (208, 'Buenos Aires', 10), (209, 'Catamarca', 10), (210, 'Chaco', 10), (211, 'Chubut', 10), (212, 'Cordoba', 10), (213, 'Corrientes', 10), (214, 'Distrito Federal', 10), (215, 'Entre Rios', 10), (216, 'Formosa', 10), (217, 'Jujuy', 10), (218, 'La Pampa', 10), (219, 'La Rioja', 10), (220, 'Mendoza', 10), (221, 'Misiones', 10), (222, 'Neuquen', 10), (223, 'Rio Negro', 10), (224, 'Salta', 10), (225, 'San Juan', 10), (226, 'San Luis', 10), (227, 'Santa Cruz', 10), (228, 'Santa Fe', 10), (229, 'Santiago del Estero', 10), (230, 'Tierra del Fuego', 10), (231, 'Tucuman', 10), (232, 'Aragatsotn', 11), (233, 'Ararat', 11), (234, 'Armavir', 11), (235, 'Gegharkunik', 11), (236, 'Kotaik', 11), (237, 'Lori', 11), (238, 'Shirak', 11), (239, 'Stepanakert', 11), (240, 'Syunik', 11), (241, 'Tavush', 11), (242, 'Vayots Dzor', 11), (243, 'Yerevan', 11), (244, 'Aruba', 12), (245, 'Auckland', 13), (246, 'Australian Capital Territory', 13), (247, 'Balgowlah', 13), (248, 'Balmain', 13), (249, 'Bankstown', 13), (250, 'Baulkham Hills', 13), (251, 'Bonnet Bay', 13), (252, 'Camberwell', 13), (253, 'Carole Park', 13), (254, 'Castle Hill', 13), (255, 'Caulfield', 13), (256, 'Chatswood', 13), (257, 'Cheltenham', 13), (258, 'Cherrybrook', 13), (259, 'Clayton', 13), (260, 'Collingwood', 13), (261, 'Frenchs Forest', 13), (262, 'Hawthorn', 13), (263, 'Jannnali', 13), (264, 'Knoxfield', 13), (265, 'Melbourne', 13), (266, 'New South Wales', 13), (267, 'Northern Territory', 13), (268, 'Perth', 13), (269, 'Queensland', 13), (270, 'South Australia', 13), (271, 'Tasmania', 13), (272, 'Templestowe', 13), (273, 'Victoria', 13), (274, 'Werribee south', 13), (275, 'Western Australia', 13), (276, 'Wheeler', 13), (277, 'Bundesland Salzburg', 14), (278, 'Bundesland Steiermark', 14), (279, 'Bundesland Tirol', 14), (280, 'Burgenland', 14), (281, 'Carinthia', 14), (282, 'Karnten', 14), (283, 'Liezen', 14), (284, 'Lower Austria', 14), (285, 'Niederosterreich', 14), (286, 'Oberosterreich', 14), (287, 'Salzburg', 14), (288, 'Schleswig-Holstein', 14), (289, 'Steiermark', 14), (290, 'Styria', 14), (291, 'Tirol', 14), (292, 'Upper Austria', 14), (293, 'Vorarlberg', 14), (294, 'Wien', 14), (295, 'Abseron', 15), (296, 'Baki Sahari', 15), (297, 'Ganca', 15), (298, 'Ganja', 15), (299, 'Kalbacar', 15), (300, 'Lankaran', 15), (301, 'Mil-Qarabax', 15), (302, 'Mugan-Salyan', 15), (303, 'Nagorni-Qarabax', 15), (304, 'Naxcivan', 15), (305, 'Priaraks', 15), (306, 'Qazax', 15), (307, 'Saki', 15), (308, 'Sirvan', 15), (309, 'Xacmaz', 15), (310, 'Abaco', 16), (311, 'Acklins Island', 16), (312, 'Andros', 16), (313, 'Berry Islands', 16), (314, 'Biminis', 16), (315, 'Cat Island', 16), (316, 'Crooked Island', 16), (317, 'Eleuthera', 16), (318, 'Exuma and Cays', 16), (319, 'Grand Bahama', 16), (320, 'Inagua Islands', 16), (321, 'Long Island', 16), (322, 'Mayaguana', 16), (323, 'New Providence', 16), (324, 'Ragged Island', 16), (325, 'Rum Cay', 16), (326, 'San Salvador', 16), (327, '\'Isa', 17), (328, 'Badiyah', 17), (329, 'Hidd', 17), (330, 'Jidd Hafs', 17), (331, 'Mahama', 17), (332, 'Manama', 17), (333, 'Sitrah', 17), (334, 'al-Manamah', 17), (335, 'al-Muharraq', 17), (336, 'ar-Rifa\'a', 17), (337, 'Bagar Hat', 18), (338, 'Bandarban', 18), (339, 'Barguna', 18), (340, 'Barisal', 18), (341, 'Bhola', 18), (342, 'Bogora', 18), (343, 'Brahman Bariya', 18), (344, 'Chandpur', 18), (345, 'Chattagam', 18), (346, 'Chittagong Division', 18), (347, 'Chuadanga', 18), (348, 'Dhaka', 18), (349, 'Dinajpur', 18), (350, 'Faridpur', 18), (351, 'Feni', 18), (352, 'Gaybanda', 18), (353, 'Gazipur', 18), (354, 'Gopalganj', 18), (355, 'Habiganj', 18), (356, 'Jaipur Hat', 18), (357, 'Jamalpur', 18), (358, 'Jessor', 18), (359, 'Jhalakati', 18), (360, 'Jhanaydah', 18), (361, 'Khagrachhari', 18), (362, 'Khulna', 18), (363, 'Kishorganj', 18), (364, 'Koks Bazar', 18), (365, 'Komilla', 18), (366, 'Kurigram', 18), (367, 'Kushtiya', 18), (368, 'Lakshmipur', 18), (369, 'Lalmanir Hat', 18), (370, 'Madaripur', 18), (371, 'Magura', 18), (372, 'Maimansingh', 18), (373, 'Manikganj', 18), (374, 'Maulvi Bazar', 18), (375, 'Meherpur', 18), (376, 'Munshiganj', 18), (377, 'Naral', 18), (378, 'Narayanganj', 18), (379, 'Narsingdi', 18), (380, 'Nator', 18), (381, 'Naugaon', 18), (382, 'Nawabganj', 18), (383, 'Netrakona', 18), (384, 'Nilphamari', 18), (385, 'Noakhali', 18), (386, 'Pabna', 18), (387, 'Panchagarh', 18), (388, 'Patuakhali', 18), (389, 'Pirojpur', 18), (390, 'Rajbari', 18), (391, 'Rajshahi', 18), (392, 'Rangamati', 18), (393, 'Rangpur', 18), (394, 'Satkhira', 18), (395, 'Shariatpur', 18), (396, 'Sherpur', 18), (397, 'Silhat', 18), (398, 'Sirajganj', 18), (399, 'Sunamganj', 18), (400, 'Tangayal', 18), (401, 'Thakurgaon', 18), (402, 'Christ Church', 19), (403, 'Saint Andrew', 19), (404, 'Saint George', 19), (405, 'Saint James', 19), (406, 'Saint John', 19), (407, 'Saint Joseph', 19), (408, 'Saint Lucy', 19), (409, 'Saint Michael', 19), (410, 'Saint Peter', 19), (411, 'Saint Philip', 19), (412, 'Saint Thomas', 19), (413, 'Brest', 20), (414, 'Homjel\'', 20), (415, 'Hrodna', 20), (416, 'Mahiljow', 20), (417, 'Mahilyowskaya Voblasts', 20), (418, 'Minsk', 20), (419, 'Minskaja Voblasts\'', 20), (420, 'Petrik', 20), (421, 'Vicebsk', 20), (422, 'Antwerpen', 21), (423, 'Berchem', 21), (424, 'Brabant', 21), (425, 'Brabant Wallon', 21), (426, 'Brussel', 21), (427, 'East Flanders', 21), (428, 'Hainaut', 21), (429, 'Liege', 21), (430, 'Limburg', 21), (431, 'Luxembourg', 21), (432, 'Namur', 21), (433, 'Ontario', 21), (434, 'Oost-Vlaanderen', 21), (435, 'Provincie Brabant', 21), (436, 'Vlaams-Brabant', 21), (437, 'Wallonne', 21), (438, 'West-Vlaanderen', 21), (439, 'Belize', 22), (440, 'Cayo', 22), (441, 'Corozal', 22), (442, 'Orange Walk', 22), (443, 'Stann Creek', 22), (444, 'Toledo', 22), (445, 'Alibori', 23), (446, 'Atacora', 23), (447, 'Atlantique', 23), (448, 'Borgou', 23), (449, 'Collines', 23), (450, 'Couffo', 23), (451, 'Donga', 23), (452, 'Littoral', 23), (453, 'Mono', 23), (454, 'Oueme', 23), (455, 'Plateau', 23), (456, 'Zou', 23), (457, 'Hamilton', 24), (458, 'Saint George', 24), (459, 'Bumthang', 25), (460, 'Chhukha', 25), (461, 'Chirang', 25), (462, 'Daga', 25), (463, 'Geylegphug', 25), (464, 'Ha', 25), (465, 'Lhuntshi', 25), (466, 'Mongar', 25), (467, 'Pemagatsel', 25), (468, 'Punakha', 25), (469, 'Rinpung', 25), (470, 'Samchi', 25), (471, 'Samdrup Jongkhar', 25), (472, 'Shemgang', 25), (473, 'Tashigang', 25), (474, 'Timphu', 25), (475, 'Tongsa', 25), (476, 'Wangdiphodrang', 25), (477, 'Beni', 26), (478, 'Chuquisaca', 26), (479, 'Cochabamba', 26), (480, 'La Paz', 26), (481, 'Oruro', 26), (482, 'Pando', 26), (483, 'Potosi', 26), (484, 'Santa Cruz', 26), (485, 'Tarija', 26), (486, 'Federacija Bosna i Hercegovina', 27), (487, 'Republika Srpska', 27), (488, 'Central Bobonong', 28), (489, 'Central Boteti', 28), (490, 'Central Mahalapye', 28), (491, 'Central Serowe-Palapye', 28), (492, 'Central Tutume', 28), (493, 'Chobe', 28), (494, 'Francistown', 28), (495, 'Gaborone', 28), (496, 'Ghanzi', 28), (497, 'Jwaneng', 28), (498, 'Kgalagadi North', 28), (499, 'Kgalagadi South', 28), (500, 'Kgatleng', 28), (501, 'Kweneng', 28), (502, 'Lobatse', 28), (503, 'Ngamiland', 28), (504, 'Ngwaketse', 28), (505, 'North East', 28), (506, 'Okavango', 28), (507, 'Orapa', 28), (508, 'Selibe Phikwe', 28), (509, 'South East', 28), (510, 'Sowa', 28), (511, 'Bouvet Island', 29), (512, 'Acre', 30), (513, 'Alagoas', 30), (514, 'Amapa', 30), (515, 'Amazonas', 30), (516, 'Bahia', 30), (517, 'Ceara', 30), (518, 'Distrito Federal', 30), (519, 'Espirito Santo', 30), (520, 'Estado de Sao Paulo', 30), (521, 'Goias', 30), (522, 'Maranhao', 30), (523, 'Mato Grosso', 30), (524, 'Mato Grosso do Sul', 30), (525, 'Minas Gerais', 30), (526, 'Para', 30), (527, 'Paraiba', 30), (528, 'Parana', 30), (529, 'Pernambuco', 30), (530, 'Piaui', 30), (531, 'Rio Grande do Norte', 30), (532, 'Rio Grande do Sul', 30), (533, 'Rio de Janeiro', 30), (534, 'Rondonia', 30), (535, 'Roraima', 30), (536, 'Santa Catarina', 30), (537, 'Sao Paulo', 30), (538, 'Sergipe', 30), (539, 'Tocantins', 30), (540, 'British Indian Ocean Territory', 31), (541, 'Belait', 32), (542, 'Brunei-Muara', 32), (543, 'Temburong', 32), (544, 'Tutong', 32), (545, 'Blagoevgrad', 33), (546, 'Burgas', 33), (547, 'Dobrich', 33), (548, 'Gabrovo', 33), (549, 'Haskovo', 33), (550, 'Jambol', 33), (551, 'Kardzhali', 33), (552, 'Kjustendil', 33), (553, 'Lovech', 33), (554, 'Montana', 33), (555, 'Oblast Sofiya-Grad', 33), (556, 'Pazardzhik', 33), (557, 'Pernik', 33), (558, 'Pleven', 33), (559, 'Plovdiv', 33), (560, 'Razgrad', 33), (561, 'Ruse', 33), (562, 'Shumen', 33), (563, 'Silistra', 33), (564, 'Sliven', 33), (565, 'Smoljan', 33), (566, 'Sofija grad', 33), (567, 'Sofijska oblast', 33), (568, 'Stara Zagora', 33), (569, 'Targovishte', 33), (570, 'Varna', 33), (571, 'Veliko Tarnovo', 33), (572, 'Vidin', 33), (573, 'Vraca', 33), (574, 'Yablaniza', 33), (575, 'Bale', 34), (576, 'Bam', 34), (577, 'Bazega', 34), (578, 'Bougouriba', 34), (579, 'Boulgou', 34), (580, 'Boulkiemde', 34), (581, 'Comoe', 34), (582, 'Ganzourgou', 34), (583, 'Gnagna', 34), (584, 'Gourma', 34), (585, 'Houet', 34), (586, 'Ioba', 34), (587, 'Kadiogo', 34), (588, 'Kenedougou', 34), (589, 'Komandjari', 34), (590, 'Kompienga', 34), (591, 'Kossi', 34), (592, 'Kouritenga', 34), (593, 'Kourweogo', 34), (594, 'Leraba', 34), (595, 'Mouhoun', 34), (596, 'Nahouri', 34), (597, 'Namentenga', 34), (598, 'Noumbiel', 34), (599, 'Oubritenga', 34), (600, 'Oudalan', 34), (601, 'Passore', 34), (602, 'Poni', 34), (603, 'Sanguie', 34), (604, 'Sanmatenga', 34), (605, 'Seno', 34), (606, 'Sissili', 34), (607, 'Soum', 34), (608, 'Sourou', 34), (609, 'Tapoa', 34), (610, 'Tuy', 34), (611, 'Yatenga', 34), (612, 'Zondoma', 34), (613, 'Zoundweogo', 34), (614, 'Bubanza', 35), (615, 'Bujumbura', 35), (616, 'Bururi', 35), (617, 'Cankuzo', 35), (618, 'Cibitoke', 35), (619, 'Gitega', 35), (620, 'Karuzi', 35), (621, 'Kayanza', 35), (622, 'Kirundo', 35), (623, 'Makamba', 35), (624, 'Muramvya', 35), (625, 'Muyinga', 35), (626, 'Ngozi', 35), (627, 'Rutana', 35), (628, 'Ruyigi', 35), (629, 'Banteay Mean Chey', 36), (630, 'Bat Dambang', 36), (631, 'Kampong Cham', 36), (632, 'Kampong Chhnang', 36), (633, 'Kampong Spoeu', 36), (634, 'Kampong Thum', 36), (635, 'Kampot', 36), (636, 'Kandal', 36), (637, 'Kaoh Kong', 36), (638, 'Kracheh', 36), (639, 'Krong Kaeb', 36), (640, 'Krong Pailin', 36), (641, 'Krong Preah Sihanouk', 36), (642, 'Mondol Kiri', 36), (643, 'Otdar Mean Chey', 36), (644, 'Phnum Penh', 36), (645, 'Pousat', 36), (646, 'Preah Vihear', 36), (647, 'Prey Veaeng', 36), (648, 'Rotanak Kiri', 36), (649, 'Siem Reab', 36), (650, 'Stueng Traeng', 36), (651, 'Svay Rieng', 36), (652, 'Takaev', 36), (653, 'Adamaoua', 37), (654, 'Centre', 37), (655, 'Est', 37), (656, 'Littoral', 37), (657, 'Nord', 37), (658, 'Nord Extreme', 37), (659, 'Nordouest', 37), (660, 'Ouest', 37), (661, 'Sud', 37), (662, 'Sudouest', 37), (663, 'Alberta', 38), (664, 'British Columbia', 38), (665, 'Manitoba', 38), (666, 'New Brunswick', 38), (667, 'Newfoundland and Labrador', 38), (668, 'Northwest Territories', 38), (669, 'Nova Scotia', 38), (670, 'Nunavut', 38), (671, 'Ontario', 38), (672, 'Prince Edward Island', 38), (673, 'Quebec', 38), (674, 'Saskatchewan', 38), (675, 'Yukon', 38), (676, 'Boavista', 39), (677, 'Brava', 39), (678, 'Fogo', 39), (679, 'Maio', 39), (680, 'Sal', 39), (681, 'Santo Antao', 39), (682, 'Sao Nicolau', 39), (683, 'Sao Tiago', 39), (684, 'Sao Vicente', 39), (685, 'Grand Cayman', 40), (686, 'Bamingui-Bangoran', 41), (687, 'Bangui', 41), (688, 'Basse-Kotto', 41), (689, 'Haut-Mbomou', 41), (690, 'Haute-Kotto', 41), (691, 'Kemo', 41), (692, 'Lobaye', 41), (693, 'Mambere-Kadei', 41), (694, 'Mbomou', 41), (695, 'Nana-Gribizi', 41), (696, 'Nana-Mambere', 41), (697, 'Ombella Mpoko', 41), (698, 'Ouaka', 41), (699, 'Ouham', 41), (700, 'Ouham-Pende', 41), (701, 'Sangha-Mbaere', 41), (702, 'Vakaga', 41), (703, 'Batha', 42), (704, 'Biltine', 42), (705, 'Bourkou-Ennedi-Tibesti', 42), (706, 'Chari-Baguirmi', 42), (707, 'Guera', 42), (708, 'Kanem', 42), (709, 'Lac', 42), (710, 'Logone Occidental', 42), (711, 'Logone Oriental', 42), (712, 'Mayo-Kebbi', 42), (713, 'Moyen-Chari', 42), (714, 'Ouaddai', 42), (715, 'Salamat', 42), (716, 'Tandjile', 42), (717, 'Aisen', 43), (718, 'Antofagasta', 43), (719, 'Araucania', 43), (720, 'Atacama', 43), (721, 'Bio Bio', 43), (722, 'Coquimbo', 43), (723, 'Libertador General Bernardo O\'', 43), (724, 'Los Lagos', 43), (725, 'Magellanes', 43), (726, 'Maule', 43), (727, 'Metropolitana', 43), (728, 'Metropolitana de Santiago', 43), (729, 'Tarapaca', 43), (730, 'Valparaiso', 43), (731, 'Anhui', 44), (732, 'Anhui Province', 44), (733, 'Anhui Sheng', 44), (734, 'Aomen', 44), (735, 'Beijing', 44), (736, 'Beijing Shi', 44), (737, 'Chongqing', 44), (738, 'Fujian', 44), (739, 'Fujian Sheng', 44), (740, 'Gansu', 44), (741, 'Guangdong', 44), (742, 'Guangdong Sheng', 44), (743, 'Guangxi', 44), (744, 'Guizhou', 44), (745, 'Hainan', 44), (746, 'Hebei', 44), (747, 'Heilongjiang', 44), (748, 'Henan', 44), (749, 'Hubei', 44), (750, 'Hunan', 44), (751, 'Jiangsu', 44), (752, 'Jiangsu Sheng', 44), (753, 'Jiangxi', 44), (754, 'Jilin', 44), (755, 'Liaoning', 44), (756, 'Liaoning Sheng', 44), (757, 'Nei Monggol', 44), (758, 'Ningxia Hui', 44), (759, 'Qinghai', 44), (760, 'Shaanxi', 44), (761, 'Shandong', 44), (762, 'Shandong Sheng', 44), (763, 'Shanghai', 44), (764, 'Shanxi', 44), (765, 'Sichuan', 44), (766, 'Tianjin', 44), (767, 'Xianggang', 44), (768, 'Xinjiang', 44), (769, 'Xizang', 44), (770, 'Yunnan', 44), (771, 'Zhejiang', 44), (772, 'Zhejiang Sheng', 44), (773, 'Christmas Island', 45), (774, 'Cocos (Keeling) Islands', 46), (775, 'Amazonas', 47), (776, 'Antioquia', 47), (777, 'Arauca', 47), (778, 'Atlantico', 47), (779, 'Bogota', 47), (780, 'Bolivar', 47), (781, 'Boyaca', 47), (782, 'Caldas', 47), (783, 'Caqueta', 47), (784, 'Casanare', 47), (785, 'Cauca', 47), (786, 'Cesar', 47), (787, 'Choco', 47), (788, 'Cordoba', 47), (789, 'Cundinamarca', 47), (790, 'Guainia', 47), (791, 'Guaviare', 47), (792, 'Huila', 47), (793, 'La Guajira', 47), (794, 'Magdalena', 47), (795, 'Meta', 47), (796, 'Narino', 47), (797, 'Norte de Santander', 47), (798, 'Putumayo', 47), (799, 'Quindio', 47), (800, 'Risaralda', 47), (801, 'San Andres y Providencia', 47), (802, 'Santander', 47), (803, 'Sucre', 47), (804, 'Tolima', 47), (805, 'Valle del Cauca', 47), (806, 'Vaupes', 47), (807, 'Vichada', 47), (808, 'Mwali', 48), (809, 'Njazidja', 48), (810, 'Nzwani', 48), (811, 'Bouenza', 49), (812, 'Brazzaville', 49), (813, 'Cuvette', 49), (814, 'Kouilou', 49), (815, 'Lekoumou', 49), (816, 'Likouala', 49), (817, 'Niari', 49), (818, 'Plateaux', 49), (819, 'Pool', 49), (820, 'Sangha', 49), (821, 'Bandundu', 50), (822, 'Bas-Congo', 50), (823, 'Equateur', 50), (824, 'Haut-Congo', 50), (825, 'Kasai-Occidental', 50), (826, 'Kasai-Oriental', 50), (827, 'Katanga', 50), (828, 'Kinshasa', 50), (829, 'Maniema', 50), (830, 'Nord-Kivu', 50), (831, 'Sud-Kivu', 50), (832, 'Aitutaki', 51), (833, 'Atiu', 51), (834, 'Mangaia', 51), (835, 'Manihiki', 51), (836, 'Mauke', 51), (837, 'Mitiaro', 51), (838, 'Nassau', 51), (839, 'Pukapuka', 51), (840, 'Rakahanga', 51), (841, 'Rarotonga', 51), (842, 'Tongareva', 51), (843, 'Alajuela', 52), (844, 'Cartago', 52), (845, 'Guanacaste', 52), (846, 'Heredia', 52), (847, 'Limon', 52), (848, 'Puntarenas', 52), (849, 'San Jose', 52), (850, 'Abidjan', 53), (851, 'Agneby', 53), (852, 'Bafing', 53), (853, 'Denguele', 53), (854, 'Dix-huit Montagnes', 53), (855, 'Fromager', 53), (856, 'Haut-Sassandra', 53), (857, 'Lacs', 53), (858, 'Lagunes', 53), (859, 'Marahoue', 53), (860, 'Moyen-Cavally', 53), (861, 'Moyen-Comoe', 53), (862, 'N\'zi-Comoe', 53), (863, 'Sassandra', 53), (864, 'Savanes', 53), (865, 'Sud-Bandama', 53), (866, 'Sud-Comoe', 53), (867, 'Vallee du Bandama', 53), (868, 'Worodougou', 53), (869, 'Zanzan', 53), (870, 'Bjelovar-Bilogora', 54), (871, 'Dubrovnik-Neretva', 54), (872, 'Grad Zagreb', 54), (873, 'Istra', 54), (874, 'Karlovac', 54), (875, 'Koprivnica-Krizhevci', 54), (876, 'Krapina-Zagorje', 54), (877, 'Lika-Senj', 54), (878, 'Medhimurje', 54), (879, 'Medimurska Zupanija', 54), (880, 'Osijek-Baranja', 54), (881, 'Osjecko-Baranjska Zupanija', 54), (882, 'Pozhega-Slavonija', 54), (883, 'Primorje-Gorski Kotar', 54), (884, 'Shibenik-Knin', 54), (885, 'Sisak-Moslavina', 54), (886, 'Slavonski Brod-Posavina', 54), (887, 'Split-Dalmacija', 54), (888, 'Varazhdin', 54), (889, 'Virovitica-Podravina', 54), (890, 'Vukovar-Srijem', 54), (891, 'Zadar', 54), (892, 'Zagreb', 54), (893, 'Camaguey', 55), (894, 'Ciego de Avila', 55), (895, 'Cienfuegos', 55), (896, 'Ciudad de la Habana', 55), (897, 'Granma', 55), (898, 'Guantanamo', 55), (899, 'Habana', 55), (900, 'Holguin', 55), (901, 'Isla de la Juventud', 55), (902, 'La Habana', 55), (903, 'Las Tunas', 55), (904, 'Matanzas', 55), (905, 'Pinar del Rio', 55), (906, 'Sancti Spiritus', 55), (907, 'Santiago de Cuba', 55), (908, 'Villa Clara', 55), (909, 'Government controlled area', 56), (910, 'Limassol', 56), (911, 'Nicosia District', 56), (912, 'Paphos', 56), (913, 'Turkish controlled area', 56), (914, 'Central Bohemian', 57), (915, 'Frycovice', 57), (916, 'Jihocesky Kraj', 57), (917, 'Jihochesky', 57), (918, 'Jihomoravsky', 57), (919, 'Karlovarsky', 57), (920, 'Klecany', 57), (921, 'Kralovehradecky', 57), (922, 'Liberecky', 57), (923, 'Lipov', 57), (924, 'Moravskoslezsky', 57), (925, 'Olomoucky', 57), (926, 'Olomoucky Kraj', 57), (927, 'Pardubicky', 57), (928, 'Plzensky', 57), (929, 'Praha', 57), (930, 'Rajhrad', 57), (931, 'Smirice', 57), (932, 'South Moravian', 57), (933, 'Straz nad Nisou', 57), (934, 'Stredochesky', 57), (935, 'Unicov', 57), (936, 'Ustecky', 57), (937, 'Valletta', 57), (938, 'Velesin', 57), (939, 'Vysochina', 57), (940, 'Zlinsky', 57), (941, 'Arhus', 58), (942, 'Bornholm', 58), (943, 'Frederiksborg', 58), (944, 'Fyn', 58), (945, 'Hovedstaden', 58), (946, 'Kobenhavn', 58), (947, 'Kobenhavns Amt', 58), (948, 'Kobenhavns Kommune', 58), (949, 'Nordjylland', 58), (950, 'Ribe', 58), (951, 'Ringkobing', 58), (952, 'Roervig', 58), (953, 'Roskilde', 58), (954, 'Roslev', 58), (955, 'Sjaelland', 58), (956, 'Soeborg', 58), (957, 'Sonderjylland', 58), (958, 'Storstrom', 58), (959, 'Syddanmark', 58), (960, 'Toelloese', 58), (961, 'Vejle', 58), (962, 'Vestsjalland', 58), (963, 'Viborg', 58), (964, '\'Ali Sabih', 59), (965, 'Dikhil', 59), (966, 'Jibuti', 59), (967, 'Tajurah', 59), (968, 'Ubuk', 59), (969, 'Saint Andrew', 60), (970, 'Saint David', 60), (971, 'Saint George', 60), (972, 'Saint John', 60), (973, 'Saint Joseph', 60), (974, 'Saint Luke', 60), (975, 'Saint Mark', 60), (976, 'Saint Patrick', 60), (977, 'Saint Paul', 60), (978, 'Saint Peter', 60), (979, 'Azua', 61), (980, 'Bahoruco', 61), (981, 'Barahona', 61), (982, 'Dajabon', 61), (983, 'Distrito Nacional', 61), (984, 'Duarte', 61), (985, 'El Seybo', 61), (986, 'Elias Pina', 61), (987, 'Espaillat', 61), (988, 'Hato Mayor', 61), (989, 'Independencia', 61), (990, 'La Altagracia', 61), (991, 'La Romana', 61), (992, 'La Vega', 61), (993, 'Maria Trinidad Sanchez', 61), (994, 'Monsenor Nouel', 61), (995, 'Monte Cristi', 61), (996, 'Monte Plata', 61), (997, 'Pedernales', 61), (998, 'Peravia', 61), (999, 'Puerto Plata', 61), (1000, 'Salcedo', 61), (1001, 'Samana', 61), (1002, 'San Cristobal', 61), (1003, 'San Juan', 61), (1004, 'San Pedro de Macoris', 61), (1005, 'Sanchez Ramirez', 61), (1006, 'Santiago', 61), (1007, 'Santiago Rodriguez', 61), (1008, 'Valverde', 61), (1009, 'Aileu', 62), (1010, 'Ainaro', 62), (1011, 'Ambeno', 62), (1012, 'Baucau', 62), (1013, 'Bobonaro', 62), (1014, 'Cova Lima', 62), (1015, 'Dili', 62), (1016, 'Ermera', 62), (1017, 'Lautem', 62), (1018, 'Liquica', 62), (1019, 'Manatuto', 62), (1020, 'Manufahi', 62), (1021, 'Viqueque', 62), (1022, 'Azuay', 63), (1023, 'Bolivar', 63), (1024, 'Canar', 63), (1025, 'Carchi', 63), (1026, 'Chimborazo', 63), (1027, 'Cotopaxi', 63), (1028, 'El Oro', 63), (1029, 'Esmeraldas', 63), (1030, 'Galapagos', 63), (1031, 'Guayas', 63), (1032, 'Imbabura', 63), (1033, 'Loja', 63), (1034, 'Los Rios', 63), (1035, 'Manabi', 63), (1036, 'Morona Santiago', 63), (1037, 'Napo', 63), (1038, 'Orellana', 63), (1039, 'Pastaza', 63), (1040, 'Pichincha', 63), (1041, 'Sucumbios', 63), (1042, 'Tungurahua', 63), (1043, 'Zamora Chinchipe', 63), (1044, 'Aswan', 64), (1045, 'Asyut', 64), (1046, 'Bani Suwayf', 64), (1047, 'Bur Sa\'id', 64), (1048, 'Cairo', 64), (1049, 'Dumyat', 64), (1050, 'Kafr-ash-Shaykh', 64), (1051, 'Matruh', 64), (1052, 'Muhafazat ad Daqahliyah', 64), (1053, 'Muhafazat al Fayyum', 64), (1054, 'Muhafazat al Gharbiyah', 64), (1055, 'Muhafazat al Iskandariyah', 64), (1056, 'Muhafazat al Qahirah', 64), (1057, 'Qina', 64), (1058, 'Sawhaj', 64), (1059, 'Sina al-Janubiyah', 64), (1060, 'Sina ash-Shamaliyah', 64), (1061, 'ad-Daqahliyah', 64), (1062, 'al-Bahr-al-Ahmar', 64), (1063, 'al-Buhayrah', 64), (1064, 'al-Fayyum', 64), (1065, 'al-Gharbiyah', 64), (1066, 'al-Iskandariyah', 64), (1067, 'al-Ismailiyah', 64), (1068, 'al-Jizah', 64), (1069, 'al-Minufiyah', 64), (1070, 'al-Minya', 64), (1071, 'al-Qahira', 64), (1072, 'al-Qalyubiyah', 64), (1073, 'al-Uqsur', 64), (1074, 'al-Wadi al-Jadid', 64), (1075, 'as-Suways', 64), (1076, 'ash-Sharqiyah', 64), (1077, 'Ahuachapan', 65), (1078, 'Cabanas', 65), (1079, 'Chalatenango', 65), (1080, 'Cuscatlan', 65), (1081, 'La Libertad', 65), (1082, 'La Paz', 65), (1083, 'La Union', 65), (1084, 'Morazan', 65), (1085, 'San Miguel', 65), (1086, 'San Salvador', 65), (1087, 'San Vicente', 65), (1088, 'Santa Ana', 65), (1089, 'Sonsonate', 65), (1090, 'Usulutan', 65), (1091, 'Annobon', 66), (1092, 'Bioko Norte', 66), (1093, 'Bioko Sur', 66), (1094, 'Centro Sur', 66), (1095, 'Kie-Ntem', 66), (1096, 'Litoral', 66), (1097, 'Wele-Nzas', 66), (1098, 'Anseba', 67), (1099, 'Debub', 67), (1100, 'Debub-Keih-Bahri', 67), (1101, 'Gash-Barka', 67), (1102, 'Maekel', 67), (1103, 'Semien-Keih-Bahri', 67), (1104, 'Harju', 68), (1105, 'Hiiu', 68), (1106, 'Ida-Viru', 68), (1107, 'Jarva', 68), (1108, 'Jogeva', 68), (1109, 'Laane', 68), (1110, 'Laane-Viru', 68), (1111, 'Parnu', 68), (1112, 'Polva', 68), (1113, 'Rapla', 68), (1114, 'Saare', 68), (1115, 'Tartu', 68), (1116, 'Valga', 68), (1117, 'Viljandi', 68), (1118, 'Voru', 68), (1119, 'Addis Abeba', 69), (1120, 'Afar', 69), (1121, 'Amhara', 69), (1122, 'Benishangul', 69), (1123, 'Diredawa', 69), (1124, 'Gambella', 69), (1125, 'Harar', 69), (1126, 'Jigjiga', 69), (1127, 'Mekele', 69), (1128, 'Oromia', 69), (1129, 'Somali', 69), (1130, 'Southern', 69), (1131, 'Tigray', 69), (1132, 'Christmas Island', 70), (1133, 'Cocos Islands', 70), (1134, 'Coral Sea Islands', 70), (1135, 'Falkland Islands', 71), (1136, 'South Georgia', 71), (1137, 'Klaksvik', 72), (1138, 'Nor ara Eysturoy', 72), (1139, 'Nor oy', 72), (1140, 'Sandoy', 72), (1141, 'Streymoy', 72), (1142, 'Su uroy', 72), (1143, 'Sy ra Eysturoy', 72), (1144, 'Torshavn', 72), (1145, 'Vaga', 72), (1146, 'Central', 73), (1147, 'Eastern', 73), (1148, 'Northern', 73), (1149, 'South Pacific', 73), (1150, 'Western', 73), (1151, 'Ahvenanmaa', 74), (1152, 'Etela-Karjala', 74), (1153, 'Etela-Pohjanmaa', 74), (1154, 'Etela-Savo', 74), (1155, 'Etela-Suomen Laani', 74), (1156, 'Ita-Suomen Laani', 74), (1157, 'Ita-Uusimaa', 74), (1158, 'Kainuu', 74), (1159, 'Kanta-Hame', 74), (1160, 'Keski-Pohjanmaa', 74), (1161, 'Keski-Suomi', 74), (1162, 'Kymenlaakso', 74), (1163, 'Lansi-Suomen Laani', 74), (1164, 'Lappi', 74), (1165, 'Northern Savonia', 74), (1166, 'Ostrobothnia', 74), (1167, 'Oulun Laani', 74), (1168, 'Paijat-Hame', 74), (1169, 'Pirkanmaa', 74), (1170, 'Pohjanmaa', 74), (1171, 'Pohjois-Karjala', 74), (1172, 'Pohjois-Pohjanmaa', 74), (1173, 'Pohjois-Savo', 74), (1174, 'Saarijarvi', 74), (1175, 'Satakunta', 74), (1176, 'Southern Savonia', 74), (1177, 'Tavastia Proper', 74), (1178, 'Uleaborgs Lan', 74), (1179, 'Uusimaa', 74), (1180, 'Varsinais-Suomi', 74), (1181, 'Ain', 75), (1182, 'Aisne', 75), (1183, 'Albi Le Sequestre', 75), (1184, 'Allier', 75), (1185, 'Alpes-Cote dAzur', 75), (1186, 'Alpes-Maritimes', 75), (1187, 'Alpes-de-Haute-Provence', 75), (1188, 'Alsace', 75), (1189, 'Aquitaine', 75), (1190, 'Ardeche', 75), (1191, 'Ardennes', 75), (1192, 'Ariege', 75), (1193, 'Aube', 75), (1194, 'Aude', 75), (1195, 'Auvergne', 75), (1196, 'Aveyron', 75), (1197, 'Bas-Rhin', 75), (1198, 'Basse-Normandie', 75), (1199, 'Bouches-du-Rhone', 75), (1200, 'Bourgogne', 75), (1201, 'Bretagne', 75), (1202, 'Brittany', 75), (1203, 'Burgundy', 75), (1204, 'Calvados', 75), (1205, 'Cantal', 75), (1206, 'Cedex', 75), (1207, 'Centre', 75), (1208, 'Charente', 75), (1209, 'Charente-Maritime', 75), (1210, 'Cher', 75), (1211, 'Correze', 75), (1212, 'Corse-du-Sud', 75), (1213, 'Cote-d\'Or', 75), (1214, 'Cotes-d\'Armor', 75), (1215, 'Creuse', 75), (1216, 'Crolles', 75), (1217, 'Deux-Sevres', 75), (1218, 'Dordogne', 75), (1219, 'Doubs', 75), (1220, 'Drome', 75), (1221, 'Essonne', 75), (1222, 'Eure', 75), (1223, 'Eure-et-Loir', 75), (1224, 'Feucherolles', 75), (1225, 'Finistere', 75), (1226, 'Franche-Comte', 75), (1227, 'Gard', 75), (1228, 'Gers', 75), (1229, 'Gironde', 75), (1230, 'Haut-Rhin', 75), (1231, 'Haute-Corse', 75), (1232, 'Haute-Garonne', 75), (1233, 'Haute-Loire', 75), (1234, 'Haute-Marne', 75), (1235, 'Haute-Saone', 75), (1236, 'Haute-Savoie', 75), (1237, 'Haute-Vienne', 75), (1238, 'Hautes-Alpes', 75), (1239, 'Hautes-Pyrenees', 75), (1240, 'Hauts-de-Seine', 75), (1241, 'Herault', 75), (1242, 'Ile-de-France', 75), (1243, 'Ille-et-Vilaine', 75), (1244, 'Indre', 75), (1245, 'Indre-et-Loire', 75), (1246, 'Isere', 75), (1247, 'Jura', 75), (1248, 'Klagenfurt', 75), (1249, 'Landes', 75), (1250, 'Languedoc-Roussillon', 75), (1251, 'Larcay', 75), (1252, 'Le Castellet', 75), (1253, 'Le Creusot', 75), (1254, 'Limousin', 75), (1255, 'Loir-et-Cher', 75), (1256, 'Loire', 75), (1257, 'Loire-Atlantique', 75), (1258, 'Loiret', 75), (1259, 'Lorraine', 75), (1260, 'Lot', 75), (1261, 'Lot-et-Garonne', 75), (1262, 'Lower Normandy', 75), (1263, 'Lozere', 75), (1264, 'Maine-et-Loire', 75), (1265, 'Manche', 75), (1266, 'Marne', 75), (1267, 'Mayenne', 75), (1268, 'Meurthe-et-Moselle', 75), (1269, 'Meuse', 75), (1270, 'Midi-Pyrenees', 75), (1271, 'Morbihan', 75), (1272, 'Moselle', 75), (1273, 'Nievre', 75), (1274, 'Nord', 75), (1275, 'Nord-Pas-de-Calais', 75), (1276, 'Oise', 75), (1277, 'Orne', 75), (1278, 'Paris', 75), (1279, 'Pas-de-Calais', 75), (1280, 'Pays de la Loire', 75), (1281, 'Pays-de-la-Loire', 75), (1282, 'Picardy', 75), (1283, 'Puy-de-Dome', 75), (1284, 'Pyrenees-Atlantiques', 75), (1285, 'Pyrenees-Orientales', 75), (1286, 'Quelmes', 75), (1287, 'Rhone', 75), (1288, 'Rhone-Alpes', 75), (1289, 'Saint Ouen', 75), (1290, 'Saint Viatre', 75), (1291, 'Saone-et-Loire', 75), (1292, 'Sarthe', 75), (1293, 'Savoie', 75), (1294, 'Seine-Maritime', 75), (1295, 'Seine-Saint-Denis', 75), (1296, 'Seine-et-Marne', 75), (1297, 'Somme', 75), (1298, 'Sophia Antipolis', 75), (1299, 'Souvans', 75), (1300, 'Tarn', 75), (1301, 'Tarn-et-Garonne', 75), (1302, 'Territoire de Belfort', 75), (1303, 'Treignac', 75), (1304, 'Upper Normandy', 75), (1305, 'Val-d\'Oise', 75), (1306, 'Val-de-Marne', 75), (1307, 'Var', 75), (1308, 'Vaucluse', 75), (1309, 'Vellise', 75), (1310, 'Vendee', 75), (1311, 'Vienne', 75), (1312, 'Vosges', 75), (1313, 'Yonne', 75), (1314, 'Yvelines', 75), (1315, 'Cayenne', 76), (1316, 'Saint-Laurent-du-Maroni', 76), (1317, 'Iles du Vent', 77), (1318, 'Iles sous le Vent', 77), (1319, 'Marquesas', 77), (1320, 'Tuamotu', 77), (1321, 'Tubuai', 77), (1322, 'Amsterdam', 78), (1323, 'Crozet Islands', 78), (1324, 'Kerguelen', 78), (1325, 'Estuaire', 79), (1326, 'Haut-Ogooue', 79), (1327, 'Moyen-Ogooue', 79), (1328, 'Ngounie', 79), (1329, 'Nyanga', 79), (1330, 'Ogooue-Ivindo', 79), (1331, 'Ogooue-Lolo', 79), (1332, 'Ogooue-Maritime', 79), (1333, 'Woleu-Ntem', 79), (1334, 'Banjul', 80), (1335, 'Basse', 80), (1336, 'Brikama', 80), (1337, 'Janjanbureh', 80), (1338, 'Kanifing', 80), (1339, 'Kerewan', 80), (1340, 'Kuntaur', 80), (1341, 'Mansakonko', 80), (1342, 'Abhasia', 81), (1343, 'Ajaria', 81), (1344, 'Guria', 81), (1345, 'Imereti', 81), (1346, 'Kaheti', 81), (1347, 'Kvemo Kartli', 81), (1348, 'Mcheta-Mtianeti', 81), (1349, 'Racha', 81), (1350, 'Samagrelo-Zemo Svaneti', 81), (1351, 'Samche-Zhavaheti', 81), (1352, 'Shida Kartli', 81), (1353, 'Tbilisi', 81), (1354, 'Auvergne', 82), (1355, 'Baden-Wurttemberg', 82), (1356, 'Bavaria', 82), (1357, 'Bayern', 82), (1358, 'Beilstein Wurtt', 82), (1359, 'Berlin', 82), (1360, 'Brandenburg', 82), (1361, 'Bremen', 82), (1362, 'Dreisbach', 82), (1363, 'Freistaat Bayern', 82), (1364, 'Hamburg', 82), (1365, 'Hannover', 82), (1366, 'Heroldstatt', 82), (1367, 'Hessen', 82), (1368, 'Kortenberg', 82), (1369, 'Laasdorf', 82), (1370, 'Land Baden-Wurttemberg', 82), (1371, 'Land Bayern', 82), (1372, 'Land Brandenburg', 82), (1373, 'Land Hessen', 82), (1374, 'Land Mecklenburg-Vorpommern', 82), (1375, 'Land Nordrhein-Westfalen', 82), (1376, 'Land Rheinland-Pfalz', 82), (1377, 'Land Sachsen', 82), (1378, 'Land Sachsen-Anhalt', 82), (1379, 'Land Thuringen', 82), (1380, 'Lower Saxony', 82), (1381, 'Mecklenburg-Vorpommern', 82), (1382, 'Mulfingen', 82), (1383, 'Munich', 82), (1384, 'Neubeuern', 82), (1385, 'Niedersachsen', 82), (1386, 'Noord-Holland', 82), (1387, 'Nordrhein-Westfalen', 82), (1388, 'North Rhine-Westphalia', 82), (1389, 'Osterode', 82), (1390, 'Rheinland-Pfalz', 82), (1391, 'Rhineland-Palatinate', 82), (1392, 'Saarland', 82), (1393, 'Sachsen', 82), (1394, 'Sachsen-Anhalt', 82), (1395, 'Saxony', 82), (1396, 'Schleswig-Holstein', 82), (1397, 'Thuringia', 82), (1398, 'Webling', 82), (1399, 'Weinstrabe', 82), (1400, 'schlobborn', 82), (1401, 'Ashanti', 83), (1402, 'Brong-Ahafo', 83), (1403, 'Central', 83), (1404, 'Eastern', 83), (1405, 'Greater Accra', 83), (1406, 'Northern', 83), (1407, 'Upper East', 83), (1408, 'Upper West', 83), (1409, 'Volta', 83), (1410, 'Western', 83), (1411, 'Gibraltar', 84), (1412, 'Acharnes', 85), (1413, 'Ahaia', 85), (1414, 'Aitolia kai Akarnania', 85), (1415, 'Argolis', 85), (1416, 'Arkadia', 85), (1417, 'Arta', 85), (1418, 'Attica', 85), (1419, 'Attiki', 85), (1420, 'Ayion Oros', 85), (1421, 'Crete', 85), (1422, 'Dodekanisos', 85), (1423, 'Drama', 85), (1424, 'Evia', 85), (1425, 'Evritania', 85), (1426, 'Evros', 85), (1427, 'Evvoia', 85), (1428, 'Florina', 85), (1429, 'Fokis', 85), (1430, 'Fthiotis', 85), (1431, 'Grevena', 85), (1432, 'Halandri', 85), (1433, 'Halkidiki', 85), (1434, 'Hania', 85), (1435, 'Heraklion', 85), (1436, 'Hios', 85), (1437, 'Ilia', 85), (1438, 'Imathia', 85), (1439, 'Ioannina', 85), (1440, 'Iraklion', 85), (1441, 'Karditsa', 85), (1442, 'Kastoria', 85), (1443, 'Kavala', 85), (1444, 'Kefallinia', 85), (1445, 'Kerkira', 85), (1446, 'Kiklades', 85), (1447, 'Kilkis', 85), (1448, 'Korinthia', 85), (1449, 'Kozani', 85), (1450, 'Lakonia', 85), (1451, 'Larisa', 85), (1452, 'Lasithi', 85), (1453, 'Lesvos', 85), (1454, 'Levkas', 85), (1455, 'Magnisia', 85), (1456, 'Messinia', 85), (1457, 'Nomos Attikis', 85), (1458, 'Nomos Zakynthou', 85), (1459, 'Pella', 85), (1460, 'Pieria', 85), (1461, 'Piraios', 85), (1462, 'Preveza', 85), (1463, 'Rethimni', 85), (1464, 'Rodopi', 85), (1465, 'Samos', 85), (1466, 'Serrai', 85), (1467, 'Thesprotia', 85), (1468, 'Thessaloniki', 85), (1469, 'Trikala', 85), (1470, 'Voiotia', 85), (1471, 'West Greece', 85), (1472, 'Xanthi', 85), (1473, 'Zakinthos', 85), (1474, 'Aasiaat', 86), (1475, 'Ammassalik', 86), (1476, 'Illoqqortoormiut', 86), (1477, 'Ilulissat', 86), (1478, 'Ivittuut', 86), (1479, 'Kangaatsiaq', 86), (1480, 'Maniitsoq', 86), (1481, 'Nanortalik', 86), (1482, 'Narsaq', 86), (1483, 'Nuuk', 86), (1484, 'Paamiut', 86), (1485, 'Qaanaaq', 86), (1486, 'Qaqortoq', 86), (1487, 'Qasigiannguit', 86), (1488, 'Qeqertarsuaq', 86), (1489, 'Sisimiut', 86), (1490, 'Udenfor kommunal inddeling', 86), (1491, 'Upernavik', 86), (1492, 'Uummannaq', 86), (1493, 'Carriacou-Petite Martinique', 87), (1494, 'Saint Andrew', 87), (1495, 'Saint Davids', 87), (1496, 'Saint George\'s', 87), (1497, 'Saint John', 87), (1498, 'Saint Mark', 87), (1499, 'Saint Patrick', 87), (1500, 'Basse-Terre', 88), (1501, 'Grande-Terre', 88), (1502, 'Iles des Saintes', 88), (1503, 'La Desirade', 88), (1504, 'Marie-Galante', 88), (1505, 'Saint Barthelemy', 88), (1506, 'Saint Martin', 88), (1507, 'Agana Heights', 89), (1508, 'Agat', 89), (1509, 'Barrigada', 89), (1510, 'Chalan-Pago-Ordot', 89), (1511, 'Dededo', 89), (1512, 'Hagatna', 89), (1513, 'Inarajan', 89), (1514, 'Mangilao', 89), (1515, 'Merizo', 89), (1516, 'Mongmong-Toto-Maite', 89), (1517, 'Santa Rita', 89), (1518, 'Sinajana', 89), (1519, 'Talofofo', 89), (1520, 'Tamuning', 89), (1521, 'Yigo', 89), (1522, 'Yona', 89), (1523, 'Alta Verapaz', 90), (1524, 'Baja Verapaz', 90), (1525, 'Chimaltenango', 90), (1526, 'Chiquimula', 90), (1527, 'El Progreso', 90), (1528, 'Escuintla', 90), (1529, 'Guatemala', 90), (1530, 'Huehuetenango', 90), (1531, 'Izabal', 90), (1532, 'Jalapa', 90), (1533, 'Jutiapa', 90), (1534, 'Peten', 90), (1535, 'Quezaltenango', 90), (1536, 'Quiche', 90), (1537, 'Retalhuleu', 90), (1538, 'Sacatepequez', 90), (1539, 'San Marcos', 90), (1540, 'Santa Rosa', 90), (1541, 'Solola', 90), (1542, 'Suchitepequez', 90), (1543, 'Totonicapan', 90), (1544, 'Zacapa', 90), (1545, 'Alderney', 91), (1546, 'Castel', 91), (1547, 'Forest', 91), (1548, 'Saint Andrew', 91), (1549, 'Saint Martin', 91), (1550, 'Saint Peter Port', 91), (1551, 'Saint Pierre du Bois', 91), (1552, 'Saint Sampson', 91), (1553, 'Saint Saviour', 91), (1554, 'Sark', 91), (1555, 'Torteval', 91), (1556, 'Vale', 91), (1557, 'Beyla', 92), (1558, 'Boffa', 92), (1559, 'Boke', 92), (1560, 'Conakry', 92), (1561, 'Coyah', 92), (1562, 'Dabola', 92), (1563, 'Dalaba', 92), (1564, 'Dinguiraye', 92), (1565, 'Faranah', 92), (1566, 'Forecariah', 92), (1567, 'Fria', 92), (1568, 'Gaoual', 92), (1569, 'Gueckedou', 92), (1570, 'Kankan', 92), (1571, 'Kerouane', 92), (1572, 'Kindia', 92), (1573, 'Kissidougou', 92), (1574, 'Koubia', 92), (1575, 'Koundara', 92), (1576, 'Kouroussa', 92), (1577, 'Labe', 92), (1578, 'Lola', 92), (1579, 'Macenta', 92), (1580, 'Mali', 92), (1581, 'Mamou', 92), (1582, 'Mandiana', 92), (1583, 'Nzerekore', 92), (1584, 'Pita', 92), (1585, 'Siguiri', 92), (1586, 'Telimele', 92), (1587, 'Tougue', 92), (1588, 'Yomou', 92), (1589, 'Bafata', 93), (1590, 'Bissau', 93), (1591, 'Bolama', 93), (1592, 'Cacheu', 93), (1593, 'Gabu', 93), (1594, 'Oio', 93), (1595, 'Quinara', 93), (1596, 'Tombali', 93), (1597, 'Barima-Waini', 94), (1598, 'Cuyuni-Mazaruni', 94), (1599, 'Demerara-Mahaica', 94), (1600, 'East Berbice-Corentyne', 94), (1601, 'Essequibo Islands-West Demerar', 94), (1602, 'Mahaica-Berbice', 94), (1603, 'Pomeroon-Supenaam', 94), (1604, 'Potaro-Siparuni', 94), (1605, 'Upper Demerara-Berbice', 94), (1606, 'Upper Takutu-Upper Essequibo', 94), (1607, 'Artibonite', 95), (1608, 'Centre', 95), (1609, 'Grand\'Anse', 95), (1610, 'Nord', 95), (1611, 'Nord-Est', 95), (1612, 'Nord-Ouest', 95), (1613, 'Ouest', 95), (1614, 'Sud', 95), (1615, 'Sud-Est', 95), (1616, 'Heard and McDonald Islands', 96), (1617, 'Atlantida', 97), (1618, 'Choluteca', 97), (1619, 'Colon', 97), (1620, 'Comayagua', 97), (1621, 'Copan', 97), (1622, 'Cortes', 97), (1623, 'Distrito Central', 97), (1624, 'El Paraiso', 97), (1625, 'Francisco Morazan', 97), (1626, 'Gracias a Dios', 97), (1627, 'Intibuca', 97), (1628, 'Islas de la Bahia', 97), (1629, 'La Paz', 97), (1630, 'Lempira', 97), (1631, 'Ocotepeque', 97), (1632, 'Olancho', 97), (1633, 'Santa Barbara', 97), (1634, 'Valle', 97), (1635, 'Yoro', 97), (1636, 'Hong Kong', 98), (1637, 'Bacs-Kiskun', 99), (1638, 'Baranya', 99), (1639, 'Bekes', 99), (1640, 'Borsod-Abauj-Zemplen', 99), (1641, 'Budapest', 99), (1642, 'Csongrad', 99), (1643, 'Fejer', 99), (1644, 'Gyor-Moson-Sopron', 99), (1645, 'Hajdu-Bihar', 99), (1646, 'Heves', 99), (1647, 'Jasz-Nagykun-Szolnok', 99), (1648, 'Komarom-Esztergom', 99), (1649, 'Nograd', 99), (1650, 'Pest', 99), (1651, 'Somogy', 99), (1652, 'Szabolcs-Szatmar-Bereg', 99), (1653, 'Tolna', 99), (1654, 'Vas', 99), (1655, 'Veszprem', 99), (1656, 'Zala', 99), (1657, 'Austurland', 100), (1658, 'Gullbringusysla', 100), (1659, 'Hofu borgarsva i', 100), (1660, 'Nor urland eystra', 100), (1661, 'Nor urland vestra', 100), (1662, 'Su urland', 100), (1663, 'Su urnes', 100), (1664, 'Vestfir ir', 100), (1665, 'Vesturland', 100), (1666, 'Aceh', 102), (1667, 'Bali', 102), (1668, 'Bangka-Belitung', 102), (1669, 'Banten', 102), (1670, 'Bengkulu', 102), (1671, 'Gandaria', 102), (1672, 'Gorontalo', 102), (1673, 'Jakarta', 102), (1674, 'Jambi', 102), (1675, 'Jawa Barat', 102), (1676, 'Jawa Tengah', 102), (1677, 'Jawa Timur', 102), (1678, 'Kalimantan Barat', 102), (1679, 'Kalimantan Selatan', 102), (1680, 'Kalimantan Tengah', 102), (1681, 'Kalimantan Timur', 102), (1682, 'Kendal', 102), (1683, 'Lampung', 102), (1684, 'Maluku', 102), (1685, 'Maluku Utara', 102), (1686, 'Nusa Tenggara Barat', 102), (1687, 'Nusa Tenggara Timur', 102), (1688, 'Papua', 102), (1689, 'Riau', 102), (1690, 'Riau Kepulauan', 102), (1691, 'Solo', 102), (1692, 'Sulawesi Selatan', 102), (1693, 'Sulawesi Tengah', 102), (1694, 'Sulawesi Tenggara', 102), (1695, 'Sulawesi Utara', 102), (1696, 'Sumatera Barat', 102), (1697, 'Sumatera Selatan', 102), (1698, 'Sumatera Utara', 102), (1699, 'Yogyakarta', 102), (1700, 'Ardabil', 103), (1701, 'Azarbayjan-e Bakhtari', 103), (1702, 'Azarbayjan-e Khavari', 103), (1703, 'Bushehr', 103), (1704, 'Chahar Mahal-e Bakhtiari', 103), (1705, 'Esfahan', 103), (1706, 'Fars', 103), (1707, 'Gilan', 103), (1708, 'Golestan', 103), (1709, 'Hamadan', 103), (1710, 'Hormozgan', 103), (1711, 'Ilam', 103), (1712, 'Kerman', 103), (1713, 'Kermanshah', 103), (1714, 'Khorasan', 103), (1715, 'Khuzestan', 103), (1716, 'Kohgiluyeh-e Boyerahmad', 103), (1717, 'Kordestan', 103), (1718, 'Lorestan', 103), (1719, 'Markazi', 103), (1720, 'Mazandaran', 103), (1721, 'Ostan-e Esfahan', 103), (1722, 'Qazvin', 103), (1723, 'Qom', 103), (1724, 'Semnan', 103), (1725, 'Sistan-e Baluchestan', 103), (1726, 'Tehran', 103), (1727, 'Yazd', 103), (1728, 'Zanjan', 103), (1729, 'Babil', 104), (1730, 'Baghdad', 104), (1731, 'Dahuk', 104), (1732, 'Dhi Qar', 104), (1733, 'Diyala', 104), (1734, 'Erbil', 104), (1735, 'Irbil', 104), (1736, 'Karbala', 104), (1737, 'Kurdistan', 104), (1738, 'Maysan', 104), (1739, 'Ninawa', 104), (1740, 'Salah-ad-Din', 104), (1741, 'Wasit', 104), (1742, 'al-Anbar', 104), (1743, 'al-Basrah', 104), (1744, 'al-Muthanna', 104), (1745, 'al-Qadisiyah', 104), (1746, 'an-Najaf', 104), (1747, 'as-Sulaymaniyah', 104), (1748, 'at-Ta\'mim', 104), (1749, 'Armagh', 105), (1750, 'Carlow', 105), (1751, 'Cavan', 105), (1752, 'Clare', 105), (1753, 'Cork', 105), (1754, 'Donegal', 105), (1755, 'Dublin', 105), (1756, 'Galway', 105), (1757, 'Kerry', 105), (1758, 'Kildare', 105), (1759, 'Kilkenny', 105), (1760, 'Laois', 105), (1761, 'Leinster', 105), (1762, 'Leitrim', 105), (1763, 'Limerick', 105), (1764, 'Loch Garman', 105), (1765, 'Longford', 105), (1766, 'Louth', 105), (1767, 'Mayo', 105), (1768, 'Meath', 105), (1769, 'Monaghan', 105), (1770, 'Offaly', 105), (1771, 'Roscommon', 105), (1772, 'Sligo', 105), (1773, 'Tipperary North Riding', 105), (1774, 'Tipperary South Riding', 105), (1775, 'Ulster', 105), (1776, 'Waterford', 105), (1777, 'Westmeath', 105), (1778, 'Wexford', 105), (1779, 'Wicklow', 105), (1780, 'Beit Hanania', 106), (1781, 'Ben Gurion Airport', 106), (1782, 'Bethlehem', 106), (1783, 'Caesarea', 106), (1784, 'Centre', 106), (1785, 'Gaza', 106), (1786, 'Hadaron', 106), (1787, 'Haifa District', 106), (1788, 'Hamerkaz', 106), (1789, 'Hazafon', 106), (1790, 'Hebron', 106), (1791, 'Jaffa', 106), (1792, 'Jerusalem', 106), (1793, 'Khefa', 106), (1794, 'Kiryat Yam', 106), (1795, 'Lower Galilee', 106), (1796, 'Qalqilya', 106), (1797, 'Talme Elazar', 106), (1798, 'Tel Aviv', 106), (1799, 'Tsafon', 106), (1800, 'Umm El Fahem', 106), (1801, 'Yerushalayim', 106), (1802, 'Abruzzi', 107), (1803, 'Abruzzo', 107), (1804, 'Agrigento', 107), (1805, 'Alessandria', 107), (1806, 'Ancona', 107), (1807, 'Arezzo', 107), (1808, 'Ascoli Piceno', 107), (1809, 'Asti', 107), (1810, 'Avellino', 107), (1811, 'Bari', 107), (1812, 'Basilicata', 107), (1813, 'Belluno', 107), (1814, 'Benevento', 107), (1815, 'Bergamo', 107), (1816, 'Biella', 107), (1817, 'Bologna', 107), (1818, 'Bolzano', 107), (1819, 'Brescia', 107), (1820, 'Brindisi', 107), (1821, 'Calabria', 107), (1822, 'Campania', 107), (1823, 'Cartoceto', 107), (1824, 'Caserta', 107), (1825, 'Catania', 107), (1826, 'Chieti', 107), (1827, 'Como', 107), (1828, 'Cosenza', 107), (1829, 'Cremona', 107), (1830, 'Cuneo', 107), (1831, 'Emilia-Romagna', 107), (1832, 'Ferrara', 107), (1833, 'Firenze', 107), (1834, 'Florence', 107), (1835, 'Forli-Cesena ', 107), (1836, 'Friuli-Venezia Giulia', 107), (1837, 'Frosinone', 107), (1838, 'Genoa', 107), (1839, 'Gorizia', 107), (1840, 'L\'Aquila', 107), (1841, 'Lazio', 107), (1842, 'Lecce', 107), (1843, 'Lecco', 107), (1844, 'Lecco Province', 107), (1845, 'Liguria', 107), (1846, 'Lodi', 107), (1847, 'Lombardia', 107), (1848, 'Lombardy', 107), (1849, 'Macerata', 107), (1850, 'Mantova', 107), (1851, 'Marche', 107), (1852, 'Messina', 107), (1853, 'Milan', 107), (1854, 'Modena', 107), (1855, 'Molise', 107), (1856, 'Molteno', 107), (1857, 'Montenegro', 107), (1858, 'Monza and Brianza', 107), (1859, 'Naples', 107), (1860, 'Novara', 107), (1861, 'Padova', 107), (1862, 'Parma', 107), (1863, 'Pavia', 107), (1864, 'Perugia', 107), (1865, 'Pesaro-Urbino', 107), (1866, 'Piacenza', 107), (1867, 'Piedmont', 107), (1868, 'Piemonte', 107), (1869, 'Pisa', 107), (1870, 'Pordenone', 107), (1871, 'Potenza', 107), (1872, 'Puglia', 107), (1873, 'Reggio Emilia', 107), (1874, 'Rimini', 107), (1875, 'Roma', 107), (1876, 'Salerno', 107), (1877, 'Sardegna', 107), (1878, 'Sassari', 107), (1879, 'Savona', 107), (1880, 'Sicilia', 107), (1881, 'Siena', 107), (1882, 'Sondrio', 107), (1883, 'South Tyrol', 107), (1884, 'Taranto', 107), (1885, 'Teramo', 107), (1886, 'Torino', 107), (1887, 'Toscana', 107), (1888, 'Trapani', 107), (1889, 'Trentino-Alto Adige', 107), (1890, 'Trento', 107), (1891, 'Treviso', 107), (1892, 'Udine', 107), (1893, 'Umbria', 107), (1894, 'Valle d\'Aosta', 107), (1895, 'Varese', 107), (1896, 'Veneto', 107), (1897, 'Venezia', 107), (1898, 'Verbano-Cusio-Ossola', 107), (1899, 'Vercelli', 107), (1900, 'Verona', 107), (1901, 'Vicenza', 107), (1902, 'Viterbo', 107), (1903, 'Buxoro Viloyati', 108), (1904, 'Clarendon', 108), (1905, 'Hanover', 108), (1906, 'Kingston', 108), (1907, 'Manchester', 108), (1908, 'Portland', 108), (1909, 'Saint Andrews', 108), (1910, 'Saint Ann', 108), (1911, 'Saint Catherine', 108), (1912, 'Saint Elizabeth', 108), (1913, 'Saint James', 108), (1914, 'Saint Mary', 108), (1915, 'Saint Thomas', 108), (1916, 'Trelawney', 108), (1917, 'Westmoreland', 108), (1918, 'Aichi', 109), (1919, 'Akita', 109), (1920, 'Aomori', 109), (1921, 'Chiba', 109), (1922, 'Ehime', 109), (1923, 'Fukui', 109), (1924, 'Fukuoka', 109), (1925, 'Fukushima', 109), (1926, 'Gifu', 109), (1927, 'Gumma', 109), (1928, 'Hiroshima', 109), (1929, 'Hokkaido', 109), (1930, 'Hyogo', 109), (1931, 'Ibaraki', 109), (1932, 'Ishikawa', 109), (1933, 'Iwate', 109), (1934, 'Kagawa', 109), (1935, 'Kagoshima', 109), (1936, 'Kanagawa', 109), (1937, 'Kanto', 109), (1938, 'Kochi', 109), (1939, 'Kumamoto', 109), (1940, 'Kyoto', 109), (1941, 'Mie', 109), (1942, 'Miyagi', 109), (1943, 'Miyazaki', 109), (1944, 'Nagano', 109), (1945, 'Nagasaki', 109), (1946, 'Nara', 109), (1947, 'Niigata', 109), (1948, 'Oita', 109), (1949, 'Okayama', 109), (1950, 'Okinawa', 109), (1951, 'Osaka', 109), (1952, 'Saga', 109), (1953, 'Saitama', 109), (1954, 'Shiga', 109), (1955, 'Shimane', 109), (1956, 'Shizuoka', 109), (1957, 'Tochigi', 109), (1958, 'Tokushima', 109), (1959, 'Tokyo', 109), (1960, 'Tottori', 109), (1961, 'Toyama', 109), (1962, 'Wakayama', 109), (1963, 'Yamagata', 109), (1964, 'Yamaguchi', 109), (1965, 'Yamanashi', 109), (1966, 'Grouville', 110), (1967, 'Saint Brelade', 110), (1968, 'Saint Clement', 110), (1969, 'Saint Helier', 110), (1970, 'Saint John', 110), (1971, 'Saint Lawrence', 110), (1972, 'Saint Martin', 110), (1973, 'Saint Mary', 110), (1974, 'Saint Peter', 110), (1975, 'Saint Saviour', 110), (1976, 'Trinity', 110), (1977, '\'Ajlun', 111), (1978, 'Amman', 111), (1979, 'Irbid', 111), (1980, 'Jarash', 111), (1981, 'Ma\'an', 111), (1982, 'Madaba', 111), (1983, 'al-\'Aqabah', 111), (1984, 'al-Balqa\'', 111), (1985, 'al-Karak', 111), (1986, 'al-Mafraq', 111), (1987, 'at-Tafilah', 111), (1988, 'az-Zarqa\'', 111), (1989, 'Akmecet', 112), (1990, 'Akmola', 112), (1991, 'Aktobe', 112), (1992, 'Almati', 112), (1993, 'Atirau', 112), (1994, 'Batis Kazakstan', 112), (1995, 'Burlinsky Region', 112), (1996, 'Karagandi', 112), (1997, 'Kostanay', 112), (1998, 'Mankistau', 112), (1999, 'Ontustik Kazakstan', 112), (2000, 'Pavlodar', 112), (2001, 'Sigis Kazakstan', 112), (2002, 'Soltustik Kazakstan', 112), (2003, 'Taraz', 112), (2004, 'Central', 113), (2005, 'Coast', 113), (2006, 'Eastern', 113), (2007, 'Nairobi', 113), (2008, 'North Eastern', 113), (2009, 'Nyanza', 113), (2010, 'Rift Valley', 113), (2011, 'Western', 113), (2012, 'Abaiang', 114), (2013, 'Abemana', 114), (2014, 'Aranuka', 114), (2015, 'Arorae', 114), (2016, 'Banaba', 114), (2017, 'Beru', 114), (2018, 'Butaritari', 114), (2019, 'Kiritimati', 114), (2020, 'Kuria', 114), (2021, 'Maiana', 114), (2022, 'Makin', 114), (2023, 'Marakei', 114), (2024, 'Nikunau', 114), (2025, 'Nonouti', 114), (2026, 'Onotoa', 114), (2027, 'Phoenix Islands', 114), (2028, 'Tabiteuea North', 114), (2029, 'Tabiteuea South', 114), (2030, 'Tabuaeran', 114), (2031, 'Tamana', 114), (2032, 'Tarawa North', 114), (2033, 'Tarawa South', 114), (2034, 'Teraina', 114), (2035, 'Chagangdo', 115), (2036, 'Hamgyeongbukto', 115), (2037, 'Hamgyeongnamdo', 115), (2038, 'Hwanghaebukto', 115), (2039, 'Hwanghaenamdo', 115), (2040, 'Kaeseong', 115), (2041, 'Kangweon', 115), (2042, 'Nampo', 115), (2043, 'Pyeonganbukto', 115), (2044, 'Pyeongannamdo', 115), (2045, 'Pyeongyang', 115), (2046, 'Yanggang', 115), (2047, 'Busan', 116), (2048, 'Cheju', 116), (2049, 'Chollabuk', 116), (2050, 'Chollanam', 116), (2051, 'Chungbuk', 116), (2052, 'Chungcheongbuk', 116), (2053, 'Chungcheongnam', 116), (2054, 'Chungnam', 116), (2055, 'Daegu', 116), (2056, 'Gangwon-do', 116), (2057, 'Goyang-si', 116), (2058, 'Gyeonggi-do', 116), (2059, 'Gyeongsang ', 116), (2060, 'Gyeongsangnam-do', 116), (2061, 'Incheon', 116), (2062, 'Jeju-Si', 116), (2063, 'Jeonbuk', 116), (2064, 'Kangweon', 116), (2065, 'Kwangju', 116), (2066, 'Kyeonggi', 116), (2067, 'Kyeongsangbuk', 116), (2068, 'Kyeongsangnam', 116), (2069, 'Kyonggi-do', 116), (2070, 'Kyungbuk-Do', 116), (2071, 'Kyunggi-Do', 116), (2072, 'Kyunggi-do', 116), (2073, 'Pusan', 116), (2074, 'Seoul', 116), (2075, 'Sudogwon', 116), (2076, 'Taegu', 116), (2077, 'Taejeon', 116), (2078, 'Taejon-gwangyoksi', 116), (2079, 'Ulsan', 116), (2080, 'Wonju', 116), (2081, 'gwangyoksi', 116), (2082, 'Al Asimah', 117), (2083, 'Hawalli', 117), (2084, 'Mishref', 117), (2085, 'Qadesiya', 117), (2086, 'Safat', 117), (2087, 'Salmiya', 117), (2088, 'al-Ahmadi', 117), (2089, 'al-Farwaniyah', 117), (2090, 'al-Jahra', 117), (2091, 'al-Kuwayt', 117), (2092, 'Batken', 118), (2093, 'Bishkek', 118), (2094, 'Chui', 118), (2095, 'Issyk-Kul', 118), (2096, 'Jalal-Abad', 118), (2097, 'Naryn', 118), (2098, 'Osh', 118), (2099, 'Talas', 118), (2100, 'Attopu', 119), (2101, 'Bokeo', 119), (2102, 'Bolikhamsay', 119), (2103, 'Champasak', 119), (2104, 'Houaphanh', 119), (2105, 'Khammouane', 119), (2106, 'Luang Nam Tha', 119), (2107, 'Luang Prabang', 119), (2108, 'Oudomxay', 119), (2109, 'Phongsaly', 119), (2110, 'Saravan', 119), (2111, 'Savannakhet', 119), (2112, 'Sekong', 119), (2113, 'Viangchan Prefecture', 119), (2114, 'Viangchan Province', 119), (2115, 'Xaignabury', 119), (2116, 'Xiang Khuang', 119), (2117, 'Aizkraukles', 120), (2118, 'Aluksnes', 120), (2119, 'Balvu', 120), (2120, 'Bauskas', 120), (2121, 'Cesu', 120), (2122, 'Daugavpils', 120), (2123, 'Daugavpils City', 120), (2124, 'Dobeles', 120), (2125, 'Gulbenes', 120), (2126, 'Jekabspils', 120), (2127, 'Jelgava', 120), (2128, 'Jelgavas', 120), (2129, 'Jurmala City', 120), (2130, 'Kraslavas', 120), (2131, 'Kuldigas', 120), (2132, 'Liepaja', 120), (2133, 'Liepajas', 120), (2134, 'Limbazhu', 120), (2135, 'Ludzas', 120), (2136, 'Madonas', 120), (2137, 'Ogres', 120), (2138, 'Preilu', 120), (2139, 'Rezekne', 120), (2140, 'Rezeknes', 120), (2141, 'Riga', 120), (2142, 'Rigas', 120), (2143, 'Saldus', 120), (2144, 'Talsu', 120), (2145, 'Tukuma', 120), (2146, 'Valkas', 120), (2147, 'Valmieras', 120), (2148, 'Ventspils', 120), (2149, 'Ventspils City', 120), (2150, 'Beirut', 121), (2151, 'Jabal Lubnan', 121), (2152, 'Mohafazat Liban-Nord', 121), (2153, 'Mohafazat Mont-Liban', 121), (2154, 'Sidon', 121), (2155, 'al-Biqa', 121), (2156, 'al-Janub', 121), (2157, 'an-Nabatiyah', 121), (2158, 'ash-Shamal', 121), (2159, 'Berea', 122), (2160, 'Butha-Buthe', 122), (2161, 'Leribe', 122), (2162, 'Mafeteng', 122), (2163, 'Maseru', 122), (2164, 'Mohale\'s Hoek', 122), (2165, 'Mokhotlong', 122), (2166, 'Qacha\'s Nek', 122), (2167, 'Quthing', 122), (2168, 'Thaba-Tseka', 122), (2169, 'Bomi', 123), (2170, 'Bong', 123), (2171, 'Grand Bassa', 123), (2172, 'Grand Cape Mount', 123), (2173, 'Grand Gedeh', 123), (2174, 'Loffa', 123), (2175, 'Margibi', 123), (2176, 'Maryland and Grand Kru', 123), (2177, 'Montserrado', 123), (2178, 'Nimba', 123), (2179, 'Rivercess', 123), (2180, 'Sinoe', 123), (2181, 'Ajdabiya', 124); INSERT INTO `state` (`id`, `name`, `country_id`) VALUES (2182, 'Fezzan', 124), (2183, 'Banghazi', 124), (2184, 'Darnah', 124), (2185, 'Ghadamis', 124), (2186, 'Gharyan', 124), (2187, 'Misratah', 124), (2188, 'Murzuq', 124), (2189, 'Sabha', 124), (2190, 'Sawfajjin', 124), (2191, 'Surt', 124), (2192, 'Tarabulus', 124), (2193, 'Tarhunah', 124), (2194, 'Tripolitania', 124), (2195, 'Tubruq', 124), (2196, 'Yafran', 124), (2197, 'Zlitan', 124), (2198, 'al-\'Aziziyah', 124), (2199, 'al-Fatih', 124), (2200, 'al-Jabal al Akhdar', 124), (2201, 'al-Jufrah', 124), (2202, 'al-Khums', 124), (2203, 'al-Kufrah', 124), (2204, 'an-Nuqat al-Khams', 124), (2205, 'ash-Shati\'', 124), (2206, 'az-Zawiyah', 124), (2207, 'Balzers', 125), (2208, 'Eschen', 125), (2209, 'Gamprin', 125), (2210, 'Mauren', 125), (2211, 'Planken', 125), (2212, 'Ruggell', 125), (2213, 'Schaan', 125), (2214, 'Schellenberg', 125), (2215, 'Triesen', 125), (2216, 'Triesenberg', 125), (2217, 'Vaduz', 125), (2218, 'Alytaus', 126), (2219, 'Anyksciai', 126), (2220, 'Kauno', 126), (2221, 'Klaipedos', 126), (2222, 'Marijampoles', 126), (2223, 'Panevezhio', 126), (2224, 'Panevezys', 126), (2225, 'Shiauliu', 126), (2226, 'Taurages', 126), (2227, 'Telshiu', 126), (2228, 'Telsiai', 126), (2229, 'Utenos', 126), (2230, 'Vilniaus', 126), (2231, 'Capellen', 127), (2232, 'Clervaux', 127), (2233, 'Diekirch', 127), (2234, 'Echternach', 127), (2235, 'Esch-sur-Alzette', 127), (2236, 'Grevenmacher', 127), (2237, 'Luxembourg', 127), (2238, 'Mersch', 127), (2239, 'Redange', 127), (2240, 'Remich', 127), (2241, 'Vianden', 127), (2242, 'Wiltz', 127), (2243, 'Macau', 128), (2244, 'Berovo', 129), (2245, 'Bitola', 129), (2246, 'Brod', 129), (2247, 'Debar', 129), (2248, 'Delchevo', 129), (2249, 'Demir Hisar', 129), (2250, 'Gevgelija', 129), (2251, 'Gostivar', 129), (2252, 'Kavadarci', 129), (2253, 'Kichevo', 129), (2254, 'Kochani', 129), (2255, 'Kratovo', 129), (2256, 'Kriva Palanka', 129), (2257, 'Krushevo', 129), (2258, 'Kumanovo', 129), (2259, 'Negotino', 129), (2260, 'Ohrid', 129), (2261, 'Prilep', 129), (2262, 'Probishtip', 129), (2263, 'Radovish', 129), (2264, 'Resen', 129), (2265, 'Shtip', 129), (2266, 'Skopje', 129), (2267, 'Struga', 129), (2268, 'Strumica', 129), (2269, 'Sveti Nikole', 129), (2270, 'Tetovo', 129), (2271, 'Valandovo', 129), (2272, 'Veles', 129), (2273, 'Vinica', 129), (2274, 'Antananarivo', 130), (2275, 'Antsiranana', 130), (2276, 'Fianarantsoa', 130), (2277, 'Mahajanga', 130), (2278, 'Toamasina', 130), (2279, 'Toliary', 130), (2280, 'Balaka', 131), (2281, 'Blantyre City', 131), (2282, 'Chikwawa', 131), (2283, 'Chiradzulu', 131), (2284, 'Chitipa', 131), (2285, 'Dedza', 131), (2286, 'Dowa', 131), (2287, 'Karonga', 131), (2288, 'Kasungu', 131), (2289, 'Lilongwe City', 131), (2290, 'Machinga', 131), (2291, 'Mangochi', 131), (2292, 'Mchinji', 131), (2293, 'Mulanje', 131), (2294, 'Mwanza', 131), (2295, 'Mzimba', 131), (2296, 'Mzuzu City', 131), (2297, 'Nkhata Bay', 131), (2298, 'Nkhotakota', 131), (2299, 'Nsanje', 131), (2300, 'Ntcheu', 131), (2301, 'Ntchisi', 131), (2302, 'Phalombe', 131), (2303, 'Rumphi', 131), (2304, 'Salima', 131), (2305, 'Thyolo', 131), (2306, 'Zomba Municipality', 131), (2307, 'Johor', 132), (2308, 'Kedah', 132), (2309, 'Kelantan', 132), (2310, 'Kuala Lumpur', 132), (2311, 'Labuan', 132), (2312, 'Melaka', 132), (2313, 'Negeri Johor', 132), (2314, 'Negeri Sembilan', 132), (2315, 'Pahang', 132), (2316, 'Penang', 132), (2317, 'Perak', 132), (2318, 'Perlis', 132), (2319, 'Pulau Pinang', 132), (2320, 'Sabah', 132), (2321, 'Sarawak', 132), (2322, 'Selangor', 132), (2323, 'Sembilan', 132), (2324, 'Terengganu', 132), (2325, 'Alif Alif', 133), (2326, 'Alif Dhaal', 133), (2327, 'Baa', 133), (2328, 'Dhaal', 133), (2329, 'Faaf', 133), (2330, 'Gaaf Alif', 133), (2331, 'Gaaf Dhaal', 133), (2332, 'Ghaviyani', 133), (2333, 'Haa Alif', 133), (2334, 'Haa Dhaal', 133), (2335, 'Kaaf', 133), (2336, 'Laam', 133), (2337, 'Lhaviyani', 133), (2338, 'Male', 133), (2339, 'Miim', 133), (2340, 'Nuun', 133), (2341, 'Raa', 133), (2342, 'Shaviyani', 133), (2343, 'Siin', 133), (2344, 'Thaa', 133), (2345, 'Vaav', 133), (2346, 'Bamako', 134), (2347, 'Gao', 134), (2348, 'Kayes', 134), (2349, 'Kidal', 134), (2350, 'Koulikoro', 134), (2351, 'Mopti', 134), (2352, 'Segou', 134), (2353, 'Sikasso', 134), (2354, 'Tombouctou', 134), (2355, 'Gozo and Comino', 135), (2356, 'Inner Harbour', 135), (2357, 'Northern', 135), (2358, 'Outer Harbour', 135), (2359, 'South Eastern', 135), (2360, 'Valletta', 135), (2361, 'Western', 135), (2362, 'Castletown', 136), (2363, 'Douglas', 136), (2364, 'Laxey', 136), (2365, 'Onchan', 136), (2366, 'Peel', 136), (2367, 'Port Erin', 136), (2368, 'Port Saint Mary', 136), (2369, 'Ramsey', 136), (2370, 'Ailinlaplap', 137), (2371, 'Ailuk', 137), (2372, 'Arno', 137), (2373, 'Aur', 137), (2374, 'Bikini', 137), (2375, 'Ebon', 137), (2376, 'Enewetak', 137), (2377, 'Jabat', 137), (2378, 'Jaluit', 137), (2379, 'Kili', 137), (2380, 'Kwajalein', 137), (2381, 'Lae', 137), (2382, 'Lib', 137), (2383, 'Likiep', 137), (2384, 'Majuro', 137), (2385, 'Maloelap', 137), (2386, 'Mejit', 137), (2387, 'Mili', 137), (2388, 'Namorik', 137), (2389, 'Namu', 137), (2390, 'Rongelap', 137), (2391, 'Ujae', 137), (2392, 'Utrik', 137), (2393, 'Wotho', 137), (2394, 'Wotje', 137), (2395, 'Fort-de-France', 138), (2396, 'La Trinite', 138), (2397, 'Le Marin', 138), (2398, 'Saint-Pierre', 138), (2399, 'Adrar', 139), (2400, 'Assaba', 139), (2401, 'Brakna', 139), (2402, 'Dhakhlat Nawadibu', 139), (2403, 'Hudh-al-Gharbi', 139), (2404, 'Hudh-ash-Sharqi', 139), (2405, 'Inshiri', 139), (2406, 'Nawakshut', 139), (2407, 'Qidimagha', 139), (2408, 'Qurqul', 139), (2409, 'Taqant', 139), (2410, 'Tiris Zammur', 139), (2411, 'Trarza', 139), (2412, 'Black River', 140), (2413, 'Eau Coulee', 140), (2414, 'Flacq', 140), (2415, 'Floreal', 140), (2416, 'Grand Port', 140), (2417, 'Moka', 140), (2418, 'Pamplempousses', 140), (2419, 'Plaines Wilhelm', 140), (2420, 'Port Louis', 140), (2421, 'Riviere du Rempart', 140), (2422, 'Rodrigues', 140), (2423, 'Rose Hill', 140), (2424, 'Savanne', 140), (2425, 'Mayotte', 141), (2426, 'Pamanzi', 141), (2427, 'Aguascalientes', 142), (2428, 'Baja California', 142), (2429, 'Baja California Sur', 142), (2430, 'Campeche', 142), (2431, 'Chiapas', 142), (2432, 'Chihuahua', 142), (2433, 'Coahuila', 142), (2434, 'Colima', 142), (2435, 'Distrito Federal', 142), (2436, 'Durango', 142), (2437, 'Estado de Mexico', 142), (2438, 'Guanajuato', 142), (2439, 'Guerrero', 142), (2440, 'Hidalgo', 142), (2441, 'Jalisco', 142), (2442, 'Mexico', 142), (2443, 'Michoacan', 142), (2444, 'Morelos', 142), (2445, 'Nayarit', 142), (2446, 'Nuevo Leon', 142), (2447, 'Oaxaca', 142), (2448, 'Puebla', 142), (2449, 'Queretaro', 142), (2450, 'Quintana Roo', 142), (2451, 'San Luis Potosi', 142), (2452, 'Sinaloa', 142), (2453, 'Sonora', 142), (2454, 'Tabasco', 142), (2455, 'Tamaulipas', 142), (2456, 'Tlaxcala', 142), (2457, 'Veracruz', 142), (2458, 'Yucatan', 142), (2459, 'Zacatecas', 142), (2460, 'Chuuk', 143), (2461, 'Kusaie', 143), (2462, 'Pohnpei', 143), (2463, 'Yap', 143), (2464, 'Balti', 144), (2465, 'Cahul', 144), (2466, 'Chisinau', 144), (2467, 'Chisinau Oras', 144), (2468, 'Edinet', 144), (2469, 'Gagauzia', 144), (2470, 'Lapusna', 144), (2471, 'Orhei', 144), (2472, 'Soroca', 144), (2473, 'Taraclia', 144), (2474, 'Tighina', 144), (2475, 'Transnistria', 144), (2476, 'Ungheni', 144), (2477, 'Fontvieille', 145), (2478, 'La Condamine', 145), (2479, 'Monaco-Ville', 145), (2480, 'Monte Carlo', 145), (2481, 'Arhangaj', 146), (2482, 'Bajan-Olgij', 146), (2483, 'Bajanhongor', 146), (2484, 'Bulgan', 146), (2485, 'Darhan-Uul', 146), (2486, 'Dornod', 146), (2487, 'Dornogovi', 146), (2488, 'Dundgovi', 146), (2489, 'Govi-Altaj', 146), (2490, 'Govisumber', 146), (2491, 'Hentij', 146), (2492, 'Hovd', 146), (2493, 'Hovsgol', 146), (2494, 'Omnogovi', 146), (2495, 'Orhon', 146), (2496, 'Ovorhangaj', 146), (2497, 'Selenge', 146), (2498, 'Suhbaatar', 146), (2499, 'Tov', 146), (2500, 'Ulaanbaatar', 146), (2501, 'Uvs', 146), (2502, 'Zavhan', 146), (2503, 'Montserrat', 147), (2504, 'Agadir', 148), (2505, 'Casablanca', 148), (2506, 'Chaouia-Ouardigha', 148), (2507, 'Doukkala-Abda', 148), (2508, 'Fes-Boulemane', 148), (2509, 'Gharb-Chrarda-Beni Hssen', 148), (2510, 'Guelmim', 148), (2511, 'Kenitra', 148), (2512, 'Marrakech-Tensift-Al Haouz', 148), (2513, 'Meknes-Tafilalet', 148), (2514, 'Oriental', 148), (2515, 'Oujda', 148), (2516, 'Province de Tanger', 148), (2517, 'Rabat-Sale-Zammour-Zaer', 148), (2518, 'Sala Al Jadida', 148), (2519, 'Settat', 148), (2520, 'Souss Massa-Draa', 148), (2521, 'Tadla-Azilal', 148), (2522, 'Tangier-Tetouan', 148), (2523, 'Taza-Al Hoceima-Taounate', 148), (2524, 'Wilaya de Casablanca', 148), (2525, 'Wilaya de Rabat-Sale', 148), (2526, 'Cabo Delgado', 149), (2527, 'Gaza', 149), (2528, 'Inhambane', 149), (2529, 'Manica', 149), (2530, 'Maputo', 149), (2531, 'Maputo Provincia', 149), (2532, 'Nampula', 149), (2533, 'Niassa', 149), (2534, 'Sofala', 149), (2535, 'Tete', 149), (2536, 'Zambezia', 149), (2537, 'Ayeyarwady', 150), (2538, 'Bago', 150), (2539, 'Chin', 150), (2540, 'Kachin', 150), (2541, 'Kayah', 150), (2542, 'Kayin', 150), (2543, 'Magway', 150), (2544, 'Mandalay', 150), (2545, 'Mon', 150), (2546, 'Nay Pyi Taw', 150), (2547, 'Rakhine', 150), (2548, 'Sagaing', 150), (2549, 'Shan', 150), (2550, 'Tanintharyi', 150), (2551, 'Yangon', 150), (2552, 'Caprivi', 151), (2553, 'Erongo', 151), (2554, 'Hardap', 151), (2555, 'Karas', 151), (2556, 'Kavango', 151), (2557, 'Khomas', 151), (2558, 'Kunene', 151), (2559, 'Ohangwena', 151), (2560, 'Omaheke', 151), (2561, 'Omusati', 151), (2562, 'Oshana', 151), (2563, 'Oshikoto', 151), (2564, 'Otjozondjupa', 151), (2565, 'Yaren', 152), (2566, 'Bagmati', 153), (2567, 'Bheri', 153), (2568, 'Dhawalagiri', 153), (2569, 'Gandaki', 153), (2570, 'Janakpur', 153), (2571, 'Karnali', 153), (2572, 'Koshi', 153), (2573, 'Lumbini', 153), (2574, 'Mahakali', 153), (2575, 'Mechi', 153), (2576, 'Narayani', 153), (2577, 'Rapti', 153), (2578, 'Sagarmatha', 153), (2579, 'Seti', 153), (2580, 'Bonaire', 154), (2581, 'Curacao', 154), (2582, 'Saba', 154), (2583, 'Sint Eustatius', 154), (2584, 'Sint Maarten', 154), (2585, 'Amsterdam', 155), (2586, 'Benelux', 155), (2587, 'Drenthe', 155), (2588, 'Flevoland', 155), (2589, 'Friesland', 155), (2590, 'Gelderland', 155), (2591, 'Groningen', 155), (2592, 'Limburg', 155), (2593, 'Noord-Brabant', 155), (2594, 'Noord-Holland', 155), (2595, 'Overijssel', 155), (2596, 'South Holland', 155), (2597, 'Utrecht', 155), (2598, 'Zeeland', 155), (2599, 'Zuid-Holland', 155), (2600, 'Iles', 156), (2601, 'Nord', 156), (2602, 'Sud', 156), (2603, 'Area Outside Region', 157), (2604, 'Auckland', 157), (2605, 'Bay of Plenty', 157), (2606, 'Canterbury', 157), (2607, 'Christchurch', 157), (2608, 'Gisborne', 157), (2609, 'Hawke\'s Bay', 157), (2610, 'Manawatu-Wanganui', 157), (2611, 'Marlborough', 157), (2612, 'Nelson', 157), (2613, 'Northland', 157), (2614, 'Otago', 157), (2615, 'Rodney', 157), (2616, 'Southland', 157), (2617, 'Taranaki', 157), (2618, 'Tasman', 157), (2619, 'Waikato', 157), (2620, 'Wellington', 157), (2621, 'West Coast', 157), (2622, 'Atlantico Norte', 158), (2623, 'Atlantico Sur', 158), (2624, 'Boaco', 158), (2625, 'Carazo', 158), (2626, 'Chinandega', 158), (2627, 'Chontales', 158), (2628, 'Esteli', 158), (2629, 'Granada', 158), (2630, 'Jinotega', 158), (2631, 'Leon', 158), (2632, 'Madriz', 158), (2633, 'Managua', 158), (2634, 'Masaya', 158), (2635, 'Matagalpa', 158), (2636, 'Nueva Segovia', 158), (2637, 'Rio San Juan', 158), (2638, 'Rivas', 158), (2639, 'Agadez', 159), (2640, 'Diffa', 159), (2641, 'Dosso', 159), (2642, 'Maradi', 159), (2643, 'Niamey', 159), (2644, 'Tahoua', 159), (2645, 'Tillabery', 159), (2646, 'Zinder', 159), (2647, 'Abia', 160), (2648, 'Abuja Federal Capital Territor', 160), (2649, 'Adamawa', 160), (2650, 'Akwa Ibom', 160), (2651, 'Anambra', 160), (2652, 'Bauchi', 160), (2653, 'Bayelsa', 160), (2654, 'Benue', 160), (2655, 'Borno', 160), (2656, 'Cross River', 160), (2657, 'Delta', 160), (2658, 'Ebonyi', 160), (2659, 'Edo', 160), (2660, 'Ekiti', 160), (2661, 'Enugu', 160), (2662, 'Gombe', 160), (2663, 'Imo', 160), (2664, 'Jigawa', 160), (2665, 'Kaduna', 160), (2666, 'Kano', 160), (2667, 'Katsina', 160), (2668, 'Kebbi', 160), (2669, 'Kogi', 160), (2670, 'Kwara', 160), (2671, 'Lagos', 160), (2672, 'Nassarawa', 160), (2673, 'Niger', 160), (2674, 'Ogun', 160), (2675, 'Ondo', 160), (2676, 'Osun', 160), (2677, 'Oyo', 160), (2678, 'Plateau', 160), (2679, 'Rivers', 160), (2680, 'Sokoto', 160), (2681, 'Taraba', 160), (2682, 'Yobe', 160), (2683, 'Zamfara', 160), (2684, 'Niue', 161), (2685, 'Norfolk Island', 162), (2686, 'Northern Islands', 163), (2687, 'Rota', 163), (2688, 'Saipan', 163), (2689, 'Tinian', 163), (2690, 'Akershus', 164), (2691, 'Aust Agder', 164), (2692, 'Bergen', 164), (2693, 'Buskerud', 164), (2694, 'Finnmark', 164), (2695, 'Hedmark', 164), (2696, 'Hordaland', 164), (2697, 'Moere og Romsdal', 164), (2698, 'Nord Trondelag', 164), (2699, 'Nordland', 164), (2700, 'Oestfold', 164), (2701, 'Oppland', 164), (2702, 'Oslo', 164), (2703, 'Rogaland', 164), (2704, 'Soer Troendelag', 164), (2705, 'Sogn og Fjordane', 164), (2706, 'Stavern', 164), (2707, 'Sykkylven', 164), (2708, 'Telemark', 164), (2709, 'Troms', 164), (2710, 'Vest Agder', 164), (2711, 'Vestfold', 164), (2712, 'Østfold', 164), (2713, 'Al Buraimi', 165), (2714, 'Dhufar', 165), (2715, 'Masqat', 165), (2716, 'Musandam', 165), (2717, 'Rusayl', 165), (2718, 'Wadi Kabir', 165), (2719, 'ad-Dakhiliyah', 165), (2720, 'adh-Dhahirah', 165), (2721, 'al-Batinah', 165), (2722, 'ash-Sharqiyah', 165), (2723, 'Baluchistan', 166), (2724, 'Federal Capital Area', 166), (2725, 'Federally administered Tribal ', 166), (2726, 'North-West Frontier', 166), (2727, 'Northern Areas', 166), (2728, 'Punjab', 166), (2729, 'Sind', 166), (2730, 'Aimeliik', 167), (2731, 'Airai', 167), (2732, 'Angaur', 167), (2733, 'Hatobohei', 167), (2734, 'Kayangel', 167), (2735, 'Koror', 167), (2736, 'Melekeok', 167), (2737, 'Ngaraard', 167), (2738, 'Ngardmau', 167), (2739, 'Ngaremlengui', 167), (2740, 'Ngatpang', 167), (2741, 'Ngchesar', 167), (2742, 'Ngerchelong', 167), (2743, 'Ngiwal', 167), (2744, 'Peleliu', 167), (2745, 'Sonsorol', 167), (2746, 'Ariha', 168), (2747, 'Bayt Lahm', 168), (2748, 'Bethlehem', 168), (2749, 'Dayr-al-Balah', 168), (2750, 'Ghazzah', 168), (2751, 'Ghazzah ash-Shamaliyah', 168), (2752, 'Janin', 168), (2753, 'Khan Yunis', 168), (2754, 'Nabulus', 168), (2755, 'Qalqilyah', 168), (2756, 'Rafah', 168), (2757, 'Ram Allah wal-Birah', 168), (2758, 'Salfit', 168), (2759, 'Tubas', 168), (2760, 'Tulkarm', 168), (2761, 'al-Khalil', 168), (2762, 'al-Quds', 168), (2763, 'Bocas del Toro', 169), (2764, 'Chiriqui', 169), (2765, 'Cocle', 169), (2766, 'Colon', 169), (2767, 'Darien', 169), (2768, 'Embera', 169), (2769, 'Herrera', 169), (2770, 'Kuna Yala', 169), (2771, 'Los Santos', 169), (2772, 'Ngobe Bugle', 169), (2773, 'Panama', 169), (2774, 'Veraguas', 169), (2775, 'East New Britain', 170), (2776, 'East Sepik', 170), (2777, 'Eastern Highlands', 170), (2778, 'Enga', 170), (2779, 'Fly River', 170), (2780, 'Gulf', 170), (2781, 'Madang', 170), (2782, 'Manus', 170), (2783, 'Milne Bay', 170), (2784, 'Morobe', 170), (2785, 'National Capital District', 170), (2786, 'New Ireland', 170), (2787, 'North Solomons', 170), (2788, 'Oro', 170), (2789, 'Sandaun', 170), (2790, 'Simbu', 170), (2791, 'Southern Highlands', 170), (2792, 'West New Britain', 170), (2793, 'Western Highlands', 170), (2794, 'Alto Paraguay', 171), (2795, 'Alto Parana', 171), (2796, 'Amambay', 171), (2797, 'Asuncion', 171), (2798, 'Boqueron', 171), (2799, 'Caaguazu', 171), (2800, 'Caazapa', 171), (2801, 'Canendiyu', 171), (2802, 'Central', 171), (2803, 'Concepcion', 171), (2804, 'Cordillera', 171), (2805, 'Guaira', 171), (2806, 'Itapua', 171), (2807, 'Misiones', 171), (2808, 'Neembucu', 171), (2809, 'Paraguari', 171), (2810, 'Presidente Hayes', 171), (2811, 'San Pedro', 171), (2812, 'Amazonas', 172), (2813, 'Ancash', 172), (2814, 'Apurimac', 172), (2815, 'Arequipa', 172), (2816, 'Ayacucho', 172), (2817, 'Cajamarca', 172), (2818, 'Cusco', 172), (2819, 'Huancavelica', 172), (2820, 'Huanuco', 172), (2821, 'Ica', 172), (2822, 'Junin', 172), (2823, 'La Libertad', 172), (2824, 'Lambayeque', 172), (2825, 'Lima y Callao', 172), (2826, 'Loreto', 172), (2827, 'Madre de Dios', 172), (2828, 'Moquegua', 172), (2829, 'Pasco', 172), (2830, 'Piura', 172), (2831, 'Puno', 172), (2832, 'San Martin', 172), (2833, 'Tacna', 172), (2834, 'Tumbes', 172), (2835, 'Ucayali', 172), (2836, 'Batangas', 173), (2837, 'Bicol', 173), (2838, 'Bulacan', 173), (2839, 'Cagayan', 173), (2840, 'Caraga', 173), (2841, 'Central Luzon', 173), (2842, 'Central Mindanao', 173), (2843, 'Central Visayas', 173), (2844, 'Cordillera', 173), (2845, 'Davao', 173), (2846, 'Eastern Visayas', 173), (2847, 'Greater Metropolitan Area', 173), (2848, 'Ilocos', 173), (2849, 'Laguna', 173), (2850, 'Luzon', 173), (2851, 'Mactan', 173), (2852, 'Metropolitan Manila Area', 173), (2853, 'Muslim Mindanao', 173), (2854, 'Northern Mindanao', 173), (2855, 'Southern Mindanao', 173), (2856, 'Southern Tagalog', 173), (2857, 'Western Mindanao', 173), (2858, 'Western Visayas', 173), (2859, 'Pitcairn Island', 174), (2860, 'Biale Blota', 175), (2861, 'Dobroszyce', 175), (2862, 'Dolnoslaskie', 175), (2863, 'Dziekanow Lesny', 175), (2864, 'Hopowo', 175), (2865, 'Kartuzy', 175), (2866, 'Koscian', 175), (2867, 'Krakow', 175), (2868, 'Kujawsko-Pomorskie', 175), (2869, 'Lodzkie', 175), (2870, 'Lubelskie', 175), (2871, 'Lubuskie', 175), (2872, 'Malomice', 175), (2873, 'Malopolskie', 175), (2874, 'Mazowieckie', 175), (2875, 'Mirkow', 175), (2876, 'Opolskie', 175), (2877, 'Ostrowiec', 175), (2878, 'Podkarpackie', 175), (2879, 'Podlaskie', 175), (2880, 'Polska', 175), (2881, 'Pomorskie', 175), (2882, 'Poznan', 175), (2883, 'Pruszkow', 175), (2884, 'Rymanowska', 175), (2885, 'Rzeszow', 175), (2886, 'Slaskie', 175), (2887, 'Stare Pole', 175), (2888, 'Swietokrzyskie', 175), (2889, 'Warminsko-Mazurskie', 175), (2890, 'Warsaw', 175), (2891, 'Wejherowo', 175), (2892, 'Wielkopolskie', 175), (2893, 'Wroclaw', 175), (2894, 'Zachodnio-Pomorskie', 175), (2895, 'Zukowo', 175), (2896, 'Abrantes', 176), (2897, 'Acores', 176), (2898, 'Alentejo', 176), (2899, 'Algarve', 176), (2900, 'Braga', 176), (2901, 'Centro', 176), (2902, 'Distrito de Leiria', 176), (2903, 'Distrito de Viana do Castelo', 176), (2904, 'Distrito de Vila Real', 176), (2905, 'Distrito do Porto', 176), (2906, 'Lisboa e Vale do Tejo', 176), (2907, 'Madeira', 176), (2908, 'Norte', 176), (2909, 'Paivas', 176), (2910, 'Arecibo', 177), (2911, 'Bayamon', 177), (2912, 'Carolina', 177), (2913, 'Florida', 177), (2914, 'Guayama', 177), (2915, 'Humacao', 177), (2916, 'Mayaguez-Aguadilla', 177), (2917, 'Ponce', 177), (2918, 'Salinas', 177), (2919, 'San Juan', 177), (2920, 'Doha', 178), (2921, 'Jarian-al-Batnah', 178), (2922, 'Umm Salal', 178), (2923, 'ad-Dawhah', 178), (2924, 'al-Ghuwayriyah', 178), (2925, 'al-Jumayliyah', 178), (2926, 'al-Khawr', 178), (2927, 'al-Wakrah', 178), (2928, 'ar-Rayyan', 178), (2929, 'ash-Shamal', 178), (2930, 'Saint-Benoit', 179), (2931, 'Saint-Denis', 179), (2932, 'Saint-Paul', 179), (2933, 'Saint-Pierre', 179), (2934, 'Alba', 180), (2935, 'Arad', 180), (2936, 'Arges', 180), (2937, 'Bacau', 180), (2938, 'Bihor', 180), (2939, 'Bistrita-Nasaud', 180), (2940, 'Botosani', 180), (2941, 'Braila', 180), (2942, 'Brasov', 180), (2943, 'Bucuresti', 180), (2944, 'Buzau', 180), (2945, 'Calarasi', 180), (2946, 'Caras-Severin', 180), (2947, 'Cluj', 180), (2948, 'Constanta', 180), (2949, 'Covasna', 180), (2950, 'Dambovita', 180), (2951, 'Dolj', 180), (2952, 'Galati', 180), (2953, 'Giurgiu', 180), (2954, 'Gorj', 180), (2955, 'Harghita', 180), (2956, 'Hunedoara', 180), (2957, 'Ialomita', 180), (2958, 'Iasi', 180), (2959, 'Ilfov', 180), (2960, 'Maramures', 180), (2961, 'Mehedinti', 180), (2962, 'Mures', 180), (2963, 'Neamt', 180), (2964, 'Olt', 180), (2965, 'Prahova', 180), (2966, 'Salaj', 180), (2967, 'Satu Mare', 180), (2968, 'Sibiu', 180), (2969, 'Sondelor', 180), (2970, 'Suceava', 180), (2971, 'Teleorman', 180), (2972, 'Timis', 180), (2973, 'Tulcea', 180), (2974, 'Valcea', 180), (2975, 'Vaslui', 180), (2976, 'Vrancea', 180), (2977, 'Adygeja', 181), (2978, 'Aga', 181), (2979, 'Alanija', 181), (2980, 'Altaj', 181), (2981, 'Amur', 181), (2982, 'Arhangelsk', 181), (2983, 'Astrahan', 181), (2984, 'Bashkortostan', 181), (2985, 'Belgorod', 181), (2986, 'Brjansk', 181), (2987, 'Burjatija', 181), (2988, 'Chechenija', 181), (2989, 'Cheljabinsk', 181), (2990, 'Chita', 181), (2991, 'Chukotka', 181), (2992, 'Chuvashija', 181), (2993, 'Dagestan', 181), (2994, 'Evenkija', 181), (2995, 'Gorno-Altaj', 181), (2996, 'Habarovsk', 181), (2997, 'Hakasija', 181), (2998, 'Hanty-Mansija', 181), (2999, 'Ingusetija', 181), (3000, 'Irkutsk', 181), (3001, 'Ivanovo', 181), (3002, 'Jamalo-Nenets', 181), (3003, 'Jaroslavl', 181), (3004, 'Jevrej', 181), (3005, 'Kabardino-Balkarija', 181), (3006, 'Kaliningrad', 181), (3007, 'Kalmykija', 181), (3008, 'Kaluga', 181), (3009, 'Kamchatka', 181), (3010, 'Karachaj-Cherkessija', 181), (3011, 'Karelija', 181), (3012, 'Kemerovo', 181), (3013, 'Khabarovskiy Kray', 181), (3014, 'Kirov', 181), (3015, 'Komi', 181), (3016, 'Komi-Permjakija', 181), (3017, 'Korjakija', 181), (3018, 'Kostroma', 181), (3019, 'Krasnodar', 181), (3020, 'Krasnojarsk', 181), (3021, 'Krasnoyarskiy Kray', 181), (3022, 'Kurgan', 181), (3023, 'Kursk', 181), (3024, 'Leningrad', 181), (3025, 'Lipeck', 181), (3026, 'Magadan', 181), (3027, 'Marij El', 181), (3028, 'Mordovija', 181), (3029, 'Moscow', 181), (3030, 'Moskovskaja Oblast', 181), (3031, 'Moskovskaya Oblast', 181), (3032, 'Moskva', 181), (3033, 'Murmansk', 181), (3034, 'Nenets', 181), (3035, 'Nizhnij Novgorod', 181), (3036, 'Novgorod', 181), (3037, 'Novokusnezk', 181), (3038, 'Novosibirsk', 181), (3039, 'Omsk', 181), (3040, 'Orenburg', 181), (3041, 'Orjol', 181), (3042, 'Penza', 181), (3043, 'Perm', 181), (3044, 'Primorje', 181), (3045, 'Pskov', 181), (3046, 'Pskovskaya Oblast', 181), (3047, 'Rjazan', 181), (3048, 'Rostov', 181), (3049, 'Saha', 181), (3050, 'Sahalin', 181), (3051, 'Samara', 181), (3052, 'Samarskaya', 181), (3053, 'Sankt-Peterburg', 181), (3054, 'Saratov', 181), (3055, 'Smolensk', 181), (3056, 'Stavropol', 181), (3057, 'Sverdlovsk', 181), (3058, 'Tajmyrija', 181), (3059, 'Tambov', 181), (3060, 'Tatarstan', 181), (3061, 'Tjumen', 181), (3062, 'Tomsk', 181), (3063, 'Tula', 181), (3064, 'Tver', 181), (3065, 'Tyva', 181), (3066, 'Udmurtija', 181), (3067, 'Uljanovsk', 181), (3068, 'Ulyanovskaya Oblast', 181), (3069, 'Ust-Orda', 181), (3070, 'Vladimir', 181), (3071, 'Volgograd', 181), (3072, 'Vologda', 181), (3073, 'Voronezh', 181), (3074, 'Butare', 182), (3075, 'Byumba', 182), (3076, 'Cyangugu', 182), (3077, 'Gikongoro', 182), (3078, 'Gisenyi', 182), (3079, 'Gitarama', 182), (3080, 'Kibungo', 182), (3081, 'Kibuye', 182), (3082, 'Kigali-ngali', 182), (3083, 'Ruhengeri', 182), (3084, 'Ascension', 183), (3085, 'Gough Island', 183), (3086, 'Saint Helena', 183), (3087, 'Tristan da Cunha', 183), (3088, 'Christ Church Nichola Town', 184), (3089, 'Saint Anne Sandy Point', 184), (3090, 'Saint George Basseterre', 184), (3091, 'Saint George Gingerland', 184), (3092, 'Saint James Windward', 184), (3093, 'Saint John Capesterre', 184), (3094, 'Saint John Figtree', 184), (3095, 'Saint Mary Cayon', 184), (3096, 'Saint Paul Capesterre', 184), (3097, 'Saint Paul Charlestown', 184), (3098, 'Saint Peter Basseterre', 184), (3099, 'Saint Thomas Lowland', 184), (3100, 'Saint Thomas Middle Island', 184), (3101, 'Trinity Palmetto Point', 184), (3102, 'Anse-la-Raye', 185), (3103, 'Canaries', 185), (3104, 'Castries', 185), (3105, 'Choiseul', 185), (3106, 'Dennery', 185), (3107, 'Gros Inlet', 185), (3108, 'Laborie', 185), (3109, 'Micoud', 185), (3110, 'Soufriere', 185), (3111, 'Vieux Fort', 185), (3112, 'Miquelon-Langlade', 186), (3113, 'Saint-Pierre', 186), (3114, 'Charlotte', 187), (3115, 'Grenadines', 187), (3116, 'Saint Andrew', 187), (3117, 'Saint David', 187), (3118, 'Saint George', 187), (3119, 'Saint Patrick', 187), (3120, 'A\'ana', 188), (3121, 'Aiga-i-le-Tai', 188), (3122, 'Atua', 188), (3123, 'Fa\'asaleleaga', 188), (3124, 'Gaga\'emauga', 188), (3125, 'Gagaifomauga', 188), (3126, 'Palauli', 188), (3127, 'Satupa\'itea', 188), (3128, 'Tuamasaga', 188), (3129, 'Va\'a-o-Fonoti', 188), (3130, 'Vaisigano', 188), (3131, 'Acquaviva', 189), (3132, 'Borgo Maggiore', 189), (3133, 'Chiesanuova', 189), (3134, 'Domagnano', 189), (3135, 'Faetano', 189), (3136, 'Fiorentino', 189), (3137, 'Montegiardino', 189), (3138, 'San Marino', 189), (3139, 'Serravalle', 189), (3140, 'Agua Grande', 190), (3141, 'Cantagalo', 190), (3142, 'Lemba', 190), (3143, 'Lobata', 190), (3144, 'Me-Zochi', 190), (3145, 'Pague', 190), (3146, 'Al Khobar', 191), (3147, 'Aseer', 191), (3148, 'Ash Sharqiyah', 191), (3149, 'Asir', 191), (3150, 'Central Province', 191), (3151, 'Eastern Province', 191), (3152, 'Ha\'il', 191), (3153, 'Jawf', 191), (3154, 'Jizan', 191), (3155, 'Makkah', 191), (3156, 'Najran', 191), (3157, 'Qasim', 191), (3158, 'Tabuk', 191), (3159, 'Western Province', 191), (3160, 'al-Bahah', 191), (3161, 'al-Hudud-ash-Shamaliyah', 191), (3162, 'al-Madinah', 191), (3163, 'ar-Riyad', 191), (3164, 'Dakar', 192), (3165, 'Diourbel', 192), (3166, 'Fatick', 192), (3167, 'Kaolack', 192), (3168, 'Kolda', 192), (3169, 'Louga', 192), (3170, 'Saint-Louis', 192), (3171, 'Tambacounda', 192), (3172, 'Thies', 192), (3173, 'Ziguinchor', 192), (3174, 'Central Serbia', 193), (3175, 'Kosovo and Metohija', 193), (3176, 'Vojvodina', 193), (3177, 'Anse Boileau', 194), (3178, 'Anse Royale', 194), (3179, 'Cascade', 194), (3180, 'Takamaka', 194), (3181, 'Victoria', 194), (3182, 'Eastern', 195), (3183, 'Northern', 195), (3184, 'Southern', 195), (3185, 'Western', 195), (3186, 'Singapore', 196), (3187, 'Banskobystricky', 197), (3188, 'Bratislavsky', 197), (3189, 'Kosicky', 197), (3190, 'Nitriansky', 197), (3191, 'Presovsky', 197), (3192, 'Trenciansky', 197), (3193, 'Trnavsky', 197), (3194, 'Zilinsky', 197), (3195, 'Benedikt', 198), (3196, 'Gorenjska', 198), (3197, 'Gorishka', 198), (3198, 'Jugovzhodna Slovenija', 198), (3199, 'Koroshka', 198), (3200, 'Notranjsko-krashka', 198), (3201, 'Obalno-krashka', 198), (3202, 'Obcina Domzale', 198), (3203, 'Obcina Vitanje', 198), (3204, 'Osrednjeslovenska', 198), (3205, 'Podravska', 198), (3206, 'Pomurska', 198), (3207, 'Savinjska', 198), (3208, 'Slovenian Littoral', 198), (3209, 'Spodnjeposavska', 198), (3210, 'Zasavska', 198), (3211, 'Pitcairn', 199), (3212, 'Central', 200), (3213, 'Choiseul', 200), (3214, 'Guadalcanal', 200), (3215, 'Isabel', 200), (3216, 'Makira and Ulawa', 200), (3217, 'Malaita', 200), (3218, 'Rennell and Bellona', 200), (3219, 'Temotu', 200), (3220, 'Western', 200), (3221, 'Awdal', 201), (3222, 'Bakol', 201), (3223, 'Banadir', 201), (3224, 'Bari', 201), (3225, 'Bay', 201), (3226, 'Galgudug', 201), (3227, 'Gedo', 201), (3228, 'Hiran', 201), (3229, 'Jubbada Hose', 201), (3230, 'Jubbadha Dexe', 201), (3231, 'Mudug', 201), (3232, 'Nugal', 201), (3233, 'Sanag', 201), (3234, 'Shabellaha Dhexe', 201), (3235, 'Shabellaha Hose', 201), (3236, 'Togdher', 201), (3237, 'Woqoyi Galbed', 201), (3238, 'Eastern Cape', 202), (3239, 'Free State', 202), (3240, 'Gauteng', 202), (3241, 'Kempton Park', 202), (3242, 'Kramerville', 202), (3243, 'KwaZulu Natal', 202), (3244, 'Limpopo', 202), (3245, 'Mpumalanga', 202), (3246, 'North West', 202), (3247, 'Northern Cape', 202), (3248, 'Parow', 202), (3249, 'Table View', 202), (3250, 'Umtentweni', 202), (3251, 'Western Cape', 202), (3252, 'South Georgia', 203), (3253, 'Central Equatoria', 204), (3254, 'A Coruna', 205), (3255, 'Alacant', 205), (3256, 'Alava', 205), (3257, 'Albacete', 205), (3258, 'Almeria', 205), (3259, 'Andalucia', 205), (3260, 'Asturias', 205), (3261, 'Avila', 205), (3262, 'Badajoz', 205), (3263, 'Balears', 205), (3264, 'Barcelona', 205), (3265, 'Bertamirans', 205), (3266, 'Biscay', 205), (3267, 'Burgos', 205), (3268, 'Caceres', 205), (3269, 'Cadiz', 205), (3270, 'Cantabria', 205), (3271, 'Castello', 205), (3272, 'Catalunya', 205), (3273, 'Ceuta', 205), (3274, 'Ciudad Real', 205), (3275, 'Comunidad Autonoma de Canarias', 205), (3276, 'Comunidad Autonoma de Cataluna', 205), (3277, 'Comunidad Autonoma de Galicia', 205), (3278, 'Comunidad Autonoma de las Isla', 205), (3279, 'Comunidad Autonoma del Princip', 205), (3280, 'Comunidad Valenciana', 205), (3281, 'Cordoba', 205), (3282, 'Cuenca', 205), (3283, 'Gipuzkoa', 205), (3284, 'Girona', 205), (3285, 'Granada', 205), (3286, 'Guadalajara', 205), (3287, 'Guipuzcoa', 205), (3288, 'Huelva', 205), (3289, 'Huesca', 205), (3290, 'Jaen', 205), (3291, 'La Rioja', 205), (3292, 'Las Palmas', 205), (3293, 'Leon', 205), (3294, 'Lerida', 205), (3295, 'Lleida', 205), (3296, 'Lugo', 205), (3297, 'Madrid', 205), (3298, 'Malaga', 205), (3299, 'Melilla', 205), (3300, 'Murcia', 205), (3301, 'Navarra', 205), (3302, 'Ourense', 205), (3303, 'Pais Vasco', 205), (3304, 'Palencia', 205), (3305, 'Pontevedra', 205), (3306, 'Salamanca', 205), (3307, 'Santa Cruz de Tenerife', 205), (3308, 'Segovia', 205), (3309, 'Sevilla', 205), (3310, 'Soria', 205), (3311, 'Tarragona', 205), (3312, 'Tenerife', 205), (3313, 'Teruel', 205), (3314, 'Toledo', 205), (3315, 'Valencia', 205), (3316, 'Valladolid', 205), (3317, 'Vizcaya', 205), (3318, 'Zamora', 205), (3319, 'Zaragoza', 205), (3320, 'Amparai', 206), (3321, 'Anuradhapuraya', 206), (3322, 'Badulla', 206), (3323, 'Boralesgamuwa', 206), (3324, 'Colombo', 206), (3325, 'Galla', 206), (3326, 'Gampaha', 206), (3327, 'Hambantota', 206), (3328, 'Kalatura', 206), (3329, 'Kegalla', 206), (3330, 'Kilinochchi', 206), (3331, 'Kurunegala', 206), (3332, 'Madakalpuwa', 206), (3333, 'Maha Nuwara', 206), (3334, 'Malwana', 206), (3335, 'Mannarama', 206), (3336, 'Matale', 206), (3337, 'Matara', 206), (3338, 'Monaragala', 206), (3339, 'Mullaitivu', 206), (3340, 'North Eastern Province', 206), (3341, 'North Western Province', 206), (3342, 'Nuwara Eliya', 206), (3343, 'Polonnaruwa', 206), (3344, 'Puttalama', 206), (3345, 'Ratnapuraya', 206), (3346, 'Southern Province', 206), (3347, 'Tirikunamalaya', 206), (3348, 'Tuscany', 206), (3349, 'Vavuniyawa', 206), (3350, 'Western Province', 206), (3351, 'Yapanaya', 206), (3352, 'kadawatha', 206), (3353, 'A\'ali-an-Nil', 207), (3354, 'Bahr-al-Jabal', 207), (3355, 'Central Equatoria', 207), (3356, 'Gharb Bahr-al-Ghazal', 207), (3357, 'Gharb Darfur', 207), (3358, 'Gharb Kurdufan', 207), (3359, 'Gharb-al-Istiwa\'iyah', 207), (3360, 'Janub Darfur', 207), (3361, 'Janub Kurdufan', 207), (3362, 'Junqali', 207), (3363, 'Kassala', 207), (3364, 'Nahr-an-Nil', 207), (3365, 'Shamal Bahr-al-Ghazal', 207), (3366, 'Shamal Darfur', 207), (3367, 'Shamal Kurdufan', 207), (3368, 'Sharq-al-Istiwa\'iyah', 207), (3369, 'Sinnar', 207), (3370, 'Warab', 207), (3371, 'Wilayat al Khartum', 207), (3372, 'al-Bahr-al-Ahmar', 207), (3373, 'al-Buhayrat', 207), (3374, 'al-Jazirah', 207), (3375, 'al-Khartum', 207), (3376, 'al-Qadarif', 207), (3377, 'al-Wahdah', 207), (3378, 'an-Nil-al-Abyad', 207), (3379, 'an-Nil-al-Azraq', 207), (3380, 'ash-Shamaliyah', 207), (3381, 'Brokopondo', 208), (3382, 'Commewijne', 208), (3383, 'Coronie', 208), (3384, 'Marowijne', 208), (3385, 'Nickerie', 208), (3386, 'Para', 208), (3387, 'Paramaribo', 208), (3388, 'Saramacca', 208), (3389, 'Wanica', 208), (3390, 'Svalbard', 209), (3391, 'Hhohho', 210), (3392, 'Lubombo', 210), (3393, 'Manzini', 210), (3394, 'Shiselweni', 210), (3395, 'Alvsborgs Lan', 211), (3396, 'Angermanland', 211), (3397, 'Blekinge', 211), (3398, 'Bohuslan', 211), (3399, 'Dalarna', 211), (3400, 'Gavleborg', 211), (3401, 'Gaza', 211), (3402, 'Gotland', 211), (3403, 'Halland', 211), (3404, 'Jamtland', 211), (3405, 'Jonkoping', 211), (3406, 'Kalmar', 211), (3407, 'Kristianstads', 211), (3408, 'Kronoberg', 211), (3409, 'Norrbotten', 211), (3410, 'Orebro', 211), (3411, 'Ostergotland', 211), (3412, 'Saltsjo-Boo', 211), (3413, 'Skane', 211), (3414, 'Smaland', 211), (3415, 'Sodermanland', 211), (3416, 'Stockholm', 211), (3417, 'Uppsala', 211), (3418, 'Varmland', 211), (3419, 'Vasterbotten', 211), (3420, 'Vastergotland', 211), (3421, 'Vasternorrland', 211), (3422, 'Vastmanland', 211), (3423, 'Vastra Gotaland', 211), (3424, 'Aargau', 212), (3425, 'Appenzell Inner-Rhoden', 212), (3426, 'Appenzell-Ausser Rhoden', 212), (3427, 'Basel-Landschaft', 212), (3428, 'Basel-Stadt', 212), (3429, 'Bern', 212), (3430, 'Canton Ticino', 212), (3431, 'Fribourg', 212), (3432, 'Geneve', 212), (3433, 'Glarus', 212), (3434, 'Graubunden', 212), (3435, 'Heerbrugg', 212), (3436, 'Jura', 212), (3437, 'Kanton Aargau', 212), (3438, 'Luzern', 212), (3439, 'Morbio Inferiore', 212), (3440, 'Muhen', 212), (3441, 'Neuchatel', 212), (3442, 'Nidwalden', 212), (3443, 'Obwalden', 212), (3444, 'Sankt Gallen', 212), (3445, 'Schaffhausen', 212), (3446, 'Schwyz', 212), (3447, 'Solothurn', 212), (3448, 'Thurgau', 212), (3449, 'Ticino', 212), (3450, 'Uri', 212), (3451, 'Valais', 212), (3452, 'Vaud', 212), (3453, 'Vauffelin', 212), (3454, 'Zug', 212), (3455, 'Zurich', 212), (3456, 'Aleppo', 213), (3457, 'Dar\'a', 213), (3458, 'Dayr-az-Zawr', 213), (3459, 'Dimashq', 213), (3460, 'Halab', 213), (3461, 'Hamah', 213), (3462, 'Hims', 213), (3463, 'Idlib', 213), (3464, 'Madinat Dimashq', 213), (3465, 'Tartus', 213), (3466, 'al-Hasakah', 213), (3467, 'al-Ladhiqiyah', 213), (3468, 'al-Qunaytirah', 213), (3469, 'ar-Raqqah', 213), (3470, 'as-Suwayda', 213), (3471, 'Changhwa', 214), (3472, 'Chiayi Hsien', 214), (3473, 'Chiayi Shih', 214), (3474, 'Eastern Taipei', 214), (3475, 'Hsinchu Hsien', 214), (3476, 'Hsinchu Shih', 214), (3477, 'Hualien', 214), (3478, 'Ilan', 214), (3479, 'Kaohsiung Hsien', 214), (3480, 'Kaohsiung Shih', 214), (3481, 'Keelung Shih', 214), (3482, 'Kinmen', 214), (3483, 'Miaoli', 214), (3484, 'Nantou', 214), (3485, 'Northern Taiwan', 214), (3486, 'Penghu', 214), (3487, 'Pingtung', 214), (3488, 'Taichung', 214), (3489, 'Taichung Hsien', 214), (3490, 'Taichung Shih', 214), (3491, 'Tainan Hsien', 214), (3492, 'Tainan Shih', 214), (3493, 'Taipei Hsien', 214), (3494, 'Taipei Shih / Taipei Hsien', 214), (3495, 'Taitung', 214), (3496, 'Taoyuan', 214), (3497, 'Yilan', 214), (3498, 'Yun-Lin Hsien', 214), (3499, 'Yunlin', 214), (3500, 'Dushanbe', 215), (3501, 'Gorno-Badakhshan', 215), (3502, 'Karotegin', 215), (3503, 'Khatlon', 215), (3504, 'Sughd', 215), (3505, 'Arusha', 216), (3506, 'Dar es Salaam', 216), (3507, 'Dodoma', 216), (3508, 'Iringa', 216), (3509, 'Kagera', 216), (3510, 'Kigoma', 216), (3511, 'Kilimanjaro', 216), (3512, 'Lindi', 216), (3513, 'Mara', 216), (3514, 'Mbeya', 216), (3515, 'Morogoro', 216), (3516, 'Mtwara', 216), (3517, 'Mwanza', 216), (3518, 'Pwani', 216), (3519, 'Rukwa', 216), (3520, 'Ruvuma', 216), (3521, 'Shinyanga', 216), (3522, 'Singida', 216), (3523, 'Tabora', 216), (3524, 'Tanga', 216), (3525, 'Zanzibar and Pemba', 216), (3526, 'Amnat Charoen', 217), (3527, 'Ang Thong', 217), (3528, 'Bangkok', 217), (3529, 'Buri Ram', 217), (3530, 'Chachoengsao', 217), (3531, 'Chai Nat', 217), (3532, 'Chaiyaphum', 217), (3533, 'Changwat Chaiyaphum', 217), (3534, 'Chanthaburi', 217), (3535, 'Chiang Mai', 217), (3536, 'Chiang Rai', 217), (3537, 'Chon Buri', 217), (3538, 'Chumphon', 217), (3539, 'Kalasin', 217), (3540, 'Kamphaeng Phet', 217), (3541, 'Kanchanaburi', 217), (3542, 'Khon Kaen', 217), (3543, 'Krabi', 217), (3544, 'Krung Thep', 217), (3545, 'Lampang', 217), (3546, 'Lamphun', 217), (3547, 'Loei', 217), (3548, 'Lop Buri', 217), (3549, 'Mae Hong Son', 217), (3550, 'Maha Sarakham', 217), (3551, 'Mukdahan', 217), (3552, 'Nakhon Nayok', 217), (3553, 'Nakhon Pathom', 217), (3554, 'Nakhon Phanom', 217), (3555, 'Nakhon Ratchasima', 217), (3556, 'Nakhon Sawan', 217), (3557, 'Nakhon Si Thammarat', 217), (3558, 'Nan', 217), (3559, 'Narathiwat', 217), (3560, 'Nong Bua Lam Phu', 217), (3561, 'Nong Khai', 217), (3562, 'Nonthaburi', 217), (3563, 'Pathum Thani', 217), (3564, 'Pattani', 217), (3565, 'Phangnga', 217), (3566, 'Phatthalung', 217), (3567, 'Phayao', 217), (3568, 'Phetchabun', 217), (3569, 'Phetchaburi', 217), (3570, 'Phichit', 217), (3571, 'Phitsanulok', 217), (3572, 'Phra Nakhon Si Ayutthaya', 217), (3573, 'Phrae', 217), (3574, 'Phuket', 217), (3575, 'Prachin Buri', 217), (3576, 'Prachuap Khiri Khan', 217), (3577, 'Ranong', 217), (3578, 'Ratchaburi', 217), (3579, 'Rayong', 217), (3580, 'Roi Et', 217), (3581, 'Sa Kaeo', 217), (3582, 'Sakon Nakhon', 217), (3583, 'Samut Prakan', 217), (3584, 'Samut Sakhon', 217), (3585, 'Samut Songkhran', 217), (3586, 'Saraburi', 217), (3587, 'Satun', 217), (3588, 'Si Sa Ket', 217), (3589, 'Sing Buri', 217), (3590, 'Songkhla', 217), (3591, 'Sukhothai', 217), (3592, 'Suphan Buri', 217), (3593, 'Surat Thani', 217), (3594, 'Surin', 217), (3595, 'Tak', 217), (3596, 'Trang', 217), (3597, 'Trat', 217), (3598, 'Ubon Ratchathani', 217), (3599, 'Udon Thani', 217), (3600, 'Uthai Thani', 217), (3601, 'Uttaradit', 217), (3602, 'Yala', 217), (3603, 'Yasothon', 217), (3604, 'Centre', 218), (3605, 'Kara', 218), (3606, 'Maritime', 218), (3607, 'Plateaux', 218), (3608, 'Savanes', 218), (3609, 'Atafu', 219), (3610, 'Fakaofo', 219), (3611, 'Nukunonu', 219), (3612, 'Eua', 220), (3613, 'Ha\'apai', 220), (3614, 'Niuas', 220), (3615, 'Tongatapu', 220), (3616, 'Vava\'u', 220), (3617, 'Arima-Tunapuna-Piarco', 221), (3618, 'Caroni', 221), (3619, 'Chaguanas', 221), (3620, 'Couva-Tabaquite-Talparo', 221), (3621, 'Diego Martin', 221), (3622, 'Glencoe', 221), (3623, 'Penal Debe', 221), (3624, 'Point Fortin', 221), (3625, 'Port of Spain', 221), (3626, 'Princes Town', 221), (3627, 'Saint George', 221), (3628, 'San Fernando', 221), (3629, 'San Juan', 221), (3630, 'Sangre Grande', 221), (3631, 'Siparia', 221), (3632, 'Tobago', 221), (3633, 'Aryanah', 222), (3634, 'Bajah', 222), (3635, 'Bin \'Arus', 222), (3636, 'Binzart', 222), (3637, 'Gouvernorat de Ariana', 222), (3638, 'Gouvernorat de Nabeul', 222), (3639, 'Gouvernorat de Sousse', 222), (3640, 'Hammamet Yasmine', 222), (3641, 'Jundubah', 222), (3642, 'Madaniyin', 222), (3643, 'Manubah', 222), (3644, 'Monastir', 222), (3645, 'Nabul', 222), (3646, 'Qabis', 222), (3647, 'Qafsah', 222), (3648, 'Qibili', 222), (3649, 'Safaqis', 222), (3650, 'Sfax', 222), (3651, 'Sidi Bu Zayd', 222), (3652, 'Silyanah', 222), (3653, 'Susah', 222), (3654, 'Tatawin', 222), (3655, 'Tawzar', 222), (3656, 'Tunis', 222), (3657, 'Zaghwan', 222), (3658, 'al-Kaf', 222), (3659, 'al-Mahdiyah', 222), (3660, 'al-Munastir', 222), (3661, 'al-Qasrayn', 222), (3662, 'al-Qayrawan', 222), (3663, 'Adana', 223), (3664, 'Adiyaman', 223), (3665, 'Afyon', 223), (3666, 'Agri', 223), (3667, 'Aksaray', 223), (3668, 'Amasya', 223), (3669, 'Ankara', 223), (3670, 'Antalya', 223), (3671, 'Ardahan', 223), (3672, 'Artvin', 223), (3673, 'Aydin', 223), (3674, 'Balikesir', 223), (3675, 'Bartin', 223), (3676, 'Batman', 223), (3677, 'Bayburt', 223), (3678, 'Bilecik', 223), (3679, 'Bingol', 223), (3680, 'Bitlis', 223), (3681, 'Bolu', 223), (3682, 'Burdur', 223), (3683, 'Bursa', 223), (3684, 'Canakkale', 223), (3685, 'Cankiri', 223), (3686, 'Corum', 223), (3687, 'Denizli', 223), (3688, 'Diyarbakir', 223), (3689, 'Duzce', 223), (3690, 'Edirne', 223), (3691, 'Elazig', 223), (3692, 'Erzincan', 223), (3693, 'Erzurum', 223), (3694, 'Eskisehir', 223), (3695, 'Gaziantep', 223), (3696, 'Giresun', 223), (3697, 'Gumushane', 223), (3698, 'Hakkari', 223), (3699, 'Hatay', 223), (3700, 'Icel', 223), (3701, 'Igdir', 223), (3702, 'Isparta', 223), (3703, 'Istanbul', 223), (3704, 'Izmir', 223), (3705, 'Kahramanmaras', 223), (3706, 'Karabuk', 223), (3707, 'Karaman', 223), (3708, 'Kars', 223), (3709, 'Karsiyaka', 223), (3710, 'Kastamonu', 223), (3711, 'Kayseri', 223), (3712, 'Kilis', 223), (3713, 'Kirikkale', 223), (3714, 'Kirklareli', 223), (3715, 'Kirsehir', 223), (3716, 'Kocaeli', 223), (3717, 'Konya', 223), (3718, 'Kutahya', 223), (3719, 'Lefkosa', 223), (3720, 'Malatya', 223), (3721, 'Manisa', 223), (3722, 'Mardin', 223), (3723, 'Mugla', 223), (3724, 'Mus', 223), (3725, 'Nevsehir', 223), (3726, 'Nigde', 223), (3727, 'Ordu', 223), (3728, 'Osmaniye', 223), (3729, 'Rize', 223), (3730, 'Sakarya', 223), (3731, 'Samsun', 223), (3732, 'Sanliurfa', 223), (3733, 'Siirt', 223), (3734, 'Sinop', 223), (3735, 'Sirnak', 223), (3736, 'Sivas', 223), (3737, 'Tekirdag', 223), (3738, 'Tokat', 223), (3739, 'Trabzon', 223), (3740, 'Tunceli', 223), (3741, 'Usak', 223), (3742, 'Van', 223), (3743, 'Yalova', 223), (3744, 'Yozgat', 223), (3745, 'Zonguldak', 223), (3746, 'Ahal', 224), (3747, 'Asgabat', 224), (3748, 'Balkan', 224), (3749, 'Dasoguz', 224), (3750, 'Lebap', 224), (3751, 'Mari', 224), (3752, 'Grand Turk', 225), (3753, 'South Caicos and East Caicos', 225), (3754, 'Funafuti', 226), (3755, 'Nanumanga', 226), (3756, 'Nanumea', 226), (3757, 'Niutao', 226), (3758, 'Nui', 226), (3759, 'Nukufetau', 226), (3760, 'Nukulaelae', 226), (3761, 'Vaitupu', 226), (3762, 'Central', 227), (3763, 'Eastern', 227), (3764, 'Northern', 227), (3765, 'Western', 227), (3766, 'Cherkas\'ka', 228), (3767, 'Chernihivs\'ka', 228), (3768, 'Chernivets\'ka', 228), (3769, 'Crimea', 228), (3770, 'Dnipropetrovska', 228), (3771, 'Donets\'ka', 228), (3772, 'Ivano-Frankivs\'ka', 228), (3773, 'Kharkiv', 228), (3774, 'Kharkov', 228), (3775, 'Khersonska', 228), (3776, 'Khmel\'nyts\'ka', 228), (3777, 'Kirovohrad', 228), (3778, 'Krym', 228), (3779, 'Kyyiv', 228), (3780, 'Kyyivs\'ka', 228), (3781, 'L\'vivs\'ka', 228), (3782, 'Luhans\'ka', 228), (3783, 'Mykolayivs\'ka', 228), (3784, 'Odes\'ka', 228), (3785, 'Odessa', 228), (3786, 'Poltavs\'ka', 228), (3787, 'Rivnens\'ka', 228), (3788, 'Sevastopol\'', 228), (3789, 'Sums\'ka', 228), (3790, 'Ternopil\'s\'ka', 228), (3791, 'Volyns\'ka', 228), (3792, 'Vynnyts\'ka', 228), (3793, 'Zakarpats\'ka', 228), (3794, 'Zaporizhia', 228), (3795, 'Zhytomyrs\'ka', 228), (3796, 'Abu Zabi', 229), (3797, 'Ajman', 229), (3798, 'Dubai', 229), (3799, 'Ras al-Khaymah', 229), (3800, 'Sharjah', 229), (3801, 'Sharjha', 229), (3802, 'Umm al Qaywayn', 229), (3803, 'al-Fujayrah', 229), (3804, 'ash-Shariqah', 229), (3805, 'Aberdeen', 230), (3806, 'Aberdeenshire', 230), (3807, 'Argyll', 230), (3808, 'Armagh', 230), (3809, 'Bedfordshire', 230), (3810, 'Belfast', 230), (3811, 'Berkshire', 230), (3812, 'Birmingham', 230), (3813, 'Brechin', 230), (3814, 'Bridgnorth', 230), (3815, 'Bristol', 230), (3816, 'Buckinghamshire', 230), (3817, 'Cambridge', 230), (3818, 'Cambridgeshire', 230), (3819, 'Channel Islands', 230), (3820, 'Cheshire', 230), (3821, 'Cleveland', 230), (3822, 'Co Fermanagh', 230), (3823, 'Conwy', 230), (3824, 'Cornwall', 230), (3825, 'Coventry', 230), (3826, 'Craven Arms', 230), (3827, 'Cumbria', 230), (3828, 'Denbighshire', 230), (3829, 'Derby', 230), (3830, 'Derbyshire', 230), (3831, 'Devon', 230), (3832, 'Dial Code Dungannon', 230), (3833, 'Didcot', 230), (3834, 'Dorset', 230), (3835, 'Dunbartonshire', 230), (3836, 'Durham', 230), (3837, 'East Dunbartonshire', 230), (3838, 'East Lothian', 230), (3839, 'East Midlands', 230), (3840, 'East Sussex', 230), (3841, 'East Yorkshire', 230), (3842, 'England', 230), (3843, 'Essex', 230), (3844, 'Fermanagh', 230), (3845, 'Fife', 230), (3846, 'Flintshire', 230), (3847, 'Fulham', 230), (3848, 'Gainsborough', 230), (3849, 'Glocestershire', 230), (3850, 'Gwent', 230), (3851, 'Hampshire', 230), (3852, 'Hants', 230), (3853, 'Herefordshire', 230), (3854, 'Hertfordshire', 230), (3855, 'Ireland', 230), (3856, 'Isle Of Man', 230), (3857, 'Isle of Wight', 230), (3858, 'Kenford', 230), (3859, 'Kent', 230), (3860, 'Kilmarnock', 230), (3861, 'Lanarkshire', 230), (3862, 'Lancashire', 230), (3863, 'Leicestershire', 230), (3864, 'Lincolnshire', 230), (3865, 'Llanymynech', 230), (3866, 'London', 230), (3867, 'Ludlow', 230), (3868, 'Manchester', 230), (3869, 'Mayfair', 230), (3870, 'Merseyside', 230), (3871, 'Mid Glamorgan', 230), (3872, 'Middlesex', 230), (3873, 'Mildenhall', 230), (3874, 'Monmouthshire', 230), (3875, 'Newton Stewart', 230), (3876, 'Norfolk', 230), (3877, 'North Humberside', 230), (3878, 'North Yorkshire', 230), (3879, 'Northamptonshire', 230), (3880, 'Northants', 230), (3881, 'Northern Ireland', 230), (3882, 'Northumberland', 230), (3883, 'Nottinghamshire', 230), (3884, 'Oxford', 230), (3885, 'Powys', 230), (3886, 'Roos-shire', 230), (3887, 'SUSSEX', 230), (3888, 'Sark', 230), (3889, 'Scotland', 230), (3890, 'Scottish Borders', 230), (3891, 'Shropshire', 230), (3892, 'Somerset', 230), (3893, 'South Glamorgan', 230), (3894, 'South Wales', 230), (3895, 'South Yorkshire', 230), (3896, 'Southwell', 230), (3897, 'Staffordshire', 230), (3898, 'Strabane', 230), (3899, 'Suffolk', 230), (3900, 'Surrey', 230), (3901, 'Sussex', 230), (3902, 'Twickenham', 230), (3903, 'Tyne and Wear', 230), (3904, 'Tyrone', 230), (3905, 'Utah', 230), (3906, 'Wales', 230), (3907, 'Warwickshire', 230), (3908, 'West Lothian', 230), (3909, 'West Midlands', 230), (3910, 'West Sussex', 230), (3911, 'West Yorkshire', 230), (3912, 'Whissendine', 230), (3913, 'Wiltshire', 230), (3914, 'Wokingham', 230), (3915, 'Worcestershire', 230), (3916, 'Wrexham', 230), (3917, 'Wurttemberg', 230), (3918, 'Yorkshire', 230), (3919, 'Alabama', 231), (3920, 'Alaska', 231), (3921, 'Arizona', 231), (3922, 'Arkansas', 231), (3923, 'Byram', 231), (3924, 'California', 231), (3925, 'Cokato', 231), (3926, 'Colorado', 231), (3927, 'Connecticut', 231), (3928, 'Delaware', 231), (3929, 'District of Columbia', 231), (3930, 'Florida', 231), (3931, 'Georgia', 231), (3932, 'Hawaii', 231), (3933, 'Idaho', 231), (3934, 'Illinois', 231), (3935, 'Indiana', 231), (3936, 'Iowa', 231), (3937, 'Kansas', 231), (3938, 'Kentucky', 231), (3939, 'Louisiana', 231), (3940, 'Lowa', 231), (3941, 'Maine', 231), (3942, 'Maryland', 231), (3943, 'Massachusetts', 231), (3944, 'Medfield', 231), (3945, 'Michigan', 231), (3946, 'Minnesota', 231), (3947, 'Mississippi', 231), (3948, 'Missouri', 231), (3949, 'Montana', 231), (3950, 'Nebraska', 231), (3951, 'Nevada', 231), (3952, 'New Hampshire', 231), (3953, 'New Jersey', 231), (3954, 'New Jersy', 231), (3955, 'New Mexico', 231), (3956, 'New York', 231), (3957, 'North Carolina', 231), (3958, 'North Dakota', 231), (3959, 'Ohio', 231), (3960, 'Oklahoma', 231), (3961, 'Ontario', 231), (3962, 'Oregon', 231), (3963, 'Pennsylvania', 231), (3964, 'Ramey', 231), (3965, 'Rhode Island', 231), (3966, 'South Carolina', 231), (3967, 'South Dakota', 231), (3968, 'Sublimity', 231), (3969, 'Tennessee', 231), (3970, 'Texas', 231), (3971, 'Trimble', 231), (3972, 'Utah', 231), (3973, 'Vermont', 231), (3974, 'Virginia', 231), (3975, 'Washington', 231), (3976, 'West Virginia', 231), (3977, 'Wisconsin', 231), (3978, 'Wyoming', 231), (3979, 'United States Minor Outlying I', 232), (3980, 'Artigas', 233), (3981, 'Canelones', 233), (3982, 'Cerro Largo', 233), (3983, 'Colonia', 233), (3984, 'Durazno', 233), (3985, 'FLorida', 233), (3986, 'Flores', 233), (3987, 'Lavalleja', 233), (3988, 'Maldonado', 233), (3989, 'Montevideo', 233), (3990, 'Paysandu', 233), (3991, 'Rio Negro', 233), (3992, 'Rivera', 233), (3993, 'Rocha', 233), (3994, 'Salto', 233), (3995, 'San Jose', 233), (3996, 'Soriano', 233), (3997, 'Tacuarembo', 233), (3998, 'Treinta y Tres', 233), (3999, 'Andijon', 234), (4000, 'Buhoro', 234), (4001, 'Buxoro Viloyati', 234), (4002, 'Cizah', 234), (4003, 'Fargona', 234), (4004, 'Horazm', 234), (4005, 'Kaskadar', 234), (4006, 'Korakalpogiston', 234), (4007, 'Namangan', 234), (4008, 'Navoi', 234), (4009, 'Samarkand', 234), (4010, 'Sirdare', 234), (4011, 'Surhondar', 234), (4012, 'Toskent', 234), (4013, 'Malampa', 235), (4014, 'Penama', 235), (4015, 'Sanma', 235), (4016, 'Shefa', 235), (4017, 'Tafea', 235), (4018, 'Torba', 235), (4019, 'Vatican City State (Holy See)', 236), (4020, 'Amazonas', 237), (4021, 'Anzoategui', 237), (4022, 'Apure', 237), (4023, 'Aragua', 237), (4024, 'Barinas', 237), (4025, 'Bolivar', 237), (4026, 'Carabobo', 237), (4027, 'Cojedes', 237), (4028, 'Delta Amacuro', 237), (4029, 'Distrito Federal', 237), (4030, 'Falcon', 237), (4031, 'Guarico', 237), (4032, 'Lara', 237), (4033, 'Merida', 237), (4034, 'Miranda', 237), (4035, 'Monagas', 237), (4036, 'Nueva Esparta', 237), (4037, 'Portuguesa', 237), (4038, 'Sucre', 237), (4039, 'Tachira', 237), (4040, 'Trujillo', 237), (4041, 'Vargas', 237), (4042, 'Yaracuy', 237), (4043, 'Zulia', 237), (4044, 'Bac Giang', 238), (4045, 'Binh Dinh', 238), (4046, 'Binh Duong', 238), (4047, 'Da Nang', 238), (4048, 'Dong Bang Song Cuu Long', 238), (4049, 'Dong Bang Song Hong', 238), (4050, 'Dong Nai', 238), (4051, 'Dong Nam Bo', 238), (4052, 'Duyen Hai Mien Trung', 238), (4053, 'Hanoi', 238), (4054, 'Hung Yen', 238), (4055, 'Khu Bon Cu', 238), (4056, 'Long An', 238), (4057, 'Mien Nui Va Trung Du', 238), (4058, 'Thai Nguyen', 238), (4059, 'Thanh Pho Ho Chi Minh', 238), (4060, 'Thu Do Ha Noi', 238), (4061, 'Tinh Can Tho', 238), (4062, 'Tinh Da Nang', 238), (4063, 'Tinh Gia Lai', 238), (4064, 'Anegada', 239), (4065, 'Jost van Dyke', 239), (4066, 'Tortola', 239), (4067, 'Saint Croix', 240), (4068, 'Saint John', 240), (4069, 'Saint Thomas', 240), (4070, 'Alo', 241), (4071, 'Singave', 241), (4072, 'Wallis', 241), (4073, 'Bu Jaydur', 242), (4074, 'Wad-adh-Dhahab', 242), (4075, 'al-\'Ayun', 242), (4076, 'as-Samarah', 242), (4077, '\'Adan', 243), (4078, 'Abyan', 243), (4079, 'Dhamar', 243), (4080, 'Hadramaut', 243), (4081, 'Hajjah', 243), (4082, 'Hudaydah', 243), (4083, 'Ibb', 243), (4084, 'Lahij', 243), (4085, 'Ma\'rib', 243), (4086, 'Madinat San\'a', 243), (4087, 'Sa\'dah', 243), (4088, 'Sana', 243), (4089, 'Shabwah', 243), (4090, 'Ta\'izz', 243), (4091, 'al-Bayda', 243), (4092, 'al-Hudaydah', 243), (4093, 'al-Jawf', 243), (4094, 'al-Mahrah', 243), (4095, 'al-Mahwit', 243), (4096, 'Central Serbia', 244), (4097, 'Kosovo and Metohija', 244), (4098, 'Montenegro', 244), (4099, 'Republic of Serbia', 244), (4100, 'Serbia', 244), (4101, 'Vojvodina', 244), (4102, 'Central', 245), (4103, 'Copperbelt', 245), (4104, 'Eastern', 245), (4105, 'Luapala', 245), (4106, 'Lusaka', 245), (4107, 'North-Western', 245), (4108, 'Northern', 245), (4109, 'Southern', 245), (4110, 'Western', 245), (4111, 'Bulawayo', 246), (4112, 'Harare', 246), (4113, 'Manicaland', 246), (4114, 'Mashonaland Central', 246), (4115, 'Mashonaland East', 246), (4116, 'Mashonaland West', 246), (4117, 'Masvingo', 246), (4118, 'Matabeleland North', 246), (4119, 'Matabeleland South', 246), (4120, 'Midlands', 246); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(25) COLLATE utf8_spanish_ci NOT NULL, `password` varchar(25) COLLATE utf8_spanish_ci NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `name` varchar(25) COLLATE utf8_spanish_ci NOT NULL, `permisions` varchar(25) COLLATE utf8_spanish_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `user` -- INSERT INTO `user` (`id`, `username`, `password`, `status`, `name`, `permisions`) VALUES (1, 'lighuen.diaz', '1234', 1, 'Diaz Lighuen', 'admin'), (2, 'pdluna', '1234', 1, 'Pablo Luna', 'user'), (3, 'na.galiano', '1234', 1, 'Natalia Galiano', 'user'), (4, 'hoteleria', '1234', 1, 'Howard Johnson', 'provider'), (5, 'Concesionaria ', '1234', 1, 'Zíngaro', 'provider'), (6, 'Aerolinea', '1234', 1, 'Iberia', 'provider'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `user_consumer` -- CREATE TABLE `user_consumer` ( `user_id` int(11) NOT NULL, `cart_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `user_consumer` -- INSERT INTO `user_consumer` (`user_id`, `cart_id`) VALUES (2, 1), (3, 2); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `vehicle` -- CREATE TABLE `vehicle` ( `id` int(11) NOT NULL, `concessionaire_id` int(11) NOT NULL, `slots` int(1) NOT NULL, `fuel` varchar(25) COLLATE utf8_spanish_ci NOT NULL, `description` text COLLATE utf8_spanish_ci NOT NULL, `price` float NOT NULL, `city_id` int(11) NOT NULL, `country_id` int(11) NOT NULL, `state_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Volcado de datos para la tabla `vehicle` -- INSERT INTO `vehicle` (`id`, `concessionaire_id`, `slots`, `fuel`, `description`, `price`, `city_id`, `country_id`, `state_id`) VALUES (1, 5, 4, 'Nafta', 'Auto familiar', 250, 2, 10, 208), (2, 5, 4, 'Nafta', 'Auto familiar', 250, 2, 10, 208), (3, 5, 4, 'Nafta', 'Auto familiar', 250, 2, 10, 208), (4, 5, 4, 'Diesel', 'Auto familiar', 300, 2, 10, 208), (5, 5, 2, 'Nafta', 'Auto para parejas', 200, 2, 10, 208), (6, 5, 2, 'Nafta', 'Auto para parejas', 200, 2, 10, 208), (7, 5, 2, 'Nafta', 'Auto para parejas', 200, 2, 10, 208), (8, 5, 2, 'Nafta', 'Auto para parejas', 200, 2, 10, 208), (9, 5, 2, 'Diesel', 'Auto de lujo', 800, 2, 10, 208), (10, 5, 2, 'Diesel', 'Auto de lujo', 800, 2, 10, 208), (11, 5, 4, 'Nafta', 'Auto familiar', 250, 1, 205, 3315), (12, 5, 4, 'Nafta', 'Auto familiar', 250, 1, 205, 3315), (13, 5, 4, 'Nafta', 'Auto familiar', 250, 1, 205, 3315), (14, 5, 4, 'Diesel', 'Auto familiar', 300, 1, 205, 3315), (15, 5, 2, 'Nafta', 'Auto para parejas', 200, 1, 205, 3315), (16, 5, 2, 'Nafta', 'Auto para parejas', 200, 1, 205, 3315), (17, 5, 2, 'Nafta', 'Auto para parejas', 200, 1, 205, 3315), (18, 5, 2, 'Nafta', 'Auto para parejas', 200, 1, 205, 3315), (19, 5, 2, 'Diesel', 'Auto de lujo', 800, 1, 205, 3315), (20, 5, 2, 'Diesel', 'Auto de lujo', 800, 1, 205, 3315), (21, 5, 4, 'Nafta', 'Auto familiar', 250, 3, 107, 1848), (22, 5, 4, 'Nafta', 'Auto familiar', 250, 3, 107, 1848), (23, 5, 4, 'Nafta', 'Auto familiar', 250, 3, 107, 1848), (24, 5, 4, 'Diesel', 'Auto familiar', 300, 3, 107, 1848), (25, 5, 2, 'Nafta', 'Auto para parejas', 200, 3, 107, 1848), (26, 5, 2, 'Nafta', 'Auto para parejas', 200, 3, 107, 1848), (27, 5, 2, 'Nafta', 'Auto para parejas', 200, 3, 107, 1848), (28, 5, 2, 'Nafta', 'Auto para parejas', 200, 3, 107, 1848), (29, 5, 2, 'Diesel', 'Auto de lujo', 800, 3, 107, 1848), (30, 5, 2, 'Diesel', 'Auto de lujo', 800, 3, 107, 1848); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `vehicle_reserve` -- CREATE TABLE `vehicle_reserve` ( `id` int(11) NOT NULL, `id_vehicle` int(11) NOT NULL, `id_user` int(11) NOT NULL, `date_in` date NOT NULL, `date_out` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `airline` -- ALTER TABLE `airline` ADD KEY `user_id` (`user_id`); -- -- Indices de la tabla `cart` -- ALTER TABLE `cart` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `city` -- ALTER TABLE `city` ADD PRIMARY KEY (`id`), ADD KEY `country_id` (`country_id`), ADD KEY `state_id` (`state_id`); -- -- Indices de la tabla `concessionaire` -- ALTER TABLE `concessionaire` ADD KEY `user_id` (`concessionaire_id`); -- -- Indices de la tabla `country` -- ALTER TABLE `country` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `flight` -- ALTER TABLE `flight` ADD PRIMARY KEY (`id`), ADD KEY `airline_id` (`airline_id`), ADD KEY `origin_id` (`origin_id`), ADD KEY `destiny_id` (`destiny_id`); -- -- Indices de la tabla `history` -- ALTER TABLE `history` ADD KEY `user_consumer_id` (`user_consumer_id`), ADD KEY `cart_id` (`cart_id`); -- -- Indices de la tabla `hotel` -- ALTER TABLE `hotel` ADD PRIMARY KEY (`id`), ADD KEY `country_id` (`country_id`), ADD KEY `city_id` (`city_id`), ADD KEY `quality` (`quality`), ADD KEY `state_id` (`state_id`), ADD KEY `hotel_company_id` (`hotel_company_id`); -- -- Indices de la tabla `hotel_company` -- ALTER TABLE `hotel_company` ADD KEY `user_id` (`user_id`); -- -- Indices de la tabla `room` -- ALTER TABLE `room` ADD PRIMARY KEY (`id`), ADD KEY `hotel_id` (`hotel_id`), ADD KEY `beds` (`beds`); -- -- Indices de la tabla `room_reserve` -- ALTER TABLE `room_reserve` ADD PRIMARY KEY (`id`), ADD KEY `id_user` (`id_user`), ADD KEY `id_room` (`id_room`) USING BTREE; -- -- Indices de la tabla `seat` -- ALTER TABLE `seat` ADD PRIMARY KEY (`id`), ADD KEY `flight_id` (`flight_id`); -- -- Indices de la tabla `services` -- ALTER TABLE `services` ADD KEY `cart_id` (`cart_id`), ADD KEY `service_id` (`service_id`); -- -- Indices de la tabla `state` -- ALTER TABLE `state` ADD PRIMARY KEY (`id`), ADD KEY `country_id` (`country_id`); -- -- Indices de la tabla `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `user_consumer` -- ALTER TABLE `user_consumer` ADD KEY `id_user` (`user_id`), ADD KEY `cart` (`cart_id`); -- -- Indices de la tabla `vehicle` -- ALTER TABLE `vehicle` ADD PRIMARY KEY (`id`), ADD KEY `concessionaire_id` (`concessionaire_id`), ADD KEY `slots` (`slots`), ADD KEY `city_id` (`city_id`), ADD KEY `country_id` (`country_id`), ADD KEY `state_id` (`state_id`); -- -- Indices de la tabla `vehicle_reserve` -- ALTER TABLE `vehicle_reserve` ADD PRIMARY KEY (`id`), ADD KEY `id_vehicle` (`id_vehicle`), ADD KEY `id_user` (`id_user`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `cart` -- ALTER TABLE `cart` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `city` -- ALTER TABLE `city` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `country` -- ALTER TABLE `country` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=247; -- -- AUTO_INCREMENT de la tabla `flight` -- ALTER TABLE `flight` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=187; -- -- AUTO_INCREMENT de la tabla `hotel` -- ALTER TABLE `hotel` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `room` -- ALTER TABLE `room` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT de la tabla `room_reserve` -- ALTER TABLE `room_reserve` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `seat` -- ALTER TABLE `seat` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3361; -- -- AUTO_INCREMENT de la tabla `state` -- ALTER TABLE `state` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4121; -- -- AUTO_INCREMENT de la tabla `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT de la tabla `vehicle` -- ALTER TABLE `vehicle` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT de la tabla `vehicle_reserve` -- ALTER TABLE `vehicle_reserve` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `airline` -- ALTER TABLE `airline` ADD CONSTRAINT `airline_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `city` -- ALTER TABLE `city` ADD CONSTRAINT `city_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `city_ibfk_2` FOREIGN KEY (`country_id`) REFERENCES `country` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `concessionaire` -- ALTER TABLE `concessionaire` ADD CONSTRAINT `concessionaire_ibfk_1` FOREIGN KEY (`concessionaire_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `flight` -- ALTER TABLE `flight` ADD CONSTRAINT `flight_ibfk_1` FOREIGN KEY (`airline_id`) REFERENCES `airline` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `flight_ibfk_2` FOREIGN KEY (`origin_id`) REFERENCES `city` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `flight_ibfk_3` FOREIGN KEY (`destiny_id`) REFERENCES `city` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `history` -- ALTER TABLE `history` ADD CONSTRAINT `history_ibfk_1` FOREIGN KEY (`user_consumer_id`) REFERENCES `user_consumer` (`user_id`), ADD CONSTRAINT `history_ibfk_2` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `hotel` -- ALTER TABLE `hotel` ADD CONSTRAINT `hotel_ibfk_1` FOREIGN KEY (`city_id`) REFERENCES `city` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `hotel_ibfk_2` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `hotel_ibfk_3` FOREIGN KEY (`country_id`) REFERENCES `country` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `hotel_ibfk_4` FOREIGN KEY (`hotel_company_id`) REFERENCES `hotel_company` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `hotel_company` -- ALTER TABLE `hotel_company` ADD CONSTRAINT `hotel_company_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `room` -- ALTER TABLE `room` ADD CONSTRAINT `room_ibfk_1` FOREIGN KEY (`hotel_id`) REFERENCES `hotel` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `seat` -- ALTER TABLE `seat` ADD CONSTRAINT `seat_ibfk_1` FOREIGN KEY (`flight_id`) REFERENCES `flight` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `services` -- ALTER TABLE `services` ADD CONSTRAINT `services_ibfk_1` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `state` -- ALTER TABLE `state` ADD CONSTRAINT `state_ibfk_1` FOREIGN KEY (`country_id`) REFERENCES `country` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `user_consumer` -- ALTER TABLE `user_consumer` ADD CONSTRAINT `user_consumer_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `user_consumer_ibfk_2` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `vehicle` -- ALTER TABLE `vehicle` ADD CONSTRAINT `vehicle_ibfk_1` FOREIGN KEY (`concessionaire_id`) REFERENCES `concessionaire` (`concessionaire_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `vehicle_ibfk_2` FOREIGN KEY (`city_id`) REFERENCES `city` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `vehicle_ibfk_3` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `vehicle_ibfk_4` FOREIGN KEY (`country_id`) REFERENCES `country` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
bef565b8572ef0ad7f2027dc5b75733d6e15a87d
SQL
KonradSwierczynski/Storm
/database/procedures.sql
UTF-8
11,789
3.890625
4
[]
no_license
USE storm_database; DROP PROCEDURE IF EXISTS StatisticsOfFootballer; # StatisticsOfFootballer(in selectedName varchar(225), in selectedSurname varchar(225)) DROP PROCEDURE IF EXISTS StatisticsOfClub; # StatisticsOfClub(in selectedName varchar(225)) DROP PROCEDURE IF EXISTS StatisticsOfReferee; # StatisticsOfReferee(in selectedName varchar(225), in selectedSurname varchar(225)) DROP PROCEDURE IF EXISTS StatisticsOfLeague; # StatisticsOfLeague(in selectedName varchar(225)) DROP PROCEDURE IF EXISTS StatisticsOfLeagueInSezon; # StatisticsOfLeagueInSezon(in selectedName varchar(225), in selectedYear YEAR, in selectedRound nvarchar(225)) DROP PROCEDURE IF EXISTS CreateGame; # CreateGame(in firstTeam varchar(225), in secoundTeam varchar(225), in sezonYear YEAR, in sezonRound varchar(225), in refereeName varchar(225), in refereeSurname varchar(225), in stadiumName varchar(225), in gameDate DATE) DROP PROCEDURE IF EXISTS DeleteGame; # DeleteGame(in firstTeam varchar(225), in secoundTeam varchar(225), in sezonYear YEAR, in sezonRound varchar(225), in refereeName varchar(225), in refereeSurname varchar(225), in stadiumName varchar(225), in gameDate DATE) DROP PROCEDURE IF EXISTS PlayersInClub; # PlayersInClub(in selectedName varchar(225)) DROP PROCEDURE IF EXISTS CreateClub; # CreateClub(in clubName varchar(225), in leagueName varchar(225), in fundation YEAR, in city varchar(225), in budget int) DROP PROCEDURE IF EXISTS FootballGames; # FootballGames() DROP PROCEDURE IF EXISTS UpdateFootballerInClub; # UpdateFootballerInClub(in fotballerName varchar(225), in fotballerSurname varchar(225), in clubName varchar(225), in selectedYear YEAR, in selectedRound nvarchar(225), in newContractTo DATE, in newSalary int) DROP PROCEDURE IF EXISTS UpdateStatisticsOfFootballer; # UpdateStatisticsOfFootballer(in club varchar(225), in gameDate DATE, in footballerName varchar(225), in footballerSurname varchar(225), in sGoals int, in fRedCards int, in fRellowCards int, in fPasses int, in fAssists int, in fOwnGoals int) delimiter // CREATE PROCEDURE UpdateStatisticsOfFootballer(in fClub varchar(225), in gameDate DATE, in footballerName varchar(225), in footballerSurname varchar(225), in fGoals int, in fRedCards int, in fYellowCards int, in fPasses int, in fAssists int, in fOwnGoals int) BEGIN DECLARE club int; DECLARE game int; DECLARE footballer int; SET club = (SELECT Club.id FROM Club WHERE Club.name = fClub LIMIT 1); SET game = (SELECT FootballGame.id FROM FootballGame WHERE FootballGame.date = gameDate AND (FootballGame.club1Id = club OR FootballGame.club2Id = club) LIMIT 1); SET footballer = (SELECT Footballer.id FROM Footballer WHERE Footballer.name = footballerName AND Footballer.surname = footballerSurname LIMIT 1); SELECT footballer, game, club; IF game IS NOT NULL AND footballer IS NOT NULL THEN UPDATE Statistics SET Statistics.goals = fGoals, Statistics.redCards = fredCards, Statistics.yellowCards = fYellowCards, Statistics.passes = fPasses, Statistics.assists = fAssists, Statistics.ownGoals = ownGoals WHERE Statistics.footballerId = footballer AND Statistics.gameId = game; END IF; END;// CREATE PROCEDURE DeleteGame(in firstTeam varchar(225), in secoundTeam varchar(225), in sezonYear YEAR, in sezonRound varchar(225), in refereeName varchar(225), in refereeSurname varchar(225), in stadiumName varchar(225), in gameDate DATE) BEGIN DECLARE club1 int; DECLARE club2 int; DECLARE sezon int; DECLARE referee int; DECLARE stadium int; DECLARE game int; SET club1 = (SELECT Club.id FROM Club WHERE Club.name = firstTeam LIMIT 1); SET club2 = (SELECT Club.id FROM Club WHERE Club.name = secoundTeam LIMIT 1); SET sezon = (SELECT Sezon.id FROM Sezon WHERE Sezon.round = sezonRound AND Sezon.year = sezonYear LIMIT 1); SET referee = (SELECT Referee.id FROM Referee WHERE Referee.name = refereeName AND Referee.surname = refereeSurname LIMIT 1); SET stadium = (SELECT Stadium.id FROM Stadium WHERE Stadium.name = stadiumName LIMIT 1); SET game = (SELECT FootballGame.id FROM FootballGame WHERE FootballGame.club1Id = club1 AND FootballGame.club2Id = club2 AND FootballGame.date = gameDate AND FootballGame.refereeId = referee AND FootballGame.sezonId = sezon AND FootballGame.stadiumId = stadium LIMIT 1); SET autocommit = 0; START TRANSACTION; DELETE FROM FootballGame WHERE FootballGame.id = game; DELETE FROM Statistics WHERE Statistics.gameId = game; COMMIT; SET autocommit = 1; END;// CREATE PROCEDURE CreateGame(in firstTeam varchar(225), in secoundTeam varchar(225), in sezonYear YEAR, in sezonRound varchar(225), in refereeName varchar(225), in refereeSurname varchar(225), in stadiumName varchar(225), in gameDate DATE) BEGIN DECLARE club1 int; DECLARE club2 int; DECLARE sezon int; DECLARE referee int; DECLARE stadium int; SET club1 = (SELECT Club.id FROM Club WHERE Club.name = firstTeam LIMIT 1); SET club2 = (SELECT Club.id FROM Club WHERE Club.name = secoundTeam LIMIT 1); SET sezon = (SELECT Sezon.id FROM Sezon WHERE Sezon.round = sezonRound AND Sezon.year = sezonYear LIMIT 1); SET referee = (SELECT Referee.id FROM Referee WHERE Referee.name = refereeName AND Referee.surname = refereeSurname LIMIT 1); SET stadium = (SELECT Stadium.id FROM Stadium WHERE Stadium.name = stadiumName LIMIT 1); IF club1 IS NOT NULL AND club2 IS NOT NULL AND sezon IS NOT NULL AND referee IS NOT NULL AND stadium IS NOT NULL THEN INSERT INTO FootballGame (club1Id, club2Id, sezonId, refereeId, stadiumId, date) VALUES (club1, club2, sezon, referee, stadium, gameDate); END IF; END;// CREATE PROCEDURE StatisticsOfFootballer(in selectedName varchar(225), in selectedSurname varchar(225)) BEGIN SELECT Footballer.name, Footballer.surname, COALESCE(SUM(Statistics.goals), 0) AS Goals, COALESCE(AVG(Statistics.goals), 0) AS 'Avg. Goals', COUNT(Statistics.footballerId) AS 'Matches played', COALESCE(SUM(Statistics.redCards), 0) AS 'Red Cards', COALESCE(SUM(Statistics.yellowCards), 0) AS 'Yellow Cards', COALESCE(SUM(Statistics.assists), 0) AS Assists, COALESCE(SUM(Statistics.passes), 0) AS Passes, COALESCE(SUM(Statistics.ownGoals), 0) AS 'Own Goals' FROM Footballer LEFT JOIN Statistics ON Footballer.id = Statistics.footballerId WHERE Footballer.name = selectedName AND Footballer.surname = selectedSurname GROUP BY Footballer.id; SELECT Club.name, Sezon.year, Sezon.round, FootballerInClub.salary FROM Footballer INNER JOIN FootballerInClub ON Footballer.id = FootballerInClub.footballerId INNER JOIN Club ON FootballerInClub.clubId = Club.id INNER JOIN Sezon ON FootballerInClub.sezonId = Sezon.id WHERE Footballer.name = selectedName AND Footballer.surname = selectedSurname; END;// CREATE PROCEDURE CreateClub(in clubName varchar(225), in leagueName varchar(225), in fundation YEAR, in city varchar(225), in budget int) BEGIN DECLARE league int; SET league = (SELECT League.id FROM League WHERE League.name = leagueName LIMIT 1); IF league IS NOT NULL THEN INSERT INTO Club (leagueId, fundationYear, name, city, budget) VALUES (league, fundation, clubName, city, budget); END IF; END;// CREATE PROCEDURE StatisticsOfClub(in selectedName varchar(225)) BEGIN SELECT Club.name, Club.city, Club.budget,League.name, COALESCE(SUM(Statistics.goals), 0) AS Goals, COALESCE(SUM(Statistics.redCards), 0) AS 'Red Cards', COALESCE(SUM(Statistics.yellowCards), 0) AS 'Yellow Cards' FROM Club LEFT JOIN FootballerInClub ON Club.id = FootballerInClub.clubId LEFT JOIN Statistics ON FootballerInClub.footballerId = Statistics.footballerId INNER JOIN League ON Club.leagueId = League.id WHERE Club.name = selectedName GROUP BY Club.id ORDER BY Goals DESC; END;// CREATE PROCEDURE StatisticsOfReferee(in selectedName varchar(225), in selectedSurname varchar(225)) BEGIN SELECT Referee.name, Referee.surname, Referee.category, Referee.dateOfBirth AS 'date of birth', Referee.nationality, COUNT(FootballGame.id) AS Matches FROM Referee LEFT JOIN FootballGame ON Referee.id = FootballGame.refereeId WHERE Referee.name = selectedName AND Referee.surname = selectedSurname GROUP BY Referee.id ORDER BY Matches DESC; END;// CREATE PROCEDURE StatisticsOfLeague(in selectedName varchar(225)) BEGIN SELECT Club.name, Club.city, Club.budget,League.name, COALESCE(SUM(Statistics.goals), 0) AS Goals, COALESCE(SUM(Statistics.redCards), 0) AS 'Red Cards', COALESCE(SUM(Statistics.yellowCards), 0) AS 'Yellow Cards' FROM Club LEFT JOIN FootballerInClub ON Club.id = FootballerInClub.clubId LEFT JOIN Statistics ON FootballerInClub.footballerId = Statistics.footballerId INNER JOIN League ON Club.leagueId = League.id WHERE League.name = selectedName GROUP BY Club.id ORDER BY Goals DESC; END;// CREATE PROCEDURE PlayersInClub(in selectedName varchar(225)) BEGIN SELECT Footballer.name, Footballer.surname FROM Footballer INNER JOIN Club INNER JOIN FootballerInClub ON Club.Id = FootballerInClub.clubId AND Footballer.id = FootballerInClub.footballerId WHERE Club.name = selectedName; END;// CREATE PROCEDURE FootballGames() BEGIN SELECT DISTINCT club1.name, club2.name, Stadium.name, Stadium.city, FootballGame.date FROM FootballGame INNER JOIN Club club1 ON FootballGame.club1Id = club1.id INNER JOIN Club club2 ON FootballGame.club2Id = club2.id INNER JOIN Stadium ON FootballGame.stadiumId = Stadium.id; END;// CREATE PROCEDURE StatisticsOfLeagueInSezon(in selectedName varchar(225), in selectedYear YEAR, in selectedRound nvarchar(225)) BEGIN SELECT Club.name, Club.city, Club.budget,League.name, COALESCE(SUM(Statistics.goals), 0) AS Goals, COALESCE(SUM(Statistics.redCards), 0) AS 'Red Cards', COALESCE(SUM(Statistics.yellowCards), 0) AS 'Yellow Cards' FROM Club INNER JOIN Sezon LEFT JOIN FootballerInClub ON Club.id = FootballerInClub.clubId AND FootballerInClub.sezonId = Sezon.id LEFT JOIN Statistics ON FootballerInClub.footballerId = Statistics.footballerId INNER JOIN League ON Club.leagueId = League.id WHERE League.name = selectedName AND Sezon.round = selectedRound AND Sezon.year = selectedYear GROUP BY Club.id ORDER BY Goals DESC; END;// CREATE PROCEDURE UpdateFootballerInClub(in fotballerName varchar(225), in fotballerSurname varchar(225), in clubName varchar(225), in selectedYear YEAR, in selectedRound nvarchar(225), in newContractTo DATE, in newSalary int) BEGIN DECLARE footballer int; DECLARE club int; DECLARE sezon int; SET footballer = (SELECT Footballer.id FROM Footballer WHERE Footballer.name = clubName AND Footballer.surname = fotballerSurname LIMIT 1); SET club = (SELECT Club.id FROM Club WHERE Club.name = clubName LIMIT 1); SET sezon = (SELECT Sezon.id FROM Sezon WHERE Sezon.round = sezonRound AND Sezon.year = sezonYear); IF (SELECT * FROM FootballerInClub WHERE FootballerInClub.footballerId = footballer AND FootballerInClub.clubId = club AND FootballerInClub.sezonId = sezon) IS NULL THEN INSERT INTO FootballerInClub (footballerId, clubId, sezonId, contractTo, salary) VALUES (footballer, club, sezon, newContractTo, newSalary); ELSE UPDATE FootballerInClub SET contractTo = newContractTo, salary = newSalary WHERE FootballerInClub.footballerId = footballer AND FootballerInClub.clubId = club AND FootballerInClub.sezonId = sezon; END IF; END;// delimiter ;
true
002963182340fdd6e0efcb2b8c268839b9cf152a
SQL
bitcoinerie/bitcoinerie
/requetes.sql
UTF-8
5,809
4.25
4
[]
no_license
.mode columns .header on .width 35 -- 1 -- Liste des auteurs présents dans la base. SELECT DISTINCT auteurLivre FROM Livre; -- 2 -- Liste des Livres de Victor Hugo SELECT titreLivre FROM Livre WHERE auteurLivre = 'Victor Hugo'; -- 3 -- Liste des Livres de Victor Hugo appartenant à la catégorie 5 (Théâtre). SELECT titreLivre FROM Livre WHERE auteurLivre = 'Victor Hugo' AND categLivre = 5; -- 4 -- Liste des Livres de Jacques Prevert ou de Gilbert Sinoue. SELECT titreLivre FROM Livre WHERE auteurLivre = 'Jacques Prévert' OR auteurLivre = 'Gilbert Sinoué'; -- 5 -- Liste des Membres n’habitant pas à Marseille. SELECT nomMembre FROM Membre WHERE adrMembre <> 'Marseille'; -- 6 -- Liste des livres (titre, auteur) empruntés au moins une fois. SELECT titreLivre, auteurLivre FROM Livre WHERE IdLivre IN ( SELECT IdLivre FROM Emprunt ); -- Idem, utilisation de JOIN SELECT DISTINCT titreLivre, auteurLivre FROM Livre JOIN Emprunt ON Livre.IdLivre = Emprunt.IdLivre; -- 7 -- Liste des livres jamais empruntés. SELECT titreLivre, auteurLivre FROM Livre WHERE IdLivre NOT IN ( SELECT IdLivre FROM Emprunt ); -- Idem, approche ensembliste SELECT titreLivre, auteurLivre FROM Livre EXCEPT SELECT titreLivre, auteurLivre FROM Livre WHERE IdLivre IN ( SELECT IdLivre FROM Emprunt ); -- 8 -- Liste des membres qui ont emprunté Ruy Blas. SELECT nomMembre FROM Membre WHERE IdMembre IN ( SELECT IdMembre FROM Emprunt WHERE IdLivre IN ( SELECT IdLivre FROM Livre WHERE titreLivre = 'Ruy Blas' ) ); -- Idem avec JOIN -- SELECT nomMembre FROM Membre JOIN Emprunt ON Membre.IdMembre = Emprunt.IdMembre JOIN Livre ON Emprunt.IdLivre = Livre.IdLivre WHERE titreLivre = 'Ruy Blas'; -- 9 -- Liste des livres empruntés par des membres habitant dans le 8ème arrondissement de Marseille. SELECT titreLivre, auteurLivre FROM Livre WHERE IdLivre IN ( SELECT IdLivre FROM Emprunt WHERE IdMembre IN ( SELECT IdMembre FROM Membre WHERE cpMembre = '13008' ) ); -- 10 -- Quels sont les livres qui ont été empruntés au cours de la période allant du 16/01/10 au 15/06/10? SELECT titreLivre, auteurLivre FROM Livre WHERE IdLivre IN ( SELECT IdLivre FROM Emprunt WHERE dateEmprunt BETWEEN '2010-01-16' AND '2010-06-15' ); -- 11. Donner la liste des livres se trouvant à St Charles ou à République. SELECT titreLivre, auteurLivre FROM Livre WHERE IdBiblio IN ( SELECT IdBiblio FROM Biblio WHERE nomBiblio = 'St Charles' OR nomBiblio = 'République' ); -- 12 -- Quels sont les numéros des membres qui ont emprunté au moins un livre à Marseille -- pour une durée supérieure ou égale à 7 jours ? SELECT DISTINCT IdMembre FROM Emprunt WHERE dureeEmprunt >= 7 AND IdLivre IN ( SELECT IdLivre FROM Livre WHERE IdBiblio IN ( SELECT IdBiblio FROM Biblio WHERE adrBiblio = 'Marseille' ) ); -- 13 -- Liste des membres qui ont emprunté à la fois ‘Contes pour les enfants pas sages’ -- et ‘Avicenne’ SELECT IdMembre FROM Emprunt WHERE IdLivre IN ( SELECT IdLivre FROM Livre WHERE titreLivre = 'Contes pour les enfants pas sages' ) INTERSECT SELECT IdMembre FROM Emprunt WHERE IdLivre IN ( SELECT IdLivre FROM Livre WHERE titreLivre = 'Avicenne' ); -- 14 -- Quels sont les numéros des livres qui ont été empruntés au moins deux fois? SELECT IdLivre FROM ( SELECT IdLivre, COUNT(*) AS nb FROM Emprunt GROUP By IdLivre HAVING nb > 1 ); -- Idem (auto-jointure) SELECT DISTINCT E1.IdLivre FROM Emprunt E1 JOIN Emprunt E2 ON E1.IdLivre = E2.IdLivre WHERE E1.IdMembre != E2.IDMembre; --15 -- Quels sont les numéros des livres qui ont été empruntés au moins deux fois -- au cours de la période allant du 16/01/10 au 15/03/10? SELECT DISTINCT E1.IdLivre FROM Emprunt E1 JOIN Emprunt E2 ON E1.IdLivre = E2.IdLivre WHERE E1.IdMembre != E2.IDMembre AND E1.dateEmprunt BETWEEN '2010-01-16' AND '2010-03-15'; -- 16 -- Pour chaque catégorie de livre, donner le nombre de livres disponibles. SELECT categLivre, COUNT(*) FROM Livre GROUP BY categLivre; -- 17 -- Pour chaque catégorie de livre, donner le nombre de livres empruntés -- au moins une fois. SELECT categLivre, COUNT(*) FROM Livre WHERE IdLivre IN ( SELECT IdLivre FROM Emprunt) GROUP BY categLivre; -- 18 -- Donner les noms des membres qui ont emprunté plus de deux livres. SELECT nomMembre FROM ( SELECT nomMembre, COUNT(*) AS cpt FROM Membre JOIN Emprunt ON Membre.IdMembre = Emprunt.IdMembre GROUP BY nomMembre HAVING cpt > 1 ); -- 19 -- Quels sont les numéro et noms des membres qui ont emprunté au moins un livre -- écrit par ‘Victor Hugo’ mais qui n’ont jamais emprunté de livre écrit par ‘Jacques Prévert’ ? SELECT IdMembre FROM Emprunt JOIN Livre ON Emprunt.IdLivre = Livre.IdLivre WHERE auteurLivre = 'Victor Hugo' EXCEPT SELECT IdMembre FROM Emprunt JOIN Livre ON Emprunt.IdLivre = Livre.IdLivre WHERE auteurLivre = 'Jacques Prévert'; -- 20 -- C'est une division!! -- on s'en sort avec un COUNT SELECT nomMembre, adrMembre FROM ( SELECT DISTINCT nomMembre, adrMembre, auteurLivre, COUNT(*) AS cpt FROM Membre JOIN Emprunt ON Membre.IdMembre = Emprunt.IdMembre JOIN Livre ON Emprunt.IdLivre = Livre.IdLivre GROUP BY nomMembre, adrMembre HAVING cpt IN( SELECT COUNT(DISTINCT auteurLivre) AS cpt FROM Livre) );
true
92dfd689da686a42ce698d802f6256f88cf2c7f5
SQL
namelessan/Farcry_Data_Science
/sql_queries/WP49.sql
UTF-8
150
2.9375
3
[]
no_license
SELECT match_id, killer_name, COUNT(DISTINCT (weapon_code)) AS weapon_count FROM match_frag GROUP BY match_id, killer_name ORDER BY weapon_count DESC;
true
0ccd31b43ae8b677e78f975d05a0d88628010a49
SQL
monico12/ASL_GroupProject
/aslGroupProject_2012-01-16.sql
UTF-8
6,089
3.234375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 3408 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.9) # Database: aslGroupProject # Generation Time: 2012-01-16 18:17:12 +0000 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; # Dump of table assigned # ------------------------------------------------------------ DROP TABLE IF EXISTS `assigned`; CREATE TABLE `assigned` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `project_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; # Dump of table projects # ------------------------------------------------------------ DROP TABLE IF EXISTS `projects`; CREATE TABLE `projects` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(100) DEFAULT NULL, `description` varchar(200) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `projects` WRITE; /*!40000 ALTER TABLE `projects` DISABLE KEYS */; INSERT INTO `projects` (`id`, `title`, `description`, `user_id`) VALUES (1,'project1','first project description',2), (3,'project#three','hello world',3), (133,'waddup','people',7), (134,'aefaew','wfeaeawf',8), (135,'hello','world',9), (137,'afweewaf','afweeawfeawwa',1), (140,'fawewef','afefeee',1), (141,'aewjn','kjnddjd',1), (142,'aweuhihuhiuh','uhuhuhuhuhuvhd',1), (148,'afew','awefaw',1), (149,'afew','awefaw',1), (150,'afaxxxz','zzzz',1), (153,'aaaaaddd','ssdsdsdsd',1), (154,'ioaejwioj','ijcisdiosd',1), (157,'fawewef','fewfwe',26), (159,'zzz','zzzz',26), (160,'jusdfsdf','hyfsdf',26), (161,'akcnwkn','kndskjnsdkjnds',1), (163,'another project','yayayay',29), (164,'new project','first ',30); /*!40000 ALTER TABLE `projects` ENABLE KEYS */; UNLOCK TABLES; # Dump of table tasks # ------------------------------------------------------------ DROP TABLE IF EXISTS `tasks`; CREATE TABLE `tasks` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `assigned` varchar(25) DEFAULT NULL, `duedate` varchar(25) DEFAULT NULL, `task` varchar(200) DEFAULT NULL, `project_id` int(25) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `tasks` WRITE; /*!40000 ALTER TABLE `tasks` DISABLE KEYS */; INSERT INTO `tasks` (`id`, `assigned`, `duedate`, `task`, `project_id`) VALUES (1,'1','2012-01-01','party hard',120), (2,'1','2012-11-11','fawefwefwae',96), (4,'1',NULL,'play play play',96), (6,'0','0000-00-00','new task',121), (10,'monico','0000-00-00','new task',136), (11,'afd','0000-00-00','asdfsda',136), (12,'aaaa','0000-00-00','afsd',136), (13,'22','0000-00-00','2222',136), (14,'afwwea','0000-00-00','awefwae',97), (19,'monico','0000-00-00','new',96), (21,'feaew','0000-00-00','awfwefawe',123), (22,'ffff','0000-00-00','awefaew',96), (24,'awefwe','0000-00-00','afewefawe',137), (25,'fewaewafwaef','0000-00-00','faewewfeawf',138), (26,'aaaaaaaa','0000-00-00','aaaaa',137), (27,'afeaw','0000-00-00','faew',123), (29,'efee','0000-00-00','aewfaw',123), (30,'faaa','0','afweaefw',123), (31,'aaaa','0','aewfaw',123), (32,'ijfijdij','0','ijalejw',141), (33,'aaa','0','aewaaa',0), (34,'aaaaa','0','aaaa',150), (35,'aaaa','0','aaaaa',142), (36,'jajjjajaj','0','aajajj',140), (37,'Bob Funland','0','potato',156), (38,'wefe','0','qeff',156), (40,'iluhjsldiuhf','0','aaaeafcewiuj',160), (41,'eceece','0','aacawcce',160), (42,'monico','0','new task',160), (44,'Bob Funland','jan 13, 2012','Clean up the broom closet',160), (46,'orcun','today','new task',164); /*!40000 ALTER TABLE `tasks` ENABLE KEYS */; UNLOCK TABLES; # Dump of table users # ------------------------------------------------------------ DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(25) DEFAULT NULL, `password` varchar(10) DEFAULT NULL, `email` varchar(50) DEFAULT NULL, `first_name` varchar(50) DEFAULT NULL, `last_name` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` (`id`, `username`, `password`, `email`, `first_name`, `last_name`) VALUES (1,'admin','admin','[email protected]','Bob','Funland'), (2,'stevo','pass','[email protected]','Steve','Orman'), (3,'pete25','password','[email protected]','Peter','Bowler'), (7,'monico12','hello','[email protected]','monico','salvador'), (8,'monico12fawef','hello','[email protected]','faeuwhkkuh','kuhfdskuh'), (9,'username','password','[email protected]','new user','user'), (10,'mon','salvador','lijfasildj','test','ing'), (11,'ilafdsj','5f4dcc3b5a','isajfd','oijafew','ijefj'), (12,'ilafdsj','awf','isajfd','oijafew','ijefj'), (13,'admin','5d41402abc','[email protected]','awefwafe','adfawefwa'), (14,'asdkfufkae','','','',''), (15,'aioweiojjio','aa','[email protected]','afoiewjoij','oiajfsdoij'), (16,'vvvvvv','salvador','[email protected]','oaijewfoij','nalksj'), (23,'monico','aa','[email protected]','monico','sal'), (28,'jjjjj','sss','[email protected]','joe','smith'), (29,'rorman','password','[email protected]','Robert','Orman'), (30,'orcun','1234','[email protected]','orcun','something'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
82d8d060c83445bb5429579336e98de953c8ac2b
SQL
Booshnarama24/task
/jQuery-File-Upload/task.sql
UTF-8
1,833
2.84375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 15, 2019 at 12:14 PM -- Server version: 5.7.9 -- PHP Version: 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `task` -- -- -------------------------------------------------------- -- -- Table structure for table `images` -- DROP TABLE IF EXISTS `images`; CREATE TABLE IF NOT EXISTS `images` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `uploaded_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `images` -- INSERT INTO `images` (`id`, `filename`, `uploaded_at`) VALUES (1, '1550223736206125c6689786f0d0_original.jpg', '2019-02-15 09:42:18'), (2, '1550223761123975c6689913695e_original.jpg', '2019-02-15 09:42:42'), (3, '155022392484525c668a348ed84_original.jpg', '2019-02-15 09:45:25'), (4, '155022428249255c668b9abf34f_original.jpg', '2019-02-15 09:51:23'), (5, '1550230641276505c66a471483c9_original.png', '2019-02-15 11:37:22'), (6, '155023064111865c66a471467db_original.png', '2019-02-15 11:37:23'), (7, '155023282223385c66acf6e039e_original.jpg', '2019-02-15 12:13:43'), (8, '1550232822289125c66acf6e8529_original.png', '2019-02-15 12:13:44'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
4a499a0b20c355be8af26f03f7abc1648b450bd9
SQL
eldar101/EldarRep
/PostgreSQL/Basic DB/qd2.sql
UTF-8
146
2.984375
3
[]
no_license
select distinct c.country from disaster as d, city as c where (d.cname = c.cname) and (d.casualties < 50) and (d.dyear between 1980 and 1990)
true
799a0fe0d15b8884eba50cc1884f8b22be287fdc
SQL
douit/cqes_dev
/重庆二师_Dev/dw_mpp/table/fdm/edu_hb_rxfs.sql
UTF-8
1,965
2.875
3
[]
no_license
/* # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: [email protected] # COMPANY: h3c.bigdata # VERSION: 1.0 # CREATED: 2017/06/30 # REVIEWER: # REVISION: --- */ set names utf8; use fdm; DROP TABLE IF EXISTS edu_hb_rxfs; CREATE TABLE edu_hb_rxfs ( `DM` char(2) NOT NULL COMMENT '代码', `MC` varchar(20) NOT NULL COMMENT '名称', `syxx` varchar(60) DEFAULT NULL COMMENT '适用学校' )DEFAULT CHARSET=utf8 COMMENT='[入学方式代码表]规定了高等学校本科学生,入学方式的分类,用二位数字表示'; -- ---------------------------- -- Records of edu_hb_rxfs -- ---------------------------- INSERT INTO `edu_hb_rxfs` VALUES ('01', '统一招生考试/普通入学','中小学校、中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('02', '保送','中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('03', '民族班','中小学校、中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('04', '定向培养','中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('05', '体育特招','中小学校、中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('06', '文艺特招','中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('07', '学生干部保送','中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('08', '考试推荐','中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('09', '外校转入','中小学校、中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('10', '恢复入学资格','中小学校、中等职业学校、高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('11', '预科','高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('12', '来华留学','高等学校'); INSERT INTO `edu_hb_rxfs` VALUES ('99', '其他','中小学校、中等职业学校、高等学校');
true
15aca38273c885ad42431d87e31fdb3dfea41c04
SQL
MLSaj/MySQLDive
/consecutiveNumbers.sql
UTF-8
272
3.546875
4
[]
no_license
#https://leetcode.com/problems/consecutive-numbers/submissions/ # Write your MySQL query statement below Select DISTINCT l1.num AS ConsecutiveNums FROM Logs l1, Logs l2, Logs l3 WHERE l1.id = l2.id - 1 AND l2.id = l3.id - 1 AND l1.num = l2.num AND l2.num = l3.num
true
8e49deecf71ed7aa0218b7f9c840f12b577950d6
SQL
ChrisSpaulding/DataBase
/HW3Create.sql
UTF-8
2,117
3.53125
4
[]
no_license
CREATE TABLE StateTable ( State_Abrv varchar(2), FIPS int, State_Name varchar(50), PRIMARY KEY (State_Abrv) ); --fk = state_abrv CREATE TABLE City ( City_Name varchar(255), City_Abrv varchar(5) , City_Market_ID int, WAC int, State_Abrv varchar(2), Primary key(City_Abrv) ); -- fk ==abriviation (should be city_abvr) CREATE Table Airport ( Airport_ID varchar(15), Airport_SEQ_ID varchar(15), Abriviation varchar(15), PRIMARY KEY (Airport_ID) ); CREATE Table Quarters ( MonthNumber int, Quarter int, PRIMARY key (MonthNumber) ); CREATE Table Carrier( Airline_Id varchar(15), CarrierAbv varchar(5), Carrier_Entity varchar(10), Carrier_Name varchar(255), Unique_carrier varchar(15), Unique_carrier_Entity varchar(15), Unique_carrier_name varchar(255), Carrier_group int, Carrier_Group_New int, Region varchar(255), Start_Date_Source DATE, Thru_Date_Source DATE, PRIMARY key (Airline_Id) ); -- fk= Airline_id; flight_month; Origin_Airport_Id; Dest_Airport_ID; CREATE Table flight( Airline_Id varchar(15), Flight_Year int, Flight_Month int, Ditance_Group int, Flight_Class varchar(5), Dest_Airport_ID varchar(15), Origin_Airport_Id varchar(15), Departures_Scheduled int, Departures_Performed int, Payload int, Seats int, Passengers int, Freight int, Mail int, Distance int, Ramp_to_Ramp int, Air_Time int, Distance_Group int, PRIMARY KEY (Airline_Id, Dest_Airport_ID, Origin_Airport_Id, Flight_Year, Flight_Month, Flight_Class) ); #issue ALTER TABLE airport ADD FOREIGN KEY (Abriviation) REFERENCES City(City_Abrv); ALTER TABLE city ADD FOREIGN KEY (State_Abrv) REFERENCES StateTable(State_Abrv); ALTER TABLE city ADD FOREIGN KEY (State_Abrv) REFERENCES StateTable(State_Abrv); ALTER TABLE flight ADD FOREIGN KEY (Airline_Id) REFERENCES Carrier(Airline_Id); ALTER TABLE flight ADD FOREIGN KEY (Flight_Month) REFERENCES quarters(monthnumber); ALTER TABLE flight ADD FOREIGN KEY (Origin_Airport_Id) REFERENCES Airport(Airport_ID); ALTER TABLE flight ADD FOREIGN KEY (Dest_Airport_ID) REFERENCES Airport(Airport_ID);
true
832b0097c5643d1fbc80c2114f5e7cc528e58562
SQL
Konstyantin/audi
/dumpDb/audi_models.sql
UTF-8
1,997
2.78125
3
[ "BSD-3-Clause" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.16, for Linux (x86_64) -- -- Host: localhost Database: audi -- ------------------------------------------------------ -- Server version 5.7.16-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `models` -- DROP TABLE IF EXISTS `models`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `models` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `models` -- LOCK TABLES `models` WRITE; /*!40000 ALTER TABLE `models` DISABLE KEYS */; INSERT INTO `models` VALUES (1,'A1'),(2,'A3'),(3,'A4'),(4,'A5'),(5,'A6'),(6,'A7'),(7,'A8'),(8,'Q3'),(9,'Q5'),(10,'Q7'),(11,'TT'),(12,'R8'); /*!40000 ALTER TABLE `models` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-11-23 18:15:18
true
a194f6f1574cb2272232cc89f0fd0fce9147473c
SQL
gustavopergola/comabem
/inserts.sql
UTF-8
25,647
2.796875
3
[]
no_license
-- Disciplinas INSERT INTO Disciplina (disc_nome) VALUES ('Educação Alimentar');--1 INSERT INTO Disciplina (disc_nome) VALUES ('Português');--2 INSERT INTO Disciplina (disc_nome) VALUES ('Matemática');--3 INSERT INTO Disciplina (disc_nome) VALUES ('Robótica');--4 -- Responsaveis INSERT INTO Responsavel (resp_nome) VALUES ('Renata Bahiense'); INSERT INTO Responsavel (resp_nome) VALUES ('Luanna Lima Sá'); INSERT INTO Responsavel (resp_nome) VALUES ('Arly Souza Cruz'); INSERT INTO Responsavel (resp_nome) VALUES ('Gabriel Costa'); -- Alunos INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('João', 1, 10); --1 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Gustavo', 2, 10);--2 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Gabriel', 3, 10); --3 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Luan', 4, 10); --4 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Pedro', 2, 10); --5 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Raíssa', 2, 10); --6 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Carol', 3, 10); --7 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Elisângela', 3, 10); --8 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Bruno', 3, 10); --9 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Lucas', 4, 10); --10 INSERT INTO Aluno (alu_nome, alu_responsavel_id, idade) VALUES ('Márcio', 4, 10); --11 --Inscricao INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 1, 2, '2019-01-01'); --1: Português INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 3, 2, '2019-01-01'); --2 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 4, 2, '2019-01-01'); --3 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 5, 2, '2019-01-01'); --4 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 2, 2, '2018-01-01'); --5 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 3, 2, '2018-01-01'); --6 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 4, 2, '2018-01-01'); --7 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 5, 2, '2018-01-01'); --8 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 5, 2, '2017-01-01'); --9 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 6, 2, '2017-01-01'); --10 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 7, 2, '2017-01-01'); --11 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 8, 2, '2017-01-01'); --12 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 1, 3, '2019-01-01'); --13: Matemática INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 3, 3, '2019-01-01'); --14 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 4, 3, '2019-01-01'); --15 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 5, 3, '2019-01-01'); --16 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 2, 3, '2018-01-01'); --17 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 9, 3, '2018-01-01'); --18 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 4, 3, '2018-01-01'); --19 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 5, 3, '2018-01-01'); --20 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 10, 3, '2017-01-01');--21 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 6, 3, '2017-01-01'); --22 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 7, 3, '2017-01-01'); --23 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 8, 3, '2017-01-01'); --24 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 1, 1, '2019-01-01'); --25: Educ. Alimentar INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 4, 1, '2019-01-01'); --26 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 5, 1, '2019-01-01'); --27 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 2, 1, '2018-01-01'); --28 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 3, 1, '2018-01-01'); --29 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 4, 1, '2018-01-01'); --30 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 5, 1, '2018-01-01'); --31 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 5, 1, '2017-01-01'); --32 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 6, 1, '2017-01-01'); --33 INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 8, 1, '2017-01-01'); --35 -- INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 3, 1, '2019-02-01'); --36 -- Nutrientes INSERT INTO Nutriente (nome) VALUES ('Carboidrato'); -- 1 INSERT INTO Nutriente (nome) VALUES ('Proteína'); -- 2 INSERT INTO Nutriente (nome) VALUES ('Fibra'); -- 3 INSERT INTO Nutriente (nome) VALUES ('Gorduras Saturadas'); --4 INSERT INTO Nutriente (nome) VALUES ('Calorias'); --5 -- Ingredientes INSERT INTO Ingrediente (ing_nome) VALUES ('Batata Frita'); --1 INSERT INTO Ingrediente (ing_nome) VALUES ('Arroz'); -- 2 INSERT INTO Ingrediente (ing_nome) VALUES ('Creme de Leite'); -- 3 INSERT INTO Ingrediente (ing_nome) VALUES ('Grão de Bico'); -- 4 INSERT INTO Ingrediente (ing_nome) VALUES ('Goiabada'); -- 5 INSERT INTO Ingrediente (ing_nome) VALUES ('Bacon'); -- 6 -- Valore Nutricionais -- Batata: INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (1, 5, 10); -- caloria INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (1, 4, 10); -- gordura INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (1, 1, 10); -- carboidrato INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (1, 2, 10); -- proteína -- Arroz: INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (2, 5, 5); -- caloria INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (2, 1, 5); -- carboidrato INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (2, 3, 5); -- fibra -- Grão de bico INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (4, 5, 1); -- caloria INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (4, 4, 5); -- gordura INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (4, 1, 1);-- carboidrato INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (4, 2, 5);-- proteína -- Receitas INSERT INTO Receita (rec_nome) VALUES ('Arroz com Fritas 1'); --1 INSERT INTO Receita (rec_nome) VALUES ('Arroz com grão de bico 1'); --2 INSERT INTO Receita (rec_nome) VALUES ('Arroz com grão de bico 2'); --2 -- Receitas Ingredientes -- Arroz com fritas -- 1100 INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (1, 2, 100); -- 100g de arroz INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (1, 1, 100); -- 100g de batata frita -- Arroz com Grão de Bico -- 600 INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (2, 2, 100); -- 100g de arroz INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (2, 4, 100); -- 100g de grão de bico -- Arroz com Grão de Bico 2 -- 300 INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (3, 2, 50); -- 50g de arroz INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (3, 4, 50); -- 50g de grão de bico -- Refeição INSERT INTO Refeicao (ref_nome, ref_descricao, rec_id) VALUES ('Arroz com Fritas', 'Arroz com fritas da vovó cilda', 1); INSERT INTO Refeicao (ref_nome, ref_descricao, rec_id) VALUES ('Arroz com grão de bico', 'Arroz simples com grão de bico', 2); INSERT INTO Refeicao (ref_nome, ref_descricao, rec_id) VALUES ('Arroz com grão de bico INSUF', 'Arroz simples com grão de bico PEQUENO', 3); -- Avaliacao INSERT INTO Avaliacao (nome) VALUES ('P1'); INSERT INTO Avaliacao (nome) VALUES ('P2'); INSERT INTO Avaliacao (nome) VALUES ('VS'); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 25, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 25,10.0); -- Nota INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 1, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 1, 3.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (3, 1, 5.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 2, 2.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 2, 2.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 3, 1.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 3, 5.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 4, 8.5); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 4, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 5, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 5, 10.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 6, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 6, 4.9); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (3, 6, 3.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 7, 1.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 7, 1.5); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 8, 2.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 8, 3.7); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 9, 1.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 9, 0.7); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 10, 6.3); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 10, 7.8); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 11, 5.2); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 11, 5.8); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (3, 11, 7.5); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 12, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 12, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 13, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 13, 3.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (3, 13, 6.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 14, 2.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 14, 10.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 15, 1.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 15, 5.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 16, 8.5); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 16, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 17, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 17, 10.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 18, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 18, 4.9); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (3, 18, 3.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 19, 1.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 19, 1.5); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 20, 2.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 20, 3.7); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 21, 1.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 21, 0.7); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 22, 6.3); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 22, 7.8); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 23, 5.2); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 23, 5.8); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (3, 23, 7.5); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 24, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 24, 7.0); -- Contrato INSERT INTO Contrato (contr_descricao, contr_aluno_id, contr_tem_bolsa) VALUES ('Contratinho do pai', 1, TRUE); -- Venda INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-01', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-01', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 2, 1, '2019-01-02', 1);--bem INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 2, 1, '2019-01-03', 1);--bem INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-04', 1);--mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-04', 1);--mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data) VALUES (19.90, 14.90, 2, 1, '2019-01-05');--bem INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data) VALUES (19.90, 14.90, 2, 1, '2019-01-06');--bem INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-07', 1);--mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-07', 1);--mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-08', 1); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-08', 1); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-09', 1); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 1, 1, '2019-01-09', 1); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 2, 1, '2019-10-10', 1);--bem INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 14.90, 2, 1, '2019-10-11', 1); -- Recomendacao_nutricional INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (800, 10, 1, 50); -- 20g de gordura pra 10 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (800, 10, 2, 50); -- 40g de carbo pra 10 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (800, 10, 3, 50); -- 30g de proteína pra 10 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (800, 10, 4, 50); -- 0.5g de fibra pra 10 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (800, 10, 5, 50); -- 400 calorias pra 10 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (400, 6, 1, 50); -- 10g de gordura pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (400, 6, 2, 50); -- 10g de carbo pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (400, 6, 3, 50); -- 1g de proteína pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (400, 6, 4, 50); -- 0.3g de fibra pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (400, 6, 5, 50); -- 300 calorias pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (600, 8, 1, 50); -- 10g de gordura pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (600, 8, 2, 50); -- 23g de carbo pra 8 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (600, 8, 3, 50); -- 1g de proteína pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (600, 8, 4, 50); -- 0.6g de fibra pra 6 anos INSERT INTO Recomendacao_nutricional (valor, idade, nut_id, margem_percent) VALUES (600, 8, 5, 50); -- 300 calorias pra 6 anos -- --INSERTS PARA QUEBRAR RESTRIÇÃO 3 /* --Para Receita_Ingrediente INSERT INTO Receita (rec_nome) VALUES ('Bacon com creme de goiabada 1'); --3 INSERT INTO Refeicao (ref_nome, ref_descricao, rec_id) VALUES ('Bacon com creme de goiabada', 'Delicioso prato agridoce', 3); -- -- Bacon INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (6, 5, 10); --Calorias INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (6, 3, 10); -- Gordura saturada INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (6, 1, 10); -- Carboidratos INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (6, 4, 10); -- Proteína -- --Creme de Leite INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (3, 5, 7); --Calorias INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (3, 4, 7); -- Gordura saturada INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (3, 1, 7); -- Carboidratos -- Goiabada INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (5, 5, 10); --Calorias INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (5, 1, 10); -- Carboidratos INSERT INTO Valor_Nutricional (ing_id, nut_id, valor) VALUES (5, 2, 10); -- Proteína INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (3, 6, 100); -- 100g de bacon INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (3, 3, 70); -- 70g de Creme de leite INSERT INTO Receita_Ingrediente (rec_id, ing_id, qtd) VALUES (3, 5, 100); -- 100g de goiabada --Para Recomendacao Nutricional UPDATE RECOMENDACAO_NUTRICIONAL SET valor=0 where nut_id=1 and idade=6; --Para Valor Nutricional UPDATE Valor_Nutricional set valor=100 where nut_id=1 and ing_id=1; */ --INSERTS PARA RESTRIÇÃO 1 /* --Para a Bolsa: INSERT INTO Bolsa (bol_media_min, bol_val_percent, bol_data_ini, bol_data_fim, bol_aluno_id) VALUES (7, 20, '2019-01-01', null, 1); --Para a nota INSERT INTO Bolsa (bol_media_min, bol_val_percent, bol_data_ini, bol_data_fim, bol_aluno_id) VALUES (7, 20, '2019-01-01', null, 11); INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 11, 2, '2019-01-01'); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, 36, 7.0); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (2, 36, 5.0); --Para a Venda INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data) VALUES (19.90, 14.90, 1, 10, '2019-01-01'); */ --INSERTS PARA RESTRICAO 2 --Para a Venda /* INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (false, 10, 1, '2019-01-01'); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, (select insc_id from inscricao order by insc_id desc limit 1), 9.5); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-01', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-01', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-02', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-02', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-03', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-03', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-04', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-04', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-05', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-05', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-06', 1); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 10, '2019-01-06', 1); -- Para a nota INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 7, 1, '2019-01-01'); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-01', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-01', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-02', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-02', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-03', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-03', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-04', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-04', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-05', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-05', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-06', null); --mal INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 1, 7, '2019-01-06', null); --mal INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, (select insc_id from inscricao order by insc_id desc limit 1), 9.1); -- deve retornar erro -- Para valor nutricional INSERT INTO Inscricao (insc_ativa, insc_aluno_id, insc_disciplina_id, insc_data) VALUES (true, 6, 1, '2019-01-01'); INSERT INTO Nota (avaliacao_id, inscricao_id, nota) VALUES (1, (select insc_id from inscricao order by insc_id desc limit 1), 9.1); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 2, 6, '2019-01-01', null); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 2, 6, '2019-01-02', null); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 2, 6, '2019-01-03', null); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 2, 6, '2019-01-04', null); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 2, 6, '2019-01-05', null); INSERT INTO Venda (ven_preco, ven_valor_pago, ven_refeicao_id, ven_aluno_id, ven_data, ven_contrato_id) VALUES (19.90, 19.90, 2, 6, '2019-01-06', null); UPDATE Valor_nutricional SET valor = (valor * 10) where ing_id = 2; */
true
5b8707004d16e1d524beda1d93054e826bb824b7
SQL
goodsoul1914/DBA
/Scripts/Algemeen/Examples/DateTime/DateTime.sql
UTF-8
129
2.90625
3
[]
no_license
-- Determine last day of month select EOMONTH(DATEFROMPARTS(YEAR(GETDATE()), MONTH(GETDATE()), 1)) as LastDayOfCurrentMonthDate;
true
423f9e7458ba83630f4d9aa06b94dfc8caae73b0
SQL
sebrown0/TestBenchDB
/SQL/Functions/get_element_id.sql
UTF-8
347
3.0625
3
[]
no_license
CREATE DEFINER=`root`@`localhost` FUNCTION `get_element_id`( entityRowId INT UNSIGNED, entityId INT UNSIGNED) RETURNS int(11) DETERMINISTIC BEGIN DECLARE elmntId INT UNSIGNED; SELECT id INTO elmntId FROM test_bench.element WHERE entity_row_id = entityRowId AND entity_id = entityId; RETURN elmntId; END
true
335ec6f3cd37fed1050ae1168ba15cf743f66737
SQL
willCepeda/museumGo
/BD/Versiones antiguas BD/museo08.04.2019.sql
UTF-8
31,318
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-04-2019 a las 11:48:54 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `museo` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `administradores` -- CREATE TABLE `administradores` ( `id` int(100) NOT NULL, `usuario` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `contrasenia` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `nombre` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `apellidos` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `administradores` -- INSERT INTO `administradores` (`id`, `usuario`, `contrasenia`, `nombre`, `apellidos`) VALUES (1, '[email protected]', 'admin', 'William Alexander', 'Cepeda Yubaylla'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `estudiantes` -- CREATE TABLE `estudiantes` ( `id` int(100) NOT NULL, `usuario` varchar(100) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `contrasenia` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `nombre` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `apellidos` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `estudiantes` -- INSERT INTO `estudiantes` (`id`, `usuario`, `contrasenia`, `nombre`, `apellidos`) VALUES (3, '[email protected]', '3456', 'Maria Elizabet', 'Alicante rezo'), (7, '[email protected]', '5623', 'Carlos Alcebarros', 'Perez Gonzales'), (8, '[email protected]', '89415', 'Juan Manuel', 'Camareno Dí­az'), (9, '[email protected]', '74562', 'Marcos Santi', 'Budget Rivas'), (10, '[email protected]', '884SM12', 'Jose Luis', 'Turqui Gimenez'), (11, '[email protected]', '52VM12', 'Miguel Angel', 'Sandi Boorques'), (12, '[email protected]', '12345', 'Pablo Javier', 'Colmenar Vascos'), (13, '[email protected]', 'miguelsmat', 'Miguel Hernandez', 'Perez Sanchez'), (16, '[email protected]', 'dss568', 'juana villar', 'palomino gimenez'), (17, '[email protected]', 'pa007', 'pablo ', 'casado roman'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `museos` -- CREATE TABLE `museos` ( `id_museo` int(100) NOT NULL, `codigo` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `nombre` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `fecha_origen` varchar(50) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `imagen` longtext CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `museos` -- INSERT INTO `museos` (`id_museo`, `codigo`, `nombre`, `fecha_origen`, `imagen`) VALUES (74, 'Q1592523', 'Museo Sorolla', '1932-06-11', 'http://commons.wikimedia.org/wiki/Special:FilePath/Sala%20I%20in%20Museo%20Sorolla%20Madrid%20on%2020161106.jpg'), (77, 'Q160112', 'Museo del Prado', '1819-01-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/Museo%20del%20Prado%202016%20%2825185969599%29.jpg'), (75, 'Q176251', 'Museo Nacional Thyssen-Bornemisza', '1992-01-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/Museo%20Thyssen-Bornemisza%20%28Madrid%29%2007.jpg'), (71, 'Q18674434', 'Museo Carlos de Amberes', '2014-01-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/Fundaci%C3%B3n%20Carlos%20de%20Amberes%20%28Madrid%29%2001.jpg'), (70, 'Q2283575', 'Museo Arte Público de Madrid', '1972-01-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/La%20Sirena%20Varada%20%28E.%20Chillida%29%2001.jpg'), (72, 'Q28808141', 'Casa-Museo Fuente del Rey', '', ''), (78, 'Q386570', 'Museo Lázaro Galdiano', '1951-01-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/Museo%20L%C3%A1zaro%20Galdiano%20%28Madrid%29%2005.jpg'), (73, 'Q460889', 'Museo Nacional Centro de Arte Reina Sofía', '1992-01-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/MNCARS%2005.jpg'), (67, 'Q5361303', 'Museo Nacional de Artes Decorativas', '1912-12-30', 'http://commons.wikimedia.org/wiki/Special:FilePath/Museo%20Nacional%20de%20Artes%20Decorativas%20%28Madrid%29%2001.jpg'), (68, 'Q6940528', 'Museo de Arte Contemporáneo (Madrid)', '2001-01-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/Madrid%20en%2012%20nuevas%20miradas%2019.jpg'), (76, 'Q6940946', 'Museo de Arte Moderno (España)', '1894-08-04', 'http://commons.wikimedia.org/wiki/Special:FilePath/Sede%20M.A.M.JPG'), (79, 'Q6974501', 'Museo del Romanticismo', '1924-06-01', 'http://commons.wikimedia.org/wiki/Special:FilePath/Museo%20del%20Romanticismo%20-%20Fachada%20-%20Fachada%20del%20Museo%20del%20Romanticismo.jpg'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `museo_cn_pintor` -- CREATE TABLE `museo_cn_pintor` ( `id` int(11) NOT NULL, `codigo_museo` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `codigo_pintor` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci; -- -- Volcado de datos para la tabla `museo_cn_pintor` -- INSERT INTO `museo_cn_pintor` (`id`, `codigo_museo`, `codigo_pintor`) VALUES (1400, 'Q176251', 'Q28144'), (1401, 'Q176251', 'Q33978'), (1402, 'Q176251', 'Q33981'), (1403, 'Q176251', 'Q42207'), (1404, 'Q176251', 'Q46373'), (1405, 'Q176251', 'Q49987'), (1406, 'Q176251', 'Q82445'), (1407, 'Q176251', 'Q102272'), (1408, 'Q176251', 'Q126074'), (1409, 'Q176251', 'Q142710'), (1410, 'Q176251', 'Q148475'), (1411, 'Q176251', 'Q151679'), (1412, 'Q176251', 'Q152233'), (1413, 'Q176251', 'Q152384'), (1414, 'Q176251', 'Q153104'), (1416, 'Q176251', 'Q153793'), (1417, 'Q176251', 'Q156272'), (1418, 'Q176251', 'Q157610'), (1419, 'Q176251', 'Q160422'), (1420, 'Q176251', 'Q164712'), (1422, 'Q176251', 'Q182664'), (1424, 'Q176251', 'Q188172'), (1425, 'Q176251', 'Q191423'), (1426, 'Q176251', 'Q192062'), (1428, 'Q176251', 'Q217648'), (1429, 'Q176251', 'Q217715'), (1430, 'Q176251', 'Q247005'), (1431, 'Q176251', 'Q265820'), (1432, 'Q176251', 'Q270658'), (1433, 'Q176251', 'Q277738'), (1434, 'Q176251', 'Q278623'), (1435, 'Q176251', 'Q282708'), (1436, 'Q176251', 'Q297838'), (1437, 'Q176251', 'Q304411'), (1438, 'Q176251', 'Q310973'), (1439, 'Q176251', 'Q312096'), (1440, 'Q176251', 'Q314548'), (1441, 'Q176251', 'Q314889'), (1442, 'Q176251', 'Q320980'), (1443, 'Q176251', 'Q336908'), (1444, 'Q176251', 'Q352438'), (1445, 'Q176251', 'Q370567'), (1446, 'Q176251', 'Q379521'), (1447, 'Q176251', 'Q381801'), (1448, 'Q176251', 'Q430783'), (1449, 'Q176251', 'Q447058'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `obras` -- CREATE TABLE `obras` ( `id_obra` int(100) NOT NULL, `codigo_obra` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `codigo_pintor` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `imagen` longtext CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `nombre` mediumtext CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `coleccion` varchar(50) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `obras` -- INSERT INTO `obras` (`id_obra`, `codigo_obra`, `codigo_pintor`, `imagen`, `nombre`, `coleccion`) VALUES (1220, 'Q21711702', 'Q1658589', 'http://commons.wikimedia.org/wiki/Special:FilePath/Suprematist%20Composition%20by%20Ilya%20Chashnik%2C%201923%20AD%2C%20oil%20on%20canvas%20-%20Museo%20Nacional%20Centro%20de%20Arte%20Reina%20Sof%C3%ADa%20-%20DSC08784.JPG', 'Composición suprematista', 'Q176251'), (1221, 'Q21711737', 'Q1158872', 'http://commons.wikimedia.org/wiki/Special:FilePath/Foschi%20lady.jpg', 'Retrato de una dama', 'Q176251'), (1222, 'Q21281868', 'Q213612', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jacob%20van%20Ruisdael%20-%20Campos%20de%20blanqueo%20en%20Bloemendaal%20cerca%20de%20Haarlem%20d%C3%A9cada%20de%201660.jpg', 'Campos de blanqueo en Bloemendaal cerca de Haarlem década de 1660', 'Q176251'), (1223, 'Q21711490', 'Q9440', 'http://commons.wikimedia.org/wiki/Special:FilePath/Veronese%20-%20Annunciazione%20-%20Thyssen-Bornemisza%20-%20Madrid.jpg', 'La Anunciación', 'Q176251'), (1224, 'Q21711488', 'Q297', 'http://commons.wikimedia.org/wiki/Special:FilePath/Retrato%20de%20la%20reina%20Mariana%20de%20Austria%20%282%29%2C%20by%20Diego%20Vel%C3%A1zquez.jpg', 'Retrato de doña Mariana de Austria, reina de España', 'Q176251'), (1225, 'Q21711766', 'Q151152', 'http://commons.wikimedia.org/wiki/Special:FilePath/28.%20Botella%20y%20frutero.jpg', 'Botella y frutero', 'Q176251'), (1226, 'Q21711436', 'Q4233718', 'http://commons.wikimedia.org/wiki/Special:FilePath/Bernardo%20Strozzi%20-%20Santa%20Cecilia.jpg', 'Santa Cecilia', 'Q176251'), (1227, 'Q21711422', 'Q1347599', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jan%20Siberechts%20-%20The%20Ford.jpg', 'El vado', 'Q176251'), (1228, 'Q21711768', 'Q151152', 'http://commons.wikimedia.org/wiki/Special:FilePath/25.%20El%20fumador%20%28Frank%20Haviland%29.jpg', 'El fumador (Frank Haviland)', 'Q176251'), (1229, 'Q21711706', 'Q157610', 'http://commons.wikimedia.org/wiki/Special:FilePath/Lovis%20Corinth%20-%20Modenschau.jpg', 'Desfile de modelos', 'Q176251'), (1230, 'Q20670819', 'Q1451318', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jasper%20Francis%20Cropsey%20-%20Greenwood%20Lake.jpg', 'El lago de Greenwood', 'Q176251'), (1231, 'Q21711645', 'Q318769', 'http://commons.wikimedia.org/wiki/Special:FilePath/Francesco%20Guardi%20-%20El%20Gran%20Canal%20con%20San%20Simeone%20Piccolo%20y%20Santa%20Luc%C3%ADa.jpg', 'El Gran Canal con San Simeone Piccolo y Santa Lucía', 'Q176251'), (1232, 'Q20737205', 'Q391608', 'http://commons.wikimedia.org/wiki/Special:FilePath/Asher%20Brown%20Durand%20-%20A%20Creek%20in%20the%20Woods%20%281865%29.jpg', 'Un arroyo en el bosque', 'Q176251'), (1233, 'Q20199398', 'Q366212', 'http://commons.wikimedia.org/wiki/Special:FilePath/Frederic%20Edwin%20Church%20-%20Autumn.jpg', 'Otoño', 'Q176251'), (1234, 'Q21711646', 'Q334262', 'http://commons.wikimedia.org/wiki/Special:FilePath/Guercino%20-%20Jesus%20and%20the%20Samaritan%20Woman%20at%20the%20Well%20-%20WGA10946.jpg', 'Jesús y la samaritana en el pozo', 'Q176251'), (1235, 'Q21711682', 'Q940505', 'http://commons.wikimedia.org/wiki/Special:FilePath/Johann%20Koerbecke%20Himmelfahrt%20Mariens.jpg', 'La Asunción de la Virgen', 'Q176251'), (1236, 'Q21711650', 'Q454656', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jan%20Davidsz.%20de%20Heem%20-%20Still-Life%20with%20Flowers%20in%20a%20Glass%20Vase%20and%20Fruit%20-%20WGA11284.jpg', 'Florero con vaso de cristal y frutas', 'Q176251'), (1237, 'Q21711442', 'Q335022', 'http://commons.wikimedia.org/wiki/Special:FilePath/David%20Teniers%20%28II%29%20-%20The%20Village%20F%C3%AAte%20%28Museo%20Thyssen-Bornemisza%29.jpg', 'Fiesta campesina', 'Q176251'), (1238, 'Q21711455', 'Q9319', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jacopo%20Tintoretto%20-%20The%20Meeting%20of%20Tamar%20and%20Judah%20-%20WGA22659.jpg', 'El encuentro entre Tamar y Judá', 'Q176251'), (1239, 'Q21711494', 'Q191748', 'http://commons.wikimedia.org/wiki/Special:FilePath/Lucas%20Cranach%20d.%20%C3%84.%20-%20Die%20Heilige%20Elizabeth%20mit%20Herzog%20Georg%20von%20Sachsen%20als%20Stifter.jpg', 'Santa Isabel con el duque Jorge de Sajonia como donante (ala interior izquierda)', 'Q176251'), (1240, 'Q21711484', 'Q186202', 'http://commons.wikimedia.org/wiki/Special:FilePath/Giovanni%20Battista%20Tiepolo%20%28e%20studio%29%20-%20Cristo%20Via%20del%20Golgota.jpg', 'Cristo camino del Gólgota', 'Q176251'), (1241, 'Q21711459', 'Q16058601', 'http://commons.wikimedia.org/wiki/Special:FilePath/Wolf%20Traut-retrato%20de%20mujer.jpg', 'Retrato de una mujer', 'Q176251'), (1242, 'Q21711439', 'Q1342328', 'http://commons.wikimedia.org/wiki/Special:FilePath/Boy%20in%20a%20turban%20holding%20a%20nosegay%2C%20by%20Michiel%20Sweerts.jpg', 'Muchacho con turbante y un ramillete de flores', 'Q176251'), (1243, 'Q21711483', 'Q194402', 'http://commons.wikimedia.org/wiki/Special:FilePath/Joshua%20Reynolds%20-%20The%20Countess%20of%20Dartmouth%20-%20WGA19336.jpg', 'Frances, condesa de Dartmouth', 'Q176251'), (1244, 'Q21711671', 'Q314548', 'http://commons.wikimedia.org/wiki/Special:FilePath/Gerrit%20Van%20Honthorst%20-%20Joyeux%20Violoniste.jpg', 'El violinista alegre con un vaso de vino', 'Q176251'), (1245, 'Q21711427', 'Q205863', 'http://commons.wikimedia.org/wiki/Special:FilePath/Country%20Wedding%20by%20Jan%20Steen%20Museo%20Thyssen-Bornemisza.jpg', 'Boda campesina', 'Q176251'), (1246, 'Q21711730', 'Q5432', 'http://commons.wikimedia.org/wiki/Special:FilePath/Francisco%20de%20Goya%20-%20El%20t%C3%ADo%20Paquete.jpg', 'El tío Paquete', 'Q176251'), (1247, 'Q21711517', 'Q5599', 'http://commons.wikimedia.org/wiki/Special:FilePath/Rubens89.jpg', 'Retrato de una joven dama con rosario', 'Q176251'), (1249, 'Q21711637', 'Q188306', 'http://commons.wikimedia.org/wiki/Special:FilePath/Christian%20Morgenstern%20-%20Eichen%20am%20Wasser%20%281832%29.jpg', 'Robles junto al agua', 'Q176251'), (1250, 'Q21711733', 'Q315996', 'http://commons.wikimedia.org/wiki/Special:FilePath/Goyen%201643%20Paisaje%20invernal%20con%20figuras%20en%20el%20hielo.jpg', 'Paisaje invernal con figuras en el hielo', 'Q176251'), (1251, 'Q21711467', 'Q1337275', 'http://commons.wikimedia.org/wiki/Special:FilePath/Valentin%20de%20Boulogne%20-%20David%20with%20the%20Head%20of%20Goliath%20and%20Two%20Soldiers%20-%20WGA24236.jpg', 'David con la cabeza de Goliat y dos soldados', 'Q176251'), (1252, 'Q21711668', 'Q49987', 'http://commons.wikimedia.org/wiki/Special:FilePath/Hans%20Holbein%20d.%20%C3%84.%20-%20Portr%C3%A4t%20einer%20Frau.jpg', 'Retrato de una mujer', 'Q176251'), (1253, 'Q21711480', 'Q468632', 'http://commons.wikimedia.org/wiki/Special:FilePath/Mattia%20Preti%20-%20The%20Concert%20-%20WGA18388.jpg', 'El Concierto', 'Q176251'), (1254, 'Q21711441', 'Q335022', 'http://commons.wikimedia.org/wiki/Special:FilePath/David%20Teniers%20%28II%29%20-%20Smokers%20in%20an%20Interior%20%28Museo%20Thyssen-Bornemisza%29.jpg', 'Fumadores en un interior', 'Q176251'), (1255, 'Q21711449', 'Q186202', 'http://commons.wikimedia.org/wiki/Special:FilePath/Giovanni%20Battista%20Tiepolo%20-%20The%20Death%20of%20Sophonisba%20-%20WGA22350.jpg', 'La muerte de Sofonisba', 'Q176251'), (1256, 'Q21711484', 'Q4233718', 'http://commons.wikimedia.org/wiki/Special:FilePath/Giovanni%20Battista%20Tiepolo%20%28e%20studio%29%20-%20Cristo%20Via%20del%20Golgota.jpg', 'Cristo camino del Gólgota', 'Q176251'), (1257, 'Q21711793', 'Q462404', 'http://commons.wikimedia.org/wiki/Special:FilePath/Fitz%20Hugh%20Lane%20-%20The%20Fort%20and%20Ten%20Pound%20Island%2C%20Gloucester%2C%20Massachusetts.jpg', 'El fuerte y la isla Ten Pound, Gloucester, Massachusetts', 'Q176251'), (1258, 'Q20199319', 'Q366212', 'http://commons.wikimedia.org/wiki/Special:FilePath/Frederic%20Edwin%20Church%2C%20Abandoned%20boat.jpg', 'Bote abandonado', 'Q176251'), (1259, 'Q21711763', 'Q5582', 'http://commons.wikimedia.org/wiki/Special:FilePath/Vincent%20van%20Gogh%20-%20De%20aflader%20in%20Arles.jpg', 'Los descargadores en Arles', 'Q176251'), (1260, 'Q21711454', 'Q9319', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jacopo%20Tintoretto%20-%20The%20Annunciation%20to%20Manoah%27s%20Wife%20-%20WGA22660.jpg', 'El anuncio a la mujer de Manué', 'Q176251'), (1261, 'Q20670915', 'Q1451318', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jasper%20Francis%20Cropsey%20-%20View%20near%20Sherburne%2C%20Chenango%20County%2C%20New%20York.jpg', 'Paisaje cerca de Sherburne, condado de Chenango, Nueva York', 'Q176251'), (1262, 'Q20742551', 'Q3123472', 'http://commons.wikimedia.org/wiki/Special:FilePath/Martin%20Johnson%20Heade%20-%20Orchid%20and%20Hummingbird%20near%20a%20Mountain%20Waterfall.jpg', 'Orquídea y colibrí cerca de una cascada de montaña', 'Q176251'), (1263, 'Q20017050', 'Q297838', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jos%C3%A9%20de%20Ribera%20-%20La%20Piedad.jpg', 'La Piedad', 'Q176251'), (1264, 'Q20742575', 'Q3123472', 'http://commons.wikimedia.org/wiki/Special:FilePath/Martin%20Johnson%20Heade%20-%20Sunrise%20in%20Nicaragua.jpg', 'Amanecer en Nicaragua', 'Q176251'), (1265, 'Q21711736', 'Q301', 'http://commons.wikimedia.org/wiki/Special:FilePath/El%20Greco%20-%20The%20Annunciation%20-%20WGA10522.jpg', 'La Anunciación', 'Q176251'), (1266, 'Q21711463', 'Q7129', 'http://commons.wikimedia.org/wiki/Special:FilePath/Cosm%C3%A8%20Tura%20-%20St%20John%20the%20Evangelist%20on%20Patmos%20-%20WGA23150.jpg', 'San Juan Evangelista en Patmos', 'Q176251'), (1267, 'Q21711495', 'Q191748', 'http://commons.wikimedia.org/wiki/Special:FilePath/Lucas%20Cranach%20d.%20%C3%84.%20-%20Der%20Heilige%20Georg.jpg', 'San Jorge (ala exterior derecha)', 'Q176251'), (1268, 'Q21711639', 'Q28144', 'http://commons.wikimedia.org/wiki/Special:FilePath/Kalf%2C%20Willem%20-%20Still-Life%20with%20an%20Aquamanile%2C%20Fruit%2C%20and%20a%20Nautilus%20Cup%20-%20c.%201660.jpg', 'Bodegón con aguamanil, frutas, copa nautilo y otros objetos', 'Q176251'), (1269, 'Q21711633', 'Q1192715', 'http://commons.wikimedia.org/wiki/Special:FilePath/San%20Juan%20Bautista%20predicando%20en%20el%20desierto%20%28Pier%20Francesco%20Mola%29.jpg', 'San Juan Bautista predicando en el desierto', 'Q176251'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `pintores` -- CREATE TABLE `pintores` ( `id_pintor` int(100) NOT NULL, `codigo_pintor` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `nombre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nacimiento` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `genero` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `imagen` longtext COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `pintores` -- INSERT INTO `pintores` (`id_pintor`, `codigo_pintor`, `nombre`, `nacimiento`, `genero`, `imagen`) VALUES (121, 'Q229455', 'Cindy Sherman', 'Glen Ridge', 'femenino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Hallway%20in%20the%20Wexner%20Center%20for%20the%20Arts.jpg'), (122, 'Q218207', 'Zoe Leonard', 'Liberty (pueblo)', 'femenino', ''), (123, 'Q216179', 'Bryan Ferry', 'Washington, Tyne and Wear', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Bryan%20ferry%20VieillesCharrues2007.JPG'), (124, 'Q312786', 'Robert Mapplethorpe', 'Q5460477', 'masculino', ''), (125, 'Q302714', 'Aaron Siskind', 'Nueva York', 'masculino', ''), (126, 'Q207359', 'Georges Bataille', 'Billom', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Bataille%20Georges%201940.jpg'), (127, 'Q170317', 'Ferran Adrià', 'Hospitalet de Llobregat', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Ferran%20Adri%C3%A0%20en%20la%20presentaci%C3%B3n%20de%20%27Un%20proyecte%20per%20compartir%27.jpg'), (128, 'Q179303', 'Jürgen Klauke', 'Cochem', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/J%C3%BCrgen%20Klauke2.jpg'), (129, 'Q213597', 'Hans Richter', 'Berlín', 'masculino', ''), (130, 'Q298075', 'Guy Debord', 'París', 'masculino', ''), (131, 'Q315348', 'Carl Andre', 'Quincy', 'masculino', ''), (132, 'Q275597', 'Germaine Dulac', 'Amiens', 'femenino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Germaine%20Dulac.jpg'), (133, 'Q221732', 'Paul McCarthy', 'Salt Lake City', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Paul%20McCarthy%20%E2%80%94%20Westernparade%20%28ii%29.jpg'), (135, 'Q312529', 'André Masson', 'Balagny-sur-Thérain', 'masculino', ''), (136, 'Q260436', 'Joan Brossa', 'Barcelona', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/FotoBrossa.jpg'), (137, 'Q251123', 'Álvaro Mutis', 'Bogotá', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Ant%C3%B3n%20Riveiro%20Coello%2C%20%C3%81lvaro%20Mutis%20e%20Alberto%20Pi%C3%B1eiro..jpg'), (138, 'Q170344', 'Anselm Kiefer', 'Donaueschingen', 'masculino', ''), (139, 'Q180727', 'John Cage', 'Los Ángeles', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/John%20Cage%20%281988%29.jpg'), (140, 'Q271918', 'Gertrude Käsebier', 'Des Moines', 'femenino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Gertrude%20K%C3%A4sebier%20by%20Adolf%20de%20Meyer.jpg'), (141, 'Q48319', 'Hans Holbein el Joven', 'Augsburgo', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Hans%20Holbein%20the%20Younger%2C%20self-portrait.jpg'), (142, 'Q130777', 'Kazimir Malévich', 'Kiev', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Casimir%20Malevich%20photo.jpg'), (143, 'Q126074', 'Richard Lindner', 'Hamburgo', 'masculino', ''), (144, 'Q48797', 'Hans von Kulmbach', 'Kulmbach', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Portrait%20Hans%20von%20Kulmbach.jpg'), (145, 'Q41406', 'Edvard Munch', 'Løten', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Edvard%20Munch%201933-2.jpg'), (146, 'Q5577', 'Salvador Dalí', 'Figueras', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Salvador%20Dali%20NYWTS.jpg'), (147, 'Q107194', 'George Grosz', 'Berlín', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/George%20Grosz%201930.jpg'), (148, 'Q17169', 'Giovanni Bellini', 'Venecia', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Giovanni%20Bellini%20Felt%C3%A9telezett%C3%96narck%C3%A9peKJ.jpg'), (149, 'Q152233', 'El Lissitzky', 'Q183162', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/El%20lissitzky%20self%20portrait%201914.jpg'), (150, 'Q102272', 'Jan van Eyck', 'Flandes', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Portrait%20of%20a%20Man%20by%20Jan%20van%20Eyck-small.jpg'), (151, 'Q62992', 'Christian Rohlfs', 'Groß Niendorf', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Rohlfs%20-%20Selbstbildnis%2C%201918.jpeg'), (152, 'Q123098', 'Angelica Kauffmann', 'Coira', 'femenino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Angelika%20Kauffmann%20-%20Self%20Portrait%20-%201784.jpg'), (153, 'Q41402', 'Gilbert Stuart', 'North Kingstown', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Gilbert%20Stuart%20Selfportrait.jpg'), (154, 'Q7799', 'Bramantino', 'Bérgamo', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Bram0.5.jpg'), (156, 'Q38785', 'Mijaíl Lariónov', 'Tiráspol', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Mikhail%20Larionov%2C%20c.1915.jpg'), (157, 'Q73889', 'Jan Polack', 'Cracovia', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Jan%20Polack%20003.jpg'), (158, 'Q47551', 'Tiziano', 'Pieve di Cadore', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Titian%20-%20Self-Portrait%20%28detail%29%20-%20WGA22979.jpg'), (159, 'Q46373', 'Edgar Degas', 'París', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Edgar%20Degas%20self%20portrait%201855.jpeg'), (160, 'Q301', 'El Greco', 'Creta', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/El%20Greco%20-%20Portrait%20of%20a%20Man%20-%20WGA10554.jpg'), (161, 'Q112250', 'Pieter Bout', 'Bruselas', 'masculino', ''), (162, 'Q183221', 'Antoine Watteau', 'Valenciennes', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Rosalba%20Carriera%20Portrait%20Antoine%20Watteau.jpg'), (163, 'Q190116', 'Benvenuto Cellini', 'Florencia', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Cellini%20Portrait.jpg'), (164, 'Q47812', 'Bertel Thorvaldsen', 'Copenhague', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Bertel%20Thorvaldsen%20portrait.jpg'), (167, 'Q48566', 'William Beechey', 'Burford', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/SirWilliamBeechey%20%28cropped%29.jpg'), (168, 'Q29231', 'Frans Snyders', 'Amberes', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Frans%20Snyders%20-%20Van%20Dyck%20c.%201620.jpg'), (169, 'Q175130', 'Alfred Sisley', 'París', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Pierre-Auguste%20Renoir%20110.jpg'), (173, 'Q5432', 'Francisco de Goya', 'Fuendetodos', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Autorretrato%20con%20gafas%20por%20Francisco%20de%20Goya%20%28Mus%C3%A9e%20Bonnat-Helleu%29.jpg'), (174, 'Q5681', 'Andrea Mantegna', 'Piazzola sul Brenta', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Andrea%20Mantegna%20049%20detail%20possible%20self-portrait.jpg'), (175, 'Q5598', 'Rembrandt', 'Leiden', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Rembrant%20Self-Portrait%2C%201660.jpg'), (176, 'Q170259', 'Léon Bonnat', 'Bayona', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/L%C3%A9on%20Bonnat%20-%20Autoportrait.jpg'), (177, 'Q164696', 'Hans Baldung', 'Schwäbisch Gmünd', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Hans%20Baldung%2C%20Self-Portrait.jpg'), (178, 'Q167220', 'Cornelis Cort', 'Hoorn', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Hans%20Speckaert%20-%20Portrait%20of%20Cornelis%20Cort.jpg'), (179, 'Q153472', 'Joos van Cleve', 'Cléveris', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Joos%20van%20Cleve%20-%20Self-Portrait%20-%20WGA5048.jpg'), (180, 'Q25200', 'Daniele Crespi', 'Busto Arsizio', 'masculino', 'http://commons.wikimedia.org/wiki/Special:FilePath/Daniele%20Crespi%20001.jpg'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `profesor` -- CREATE TABLE `profesor` ( `id` int(100) NOT NULL, `usuario` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `contrasenia` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `nombre` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `apellidos` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish2_ci NOT NULL, `activo` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `profesor` -- INSERT INTO `profesor` (`id`, `usuario`, `contrasenia`, `nombre`, `apellidos`, `activo`) VALUES (1, '[email protected]', '145TEACHER1', 'Francisco Javier', 'Musoz Saez', 1), (6, '[email protected]', 'teacher01', 'Juan Manuel', 'Arenas Coronado', 0), (5, '[email protected]', '4562luisa', 'Maria Luisa', 'Ramirez Alarcon', 1), (10, '[email protected]', 'teacher007', 'Peter Martin', 'Arenas Cetro', 0), (7, '[email protected]', 'teacherreach45', 'Rachel Ximena', 'Munich Palta', 0), (11, '[email protected]', 'sandrafine', 'Sandra Mirella', 'Gueller torre', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `realizar` -- CREATE TABLE `realizar` ( `id` int(11) NOT NULL, `id_visita` int(100) NOT NULL, `id_estudiante` int(100) NOT NULL, `id_profesor` varchar(50) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `visitas_profesor` -- CREATE TABLE `visitas_profesor` ( `id_visita` int(100) NOT NULL, `nombre_visita` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `codigo_profe` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `codigo_museo` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `codigo_pintor` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `codigo_obra` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `comentarios` mediumtext COLLATE utf8_unicode_ci NOT NULL, `publicado` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `visitas_profesor` -- INSERT INTO `visitas_profesor` (`id_visita`, `nombre_visita`, `codigo_profe`, `codigo_museo`, `codigo_pintor`, `codigo_obra`, `comentarios`, `publicado`) VALUES (6, 'Visita thysen Milenium', '5', 'Q176251', 'Francisco de Goya', 'El tío Paquete', 'Visitar estas obra de arte en la excursión que se realizara en el dí­a 25/12/19 ', 1), (8, 'Visita thysen Milenium', '5', 'Q176251', 'El Greco', 'La Anunciación', 'Visitar estas obra de arte en la excursión que se realizara en el dí­a 25/12/19 ', 0), (9, 'Visita thysen', '5', 'Q176251', 'Francisco de Goya,El Greco', 'El tío Paquete,La Anunciación', 'Visitar estas obra de arte en la excursión que se realizara en el dí­a 25/12/19 ', 1), (10, 'visita thyssen Guiada', '5', 'Q176251', 'Francisco de Goya,El Greco', 'El tío Paquete,La Anunciación', 'En esta visita se realizará y se centrara en estos cuadros, según su año de procedencia y lugar', 0); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `administradores` -- ALTER TABLE `administradores` ADD PRIMARY KEY (`usuario`), ADD KEY `id` (`id`) USING BTREE; -- -- Indices de la tabla `estudiantes` -- ALTER TABLE `estudiantes` ADD PRIMARY KEY (`id`,`usuario`) USING BTREE; -- -- Indices de la tabla `museos` -- ALTER TABLE `museos` ADD PRIMARY KEY (`codigo`), ADD KEY `id_museo` (`id_museo`) USING BTREE; -- -- Indices de la tabla `museo_cn_pintor` -- ALTER TABLE `museo_cn_pintor` ADD PRIMARY KEY (`id`), ADD KEY `fk_museo` (`codigo_museo`); -- -- Indices de la tabla `obras` -- ALTER TABLE `obras` ADD PRIMARY KEY (`id_obra`); -- -- Indices de la tabla `pintores` -- ALTER TABLE `pintores` ADD PRIMARY KEY (`id_pintor`), ADD KEY `codigo_pintor` (`codigo_pintor`); -- -- Indices de la tabla `profesor` -- ALTER TABLE `profesor` ADD PRIMARY KEY (`usuario`), ADD UNIQUE KEY `id` (`id`,`usuario`); -- -- Indices de la tabla `realizar` -- ALTER TABLE `realizar` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `visitas_profesor` -- ALTER TABLE `visitas_profesor` ADD PRIMARY KEY (`id_visita`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `administradores` -- ALTER TABLE `administradores` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `estudiantes` -- ALTER TABLE `estudiantes` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT de la tabla `museos` -- ALTER TABLE `museos` MODIFY `id_museo` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=80; -- -- AUTO_INCREMENT de la tabla `museo_cn_pintor` -- ALTER TABLE `museo_cn_pintor` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1450; -- -- AUTO_INCREMENT de la tabla `obras` -- ALTER TABLE `obras` MODIFY `id_obra` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1270; -- -- AUTO_INCREMENT de la tabla `pintores` -- ALTER TABLE `pintores` MODIFY `id_pintor` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=181; -- -- AUTO_INCREMENT de la tabla `profesor` -- ALTER TABLE `profesor` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT de la tabla `realizar` -- ALTER TABLE `realizar` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `visitas_profesor` -- ALTER TABLE `visitas_profesor` MODIFY `id_visita` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
ca0d738f66ec1b1396dbd79ddb352e9b53210595
SQL
gwrippee/SQL-SSRS
/Queries for People/RF Activity/old/Thomas_plt_tag.sql
UTF-8
5,249
3.890625
4
[]
no_license
--------------------------------------------------------------------------------------- -- James Tuttle 12/12/11 -- -- Gather the DISTINCT COUNT() on the pallet tag #'s by USER -- at location 50 (Kent) -- -- NOTE:: Details of item detail by USER Commented out at the bottom -- TODO:: Comment out the USERID --==================================================================================== -- -- FILES: TRANSFER | USERFILE | USERXTRA | PREMPM -- -- NOTE:: 12/21/11 TRANSFER USER UPDATES to last USER that updated the order --------------------------------------------------------------------------------------- -- Get User ID # -- TODO:: Comment out the USERID WITH CTE AS (SELECT emname as Name, ememp# as empno FROM OPENQUERY (GSFL2K, 'SELECT emname, ememp# FROM prempm WHERE ememp# = 1992 /***** Using 1 user # ****/ ORDER BY ememp# ') ), -- Gather: Pallet tag | dates | for TRANSFERS CTE2 AS ( SELECT COUNT( itxpal) OVER(PARTITION BY usxemp#) AS PltCnt, usxemp# as [User] FROM OPENQUERY (GSFL2K, 'SELECT usxemp#, itxpal FROM transfer xe INNER JOIN userxtra ux ON xe.ituser = ux.usxid INNER JOIN userfile uf ON ux.usxid = uf.usid INNER JOIN oolrfuser hst ON (hst.olrico = xe.itico AND hst.olrilo = xe.itiloc AND hst.olrord = xe.itord# AND hst.olrrel = xe.itrel# AND hst.olritm = xe.ititem) WHERE xe.itdate >= ''2011-10-01'' AND xe.itdate <= ''2011-10-31'' AND xe.itico = 1 AND xe.itiloc = 50 AND xe.itxpal != 0 GROUP BY xe.itxpal, ux.usxemp# ORDER BY ux.usxemp#, xe.itxpal ') GROUP BY usxemp#, itxpal ) --************************************************************************************* --------------------------------------------------------------------------------------- -- Results Returned for Reporting --------------------------------------------------------------------------------------- --************************************************************************************* SELECT CTE2.[User], CTE.Name, CTE2.PltCnt,'10/01/2011' AS StartDate, '10/31/2011' AS EndDate FROM CTE2 INNER JOIN CTE ON CTE2.[User] = CTE.empno GROUP BY CTE2.[User], CTE2.PltCnt ,CTE.Name ORDER BY CTE2.[User] /************************************************************************* ** ** ** DISTINCT DETAILS BY USER NUMBER & PALLET TAG # ** ** ** ************************************************************************** -- TODO:: Comment out the USERID -- SELECT DISTINCT itxpal AS pltCnt, usxemp# FROM OPENQUERY (GSFL2K, 'SELECT ituser, usxemp#, itxpal FROM transfer xe INNER JOIN userxtra ux ON xe.ituser = ux.usxid INNER JOIN userfile uf ON ux.usxid = uf.usid WHERE xe.itdate >= ''2011-10-01'' AND xe.itdate <= ''2011-10-31'' AND xe.itico = 1 AND xe.itiloc = 50 AND xe.itxpal != 0 AND ux.usxemp# = 1992 /*## USER ID# ##*/ ORDER BY xe.ituser ') ------------------------------------------------------------------------- -- With ITEM record Details ------------------------------------------------------------------------- ---- TODO: Comment out the USERID -- SELECT * FROM OPENQUERY (GSFL2K, 'SELECT ituser, usxemp#, itxpal, itord#, itrel#, itseq#, ititem FROM transfer xe INNER JOIN userxtra ux ON xe.ituser = ux.usxid INNER JOIN userfile uf ON ux.usxid = uf.usid WHERE xe.itdate >= ''2011-10-01'' AND xe.itdate <= ''2011-10-31'' AND xe.itico = 1 AND xe.itiloc = 50 AND xe.itxpal != 0 AND ux.usxemp# = 1992 /*## USER ID# ##*/ AND EXISTS ( SELECT 1 FROM oolrfuser hst WHERE hst.olrico = xe.itico AND hst.olrilo = xe.itiloc AND hst.olrord = xe.itord# AND hst.olrrel = xe.itrel# AND hst.olritm = xe.ititem AND hst.olrusr = ux.usxemp#) ORDER BY xe.ituser ') *****************************************************************************/ /* Checking with OOLRFHST <------------------------------------------<<< SELECT * FROM OPENQUERY (GSFL2K, 'SELECT ituser, usxemp#, itxpal, itord#, itrel#, itseq#, ititem FROM transfer xe INNER JOIN userxtra ux ON xe.ituser = ux.usxid INNER JOIN userfile uf ON ux.usxid = uf.usid INNER JOIN oolrfuser hst ON (hst.olrilo = xe.itiloc AND hst.olrord = xe.itord# AND hst.olrrel = xe.itrel# AND hst.olritm = xe.ititem AND hst.olrseq = xe.itseq#) WHERE xe.itdate >= ''2011-10-01'' AND xe.itdate <= ''2011-10-31'' AND xe.itico = 1 AND xe.itiloc = 50 AND xe.itxpal != 0 AND ux.usxemp# = 1992 /*## USER ID# ##*/ ORDER BY xe.ituser ') ***************************************************************************************************/
true
95dd2ac30a5e4b052745d012ade3931916165e9f
SQL
vblanes/tfg-codigo
/magicbd.sql
UTF-8
2,700
3.46875
3
[]
no_license
DROP TABLE IF EXISTS Carta_Pool; DROP TABLE IF EXISTS Carta_Elegido; DROP TABLE IF EXISTS Pool; DROP TABLE IF EXISTS Elegido; DROP TABLE IF EXISTS Registro; DROP TABLE IF EXISTS Usuario; DROP TABLE IF EXISTS Sinergias; DROP TABLE IF EXISTS Carta; DROP TABLE IF EXISTS Coleccion; ALTER DATABASE magicbd CHARACTER SET utf8 COLLATE utf8_unicode_ci; CREATE TABLE Coleccion( nombre VARCHAR (25) UNIQUE NOT NULL, codigo VARCHAR(3) PRIMARY KEY, bloque VARCHAR (25) ); CREATE TABLE Carta( nombre VARCHAR(25) NOT NULL, nombre_original VARCHAR(30) NOT NULL, coleccion VARCHAR(3) NOT NULL, color VARCHAR (1) NOT NULL, coste_mana TEXT NOT NULL, rareza VARCHAR(1) NOT NULL, nota_fireball REAL NOT NULL, coste_medio REAL, tipo text NOT NULL, texto text NOT NULL, FOREIGN KEY (coleccion) references Coleccion(codigo), PRIMARY KEY (nombre, coleccion) ); CREATE TABLE Sinergias( carta1 VARCHAR(25) NOT NULL, carta2 VARCHAR(25) NOT NULL, nota REAL NOT NULL, FOREIGN KEY (carta1) references Carta(nombre), FOREIGN KEY (carta2) references Carta(nombre), PRIMARY KEY (carta1, carta2) ); CREATE TABLE Usuario( username VARCHAR(25) NOT NULL PRIMARY KEY, password TEXT NOT NULL ); CREATE TABLE Registro( id INTEGER AUTO_INCREMENT PRIMARY KEY, usuario VARCHAR(25) NOT NULL, FOREIGN KEY (usuario) references Usuario(username) ); CREATE TABLE Pool( id INTEGER AUTO_INCREMENT PRIMARY KEY, registro INTEGER NOT NULL, FOREIGN KEY (registro) references Registro(id) ); CREATE TABLE Elegido( id INTEGER AUTO_INCREMENT PRIMARY KEY, registro INTEGER NOT NULL, FOREIGN KEY (registro) references Registro(id) ); CREATE TABLE Carta_Pool( carta VARCHAR(25) NOT NULL, id_pool INTEGER NOT NULL, FOREIGN KEY (carta) references Carta(nombre), FOREIGN KEY (id_pool) references Pool(id), PRIMARY KEY (carta, id_pool) ); CREATE TABLE Carta_Elegido( carta VARCHAR(25) NOT NULL, id_elegido INTEGER NOT NULL, FOREIGN KEY (carta) references Carta(nombre), FOREIGN KEY (id_elegido) references Elegido(id), PRIMARY KEY (carta, id_elegido) ); ALTER TABLE Carta CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ALTER TABLE Sinergias CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ALTER TABLE Usuario CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ALTER TABLE Registro CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ALTER TABLE Pool CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ALTER TABLE Elegido CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ALTER TABLE Carta_Pool CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ALTER TABLE Carta_Elegido CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
true
38dd66d2aac6d3fb3da6ddee36158b4abff9089f
SQL
brocktubre/SDCEventTracker
/Database Files/InitialQuery.sql
UTF-8
1,252
3.59375
4
[]
no_license
CREATE TABLE Event( ID INT PRIMARY KEY NOT NULL IDENTITY(1,1), EventName varchar(128), Date DATETIME, Location varchar(128), City varchar(128), State varchar(128), Zip int, MorningHunt bit DEFAULT(0), EveningHunt bit DEFAULT(0), BenchShow bit DEFAULT(0), BarkingContest bit DEFAULT(0), Details VARCHAR(8000) ) CREATE TABLE Handler( ID INT PRIMARY KEY NOT NULL IDENTITY(1000, 1), FirstName varchar(45), LastName varchar(45), ) CREATE TABLE Dog( ID INT PRIMARY KEY NOT NULL IDENTITY(1,1), Name varchar(128), Handler int FOREIGN KEY REFERENCES Handler(ID) ) CREATE TABLE Result( ID INT PRIMARY KEY NOT NULL IDENTITY(1,1), EventID INT NOT NULL, EventType INT NOT NULL, Place INT NOT NULL, HandlerID INT NOT NULL, DogID INT NOT NULL ) CREATE TABLE EventEnum( ID INT PRIMARY KEY NOT NULL, EventType VARCHAR(45) NOT NULL ) ALTER TABLE Result ADD FOREIGN KEY (DogID) REFERENCES Dog(ID) ALTER TABLE Result ADD FOREIGN KEY (HandlerID) REFERENCES Handler(ID) ALTER TABLE Result ADD FOREIGN KEY (EventID) REFERENCES Event(ID) ALTER TABLE Result ADD FOREIGN KEY (EventType) REFERENCES EventEnum(ID) ALTER TABLE Dog ADD FOREIGN KEY (HandlerID) REFERENCES Handler(ID)
true
aa7d9569e8913e36de8f086fc3da33c44b5f180f
SQL
CUBRID/cubrid-testcases
/sql/_33_elderberry/cbrd_23844/cbrd_24033/cases/view.sql
UTF-8
542
3.3125
3
[ "BSD-3-Clause" ]
permissive
/* create view - check if the identifier name includes a dot(.). */ create user u1; call login ('u1') on class db_user; create table u1.t1 (c1 int, c2 varchar, c3 datetime); create view u1.v1 as select c1, c2, c3 from t1; create view u1.v1.v1 as select c1, c2, c3 from t1; create view [v2.v2] as select c1, c2, c3 from t1; create view "v3.v3" as select c1, c2, c3 from t1; create view `v4.v4` as select c1, c2, c3 from t1; call login ('u1') on class db_user; drop view v1; drop table t1; call login ('dba') on class db_user; drop user u1;
true
ef9ebf8196eac0a8f4fd6d0d95eaf0c3ad9df241
SQL
AdamWhiteside/database-Hw
/hw4_whitesidea16.sql
UTF-8
5,462
3.484375
3
[]
no_license
drop table CurrentLoan; drop table History; drop table Book; drop table Member; drop view member_book; create table Book( bookID int not null, ISBN int not null, title varchar(255), author varchar(255), publish_year int not null, category varchar(255), primary key (bookID) ); create table Member( memberID int not null, lastname varchar(255), firstname varchar(255), address varchar(255), phone_number varchar(255), limit int not null, primary key (memberID) ); create table CurrentLoan( memberID int not null, bookID int not null, loan_date date not null, due_date date not null, primary key (memberID, bookID), foreign key(memberID) references Member, foreign key(bookID) references Book ); create table History( memberID int not null, bookID int not null, loan_date date not null, return_date date not null, primary key (memberID, bookID), foreign key(memberID) references Member, foreign key(bookID) references Book ); insert into Book values (11, 31, 'DaVinciCode', 'ArthurMiller', 1900, 'fiction'); insert into Book values (12, 32, 'XML and XQuery: revenge of the search', 'aaa', 1901, 'fiction'); insert into Book values (13, 33, 'Harry Potter and the faulty compiler', 'ArthurMiller', 1902, 'fiction'); insert into Book values (14, 34, 'XQuery: The XML Query Language', 'bbb', 1903, 'fiction'); insert into Book values (15, 35, 'XML and XQuery', 'ccc', 1900, 'fiction'); insert into Book values (16, 36, 'Harry Potter and the quest for chegg', 'ddd', 1905, 'fiction'); insert into Book values (17, 37, 'BaBinciBode', 'ArthurMiller', 1906, 'fiction'); insert into Book values (18, 38, 'XQuery reading XML', 'eee', 1907, 'fiction'); insert into Book values (21, 38, 'XQuery reading XML', 'eee', 1907, 'fiction'); insert into Book values (19, 39, 'Harry Potter and the coding interview', 'fff', 1908, 'fiction'); insert into Book values (20, 39, 'Harry Potter and the coding interview', 'fff', 1908, 'fiction'); insert into Member values (101, 'Miller', 'Arthur', '1123house', '919_111_1111', 2); insert into Member values (102, 'Smith', 'John', '1124house', '919_111_1112', 7); insert into Member values (103, 'Jones', 'David', '1125house', '919_111_1113', 1); insert into Member values (104, 'Dowe', 'Don', '1126house', '919_111_1114', 9); insert into Member values (105, 'Dou', 'Sean', '1127house', '919_111_1115', 10); insert into CurrentLoan values (101, 12, TO_DATE('2003/07/09', 'yyyy/mm/dd'), TO_DATE('2003/07/10', 'yyyy/mm/dd')); insert into CurrentLoan values (102, 13, TO_DATE('2004/08/09', 'yyyy/mm/dd'), TO_DATE('2004/08/10', 'yyyy/mm/dd')); insert into CurrentLoan values (103, 19, TO_DATE('2005/09/09', 'yyyy/mm/dd'), TO_DATE('2005/09/10', 'yyyy/mm/dd')); insert into CurrentLoan values (102, 16, TO_DATE('2006/10/09', 'yyyy/mm/dd'), TO_DATE('2006/10/10', 'yyyy/mm/dd')); insert into CurrentLoan values (104, 14, TO_DATE('2006/10/09', 'yyyy/mm/dd'), TO_DATE('2006/10/10', 'yyyy/mm/dd')); insert into History values (103, 12, TO_DATE('2013/07/09', 'yyyy/mm/dd'), TO_DATE('2013/07/10', 'yyyy/mm/dd')); insert into History values (105, 15, TO_DATE('2014/08/09', 'yyyy/mm/dd'), TO_DATE('2014/08/10', 'yyyy/mm/dd')); insert into History values (102, 19, TO_DATE('2015/09/09', 'yyyy/mm/dd'), TO_DATE('2015/09/10', 'yyyy/mm/dd')); insert into History values (101, 13, TO_DATE('2016/10/09', 'yyyy/mm/dd'), TO_DATE('2016/10/10', 'yyyy/mm/dd')); insert into History values (104, 15, TO_DATE('2016/10/09', 'yyyy/mm/dd'), TO_DATE('2016/10/10', 'yyyy/mm/dd')); insert into History values (103, 15, TO_DATE('2017/11/09', 'yyyy/mm/dd'), TO_DATE('2017/11/10', 'yyyy/mm/dd')); commit; --1 SELECT Member.firstname, Member.lastname FROM CurrentLoan LEFT JOIN Member ON CurrentLoan.MemberID = Member.memberID GROUP BY Member.memberID, firstname, lastname, limit HAVING COUNT(CurrentLoan.bookID) = limit; --2 SELECT lastname, firstname FROM Member NATURAL JOIN ( ((SELECT memberID, bookID FROM CurrentLoan) UNION (SELECT memberID, bookID FROM History)) NATURAL JOIN Book) WHERE title LIKE 'XQuery: The XML Query Language' AND memberID in (SELECT memberID FROM Member NATURAL JOIN ( ((SELECT memberID, bookID FROM CurrentLoan) UNION (SELECT memberID, bookID FROM History)) NATURAL JOIN Book) WHERE title = 'XML and XQuery'); --3 SELECT author FROM (SELECT author, COUNT(DISTINCT Book.ISBN) AS Num FROM Book GROUP BY Book.author HAVING COUNT(DISTINCT Book.ISBN) = (SELECT MAX(COUNT(DISTINCT Book.ISBN)) FROM Book GROUP BY Book.author)); --4 SELECT * FROM ((SELECT * FROM ( SELECT COUNT(CurrentLoan.bookID), Member.memberID FROM Member LEFT JOIN CurrentLoan ON Member.memberID = CurrentLoan.memberID GROUP BY Member.memberID )) NATURAL JOIN (SELECT * FROM ( SELECT COUNT(History.bookID), Member.memberID FROM Member LEFT JOIN History ON Member.memberID = History.memberID GROUP BY Member.memberID ))) ORDER BY memberID ASC; --5 SELECT memberID, firstname, lastname FROM ( (SELECT COUNT(title) AS Cou, memberID, firstname, lastname FROM Member NATURAL JOIN ( ((SELECT distinct bookID, memberID FROM CurrentLoan) UNION (SELECT distinct bookID, memberID FROM History)) NATURAL JOIN Book ) WHERE title LIKE '%Harry Potter%' GROUP BY memberID, firstname, lastname ) ) WHERE Cou = (SELECT COUNT(DISTINCT Book.ISBN) FROM Book WHERE title LIKE '%Harry Potter%');
true
62f30790e4664ee0f8fb80d6bfd1dfa3a257907e
SQL
ksjtop03/voicek
/PPAS/생성,추가,삭제/PK_재생성_예상작업시간.sql
UTF-8
747
2.78125
3
[]
no_license
/* ---------------------------------------------------------------------------------------------------- pk 재생성 시 rows 건 수 대비 예상 작업시간 산정 ---------------------------------------------------------------------------------------------------- */ ■ 100 ~ 500만 건 당 : 약 10분 ■ 1000 ~ 5000만 건 당 : 약 20분 ■ 1억 건 이상 : 약 1시간 이상 ~ ***주의!!) pk 재생성의 경우, constraint 삭제 후 생성하는 과정에서 중복될 가능성이 발생할 수 있으므로 매우 주의해야한다.(서비스 완전 차단필요!) 일전에 서비스를 일부만 차단하고 작업하여 이슈가 되었던 적이 있다고 들었음...
true
dfbd6d0682f23e5ac601ddfc92917085be887529
SQL
wangyiren2017/student-api-demo
/stu-api.sql
GB18030
583
2.703125
3
[]
no_license
CREATE TABLE `stu_information` ( `stu_id` varchar(100) NOT NULL COMMENT 'ѧid', `stu_name` varchar(10) NOT NULL COMMENT 'ѧ', `stu_sex` int(11) NOT NULL COMMENT 'ѧԱ0ʾУ1ʾŮ', `stu_age` int(11) NOT NULL COMMENT 'ѧ', `stu_magor` varchar(100) NOT NULL COMMENT 'רҵ', `stu_grade` int(11) NOT NULL COMMENT '꼶', `stu_department` varchar(100) NOT NULL COMMENT 'Ժϵ', `stu_class` varchar(100) NOT NULL COMMENT '༶', PRIMARY KEY (`stu_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ѧϢ';
true
449b8ad1efd1cdf031aa649574b2f81ed7b4e4f7
SQL
laurathay/sitesphp
/projet/SQL/formation_projet.sql
UTF-8
4,102
3.59375
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Jun 22, 2020 at 08:03 AM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `formation_projet` -- -- -------------------------------------------------------- -- -- Table structure for table `projet` -- CREATE TABLE `projet` ( `id_projet` int(11) NOT NULL, `titre` varchar(250) NOT NULL, `texte` text NOT NULL, `date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `projet` -- INSERT INTO `projet` (`id_projet`, `titre`, `texte`, `date`) VALUES (7, 'CODEVORES', 'a digital nomad community website that gathers developers and recruiters around the world to build project that have a positive social impact.', '2008-07-04'), (8, 'PROJET PHP', 'un site administré en PHP où l\'on pourra se log in avec une partie Admin et exposer nos projets.', '2008-07-04'), (9, 'HAKI COMMUNITY', 'a web-app, I contributed (the front-end) with my friends as a post-confinement commune effort. To help find a takeaway place according to user\'s geolocalisation/ budget and taste in Paris. ', '2008-07-04'), (10, 'PORTFOLIO PERSO', 'a personal project I\'m building for my own, showing some CSS animation and JavaScript skills. ', '2008-07-04'), (11, 'PSY', 'un site vitrine pour un cabinet de psychologue à la Défense Paris ', '2008-07-04'), (12, 'Ada Hotel ', 'Un de mes premiers sites fictif, l\'objectif étant de faire un site pour un hotel.', '2008-07-04'), (14, 'THAYTHAY BLOG', 'Mon premier site en wordpress pour donner ma perception sur les differences culturelles comparé à la France et donner des tips sur les itinéraires que j\'ai fait. ', '2008-07-04'); -- -------------------------------------------------------- -- -- Table structure for table `projet_tech` -- CREATE TABLE `projet_tech` ( `projet_id` int(11) NOT NULL, `techno_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `projet_tech` -- INSERT INTO `projet_tech` (`projet_id`, `techno_id`) VALUES (7, 1), (8, 3), (9, 2), (10, 1), (11, 1), (12, 1), (14, 4); -- -------------------------------------------------------- -- -- Table structure for table `techno` -- CREATE TABLE `techno` ( `id_techno` int(11) NOT NULL, `nom_techno` varchar(250) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `techno` -- INSERT INTO `techno` (`id_techno`, `nom_techno`) VALUES (1, 'HTML/CSS'), (2, 'JavaScript'), (3, 'PHP'), (4, 'Wordpress'), (5, 'Node.JS'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `nom` varchar(250) NOT NULL, `identifiant` int(11) NOT NULL, `motdepasse` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `projet` -- ALTER TABLE `projet` ADD PRIMARY KEY (`id_projet`); -- -- Indexes for table `projet_tech` -- ALTER TABLE `projet_tech` ADD KEY `projet_id` (`projet_id`), ADD KEY `techno_id` (`techno_id`); -- -- Indexes for table `techno` -- ALTER TABLE `techno` ADD PRIMARY KEY (`id_techno`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `projet` -- ALTER TABLE `projet` MODIFY `id_projet` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `techno` -- ALTER TABLE `techno` MODIFY `id_techno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `projet_tech` -- ALTER TABLE `projet_tech` ADD CONSTRAINT `projet_tech_ibfk_1` FOREIGN KEY (`projet_id`) REFERENCES `projet` (`id_projet`), ADD CONSTRAINT `projet_tech_ibfk_2` FOREIGN KEY (`techno_id`) REFERENCES `techno` (`id_techno`);
true
3e2df9e00fdd1bda0706fa3952951ea9adf7bc32
SQL
RoziMF/skm2
/dbskm.sql
UTF-8
3,212
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 19 Feb 2020 pada 03.36 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `dbskm` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `kuesioner` -- CREATE TABLE `kuesioner` ( `id_kuesioner` int(11) NOT NULL, `id_resp` int(11) NOT NULL, `persyaratan` int(50) NOT NULL, `sistem` int(50) NOT NULL, `waktu` int(50) NOT NULL, `biaya` int(50) NOT NULL, `produk` int(50) NOT NULL, `kompetensi` int(50) NOT NULL, `perilaku` int(50) NOT NULL, `penanganan` int(50) NOT NULL, `sarana` int(50) NOT NULL, `kritik` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `profil` -- CREATE TABLE `profil` ( `id_resp` int(11) NOT NULL, `gender` varchar(50) NOT NULL, `usia` varchar(50) NOT NULL, `pend` varchar(50) NOT NULL, `pekerjaan` varchar(50) NOT NULL, `layanan` varchar(50) NOT NULL, `tanggal` date NOT NULL, `persyaratan` int(50) NOT NULL, `sistem` int(50) NOT NULL, `waktu` int(50) NOT NULL, `biaya` int(50) NOT NULL, `produk` int(50) NOT NULL, `kompetensi` int(50) NOT NULL, `perilaku` int(50) NOT NULL, `penanganan` int(50) NOT NULL, `sarana` int(50) NOT NULL, `kritik` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `profil` -- INSERT INTO `profil` (`id_resp`, `gender`, `usia`, `pend`, `pekerjaan`, `layanan`, `tanggal`, `persyaratan`, `sistem`, `waktu`, `biaya`, `produk`, `kompetensi`, `perilaku`, `penanganan`, `sarana`, `kritik`) VALUES (1, 'Perempuan', '15-20', 'SD/SMP/SMA', 'Pelajar/Mahasiswa', 'Pelayanan Tilang', '2020-02-19', 0, 0, 0, 0, 0, 0, 0, 0, 0, ''), (2, 'Laki-laki', '15-20', 'SD/SMP/SMA', 'Pelajar/Mahasiswa', 'Lain-lain', '2020-02-19', 0, 0, 0, 0, 0, 0, 0, 0, 0, ''), (3, 'Laki-laki', '15-20', 'SD/SMP/SMA', 'PNS/TNI/Polri', 'Layanan Antar Barang Bukti', '2020-02-19', 0, 0, 0, 0, 0, 0, 0, 0, 0, ''); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `kuesioner` -- ALTER TABLE `kuesioner` ADD PRIMARY KEY (`id_kuesioner`), ADD KEY `id_resp` (`id_resp`); -- -- Indeks untuk tabel `profil` -- ALTER TABLE `profil` ADD PRIMARY KEY (`id_resp`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `kuesioner` -- ALTER TABLE `kuesioner` MODIFY `id_kuesioner` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `profil` -- ALTER TABLE `profil` MODIFY `id_resp` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
f74a53fc85d7963153f0840d2557bf75e3eb29f5
SQL
Vince250598/TP2_BD
/SQL_DEPART/scripts/procedures/prolongationForfait.sql
UTF-8
1,116
3.484375
3
[]
no_license
SET SERVEROUTPUT ON; CREATE OR REPLACE PROCEDURE prolongationForfait( CodeForfaitRecherche IN FORFAIT.CODE%TYPE, PlayerCount OUT NUMBER ) IS rec_PERIODE_FORFAIT_JOUEUR PERIODE_FORFAIT_JOUEUR%ROWTYPE; Today DATE; CURSOR cur_PERIODE_FORFAIT_JOUEUR IS SELECT * FROM PERIODE_FORFAIT_JOUEUR WHERE IDPERIODE IN (SELECT PERIODE.IDPERIODE FROM PERIODE WHERE CODEFORFAIT = CodeForfaitRecherche) FOR UPDATE; BEGIN PlayerCount := 0; SELECT SYSDATE INTO Today FROM DUAL; OPEN cur_PERIODE_FORFAIT_JOUEUR; FETCH cur_PERIODE_FORFAIT_JOUEUR INTO rec_PERIODE_FORFAIT_JOUEUR; WHILE cur_PERIODE_FORFAIT_JOUEUR%FOUND LOOP IF (rec_PERIODE_FORFAIT_JOUEUR.DATEACHAT >= add_months(Today, -12)) THEN UPDATE PERIODE_FORFAIT_JOUEUR SET DATEACHAT = add_months(DATEACHAT, 2) WHERE CURRENT OF cur_PERIODE_FORFAIT_JOUEUR; PlayerCount := PlayerCount + 1; END IF; FETCH cur_PERIODE_FORFAIT_JOUEUR INTO rec_PERIODE_FORFAIT_JOUEUR; END LOOP; CLOSE cur_PERIODE_FORFAIT_JOUEUR; END; /
true
fe1d1fa2ef115ca500c610e21dcc30ada622a18e
SQL
usmakestwo/Bankly-docker
/db/mysql/create_mysql.sql
UTF-8
1,064
3.34375
3
[]
no_license
DROP DATABASE IF EXISTS chores; CREATE DATABASE chores; USE chores; DROP TABLE IF EXISTS chore; CREATE TABLE chore ( id VARCHAR(32) NOT NULL, customer_id VARCHAR(32) NOT NULL, name VARCHAR(128) NOT NULL, recurrent VARCHAR(128), completed BIT DEFAULT 0 NOT NULL, amount VARCHAR(32), PRIMARY KEY (id) ); INSERT INTO chore (id, customer_id, name, recurrent, completed, amount) VALUES ('1', '1', 'Wash car', 'Weekly', 1, '2'); INSERT INTO chore (id, customer_id, name, recurrent, completed, amount) VALUES ('2', '1', 'Do the dishes', 'Daily', 0, '5'); INSERT INTO chore (id, customer_id, name, recurrent, completed, amount) VALUES ('3', '2', 'Do Laundary', 'Monthly', 0, '6'); INSERT INTO chore (id, customer_id, name, recurrent, completed, amount) VALUES ('4', '2', 'Walk the dog', 'Daily', 1, '8'); INSERT INTO chore (id, customer_id, name, recurrent, completed, amount) VALUES ('5', '3','Visit grandma', 'Weekly', 0, '10'); INSERT INTO chore (id, customer_id, name, recurrent, completed, amount) VALUES ('6', '3','Brush my teeth', 'Daily', 0, '4');
true
efbdb17b281d3670c992bed7f41eb7d1d3efb9ba
SQL
paul-rogers/drill-test-framework
/framework/resources/Functional/joins/left_outer/4way_on_c_integer.sql
UTF-8
449
3.71875
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
select DISTINCT COALESCE(j1.c_varchar || j2.c_varchar || j3.c_varchar || j4.c_varchar, 'EMPTY') as concatentated_string from j1 LEFT OUTER JOIN j2 ON (j1.c_integer = j2.c_integer) LEFT OUTER JOIN j3 ON (j1.c_integer = j3.c_integer) LEFT OUTER JOIN j4 ON (j1.c_integer = j4.c_integer) where j1.c_integer IS NOT NULL and LOWER(COALESCE(j1.c_varchar || j2.c_varchar || j3.c_varchar || j4.c_varchar, 'EMPTY')) <> 'empty' ;
true
08ac783a164c326d9891446d3f25e17efd870cdd
SQL
Pokham/grand_grocery
/products.sql
UTF-8
1,943
2.640625
3
[]
no_license
CREATE TABLE products ( Prod_ID varchar(100) DEFAULT NULL, Prod_Name varchar(100) DEFAULT NULL, Dept_ID varchar(100) DEFAULT NULL, Quantity varchar(100) DEFAULT NULL, Price varchar(100) DEFAULT NULL, Supp_ID varchar(100) DEFAULT NULL ); INSERT INTO products(Prod_ID, Prod_Name, Dept_ID, Quantity, Price, Supp_ID) VALUES (4000, 'Lettuce', 5000, 52, 2.09, 3000), (4001, 'Potatoes', 5000, 48, 0.32, 3000), (4002, 'Carrots', 5000, 26, 0.26, 3000), (4003, 'Corn', 5000, 30, 0.28, 3000), (4004, 'Tomatos', 5000, 26, 0.3, 3000), (4005, 'Apples', 5000, 44, 0.24, 3000), (4006, 'Oranges', 5000, 66, 0.18, 3000), (4007, 'Grapes', 50000, 51, 1.12, 3000), (4008, 'Pineapples', 5000, 22, 2.99, 3000), (4009, 'Watermelons', 5000, 26, 3.99, 3000), (4010, 'Milk 1gal', 5002, 8, 1.99, 3001), (4011, 'Cheese', 5002, 45, 0.99, 3001), (4012, 'Yogurt', 5002, 50, 2.99, 3001), (4013, 'Butter', 5002, 40, 1.99, 3001), (4014, 'Napkins', 5004, 26, 2.99, 3003), (4015, 'Silverware', 5004, 62, 2.99, 3003), (4016, 'Plates', 5004, 25, 2.99, 3003), (4017, 'Pans', 5004, 11, 3.99, 5003), (4018, 'Pots', 5004, 22, 4.99, 5003), (4019, 'Cooking Utensils', 5004, 38, 1.99, 3003), (4020, 'Beef Paties', 5001, 12, 3.99, 3001), (4021, 'Chicken Thighs', 5001, 10, 4.99, 3001), (4022, 'Sausage', 5001, 19, 1.99, 3001), (4023, 'Ice Cream 1gal', 5003, 9, 3.50, 3004), (4024, 'Frozen Pizza', 5003, 11, 3.89, 3004), (4025, 'Cereal', 5003, 26, 2.50, 3004), (4026, 'Pasta', 5003, 32, 1.24, 3004), (4027, 'Soda 1L', 5005, 15, 1.09, 3002), (4028, 'Soda 12pk', 5005, 18, 4.99, 3002), (4029, 'Fruit Juice 500ml', 5005, 21, 1.99, 3002); select * from products; -- Get the sume of 'Price' SELECT SUM(Price) FROM products; --Add new product INSERT INTO products VALUES(4030, 'Dragon Fruit', 5006, 5, 7.99, 3003); --Change price on an added item UPDATE products SET Price = 11.99 WHERE Prod_ID = 4030; --Delete a product from database DELETE FROM products WHERE Prod_ID = 4030;
true
b198fd9688ea8c90b7de9d2ab6ce800cd8dc5794
SQL
toroseda/oracle_init
/DataModel/Oracle/Upgrades/MDUpgradeBL1206_to1231.sql
UTF-8
1,919
3
3
[]
no_license
prompt prompt prompt 'Marketing Director Schema Upgrade' prompt '==================================' prompt prompt spool MDUpgradeBL1206to1231.log set SERVEROUT ON SIZE 20000 DECLARE var_count NUMBER(4):= 0; cid INTEGER; err_num NUMBER; err_msg VARCHAR2(100); PROCEDURE execute_sql (sql_string IN VARCHAR2) IS cid INTEGER; BEGIN cid := DBMS_SQL.OPEN_CURSOR; /* Parse and immediately execute dynamic SQL statement */ DBMS_SQL.PARSE(cid, sql_string, dbms_sql.v7); DBMS_SQL.CLOSE_CURSOR(cid); EXCEPTION /* If an exception is raised, close cursor before exiting. */ WHEN OTHERS THEN DBMS_SQL.CLOSE_CURSOR(cid); RAISE; END execute_sql; BEGIN select 1 into var_count from pvdm_upgrade where version_id = '5.6.3.1206'; dbms_output.put_line( 'Processing Schema Upgrade from V5.6.3 Build 1206 to V6.0 build 1231'); dbms_output.put_line( '-----------------------------------------------------------------'); dbms_output.put_line( 'Change report:'); dbms_output.put_line( ' - RUN_TIME_VAL_FLG added to SEG_HDR table for Run Time Value functionality'); dbms_output.put_line( '>'); execute_sql ('ALTER TABLE SEG_HDR ADD (RUN_TIME_VAL_FLG NUMBER(1) DEFAULT 0 NOT NULL CHECK (RUN_TIME_VAL_FLG BETWEEN 0 AND 1))'); update pvdm_upgrade set version_id = '6.0.1231'; COMMIT; dbms_output.put_line( '>' ); dbms_output.put_line( '> The upgrade to V6.0 build 1231 completed successfully '); dbms_output.put_line( '>' ); dbms_output.put_line( '>' ); EXCEPTION WHEN NO_DATA_FOUND THEN dbms_output.put_line('>'); WHEN OTHERS THEN dbms_output.put_line('>'); dbms_output.put_line('> Procedure error occurred.' ); err_num := SQLCODE; err_msg := SUBSTR(SQLERRM, 1, 100); dbms_output.put_line ('Oracle Error: '||err_num ||' '|| err_msg ); dbms_output.put_line('>'); dbms_output.put_line('>'); RAISE; END; / spool off; /*exit;*/
true
2ba461ef5c39ee9db391c0bf2c65106a124a0394
SQL
kevinmiles/instrumentation
/db/sp/sp_vend_cancel.sql
UTF-8
1,111
3.71875
4
[]
no_license
drop procedure if exists sp_vend_cancel; /* Cancel button pushed - so set the vend to canceled. Note that if a VNOK (vend ok) message as been set (req_datetime is set in vend_log), then it's too late to cancel, as the vending machine should be in the process of vending. */ DELIMITER // CREATE PROCEDURE sp_vend_cancel ( IN rfid_serial varchar( 50), IN vend_tran_id varchar( 6), OUT err varchar(100) ) SQL SECURITY DEFINER BEGIN declare ck_exists int; declare tran_id int; set err = ''; main: begin -- Check the transaction id & serial id match up with an active vend entry select count(*) into ck_exists from vend_log v where v.vend_tran_id = vend_tran_id and v.rfid_serial = rfid_serial and v.cancelled_datetime is null and v.req_datetime is null; if (ck_exists = 0) then set err = 'unable to find matching entry in vend_log (BUG)'; leave main; end if; update vend_log set cancelled_datetime = sysdate() where vend_log.vend_tran_id = vend_tran_id; end main; END // DELIMITER ;
true
f02340136255ef58b80d09f00f305d2a7bea1be0
SQL
SteelBIM/fxtcode
/FxtCenterService/tags/rel_gjb1.9/FxtCenterService.DataAccess/SQL/Project/FloorOrUnitDropDownList.sql
UTF-8
722
3.71875
4
[]
no_license
select h.@filed,count(h.houseid) as houseTotal from (select buildingid,houseid,@filed from @table_house with(nolock) where valid=1 and (','+cast((select showcompanyid from dbo.Privi_Company_ShowData pc with(nolock) where pc.Fxtcompanyid=@fxtcompanyid and pc.Cityid = @cityid) as varchar)+',' like '%,' + cast(fxtcompanyid as varchar) + ',%') and buildingid =@buildingid ) h --and houseid not in (select houseid from @table_house_sub where buildingid =@buildingid and fxtcompanyid = @fxtcompanyid and cityid = @cityid) --union --select buildingid,houseid,@filed from @table_house_sub with(nolock) where buildingid =@buildingid and fxtcompanyid = @fxtcompanyid and cityid = @cityid and valid = 1) h group by h.@filed
true
61bad7ec593461fc876f369f3ca383b9b7cc5955
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02287_type_object_convert.sql
UTF-8
1,702
2.875
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
-- Tags: no-fasttest SET allow_experimental_object_type = 1; DROP TABLE IF EXISTS t_object_convert; CREATE TABLE t_object_convert(id UInt64, data Object(Nullable('JSON'))) Engine=Memory; INSERT INTO t_object_convert SELECT 1, CAST(CAST('{"x" : 1}', 'Object(\'json\')'), 'Object(Nullable(\'json\'))'); SELECT id, data, toTypeName(data) FROM t_object_convert ORDER BY id; INSERT INTO t_object_convert SELECT 2, CAST(CAST('{"y" : 2}', 'Object(\'json\')'), 'Object(Nullable(\'json\'))'); SELECT id, data, toTypeName(data) FROM t_object_convert ORDER BY id; INSERT INTO t_object_convert FORMAT JSONEachRow {"id": 3, "data": {"x": 1, "y" : 2}}; SELECT id, data, toTypeName(data) FROM t_object_convert ORDER BY id; SELECT id, data.x, data.y FROM t_object_convert ORDER BY id; CREATE TABLE t_object_convert2(id UInt64, data Object('JSON')) Engine=Memory; INSERT INTO t_object_convert2 SELECT 1, CAST(CAST('{"x" : 1}', 'Object(\'json\')'), 'Object(Nullable(\'json\'))'); SELECT id, data, toTypeName(data) FROM t_object_convert2 ORDER BY id; INSERT INTO t_object_convert2 SELECT 2, CAST(CAST('{"y" : 2}', 'Object(\'json\')'), 'Object(Nullable(\'json\'))'); SELECT id, data, toTypeName(data) FROM t_object_convert2 ORDER BY id; DROP TABLE t_object_convert; DROP TABLE t_object_convert2; SELECT CAST(CAST('{"x" : 1}', 'Object(\'json\')'), 'Object(Nullable(\'json\'))'); SELECT CAST(CAST('{"x" : 1}', 'Object(Nullable(\'json\'))'), 'Object(\'json\')'); SELECT CAST('{"x" : [ 1 , [ 1 , 2] ]}', 'Object(\'json\')'); SELECT CAST('{"x" : [ {} , [ 1 , 2] ]}', 'Object(\'json\')'); SELECT CAST('{"x" : [ {} , [ 1 , [2]] ]}', 'Object(\'json\')'); SELECT CAST('{"x" : [ {} , [ {} , [2]] ]}', 'Object(\'json\')');
true
caaddc615c6086b11cadaaa609e68ccbde3a7c2a
SQL
dwatson78/database
/updatescripts/from_330beta2/alterCcard.sql
UTF-8
132
2.859375
3
[]
no_license
ALTER TABLE ccard ALTER ccard_cust_id SET NOT NULL, ADD FOREIGN KEY (ccard_cust_id) REFERENCES custinfo(cust_id);
true
1500427ef345829ddf2cd6485728ac0f3840c6e6
SQL
najibu/what_users_do_test
/mean.sql
UTF-8
411
4.34375
4
[ "MIT" ]
permissive
SELECT user_scores.year, GROUP_CONCAT(DISTINCT firstname, ' ', lastname, ' => ', mean ORDER BY mean DESC) FROM user_scores LEFT JOIN ( SELECT DISTINCT firstname, lastname, year, (SUM(score) / COUNT(score)) as mean FROM user_scores LEFT JOIN users ON users.id = user_scores.user_id GROUP BY user_id, year ) AS means ON means.year = user_scores.year GROUP BY user_scores.year ORDER BY user_scores.year ASC
true
a0a5a189494f04fbfe6111f7798520f8889d3e43
SQL
pruthanagrikar/mytap
/mytap-view.sql
UTF-8
10,410
3.9375
4
[ "BSD-3-Clause" ]
permissive
-- VIEWS -- ===== USE tap; DELIMITER // /****************************************************************************/ DROP FUNCTION IF EXISTS _has_view // CREATE FUNCTION _has_view (sname VARCHAR(64), vname VARCHAR(64)) RETURNS BOOLEAN DETERMINISTIC BEGIN DECLARE ret BOOLEAN; SELECT 1 INTO ret FROM `information_schema`.`tables` WHERE `table_schema` = sname AND `table_name` = vname AND `table_type` = 'VIEW'; RETURN coalesce(ret, false); END // -- has_view ( schema, view ) DROP FUNCTION IF EXISTS has_view // CREATE FUNCTION has_view(sname VARCHAR(64), vname VARCHAR(64), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should exist'); END IF; RETURN ok(_has_view(sname, vname), description); END // -- hasnt_view ( schema, view ) DROP FUNCTION IF EXISTS hasnt_view // CREATE FUNCTION hasnt_view(sname VARCHAR(64), vname VARCHAR(64), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should not exist' ); END IF; RETURN ok(NOT _has_view(sname, vname), description); END // /****************************************************************************/ DROP FUNCTION IF EXISTS _has_security // CREATE FUNCTION _has_security(sname VARCHAR(64), vname VARCHAR(64), vsecurity VARCHAR(9)) RETURNS BOOLEAN DETERMINISTIC BEGIN DECLARE ret boolean; SELECT 1 INTO ret FROM `information_schema`.`views` WHERE `table_schema` = sname AND `table_name` = vname AND `security_type` = vsecurity; RETURN coalesce(ret, false); END // -- has_security_invoker ( schema, view ) DROP FUNCTION IF EXISTS has_security_invoker // CREATE FUNCTION has_security_invoker(sname VARCHAR(64), vname VARCHAR(64), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should have security INVOKER'); END IF; IF NOT _has_view(sname, vname) THEN RETURN CONCAT(ok(FALSE, description), '\n', diag(CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' does not exist'))); END IF; RETURN ok(_has_security(sname, vname, 'INVOKER'), description); END // -- has_security_definer ( schema, view ) DROP FUNCTION IF EXISTS has_security_definer // CREATE FUNCTION has_security_definer(sname VARCHAR(64), vname VARCHAR(64), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should have security DEFINER'); END IF; IF NOT _has_view(sname, vname) THEN RETURN CONCAT(ok(FALSE, description), '\n', diag(CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' does not exist'))); END IF; RETURN ok(_has_security(sname, vname, 'DEFINER'), description); END // /****************************************************************************/ -- SECURITY TYPE -- { INVOKER | DEFINER } -- pgTAP style to allow eq test and diagnostics DROP FUNCTION IF EXISTS _view_security_type // CREATE FUNCTION _view_security_type(sname VARCHAR(64), vname VARCHAR(64)) RETURNS VARCHAR(7) DETERMINISTIC BEGIN DECLARE ret VARCHAR(7); SELECT `security_type` INTO ret FROM `information_schema`.`views` WHERE `table_schema` = sname AND `table_name` = vname; RETURN COALESCE(ret, NULL); END // -- view_security_type_is ( schema, view ) DROP FUNCTION IF EXISTS view_security_type_is // CREATE FUNCTION view_security_type_is(sname VARCHAR(64), vname VARCHAR(64), stype VARCHAR(7), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should have Security Type ', qv(stype)); END IF; IF NOT _has_view(sname, vname) THEN RETURN CONCAT(ok(FALSE, description), '\n', diag(CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' does not exist'))); END IF; RETURN eq(_view_security_type( sname, vname), stype, description); END // /****************************************************************************/ -- CHECK OPTION -- { LOCAL | CASCADED } DROP FUNCTION IF EXISTS _view_check_option // CREATE FUNCTION _view_check_option(sname VARCHAR(64), vname VARCHAR(64)) RETURNS VARCHAR(8) DETERMINISTIC BEGIN DECLARE ret VARCHAR(8); SELECT `check_option` INTO ret FROM `information_schema`.`views` WHERE `table_schema` = sname AND `table_name` = vname; RETURN COALESCE(ret, NULL); END // -- view_check_option_is ( schema, view ) DROP FUNCTION IF EXISTS view_check_option_is // CREATE FUNCTION view_check_option_is(sname VARCHAR(64), vname VARCHAR(64), copt VARCHAR(8), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should have Check Option ', qv(copt)); END IF; IF NOT _has_view(sname, vname) THEN RETURN CONCAT(ok(FALSE, description), '\n', diag(CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' does not exist'))); END IF; RETURN eq(_view_check_option(sname, vname), copt, description); END // /****************************************************************************/ -- IS_UPDATABLE -- { NO | YES } DROP FUNCTION IF EXISTS _view_is_updatable // CREATE FUNCTION _view_is_updatable(sname VARCHAR(64), vname VARCHAR(64)) RETURNS VARCHAR(3) DETERMINISTIC BEGIN DECLARE ret VARCHAR(3); SELECT `is_updatable` INTO ret FROM `information_schema`.`views` WHERE `table_schema` = sname AND `table_name` = vname; RETURN COALESCE(ret, NULL); END // -- This probably should be called is_updatable_is() to be consistent -- but that would sound silly DROP FUNCTION IF EXISTS view_is_updatable // CREATE FUNCTION view_is_updatable(sname VARCHAR(64), vname VARCHAR(64), updl VARCHAR(3), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should have Is Updatable ', qv(updl)); END IF; IF NOT _has_view(sname, vname) THEN RETURN CONCAT(ok(FALSE, description), '\n', diag(CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' does not exist'))); END IF; RETURN eq(_view_is_updatable(sname, vname), updl, description); END // /****************************************************************************/ -- DEFINER DROP FUNCTION IF EXISTS _view_definer // CREATE FUNCTION _view_definer(sname VARCHAR(64), vname VARCHAR(64)) RETURNS VARCHAR(93) DETERMINISTIC BEGIN DECLARE ret VARCHAR(93); SELECT `definer` INTO ret FROM `information_schema`.`views` WHERE `table_schema` = sname AND `table_name` = vname; RETURN COALESCE(ret, NULL); END // DROP FUNCTION IF EXISTS view_definer_is // CREATE FUNCTION view_definer_is(sname VARCHAR(64), vname VARCHAR(64), dfnr VARCHAR(93), description TEXT) RETURNS TEXT DETERMINISTIC BEGIN IF description = '' THEN SET description = CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' should have Definer ', qv(dfnr)); END IF; IF NOT _has_view(sname, vname) THEN RETURN CONCAT(ok(FALSE, description), '\n', diag(CONCAT('View ', quote_ident(sname), '.', quote_ident(vname), ' does not exist'))); END IF; RETURN eq(_view_definer(sname, vname), dfnr, description); END // /****************************************************************************/ -- Check appropriate views are defined DROP FUNCTION IF EXISTS _missing_views // CREATE FUNCTION _missing_views(sname VARCHAR(64)) RETURNS TEXT DETERMINISTIC BEGIN DECLARE ret TEXT; SELECT GROUP_CONCAT(quote_ident(ident)) INTO ret FROM ( SELECT `ident` FROM `idents1` WHERE `ident` NOT IN ( SELECT `table_name` FROM `information_schema`.`tables` WHERE `table_schema` = sname AND `table_type` = 'VIEW' ) ) msng; RETURN COALESCE(ret, ''); END // DROP FUNCTION IF EXISTS _extra_views // CREATE FUNCTION _extra_views(sname VARCHAR(64)) RETURNS TEXT DETERMINISTIC BEGIN DECLARE ret TEXT; SELECT GROUP_CONCAT(quote_ident(`ident`)) INTO ret FROM ( SELECT `table_name` AS `ident` FROM `information_schema`.`tables` WHERE `table_schema` = sname AND `table_type` = 'VIEW' AND `table_name` NOT IN ( SELECT `ident` FROM `idents2` ) ) xtra; RETURN COALESCE(ret, ''); END // DROP FUNCTION IF EXISTS views_are // CREATE FUNCTION views_are(sname VARCHAR(64), want TEXT, description TEXT) RETURNS TEXT DETERMINISTIC BEGIN DECLARE sep CHAR(1) DEFAULT ','; DECLARE seplength INTEGER DEFAULT CHAR_LENGTH(sep); IF description = '' THEN SET description = CONCAT('schema ', quote_ident(sname), ' should have the correct Views'); END IF; SET want = _fixCSL(want); IF want IS NULL THEN RETURN CONCAT(ok(FALSE,description),'\n', diag(CONCAT('Invalid character in comma separated list of expected schemas\n', 'Identifier must not contain NUL Byte or extended characters (> U+10000)'))); END IF; IF NOT _has_schema( sname ) THEN RETURN CONCAT(ok(FALSE,description),'\n', diag(CONCAT('Schema ', quote_ident(sname), 'does not exist'))); END IF; DROP TEMPORARY TABLE IF EXISTS idents1; CREATE TEMPORARY TABLE tap.idents1 (ident VARCHAR(64) PRIMARY KEY) ENGINE MEMORY CHARSET utf8 COLLATE utf8_general_ci; DROP TEMPORARY TABLE IF EXISTS idents2; CREATE TEMPORARY TABLE tap.idents2 (ident VARCHAR(64) PRIMARY KEY) ENGINE MEMORY CHARSET utf8 COLLATE utf8_general_ci; WHILE want != '' > 0 DO SET @val = TRIM(SUBSTRING_INDEX(want, sep, 1)); SET @val= uqi(@val); IF @val <> '' THEN INSERT IGNORE INTO idents1 VALUE(@val); INSERT IGNORE INTO idents2 VALUE(@val); END IF; SET want = SUBSTRING(want, CHAR_LENGTH(@val) + seplength + 1); END WHILE; SET @missing = _missing_views( sname ); SET @extras = _extra_views( sname); RETURN _are('views', @extras, @missing, description); END // DELIMITER ;
true
3e1933bdf931370bf6b918712989e8272eba341c
SQL
jdell/jdelldev
/net/Ambis1/ambis1.model/_sql/upgrade_4.sql
UTF-8
382
2.75
3
[]
no_license
-- Descripcion = Add table Reservation /* Para deshacer los cambios DROP TABLE `reservation` */ CREATE TABLE `reservation` ( `id_reservation` INT NOT NULL AUTO_INCREMENT, `dateAndTime_reservation` DATETIME NOT NULL , `duration_reservation` DATETIME NOT NULL , `id_member` INT NOT NULL , `id_cage` INT NOT NULL, PRIMARY KEY ( `id_reservation` ) ) ENGINE = MYISAM
true
cfe012da74f98a29d76d31c4d53b8a13a4e7d7b3
SQL
zsadeghi/starbox
/starbox-web/src/main/resources/sql/schema.sql
UTF-8
2,467
3.671875
4
[]
no_license
CREATE TABLE ingredient ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL ); CREATE TABLE location ( id INT AUTO_INCREMENT PRIMARY KEY, address VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL ); CREATE TABLE location_offering ( offering_price_id INT NOT NULL, location_id INT NOT NULL, PRIMARY KEY (location_id, offering_price_id), CONSTRAINT FKgck6qc8jshhrpbmysco2u2jye FOREIGN KEY (location_id) REFERENCES location (id) ); CREATE TABLE offering ( id INT AUTO_INCREMENT PRIMARY KEY, description VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, offering_type_id INT NOT NULL ); CREATE TABLE offering_ingredient ( offering_id INT NOT NULL, ingredient_id INT NOT NULL, PRIMARY KEY (ingredient_id, offering_id), CONSTRAINT FK5mmdaqwma005b4usnci3lg8ie FOREIGN KEY (offering_id) REFERENCES offering (id), CONSTRAINT FKohsr3bkdtgtbx9vljcgv4v0vo FOREIGN KEY (ingredient_id) REFERENCES ingredient (id) ); CREATE TABLE offering_price ( id INT AUTO_INCREMENT PRIMARY KEY, price FLOAT NOT NULL, offering_id INT NULL, offering_size_id INT NULL, CONSTRAINT FK11xqncsu82d8jglieakr2dfs2 FOREIGN KEY (offering_id) REFERENCES offering (id) ); ALTER TABLE location_offering ADD CONSTRAINT FK6fs43whdkg75j7ysq6cpycskp FOREIGN KEY (offering_price_id) REFERENCES offering_price (id); CREATE TABLE offering_size ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL, oz INT NOT NULL ); ALTER TABLE offering_price ADD CONSTRAINT FKlx8ltrpr7su95s8usw8m9ep7f FOREIGN KEY (offering_size_id) REFERENCES offering_size (id); CREATE TABLE offering_tag ( tag_id INT NOT NULL, offering_id INT NOT NULL, PRIMARY KEY (offering_id, tag_id), CONSTRAINT FKr756lnm3t7waj988ffa9nfu5x FOREIGN KEY (offering_id) REFERENCES offering (id) ); CREATE TABLE offering_type ( id INT AUTO_INCREMENT PRIMARY KEY, description VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL ); ALTER TABLE offering ADD CONSTRAINT FKa9luqt4lhtd7jo8qc5kd9sbem FOREIGN KEY (offering_type_id) REFERENCES offering_type (id); CREATE TABLE tag ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL ); ALTER TABLE offering_tag ADD CONSTRAINT FK2gjfveqjhdg24ir9dc6lud95y FOREIGN KEY (tag_id) REFERENCES tag (id);
true
7c6eda6347bbddca0794f5e4009b5340877d40ff
SQL
Mandar143/invincible_react
/assets/SQL/userLoyaltyCalculation.sql
UTF-8
11,467
3.453125
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS userLoyaltyCalculation$$ CREATE PROCEDURE userLoyaltyCalculation(IN lastId INT, IN inMobileNumber VARCHAR(20),OUT finalOutPut JSON) userLoyaltyCalculation:BEGIN -- VARIAABLE DECLARATION START DECLARE orderNotFound, orderId, subMerchantId, customerId, locationId, merchantId, currentMilestoneId, loyaltyId, emailVerified, mobileVerified INTEGER DEFAULT 0; DECLARE orderDate, lastLoyaltyResetDate DATE DEFAULT NULL; DECLARE firstName,emailAddress,saleType, orderNumber, voucherApplied, storeCode, mobileNumber VARCHAR (20) DEFAULT ''; DECLARE orderAmount, calculatedAmount,currentPurchaseValue DECIMAL(14,2) DEFAULT 0.00; DECLARE outputData JSON DEFAULT JSON_ARRAY(); DECLARE userGender, isLoyaltyUser, optOutFromSmsStatus, optOutFromEmailStatus TINYINT DEFAULT 0; -- VARIABLE DECLARATION END -- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -- CURSOR DECLARATION START DECLARE customerOrderCursor CURSOR FOR SELECT id, customer_loyalty_id, location_id, merchant_id, order_date, order_number, order_amount, calculated_amount, voucher_applied, store_code, mobile_number FROM customer_orders WHERE processed = 0 AND mobile_number != '' AND communication_sent = 0 AND DATE_FORMAT(created_at,'%Y-%m-%d') >= DATE_SUB(CURDATE(), INTERVAL 2 DAY) AND IF(inMobileNumber != '', mobile_number = inMobileNumber,1=1) AND IF(lastId != 0,id > lastId,1=1) ORDER BY id ASC LIMIT 1000; DECLARE CONTINUE HANDLER FOR NOT FOUND SET orderNotFound = 1; -- CURSOR DECLARATION END -- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -- CURSOR ITERATION START START TRANSACTION; OPEN customerOrderCursor; getOrders: LOOP FETCH customerOrderCursor INTO orderId, customerId, locationId, merchantId, orderDate, orderNumber, orderAmount, calculatedAmount, voucherApplied, storeCode, mobileNumber; IF orderNotFound = 1 THEN LEAVE getOrders; END IF; IF locationId = 0 THEN IF storeCode != '' THEN SET locationId = (SELECT id FROM sub_merchant_locations WHERE store_code = storeCode); END IF; END IF; SET subMerchantId = (SELECT sub_merchant_id FROM sub_merchant_locations WHERE id = locationId); IF customerId != 0 THEN SELECT current_milestone_id, loyalty_id, first_name, email_address, mobile_number, email_verified, mobile_verified, IFNULL(current_purchase_value,0), is_loyalty_user,last_loyalty_reset_date, opt_out_from_sms_status, opt_out_from_email_status INTO currentMilestoneId, loyaltyId, firstName, emailAddress, mobileNumber, emailVerified, mobileVerified, currentPurchaseValue, isLoyaltyUser, lastLoyaltyResetDate, optOutFromSmsStatus, optOutFromEmailStatus FROM customer_loyalty WHERE id = customerId; IF isLoyaltyUser = 1 THEN SET currentPurchaseValue = currentPurchaseValue + calculatedAmount; IF currentMilestoneId = (SELECT id FROM merchant_loyalty_program_milestones WHERE loyalty_id = loyaltyId AND milestone_reach_at = (SELECT MAX(milestone_reach_at) FROM merchant_loyalty_program_milestones WHERE loyalty_id = loyaltyId)) THEN SET lastLoyaltyResetDate = CURDATE(); SET currentPurchaseValue = currentPurchaseValue - (SELECT MAX(milestone_reach_at) FROM merchant_loyalty_program_milestones WHERE loyalty_id = loyaltyId); SET currentMilestoneId = 1; END IF; IF EXISTS (SELECT id FROM merchant_loyalty_program_milestones WHERE id > currentMilestoneId AND milestone_reach_at <= currentPurchaseValue) THEN milestoneBlock: BEGIN DECLARE couponId,milestoneId,milestoneNotFound,milestoneSequence INTEGER DEFAULT 0; DECLARE milestoneReachAt,milestoneBenefit BIGINT DEFAULT 0; DECLARE couponCode VARCHAR(20) DEFAULT ''; DECLARE couponValidity DATE DEFAULT NULL; DECLARE couponInput,couponData JSON DEFAULT JSON_OBJECT(); DECLARE milestoneCursor CURSOR FOR SELECT id, milestone_reach_at, milestone_benefit_value,sequence FROM merchant_loyalty_program_milestones WHERE id > currentMilestoneId AND loyalty_id = loyaltyId AND milestone_reach_at <= currentPurchaseValue; DECLARE CONTINUE HANDLER FOR NOT FOUND SET milestoneNotFound = 1; OPEN milestoneCursor; getMilestones: LOOP FETCH milestoneCursor INTO milestoneId,milestoneReachAt,milestoneBenefit,milestoneSequence; IF milestoneNotFound = 1 THEN LEAVE getMilestones; END IF; SET couponInput = JSON_OBJECT('coupon_for',(milestoneSequence - 1)); CALL generateCouponCode(couponInput,couponData); IF couponData IS NOT NULL AND JSON_VALID(couponData) = 1 THEN SET couponId = JSON_EXTRACT(couponData,'$.data.coupon_code_id'); SET couponCode = JSON_UNQUOTE(JSON_EXTRACT(couponData,'$.data.coupon_code')); SET couponValidity = JSON_UNQUOTE(JSON_EXTRACT(couponData,'$.data.coupon_validity')); END IF; IF couponValidity IS NOT NULL THEN INSERT INTO customer_milestones (customer_loyalty_id, merchant_id, loyalty_id, milestone_id, voucher_value, purchase_value, voucher_code, date_earned, expiry_date, created_by) VALUES (customerId,merchantId,loyaltyId,milestoneId,milestoneBenefit,milestoneReachAt,couponCode,CURDATE(),couponValidity,1); END IF; IF LAST_INSERT_ID() > 0 AND couponId != 0 THEN SET currentMilestoneId = milestoneId; UPDATE pre_populated_coupons SET coupon_used = 1 WHERE id = couponId; IF inMobileNumber != '' THEN SET outputData = JSON_ARRAY_APPEND(outputData,'$',JSON_OBJECT('first_name',firstName,'email_address',emailAddress,'email_verified',emailVerified,'mobile_number',mobileNumber,'mobile_verified',mobileVerified,'opt_out_from_sms_status',optOutFromSmsStatus,'opt_out_from_email_status',optOutFromEmailStatus,'voucher_value',milestoneBenefit,'milestoneNo',(milestoneSequence - 1),'coupon_code',couponCode,'coupon_validity',couponValidity,'message_type',0,'total_purchase',currentPurchaseValue,'update_date',DATE_ADD(CURDATE(), INTERVAL 2 DAY))); INSERT INTO send_user_loyalty_communication (order_id, first_name, email_address, email_verified, mobile_number, mobile_verified, opt_out_from_sms_status, opt_out_from_email_status, total_purchase, coupon_code, voucher_value, coupon_validity, milestone_no, update_date, message_type, is_from_register) VALUES (orderId, firstName, emailAddress, emailVerified, mobileNumber, mobileVerified, optOutFromSmsStatus, optOutFromEmailStatus, currentPurchaseValue, couponCode, milestoneBenefit, couponValidity, (milestoneSequence - 1), DATE_ADD(CURDATE(), INTERVAL 2 DAY), 0, 1); ELSE INSERT INTO send_user_loyalty_communication (order_id, first_name, email_address, email_verified, mobile_number, mobile_verified, opt_out_from_sms_status, opt_out_from_email_status, total_purchase, coupon_code, voucher_value, coupon_validity, milestone_no, update_date, message_type) VALUES (orderId, firstName, emailAddress, emailVerified, mobileNumber, mobileVerified, optOutFromSmsStatus, optOutFromEmailStatus, currentPurchaseValue, couponCode, milestoneBenefit, couponValidity, (milestoneSequence - 1), DATE_ADD(CURDATE(), INTERVAL 2 DAY), 0); END IF; END IF; END LOOP getMilestones; CLOSE milestoneCursor; END milestoneBlock; END IF; UPDATE customer_loyalty SET sub_merchant_id = IF((sub_merchant_id = 0 OR sub_merchant_id IS NULL),subMerchantId,sub_merchant_id), current_milestone_id = currentMilestoneId, home_branch_id = IF((home_branch_id = 0 OR home_branch_id IS NULL),locationId,home_branch_id), current_purchase_value = currentPurchaseValue, last_loyalty_reset_date = lastLoyaltyResetDate WHERE id = customerId; UPDATE customer_orders SET processed = 1 WHERE id = orderId; END IF; ELSE IF JSON_SEARCH(outputData, 'one', mobileNumber) IS NULL THEN SELECT SUM(calculated_amount) INTO @totalPurchase FROM customer_orders WHERE processed = 0 AND mobile_number = mobileNumber AND DATE_FORMAT(created_at,'%Y-%m-%d') >= DATE_SUB(CURDATE(), INTERVAL 2 DAY); INSERT INTO send_user_loyalty_communication (order_id, first_name, email_address, email_verified, mobile_number, mobile_verified, opt_out_from_sms_status, opt_out_from_email_status, total_purchase, coupon_code, voucher_value, coupon_validity, milestone_no, update_date, message_type) VALUES (orderId, '', '', 0, mobileNumber, 1, 0, 0, @totalPurchase, '', 0, NULL, 0, DATE_ADD(CURDATE(), INTERVAL 2 DAY), 1); END IF; END IF; END LOOP getOrders; CLOSE customerOrderCursor; -- CURSOR ITERATION END -- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ COMMIT; SET finalOutPut = JSON_OBJECT('status','SUCCESS','message','Loyalty calculations done successfully','data',outputData,'statusCode',200,'lastId',orderId); END$$ DELIMITER ;
true
f381409610584d386305b9d704095538db1ef65a
SQL
grazios/Rexy
/initialize/ddl/user.sql
UTF-8
561
3.09375
3
[]
no_license
DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL, `provider` varchar(64) NOT NULL, `oauth_id` varchar(128) NOT NULL, `name` varchar(128) NOT NULL, `mail` varchar(128) NOT NULL, `photo` varchar(128) NOT NULL, `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `users` ADD PRIMARY KEY (`id`); ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
true
5cf2ce09b18456be1361e9308805effd83e23cd3
SQL
acdh-oeaw/tokeneditor-model
/db_schema.sql
UTF-8
2,801
3.828125
4
[ "MIT" ]
permissive
CREATE TABLE roles ( role text not null primary key ); INSERT INTO roles VALUES ('owner'), ('editor'), ('viewer'), ('none'); CREATE TABLE users ( user_id text not null primary key, name text ); CREATE TABLE documents ( document_id int primary key, token_xpath text not null, -- token_value_xpath text not null, name text not null, save_path text not null, hash text not null ); CREATE SEQUENCE document_id_seq; CREATE TABLE documents_users ( document_id int not null references documents (document_id) ON UPDATE CASCADE ON DELETE CASCADE, user_id text not null references users (user_id) ON UPDATE CASCADE ON DELETE CASCADE, role text not null references roles (role), primary key (document_id, user_id) ); CREATE TABLE documents_namespaces ( document_id int not null references documents (document_id) on delete cascade, prefix text not null, ns text not null, primary key (document_id, prefix) ); CREATE TABLE tokens ( document_id int not null references documents (document_id) on delete cascade, token_id int not null, -- value text not null, primary key (document_id, token_id) ); CREATE TABLE property_types ( type_id text primary key ); INSERT INTO property_types VALUES ('closed list'), ('free text'), ('inflection table'), ('link'), ('boolean'), ('xml'); CREATE TABLE properties ( document_id int not null references documents (document_id) on delete cascade, property_xpath text not null, type_id text not null references property_types (type_id), name text not null check(name not in ('tokenId', '_offset', '_pagesize', '_order', '_format')), read_only bool not null, optional bool not null, ord int not null, attributes jsonb not null default '{}', primary key (document_id, property_xpath), unique (document_id, ord), unique (document_id, name) ); CREATE TABLE orig_values ( document_id int not null, token_id int not null, property_xpath text not null, value text not null, foreign key (document_id, token_id) references tokens (document_id, token_id) on delete cascade, foreign key (document_id, property_xpath) references properties (document_id, property_xpath) on delete cascade, primary key (document_id, token_id, property_xpath) ); CREATE TABLE values ( document_id int not null, property_xpath text not null, token_id int not null, user_id text not null references users (user_id) on update cascade, value text not null, date timestamp not null default now(), foreign key (document_id, token_id, property_xpath) references orig_values (document_id, token_id, property_xpath) on delete cascade, primary key (document_id, token_id, property_xpath, user_id) ); CREATE TABLE import_tmp ( id int primary key, xml xml not null ); CREATE SEQUENCE import_tmp_seq;
true
45f7b34144cbb657d26beea902f855469adb7ef5
SQL
wchen308/practice_db
/most_experienced_employee_in_each_project.sql
UTF-8
1,871
4.71875
5
[]
no_license
/* Write an SQL query that reports the most experienced employees in each project. In case of a tie, report all employees with the maximum number of experience years. The query result format is in the following example: Project table: +-------------+-------------+ | project_id | employee_id | +-------------+-------------+ | 1 | 1 | | 1 | 2 | | 1 | 3 | | 2 | 1 | | 2 | 4 | +-------------+-------------+ Employee table: +-------------+--------+------------------+ | employee_id | name | experience_years | +-------------+--------+------------------+ | 1 | Khaled | 3 | | 2 | Ali | 2 | | 3 | John | 3 | | 4 | Doe | 2 | +-------------+--------+------------------+ Result table: +-------------+---------------+ | project_id | employee_id | +-------------+---------------+ | 1 | 1 | | 1 | 3 | | 2 | 1 | +-------------+---------------+ Both employees with id 1 and 3 have the most experience among the employees of the first project. For the second project, the employee with id 1 has the most experience. */ # Write your MySQL query statement below /* logic for each project, group by, select max(experience_yaers) if same, list both */ SELECT pr.project_id, pr.employee_id FROM Project AS pr, Employee AS em, (SELECT p.project_id, MAX(e.experience_years) AS max_years FROM Project AS p, Employee AS e WHERE p.employee_id = e.employee_id GROUP BY p.project_id) AS ex WHERE pr.project_id = ex.project_id AND pr.employee_id = em.employee_id AND em.experience_years = ex.max_years;
true
1164bc5bdde46a7b8d6b4b6db50772860e5ea7b8
SQL
gromniki/zernov-course-modx
/db/dbstructure/modx_lexicon_entries.sql
UTF-8
1,294
3.234375
3
[]
no_license
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `modx_lexicon_entries`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `modx_lexicon_entries` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `value` text NOT NULL, `topic` varchar(255) NOT NULL DEFAULT 'default', `namespace` varchar(40) NOT NULL DEFAULT 'core', `language` varchar(20) NOT NULL DEFAULT 'en', `createdon` datetime DEFAULT NULL, `editedon` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `topic` (`topic`), KEY `namespace` (`namespace`), KEY `language` (`language`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
true
1edd66f5d85a3bad35b7b37c2beff06923d3f13c
SQL
LukaszZachariasz/OracleDataBaseProject
/sql/G/1SQL.sql
UTF-8
1,700
3.390625
3
[ "MIT" ]
permissive
-------------------------------------------------------------------------------- ------- 1 - ZAPYTANIE WYSWIETLA INFORMACJE O GOLACH MECZU O PODANYM ID --------- -------------------------------------------------------------------------------- SELECT ID_MECZU, DATA_MECZU, CZAS_MECZU, (SELECT KLUB.NAZWA FROM DRUZYNA join klub on KLUB.ID_KLUBU = DRUZYNA.KLUB_ID_KLUBU WHERE MECZ.DRUZYNA_ID_DRUZYNY_1 = DRUZYNA.ID_DRUZYNY ) as KLUB_1, (SELECT KLUB.NAZWA FROM DRUZYNA join klub on KLUB.ID_KLUBU = DRUZYNA.KLUB_ID_KLUBU WHERE MECZ.DRUZYNA_ID_DRUZYNY_2 = DRUZYNA.ID_DRUZYNY ) as KLUB_2, (SELECT STADION.NAZWA FROM STADION WHERE MECZ.STADION_ID_STADIONU = STADION.ID_STADIONU) as STADION, (SELECT STADION.LOKALIZACJA FROM STADION WHERE MECZ.STADION_ID_STADIONU = STADION.ID_STADIONU) as LOKALIZACJA FROM MECZ; SELECT ZDARZENIE.CZAS, OSOBA.NAZWISKO AS NAZWISKO_ZAWODNIKA, OSOBA.IMIE AS IMIE_ZAWODNIKA FROM ZDARZENIE JOIN ZAWODNIK_MECZ ON ZDARZENIE.ZAWODNIK_1_ID_OSOBY = ZAWODNIK_MECZ.ZAWODNIK_ID_OSOBY AND ZDARZENIE.MECZ_ID_MECZU = ZAWODNIK_MECZ.MECZ_ID_MECZU JOIN DRUZYNA ON DRUZYNA.ID_DRUZYNY = ZAWODNIK_MECZ.DRUZYNA_ID_DRUZYNY JOIN KLUB ON KLUB.ID_KLUBU = DRUZYNA.KLUB_ID_KLUBU JOIN OSOBA ON OSOBA.ID_OSOBY = ZDARZENIE.ZAWODNIK_1_ID_OSOBY WHERE ZDARZENIE.MECZ_ID_MECZU = &Podaj_Id_Meczu AND ZDARZENIE.TYP_ZDARZENIA_ID_TYPU = 4000 GROUP BY KLUB.NAZWA, ZDARZENIE.TYP_ZDARZENIA_ID_TYPU, OSOBA.IMIE, OSOBA.NAZWISKO, ZDARZENIE.CZAS ORDER BY KLUB.NAZWA; -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
true
c9939c91a9b691960a3442e0b58de09412180a8b
SQL
m-shayanshafi/DPERS-Extension
/Sqls/domaintopics20160215.sql
UTF-8
26,690
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 15, 2016 at 12:17 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `designpatternrepo` -- -- -------------------------------------------------------- -- -- Table structure for table `domaintopics` -- CREATE TABLE IF NOT EXISTS `domaintopics` ( `topicID` int(100) NOT NULL, `projectID` int(200) NOT NULL, `filePath` varchar(100) NOT NULL, `topics` text NOT NULL, `topicWeightage` int(100) NOT NULL, `probability` double DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=270 DEFAULT CHARSET=latin1; -- -- Dumping data for table `domaintopics` -- INSERT INTO `domaintopics` (`topicID`, `projectID`, `filePath`, `topics`, `topicWeightage`, `probability`) VALUES (1, 1, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'state', 27, 0), (2, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'multithread', 3, 0), (3, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'instanc', 5, 0), (4, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'check', 6, 0), (5, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'lazi', 16, 0), (6, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'support', 2, 0), (7, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'thread', 2, 0), (8, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'multithread', 2, 0), (9, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'eager', 5, 0), (10, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'ifsc', 5, 0), (11, 2, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\SingletonPattern', 'singleton', 32, 0), (12, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'check', 8, 0), (13, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'languag', 28, 0), (14, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'thesauru', 83, 0), (15, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'singleton', 150, 0), (16, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'configur', 12, 0), (17, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'interrupt', 14, 0), (18, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'edit', 119, 0), (19, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'detect', 3, 0), (20, 3, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MultilingualWordEditor', 'checker', 39, 0), (21, 4, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\FactoryPattern2', 'logger', 28, 0), (22, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'ifrequest', 4, 0), (23, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'land', 5, 0), (24, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'simul', 8, 0), (25, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'radiat', 8, 0), (26, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'radiat', 3, 0), (27, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'specimen', 3, 0), (28, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'oper', 14, 0), (29, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'rover', 93, 0), (30, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'statist', 4, 0), (31, 5, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\MissionCuriosity', 'mainarg', 3, 0), (32, 6, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DecoratorPattern', 'room', 37, 0), (33, 8, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\CommandPattern', 'command', 15, 0), (34, 9, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\CompositePattern', 'salari', 22, 0), (35, 9, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\CompositePattern', 'total', 4, 0), (36, 9, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\CompositePattern', 'print', 5, 0), (37, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'method', 735, 0), (38, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'list', 633, 0), (39, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'list', 719, 0), (40, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'method', 650, 0), (41, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'object', 679, 0), (42, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'list', 659, 0), (43, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'object', 724, 0), (44, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'method', 690, 0), (45, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'method', 696, 0), (46, 12, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DPD', 'method', 683, 0), (47, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'row', 11, 0), (48, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'actual', 6, 0), (49, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'append', 5, 0), (50, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'algorithm', 6, 0), (51, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'minimum', 8, 0), (52, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'chooser', 5, 0), (53, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'label', 13, 0), (54, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'object', 789, 0), (55, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'method', 757, 0), (56, 13, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\StatePattern', 'filter', 6, 0), (57, 14, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\DecoratorPattern', 'room', 37, 0), (58, 15, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\CommandPattern', 'command', 15, 0), (59, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'dist', 3, 0), (60, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'removeknight', 1, 0), (61, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 124, 0), (62, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'doingthi', 6, 0), (63, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'left', 8, 0), (64, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'stand', 11, 0), (65, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'affin', 10, 0), (66, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'interrupt', 3, 0), (67, 16, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifdirect', 9, 0), (68, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'heightnul', 2, 0), (69, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'damag', 3, 0), (70, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'interrupt', 5, 0), (71, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'distancethi', 2, 0), (72, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'paint', 7, 0), (73, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'affin', 11, 0), (74, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'arrow', 4, 0), (75, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'damag', 5, 0), (76, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'attackabletru', 1, 0), (77, 17, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 126, 0), (78, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'bound', 14, 0), (79, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'shoot', 5, 0), (80, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifc', 7, 0), (81, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'time', 4, 0), (82, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'time', 9, 0), (83, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'containsitem', 1, 0), (84, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'transform', 2, 0), (85, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'frame', 13, 0), (86, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'swing', 3, 0), (87, 19, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 125, 0), (88, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifdirect', 2, 0), (89, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'stack', 2, 0), (90, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'charact', 9, 0), (91, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'whilec', 3, 0), (92, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'containsitem', 1, 0), (93, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 127, 0), (94, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'link', 4, 0), (95, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'y-c', 2, 0), (96, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'vthi', 5, 0), (97, 20, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifc', 2, 0), (98, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'swing', 9, 0), (99, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifi', 5, 0), (100, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'system', 5, 0), (101, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'transformnew', 5, 0), (102, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'trysleepc', 3, 0), (103, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifthi', 3, 0), (104, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'imagec', 2, 0), (105, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 123, 0), (106, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'dist', 35, 0), (107, 21, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'health', 6, 0), (108, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'trace', 2, 0), (109, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifi', 3, 0), (110, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'initi', 12, 0), (111, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'heightnul', 6, 0), (112, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'link', 10, 0), (113, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 127, 0), (114, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'direct', 3, 0), (115, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'distanc', 24, 0), (116, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'shape', 7, 0), (117, 22, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifdirect', 7, 0), (118, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'stack', 5, 0), (119, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'boss', 7, 0), (120, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'font', 12, 0), (121, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'bound', 27, 0), (122, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'sourc', 6, 0), (123, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'chest', 5, 0), (124, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'rand', 6, 0), (125, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'set', 99, 0), (126, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'arrai', 4, 0), (127, 23, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'size', 8, 0), (128, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'game', 98, 0), (129, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'paint', 2, 0), (130, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'male', 7, 0), (131, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'run', 4, 0), (132, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'boss', 7, 0), (133, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'set', 3, 0), (134, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'color', 3, 0), (135, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'ambient', 5, 0), (136, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'mod', 2, 0), (137, 24, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'panel', 14, 0), (138, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'set', 102, 0), (139, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'dynam', 8, 0), (140, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'hardcor', 1, 0), (141, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'size', 8, 0), (142, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'geti', 14, 0), (143, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'imagemain', 1, 0), (144, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'holder', 5, 0), (145, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'enemi', 7, 0), (146, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'addnight', 1, 0), (147, 25, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'health', 8, 0), (148, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'group', 1, 0), (149, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'zombi', 6, 0), (150, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'set', 102, 0), (151, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'mob', 6, 0), (152, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'score', 25, 0), (153, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'frame', 4, 0), (154, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'background', 2, 0), (155, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'group', 3, 0), (156, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'system', 7, 0), (157, 26, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'visibletru', 7, 0), (158, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'swing', 6, 0), (159, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'attack', 6, 0), (160, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'transformnew', 2, 0), (161, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'color', 7, 0), (162, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'initi', 9, 0), (163, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'distanc', 11, 0), (164, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifi', 5, 0), (165, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'acquir', 2, 0), (166, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'stand', 8, 0), (167, 27, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 124, 0), (168, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'imagethi', 5, 0), (169, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'item', 2, 0), (170, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'forint', 4, 0), (171, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'sleeper', 12, 0), (172, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'pick', 2, 0), (173, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'transform', 10, 0), (174, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'player', 11, 0), (175, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'removei', 2, 0), (176, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'ifc', 3, 0), (177, 28, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\dungeonmaster', 'set', 124, 0), (178, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'system', 3, 0), (179, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'score', 2, 0), (180, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'score', 15, 0), (181, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'time', 4, 0), (182, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'game', 99, 0), (183, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'god', 4, 0), (184, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'updat', 2, 0), (185, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'print', 9, 0), (186, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'addhardcor', 2, 0), (187, 29, 'C:\\Users\\Zohaa Qamar\\Desktop\\For DP and Mallet\\hallway-rush\\trunk', 'vel', 22, 0), (188, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 96, 0), (189, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'observ', 15, 0), (190, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'fwd', 5, 0), (191, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'analyz', 2, 0), (192, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'pictur', 4, 0), (193, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'move', 4, 0), (194, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'obstacl', 6, 0), (195, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'record', 2, 0), (196, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'sleep', 16, 0), (197, 31, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'analysi', 6, 0), (198, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'method', 6, 0), (199, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'softwar', 8, 0), (200, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'oper', 10, 0), (201, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'statu', 9, 0), (202, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'successfulli', 2, 0), (203, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rem', 11, 0), (204, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'input', 6, 0), (205, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'detect', 3, 0), (206, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'humid', 3, 0), (207, 32, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 93, 0), (208, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'input', 2, 0), (209, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rout', 1, 0), (210, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'back', 2, 0), (211, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 98, 0), (212, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'regist', 10, 0), (213, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'descript', 23, 0), (214, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rai', 7, 0), (215, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'sampl', 9, 0), (216, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'statu', 5, 0), (217, 33, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'statu', 5, 0), (218, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'explor', 1, 0), (219, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'fly', 5, 0), (220, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'obstacl', 13, 0), (221, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'overrid', 2, 0), (222, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'updat', 13, 0), (223, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'command', 3, 0), (224, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'detect', 5, 0), (225, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'forward', 5, 0), (226, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'statu', 2, 0), (227, 34, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 97, 0), (228, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'chain', 3, 0), (229, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'base', 3, 0), (230, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'detect', 4, 0), (231, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'observ', 2, 0), (232, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'backward', 7, 0), (233, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'remot', 13, 0), (234, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'left', 8, 0), (235, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'input', 10, 0), (236, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 97, 0), (237, 35, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'sensor', 9, 0), (238, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'command', 9, 0), (239, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'observ', 10, 0), (240, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'humid', 8, 0), (241, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'pressur', 5, 0), (242, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 94, 0), (243, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'regist', 8, 0), (244, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'control', 3, 0), (245, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'instal', 3, 0), (246, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 3, 0), (247, 36, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'subject', 3, 0), (248, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 66, 0), (249, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'behavior', 27, 0), (250, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'execut', 7, 0), (251, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rover', 29, 0), (252, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'analysi', 18, 0), (253, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'oper', 16, 0), (254, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'analysi', 40, 0), (255, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'updat', 15, 0), (256, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'command', 27, 0), (257, 52, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'sampl', 10, 0), (258, 0, '', '', 0, 0), (259, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'analysi', 64, 0.192), (260, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'analysi', 64, 0.192), (261, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'observ', 42, 0.192), (262, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'mar', 20, 0.192), (263, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'updat', 15, 0.192), (264, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'sensor', 13, 0.192), (265, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'backward', 9, 0.192), (266, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'radiat', 8, 0.192), (267, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'pressur', 8, 0.192), (268, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'rand', 5, 0.192), (269, 58, 'C:\\Users\\Zohaa Qamar\\Desktop\\Java Workspace\\DPA2', 'overrid', 4, 0.192); -- -- Indexes for dumped tables -- -- -- Indexes for table `domaintopics` -- ALTER TABLE `domaintopics` ADD PRIMARY KEY (`topicID`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `domaintopics` -- ALTER TABLE `domaintopics` MODIFY `topicID` int(100) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=270; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
90f2b813648cadec8dd9d11597d20c122268466a
SQL
EvgeniyDanisevich/job4j_dreamjob
/db/schema.sql
UTF-8
435
2.78125
3
[]
no_license
CREATE TABLE post ( id SERIAL PRIMARY KEY, name TEXT, description TEXT ); CREATE TABLE candidate ( id SERIAL PRIMARY KEY, name TEXT, photo TEXT ); CREATE TABLE users ( id SERIAL PRIMARY KEY, name TEXT, email TEXT not null unique, password TEXT ); CREATE TABLE city ( id SERIAL PRIMARY KEY, name TEXT ); insert into city(name) values ('Moscow'); insert into city(name) values ('Spb');
true
60d2929f2c8f49803450f33ce6df9babdc992c21
SQL
Mywaying/sdc
/sdc/deal_info_trans/script/deal_info.sql
UTF-8
3,060
3.890625
4
[]
no_license
use ods; drop table if exists odstmp_bpms_biz_deal_info_common; CREATE TABLE if not exists ods.odstmp_bpms_biz_deal_info_common ( id STRING COMMENT 'ID', apply_no STRING COMMENT '订单编号', house_no STRING COMMENT '房产信息编号关联房产信息', deal_no STRING COMMENT '交易合同编号', trading_price DOUBLE COMMENT '成交价(元)', earnest_money DOUBLE COMMENT '交易定金(元)', first_payment_paid DOUBLE COMMENT '已付首付款(元)', first_payment_unpaid DOUBLE COMMENT '未付首付款(元)', handing_room_deposit DOUBLE COMMENT '交房押金(元)', remark STRING COMMENT '备注', actual_trading_price DOUBLE COMMENT '实际成交价', create_user_id STRING COMMENT '创建人id', update_user_id STRING COMMENT '更新人id', create_time timestamp COMMENT '记录创建时间', update_time timestamp COMMENT '记录更新时间', rev bigint comment '版本号', delete_flag STRING COMMENT '记录删除标识(1:删除;0:有效记录)', down_payment DOUBLE COMMENT '首付款金额', transfer_price DOUBLE COMMENT '过户(网签)价格', rn bigint ) STORED AS parquet; insert overwrite table odstmp_bpms_biz_deal_info_common select T.*, ROW_NUMBER() OVER(PARTITION BY apply_no ORDER BY create_time desc) rn from ( SELECT a.id, a.apply_no, a.house_no, a.deal_no, a.trading_price, a.earnest_money, a.first_payment_paid, a.first_payment_unpaid, a.handing_room_deposit, a.remark, a.actual_trading_price, a.create_user_id, a.update_user_id, a.create_time, a.update_time, a.rev, a.delete_flag, a.down_payment, a.transfer_price FROM ( select * from ods_bpms_biz_deal_info where apply_no<>'' and apply_no is not null ) a union all SELECT a1.id, c1.apply_no, a1.house_no, a1.deal_no, a1.trading_price, a1.earnest_money, a1.first_payment_paid, a1.first_payment_unpaid, a1.handing_room_deposit, a1.remark, a1.actual_trading_price, a1.create_user_id, a1.update_user_id, a1.create_time, a1.update_time, a1.rev, a1.delete_flag, a1.down_payment, a1.transfer_price FROM ( select * from ods_bpms_biz_deal_info where (apply_no<>'' and apply_no is not null) and(house_no<>'' and house_no is not null ) ) a1 LEFT JOIN ( select apply_no, house_no from ods_bpms_biz_apply_order where house_no <> '' AND house_no IS NOT NULL ) c1 ON c1.house_no = a1.house_no union all select b.id, c.apply_no apply_no, b.house_no, b.deal_no, b.trading_price, b.earnest_money, b.first_payment_paid, b.first_payment_unpaid, b.handing_room_deposit, b.remark, b.actual_trading_price, b.create_user_id, b.update_user_id, b.create_time, b.update_time, b.rev, b.delete_flag, b.down_payment, b.transfer_price from ( SELECT * FROM ods_bpms_biz_deal_info WHERE (house_no <> '' AND house_no IS NOT NULL ) and (apply_no ='' or apply_no is null ) ) b LEFT JOIN ( select apply_no, house_no from ods_bpms_biz_apply_order where house_no <> '' AND house_no IS NOT NULL ) c ON c.house_no = b.house_no )T; drop table if exists ods_bpms_biz_deal_info_common; ALTER TABLE odstmp_bpms_biz_deal_info_common RENAME TO ods_bpms_biz_deal_info_common;
true
eac3c7537e2cd313708727ca1c2d668f6820e442
SQL
jessicacordeiro/Aula-Generation-II
/Exercicios de MySQL I/exercicio1.sql
UTF-8
1,456
3.453125
3
[]
no_license
-- create database db_rh; USE db_rh; Create table tb_funcionarios( id bigint(6) auto_increment, Nome varchar(20) not null, CPF bigint(11) not null, Cargo varchar(20) not null, Salario int not null, primary key (id) ); -- SELECT * from tb_funcionarios -- INSERT into tb_funcionarios(Nome, CPF, Cargo, Salario) Values ("Jéssica Cordeiro", 41587525618, "Desenvolvedora", 3500.0) -- INSERT into tb_funcionarios(Nome, CPF, Cargo, Salario) Values ("Ana Maria Jr.", 41666678919, "UX", 3100.0) -- INSERT into tb_funcionarios(Nome, CPF, Cargo, Salario) Values ("Silvio Machado", 11569814817, "Coordenador", 10000.0) -- INSERT into tb_funcionarios(Nome, CPF, Cargo, Salario) Values ("Jaqueline Alexandre", 66588569914, "Administradora", 5600.0) -- INSERT into tb_funcionarios(Nome, CPF, Cargo, Salario) Values ("Victor Martins", 17825569718, "Desenvolvedor", 3500.0) -- select * from tb_funcionarios -- UPDATE db_rh.tb_funcionarios -- SET Nome = Sergio -- WHERE id_funcionarios = 2; -- SELECT * from tb_funcionarios -- UPDATE tb_funcionarios SET Nome = "Sergio Silva", CPF = 41587796217 -- WHERE id = 2; -- SELECT * from tb_funcionarios -- UPDATE tb_funcionarios SET Cargo = "Desenvolvedor" -- WHERE id = 2 -- SELECT * from tb_funcionarios -- SELECT * from tb_funcionarios WHERE salario > 2000 -- SELECT * from tb_funcionarios WHERE salario < 2000 -- SELECT * from tb_funcionarios -- UPDATE tb_funcionarios SET Salario = 9600 -- WHERE id = 4 SELECT * from tb_funcionarios
true
904dad9021bc0278ea0712169fc60959d30f6d3d
SQL
miky82/PuntoVenta
/HacerBasesDeDatos/Script_Crear_Tablas.sql
UTF-8
4,544
3.390625
3
[]
no_license
CREATE TABLE Persona( Cedula char(14) not null, Tipo varchar(40), primary key (Cedula) ); CREATE TABLE Cliente ( Cedula char(14) not null, Descuento int DEFAULT 0, Exonerado boolean, primary key (Cedula), foreign key (Cedula) references Persona on delete cascade ); CREATE TABLE login ( username VARCHAR(25) NOT NULL, contrasena VARCHAR(25) NOT NULL, puesto VARCHAR(25) NOT NULL, foreign key (username) references Persona, PRIMARY KEY(username) ); CREATE TABLE Fisico( Cedula char(14) not null, NombreP varchar(30) not null, Apellido1 varchar(30) not null, Apellido2 varchar(30), Grado_Aca varchar(30), primary key (Cedula), foreign key (Cedula) references Persona on delete cascade ); CREATE TABLE Juridico( Cedula char(14) not null, Nombre varchar(30) not null, primary key (Cedula), foreign key (Cedula) references Persona on delete cascade ); CREATE TABLE Direccion( Cedula char(14) not null, Provincia varchar(30), Canton varchar(30), Distrito varchar(30) not null, Senas varchar(100), primary key (Cedula, Provincia, Canton, Distrito, Senas), foreign key (Cedula) references Persona on delete cascade ); CREATE TABLE Telefono( Cedula char(14) not null, Num_Tel char(14) not null, Provincia varchar(30), Canton varchar(30), Distrito varchar(30) not null, Senas varchar(100), --ID_TEL serial, primary key (Cedula, Num_Tel, Provincia, Canton, Distrito, Senas), foreign key (Cedula, Provincia, Canton, Distrito, Senas) references Direccion on delete cascade ); CREATE TABLE Producto( Cod char(30) not null, Descripcion varchar(30) not null, Minimo int, Existencia int, Costo money, Precio1 money, Precio2 money, Precio3 money, Descuento int, Impuesto int, Exento boolean, Ubicacion varchar(30), Medida varchar(10), primary key (Cod) ); CREATE TABLE Empleado( Cedula char(14) not null, Fecha_Ingreso date, Comision int DEFAULT 0, Tipo varchar(30), Puesto varchar(20), Sucursal varchar(20), Email varchar(20), primary key (Cedula), foreign key (Cedula) references Persona on delete cascade ); CREATE TABLE Caja( Num_Caja char(14) not null, Saldo_actual money, Fecha date, Hora time, tiempo timestamp, primary key (Num_Caja, Saldo_actual, Fecha, Hora) ); CREATE TABLE Cierre_Caja( Num_Caja char(14) not null, Fecha_Cierre date, Hora_Cierre time, Cedula char(14), Saldo money, tiempo timestamp, primary key (Num_Caja, Fecha_Cierre, Hora_Cierre, Cedula, Saldo), foreign key (Cedula) references empleado ); CREATE TABLE Apertura_Caja( Num_Caja char(14) not null, Fecha_Aper date, Hora_Apertur time, Cedula char(14), Saldo money, tiempo timestamp, primary key (Num_Caja, Fecha_Aper, Hora_Apertur, Cedula, Saldo), foreign key (Cedula) references empleado ); CREATE TABLE Facturas( Num_Factura serial not null, Fecha date, Total money, Num_Caja char(14), Cedula_Cliente char(14), Cedula_Cajero char(14), primary key (Num_Factura), foreign key (Cedula_Cajero) references LogIn(username) ); CREATE TABLE Facturados( Num_Factura int not null, Cod char(30) not null, Cantidad int not null, Precio money not null, primary key (Num_Factura, Cod), foreign key (Num_Factura) references Facturas, foreign key (Cod) references Producto ); CREATE TABLE Compra( ID_Solicitud serial not null, CedulaEmpleado char(14) not null, Total money, Fecha date not null, primary key (ID_Solicitud), foreign key (CedulaEmpleado) references Empleado (cedula) ); CREATE TABLE Solicitud( ID_Solicitud int not null, Cod char(30) not null, CedulaVen char(14) not null, CedulaPro char(14) not null, Cantidad int, Precio money, primary key (ID_Solicitud), foreign key (ID_Solicitud) references compra, foreign key (CedulaVen) references Empleado (cedula), --foreign key (CedulaPro) references Proveedor (cedula) ); CREATE TABLE Proveedor( Cedula char(14) not null, Nombre varchar(15), Apellido1 varchar(15), Apellido2 varchar(15), Descuento int DEFAULT 0, Email varchar(20), Contacto varchar(15), Fecha_Ingreso date, primary key (Cedula), foreign key (Cedula) references Persona on delete cascade ); CREATE TABLE Lugar( Provincia char(14) not null, Canton varchar(45) not null, Distrito varchar(45) not null, primary key (Canton, Distrito) ); CREATE TABLE Sucursales( Nombre char(20) not null, Provincia char(14) not null, Canton varchar(45) not null, Distrito varchar(45) not null, Senas varchar(100), Gerente varchar(20), PRIMARY KEY (Nombre) ); CREATE TABLE Puestos( Puesto varchar(15) not NULL PRIMARY KEY (Puesto) );
true
e49b759809276bc3663c200f3c5ccc27d6a9d25d
SQL
phpMv/ubiquity-demos
/auth-acl-project/db/acl-guide.sql
UTF-8
1,698
3.25
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 20 avr. 2022 à 02:59 -- Version du serveur : 10.4.22-MariaDB -- Version de PHP : 8.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `acl-guide` -- CREATE DATABASE IF NOT EXISTS `acl-guide` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE `acl-guide`; -- -------------------------------------------------------- -- -- Structure de la table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `login` varchar(20) NOT NULL, `password` varchar(60) NOT NULL, `role` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Déchargement des données de la table `user` -- INSERT INTO `user` (`id`, `login`, `password`, `role`) VALUES (1, 'mario', '0000', '@USER'), (2, 'luigi', '0000', '@ADMIN'), (3, 'waluigi', '0000', '@INVITED'); -- -- Index pour les tables déchargées -- -- -- Index pour la table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables déchargées -- -- -- AUTO_INCREMENT pour la table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
631a38bf79676811f3cc18200f8b65a20427cb5b
SQL
Chrigferr/MP_MODSPACK
/Mods/JFD's The Republic of Carthage (v 4)/JFD_CarthageHannibal_UserSettings.sql
UTF-8
1,731
2.71875
3
[]
no_license
--========================================================================================================================== -- JFD USER SETTINGS --========================================================================================================================== -- JFD_GlobalUserSettings ------------------------------------- CREATE TABLE IF NOT EXISTS JFD_GlobalUserSettings ( Type text default null, Value integer default 1); --========================================================================================================================== -- USER SETTINGS --========================================================================================================================== -- Modular Features that can be toggled on and off and then back on. -------------------------------------------------------------------------- /*CORE SETTINGS --------------- 1 = Enabled (Default) 0 = Disabled */ -------------------------------------------------------------------------- INSERT INTO JFD_GlobalUserSettings (Type, Value) VALUES ('JFD_CIVILIZATIONS_CARTHAGE_UA', 1), -- Enables Dido's new UA. ('JFD_CIVILIZATIONS_CARTHAGE_MERCENARY_UA', 1), -- Enables Hannibal's Mercenaries-exclusive UA. ('JFD_CIVILIZATIONS_CARTHAGE_UB', 1), -- Enables Dido's new UB (disable only if you have a replacement, such as with the CBP). ('JFD_CIVILIZATIONS_CARTHAGE_UU', 1); -- Enables changes to Dido's UU. --========================================================================================================================== --==========================================================================================================================
true
4e20824d9dd392878194cec40f910e8f89457365
SQL
qq1269832742/SpringDemo
/weibo/src/test/resources/weibo.sql
UTF-8
20,580
2.515625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50620 Source Host : localhost:3306 Source Database : weibo Target Server Type : MYSQL Target Server Version : 50620 File Encoding : 65001 Date: 2016-10-24 15:51:05 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for account -- ---------------------------- DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `aid` int(5) NOT NULL AUTO_INCREMENT, `email` varchar(50) DEFAULT NULL, `nick_name` varchar(50) DEFAULT NULL, `password` varchar(50) DEFAULT NULL, `follow` int(11) DEFAULT NULL, `fans` int(11) DEFAULT NULL, `weibo` int(11) DEFAULT NULL, `pic` varchar(100) DEFAULT NULL, PRIMARY KEY (`aid`), UNIQUE KEY `acccount_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account -- ---------------------------- INSERT INTO `account` VALUES ('1', '[email protected]', '张三', '123456', '2', '3', '7', '1.jpg'); INSERT INTO `account` VALUES ('2', '[email protected]', '李四', '123456', '0', '0', '1', '2.jpg'); INSERT INTO `account` VALUES ('3', '[email protected]', '王五', '123456', '0', '0', '2', '3.jpg'); INSERT INTO `account` VALUES ('4', '[email protected]', '马六', '123456', '0', '0', '0', '4.jpg'); INSERT INTO `account` VALUES ('5', 'QQONKUKHLSFXVHIJLHHN', 'EMCKVKDPP', 'XRKYLBH', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('6', 'DDFDVYFQDRLTT', 'PCOHWJGLNDVIEZDG', 'CKZXWFYCE', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('7', 'CHMVBYCORDLENGFNFCS', 'GQNBGQPBQUOMRO', 'BUJBVK', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('8', 'UQQLXLOREPXVYN', 'BKPNMMZXXZEV', 'QPSKLHLW', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('9', 'CXEOAHBZ', 'MBKFCXWURSX', 'HYXQEBRPMQB', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('10', 'YIFGTKMHKI', 'XSVDUKCTAPPFB', 'OGGYYYIUNTVPQVM', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('11', 'IKINMV', 'HVTPALHDSBPADDWQZJBJ', 'QPCAVIEFMG', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('12', 'YHNYCLRETFQALD', 'KLEWRBSFYUADZNRUWUT', 'DOAOKUEGIQ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('13', 'IYQIHE', 'XMVBIPFZSTEYUGTTGSKU', 'FSELQCLPRRMQYTL', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('14', 'ITVDFZL', 'VBLKI', 'STRQYM', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('15', 'IMOHEURBPHE', 'DPRYKTKECMQHBYGG', 'GCJKDHACBYVLGUL', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('16', 'FKYQYSHYHQ', 'VROEWSZLRKQOCX', 'JKJWIM', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('17', 'WSUWVCDUJVURQQDWGT', 'EIURIVJTPCBJL', 'MGUNWVRMBUW', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('18', 'PRFTDMLNHISNJCWQRF', 'HRLNBLXZKH', 'GFOECHZEYACGF', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('19', 'XGCWIPMLCREUHKV', 'MPMHLYRD', 'DSONDSDNFEGFJHRG', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('20', 'RVPBYDECSRSHMBTG', 'UVRTXYLDYWJ', 'SOZCRZPBW', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('21', 'QCXOUIDERIJEBVOFVRS', 'SEYRHUFBVCJFGDEVUTN', 'YQQIHXNQJM', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('22', 'WYIVHBSRDWRIH', 'UIDLSMBGEJCXZEDGTNEG', 'OKEQDWYJLSWLQY', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('23', 'QNPKKKDOT', 'LWIGTQSTSQUTKEDPV', 'TMCOWYRRV', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('24', 'ANHEWIXQ', 'NPHSAKLN', 'OCCGOOH', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('25', 'TPEKAGJZJUEV', 'JZKQVSPEEDHLLO', 'NNNWRS', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('26', 'GFYHDQHEDJOSJNRD', 'URDQHWFGLHHMMLBUSOD', 'LSDYUK', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('27', 'MPUZUDDFGHAQVG', 'QPVMNNTPKPOPR', 'TKCKNMYDSDCQQFC', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('28', 'UZVIROMJVDOAI', 'THVIIWQVX', 'LQLEECAELODOXD', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('29', 'BHKSLDUBPOSBUJ', 'XLKLGMPCWKYST', 'OILWBYMFC', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('30', 'JCVPKOPFIYC', 'RQGJSH', 'JOYEEYVWLTSG', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('31', 'JNOEGIFDGNDDNLP', 'WUWYUUNVEEYSVNNCI', 'UUTUIDQFMXXYM', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('32', 'BOSKDQHLVJYBCA', 'JEHPLKOIO', 'MQFXEDPAHQWPOO', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('33', 'YCKFFXLFBYOEWQ', 'QPACYGVYOHBKGFJU', 'JNZNLX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('34', 'NBQHWKY', 'OPRHVTXMHLX', 'JJOOZFKTAUFD', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('35', 'THCPWBPLJLYT', 'WNFYFYESFGAEMOMPFDQ', 'RRGIMKROISH', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('36', 'KXMJRSUWX', 'IOSUTUU', 'IMRESRJDLN', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('37', 'WBWCUWBI', 'LCJZEWMECBSSGRCNIA', 'BUUJKROWSGZ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('38', 'RBGXVUFRESSCXVRLG', 'OFSELYBBKUI', 'GSWLYTAJYLNTHFNX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('39', 'JROHMOYDKXRWPUOQ', 'FMJDIPGPGDMF', 'KCLXCQXUUJMQ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('40', 'DDRPSCYKR', 'QFLDMJEMTXTJIH', 'YGGIILTVBHLB', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('41', 'PVJFEAF', 'KXQSBP', 'YWWYSVEEIANB', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('42', 'JMITTCDMYJEHEQXYC', 'LUTICDUNR', 'OLIQZN', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('43', 'RCHQARGLQ', 'HUYYRAKCMFYLV', 'FKDYBJS', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('44', 'IFTBLDUEKOIUYNPZ', 'TSYOUKXPVTSQ', 'LVSJHTQNA', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('45', 'SKKAVCAYTTBHGEXDJEU', 'FMQGMK', 'QVRTRSIVRETTXCU', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('46', 'TBEZOGB', 'QXTRJDSVN', 'RRVVQAFCDWKV', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('47', 'UJKXVMQMJYMJJER', 'EXVBYFE', 'VOKMCNCD', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('48', 'SESMVO', 'KRNRUBUNBQNJMJWXQ', 'YNBGJEWCY', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('49', 'DSZMOJROKUFNORN', 'ENCIQNUHADRA', 'JXVVBXDWMCE', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('50', 'FNIIGMVW', 'DLMQVH', 'HUKWWJSYW', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('51', 'LTOENVXSMTNHULMTUR', 'XAWKNXUPTJGBTGJ', 'YGLNMIEUI', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('52', 'KHNOP', 'EMNVNSY', 'RTFBTDPH', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('53', 'HMQGOALQD', 'ISSMLJYGE', 'MPXPQ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('54', 'OUKSESCR', 'FAHXRFQXCRQSSGRQVM', 'FSXMFLX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('55', 'JPODARZKXY', 'CDBVDMH', 'EBTGFHUOK', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('56', 'JFBVABSVTDUDDBJMXX', 'AAIYMSKLPESMTNS', 'DMMTBQAP', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('57', 'RSXRGEP', 'VYOOCNVHGWVSD', 'NVQQBKGEXP', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('58', 'RYBQRPU', 'KOUPUZIKRRKVIHICPQHU', 'YXEVDQHPHN', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('59', 'NMVDYSQB', 'YEVZPWENUFC', 'RCFDHVMJJ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('60', 'LKHLEB', 'LIBLSNQGBGX', 'WSZWDPCTVO', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('61', 'HFHSDNKOBDFPIZXDEYB', 'DEAJORLTI', 'VCPXDYGYJCCCCA', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('62', 'AGRHNNEPVDHWQHMQMK', 'SLZUDK', 'IYQJQFQYIK', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('63', 'NMJMUFVKGTNM', 'KCQGQLIGVXTDIL', 'RVDWVGWSZDNQ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('64', 'VYOUODTMCSYHSKI', 'JNFYXWUHIRYW', 'KXLXUF', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('65', 'NQBDEBCTSB', 'CKWKESKMPTPHD', 'EIUECQNNVBHTE', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('66', 'BBLMZYQB', 'TYNGRSRQRWD', 'FOCRNWWI', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('67', 'TYGOHVXVULVFXGOV', 'OOFQMFVZRBGU', 'WKFTSEXHN', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('68', 'HLRGDSTWREXDDJ', 'ILIYAVCJEDQOM', 'OVMGSDTPOMI', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('69', 'GUKYSKWJ', 'KYCOSRKJWIIJBHI', 'XUQCV', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('70', 'TFBLTVI', 'VOWEVHALCNJCKYPOOQA', 'RRGNYTOYKVYV', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('71', 'LLGXXLKQGYXBL', 'OLMKHJRNS', 'HRGJZZTSQXNPZ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('72', 'PQDYCXBSPVQ', 'FYVLFCEMMLNFW', 'CZNKPDCGXB', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('73', 'MOHMULVMLHXNNPONME', 'SJWDUMGVILCBKGS', 'RCCYZJPHLV', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('74', 'FCKXOIDYWUYPK', 'OKHHDUBLERGDQXFHTJ', 'XUFYYQYKSMDND', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('75', 'PSXJCXYLLTMEIX', 'LYZDPBCMYWVSKMCQR', 'JKJPRGMTX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('76', 'TZBDXHPGNAEIHHHTLNQ', 'XNJDDXWOWHSUOC', 'HEDBEXOHKMW', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('77', 'MRPDBQFRPODTFLS', 'XTQRTENWFGUXDO', 'RLZICSLBGZKX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('78', 'WFSUTNFKAIGJBDJS', 'CQTDEDHPLKTNEVEEVDO', 'HVMWIGCMFAAMQTX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('79', 'AJOYJUDRVUCRH', 'XXDDKVCEYPUXRVXYV', 'GHODDSKYLQ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('80', 'PJYPHOLTZQVJFEPJGVO', 'ELHWSKYHWEOLEDWMHF', 'OWHKMHOAIRU', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('81', 'GLNNBLRIGGUN', 'CMZUMKPNTXNJWULTUQP', 'KYDFJLC', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('82', 'CEKCIYQMVSMQGV', 'YXANWQSJMPD', 'NIUDWKG', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('83', 'TFLTJUJNGUT', 'OFQWTWUYOQIWSVXPCH', 'TCJSVOTONMGINRDV', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('84', 'ZUBINONHVM', 'CCTHZFC', 'TSZKUTPYULGDTD', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('85', 'QCVVQ', 'BQQHGLQDHHCQQS', 'DPDQJDMFF', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('86', 'JBSQIJFVJQDXISO', 'COGGILQUFWKJJBVDPCT', 'AQPTIJVLBT', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('87', 'OAWOOBOMQ', 'KJZFLYKLHEEPSNDHD', 'ARJRNGTSBAOOMF', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('88', 'TEFIHL', 'YIBLUGNDIGBOC', 'RTJRHQWXDM', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('89', 'EIJTGFGSXTRN', 'JUJGUDC', 'RVMPUKFNHFSAFQ', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('90', 'QVXIALRXQBMTG', 'IIZXJBKYWVWPV', 'YBHLKSOJTOF', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('91', 'TVQFJCJETOCWP', 'XIIBOULMVRGPWV', 'KJCEPMVMOUX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('92', 'TMSIC', 'EGPGPAVZGQFOWYRTFDKF', 'PLBTBCRLRC', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('93', 'DNWXGBVJRYWT', 'NPEZVOLT', 'CTJDDNHWUPIE', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('94', 'QJFJJDFT', 'FDNKFUY', 'ZKSVAJWLBTBCCNM', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('95', 'UGNFTGSSBEBYDWEIVJ', 'GMEWCFP', 'LNICXERLEX', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('96', 'DIGCFGVCIDXQSNBUY', 'KFQXENVJLDEKSGQ', 'HZYZFRBXAVCLMPU', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('97', 'DOIIOIXFJF', 'HZEWQOPMIOOXIGFMD', 'MJPPMPDEQN', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('98', 'RZPMXEIQYSZU', 'BRXEVOINVTLYZTI', 'SXDHGNSCH', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('99', 'KGBVYZFJBMPVMFHMV', 'VZQGP', 'JYAPSBVH', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('100', 'EEZBBX', 'GOIFZNQQFNIUJSRL', 'YDZGK', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('102', '[email protected]', '张张张张张三三三三', '123456', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('104', '[email protected]', '张张张张张2三三三三', '123456', '0', '0', '0', '1.jpg'); INSERT INTO `account` VALUES ('106', '[email protected]', 'zs', null, null, null, null, null); INSERT INTO `account` VALUES ('107', '[email protected]', 'ls', null, null, null, null, null); INSERT INTO `account` VALUES ('108', '[email protected]', '1', null, null, null, null, null); INSERT INTO `account` VALUES ('109', '[email protected]', '2', null, null, null, null, null); INSERT INTO `account` VALUES ('110', '[email protected]', '3', null, null, null, null, null); INSERT INTO `account` VALUES ('111', '[email protected]', '4', null, null, null, null, null); INSERT INTO `account` VALUES ('112', '[email protected]', '5', null, null, null, null, null); -- ---------------------------- -- Table structure for comment -- ---------------------------- DROP TABLE IF EXISTS `comment`; CREATE TABLE `comment` ( `cid` int(5) NOT NULL AUTO_INCREMENT, `aid` int(5) DEFAULT NULL, `wid` int(5) DEFAULT NULL, `ccontent` varchar(140) DEFAULT NULL, `ctime` datetime DEFAULT NULL, PRIMARY KEY (`cid`), KEY `FK_account_comment` (`aid`), KEY `FK_weibo_comment` (`wid`), CONSTRAINT `FK_account_comment` FOREIGN KEY (`aid`) REFERENCES `account` (`aid`), CONSTRAINT `FK_weibo_comment` FOREIGN KEY (`wid`) REFERENCES `weibo` (`wid`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of comment -- ---------------------------- INSERT INTO `comment` VALUES ('1', '4', '3', '新修改的评论2', '2016-10-15 14:44:42'); INSERT INTO `comment` VALUES ('2', '4', '3', '新修改的评论343434', '2016-10-15 15:04:11'); INSERT INTO `comment` VALUES ('3', '4', '3', '新修改的评论343434', '2016-10-15 15:04:57'); -- ---------------------------- -- Table structure for follow -- ---------------------------- DROP TABLE IF EXISTS `follow`; CREATE TABLE `follow` ( `fid` int(5) NOT NULL AUTO_INCREMENT, `aid` int(5) DEFAULT NULL, `follow_aid` int(11) DEFAULT NULL, `ftime` datetime DEFAULT NULL, `mutual_concern` tinyint(1) DEFAULT NULL, PRIMARY KEY (`fid`), KEY `FK_account_follow` (`aid`), CONSTRAINT `FK_account_follow` FOREIGN KEY (`aid`) REFERENCES `account` (`aid`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of follow -- ---------------------------- INSERT INTO `follow` VALUES ('1', '1', '2', '2016-07-29 15:36:42', null); INSERT INTO `follow` VALUES ('2', '1', '3', '2016-07-29 15:36:51', null); INSERT INTO `follow` VALUES ('3', '2', '1', '2016-07-29 15:37:02', null); INSERT INTO `follow` VALUES ('4', '2', '4', '2016-07-29 15:37:11', null); INSERT INTO `follow` VALUES ('5', '3', '1', '2016-07-29 15:37:31', null); INSERT INTO `follow` VALUES ('6', '4', '1', '2016-07-29 15:58:13', null); INSERT INTO `follow` VALUES ('7', '4', '2', '2016-07-29 15:58:20', null); INSERT INTO `follow` VALUES ('8', '4', '3', '2016-07-29 15:58:28', null); -- ---------------------------- -- Table structure for liked -- ---------------------------- DROP TABLE IF EXISTS `liked`; CREATE TABLE `liked` ( `aid` int(5) NOT NULL, `wid` int(5) NOT NULL, `ltime` datetime DEFAULT NULL, PRIMARY KEY (`aid`,`wid`), KEY `FK_weibo_liked` (`wid`), CONSTRAINT `FK_account_liked` FOREIGN KEY (`aid`) REFERENCES `account` (`aid`), CONSTRAINT `FK_weibo_liked` FOREIGN KEY (`wid`) REFERENCES `weibo` (`wid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of liked -- ---------------------------- INSERT INTO `liked` VALUES ('1', '1', '2016-08-02 12:10:49'); INSERT INTO `liked` VALUES ('1', '5', '2016-08-02 15:25:23'); INSERT INTO `liked` VALUES ('1', '6', '2016-08-02 15:25:22'); INSERT INTO `liked` VALUES ('1', '8', '2016-08-02 16:09:44'); INSERT INTO `liked` VALUES ('1', '10', '2016-08-05 16:01:48'); INSERT INTO `liked` VALUES ('1', '50214', '2016-08-05 16:01:21'); INSERT INTO `liked` VALUES ('1', '50215', '2016-08-05 16:24:17'); INSERT INTO `liked` VALUES ('2', '2', '2016-08-02 16:44:45'); INSERT INTO `liked` VALUES ('2', '4', '2016-08-02 16:44:44'); INSERT INTO `liked` VALUES ('2', '5', '2016-08-02 15:25:25'); INSERT INTO `liked` VALUES ('2', '6', '2016-08-05 15:49:31'); INSERT INTO `liked` VALUES ('2', '7', '2016-08-02 16:44:42'); INSERT INTO `liked` VALUES ('2', '8', '2016-08-05 16:02:30'); INSERT INTO `liked` VALUES ('2', '9', '2016-08-02 16:44:40'); INSERT INTO `liked` VALUES ('2', '10', '2016-08-02 16:44:37'); INSERT INTO `liked` VALUES ('2', '11', '2016-08-02 16:44:38'); INSERT INTO `liked` VALUES ('2', '13', '2016-08-05 15:49:24'); INSERT INTO `liked` VALUES ('2', '15', '2016-08-05 15:49:21'); INSERT INTO `liked` VALUES ('2', '50214', '2016-08-05 16:02:34'); INSERT INTO `liked` VALUES ('2', '50215', '2016-08-05 16:02:32'); INSERT INTO `liked` VALUES ('3', '1', '2016-08-05 15:49:53'); INSERT INTO `liked` VALUES ('3', '2', '2016-07-29 15:36:16'); INSERT INTO `liked` VALUES ('3', '3', '2016-08-05 15:50:06'); INSERT INTO `liked` VALUES ('3', '5', '2016-08-05 15:50:06'); INSERT INTO `liked` VALUES ('3', '6', '2016-08-05 15:49:58'); INSERT INTO `liked` VALUES ('3', '7', '2016-08-05 15:49:59'); INSERT INTO `liked` VALUES ('3', '8', '2016-08-05 15:49:56'); INSERT INTO `liked` VALUES ('3', '10', '2016-08-05 15:50:02'); INSERT INTO `liked` VALUES ('3', '12', '2016-08-05 15:50:03'); INSERT INTO `liked` VALUES ('3', '14', '2016-08-05 15:50:04'); INSERT INTO `liked` VALUES ('3', '50215', '2016-08-05 16:02:48'); INSERT INTO `liked` VALUES ('4', '10', '2016-08-05 16:04:46'); INSERT INTO `liked` VALUES ('4', '50214', '2016-08-05 16:04:42'); INSERT INTO `liked` VALUES ('4', '50215', '2016-08-05 16:03:18'); -- ---------------------------- -- Table structure for weibo -- ---------------------------- DROP TABLE IF EXISTS `weibo`; CREATE TABLE `weibo` ( `wid` int(5) NOT NULL AUTO_INCREMENT, `aid` int(5) DEFAULT NULL, `wcontent` varchar(140) DEFAULT NULL, `last_update_time` datetime DEFAULT NULL, `service` varchar(100) DEFAULT NULL, `liked` int(11) DEFAULT NULL, `comment` int(11) DEFAULT NULL, PRIMARY KEY (`wid`), KEY `FK_account_weibo` (`aid`), CONSTRAINT `FK_account_weibo` FOREIGN KEY (`aid`) REFERENCES `account` (`aid`) ) ENGINE=InnoDB AUTO_INCREMENT=50216 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of weibo -- ---------------------------- INSERT INTO `weibo` VALUES ('1', '1', '大王叫我来巡山', '2016-07-29 15:32:10', 'iPhone 6s', '2', '0'); INSERT INTO `weibo` VALUES ('2', '2', '我是来揍张三的', '2016-07-29 15:32:59', 'weibo 网页', '2', '0'); INSERT INTO `weibo` VALUES ('3', '3', '天王盖地虎', '2016-07-29 15:33:56', '华为 P9', '1', '1'); INSERT INTO `weibo` VALUES ('4', '4', '我是马六,刚开通微博', '2016-07-29 15:49:03', 'weibo 网页', '1', '0'); INSERT INTO `weibo` VALUES ('5', '1', 'test', '2016-08-02 10:50:24', 'weibo 网页', '3', '0'); INSERT INTO `weibo` VALUES ('6', '1', 'test2', '2016-08-02 08:53:47', 'weibo 网页', '3', '0'); INSERT INTO `weibo` VALUES ('7', '1', '测试set修改', '2016-08-02 16:06:55', 'iPhone 7 Plus', '2', '0'); INSERT INTO `weibo` VALUES ('8', '1', 'aad', '2016-08-02 16:08:05', 'weibo网页', '3', '0'); INSERT INTO `weibo` VALUES ('9', '1', '张三发微博', '2016-08-02 16:09:16', 'weibo网页', '1', '0'); INSERT INTO `weibo` VALUES ('10', '1', '张三发微博2', '2016-08-02 16:10:21', 'weibo网页', '4', '0'); INSERT INTO `weibo` VALUES ('11', '2', '李四发一条', '2016-08-02 16:12:26', 'weibo网页', '1', '0'); INSERT INTO `weibo` VALUES ('12', '1', 'VAOXHUGAOFMHVUUAVHTPKVBDSGKYXODDUUMGXKRFU GFRVWU', '2016-08-05 13:38:01', 'ZYIFWTCYUJKNSQRTYRMN', '1', '0'); INSERT INTO `weibo` VALUES ('13', '2', 'RVVHSXPSUERATJLHTUNTFSLCIBQNWPLPQ', '2016-08-05 13:38:01', 'YBOIBUTIDPGFS', '1', '0'); INSERT INTO `weibo` VALUES ('14', '3', 'TPFJDDHMYXRYEBWYKIWYRMLUIKJCPFPMPLOOPQNDCHXNZ NHN QM', '2016-08-05 13:38:01', 'ITXPHFQXSSWYCAYWQBK', '1', '0'); INSERT INTO `weibo` VALUES ('15', '4', 'XYJXAGJJOPAZ', '2016-08-05 13:38:01', 'MMSLNLGQXJAGHLATQW', '1', '0'); INSERT INTO `weibo` VALUES ('50212', '3', 's', '2016-08-05 15:50:52', 'weibo网页', '0', '0'); INSERT INTO `weibo` VALUES ('50213', '3', 'gfgfg', '2016-08-05 15:53:53', 'weibo网页', '0', '0'); INSERT INTO `weibo` VALUES ('50214', '1', 'sdf', '2016-08-05 15:57:47', 'weibo网页', '3', '0'); INSERT INTO `weibo` VALUES ('50215', '1', 'sdfsdfd', '2016-08-05 16:00:50', 'weibo网页', '4', '0');
true
3e0d9a2bb9d14cff5c08f3e37be0cd251d738a40
SQL
NguyenHoangHiep28/PHP
/PracticeTest/booksTable.sql
UTF-8
2,693
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2021 at 02:04 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `fpt_aptech` -- -- -------------------------------------------------------- -- -- Table structure for table `books` -- DROP DATABASE IF EXISTS `fpt-aptech`; CREATE DATABASE `fpt-aptech`; DROP TABLE IF EXISTS `books`; CREATE TABLE `books` ( `bookid` int(11) NOT NULL, `authorid` int(11) NOT NULL DEFAULT 0, `title` varchar(55) NOT NULL, `ISBN` varchar(25) NOT NULL, `pub_year` smallint(6) NOT NULL DEFAULT 0, `available` tinyint(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `books` -- INSERT INTO `books` (`bookid`, `authorid`, `title`, `ISBN`, `pub_year`, `available`) VALUES (1, 1, 'Cross-Platform Development with Qt 6 and Modern C++', '9781800204584', 2021, 1), (2, 2, 'Expert Python Programming - Fourth Edition', '9781801071109', 2021, 1), (3, 3, '40 Algorithms Every Programmer Should Know', '9781789801217', 2020, 1), (4, 2, 'Node.js Design Patterns - Third Edition', '9781839214110', 2020, 1), (5, 1, 'Python Object-Oriented Programming - Fourth Edition', '9781801077262', 2021, 1), (6, 4, 'Software Architecture with C++', '9781838554590', 2021, 0), (7, 5, 'Linux System Programming Techniques', '9781789951288', 2021, 1), (8, 2, 'Polished Ruby Programming', '9781801072724', 2021, 0), (9, 1, 'Mastering TypeScript - Fourth Edition', '9781800564732', 2021, 1), (10, 5, 'Clean Code in Python - Second Edition', '9781800560215', 2021, 1), (11, 3, 'Microsoft Power Apps Cookbook', '9781800569553', 2021, 1), (12, 2, 'PHP 7 Data Structures and Algorithms', '9781786463890', 2017, 0), (13, 4, 'Object Oriented PHP and MVC', '9781789533149', 2018, 1), (14, 3, 'Beginning PHP', '9781789535686', 2018, 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `books` -- ALTER TABLE `books` ADD PRIMARY KEY (`bookid`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `books` -- ALTER TABLE `books` MODIFY `bookid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
ab08b1d6d05c9c424eef1c456072a9eca8ab4b4a
SQL
ascottcrawford/Database_Exercises
/where_exercises.sql
UTF-8
705
2.90625
3
[]
no_license
SELECT * FROM employees WHERE first_name = 'Irena' OR first_name = 'Vidya' OR first_name = 'Maya'; SELECT * FROM employees WHERE gender = 'm' AND first_name = 'Irena' OR gender = 'm' AND first_name = 'Vidya' OR gender = 'm' AND first_name = 'Maya'; SELECT * FROM employees WHERE last_name LIKE 'E%'; SELECT * FROM employees WHERE last_name LIKE 'E%' OR last_name LIKE '%e'; SELECT * FROM employees WHERE last_name LIKE 'E%' AND last_name LIKE '%e'; SELECT * FROM employees WHERE hire_date BETWEEN '1990-01-01' AND '1999-12-31' AND birth_date Like '%-12-25'; SELECT * FROM employees WHERE birth_date LIKE '%-12-25'; SELECT * FROM employees WHERE last_name LIKE '%q%' AND NOT last_name LIKE '%qu%';
true
6f088d369759beaae5e35ba6a86c9084af49cafd
SQL
matbaek/Ex26-DB-mapning
/Payroll.sql
UTF-8
1,176
3.484375
3
[]
no_license
USE C_DB10_2018; CREATE TABLE Employee ( EmployeeID INT PRIMARY KEY IDENTITY(1, 1), Name nVarChar(100) NOT NULL, Address nVarChar(100) NOT NULL, Zipcode INT NOT NULL, Department nVarChar(100) NOT NULL, TelephoneNo nVarChar(100) NOT NULL ) CREATE TABLE HourlyPaid ( EmployeeID INT PRIMARY KEY REFERENCES Employee(EmployeeID), SalaryForTheYear FLOAT NOT NULL, TaxForTheYear FLOAT NOT NULL, WeeklyDeduction nVarChar(100) NOT NULL, TaxPercentage nVarChar(100) NOT NULL ) CREATE TABLE MonthlyPaid ( EmployeeID INT PRIMARY KEY REFERENCES Employee(EmployeeID), SalaryForTheYear FLOAT NOT NULL, TaxForTheYear FLOAT NOT NULL, WeeklyDeduction nVarChar(100) NOT NULL, TaxPercentage nVarChar(100) NOT NULL ) CREATE TABLE TimeSheet ( TimeSheetID INT PRIMARY KEY IDENTITY(1, 1), Hours FLOAT NOT NULL, HourlyPaidID INT FOREIGN KEY REFERENCES HourlyPaid(EmployeeID) ) CREATE TABLE Task ( TaskID INT PRIMARY KEY IDENTITY(1, 1), Type nVarChar(100) NOT NULL, Hours FLOAT NOT NULL ) CREATE TABLE TimeSheet_Task ( TimeSheetID INT FOREIGN KEY REFERENCES TimeSheet(TimeSheetID), TaskID INT FOREIGN KEY REFERENCES Task(TaskID) )
true
db009bd20bf43958636dd6cc298ac89367b64e0c
SQL
astralm/astralbotBack
/src/mysql/trigers/entity_create.sql
UTF-8
266
2.84375
3
[]
no_license
BEGIN SET NEW.entity_date_create = NOW(), NEW.entity_date_update = NOW(), NEW.bot_id = (SELECT bot_id FROM entities WHERE entities_id = NEW.entities_id), NEW.organization_id = (SELECT organization_id FROM users WHERE user_id = NEW.user_id); END
true
b3f2ebad0a634129075506c844be6983a1b682aa
SQL
Adhithya-PGK331/RDBMS
/RDBMS/Joins & Subquery/Minimum Travel Time/subquery1bms.sql
UTF-8
139
2.859375
3
[]
no_license
select schedule_id, source, destination, duration from schedule where duration = (select min(duration) from schedule) order by schedule_id;
true
1ffae28760e04d1ba8d4496963cc1168974c580d
SQL
RobertTamas/pv168
/CarRental/src/main/resources/createTables.sql
UTF-8
679
3.078125
3
[]
no_license
CREATE TABLE "CAR" ( "ID" BIGINT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, "LICENSE_PLATE" VARCHAR(255), "BRAND" VARCHAR(255), "MODEL" VARCHAR(255), "PRICE_PER_DAY" INTEGER ); CREATE TABLE "CUSTOMER" ( "ID" BIGINT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, "FULL_NAME" VARCHAR(255), "ADDRESS" VARCHAR(255), "PHONE_NUMBER" VARCHAR(255) ); CREATE TABLE "LEASE" ( "ID" BIGINT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, "CAR_ID" BIGINT REFERENCES CAR (ID), "CUSTOMER_ID" BIGINT REFERENCES CUSTOMER (ID), "PRICE" INTEGER, "START_TIME" DATE, "EXPECTED_END_TIME" DATE, "REAL_END_TIME" DATE );
true
fb46c90538feb24ded58f788685cd7c797381c03
SQL
dinukakulatunga/SellNBye_RestWebService
/customers.sql
UTF-8
2,254
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 21, 2019 at 01:31 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sellnbye` -- -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE `customers` ( `id` int(11) NOT NULL, `firstname` varchar(45) NOT NULL, `lastname` varchar(45) NOT NULL, `email` varchar(45) NOT NULL, `age` int(11) NOT NULL, `password` varchar(45) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `customers` -- INSERT INTO `customers` (`id`, `firstname`, `lastname`, `email`, `age`, `password`) VALUES (1, 'umindu', 'pasan', 'umindugmail', 22, '12345'), (2, 'dinuka', 'kule', 'kulegmail', 23, '123456'), (4, 'uminduj', 'pasan', 'umindugmail', 22, '12345'), (5, 'umindujk', 'pasan', 'umindugmail', 22, '12345'), (6, 'umindukj', 'pasan', 'umindugmail', 22, '12345'), (7, 'umindukja', 'pasan', 'umindugmail', 22, '12345'), (8, 'umindukjd', 'pasan', 'umindugmail', 22, '12345'), (9, 'umindukjdd', 'pasan', 'umindugmail', 22, '12345'), (10, 'umindukjfd', 'pasan', 'umindugmail', 22, '12345'), (11, 'umindukjfgd', 'pasan', 'umindugmail', 22, '12345'), (12, 'umindukjfhd', 'pasan', 'umindugmail', 22, '12345'), (19, 'kapila', 'priyankara', '[email protected]', 64, 'qweasdzxc'); -- -- Indexes for dumped tables -- -- -- Indexes for table `customers` -- ALTER TABLE `customers` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true