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
5218833fd0768a40bb50b2d5da330fdbc7593678
SQL
stpettersens/csql2mongo
/sample.sql
UTF-8
871
2.890625
3
[ "MIT" ]
permissive
-- SQL table dump from MongoDB collection: sample (sample.json -> sample.sql) -- Generated by: cmongo2sql 1.0.1 (https://github.com/stpettersens/cmongo2sql) -- Generated at: 2015-04-15 18:58:38.744000 DROP TABLE IF EXISTS `sample`; CREATE TABLE IF NOT EXISTS `sample` ( _id VARCHAR(30) NOT NULL, name VARCHAR(50) NOT NULL, value NUMERIC(15, 2) NOT NULL, createdAt TIMESTAMP NOT NULL, active BOOLEAN NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `sample` VALUES ( '552dbf77588030e5525790bd', 'Sample1', 0.5, '2015-01-01 08:00:00', TRUE); INSERT INTO `sample` VALUES ( '552dbf89588030e5525790be', 'Sample2', 124, '2015-01-01 08:00:00', FALSE); INSERT INTO `sample` VALUES ( '552dbf92588030e5525790bf', 'Sample3', 0.25, '2015-01-01 08:00:00', TRUE); INSERT INTO `sample` VALUES ( '552dbf99588030e5525790c0', 'Sample4', 1.75, '2015-01-01 08:00:00', FALSE);
true
79fc8c8a5557b86c4be11b12e94eedee8e089c91
SQL
MahfuzurRahmanMiah/SQL_drills
/Query3.sql
UTF-8
192
3.15625
3
[]
no_license
-- <<Assignment from SQL Basics>> -- -- The min temperatures of all the -- occurrences of rain in zip 94301 SELECT mintemperaturef FROM weather WHERE events = 'Rain' AND zip = 94107;
true
fd93b001b294e1ee1d13957f869147250c6a73e1
SQL
ROHITSARABU/online-shoping
/shopingbackend/databaseQueries.sql
UTF-8
4,281
3.625
4
[]
no_license
CREATE TABLE category( id IDENTITY, name VARCHAR(50), description VARCHAR(255), image_URL VARCHAR(50), is_active BOOLEAN, CONSTRAINT pk_category_id PRIMARY KEY(id) ); insert into category ( name , description , image_url , is_active ) values ( 'laptop ', 'this is description for laptop category', 'lap.jpg',true ) ; insert into category ( name , description , image_url , is_active ) values ( 'mobile ', 'this is description for mobile category', 'moto.jpg',true ) ; insert into category ( name , description , image_url , is_active ) values ( 'car ', 'this is description for car category', 'car.jpg',true ) ; CREATE TABLE user_detail( id IDENTITY, first_name VARCHAR(50), last_name VARCHAR(50), role VARCHAR(50), enabled BOOLEAN, password VARCHAR(50), email VARCHAR(100), contact_number VARCHAR(15), CONSTRAINT pk_user_id PRIMARY KEY(id) ); insert into user_detail (first_name,last_name,role,enabled,password,email,contact_number) values ('Arul','Sarabu','ADMIN',true,'191797as','arulsarabu.ups@gmail.com','7299605264'); insert into user_detail (first_name,last_name,role,enabled,password,email,contact_number) values ('ashit','man','supplier',true,'191797','arulsarabu1917@gmail.com','8220249852'); CREATE TABLE product ( id IDENTITY, code VARCHAR(20), name VARCHAR(50), brand VARCHAR(50), description VARCHAR(255), unit_price DECIMAL(10,2), quantity INT, is_active BOOLEAN, category_id INT, supplier_id INT, purchases INT DEFAULT 0, views INT DEFAULT 0, CONSTRAINT pk_product_id PRIMARY KEY (id), CONSTRAINT fk_product_category_id FOREIGN KEY (category_id) REFERENCES category(id), CONSTRAINT fk_product_supplier_id FOREIGN KEY (supplier_id) REFERENCES user_detail(id)); -- the address table to store the user billing and shipping addresses CREATE TABLE address ( id IDENTITY, user_id int, address_line_one VARCHAR(100), address_line_two VARCHAR(100), city VARCHAR(20), state VARCHAR(20), country VARCHAR(20), postal_code VARCHAR(10), is_billing BOOLEAN, is_shipping BOOLEAN, CONSTRAINT fk_address_user_id FOREIGN KEY (user_id ) REFERENCES user_detail (id), CONSTRAINT pk_address_id PRIMARY KEY (id) ); -- the cart table to store the user cart top-level details CREATE TABLE cart ( id IDENTITY, user_id int, grand_total DECIMAL(10,2), cart_lines int, CONSTRAINT fk_cart_user_id FOREIGN KEY (user_id ) REFERENCES user_detail (id), CONSTRAINT pk_cart_id PRIMARY KEY (id) ); --adding the address INSERT INTO ADDRESS (ID, ADDRESS_LINE_ONE, ADDRESS_LINE_TWO, CITY, STATE,COUNTRY, POSTAL_CODE, IS_BILLING, IS_SHIPPING) VALUES ('1', 'no 6, periyar ramasammy st guduvancheri', 'near ration shop', 'guduvancheri', 'tamil nadu','india','603202',0,0); --adding the cart INSERT INTO cart (user_id, grand_total, cart_lines) VALUES (null, 0, 0); --adding product INSERT INTO product (code, name, brand, description, unit_price, quantity, is_active, category_id, supplier_id, purchases, views) VALUES ('PRDABC123DEFX', 'iPhone 5s', 'apple', 'This is one of the best phone available in the market right now!', 18000, 5, true, 3, 2, 0, 0 ); INSERT INTO product (code, name, brand, description, unit_price, quantity, is_active, category_id, supplier_id, purchases, views) VALUES ('PRDDEF123DEFX', 'Samsung s7', 'samsung', 'A smart phone by samsung!', 32000, 2, true, 3, 3, 0, 0 ); INSERT INTO product (code, name, brand, description, unit_price, quantity, is_active, category_id, supplier_id, purchases, views) VALUES ('PRDPQR123WGTX', 'Google Pixel', 'google', 'This is one of the best android smart phone available in the market right now!', 57000, 5, true, 3, 2, 0, 0 ); INSERT INTO product (code, name, brand, description, unit_price, quantity, is_active, category_id, supplier_id, purchases, views) VALUES ('PRDMNO123PQRX', ' Macbook Pro', 'apple', 'This is one of the best laptops available in the market right now!', 54000, 3, true, 1, 2, 0, 0 ); INSERT INTO product (code, name, brand, description, unit_price, quantity, is_active, category_id, supplier_id, purchases, views) VALUES ('PRDABCXYZDEFX', 'Dell Latitude E6510', 'dell', 'This is one of the best laptop series from dell that can be used!', 48000, 5, true, 1, 3, 0, 0 );
true
bf4b824335d6737afdfb0faf9b3bc2163c874267
SQL
dalejo3000/Generador-Certificados-V3
/carrito.sql
UTF-8
3,677
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generaciรณn: 22-03-2021 a las 02:20:57 -- Versiรณn del servidor: 10.1.33-MariaDB -- Versiรณn de PHP: 7.4.8 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: `carrito` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `productos` -- CREATE TABLE `productos` ( `id` int(11) NOT NULL, `nombre` varchar(300) NOT NULL, `descripcion` text NOT NULL, `precio` double NOT NULL, `imagen` varchar(200) NOT NULL, `inventario` int(11) NOT NULL, `id_categoria` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `productos` -- INSERT INTO `productos` (`id`, `nombre`, `descripcion`, `precio`, `imagen`, `inventario`, `id_categoria`) VALUES (208, 'Bono de desarrollo', 'Curso 1', 123, '1616374850.jpg', 30, 1), (209, 'Reasentamiento', 'Curso 2 ', 115, '1616139059.png', 30, 2), (210, 'Plan Nacional', 'Curso 3', 133, '1616352742.jpg', 30, 1), (213, 'Desarrollo', 'Curso 4', 123, '1616138928.jpg', 30, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuario` -- CREATE TABLE `usuario` ( `id` int(11) NOT NULL, `nombre` varchar(200) NOT NULL, `telefono` varchar(200) NOT NULL, `email` varchar(200) NOT NULL, `password` varchar(100) NOT NULL, `img_perfil` varchar(300) NOT NULL, `nivel` varchar(20) NOT NULL, `cedula` char(10) NOT NULL, `fecha` date NOT NULL, `curso` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `usuario` -- INSERT INTO `usuario` (`id`, `nombre`, `telefono`, `email`, `password`, `img_perfil`, `nivel`, `cedula`, `fecha`, `curso`) VALUES (2, 'David Romero', '+593998004766', 'dalejo3000@gmail.com', '601f1889667efaebb33b8c12572835da3f027f78', 'david.jpg', 'admin', '1122334455', '1991-03-10', ''), (44, 'Hugo Galvez', '0998004766', 'hugogalvez@ute.edu.ec', '7c222fb2927d828af22f592134e8932480637c0d', 'default.jpg', 'cliente', '2233445566', '1991-11-09', ''), (48, 'Ale Alejandro', '047588304', 'alejo@prueba.com', '601f1889667efaebb33b8c12572835da3f027f78', 'default.jpg', 'cliente', '1234557654', '2021-03-17', 'frio'), (49, 'Ricardo Palacios', '123456789', 'rpalacios@prueba.com', '601f1889667efaebb33b8c12572835da3f027f78', 'default.jpg', 'cliente', '1122334455', '1972-03-09', 'prueba'), (53, 'Nombre1 Nombre2 Apellido1 Apellido 2', '8740599237', 'email@prueba.com', '601f1889667efaebb33b8c12572835da3f027f78', 'default.jpg', 'cliente', '9876543212', '1998-03-08', 'prueba'), (55, 'Noche NOCHE', '94578539', 'noche@prueba.com', '601f1889667efaebb33b8c12572835da3f027f78', 'default.jpg', 'cliente', '123456789', '2021-03-11', 'casa'); -- -- รndices para tablas volcadas -- -- -- Indices de la tabla `productos` -- ALTER TABLE `productos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `usuario` -- ALTER TABLE `usuario` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `productos` -- ALTER TABLE `productos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=214; -- -- AUTO_INCREMENT de la tabla `usuario` -- ALTER TABLE `usuario` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56; 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
18b7d02af226792311ebcabe9bcbf5c2c9935262
SQL
Gre3eN/Detective
/SQL_tables/detective_table_savestate.sql
UTF-8
354
2.515625
3
[]
no_license
-- -------------------------------------------------------- -- -- Tabellenstruktur fรผr Tabelle `savestate` -- CREATE TABLE `savestate` ( `PlayerID` int(11) NOT NULL, `SceneID` int(11) NOT NULL, `DialogID` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Speicherstand anhand der SceneID & DialogID';
true
1ebb37a72bb83311d80c7f20291def208bcd7c0e
SQL
sdss/sdssdb
/schema/sdss5db/catalogdb/kic/v10/kepler_input_10_index.sql
UTF-8
1,459
3.03125
3
[ "BSD-3-Clause" ]
permissive
/* indices for catalogdb tables, to be run after bulk uploads psql -f gaia_dr2_index.sql -U sdss sdss5db drop index catalogdb.gaia_dr1_tgas_dec_index; */ -- kic_ra is in hours. Convert to degrees. ALTER TABLE catalogdb.kepler_input_10 ADD COLUMN kic_ra_deg DOUBLE PRECISION; UPDATE catalogdb.kepler_input_10 SET kic_ra_deg = kic_ra * 15; -- Indices CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 (q3c_ang2ipix(kic_ra_deg, kic_dec)); CLUSTER kepler_input_10_q3c_ang2ipix_idx ON catalogdb.kepler_input_10; ANALYZE catalogdb.kepler_input_10; CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_umag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_gmag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_rmag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_imag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_zmag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_jmag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_hmag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_kmag); CREATE INDEX CONCURRENTLY ON catalogdb.kepler_input_10 USING BTREE (kic_kepmag); ALTER TABLE catalogdb.kepler_input_10 ALTER COLUMN kic_kepler_id SET STATISTICS 5000; ALTER INDEX catalogdb.kepler_input_10_q3c_ang2ipix_idx ALTER COLUMN q3c_ang2ipix SET STATISTICS 5000;
true
ddfaa9ed5b0a19981bcacbc49896a6a8ca0eea2b
SQL
josepitteloud/VESPA
/Vespa Projects/276 - Adsmart New Attributes exploration/CR111 - Asia Package.sql
UTF-8
2,884
3.5
4
[]
no_license
/* ***************************** $$$ I$$$ I$$$ $$$$$$$$ I$$$ $$$$$ $$$ZDD DDDDDDD. ,$$$$$$$$ I$$$ $$$$$$$ $$$ ODD ODDDZ 7DDDD ?$$$, I$$$ $$$$. $$$$ $$$= ODD DDD NDD $$$$$$$$= I$$$$$$$ $$$$.$$$ ODD +DD$ +DD$ :$$$$~I$$$ $$$$ $$$$$$ ODD DDN NDD. ,. $$$+I$$$ $$$$ $$$$= ODD NDDN NDDN $$$$$$$$$ I$$$ $$$$ .$$$ ODD ZDDDDDDDN $$$ . $DDZ $$$ ,NDDDDDDD $$$? CUSTOMER INTELLIGENCE SERVICES -------------------------------------------------------------------------------------------------------------- **Project Name: Adsmart - CR 111 Asia Package ownership Description: Flag accounts that have or had have the Asia Package Date: 20-01-2015 Lead: Jose Pitteloud Coded by: Jose Pitteloud Sections: *********************************/ ------------------------------------------------------------------------------------------------------ SELECT account_number , 'Has Asia Pack' AS Asia INTO #t1 FROM CUST_SUBS_HIST WHERE subscription_type = 'ENHANCED' and subscription_sub_type = 'SKYASIA' and status_code in ('AC','AB','PC') --Active Status Codes and effective_from_dt <= getdate() and effective_to_dt > getdate() and effective_from_dt<>effective_to_dt COMMIT CREATE HG INDEX cwd ON #t1(account_number) INSERT INTO #t1 SELECT DISTINCT account_number , 'Has had Asia Pack in the past but not now' AS Asia FROM CUST_SUBS_HIST WHERE subscription_type = 'ENHANCED' and subscription_sub_type = 'SKYASIA' AND status_code NOT in ('AC','AB','PC','PA') AND account_number NOT IN (SELECT account_number FROM #t1) COMMIT INSERT INTO #t1 SELECT DISTINCT account_number , 'Has never had Asia Pack' AS Asia FROM CUST_SUBS_HIST WHERE subscription_type = 'ENHANCED' and subscription_sub_type = 'SKYASIA' AND status_code in ('PA') AND account_number NOT IN (SELECT account_number FROM #t1) commit UPDATE ###ADsmart### SET ASIA = CASE WHEN Asia IS NOT NULL THEN Asia ELSE 'Has never had Asia Pack' END FROM ###ADsmart### as a LEFT JOIN #t1 as b ON a.account_number = b.account_number ----------------------------- QA /* SELECT Asia, count(*) hits FROM #t1 as a RIGHT JOIN adsmart as b ON a.account_number = b.account_number GROUP BY Asia Asia | hits ============================================|=========== Has Asia Pack | 34510 Has had Asia Pack in the past but not now | 2850 Has never had Asia Pack | 9348953 */
true
1829d68c407206853dbbc2db0f73542ea0b24133
SQL
ttrace122/Deforestation-Exploration-Data-Analysis
/sql/regional_outlook.sql
UTF-8
4,255
4.4375
4
[ "LicenseRef-scancode-public-domain" ]
permissive
/* ------------- Part 2 - Regional Outlook ------------- */ /* Create a table that shows the regions and their percent forest areain 1990 and 2016. */ CREATE VIEW regional_outlook_ft AS SELECT year, region, ROUND(CAST(100.00*((sum_forest_area_sqkm)/(sum_total_area_sqkm)) AS NUMERIC), 2) AS percentage_forestation FROM (SELECT DISTINCT year, region, SUM(forest_area_sqkm) AS sum_forest_area_sqkm, SUM(total_area_sqkm) AS sum_total_area_sqkm FROM forestation WHERE (year = '1990' OR year = '2016') GROUP BY 1, 2) AS forest_total_area_per_region_for_1990_2016_sqkm; /* Check if 'regional_outlook_ft' table exist */ DROP VIEW IF EXISTS regional_outlook_ft; /* What was the percent forest of the entire world in 2016? */ SELECT percentage_forestation FROM regional_outlook_ft WHERE region = 'World' AND year = '2016'; -- percentage_forestation -- 31.38 /* Which region had the HIGHEST percent forest in 2016? */ SELECT region, percentage_forestation FROM regional_outlook_ft WHERE year = '2016' AND region != 'World' ORDER BY percentage_forestation DESC LIMIT 1; -- region percentage_forestation -- Europe & Central Asia 46.16 /* Which region had the LOWEST percent forest in 2016? */ SELECT region, percentage_forestation FROM regional_outlook_ft WHERE year = '2016' AND region != 'World' ORDER BY percentage_forestation LIMIT 1; -- region percentage_forestation -- Middle East & North Africa 2.07 /* What was the percent forest of the entire world in 1990? */ SELECT percentage_forestation FROM regional_outlook_ft WHERE region = 'World' AND year = '1990'; -- percentage_forestation -- 32.42 /* Which region had the HIGHEST percent forest in 1990? */ SELECT region, percentage_forestation FROM regional_outlook_ft WHERE year = '1990' AND region != 'World' ORDER BY percentage_forestation DESC LIMIT 1; -- region percentage_forestation -- Latin America & Caribbean 51.03 /* Which region had the LOWEST percent forest in 1990? */ SELECT region, percentage_forestation FROM regional_outlook_ft WHERE year = '1990' AND region != 'World' ORDER BY percentage_forestation LIMIT 1; -- region percentage_forestation -- Middle East & North Africa 1.78 /* Which regions of the world DECREASED in forest area from 1990 to 2016? */ With T1 AS (SELECT roft1.region, roft2.percentage_forestation AS percentage_forestation_1990, roft1.percentage_forestation AS percentage_forestation_2016, roft1.percentage_forestation - roft2.percentage_forestation AS difference_percentage_forestation_1990_vs_2016 FROM regional_outlook_ft roft1, regional_outlook_ft roft2 WHERE (roft1.year = '2016' AND roft2.year = '1990') AND (roft1.region = roft2.region) ORDER BY difference_percentage_forestation_1990_vs_2016 DESC) SELECT region, percentage_forestation_1990, percentage_forestation_2016, difference_percentage_forestation_1990_vs_2016, CASE WHEN difference_percentage_forestation_1990_vs_2016 < 0 THEN 'DECREASED' ELSE 'INCREASED' END AS region_forest_trend FROM T1 WHERE region != 'World'; -- region percentage_forestation_1990 percentage_forestation_2016 difference_percentage_forestation_1990_vs_2016 region_forest_trend -- South Asia 16.51 17.51 1.00 INCREASED -- Europe & Central Asia 37.28 38.04 0.76 INCREASED -- East Asia & Pacific 25.78 26.36 0.58 INCREASED -- North America 35.65 36.04 0.39 INCREASED -- Middle East & North Africa 1.78 2.07 0.29 INCREASED -- Sub-Saharan Africa 30.67 28.79 -1.88 DECREASED -- Latin America & Caribbean 51.03 46.16 -4.87 DECREASED
true
e37932952e153ff048b8145b9e7fc1ca97366e96
SQL
hoangtuananh97/musiconline
/musiconline.sql
UTF-8
17,107
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 12, 2018 at 04:23 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 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: `musiconline` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `idAdmin` int(11) NOT NULL, `nameAdmin` varchar(200) NOT NULL, `gmail` varchar(200) NOT NULL, `password` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`idAdmin`, `nameAdmin`, `gmail`, `password`) VALUES (1, 'admin', 'tunanhh64@gmail.com', '123456'); -- -------------------------------------------------------- -- -- Table structure for table `areas` -- CREATE TABLE `areas` ( `idAreas` int(11) NOT NULL, `nameArea` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `areas` -- INSERT INTO `areas` (`idAreas`, `nameArea`) VALUES (1, 'viet nam'), (2, 'au my'), (3, 'chau a'); -- -------------------------------------------------------- -- -- Table structure for table `artists` -- CREATE TABLE `artists` ( `idArtis` int(11) NOT NULL, `nameArtis` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `artists` -- INSERT INTO `artists` (`idArtis`, `nameArtis`) VALUES (1, 'tuan anh'), (2, 'my tam'), (3, 'tien tien'), (4, 'son tung'); -- -------------------------------------------------------- -- -- Table structure for table `banks` -- CREATE TABLE `banks` ( `idBank` int(11) NOT NULL, `nameBank` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `banks` -- INSERT INTO `banks` (`idBank`, `nameBank`) VALUES (1, 'VietCombank'), (2, 'BIDV'); -- -------------------------------------------------------- -- -- Table structure for table `bill` -- CREATE TABLE `bill` ( `idBill` int(11) NOT NULL, `idBank` int(11) NOT NULL, `nameCus` varchar(200) NOT NULL, `phone` varchar(200) NOT NULL, `address` varchar(200) NOT NULL, `sates` tinyint(4) NOT NULL, `dates` datetime NOT NULL, `summoney` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `bill` -- INSERT INTO `bill` (`idBill`, `idBank`, `nameCus`, `phone`, `address`, `sates`, `dates`, `summoney`) VALUES (6, 2, 'hoang tuan anh', '0979867463', 'tb', 1, '2018-06-30 19:26:39', '1.440.000'), (7, 2, 'hoang tuan anh', '0979867463', 'tb', 1, '2018-06-30 20:12:53', '600.000'), (8, 1, 'fghfgh', '0979867463', 'tb', 0, '2018-07-02 14:12:03', '840.000'), (9, 2, 'hoang tuan anh', '0979867463', 'tb', 0, '2018-07-04 14:57:15', '960.000'), (11, 2, 'hoang', '0979867463', 'tbbbb', 1, '2018-07-07 19:22:44', '1.200.000'); -- -------------------------------------------------------- -- -- Table structure for table `comment` -- CREATE TABLE `comment` ( `idComment` int(11) NOT NULL, `idSong` int(11) NOT NULL, `idFeels` int(11) NOT NULL, `name_comment` varchar(200) NOT NULL, `context` varchar(200) NOT NULL, `times` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `comment` -- INSERT INTO `comment` (`idComment`, `idSong`, `idFeels`, `name_comment`, `context`, `times`) VALUES (1, 9, 1, 'g', 'fdfdgf', '2018-06-25 00:00:00'), (2, 2, 1, 'dd', 'ddd', '2018-06-25 00:00:00'), (3, 9, 1, 'fdf', 'dfdf', '2018-06-25 00:00:00'), (4, 1, 1, 'fsd', 'sdfs', '2018-06-25 00:00:00'), (5, 2, 1, 'sdf', 'fsdfsd', '2018-06-25 00:00:00'), (6, 12, 1, 'hello', 'hello\n', '2018-06-25 00:00:00'), (7, 2, 1, 'hello', 'hello', '2018-06-25 00:00:00'), (8, 2, 1, 'hello', 'hello', '2018-06-25 00:00:00'), (11, 8, 1, 'heeloo', 'tuan anh', '2018-06-25 00:00:00'), (12, 11, 1, 'tuan anh', 'dep trai', '2018-06-25 00:00:00'), (13, 13, 1, 'dep trai', 'dep trai', '2018-06-25 00:00:00'), (14, 1, 1, 'hello', 'hello fuck', '2018-06-26 00:00:00'), (15, 11, 1, 'tuan anh dep trai ', 'tuan anh dep trai ', '2018-06-26 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `detailbill` -- CREATE TABLE `detailbill` ( `IdDetailBill` int(11) NOT NULL, `idBill` int(11) NOT NULL, `idSong` int(11) NOT NULL, `idUser` int(11) NOT NULL, `countSong` int(11) NOT NULL, `price` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `detailbill` -- INSERT INTO `detailbill` (`IdDetailBill`, `idBill`, `idSong`, `idUser`, `countSong`, `price`) VALUES (15, 6, 1, 11, 4, '120.000'), (16, 6, 2, 11, 2, '120.000'), (17, 6, 14, 11, 1, '120.000'), (18, 6, 15, 11, 2, '120.000'), (21, 7, 2, 11, 3, '120.000'), (22, 7, 9, 11, 2, '120.000'), (23, 8, 9, 11, 3, '120.000'), (24, 8, 11, 11, 1, '120.000'), (25, 8, 8, 11, 1, '120.000'), (26, 8, 14, 11, 2, '120.000'), (27, 9, 1, 10, 4, '120.000'), (28, 9, 2, 10, 1, '120.000'), (29, 9, 8, 10, 1, '120.000'), (35, 11, 1, 10, 3, '120.000'), (36, 11, 2, 10, 1, '120.000'), (37, 11, 8, 10, 2, '120.000'), (38, 11, 12, 10, 1, '120.000'), (39, 11, 11, 10, 3, '120.000'); -- -------------------------------------------------------- -- -- Table structure for table `feels` -- CREATE TABLE `feels` ( `idFeels` int(11) NOT NULL, `nameFeels` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `feels` -- INSERT INTO `feels` (`idFeels`, `nameFeels`) VALUES (1, 'like'); -- -------------------------------------------------------- -- -- Table structure for table `reply_comment` -- CREATE TABLE `reply_comment` ( `idReply` int(11) NOT NULL, `idComment` int(11) NOT NULL, `idFeels` int(11) NOT NULL, `rep_dates` datetime NOT NULL, `rep_comtext` varchar(200) NOT NULL, `rep_name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `reply_comment` -- INSERT INTO `reply_comment` (`idReply`, `idComment`, `idFeels`, `rep_dates`, `rep_comtext`, `rep_name`) VALUES (1, 11, 1, '2018-06-26 00:00:00', 'thuy thuy', 'hong hong'), (2, 6, 1, '2018-06-26 00:00:00', 'fffffffffffffffffffffdd?', 'gggggggg'), (3, 11, 1, '2018-06-26 00:00:00', 'bbbbbbbbbbb', 'aaaaa'), (4, 2, 1, '2018-06-26 00:00:00', 'chao', 'xin chao'), (5, 11, 1, '2018-06-26 00:00:00', 'hรชllo', 'xin chร o'), (6, 2, 1, '2018-06-26 00:00:00', 'hello', 'hello'), (7, 4, 1, '2018-06-26 00:00:00', 'gggg', 'hhee'), (8, 2, 1, '2018-06-26 00:00:00', 'dgdfgd', 'dgdg'), (9, 2, 1, '2018-06-26 00:00:00', 'fuck', 'fuck'), (10, 5, 1, '2018-06-26 00:00:00', 'ssdfsf', 'hรชml'), (11, 2, 1, '2018-06-26 00:00:00', 'sdfsd', 'sfsdf'), (12, 2, 1, '2018-06-26 00:00:00', 'reply 6', 'reply 6'), (13, 2, 1, '2018-06-26 00:00:00', '7', '7'), (14, 13, 1, '2018-06-26 00:00:00', 'chao l?i', 'xin chao'), (15, 2, 1, '2018-06-30 00:00:00', '8', '8'); -- -------------------------------------------------------- -- -- Table structure for table `role` -- CREATE TABLE `role` ( `idRole` int(11) NOT NULL, `nameRole` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `role` -- INSERT INTO `role` (`idRole`, `nameRole`) VALUES (1, 'ROLE_ADMIN'), (2, 'ROLE_USER'); -- -------------------------------------------------------- -- -- Table structure for table `songs` -- CREATE TABLE `songs` ( `idSong` int(11) NOT NULL, `name` varchar(200) NOT NULL, `url` varchar(255) NOT NULL, `idArtist` int(255) NOT NULL, `author` varchar(200) NOT NULL, `idArea` int(255) NOT NULL, `idType` int(255) NOT NULL, `cover_art_url` varchar(300) NOT NULL, `dateUpdate` date NOT NULL, `countListen` int(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `songs` -- INSERT INTO `songs` (`idSong`, `name`, `url`, `idArtist`, `author`, `idArea`, `idType`, `cover_art_url`, `dateUpdate`, `countListen`) VALUES (1, 'Frankie ', 'Take A Chance On Me - Frankie J.mp3', 2, 'Frankie ', 1, 2, 'we-are-to-answer.jpg', '2018-03-07', 42), (2, 'Wiz Khalifa Charlie Puth', 'See You Again - Wiz Khalifa Charlie Puth.mp3', 4, 'Wiz Khalifa Charlie Puth', 1, 3, 'we-are-to-answer.jpg', '2017-09-06', 105), (8, 'Alan Walked', 'Alan Walker Fade NCS Release - Fade NCS Release.mp3', 1, 'Alan Walked', 2, 1, '4.jpg', '2018-05-02', 52), (9, 'beautiful in white', 'Beautiful In White - Shane Filan.mp3', 1, 'Shane Filan', 1, 1, '5.jpg', '0011-11-08', 25), (11, 'i am yours', 'I-m-Yours-Jason-Mraz.mp3', 1, 'jason- mraz', 2, 1, '2.jpg', '0011-02-04', 16), (12, 'cam on vi tat ca', 'Cam On Vi Tat Ca - Anh Quan Idol.mp3', 1, 'anh quan', 1, 1, '3.jpg', '0013-12-06', 13), (13, 'den sau', 'DenSau-UngHoangPhuc.mp3', 1, 'ung hoan phuc', 1, 1, '1.jpg', '0009-01-04', 7), (14, 'marry me', 'Marry Me - Mr Siro.mp3', 1, 'Mr.siro', 1, 1, '2.jpg', '0012-11-06', 8), (15, 'khoc', 'Khoc - Vu Duy Khanh.mp3', 1, 'duy khanh', 1, 1, '3.jpg', '0007-11-05', 4), (19, 'chipmun', 'chipmun.mp3', 4, 'anh khang', 3, 1, '1.jpg', '2018-06-30', 0); -- -------------------------------------------------------- -- -- Table structure for table `song_of_user` -- CREATE TABLE `song_of_user` ( `idSong_user` int(11) NOT NULL, `idSong` int(11) NOT NULL, `idUser` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `song_of_user` -- INSERT INTO `song_of_user` (`idSong_user`, `idSong`, `idUser`) VALUES (1, 1, 9), (2, 2, 9), (3, 8, 10), (4, 1, 10), (5, 8, 11), (13, 2, 10), (14, 15, 10), (15, 9, 10); -- -------------------------------------------------------- -- -- Table structure for table `types` -- CREATE TABLE `types` ( `idType` int(11) NOT NULL, `nameType` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `types` -- INSERT INTO `types` (`idType`, `nameType`) VALUES (1, 'nhac tre'), (2, 'tru tinh'), (3, 'nhac han'), (4, 'pop'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `idUser` int(255) NOT NULL, `nameUser` varchar(255) NOT NULL, `gmail` varchar(255) NOT NULL, `password` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user` -- INSERT INTO `user` (`idUser`, `nameUser`, `gmail`, `password`) VALUES (9, 'tuan', 'tuan@gmail', '1234'), (10, 'hhh', 'tutu', '1234'), (11, 'tu', 'tu', '1234'), (12, 'admin', 'admin', '$2a$04$GYGsaJj9l6kH2GikK6QVzO0v3sOCxt3vdkiA2/tcoSw8erI85ZYDG'), (13, 'tuแบฅn anh', 'hoangtuananh1997tb@gmail.com', '123456'); -- -------------------------------------------------------- -- -- Table structure for table `user_role` -- CREATE TABLE `user_role` ( `id` int(11) NOT NULL, `idRole` int(11) NOT NULL, `idUser` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user_role` -- INSERT INTO `user_role` (`id`, `idRole`, `idUser`) VALUES (1, 1, 9), (2, 2, 10), (3, 2, 11), (4, 1, 12); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`idAdmin`), ADD UNIQUE KEY `Gmail` (`gmail`); -- -- Indexes for table `areas` -- ALTER TABLE `areas` ADD PRIMARY KEY (`idAreas`); -- -- Indexes for table `artists` -- ALTER TABLE `artists` ADD PRIMARY KEY (`idArtis`); -- -- Indexes for table `banks` -- ALTER TABLE `banks` ADD PRIMARY KEY (`idBank`); -- -- Indexes for table `bill` -- ALTER TABLE `bill` ADD PRIMARY KEY (`idBill`), ADD KEY `IdBank_IdBill` (`idBank`); -- -- Indexes for table `comment` -- ALTER TABLE `comment` ADD PRIMARY KEY (`idComment`), ADD KEY `IdSong_IdComment` (`idSong`), ADD KEY `IdFeels_IdComment` (`idFeels`); -- -- Indexes for table `detailbill` -- ALTER TABLE `detailbill` ADD PRIMARY KEY (`IdDetailBill`), ADD KEY `IdBill_IdSong` (`idSong`), ADD KEY `IdUser_IdBill` (`idUser`), ADD KEY `IdDetailBill_IdBill` (`idBill`); -- -- Indexes for table `feels` -- ALTER TABLE `feels` ADD PRIMARY KEY (`idFeels`); -- -- Indexes for table `reply_comment` -- ALTER TABLE `reply_comment` ADD PRIMARY KEY (`idReply`), ADD KEY `idComment` (`idComment`), ADD KEY `IdReplyComment_IdFeels` (`idFeels`); -- -- Indexes for table `role` -- ALTER TABLE `role` ADD PRIMARY KEY (`idRole`); -- -- Indexes for table `songs` -- ALTER TABLE `songs` ADD PRIMARY KEY (`idSong`), ADD KEY `artist` (`idArtist`), ADD KEY `area` (`idArea`), ADD KEY `type` (`idType`); -- -- Indexes for table `song_of_user` -- ALTER TABLE `song_of_user` ADD PRIMARY KEY (`idSong_user`), ADD KEY `idSong` (`idSong`), ADD KEY `idUser` (`idUser`); -- -- Indexes for table `types` -- ALTER TABLE `types` ADD PRIMARY KEY (`idType`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`idUser`), ADD UNIQUE KEY `gmail` (`gmail`); -- -- Indexes for table `user_role` -- ALTER TABLE `user_role` ADD PRIMARY KEY (`id`), ADD KEY `idRole` (`idRole`), ADD KEY `idUser` (`idUser`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `idAdmin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `areas` -- ALTER TABLE `areas` MODIFY `idAreas` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `artists` -- ALTER TABLE `artists` MODIFY `idArtis` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `banks` -- ALTER TABLE `banks` MODIFY `idBank` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `bill` -- ALTER TABLE `bill` MODIFY `idBill` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `comment` -- ALTER TABLE `comment` MODIFY `idComment` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `detailbill` -- ALTER TABLE `detailbill` MODIFY `IdDetailBill` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40; -- -- AUTO_INCREMENT for table `feels` -- ALTER TABLE `feels` MODIFY `idFeels` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `reply_comment` -- ALTER TABLE `reply_comment` MODIFY `idReply` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `songs` -- ALTER TABLE `songs` MODIFY `idSong` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `song_of_user` -- ALTER TABLE `song_of_user` MODIFY `idSong_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `types` -- ALTER TABLE `types` MODIFY `idType` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `idUser` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `user_role` -- ALTER TABLE `user_role` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Constraints for dumped tables -- -- -- Constraints for table `bill` -- ALTER TABLE `bill` ADD CONSTRAINT `bill_ibfk_1` FOREIGN KEY (`idBank`) REFERENCES `banks` (`idBank`); -- -- Constraints for table `comment` -- ALTER TABLE `comment` ADD CONSTRAINT `comment_ibfk_1` FOREIGN KEY (`idSong`) REFERENCES `songs` (`idSong`), ADD CONSTRAINT `comment_ibfk_3` FOREIGN KEY (`idFeels`) REFERENCES `feels` (`idFeels`); -- -- Constraints for table `detailbill` -- ALTER TABLE `detailbill` ADD CONSTRAINT `detailbill_ibfk_1` FOREIGN KEY (`idBill`) REFERENCES `bill` (`idBill`), ADD CONSTRAINT `detailbill_ibfk_2` FOREIGN KEY (`idSong`) REFERENCES `songs` (`idSong`), ADD CONSTRAINT `detailbill_ibfk_3` FOREIGN KEY (`idUser`) REFERENCES `user` (`idUser`); -- -- Constraints for table `reply_comment` -- ALTER TABLE `reply_comment` ADD CONSTRAINT `reply_comment_ibfk_1` FOREIGN KEY (`idComment`) REFERENCES `comment` (`idComment`), ADD CONSTRAINT `reply_comment_ibfk_2` FOREIGN KEY (`idFeels`) REFERENCES `feels` (`idFeels`); -- -- Constraints for table `songs` -- ALTER TABLE `songs` ADD CONSTRAINT `songs_ibfk_1` FOREIGN KEY (`idArtist`) REFERENCES `artists` (`idArtis`) ON UPDATE CASCADE, ADD CONSTRAINT `songs_ibfk_2` FOREIGN KEY (`idArea`) REFERENCES `areas` (`idAreas`) ON UPDATE CASCADE, ADD CONSTRAINT `songs_ibfk_3` FOREIGN KEY (`idType`) REFERENCES `types` (`idType`) ON UPDATE CASCADE; -- -- Constraints for table `song_of_user` -- ALTER TABLE `song_of_user` ADD CONSTRAINT `song_of_user_ibfk_1` FOREIGN KEY (`idSong`) REFERENCES `songs` (`idSong`), ADD CONSTRAINT `song_of_user_ibfk_2` FOREIGN KEY (`idUser`) REFERENCES `user` (`idUser`); -- -- Constraints for table `user_role` -- ALTER TABLE `user_role` ADD CONSTRAINT `user_role_ibfk_1` FOREIGN KEY (`idUser`) REFERENCES `user` (`idUser`), ADD CONSTRAINT `user_role_ibfk_2` FOREIGN KEY (`idRole`) REFERENCES `role` (`idRole`); /*!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
d0ff5b8ff9e237430b217be710d6f3714e0c5c4e
SQL
GEoURo/DBS_Lab1
/src/add_borrow.sql
UTF-8
3,118
2.6875
3
[]
no_license
insert into borrow values('00000001', '0002', to_date('2019-3-20', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2019-4-17', 'YYYY-MM-DD') where book_id = '00000001' and reader_id = '0002' and borrow_date = to_date('2019-3-20', 'YYYY-MM-DD'); insert into borrow values('00000001', '0001', to_date('2019-4-19', 'YYYY-MM-DD'),NULL); insert into borrow values('00000002', '0001', to_date('2019-1-10', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2019-3-8', 'YYYY-MM-DD') where book_id = '00000002' and reader_id = '0002' and borrow_date = to_date('2019-1-10', 'YYYY-MM-DD'); insert into borrow values('00000002', '0002', to_date('2019-3-19', 'YYYY-MM-DD'),NULL); insert into borrow values('00000003', '0001', to_date('2017-12-20', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2018-2-17', 'YYYY-MM-DD') where book_id = '00000003' and reader_id = '0001' and borrow_date = to_date('2017-12-20', 'YYYY-MM-DD'); insert into borrow values('00000004', '0001', to_date('2017-3-20', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2017-4-14', 'YYYY-MM-DD') where book_id = '00000004' and reader_id = '0001' and borrow_date = to_date('2017-3-20', 'YYYY-MM-DD'); insert into borrow values('00000005', '0002', to_date('2018-2-26', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2018-7-17', 'YYYY-MM-DD') where book_id = '00000005' and reader_id = '0002' and borrow_date = to_date('2018-2-26', 'YYYY-MM-DD'); insert into borrow values('00000005', '0005', to_date('2019-4-1', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2019-4-19', 'YYYY-MM-DD') where book_id = '00000005' and reader_id = '0005' and borrow_date = to_date('2019-4-1', 'YYYY-MM-DD'); insert into borrow values('00000005', '0006', to_date('2019-2-12', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2019-3-15', 'YYYY-MM-DD') where book_id = '00000005' and reader_id = '0006' and borrow_date = to_date('2019-2-12', 'YYYY-MM-DD'); insert into borrow values('00000006', '0005', to_date('2016-3-20', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2016-6-18', 'YYYY-MM-DD') where book_id = '00000006' and reader_id = '0005' and borrow_date = to_date('2016-3-20', 'YYYY-MM-DD'); insert into borrow values('00000007', '0008', to_date('2017-12-25', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2018-1-31', 'YYYY-MM-DD') where book_id = '00000007' and reader_id = '0008' and borrow_date = to_date('2017-12-25', 'YYYY-MM-DD'); insert into borrow values('00000009', '0006', to_date('2017-12-31', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2018-2-1', 'YYYY-MM-DD') where book_id = '00000009' and reader_id = '0006' and borrow_date = to_date('2017-12-31', 'YYYY-MM-DD'); insert into borrow values('00000010', '0005', to_date('2018-9-10', 'YYYY-MM-DD'),NULL); update borrow set return_date = to_date('2018-11-13', 'YYYY-MM-DD') where book_id = '00000010' and reader_id = '0005' and borrow_date = to_date('2018-9-10', 'YYYY-MM-DD');
true
75d8396d76629a34b55d3695d2a97f77feef89c2
SQL
Tiago-Pujia/proyecto-turnos
/sql/triggers.sql
UTF-8
8,107
3.515625
4
[]
no_license
DELIMITER // CREATE TRIGGER after_cambios_usuarios AFTER UPDATE ON tbl_usuarios FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_usuarios'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_usuario); IF (NEW.nombre != OLD.nombre) THEN CALL insert_log(tabla,'nombre',id_registro,NEW.nombre,OLD.nombre); END IF; IF (NEW.apellido != OLD.apellido) THEN CALL insert_log(tabla,'apellido',id_registro,NEW.apellido,OLD.apellido); END IF; IF (NEW.fecha_nacimiento != OLD.fecha_nacimiento) THEN CALL insert_log(tabla,'fecha_nacimiento',id_registro,NEW.fecha_nacimiento,OLD.fecha_nacimiento); END IF; IF (NEW.sexo != OLD.sexo) THEN CALL insert_log(tabla,'sexo',id_registro,NEW.sexo,OLD.sexo); END IF; IF (NEW.email != OLD.email) THEN CALL insert_log(tabla,'email',id_registro,NEW.email,OLD.email); END IF; IF (NEW.password != OLD.password) THEN CALL insert_log(tabla,'password',id_registro,NEW.password,OLD.password); END IF; IF (NEW.id_rol != OLD.id_rol) THEN CALL insert_log(tabla,'id_rol',id_registro,NEW.id_rol,OLD.id_rol); END IF; IF (NEW.fecha_confirmacion != OLD.fecha_confirmacion) THEN CALL insert_log(tabla,'fecha_confirmacion',id_registro,NEW.fecha_confirmacion,OLD.fecha_confirmacion); END IF; IF (NEW.fecha_baja != OLD.fecha_baja) THEN CALL insert_log(tabla,'fecha_baja',id_registro,NEW.fecha_baja,OLD.fecha_baja); END IF; END// CREATE TRIGGER after_cambios_predios AFTER UPDATE ON tbl_predios FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_predios'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_predio); IF (NEW.nombre != OLD.nombre) THEN CALL insert_log(tabla,'nombre',id_registro,NEW.nombre,OLD.nombre); END IF; IF (NEW.email != OLD.email) THEN CALL insert_log(tabla,'email',id_registro,NEW.email,OLD.email); END IF; IF (NEW.telefono != OLD.telefono) THEN CALL insert_log(tabla,'telefono',id_registro,NEW.telefono,OLD.telefono); END IF; IF (NEW.descripcion != OLD.descripcion) THEN CALL insert_log(tabla,'descripcion',id_registro,NEW.descripcion,OLD.descripcion); END IF; IF (NEW.provincia != OLD.provincia) THEN CALL insert_log(tabla,'provincia',id_registro,NEW.provincia,OLD.provincia); END IF; IF (NEW.localidad != OLD.localidad) THEN CALL insert_log(tabla,'localidad',id_registro,NEW.localidad,OLD.localidad); END IF; IF (NEW.direccion != OLD.direccion) THEN CALL insert_log(tabla,'direccion',id_registro,NEW.direccion,OLD.direccion); END IF; IF (NEW.fecha_baja != OLD.fecha_baja) THEN CALL insert_log(tabla,'fecha_baja',id_registro,NEW.fecha_baja,OLD.fecha_baja); END IF; END// CREATE TRIGGER after_cambios_predios_propietarios AFTER UPDATE on tbl_predios_propietarios FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_predios_propietarios'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_propietario); IF (NEW.fecha_baja != OLD.fecha_baja) THEN CALL insert_log(tabla,'fecha_baja',id_registro,NEW.fecha_baja,OLD.fecha_baja); END IF; END// CREATE TRIGGER after_cambios_actividades AFTER UPDATE ON tbl_actividades FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_actividades'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_actividad); IF (NEW.nombre_actividad != OLD.nombre_actividad) THEN CALL insert_log(tabla,'nombre_actividad',id_registro,NEW.nombre_actividad,OLD.nombre_actividad); END IF; IF (NEW.telefono != OLD.telefono) THEN CALL insert_log(tabla,'telefono',id_registro,NEW.telefono,OLD.telefono); END IF; IF (NEW.usuarios_maximos_x_turno != OLD.usuarios_maximos_x_turno) THEN CALL insert_log(tabla,'usuarios_maximos_x_turno',id_registro,NEW.usuarios_maximos_x_turno,OLD.usuarios_maximos_x_turno); END IF; IF (NEW.descripcion != OLD.descripcion) THEN CALL insert_log(tabla,'descripcion',id_registro,NEW.descripcion,OLD.descripcion); END IF; IF (NEW.fecha_baja != OLD.fecha_baja) THEN CALL insert_log(tabla,'fecha_baja',id_registro,NEW.fecha_baja,OLD.fecha_baja); END IF; END// CREATE TRIGGER after_cambios_actividades_horarios_semanales AFTER UPDATE ON tbl_actividades_horarios_semanales FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_actividades_horarios_semanales'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_horario); IF (NEW.dia != OLD.dia) THEN CALL insert_log(tabla,'dia',id_registro,NEW.dia,OLD.dia); END IF; IF (NEW.precio != OLD.precio) THEN CALL insert_log(tabla,'precio',id_registro,NEW.precio,OLD.precio); END IF; IF (NEW.hora_comienzo != OLD.hora_comienzo) THEN CALL insert_log(tabla,'hora_comienzo',id_registro,NEW.hora_comienzo,OLD.hora_comienzo); END IF; IF (NEW.hora_finalizacion != OLD.hora_finalizacion) THEN CALL insert_log(tabla,'hora_finalizacion',id_registro,NEW.hora_finalizacion,OLD.hora_finalizacion); END IF; END// CREATE TRIGGER after_cambios_administradores_x_predio AFTER UPDATE ON tbl_administradores_x_predio FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_administradores_x_predio'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_administrador); IF (NEW.acceso_global_actividades != OLD.acceso_global_actividades) THEN CALL insert_log(tabla,'acceso_global_actividades',id_registro,NEW.fecha_baja,OLD.fecha_baja); END IF; IF (NEW.fecha_baja != OLD.fecha_baja) THEN CALL insert_log(tabla,'fecha_baja',id_registro,NEW.fecha_baja,OLD.fecha_baja); END IF; END// CREATE TRIGGER after_cambios_administradores_x_actividad AFTER UPDATE ON tbl_administradores_x_actividad FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_administradores_x_actividad'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_administrador); IF (NEW.fecha_baja != OLD.fecha_baja) THEN CALL insert_log(tabla,'fecha_baja',id_registro,NEW.fecha_baja,OLD.fecha_baja); END IF; END// /* Plantilla: CREATE TRIGGER after_cambios_ -- Especificar AFTER UPDATE ON -- Especificar FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_usuarios'; DECLARE id_registro INT UNSIGNED; SET id_registro = (OLD.id_registro); IF (NEW.nombre != OLD.nombre) THEN CALL insert_log(tabla,'nombre',id_registro,NEW.nombre,OLD.nombre); END IF; END// */ */ /* Idea que deberia de completarse: CREATE TRIGGER after_cambios_usuarios AFTER UPDATE ON tbl_usuarios FOR EACH ROW BEGIN DECLARE tabla VARCHAR(100) DEFAULT 'tbl_usuarios'; DECLARE campo_id VARCHAR(100); DECLARE campo_tabla VARCHAR(100); DECLARE cursor_listo BIT DEFAULT 0; DECLARE cursor_1 CURSOR FOR SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'db_turnos' AND TABLE_NAME = tabla; DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET cursor_listo = 1; SET campo_id = (SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'db_turnos' AND TABLE_NAME = tabla AND COLUMN_KEY = 'PRI'); OPEN cursor_1; ciclo_1: LOOP FETCH cursor_1 INTO campo_tabla; IF (cursor_listo = 1) THEN LEAVE ciclo_1; END IF; SET @new_campo = NEW.campo_tabla, @old_campo = OLD.campo_tabla, @id = OLD.campo_id; IF (@new_campo != @old_campo) THEN INSERT INTO tbl_logs (tabla, campo_modificado, id, valor_nuevo, valor_viejo) VALUES ( tabla, campo_tabla, @id, @new_campo, @old_campo ); END IF; END LOOP ciclo_1; CLOSE cursor_1; END// */ DELIMITER ;
true
082ea33f1ae0db3a995f4a19eea6d01399bd2f0b
SQL
stefanorosanelli/bedita4-design
/be4-schema.sql
UTF-8
14,875
3.671875
4
[]
no_license
-- max num characters -- TINYTEXT 256 -- TEXT 65536 -- MEDIUMTEXT 16777216 -- LONGTEXT 4294967296 -- unsigned max values -- TINYINT 255 -- SMALLINT 65535 -- MEDIUMINT 16777215 -- INT 4294967295 -- BIGINT 18446744073709551615 SET FOREIGN_KEY_CHECKS=0; -- ------------------ -- USERS & AUTH -- ------------------ DROP TABLE IF EXISTS users; CREATE TABLE users ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, username VARCHAR(100) NOT NULL COMMENT 'login user name', password TINYTEXT NULL COMMENT 'login password, if empty external auth is used', blocked BOOL NOT NULL DEFAULT 0 COMMENT 'user blocked flag', last_login DATETIME DEFAULT NULL COMMENT 'last succcessful login datetime', last_login_err DATETIME DEFAULT NULL COMMENT 'last login filaure datetime', num_login_err TINYINT NOT NULL DEFAULT 0 COMMENT 'number of consecutive login failures', created DATETIME NOT NULL COMMENT 'record creation date', -- from MySQL 5.6.5 created NOT NULL DATETIME DEFAULT CURRENT_TIMESTAMP, modified DATETIME NOT NULL COMMENT 'record last modification date', -- from MySQL 5.6.5 modified NOT NULL DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP PRIMARY KEY (id), UNIQUE KEY (username) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'authenticated users basic data'; DROP TABLE IF EXISTS auth_providers; CREATE TABLE auth_providers ( id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, name TINYTEXT NOT NULL COMMENT 'external provider name: facebook, google, github...', url TINYTEXT NOT NULL COMMENT 'external provider url', params TINYTEXT NOT NULL COMMENT 'external provider parameters', PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'supported external auth providers'; DROP TABLE IF EXISTS external_auth; CREATE TABLE external_auth ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id INT UNSIGNED NOT NULL COMMENT 'reference to system user', auth_provider_id SMALLINT UNSIGNED NOT NULL COMMENT 'link to external auth provider: ', auth_params TEXT DEFAULT NULL COMMENT 'external auth params, serialized JSON', -- From MySQL 5.7.8 JSON type auth_username VARCHAR(255) COMMENT 'auth username on provider', PRIMARY KEY (id), UNIQUE KEY(auth_provider_id, auth_username), FOREIGN KEY (auth_provider_id) REFERENCES auth_providers(id), FOREIGN KEY(user_id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'user external auth data' ; -- ------------- -- CONFIG -- ------------- DROP TABLE IF EXISTS config; CREATE TABLE config ( name VARCHAR(255) NOT NULL COMMENT 'configuration parameter key', context TEXT NOT NULL COMMENT 'group of configuration parameters', value TEXT NOT NULL COMMENT 'configuration parameter value', created DATETIME NOT NULL COMMENT 'creation date', PRIMARY KEY (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'configuration parameters' ; -- ------------- -- OBJECTS -- ------------- DROP TABLE IF EXISTS object_types; CREATE TABLE object_types ( id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL COMMENT 'object type name', module_name VARCHAR(100) COMMENT 'default module for object type', PRIMARY KEY (id), UNIQUE (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'obect types definitions'; DROP TABLE IF EXISTS property_types; CREATE TABLE property_types ( id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL COMMENT 'property type name', params TEXT COMMENT 'property type parameters', PRIMARY KEY (id), UNIQUE (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'property types definitions'; DROP TABLE IF EXISTS properties; CREATE TABLE properties ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL COMMENT 'property name', object_type_id SMALLINT UNSIGNED NULL COMMENT 'link to object_types.id', property_type_id SMALLINT UNSIGNED NOT NULL COMMENT 'link to property_type.id', multiple BOOL DEFAULT 0 COMMENT 'multiple values for this property?', options TEXT COMMENT 'property predefined options', PRIMARY KEY(id), UNIQUE name_type(name, object_type_id), INDEX (name), INDEX (object_type_id), INDEX (property_type_id), FOREIGN KEY(object_type_id) REFERENCES object_types(id), FOREIGN KEY(property_type_id) REFERENCES property_types(id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'object properties definitions' ; DROP TABLE IF EXISTS object_properties; CREATE TABLE object_properties ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, property_id INT UNSIGNED NOT NULL COMMENT 'link to properties.id', object_id INT UNSIGNED NOT NULL COMMENT 'link to objects.id', property_value TEXT NOT NULL COMMENT 'property value of linked object', PRIMARY KEY(id), FOREIGN KEY(object_id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION, FOREIGN KEY(property_id) REFERENCES properties(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'object properties values' ; DROP TABLE IF EXISTS objects; CREATE TABLE objects ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, object_type_id SMALLINT UNSIGNED NOT NULL COMMENT 'object type id', status ENUM('on', 'off', 'draft', 'deleted') NOT NULL DEFAULT 'draft' COMMENT 'object status: on, draft, off, deleted', uname VARCHAR(255) NOT NULL COMMENT 'unique and url friendly resource name (slug)', locked BOOLEAN NOT NULL DEFAULT 0 COMMENT 'locked flag: some fields (status, uname,...) cannot be changed', created DATETIME NOT NULL COMMENT 'creation date', modified DATETIME NOT NULL COMMENT 'last modification date', published DATETIME NOT NULL COMMENT 'publication date, status set to ON', title TEXT NULL, description MEDIUMTEXT NULL, body MEDIUMTEXT NULL, extra MEDIUMTEXT NULL COMMENT 'object data extensions (JSON format)', -- From MySQL 5.7.8 use JSON type lang CHAR(3) NOT NULL COMMENT 'language used, ISO 639-3 code', created_by INT UNSIGNED NOT NULL COMMENT 'user who created object', modified_by INT UNSIGNED NOT NULL COMMENT 'last user to modify object', publish_start DATETIME NULL COMMENT 'publish from this date on', publish_end DATETIME NULL COMMENT 'publish until this date', PRIMARY KEY (id), UNIQUE KEY (uname), INDEX (object_type_id), FOREIGN KEY(object_type_id) REFERENCES object_types(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'base table for all objects'; -- -------------------------------------- -- OBJECT METADATA / SPECIAL PROPERTIES -- -------------------------------------- DROP TABLE IF EXISTS annotations; CREATE TABLE annotations ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, object_id INT UNSIGNED NOT NULL COMMENT 'link to annotated object', description TEXT NULL COMMENT 'annotation author', user_id INT UNSIGNED NOT NULL COMMENT 'user creating this annotation', created DATETIME NOT NULL COMMENT 'creation date', modified DATETIME NOT NULL COMMENT 'last modification date', params MEDIUMTEXT COMMENT 'annotation parameters (serialized JSON)', PRIMARY KEY(id), FOREIGN KEY(user_id) REFERENCES users(id), FOREIGN KEY(object_id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'object annotations, comments, notes'; -- DROP TABLE IF EXISTS date_items; -- CREATE TABLE date_items ( -- ); -- -------------------- -- CORE OBJECT TYPES -- -------------------- DROP TABLE IF EXISTS media; CREATE TABLE media ( id INT UNSIGNED NOT NULL, uri TEXT NOT NULL COMMENT 'media uri: relative path on local filesystem or remote URL', name TEXT NULL COMMENT 'file name', mime_type TINYTEXT NOT NULL COMMENT 'resource mime type', file_size INT(11) UNSIGNED NULL COMMENT 'file size in bytes (if local)', hash_file VARCHAR(255) NULL COMMENT 'md5 hash of local file', original_name TEXT NULL COMMENT 'original name for uploaded file', width MEDIUMINT(6) UNSIGNED NULL COMMENT '(image) width', height MEDIUMINT(6) UNSIGNED NULL COMMENT '(image) height', provider TINYTEXT NULL COMMENT 'external provider/service name', media_uid VARCHAR(255) NULL COMMENT 'uid, used for remote videos', thumbnail TINYTEXT NULL COMMENT 'remote media thumbnail URL', PRIMARY KEY(id), INDEX (hash_file), FOREIGN KEY(id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'media objects like images, audio, videos, files'; DROP TABLE IF EXISTS profiles; CREATE TABLE profiles ( id INT UNSIGNED NOT NULL, user_id INT UNSIGNED NULL COMMENT 'link to users.id, if not null', name TINYTEXT NULL COMMENT 'person name, can be NULL', surname TINYTEXT NULL COMMENT 'person surname, can be NULL', email VARCHAR(100) NULL COMMENT 'first email, can be NULL', person_title TINYTEXT NULL COMMENT 'person title, for example Sir, Madame, Prof, Doct, ecc., can be NULL', gender TINYTEXT NULL COMMENT 'gender, for example male, female, can be NULL', birthdate DATE NULL COMMENT 'date of birth, can be NULL', deathdate DATE NULL COMMENT 'date of death, can be NULL', company BOOL NOT NULL DEFAULT '0' COMMENT 'is a company, default: false', company_name TINYTEXT NULL COMMENT 'name of company, can be NULL', company_kind TINYTEXT NULL COMMENT 'type of company, can be NULL', street_address TEXT NULL COMMENT 'address street, can be NULL', city TINYTEXT NULL COMMENT 'city, can be NULL', zipcode TINYTEXT NULL COMMENT 'zipcode, can be NULL', country TINYTEXT NULL COMMENT 'country, can be NULL', state_name TINYTEXT NULL COMMENT 'state, can be NULL', phone TINYTEXT NULL COMMENT 'first phone number, can be NULL', website TEXT NULL COMMENT 'website url, can be NULL', PRIMARY KEY(id), UNIQUE KEY (email), FOREIGN KEY(user_id) REFERENCES users(id), FOREIGN KEY(id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'user profiles, addressbook data' ; -- ------------- -- RELATIONS -- ------------- DROP TABLE IF EXISTS relations; CREATE TABLE relations ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL COMMENT 'relation name', label TINYTEXT NOT NULL COMMENT 'relation label', inverse_name VARCHAR(100) NOT NULL COMMENT 'inverse relation name', inverse_label TINYTEXT NOT NULL COMMENT 'inverse relation label', description TEXT COMMENT 'relation description', params MEDIUMTEXT NULL COMMENT 'relation parameters definitions (JSON format)', -- From MySQL 5.7.8 use JSON type PRIMARY KEY (id), UNIQUE KEY (name), UNIQUE KEY (inverse_name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'object relations definitions'; DROP TABLE IF EXISTS relation_types; CREATE TABLE relation_types ( relation_id INT UNSIGNED NOT NULL COMMENT 'link to relation definition', object_type_id SMALLINT UNSIGNED NOT NULL COMMENT 'object type id', position ENUM ('left', 'right') NOT NULL COMMENT 'type position in relation', PRIMARY KEY relation_type_position (relation_id, object_type_id, position), FOREIGN KEY(relation_id) REFERENCES relations(id) ON DELETE CASCADE ON UPDATE NO ACTION, FOREIGN KEY(object_type_id) REFERENCES object_types(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'type constraints in object relations'; DROP TABLE IF EXISTS object_relations; CREATE TABLE object_relations ( left_id INT UNSIGNED NOT NULL COMMENT 'left part of the relation object id', relation_id INT UNSIGNED NOT NULL COMMENT 'link to relation definition', right_id INT UNSIGNED NOT NULL COMMENT 'right part of the relation object id', priority INT UNSIGNED NOT NULL COMMENT 'priority order in relation', inv_priority INT UNSIGNED NOT NULL COMMENT 'priority order in inverse relation', params MEDIUMTEXT NULL COMMENT 'relation parameters (JSON format)', -- From MySQL 5.7.8 use JSON type PRIMARY KEY left_relation_right (left_id, relation_id, right_id), INDEX (left_id), INDEX (right_id), FOREIGN KEY(left_id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION, FOREIGN KEY(right_id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION, FOREIGN KEY(relation_id) REFERENCES relations(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'relations between objects'; -- ------------- -- TREE -- ------------- DROP TABLE IF EXISTS trees; CREATE TABLE trees ( object_id INT UNSIGNED NOT NULL COMMENT 'object id', parent_id INT UNSIGNED NULL COMMENT 'parent object id', root_id INT UNSIGNED NOT NULL COMMENT 'root id (for tree scoping)', tree_left INT NOT NULL COMMENT 'left counter (for nested set model)', tree_right INT NOT NULL COMMENT 'right counter (for nested set model)', depth INT UNSIGNED NOT NULL COMMENT 'depth', menu INT UNSIGNED NOT NULL DEFAULT 1 COMMENT 'menu on/off', PRIMARY KEY(parent_id, object_id), INDEX object_parent (object_id, parent_id), INDEX root_left (root_id, tree_left), INDEX root_right (root_id, tree_right), INDEX (menu), FOREIGN KEY(object_id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION, FOREIGN KEY(parent_id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION, FOREIGN KEY(root_id) REFERENCES objects(id) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'tree structure'; SET FOREIGN_KEY_CHECKS=1;
true
e4c66b7c9cb144a81e4032f7288b534450bf9d4e
SQL
Liusyuanyu/Spirng2019CourseAssignments
/Web&Mobile Database Development CS-648/My SQL codes/Final capstone project script(Create db).sql
UTF-8
13,926
3.265625
3
[]
no_license
/* Hsuan Yu Liu 823327369 CS 648 Final Capstone Project script */ /******************************************************** * Create a database named rfid_store_db *********************************************************/ -- MySQL Script generated by MySQL Workbench -- Mon May 6 12:33:34 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ----------------------------------------------------- -- Schema RFID_store_db -- ----------------------------------------------------- DROP SCHEMA IF EXISTS `RFID_store_db` ; -- ----------------------------------------------------- -- Schema RFID_store_db -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `RFID_store_db` ; USE `RFID_store_db` ; -- ----------------------------------------------------- -- Table `Customers` -- ----------------------------------------------------- DROP TABLE IF EXISTS `Customers` ; CREATE TABLE IF NOT EXISTS `Customers` ( `Customer_Id` INT NOT NULL AUTO_INCREMENT, `RFID_ID` VARCHAR(45) NOT NULL, `password` VARBINARY(255) NOT NULL DEFAULT '0000', `e_mail` VARCHAR(128) NULL, `phone_number` VARCHAR(45) NULL, PRIMARY KEY (`Customer_Id`)) ENGINE = InnoDB; CREATE UNIQUE INDEX `Customer_Id_UNIQUE` ON `Customers` (`Customer_Id` ASC) VISIBLE; CREATE UNIQUE INDEX `RFID_ID_UNIQUE` ON `Customers` (`RFID_ID` ASC) VISIBLE; -- ----------------------------------------------------- -- Table `Ways_to_pay` -- ----------------------------------------------------- DROP TABLE IF EXISTS `Ways_to_pay` ; CREATE TABLE IF NOT EXISTS `Ways_to_pay` ( `payment_way_Id` INT NOT NULL AUTO_INCREMENT, `payment_way` VARCHAR(32) NOT NULL DEFAULT 'Cash', PRIMARY KEY (`payment_way_Id`)) ENGINE = InnoDB; CREATE UNIQUE INDEX `payment_way_UNIQUE` ON `Ways_to_pay` (`payment_way_Id` ASC) VISIBLE; -- ----------------------------------------------------- -- Table `Receipts` -- ----------------------------------------------------- DROP TABLE IF EXISTS `Receipts` ; CREATE TABLE IF NOT EXISTS `Receipts` ( `Receipt_Id` INT NOT NULL AUTO_INCREMENT, `Customer_Id` INT NOT NULL, `sum_of_price` DECIMAL(9,2) UNSIGNED NOT NULL DEFAULT 0.00, `payment_way_Id` INT NULL DEFAULT 0, `date` DATE NULL, PRIMARY KEY (`Receipt_Id`), CONSTRAINT `receipt_fk_payment` FOREIGN KEY (`payment_way_Id`) REFERENCES `Ways_to_pay` (`payment_way_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; CREATE INDEX `receipt_fk_payment_idx` ON `Receipts` (`payment_way_Id` ASC) VISIBLE; CREATE UNIQUE INDEX `Receipt_Id_UNIQUE` ON `Receipts` (`Receipt_Id` ASC) VISIBLE; -- ----------------------------------------------------- -- Table `Categories` -- ----------------------------------------------------- DROP TABLE IF EXISTS `Categories` ; CREATE TABLE IF NOT EXISTS `Categories` ( `category_Id` INT NOT NULL AUTO_INCREMENT, `category` VARCHAR(64) NOT NULL, PRIMARY KEY (`category_Id`)) ENGINE = InnoDB; CREATE UNIQUE INDEX `catefory_UNIQUE` ON `Categories` (`category_Id` ASC) VISIBLE; CREATE UNIQUE INDEX `category_UNIQUE` ON `Categories` (`category` ASC) VISIBLE; -- ----------------------------------------------------- -- Table `NutritionFacts` -- ----------------------------------------------------- DROP TABLE IF EXISTS `NutritionFacts` ; CREATE TABLE IF NOT EXISTS `NutritionFacts` ( `NutritionFacts_Id` INT NOT NULL AUTO_INCREMENT, `serving_size` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `serving_per_container` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `calories` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `saturated_fat` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `trans_fat` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `sodium` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `potassium` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `cholesterol` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `dietary_fiber` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, `sugars` DECIMAL(6,2) UNSIGNED NULL DEFAULT 0.0, PRIMARY KEY (`NutritionFacts_Id`)) ENGINE = InnoDB; CREATE UNIQUE INDEX `NutritionFacts_Id_UNIQUE` ON `NutritionFacts` (`NutritionFacts_Id` ASC) VISIBLE; -- ----------------------------------------------------- -- Table `Products` -- ----------------------------------------------------- DROP TABLE IF EXISTS `Products` ; CREATE TABLE IF NOT EXISTS `Products` ( `Product_Id` INT NOT NULL AUTO_INCREMENT, `product_name` VARCHAR(128) NOT NULL, `price` DECIMAL(9,2) NOT NULL DEFAULT 0.00, `ingredients` VARCHAR(1024) NULL, `category_Id` INT NOT NULL DEFAULT 3, `NutritionFacts_Id` INT NULL DEFAULT NULL, PRIMARY KEY (`Product_Id`), CONSTRAINT `products_fk_categories` FOREIGN KEY (`category_Id`) REFERENCES `Categories` (`category_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `products_fk_nutritionfacts` FOREIGN KEY (`NutritionFacts_Id`) REFERENCES `NutritionFacts` (`NutritionFacts_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; CREATE UNIQUE INDEX `product_name_UNIQUE` ON `Products` (`product_name` ASC) VISIBLE; CREATE INDEX `products_fk_nutritionfacts_idx` ON `Products` (`NutritionFacts_Id` ASC) VISIBLE; CREATE INDEX `products_fk_categories_idx` ON `Products` (`category_Id` ASC) VISIBLE; CREATE UNIQUE INDEX `Product_Id_UNIQUE` ON `Products` (`Product_Id` ASC) VISIBLE; -- ----------------------------------------------------- -- Table `Customers_to_Receipts` -- ----------------------------------------------------- DROP TABLE IF EXISTS `Customers_to_Receipts` ; CREATE TABLE IF NOT EXISTS `Customers_to_Receipts` ( `CToR_Id` INT NOT NULL AUTO_INCREMENT, `Customer_Id` INT NOT NULL, `Receipt_Id` INT NOT NULL, PRIMARY KEY (`CToR_Id`), CONSTRAINT `CToR_fk_customers` FOREIGN KEY (`Customer_Id`) REFERENCES `Customers` (`Customer_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `CToR_fk_receipts` FOREIGN KEY (`Receipt_Id`) REFERENCES `Receipts` (`Receipt_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; CREATE INDEX `CToR_fk_customer_idx` ON `Customers_to_Receipts` (`Customer_Id` ASC) VISIBLE; CREATE INDEX `CToR_fk_receipts_idx` ON `Customers_to_Receipts` (`Receipt_Id` ASC) VISIBLE; CREATE UNIQUE INDEX `CToR_Id_UNIQUE` ON `Customers_to_Receipts` (`CToR_Id` ASC) VISIBLE; -- ----------------------------------------------------- -- Table `Receipts_to_Products` -- ----------------------------------------------------- DROP TABLE IF EXISTS `Receipts_to_Products` ; CREATE TABLE IF NOT EXISTS `Receipts_to_Products` ( `RToP_Id` INT NOT NULL AUTO_INCREMENT, `Receipt_Id` INT NULL, `Product_Id` INT NULL, `quantity` INT NOT NULL DEFAULT 0, PRIMARY KEY (`RToP_Id`), CONSTRAINT `RToP_fk_receipts` FOREIGN KEY (`Receipt_Id`) REFERENCES `Receipts` (`Receipt_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `RToP_fk_products` FOREIGN KEY (`Product_Id`) REFERENCES `Products` (`Product_Id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; CREATE INDEX `RToP_fk_receipt_idx` ON `Receipts_to_Products` (`Receipt_Id` ASC) VISIBLE; CREATE INDEX `RToP_fk_products_idx` ON `Receipts_to_Products` (`Product_Id` ASC) VISIBLE; CREATE UNIQUE INDEX `RToP_Id_UNIQUE` ON `Receipts_to_Products` (`RToP_Id` ASC) VISIBLE; GRANT ALL ON `RFID_store_db`.* TO 'myrs_user'; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; /******************************************************** * Insert sample data in rfid_store_db *********************************************************/ -- Insert Customer into the schema INSERT INTO Customers (Customer_Id,RFID_ID,password,e_mail,phone_number)VALUES (1, '16FEDA6FFC', AES_ENCRYPT('000000', 'rfid_keysting'), 'noah_1@gmail.com', '6191234567'), (2, '16FEDA6FFD', AES_ENCRYPT('000011', 'rfid_keysting'), 'william_2@gmail.com', '6191234568'), (3, '16FEDA6FFE', AES_ENCRYPT('000022', 'rfid_keysting'), 'james_3@gmail.com', '6191234569'), (4, '16FEDA6FFF', AES_ENCRYPT('000033', 'rfid_keysting'), 'logan_4@gmail.com', '6191234570'), (5, '16FEDA7000', AES_ENCRYPT('440000', 'rfid_keysting'), 'benjamin_5@gmail.com', '6191234571'), (6, '16FEDA7001', AES_ENCRYPT('550000', 'rfid_keysting'), 'mason_6@gmail.com', '6191234572'), (7, '16FEDA7002', AES_ENCRYPT('660000', 'rfid_keysting'), 'olivia_7@gmail.com', '6191234573'), (8, '16FEDA7003', AES_ENCRYPT('770000', 'rfid_keysting'), 'ava_8@gmail.com', '6191234574'), (9, '16FEDA7004', AES_ENCRYPT('880000', 'rfid_keysting'), 'isabella_9@gmail.com', '6191234575'), (10, '16FEDA7005', AES_ENCRYPT('990000', 'rfid_keysting'), 'sophia_10@gmail.com', '6191234576'), (11, '16FEDA7006', AES_ENCRYPT('111111', 'rfid_keysting'), 'mia_11@gmail.com', '6191234577'), (12, '16FEDA7007', AES_ENCRYPT('222222', 'rfid_keysting'), 'amelia_12@gmail.com', '6191234578') ; -- Insert Nutrition Facts into the schema INSERT INTO NutritionFacts (NutritionFacts_Id, serving_size, serving_per_container, calories, saturated_fat, trans_fat, sodium, potassium, cholesterol, dietary_fiber, sugars) VALUES (1, 1, 1, 105, 0, 0, 1, 422, 0, 3, 14 ), (2, 8, 1, 150, 5, 3, 115, 37, 11, 0, 11 ), (3, 28, 10, 150, 1, 0, 15, 34, 0, 1, 2 ), (4, 113, 4, 420, 5, 0, 25, NULL, 5, 3, 58 ), (5, 12, 6, 140, 0, 0, 45, NULL, NULL, NULL, 44 ), (6, 2, 4.5, 50, 0.5, 0, 5, NULL, 25, NULL, 2 ), (7, 17, 12, 180, 2, 3.5, 0, 3500, 5, 1, 21 ), (8, 325, 4, 140, 1, 0, 115, 771, 10, 0, 8 ), (9, 37, 10, 200, 4, 0, 125, NULL, 0, 1, 21 ), (10, 1, 9, 150, 1.5, 0, 14, 326, 0, 1, 2 ) ; -- Insert Ways_to_pay into the schema INSERT INTO Ways_to_pay( payment_way_Id, payment_way )VALUES ( 1, 'Cash' ), ( 2, 'Credit/Debit' ) ; -- Insert Categories into the schema INSERT INTO Categories (category_Id,category) VALUES (1,'Grocery' ), (2,'Household'), (3,'TBD' ) ; -- Insert products into the schema INSERT INTO Products (Product_Id ,product_name ,price ,ingredients ,category_Id ,NutritionFacts_Id ) VALUES (1, 'Bananas', 0.19, 'Banana', 1, 1), (2, '2% Milk - 1gal - Market Pantry', 2.49, 'Milk and Vitamin D3.CONTAINS: MILK', 1, 2), (3, 'Kroger Sweet & Mesquite BBQ Potato Chips', 1.35, 'Potatoes, Vegetable Oil, Seasoning (Sugar, Salt, Spices [Including Paprika], Dextrose, Corn Maltodextrin, Onion Powder, Torula Yeast, Tomato Powderโ€ฆ)', 1, 3), (4, 'Private Selection Extreme Chocolate Brownies', 6.99, 'Brownie Mix (Powdered Sugar, Sugar, Bleached Enriched Wheat Flour [Wheat Flour, Niacin, Reduced Iron, Thiamine Mononitrate, Riboflavin, Folic Acid], Soybean Oil, Cocoa [Processed with Alkali], Contains 2% or Less of the Following: Dried Egg Whites, Corn Syrup, Salt, Corn Starch, Leavening [Sodium Bicarbonate, Sodium Aluminum Phosphate], Caramel Color, Dextrose, Soy Flour, Nonfat Dry Milk, Natural and Artificial Flavors)', 1, 4), (5, 'Coca-Cola Classic Soda', 1.79, 'CARBONATED WATER, HIGH FRUCTOSE CORN SYRUP, CARAMEL COLOR, PHOSPHORIC ACID, NATURAL FLAVORS, CAFFEINE', 1, 5), (6, 'Oscar Mayer Deli Fresh Smoked Uncured Ham - 9oz', 3.99, 'ham, water, cultured dextrose, brown sugar, contains less than 2% of salt, vinegar, cultured celery juice, sodium phosphates, sugar, cherry powder, dextrose. autolyzed yeast extract, caramel color', 1, 6), (7, 'M&M Pretzel Chocolate Candies, 15.4 Oz.', 4.86, ' MILK CHOCOLATE (SUGAR, CHOCOLATE, SKIM MILK, COCOA BUTTER, LACTOSE, MILKFAT, SOY LECITHIN, SALT, ARTIFICIAL FLAVORS)', 1, 7), (8, 'Starbucks Doubleshot Energy Vanilla Flavor Coffee Drink, 11 Fl. Oz., 4 Count', 6.48, 'Starbucks Coffee (Water, Coffee), Reduced-Fat Milk, Skim Milk, Sugar, Maltodextrin, Dextrose, Taurine, Cellulose Gel, Natural Flavors, Panax Ginseng Root Extract, Inositol, Guarana', 1, 8), (9, 'Nutella Hazelnut Spread, 13 oz - Pack of 2', 6.98, 'Sugar, Palm Oil, Hazelnuts, Cocoa, Skim Milk, Whey (Milk), Lecithin As Emulsifier (Soy), Vanillin: An Artificial Flavor.', 1, 9), (10, 'Ruffles Sour Cream & Onion Potato Chips, 8.5 Oz.', 2.5, 'Potatoes, Vegetable Oil,Sour Cream & Onion Seasoning, Contains Milk Ingredients.', 1, 10), (11, 'Tide Plus Downy April Fresh High Efficiency Liquid Laundry Detergent - 92 fl oz', 11.99, 'Contains biodegradable surfactants (anionic and nonionic) and enzymes', 2, NULL), (12, 'Dawn Pure Essentials Dishwashing Liquid Dish Soap Lemon Essence - 24oz', 3.79, 'Water, Sodium, Lauramine Oxide, Alcohol Denatured', 2, NULL) ; -- Insert a Receipts into the schema INSERT INTO Receipts (Receipt_Id, Customer_Id, sum_of_price, payment_way_Id, date) VALUES (1, 1, 9.58, 1, '2019/4/10'), (2, 2, 8.12, 1, '2019/4/11'), (3, 3, 15.33, 1, '2019/4/12'), (4, 4, 8.78, 1, '2019/4/13'), (5, 5, 5.78, 1, '2019/4/14'), (6, 6, 8.85, 1, '2019/4/15'), (7, 7, 11.84, 2, '2019/4/16'), (8, 8, 13.46, 2, '2019/4/17'), (9, 9, 7.93, 2, '2019/4/18'), (10, 10, 13.79, 2, '2019/4/19'), (11, 11, 32.95, 2, '2019/4/20'), (12, 12, 6.48, 2, '2019/4/21') ; -- Insert a customer to a receipt into the schema INSERT INTO customers_to_receipts (CToR_Id, Customer_Id, Receipt_Id) VALUES ( 1, 1, 1), ( 2, 2, 2), ( 3, 3, 3), ( 4, 4, 4), ( 5, 5, 5), ( 6, 6, 6), ( 7, 7, 7), ( 8, 8, 8), ( 9, 9, 9), ( 10, 10, 10) ; -- Insert a Receipts_to_Products into the schema INSERT INTO Receipts_to_Products (RToP_Id, Receipt_Id,Product_Id,quantity )VALUES (1, 1, 1, 4), (11, 1, 2, 3), (21, 1, 3, 1), (2, 2, 2, 2), (12, 2, 3, 1), (22, 2, 5, 1), (3, 3, 3, 1), (13, 3, 4, 2), (4, 4, 4, 1), (14, 4, 5, 1), (5, 5, 5, 1), (15, 5, 6, 1), (6, 6, 6, 1), (16, 6, 7, 1), (7, 7, 7, 1), (17, 7, 8, 1), (8, 8, 8, 1), (18, 8, 9, 1), (9, 9, 9, 1), (19, 9, 1, 5), (10, 10, 10, 4), (20, 10, 12, 1), (23, 11, 4, 2), (24, 11, 9, 1), (25, 11, 11, 1), (26, 12, 8, 3) ;
true
178fb065796b5d949ed4c5c38c04ec06658a09cd
SQL
mckenzma/pandemic-neo4j
/pandemic.cql
UTF-8
1,350
3.578125
4
[]
no_license
//Pandemic Game in Neo4j // Create Cities LOAD CSV WITH HEADERS FROM "https://docs.google.com/spreadsheets/u/0/d/1Z8R-lJ-cNGYeWDvMfjqhaj-a9wTVJwRIXCT8DacQvsc/export?format=csv&id=1Z8R-lJ-cNGYeWDvMfjqhaj-a9wTVJwRIXCT8DacQvsc&gid=0" AS row FIELDTERMINATOR ',' MERGE (city:City {name: row.City}) ON CREATE SET city.name = row.City, city.color = row.Color//, //city.population = toInteger(row.Population), //city.location = point({ longitude: row.Longitude, latitude: row.Latitude}) //ADD Long/Lat to (:City) LOAD CSV WITH HEADERS FROM "https://docs.google.com/spreadsheets/u/0/d/1Z8R-lJ-cNGYeWDvMfjqhaj-a9wTVJwRIXCT8DacQvsc/export?format=csv&id=1Z8R-lJ-cNGYeWDvMfjqhaj-a9wTVJwRIXCT8DacQvsc&gid=0" AS row FIELDTERMINATOR ',' MATCH (city:City {name: row.City}) SET city.location = point({ longitude: toFloat(row.Longitude), latitude: toFloat(row.Latitude)}) //Connect Cities LOAD CSV WITH HEADERS FROM "https://docs.google.com/spreadsheets/u/0/d/1jYpTcFmhCTxoiGssPQpqvQ0gyChc1qfHuYv-eepKDPc/export?format=csv&id=1jYpTcFmhCTxoiGssPQpqvQ0gyChc1qfHuYv-eepKDPc&gid=0" AS row FIELDTERMINATOR ',' MATCH (cStart:City {name: row.CityStart}) MATCH (cEnd:City {name: row.CityEnd}) MERGE (cStart)-[:CONNECTS_TO]->(cEnd) //Remove "duplicate connections" MATCH (city1:City)-[r1:CONNECTS_TO]->(city2:City)-[r2:CONNECTS_TO]->(city1) WHERE id(r1)>id(r2) DELETE r1
true
18a49066eb4627677d93c4c9803195bba11b7f55
SQL
imbok-pro/IManServer
/Scripts/SP/SP-BRCM#DUMP.sql
WINDOWS-1251
15,864
3.296875
3
[ "Apache-2.0" ]
permissive
-- BRCM#DUMP -- file: SP-BRCM#DUMP.sql -- by PF -- This file is distributed under Apache License 2.0 (01.2004). -- http://www.apache.org/licenses/ -- create 2019-09-16 -- update 2019-09-25 2019-10-31:2019-11-05 2021-04-20 CREATE GLOBAL TEMPORARY TABLE "SP"."BRCM_EQP" ( EQP_RID Number NOT NULL, EQP_RNAME Varchar2(128 BYTE), EQP_EID Varchar2(128 BYTE), EQP_NAME Varchar2(128 BYTE), EQP_DESIGN_FILE varchar2(40 BYTE), TV_X Number, TV_Y Number, TV_Z Number, UX_X Number, UX_Y Number, UX_Z Number, UY_X Number, UY_Y Number, UY_Z Number, UZ_X Number, UZ_Y Number, UZ_Z Number, CONSTRAINT eqp_pk PRIMARY KEY (EQP_RID) ) ON COMMIT PRESERVE ROWS ; COMMENT ON COLUMN "SP"."BRCM_EQP"."EQP_RID" IS ' (Record) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."EQP_RNAME" IS ' (RecordXXX) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."EQP_EID" IS ' ( EQP_DESIGN_FILE) (ELEMENT_ID) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."EQP_NAME" IS ' (de facto) (KKS-) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."EQP_DESIGN_FILE" IS 'GUID .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."TV_X" IS ' (HP_trans_vec) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."TV_Y" IS ' (HP_trans_vec) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."TV_Z" IS ' (HP_trans_vec) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UX_X" IS ' X (HP_unit_vec_x) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UX_Y" IS ' X (HP_unit_vec_x) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UX_Z" IS ' X (HP_unit_vec_x) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UY_X" IS ' Y (HP_unit_vec_y) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UY_Y" IS ' Y (HP_unit_vec_y) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UY_Z" IS ' Y (HP_unit_vec_y) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UZ_X" IS ' Z (HP_unit_vec_z) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UZ_Y" IS ' Z (HP_unit_vec_z) .'; COMMENT ON COLUMN "SP"."BRCM_EQP"."UZ_Z" IS ' Z (HP_unit_vec_z) .'; COMMENT ON TABLE "SP"."BRCM_EQP" IS '. .'; -------------------------------------------------------- -- DDL for Indexes -------------------------------------------------------- CREATE UNIQUE INDEX "SP"."BRCM_EQP_EID_DF" ON "SP"."BRCM_EQP" ("EQP_EID","EQP_DESIGN_FILE") ; -------------------------------------------------------- -- Constraints for Table BRCM_EQP -------------------------------------------------------- GRANT SELECT ON SP.BRCM_EQP to public; --============================================================================== CREATE GLOBAL TEMPORARY TABLE "SP"."BRCM_RACEWAY" ( RW_RID Number NOT NULL, RW_RNAME Varchar2(128 BYTE), RW_EID Varchar2(128 BYTE), RW_DESIGN_FILE varchar2(40 BYTE), RW_CLASS Varchar2(128 BYTE), CONSTRAINT BRCM_RACEWAY_PK PRIMARY KEY (RW_RID) ) ON COMMIT PRESERVE ROWS; COMMENT ON COLUMN "SP"."BRCM_RACEWAY"."RW_RID" IS ' (Record) RACEWAY .'; COMMENT ON COLUMN "SP"."BRCM_RACEWAY"."RW_RNAME" IS ' (RecordXXX) RACEWAY .'; COMMENT ON COLUMN "SP"."BRCM_RACEWAY"."RW_EID" IS ' (ELEMENT_ID) RACEWAY .'; COMMENT ON COLUMN "SP"."BRCM_RACEWAY"."RW_DESIGN_FILE" IS 'GUID .'; COMMENT ON TABLE "SP"."BRCM_RACEWAY" IS ' (RACEWAY). .'; -------------------------------------------------------- -- DDL for Indexes -------------------------------------------------------- CREATE UNIQUE INDEX "SP"."BRCM_RW_EID_DESIGN" ON "SP"."BRCM_RACEWAY" ("RW_EID","RW_DESIGN_FILE") ; GRANT SELECT ON SP.BRCM_RACEWAY to public; --============================================================================== CREATE GLOBAL TEMPORARY TABLE "SP"."BRCM_RLINE" ( RL_RID Number NOT NULL, RL_RNAME Varchar2(128 BYTE), RL_EID Varchar2(128 BYTE), RL_DESIGN_FILE varchar2(40 BYTE), "HP_catalog" varchar2(40 BYTE), "HP_system" varchar2(40 BYTE), "HP_variant" varchar2(40 BYTE), X1 Number, Y1 Number, Z1 Number, X2 Number, Y2 Number, Z2 Number, LENGTH Number, -- "HP_BendAngle" Varchar2(128 BYTE), "HP_BendRadius" Varchar2(128 BYTE), HP_RWID Varchar2(128 BYTE), -- -- HP_RWID, TEEs HP_RWID -- HP_RWID COURSE_NAME Varchar2(128 BYTE), SHELF_NUM Varchar2(40 BYTE), "HP_RWCategory" Varchar2(128 BYTE), "HP_RWCategory2" Varchar2(128 BYTE), "HP_description" Varchar2(4000 BYTE), "HP_ec:GUID" varchar2(40 BYTE), "HP_fitting" varchar2(40 BYTE), RW_RID Number ) ON COMMIT PRESERVE ROWS ; COMMENT ON COLUMN "SP"."BRCM_RLINE"."RL_RID" IS ' (Record) RLINE .'; COMMENT ON COLUMN "SP"."BRCM_RLINE"."RL_RNAME" IS ' (RecordXXX) RLINE .'; COMMENT ON COLUMN "SP"."BRCM_RLINE"."RL_EID" IS ' (ELEMENT_ID) RLINE .'; COMMENT ON COLUMN "SP"."BRCM_RLINE"."RL_DESIGN_FILE" IS 'GUID .'; COMMENT ON COLUMN "SP"."BRCM_RLINE"."LENGTH" IS ' .'; COMMENT ON COLUMN "SP"."BRCM_RLINE"."COURSE_NAME" IS 'H . HP_RWID, TEEs HP_RWID HP_RWID .'; COMMENT ON COLUMN "SP"."BRCM_RLINE"."SHELF_NUM" IS 'H .'; COMMENT ON COLUMN "SP"."BRCM_RLINE"."RW_RID" IS ' RACEWAY'; COMMENT ON TABLE "SP"."BRCM_RLINE" IS ' Routing Lines. .'; -------------------------------------------------------- -- DDL for Indexes -------------------------------------------------------- CREATE UNIQUE INDEX "SP"."BRCM_RL_RID" ON "SP"."BRCM_RLINE" ("RL_RID") ; CREATE UNIQUE INDEX "SP"."BRCM_RL_EID_DESIGN" ON "SP"."BRCM_RLINE" ("RL_EID","RL_DESIGN_FILE") ; CREATE INDEX "SP"."BRCM_RL_COURSE_NAME" ON "SP"."BRCM_RLINE" ("COURSE_NAME"); -------------------------------------------------------- -- Constraints for Table BRCM_EQP -------------------------------------------------------- ALTER TABLE "SP"."BRCM_RLINE" ADD PRIMARY KEY ("RL_RID") ENABLE; GRANT SELECT ON SP.BRCM_RLINE to public; --============================================================================== CREATE GLOBAL TEMPORARY TABLE "SP"."BRCM_ADJ" ( RL_RID1 Number NOT NULL, RL_RID2 Number NOT NULL, X Number NOT NULL, Y Number NOT NULL, Z Number NOT NULL, PARALLEL NUMBER(1,0) NOT NULL, CONSTRAINT rel_pk PRIMARY KEY (RL_RID1, RL_RID2) ) ON COMMIT PRESERVE ROWS ; COMMENT ON COLUMN "SP"."BRCM_ADJ"."RL_RID1" IS ' Routing Line. '; COMMENT ON COLUMN "SP"."BRCM_ADJ"."RL_RID2" IS ' Routing Line. '; COMMENT ON COLUMN "SP"."BRCM_ADJ"."X" IS ' .'; COMMENT ON COLUMN "SP"."BRCM_ADJ"."Y" IS ' .'; COMMENT ON COLUMN "SP"."BRCM_ADJ"."Z" IS ' .'; COMMENT ON COLUMN "SP"."BRCM_ADJ"."PARALLEL" IS '1 - RLINEs , 0 - '; COMMENT ON TABLE "SP"."BRCM_ADJ" IS ' RLINEs'; GRANT SELECT ON SP.BRCM_ADJ to public; --============================================================================== CREATE GLOBAL TEMPORARY TABLE "SP"."BRCM_CABLE" ( CBL_RID Number NOT NULL, CBL_RNAME Varchar2(128 BYTE) NOT NULL, "HP_CableNo" Varchar2(128 BYTE) NOT NULL, EQP_FROM_RID Number, EQP_TO_RID Number, START_RL_RID Number, "HP_VoltageLevel" Varchar2(128 BYTE), "HP_CableLength" Number, IS_VALID Number(1), CONSTRAINT cbl_pk PRIMARY KEY (CBL_RID) ) ON COMMIT PRESERVE ROWS ; COMMENT ON COLUMN "SP"."BRCM_CABLE"."CBL_RID" IS ' (Record) .'; COMMENT ON COLUMN "SP"."BRCM_CABLE"."CBL_RNAME" IS ' (RecordXXX) .'; COMMENT ON COLUMN "SP"."BRCM_CABLE"."HP_CableNo" IS ' ( KKS).'; COMMENT ON COLUMN "SP"."BRCM_CABLE"."EQP_FROM_RID" IS ' (. BRCM_EQP), .'; COMMENT ON COLUMN "SP"."BRCM_CABLE"."EQP_TO_RID" IS ' (. BRCM_EQP), .'; COMMENT ON COLUMN "SP"."BRCM_CABLE"."START_RL_RID" IS ' Routing Line (. BRCM_RLINE), . '; COMMENT ON COLUMN "SP"."BRCM_CABLE"."HP_VoltageLevel" IS ' (CTRL, LV1, etc.).'; COMMENT ON COLUMN "SP"."BRCM_CABLE"."HP_CableLength" IS ' .'; COMMENT ON COLUMN "SP"."BRCM_CABLE"."IS_VALID" IS '1 - . 0 - .'; COMMENT ON TABLE "SP"."BRCM_CABLE" IS '. .'; -------------------------------------------------------- -- DDL for Indexes -------------------------------------------------------- CREATE UNIQUE INDEX "SP"."BRCM_CABLE_CableNo" ON "SP"."BRCM_CABLE" ("HP_CableNo"); GRANT SELECT ON SP.BRCM_CABLE to public; --============================================================================== CREATE GLOBAL TEMPORARY TABLE "SP"."BRCM_AREP" ( AREP_RID Number NOT NULL, AREP_RNAME Varchar2(128 BYTE) NOT NULL, EQP_RID Number, EQP_MAX_DIST Number, EQP_FROM_X Number, EQP_FROM_Y Number, EQP_FROM_Z Number, CONSTRAINT arep_pk PRIMARY KEY (AREP_RID) ); COMMENT ON COLUMN "SP"."BRCM_AREP"."AREP_RID" IS ' (Record) .'; COMMENT ON COLUMN "SP"."BRCM_AREP"."AREP_RNAME" IS ' (RecordXXX) .'; COMMENT ON COLUMN "SP"."BRCM_AREP"."EQP_RID" IS ' . NULL. - NULL'; COMMENT ON COLUMN "SP"."BRCM_AREP"."EQP_MAX_DIST" IS ' ( () ) ( ...INT_CM_AREP/RecordXXX/...AREP_BIN_DATA/HP_MaxDistance).'; COMMENT ON COLUMN "SP"."BRCM_AREP"."EQP_FROM_X" IS ' ( ...INT_CM_AREP/RecordXXX/...AREP_BIN_DATA/HP_ObjectFromCoord1).'; COMMENT ON COLUMN "SP"."BRCM_AREP"."EQP_FROM_Y" IS ' ( ...INT_CM_AREP/RecordXXX/...AREP_BIN_DATA/HP_ObjectFromCoord1).'; COMMENT ON COLUMN "SP"."BRCM_AREP"."EQP_FROM_Z" IS ' ( ...INT_CM_AREP/RecordXXX/...AREP_BIN_DATA/HP_ObjectFromCoord1).'; COMMENT ON TABLE "SP"."BRCM_AREP" IS 'Equipment Reference Points?'; GRANT SELECT ON SP.BRCM_AREP to public; --============================================================================== CREATE GLOBAL TEMPORARY TABLE "SP"."BRCM_CFC" ( CFC_RID Number NOT NULL, CFC_RNAME Varchar2(128 BYTE) NOT NULL, CBL_RID Number, RL_RID Number, HP_CID Varchar2(128 BYTE), ORDINAL Number, CONSTRAINT cfc_pk PRIMARY KEY (CFC_RID) ) ON COMMIT PRESERVE ROWS ; COMMENT ON COLUMN "SP"."BRCM_CFC"."CFC_RID" IS ' (Record) .'; COMMENT ON COLUMN "SP"."BRCM_CFC"."CFC_RNAME" IS ' (RecordXXX) .'; COMMENT ON COLUMN "SP"."BRCM_CFC"."CBL_RID" IS ' .'; COMMENT ON COLUMN "SP"."BRCM_CFC"."RL_RID" IS ' (Routing Line).'; COMMENT ON COLUMN "SP"."BRCM_CFC"."HP_CID" IS '????'; COMMENT ON COLUMN "SP"."BRCM_CFC"."ORDINAL" IS ' RLine .'; COMMENT ON TABLE "SP"."BRCM_CFC" IS ' , . C .'; CREATE UNIQUE INDEX "SP"."BRCM_CFC_CBL_RL" ON "SP"."BRCM_CFC" ("CBL_RID","RL_RID"); GRANT SELECT ON SP.BRCM_AREP to public;
true
e694d84dace3c36a00f5c3018fba76de3526838a
SQL
ricgrisant/industria
/sql/SignUP.sql
UTF-8
1,968
3.5625
4
[]
no_license
DROP PROCEDURE IF EXISTS Funcion_SignUp_Cliente; DELIMITER $$ CREATE PROCEDURE Funcion_SignUp_Cliente( IN pc_userPassword VARCHAR(50), IN pc_nombre VARCHAR(50), IN pc_apellido VARCHAR(50), IN pc_telefono VARCHAR(50), IN pc_correo VARCHAR(50), OUT pcMensaje VARCHAR(2000), OUT pbOcurreError BOOLEAN ) BEGIN DECLARE temMensaje VARCHAR(1000); DECLARE vn_existeCorreo INTEGER DEFAULT 0; DECLARE vn_existeTelefono INTEGER DEFAULT 0; SET pbOcurreError :=TRUE; SET temMensaje := ''; SET pcMensaje := ''; /*Comprobando que la contraseรฑa no sea null:*/ IF pc_userPassword = '' OR pc_userPassword IS NULL THEN SET temMensaje := CONCAT(temMensaje,'contraseรฑa, '); END IF; /*Comprobando que el nombre no sea null:*/ IF pc_nombre = '' OR pc_nombre IS NULL THEN SET temMensaje := CONCAT(temMensaje,'nombre, '); END IF; /*Comprobando que el apellido no sea null:*/ IF pc_apellido = '' OR pc_apellido IS NULL THEN SET temMensaje := CONCAT(temMensaje,'apellido, '); END IF; /*Comprobando que el telefono no sea null:*/ IF pc_telefono = '' OR pc_telefono IS NULL THEN SET temMensaje := CONCAT(temMensaje,'telefono, '); END IF; SELECT COUNT(*) INTO vn_existeCorreo FROM Usuario WHERE usuario.correo = pc_correo; SELECT COUNT(*) INTO vn_existeTelefono FROM Usuario WHERE usuario.telefono = pc_telefono; IF temMensaje<>'' THEN SET pcMensaje := CONCAT('Campos requeridos para poder realizar la matrรญcula:',temMensaje); END IF; IF vn_existeCorreo >0 THEN SET pcMensaje := CONCAT('- Correo ya existe'); END IF; IF vn_existeTelefono >0 THEN SET pcMensaje := CONCAT('- Telefono ya existe'); END IF; IF pcMensaje = '' THEN SET autocommit = 0; INSERT INTO usuario (password, correo, nombre, apellido, telefono) VALUES (pc_userPassword, pc_correo, pc_nombre, pc_apellido, pc_telefono); SET pcMensaje := 'Usuario agregado con exito'; SET pbOcurreError:=FALSE; COMMIT; END IF; END $$ DELIMITER ;
true
885319b6a611f5a0f925ccb59cae170d66f3dcab
SQL
zhanghqgit/Seven-Weeks-Series
/Seven-Web-Frameworks-In-Seven-Weeks/clojure/zap/day1/resources/data/schema.sql
UTF-8
717
3.375
3
[]
no_license
-- zap schema CREATE TABLE project ( id INTEGER PRIMARY KEY, name TEXT NOT NULL ); CREATE TABLE issue ( id INTEGER PRIMARY KEY, project_id INTEGER REFERENCES project(id) NOT NULL, title TEXT NOT NULL, description TEXT NOT NULL, status INTEGER REFERENCES status(id) NOT NULL ); CREATE TABLE status ( id INTEGER PRIMARY KEY, name TEXT NOT NULL ); CREATE TABLE comment ( id INTEGER PRIMARY KEY, issue_id INTEGER REFERENCES issue(id) NOT NULL, content TEXT NOT NULL ); -- status enums INSERT INTO status (id, name) VALUES (1, 'open'); INSERT INTO status (id, name) VALUES (2, 'fixed'); INSERT INTO status (id, name) VALUES (3, 'wontfix'); INSERT INTO status (id, name) VALUES (4, 'invalid');
true
a54601361888e74f652edbe37407c3fc02a0ca1b
SQL
hxmn/WIM
/WIM/WIM_GATEWAY/WIM_LOADER/MVs/well_node_versionprbstg_mv.sql
UTF-8
3,766
2.8125
3
[]
no_license
drop materialized view WELL_NODE_VERSIONPRBSTG_MV ; CREATE MATERIALIZED VIEW "WIM_LOADER"."WELL_NODE_VERSIONPRBSTG_MV" ("NODE_ID", "SOURCE", "NODE_OBS_NO", "ACQUISITION_ID", "ACTIVE_IND", "COUNTRY", "COUNTY", "EASTING", "EASTING_OUOM", "EFFECTIVE_DATE", "ELEV", "ELEV_OUOM", "EW_DIRECTION", "EXPIRY_DATE", "GEOG_COORD_SYSTEM_ID_ORIG", "GEOG_COORD_SYSTEM_ID", "LATITUDE", "LEGAL_SURVEY_TYPE", "LOCATION_QUALIFIER", "LOCATION_QUALITY", "LONGITUDE", "MAP_COORD_SYSTEM_ID", "MD", "MD_OUOM", "MONUMENT_ID", "MONUMENT_SF_TYPE", "NODE_POSITION", "NORTHING", "NORTHING_OUOM", "NORTH_TYPE", "NS_DIRECTION", "POLAR_AZIMUTH", "POLAR_OFFSET", "POLAR_OFFSET_OUOM", "PPDM_GUID", "PREFERRED_IND", "PROVINCE_STATE", "REMARK", "REPORTED_TVD", "REPORTED_TVD_OUOM", "VERSION_TYPE", "X_OFFSET", "X_OFFSET_OUOM", "Y_OFFSET", "Y_OFFSET_OUOM", "IPL_XACTION_CODE", "ROW_CHANGED_BY", "ROW_CHANGED_DATE", "ROW_CREATED_BY", "ROW_CREATED_DATE", "IPL_UWI", "ROW_QUALITY", "IPL_UWI_LOCAL") ORGANIZATION HEAP PCTFREE 10 PCTUSED 0 INITRANS 2 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "APP_DATA" BUILD IMMEDIATE USING INDEX REFRESH FORCE ON DEMAND USING DEFAULT LOCAL ROLLBACK SEGMENT USING ENFORCED CONSTRAINTS DISABLE QUERY REWRITE AS SELECT NODE_ID, SOURCE, NODE_OBS_NO, ACQUISITION_ID, ACTIVE_IND, COUNTRY, COUNTY, EASTING, EASTING_OUOM, EFFECTIVE_DATE, ELEV, ELEV_OUOM, EW_DIRECTION, EXPIRY_DATE, -- QC# 1475 - this value is now converted using the below function in the stage view. GEOG_COORD_SYSTEM_ID GEOG_COORD_SYSTEM_ID_ORIG, -- PPDM_ADMIN.TLM_UTIL.GET_COORD_SYSTEM_ID (GEOG_COORD_SYSTEM_ID), GEOG_COORD_SYSTEM_ID, LATITUDE, LEGAL_SURVEY_TYPE, LOCATION_QUALIFIER, LOCATION_QUALITY, LONGITUDE, MAP_COORD_SYSTEM_ID, MD, MD_OUOM, MONUMENT_ID, MONUMENT_SF_TYPE, NODE_POSITION, NORTHING, NORTHING_OUOM, NORTH_TYPE, NS_DIRECTION, POLAR_AZIMUTH, POLAR_OFFSET, POLAR_OFFSET_OUOM, PPDM_GUID, PREFERRED_IND, PROVINCE_STATE, REMARK, REPORTED_TVD, REPORTED_TVD_OUOM, VERSION_TYPE, X_OFFSET, X_OFFSET_OUOM, Y_OFFSET, Y_OFFSET_OUOM, IPL_XACTION_CODE, ROW_CHANGED_BY, ROW_CHANGED_DATE, ROW_CREATED_BY, ROW_CREATED_DATE, IPL_UWI, ROW_QUALITY, IPL_UWI_LOCAL FROM WELL_NODE_VERSION@C_TLM_PROBE.WORLD; CREATE UNIQUE INDEX "WIM_LOADER"."WNV_PK1" ON "WIM_LOADER"."WELL_NODE_VERSIONPRBSTG_MV" ("NODE_ID", "SOURCE", "NODE_OBS_NO", "GEOG_COORD_SYSTEM_ID", "LOCATION_QUALIFIER") PCTFREE 10 INITRANS 2 MAXTRANS 163 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "APP_DATA" ; CREATE INDEX "WIM_LOADER"."WNVPRB_UWI" ON "WIM_LOADER"."WELL_NODE_VERSIONPRBSTG_MV" ("IPL_UWI") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "APP_DATA" ; COMMENT ON MATERIALIZED VIEW "WIM_LOADER"."WELL_NODE_VERSIONPRBSTG_MV" IS 'snapshot table for snapshot WIM_LOADER.WELL_NODE_VERSIONPRBSTG_MV';
true
76764f9eb63688fea24a9c6b84a6c8743fe95ec1
SQL
ATBMHTTT-2017/lab01-1212172-1412037-1412340
/policy_04_1212172.sql
UTF-8
659
3.09375
3
[ "Apache-2.0" ]
permissive
--Giam Doc duoc phep xem thong tin du an CREATE OR REPLACE VIEW View_GiamDoc_DuAn AS SELECT da.maDA, da.tenDA, da.kinhPhi, pb.tenPhong AS phongChuTri, cn.tenCN as ChiNhanh, nv.hoTen as truongDuAn FROM DuAn da, ChiNhanh cn, NhanVien nv, PhongBan pb WHERE da.phongChuTri = pb.maPhong and pb.chiNhanh = cn.maCN and da.truongDA = nv.maNV GROUP BY da.maDA, da.tenDA, da.kinhPhi, pb.tenPhong, cn.tenCN, nv.hoTen; GRANT SELECT ON View_GiamDoc_DuAn to rGiamDoc;
true
e449974e8a17322a6ef0dd8a413cce5a5ebe2448
SQL
r-n-i/blog
/resources/migrations/20170427195338-entries.up.sql
UTF-8
331
3.25
3
[]
no_license
CREATE TABLE IF NOT EXISTS entries( id int(11) NOT NULL AUTO_INCREMENT, user_id int(11) NOT NULL, title varchar(255) NOT NULL, body mediumtext NOT NULL, created_at timestamp DEFAULT 0, updated_at timestamp, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --;; CREATE INDEX entries_user_id on entries(user_id);
true
11ecdb9ee38aaa8e4c85f553f9a06790a58b40bf
SQL
sd6364152/Wb_da_script
/Quinn/killer/็•™ๅญ˜ไธ‹้™ๅˆ†ๆž/ๆœชๆธธๆˆ็”จๆˆทไธญๆœชๅฎžๅ่ฎค่ฏ็š„็”จๆˆทๆ•ฐ.sql
UTF-8
2,235
4.0625
4
[]
no_license
-- ๅœจๆฒกๆœ‰ๆธธๆˆ็š„ๆ–ฐๆณจๅ†Œ็”จๆˆทไธญ๏ผŒๆœ‰ๅคšๅฐ‘็”จๆˆท่งฆๅ‘ไบ†ๅฎžๅ่ฎค่ฏ็ญ–็•ฅ๏ผŒไธ”ๆฒกๆœ‰่ฟ›่กŒๅฎžๅ่ฎค่ฏ SELECT t20.date, count(t20.distinct_id)AS `ๆœชๆธธๆˆ็”จๆˆทๆ•ฐ`, count(t10.distinct_id)AS `ๆœชๆธธๆˆ็”จๆˆทไธญๆœชๆไบคๅฎžๅ่ฎค่ฏ็š„็”จๆˆทๆ•ฐ` FROM (SELECT t1.date, --่งฆๅ‘ไบ†ๅฎžๅ่ฎค่ฏไฝ†ๆ˜ฏๆฒกๆœ‰ๆไบคๅฎžๅ่ฎค่ฏ็š„็”จๆˆทๆ•ฐ t1.distinct_id FROM (SELECT date, regist_type, distinct_id FROM events WHERE event = 'register' AND appId in('20014','30015') AND date BETWEEN '2020-10-20' AND current_date() GROUP BY 1, 2, 3)t1 JOIN (SELECT date, distinct_id FROM events WHERE event = 'action' AND appId in('20014','30015') AND op_type = 'anti_indulgence_popup' AND pop_type in('close_service_popup','verified_mode_popup') AND gameTypeId = 1800 AND date BETWEEN '2020-10-20' AND current_date() GROUP BY 1, 2)t2 ON t1.distinct_id = t2.distinct_id LEFT JOIN (SELECT date, distinct_id FROM events WHERE event = 'regRealName' AND appId IN ('20014', '30015') AND RESULT = 'success' AND date BETWEEN '2020-10-20' AND current_date() GROUP BY 1, 2)t3 ON t2.distinct_id = t3.distinct_id AND t1.distinct_id = t3.distinct_id WHERE t3.distinct_id IS NULL GROUP BY 1 , 2)t10 RIGHT JOIN (SELECT t1.date,t1.distinct_id FROM (SELECT date,distinct_id FROM events WHERE event = 'register' AND appId IN ('20014', '30015') AND date BETWEEN '2020-10-20' AND current_date() GROUP BY 1, 2)t1 LEFT JOIN (SELECT date,distinct_id FROM events WHERE event = 'gameStart' AND gameTypeId = 1800 AND game_played = 0 AND date BETWEEN '2020-10-20' AND current_date() GROUP BY 1, 2)t3 ON t1.distinct_id = t3.distinct_id AND t1.date = t3.date WHERE t3.distinct_id IS NULL GROUP BY 1, 2) t20 ON t10.distinct_id = t20.distinct_id AND t10.date = t20.date GROUP BY 1 ORDER BY 1
true
de58bdb36f2d5fee94f2aed42b100da0b1356ed6
SQL
dsireusa/programs
/sql/schema.sql
UTF-8
28,780
3.109375
3
[]
no_license
-- MySQL dump 10.15 Distrib 10.0.21-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: ncsolar -- ------------------------------------------------------ -- Server version 10.0.21-MariaDB /*!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 `authority` -- DROP TABLE IF EXISTS `authority`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `authority` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `program_id` int(11) unsigned NOT NULL, `order` int(11) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `website` varchar(255) DEFAULT NULL, `enacted` datetime DEFAULT NULL, `enactedtext` varchar(255) DEFAULT NULL, `effective` datetime DEFAULT NULL, `effectivetext` varchar(255) DEFAULT NULL, `expired` datetime DEFAULT NULL, `expiredtext` varchar(255) DEFAULT NULL, `file_key` varchar(255) DEFAULT NULL, `file_name` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_authority_program_idx` (`program_id`), CONSTRAINT `fk_authority_program` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=3888 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `city` -- DROP TABLE IF EXISTS `city`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `city` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `state_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `fk_utility_state1_idx` (`state_id`), CONSTRAINT `fk_city_state1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=29790 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `contact` -- DROP TABLE IF EXISTS `contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `created_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_ts` timestamp NULL DEFAULT NULL, `first_name` varchar(255) DEFAULT NULL, `last_name` varchar(255) DEFAULT NULL, `organization_name` varchar(45) DEFAULT NULL, `web_visible_default` tinyint(1) NOT NULL DEFAULT '0', `phone` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `website_url` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `city` varchar(255) DEFAULT NULL, `state_id` int(11) unsigned DEFAULT NULL, `zip` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `state_id` (`state_id`), CONSTRAINT `contact_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5745 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `county` -- DROP TABLE IF EXISTS `county`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `county` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `state_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_utility_state1_idx` (`state_id`), CONSTRAINT `fk_county_state1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=3373 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `energy_category` -- DROP TABLE IF EXISTS `energy_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `energy_category` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `export` -- DROP TABLE IF EXISTS `export`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `export` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `key` varchar(255) NOT NULL, `created_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `type` varchar(8) NOT NULL, `size` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `implementing_sector` -- DROP TABLE IF EXISTS `implementing_sector`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `implementing_sector` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `parameter` -- DROP TABLE IF EXISTS `parameter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `parameter` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `parameter_set_id` int(11) unsigned NOT NULL, `source` varchar(45) DEFAULT NULL, `qualifier` varchar(45) DEFAULT NULL, `amount` decimal(10,0) DEFAULT NULL, `units` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_parameter_parameter_set1_idx` (`parameter_set_id`), CONSTRAINT `fk_parameter_parameter_set1` FOREIGN KEY (`parameter_set_id`) REFERENCES `parameter_set` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `parameter_set` -- DROP TABLE IF EXISTS `parameter_set`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `parameter_set` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `program_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `fk_parameter_set_program1_idx` (`program_id`), CONSTRAINT `fk_parameter_set_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `parameter_set_sector` -- DROP TABLE IF EXISTS `parameter_set_sector`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `parameter_set_sector` ( `sector_id` int(11) unsigned NOT NULL, `set_id` int(11) unsigned NOT NULL, UNIQUE KEY `sector_id` (`sector_id`,`set_id`), KEY `fk_parameter_set_sector_set1` (`set_id`), CONSTRAINT `fk_parameter_set_sector_sector1` FOREIGN KEY (`sector_id`) REFERENCES `sector` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_parameter_set_sector_set1` FOREIGN KEY (`set_id`) REFERENCES `parameter_set` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `parameter_set_technology` -- DROP TABLE IF EXISTS `parameter_set_technology`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `parameter_set_technology` ( `technology_id` int(11) unsigned NOT NULL, `set_id` int(11) unsigned NOT NULL, UNIQUE KEY `technology_id` (`technology_id`,`set_id`), KEY `fk_parameter_set_technology_set1` (`set_id`), CONSTRAINT `fk_parameter_set_technology_set1` FOREIGN KEY (`set_id`) REFERENCES `parameter_set` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_parameter_set_technology_technology1` FOREIGN KEY (`technology_id`) REFERENCES `technology` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program` -- DROP TABLE IF EXISTS `program`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `state_id` int(11) unsigned NOT NULL, `is_entire_state` tinyint(1) NOT NULL DEFAULT '0', `implementing_sector_id` int(11) unsigned NOT NULL, `program_category_id` int(11) unsigned NOT NULL, `program_type_id` int(11) unsigned NOT NULL, `created_by_user_id` int(11) unsigned NOT NULL, `code` varchar(45) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `updated_ts` datetime DEFAULT NULL, `created_ts` timestamp NULL DEFAULT NULL, `published` tinyint(1) NOT NULL DEFAULT '0', `websiteurl` varchar(255) DEFAULT NULL, `administrator` varchar(255) DEFAULT NULL, `fundingsource` varchar(255) DEFAULT NULL, `budget` varchar(255) DEFAULT NULL, `start_date` datetime DEFAULT NULL, `start_date_text` varchar(255) DEFAULT NULL, `end_date` datetime DEFAULT NULL, `end_date_text` varchar(255) DEFAULT NULL, `summary` text, `additional_technologies` text, PRIMARY KEY (`id`), KEY `fk_program_state1_idx` (`state_id`), KEY `fk_program_program_category1_idx` (`program_category_id`), KEY `fk_program_program_type1_idx` (`program_type_id`), KEY `fk_program_implementing_sector1_idx` (`implementing_sector_id`), KEY `fk_program_user1_idx` (`created_by_user_id`), KEY `ix_code` (`code`), CONSTRAINT `fk_program_implementing_sector1` FOREIGN KEY (`implementing_sector_id`) REFERENCES `implementing_sector` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_program_category1` FOREIGN KEY (`program_category_id`) REFERENCES `program_category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_program_type1` FOREIGN KEY (`program_type_id`) REFERENCES `program_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_state1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_user1` FOREIGN KEY (`created_by_user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=5665 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_category` -- DROP TABLE IF EXISTS `program_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_category` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_city` -- DROP TABLE IF EXISTS `program_city`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_city` ( `program_id` int(11) unsigned NOT NULL, `city_id` int(11) unsigned NOT NULL, UNIQUE KEY `city_id` (`city_id`,`program_id`), KEY `fk_program_city_program1_idx` (`program_id`), CONSTRAINT `fk_program_city_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `program_city_ibfk_1` FOREIGN KEY (`city_id`) REFERENCES `city` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_contact` -- DROP TABLE IF EXISTS `program_contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_contact` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `program_id` int(11) unsigned NOT NULL, `contact_id` int(11) unsigned NOT NULL, `webvisible` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `fk_program_contact_contact1_idx` (`contact_id`), KEY `fk_program_contact_program1_idx` (`program_id`), CONSTRAINT `fk_program_contact_contact1` FOREIGN KEY (`contact_id`) REFERENCES `contact` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_contact_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=6605 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_county` -- DROP TABLE IF EXISTS `program_county`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_county` ( `program_id` int(11) unsigned NOT NULL, `county_id` int(11) unsigned NOT NULL, UNIQUE KEY `county_id` (`county_id`,`program_id`), KEY `fk_program_county_program1_idx` (`program_id`), CONSTRAINT `fk_program_county_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `program_county_ibfk_1` FOREIGN KEY (`county_id`) REFERENCES `county` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_detail` -- DROP TABLE IF EXISTS `program_detail`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_detail` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `program_id` int(11) unsigned NOT NULL, `label` varchar(255) NOT NULL, `value` text, `display_order` int(11) NOT NULL DEFAULT '0', `template_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_program_detail_program1` (`program_id`), KEY `fk_program_detail_template1` (`template_id`), CONSTRAINT `fk_program_detail_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `program_detail_ibfk_1` FOREIGN KEY (`template_id`) REFERENCES `program_detail_template` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=19993 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_detail_template` -- DROP TABLE IF EXISTS `program_detail_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_detail_template` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type_id` int(11) unsigned NOT NULL, `label` varchar(255) NOT NULL, `display_order` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `fk_program_detail_type1` (`type_id`), CONSTRAINT `fk_program_detail_type1` FOREIGN KEY (`type_id`) REFERENCES `program_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=129 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_memo` -- DROP TABLE IF EXISTS `program_memo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_memo` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `program_id` int(11) unsigned NOT NULL, `added_by_user` int(11) unsigned NOT NULL, `added` datetime DEFAULT NULL, `memo` text, PRIMARY KEY (`id`), KEY `fk_program_memo_program1_idx` (`program_id`), KEY `fk_program_memo_user1_idx` (`added_by_user`), CONSTRAINT `fk_program_memo_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_memo_user1` FOREIGN KEY (`added_by_user`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_sector` -- DROP TABLE IF EXISTS `program_sector`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_sector` ( `program_id` int(11) unsigned NOT NULL, `sector_id` int(11) unsigned NOT NULL, PRIMARY KEY (`program_id`,`sector_id`), KEY `fk_program_sector_sector1_idx` (`sector_id`), KEY `fk_program_sector_program1_idx` (`program_id`), CONSTRAINT `fk_program_sector_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_sector_sector1` FOREIGN KEY (`sector_id`) REFERENCES `sector` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_technology` -- DROP TABLE IF EXISTS `program_technology`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_technology` ( `program_id` int(11) unsigned NOT NULL, `technology_id` int(11) unsigned NOT NULL, PRIMARY KEY (`program_id`,`technology_id`), KEY `fk_program_technology_technology1_idx` (`technology_id`), KEY `fk_program_technology_program1_idx` (`program_id`), CONSTRAINT `fk_program_technology_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_technology_technology1` FOREIGN KEY (`technology_id`) REFERENCES `technology` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_type` -- DROP TABLE IF EXISTS `program_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_type` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `program_category_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `fk_program_type_program_category1_idx` (`program_category_id`), CONSTRAINT `fk_program_type_program_category1` FOREIGN KEY (`program_category_id`) REFERENCES `program_category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_utility` -- DROP TABLE IF EXISTS `program_utility`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_utility` ( `program_id` int(11) unsigned NOT NULL, `utility_id` int(11) unsigned NOT NULL, PRIMARY KEY (`program_id`,`utility_id`), KEY `fk_program_utility_utility1_idx` (`utility_id`), KEY `fk_program_utility_program1_idx` (`program_id`), CONSTRAINT `fk_program_utility_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_program_utility_utility1` FOREIGN KEY (`utility_id`) REFERENCES `utility` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `program_zipcode` -- DROP TABLE IF EXISTS `program_zipcode`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_zipcode` ( `program_id` int(11) unsigned NOT NULL, `zipcode_id` int(11) unsigned NOT NULL, PRIMARY KEY (`program_id`,`zipcode_id`), KEY `program_id` (`program_id`), KEY `zipcode_id` (`zipcode_id`), CONSTRAINT `program_zipcode_ibfk_1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `program_zipcode_ibfk_2` FOREIGN KEY (`zipcode_id`) REFERENCES `zipcode` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `search_log` -- DROP TABLE IF EXISTS `search_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `search_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `searchdate` datetime DEFAULT NULL, `ip` varchar(45) DEFAULT NULL, `filtertype` varchar(45) DEFAULT NULL, `text` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `sector` -- DROP TABLE IF EXISTS `sector`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sector` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `fieldname` varchar(45) DEFAULT NULL, `is_selectable` tinyint(1) NOT NULL DEFAULT '1', `parent_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `parent_id` (`parent_id`), CONSTRAINT `sector_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `sector` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `state` -- DROP TABLE IF EXISTS `state`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `state` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `abbreviation` char(2) NOT NULL, `name` varchar(45) NOT NULL, `is_territory` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `abbreviation` (`abbreviation`) ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `subscription_memo` -- DROP TABLE IF EXISTS `subscription_memo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `subscription_memo` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `program_id` int(11) unsigned NOT NULL, `added_by_user` int(11) unsigned NOT NULL, `added` datetime DEFAULT NULL, `memo` text, PRIMARY KEY (`id`), KEY `fk_subscription_memo_program1_idx` (`program_id`), KEY `fk_subscription_memo_user1_idx` (`added_by_user`), CONSTRAINT `fk_subscription_memo_program1` FOREIGN KEY (`program_id`) REFERENCES `program` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_subscription_memo_user1` FOREIGN KEY (`added_by_user`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `technology` -- DROP TABLE IF EXISTS `technology`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `technology` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `technology_category_id` int(11) unsigned NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `fk_technology_technology_category1_idx` (`technology_category_id`), CONSTRAINT `fk_technology_technology_category1` FOREIGN KEY (`technology_category_id`) REFERENCES `technology_category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=141 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `technology_category` -- DROP TABLE IF EXISTS `technology_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `technology_category` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `energy_category_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `energy_category_id` (`energy_category_id`), CONSTRAINT `technology_category_ibfk_1` FOREIGN KEY (`energy_category_id`) REFERENCES `energy_category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `username` varchar(50) DEFAULT NULL, `password` varchar(128) DEFAULT NULL, `password_token` varchar(128) DEFAULT NULL, `first_name` varchar(128) DEFAULT NULL, `last_name` varchar(128) DEFAULT NULL, `role` varchar(8) NOT NULL DEFAULT 'guest', `state` char(8) DEFAULT 'active', `created_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_ts` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `email` (`email`), KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=535 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `utility` -- DROP TABLE IF EXISTS `utility`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `utility` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `state_id` int(11) unsigned NOT NULL, `utility_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `fk_utility_state1_idx` (`state_id`), CONSTRAINT `fk_utility_state1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=3210 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `utility_zipcode` -- DROP TABLE IF EXISTS `utility_zipcode`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `utility_zipcode` ( `utility_id` int(11) unsigned NOT NULL, `zipcode_id` int(11) unsigned NOT NULL, PRIMARY KEY (`utility_id`,`zipcode_id`), KEY `fk_utility_zipcode_zipcode1_idx` (`zipcode_id`), KEY `fk_utility_zipcode_utility1_idx` (`utility_id`), CONSTRAINT `fk_utility_zipcode_utility1` FOREIGN KEY (`utility_id`) REFERENCES `utility` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_utility_zipcode_zipcode1` FOREIGN KEY (`zipcode_id`) REFERENCES `zipcode` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `zipcode` -- DROP TABLE IF EXISTS `zipcode`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `zipcode` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `zipcode` varchar(16) NOT NULL, `city_id` int(11) unsigned NOT NULL, `state_id` int(11) unsigned NOT NULL, `county_id` int(11) unsigned NOT NULL, `latitude` decimal(10,0) DEFAULT NULL, `longitude` decimal(10,0) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `zipcode` (`zipcode`), KEY `fk_zipcode_city1` (`city_id`), KEY `fk_zipcode_county1` (`county_id`), KEY `fk_zipcode_state1` (`state_id`), CONSTRAINT `fk_zipcode_city1` FOREIGN KEY (`city_id`) REFERENCES `city` (`id`), CONSTRAINT `fk_zipcode_county1` FOREIGN KEY (`county_id`) REFERENCES `county` (`id`), CONSTRAINT `fk_zipcode_state1` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=41873 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!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 2015-10-15 15:24:10
true
330d0723746fcab21bad61da3295ef900ae7cad7
SQL
dmfabritius/fbla-conf-app
/SQL scripts/Perf Testing - Number of Judges per Event.sql
UTF-8
416
3.953125
4
[ "MIT" ]
permissive
select EventID, MaxJudges=MAX(NumJudges) from (select EventID, MemberID, NumJudges=COUNT(JudgeID) from (select JC.EventID, JC.JudgeID, JR.MemberID from JudgeCredentials JC inner join JudgeResponses JR on JC.JudgeID=JR.JudgeID where ConferenceID=2058 group by JC.EventID, JC.JudgeID, JR.MemberID having SUM(JR.Response) <> -1 ) JudgesByMember group by EventID, MemberID ) JudgeCount group by EventID
true
2ee2fd3983d56bb8fcb148f15cd16a314bc8ebe8
SQL
nacio1/Polla3x2
/polla3x2.sql
UTF-8
18,419
2.921875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 30, 2020 at 07:12 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: `polla3x2` -- -- -------------------------------------------------------- -- -- Table structure for table `abonos` -- CREATE TABLE `abonos` ( `abono_id` int(11) NOT NULL, `usuario` varchar(30) NOT NULL, `banco_receptor` varchar(50) NOT NULL, `banco_emisor` varchar(50) NOT NULL, `num_ref` varchar(30) NOT NULL, `num_cuenta` varchar(30) NOT NULL, `monto` decimal(20,2) NOT NULL, `fecha_abono` date NOT NULL, `status` varchar(20) NOT NULL DEFAULT 'pendiente' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `abonos` -- INSERT INTO `abonos` (`abono_id`, `usuario`, `banco_receptor`, `banco_emisor`, `num_ref`, `num_cuenta`, `monto`, `fecha_abono`, `status`) VALUES (7, 'nacio', 'banesco', '2', '123456487', '565467869786', '300000.00', '2020-06-25', 'rechazado'), (8, 'nacio', 'banesco', '1', '1234567891', '43534345345345345333', '350000.00', '2020-06-26', 'aprobado'), (9, 'di_maria', 'Banesco', '2', '5654645', '68768765654645879678', '400000.00', '2020-06-27', 'aprobado'), (10, 'nacio', 'Banesco', '2', '6456', '54654654645645645645', '400000.00', '2020-06-29', 'pendiente'); -- -------------------------------------------------------- -- -- Table structure for table `bancos` -- CREATE TABLE `bancos` ( `banco_id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `bancos` -- INSERT INTO `bancos` (`banco_id`, `nombre`) VALUES (1, 'Banesco'), (2, 'BBVA Banco Provincial'), (3, 'Banco Mercantil'), (4, 'BOD'), (5, 'BanCaribe'), (6, 'Banco Exterior'), (7, 'Banco Nacional de Crรฉdito'), (8, 'BFC'), (9, 'Banco Caronรญ'), (10, 'Banco Sofitasa'), (11, 'Banco plaza'), (12, '100% Banco'), (13, 'Banplus'), (14, 'Banco de Venezuela'); -- -------------------------------------------------------- -- -- Table structure for table `cuentasbancarias` -- CREATE TABLE `cuentasbancarias` ( `cuenta_id` int(11) NOT NULL, `usuario` varchar(20) NOT NULL, `banco_id` int(2) NOT NULL, `numero_cuenta` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `cuentasbancarias` -- INSERT INTO `cuentasbancarias` (`cuenta_id`, `usuario`, `banco_id`, `numero_cuenta`) VALUES (1, 'nacio', 3, '11111111111111111235'), (2, 'nacio', 2, '11111111111111111112'), (3, 'james', 1, '01204544120415466678'), (4, 'di_maria', 2, '54654645654444444444'), (5, 'suso', 1, '54646546544445644444'); -- -------------------------------------------------------- -- -- Table structure for table `jornadas` -- CREATE TABLE `jornadas` ( `jornada_id` int(11) NOT NULL, `fecha_jornada` date NOT NULL, `fecha_cierre` datetime NOT NULL, `1va_ejemplares` int(2) NOT NULL, `2va_ejemplares` int(2) NOT NULL, `3va_ejemplares` int(2) NOT NULL, `4va_ejemplares` int(2) NOT NULL, `5va_ejemplares` int(2) NOT NULL, `6va_ejemplares` int(2) NOT NULL, `1er_lugar` decimal(3,2) NOT NULL, `2do_lugar` decimal(3,2) NOT NULL, `coste_jugada` varchar(30) NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `jornadas` -- INSERT INTO `jornadas` (`jornada_id`, `fecha_jornada`, `fecha_cierre`, `1va_ejemplares`, `2va_ejemplares`, `3va_ejemplares`, `4va_ejemplares`, `5va_ejemplares`, `6va_ejemplares`, `1er_lugar`, `2do_lugar`, `coste_jugada`, `status`) VALUES (1, '2020-06-17', '2020-06-19 19:00:00', 15, 10, 10, 10, 8, 12, '0.60', '0.20', '200000', 0), (3, '2020-06-26', '2020-06-28 14:35:00', 11, 12, 14, 13, 11, 14, '0.60', '0.20', '200000', 0), (4, '2020-07-06', '2020-07-06 16:00:00', 12, 10, 13, 11, 14, 14, '0.60', '0.20', '200000', 1); -- -------------------------------------------------------- -- -- Table structure for table `jugadas` -- CREATE TABLE `jugadas` ( `jugada_id` int(11) NOT NULL, `jornada_id` int(11) NOT NULL, `usuario` varchar(30) NOT NULL, `jugado_por` varchar(30) NOT NULL DEFAULT 'jugador', `fecha_jugada` datetime NOT NULL, `esGratis` tinyint(1) NOT NULL DEFAULT '0', `1va_ejemplar` int(2) NOT NULL, `1va_pts` int(1) NOT NULL, `2va_ejemplar` int(2) NOT NULL, `2va_pts` int(1) NOT NULL, `3va_ejemplar` int(2) NOT NULL, `3va_pts` int(1) NOT NULL, `4va_ejemplar` int(2) NOT NULL, `4va_pts` int(1) NOT NULL, `5va_ejemplar` int(2) NOT NULL, `5va_pts` int(1) NOT NULL, `6va_ejemplar` int(2) NOT NULL, `6va_pts` int(1) NOT NULL, `total_pts` int(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `jugadas` -- INSERT INTO `jugadas` (`jugada_id`, `jornada_id`, `usuario`, `jugado_por`, `fecha_jugada`, `esGratis`, `1va_ejemplar`, `1va_pts`, `2va_ejemplar`, `2va_pts`, `3va_ejemplar`, `3va_pts`, `4va_ejemplar`, `4va_pts`, `5va_ejemplar`, `5va_pts`, `6va_ejemplar`, `6va_pts`, `total_pts`) VALUES (6, 1, 'nacio', 'jugador', '2020-06-16 15:50:49', 0, 1, 3, 2, 0, 3, 1, 4, 0, 5, 1, 6, 3, 8), (7, 1, 'nacio', 'jugador', '2020-06-16 15:51:32', 0, 2, 3, 1, 0, 2, 0, 1, 3, 2, 5, 1, 0, 11), (8, 1, 'nacio', 'jugador', '2020-06-16 15:53:05', 0, 3, 3, 3, 0, 3, 1, 3, 0, 3, 0, 3, 0, 4), (9, 1, 'nacio', 'jugador', '2020-06-18 15:55:15', 0, 5, 1, 5, 3, 5, 0, 5, 1, 5, 1, 5, 0, 6), (10, 1, 'nacio', 'jugador', '2020-06-18 15:58:07', 0, 10, 0, 10, 0, 10, 0, 10, 5, 8, 3, 11, 1, 9), (11, 1, 'nacio', 'jugador', '2020-06-18 15:59:00', 1, 3, 3, 3, 0, 3, 1, 3, 0, 3, 0, 3, 0, 4), (12, 1, 'nacio', 'jugador', '2020-06-17 16:00:00', 0, 4, 1, 4, 0, 4, 3, 4, 0, 4, 0, 4, 5, 9), (13, 1, 'nacio', 'jugador', '2020-06-17 16:00:18', 0, 1, 3, 1, 0, 1, 0, 1, 3, 1, 3, 1, 0, 9), (14, 1, 'nacio', 'jugador', '2020-06-17 16:29:09', 0, 5, 1, 5, 3, 5, 0, 5, 1, 5, 1, 5, 0, 6), (15, 1, 'nacio', 'jugador', '2020-06-17 16:32:25', 1, 5, 1, 5, 3, 5, 0, 5, 1, 5, 1, 5, 0, 6), (16, 1, 'nacio', 'jugador', '2020-06-17 16:32:47', 0, 1, 3, 2, 0, 2, 0, 1, 3, 2, 5, 1, 0, 11), (17, 1, 'nacio', 'jugador', '2020-06-18 16:33:21', 0, 1, 3, 1, 0, 1, 0, 1, 3, 1, 3, 1, 0, 9), (18, 1, 'nacio', 'jugador', '2020-06-18 16:33:57', 1, 2, 3, 2, 0, 2, 0, 2, 0, 2, 5, 2, 0, 8), (19, 1, 'nacio', 'jugador', '2020-06-18 16:34:20', 0, 1, 3, 3, 0, 1, 0, 1, 3, 8, 3, 10, 0, 9), (20, 3, 'nacio', 'jugador', '2020-06-26 15:46:46', 0, 5, 1, 3, 0, 5, 0, 5, 0, 3, 5, 4, 0, 6), (21, 3, 'nacio', 'jugador', '2020-06-26 15:48:28', 1, 1, 0, 8, 0, 6, 0, 5, 0, 7, 1, 14, 0, 1), (22, 3, 'nacio', 'jugador', '2020-06-26 15:53:11', 0, 7, 0, 4, 0, 4, 0, 4, 5, 3, 5, 4, 0, 10), (23, 3, 'nacio', 'jugador', '2020-06-26 15:54:20', 0, 11, 0, 10, 0, 9, 3, 8, 3, 6, 0, 5, 0, 6), (24, 3, 'nacio', 'jugador', '2020-06-26 15:54:58', 1, 10, 0, 8, 0, 3, 0, 9, 0, 5, 0, 6, 0, 0), (25, 3, 'suso', 'jugador', '2020-06-26 22:30:10', 0, 1, 0, 7, 1, 8, 0, 6, 0, 5, 0, 4, 0, 1), (26, 3, 'suso', 'jugador', '2020-06-26 22:32:01', 0, 11, 0, 8, 0, 9, 3, 7, 0, 9, 0, 12, 0, 3), (27, 3, 'suso', 'jugador', '2020-06-26 22:32:10', 1, 5, 1, 6, 3, 6, 0, 4, 5, 4, 0, 5, 0, 9), (28, 3, 'di_maria', 'jugador', '2020-06-27 21:17:22', 0, 4, 0, 4, 0, 4, 0, 5, 0, 6, 0, 6, 0, 0), (29, 3, 'suso', 'jugador', '2020-06-28 11:09:58', 0, 4, 0, 4, 0, 8, 0, 6, 0, 5, 0, 5, 0, 0), (30, 3, 'nacio', 'jugador', '2020-06-28 12:05:20', 0, 3, 3, 4, 0, 3, 0, 5, 0, 5, 0, 4, 0, 3), (31, 3, 'nacio', 'jugador', '2020-06-28 12:05:30', 0, 5, 1, 5, 0, 4, 0, 5, 0, 5, 0, 5, 0, 1), (32, 3, 'nacio', 'jugador', '2020-06-28 12:05:38', 1, 7, 0, 7, 1, 5, 0, 5, 0, 4, 0, 4, 0, 1), (33, 4, 'nacio', 'jugador', '2020-06-29 10:52:44', 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0), (34, 4, 'nacio', 'jugador', '2020-06-29 10:53:09', 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 0), (35, 4, 'nacio', 'jugador', '2020-06-29 10:53:31', 1, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 0), (36, 4, 'nacio', 'jugador', '2020-06-29 15:36:25', 0, 2, 0, 4, 0, 3, 0, 4, 0, 13, 0, 4, 0, 0), (37, 4, 'nacio', 'jugador', '2020-06-29 15:53:21', 0, 10, 0, 5, 0, 7, 0, 8, 0, 8, 0, 9, 0, 0), (38, 4, 'nacio', 'jugador', '2020-06-29 15:53:54', 1, 12, 0, 8, 0, 6, 0, 5, 0, 4, 0, 3, 0, 0), (42, 4, 'miguel', 'nacio', '2020-06-29 16:52:53', 0, 7, 0, 5, 0, 5, 0, 4, 0, 5, 0, 6, 0, 0), (43, 4, 'nacio', 'jugador', '2020-06-29 16:53:23', 0, 4, 0, 3, 0, 4, 0, 3, 0, 4, 0, 5, 0, 0), (44, 4, 'nacio', 'jugador', '2020-06-29 16:53:32', 0, 12, 0, 8, 0, 7, 0, 6, 0, 5, 0, 5, 0, 0), (45, 4, 'nacio', 'jugador', '2020-06-29 16:53:41', 1, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 6, 0, 0), (46, 4, 'suso', 'jugador', '2020-06-29 18:19:17', 0, 5, 0, 4, 0, 4, 0, 5, 0, 5, 0, 4, 0, 0), (47, 4, 'suso', 'jugador', '2020-06-29 18:19:30', 1, 12, 0, 10, 0, 13, 0, 11, 0, 14, 0, 14, 0, 0), (48, 4, 'suso', 'jugador', '2020-06-29 18:19:38', 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 0), (49, 4, 'nacio', 'jugador', '2020-06-29 20:37:46', 0, 8, 0, 8, 0, 6, 0, 6, 0, 4, 0, 4, 0, 0), (50, 4, 'nacio', 'jugador', '2020-06-29 20:37:57', 0, 10, 0, 10, 0, 11, 0, 11, 0, 12, 0, 12, 0, 0), (51, 4, 'nacio', 'jugador', '2020-06-29 20:38:05', 1, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 7, 0, 0), (52, 4, 'pedro', 'nacio', '2020-06-29 20:38:45', 0, 1, 0, 3, 0, 1, 0, 3, 0, 1, 0, 3, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `misbancos` -- CREATE TABLE `misbancos` ( `banco_id` int(11) NOT NULL, `nombre` varchar(30) NOT NULL, `numero_cuenta` varchar(30) NOT NULL, `tipo_cuenta` varchar(20) NOT NULL, `titular` varchar(50) NOT NULL, `cedula` varchar(20) NOT NULL, `img_url` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `misbancos` -- INSERT INTO `misbancos` (`banco_id`, `nombre`, `numero_cuenta`, `tipo_cuenta`, `titular`, `cedula`, `img_url`) VALUES (1, 'Banesco', '0134 0021 17 0212172030', 'ahorro', 'Teodoro Chirino', '9924872', 'banesco-logo.png'), (2, 'Mercantil', '0105 0104 12 1104129779', 'corriente', 'Yulaima Carpio', '12694890', 'mercantil-logo.png'), (3, 'BNC', '0191 0102 29 22100040300', 'corriente', 'Jose Chirino', '27253113', 'bnc-logo.png'); -- -------------------------------------------------------- -- -- Table structure for table `premios` -- CREATE TABLE `premios` ( `premio_id` int(11) NOT NULL, `jornada_id` int(20) NOT NULL, `total_jugadas` int(20) NOT NULL DEFAULT '0', `total_premio` varchar(50) NOT NULL DEFAULT '0', `1er_lugar_premio` varchar(50) NOT NULL DEFAULT '0', `2do_lugar_premio` varchar(50) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `premios` -- INSERT INTO `premios` (`premio_id`, `jornada_id`, `total_jugadas`, `total_premio`, `1er_lugar_premio`, `2do_lugar_premio`) VALUES (1, 1, 17, '1440000', '1080000', '360000'), (2, 2, 0, '0', '0', '0'), (3, 3, 13, '1440000', '1080000', '360000'), (4, 4, 20, '2400000', '1800000', '600000'); -- -------------------------------------------------------- -- -- Table structure for table `resultados` -- CREATE TABLE `resultados` ( `resultados_id` int(11) NOT NULL, `jornada_id` int(11) NOT NULL, `fecha_jornada` date NOT NULL, `1va_resultados` varchar(30) DEFAULT NULL, `2va_resultados` varchar(30) DEFAULT NULL, `3va_resultados` varchar(30) DEFAULT NULL, `4va_resultados` varchar(30) DEFAULT NULL, `5va_resultados` varchar(30) DEFAULT NULL, `6va_resultados` varchar(30) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `resultados` -- INSERT INTO `resultados` (`resultados_id`, `jornada_id`, `fecha_jornada`, `1va_resultados`, `2va_resultados`, `3va_resultados`, `4va_resultados`, `5va_resultados`, `6va_resultados`) VALUES (1, 4, '2020-07-06', '3 - 7 - 6', NULL, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `retirados` -- CREATE TABLE `retirados` ( `retirados_id` int(255) NOT NULL, `jornada_id` int(255) NOT NULL, `fecha_jornada` date NOT NULL, `1va_retirados` varchar(50) DEFAULT NULL, `2va_retirados` varchar(50) DEFAULT NULL, `3va_retirados` varchar(50) DEFAULT NULL, `4va_retirados` varchar(50) DEFAULT NULL, `5va_retirados` varchar(50) DEFAULT NULL, `6va_retirados` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `retirados` -- INSERT INTO `retirados` (`retirados_id`, `jornada_id`, `fecha_jornada`, `1va_retirados`, `2va_retirados`, `3va_retirados`, `4va_retirados`, `5va_retirados`, `6va_retirados`) VALUES (1, 1, '2020-06-17', '1,2,4,10', '2,5', '7', '5', '8', '8,9'), (2, 2, '2020-06-21', NULL, NULL, NULL, NULL, NULL, NULL), (3, 3, '2020-06-26', '9,10,11', '1,10', '', '', '6', ''), (4, 4, '2020-07-06', NULL, NULL, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `retiros` -- CREATE TABLE `retiros` ( `retiro_id` int(11) NOT NULL, `usuario` varchar(20) NOT NULL, `cuenta_id` int(10) NOT NULL, `monto` decimal(20,2) NOT NULL, `fecha_retiro` datetime NOT NULL, `status` varchar(20) NOT NULL DEFAULT 'pendiente' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `retiros` -- INSERT INTO `retiros` (`retiro_id`, `usuario`, `cuenta_id`, `monto`, `fecha_retiro`, `status`) VALUES (1, 'nacio', 1, '300000.00', '2020-06-24 10:01:25', 'rechazado'), (2, 'nacio', 1, '400000.00', '2020-06-24 10:06:18', 'rechazado'), (3, 'nacio', 2, '200000.00', '2020-06-24 10:08:05', 'aprobado'), (4, 'di_maria', 4, '200000.00', '2020-06-27 21:19:24', 'pendiente'), (5, 'nacio', 1, '1600000.00', '2020-06-29 20:03:11', 'pendiente'); -- -------------------------------------------------------- -- -- Table structure for table `usuarios` -- CREATE TABLE `usuarios` ( `usuario_id` int(11) NOT NULL, `nombre` varchar(50) DEFAULT NULL, `apellido` varchar(50) DEFAULT NULL, `cedula` int(10) DEFAULT NULL, `usuario_email` varchar(50) NOT NULL, `usuario` varchar(20) NOT NULL, `password` varchar(255) NOT NULL, `usuario_saldo` decimal(20,2) NOT NULL, `role` varchar(20) NOT NULL DEFAULT 'jugador', `contador` int(1) NOT NULL DEFAULT '0', `fecha_creado` datetime NOT NULL, `last_login` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `usuarios` -- INSERT INTO `usuarios` (`usuario_id`, `nombre`, `apellido`, `cedula`, `usuario_email`, `usuario`, `password`, `usuario_saldo`, `role`, `contador`, `fecha_creado`, `last_login`) VALUES (7, 'Jose', 'Chirino', 27253113, 'nacio0911@gmail.com', 'nacio', '$2y$10$BF6ui79vvDnQ56MzgYhU7uLDEMuwShX4BtRfC.KrniIFTF2UxKfky', '400000.00', 'admin', 0, '2020-05-03 08:13:45', '2020-06-29 20:35:54'), (8, 'Jesus', 'Joaquin', 22034504, 'suso@gmail.com', 'suso', '$2y$10$9IoE2YotCVcV1rAR.RTyUuxQK72av7rKAGfiE6vrUHrmQN18VrZ2W', '0.00', 'admin', 1, '2020-06-01 09:15:45', '2020-06-29 20:17:26'), (11, 'James', 'Rodriguez', 22508123, 'james@gmail.com', 'james', '$2y$10$1BtwmVP416TG7o1hVmZV9e57ivW/bIppwQFTF0DSaxoNiyrd5v3a.', '3400000.00', 'jugador', 0, '2020-06-15 11:15:50', '2020-06-29 20:27:36'), (12, 'Angel', 'Maria', 18252147, 'er_fideo@gmail.com', 'di_maria', '$2y$10$xZvkKglbJPjRa7Ffza0IW.HFJv4fcsQ4wPcCHqP219netnHOrx11q', '0.00', 'jugador', 1, '2020-06-26 10:13:45', '2020-06-28 12:25:08'); -- -- Indexes for dumped tables -- -- -- Indexes for table `abonos` -- ALTER TABLE `abonos` ADD PRIMARY KEY (`abono_id`); -- -- Indexes for table `bancos` -- ALTER TABLE `bancos` ADD PRIMARY KEY (`banco_id`); -- -- Indexes for table `cuentasbancarias` -- ALTER TABLE `cuentasbancarias` ADD PRIMARY KEY (`cuenta_id`); -- -- Indexes for table `jornadas` -- ALTER TABLE `jornadas` ADD PRIMARY KEY (`jornada_id`); -- -- Indexes for table `jugadas` -- ALTER TABLE `jugadas` ADD PRIMARY KEY (`jugada_id`); -- -- Indexes for table `misbancos` -- ALTER TABLE `misbancos` ADD PRIMARY KEY (`banco_id`); -- -- Indexes for table `premios` -- ALTER TABLE `premios` ADD PRIMARY KEY (`premio_id`); -- -- Indexes for table `resultados` -- ALTER TABLE `resultados` ADD PRIMARY KEY (`resultados_id`); -- -- Indexes for table `retirados` -- ALTER TABLE `retirados` ADD PRIMARY KEY (`retirados_id`); -- -- Indexes for table `retiros` -- ALTER TABLE `retiros` ADD PRIMARY KEY (`retiro_id`); -- -- Indexes for table `usuarios` -- ALTER TABLE `usuarios` ADD PRIMARY KEY (`usuario_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `abonos` -- ALTER TABLE `abonos` MODIFY `abono_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `bancos` -- ALTER TABLE `bancos` MODIFY `banco_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `cuentasbancarias` -- ALTER TABLE `cuentasbancarias` MODIFY `cuenta_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `jornadas` -- ALTER TABLE `jornadas` MODIFY `jornada_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `jugadas` -- ALTER TABLE `jugadas` MODIFY `jugada_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53; -- -- AUTO_INCREMENT for table `misbancos` -- ALTER TABLE `misbancos` MODIFY `banco_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `premios` -- ALTER TABLE `premios` MODIFY `premio_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `resultados` -- ALTER TABLE `resultados` MODIFY `resultados_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `retirados` -- ALTER TABLE `retirados` MODIFY `retirados_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `retiros` -- ALTER TABLE `retiros` MODIFY `retiro_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `usuarios` -- ALTER TABLE `usuarios` MODIFY `usuario_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; 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
eb4229a29703d3fe1534dc9aa0d4aa434e570eee
SQL
esemi/ya-local-graph
/structure.sql
UTF-8
4,793
3.390625
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: artist; Type: TABLE; Schema: public; Owner: ya; Tablespace: -- CREATE TABLE artist ( id integer NOT NULL, name character varying NOT NULL, similar_crawled boolean DEFAULT false NOT NULL, need_crawl_similar boolean DEFAULT false NOT NULL, degree_input integer DEFAULT 0 NOT NULL, degree_output integer DEFAULT 0 NOT NULL, is_primary boolean DEFAULT false NOT NULL ); ALTER TABLE public.artist OWNER TO ya; -- -- Name: artist_genre; Type: TABLE; Schema: public; Owner: ya; Tablespace: -- CREATE TABLE artist_genre ( artist_id integer NOT NULL, genre_id integer NOT NULL ); ALTER TABLE public.artist_genre OWNER TO ya; -- -- Name: genre; Type: TABLE; Schema: public; Owner: ya; Tablespace: -- CREATE TABLE genre ( id integer NOT NULL, genre character varying NOT NULL ); ALTER TABLE public.genre OWNER TO ya; -- -- Name: genre_id_seq; Type: SEQUENCE; Schema: public; Owner: ya -- CREATE SEQUENCE genre_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.genre_id_seq OWNER TO ya; -- -- Name: genre_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ya -- ALTER SEQUENCE genre_id_seq OWNED BY genre.id; -- -- Name: similar; Type: TABLE; Schema: public; Owner: ya; Tablespace: -- CREATE TABLE "similar" ( from_id integer NOT NULL, to_id integer NOT NULL, "position" smallint DEFAULT 0::smallint NOT NULL ); ALTER TABLE public."similar" OWNER TO ya; -- -- Name: id; Type: DEFAULT; Schema: public; Owner: ya -- ALTER TABLE ONLY genre ALTER COLUMN id SET DEFAULT nextval('genre_id_seq'::regclass); -- -- Name: ArtistGenre_artist_id_genre_id; Type: CONSTRAINT; Schema: public; Owner: ya; Tablespace: -- ALTER TABLE ONLY artist_genre ADD CONSTRAINT "ArtistGenre_artist_id_genre_id" PRIMARY KEY (artist_id, genre_id); -- -- Name: artist_id; Type: CONSTRAINT; Schema: public; Owner: ya; Tablespace: -- ALTER TABLE ONLY artist ADD CONSTRAINT artist_id PRIMARY KEY (id); -- -- Name: genre_genre; Type: CONSTRAINT; Schema: public; Owner: ya; Tablespace: -- ALTER TABLE ONLY genre ADD CONSTRAINT genre_genre UNIQUE (genre); -- -- Name: genre_id; Type: CONSTRAINT; Schema: public; Owner: ya; Tablespace: -- ALTER TABLE ONLY genre ADD CONSTRAINT genre_id PRIMARY KEY (id); -- -- Name: similar_from_to; Type: CONSTRAINT; Schema: public; Owner: ya; Tablespace: -- ALTER TABLE ONLY "similar" ADD CONSTRAINT similar_from_to PRIMARY KEY (from_id, to_id); -- -- Name: artist_is_main_node_need_crawl_similar; Type: INDEX; Schema: public; Owner: ya; Tablespace: -- CREATE INDEX artist_is_main_node_need_crawl_similar ON artist USING btree (similar_crawled, need_crawl_similar); -- -- Name: artist_is_primary; Type: INDEX; Schema: public; Owner: ya; Tablespace: -- CREATE INDEX artist_is_primary ON artist USING btree (is_primary); CREATE INDEX "similar_position" ON "similar" ("position"); -- -- Name: ArtistGenre_artist_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ya -- ALTER TABLE ONLY artist_genre ADD CONSTRAINT "ArtistGenre_artist_id_fkey" FOREIGN KEY (artist_id) REFERENCES artist(id) ON UPDATE CASCADE ON DELETE CASCADE; -- -- Name: ArtistGenre_genre_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ya -- ALTER TABLE ONLY artist_genre ADD CONSTRAINT "ArtistGenre_genre_id_fkey" FOREIGN KEY (genre_id) REFERENCES genre(id) ON UPDATE CASCADE ON DELETE CASCADE; -- -- Name: similar_from_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ya -- ALTER TABLE ONLY "similar" ADD CONSTRAINT similar_from_id_fkey FOREIGN KEY (from_id) REFERENCES artist(id) ON UPDATE CASCADE ON DELETE CASCADE; -- -- Name: similar_to_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ya -- ALTER TABLE ONLY "similar" ADD CONSTRAINT similar_to_id_fkey FOREIGN KEY (to_id) REFERENCES artist(id) ON UPDATE CASCADE ON DELETE CASCADE; -- -- Name: public; Type: ACL; Schema: -; Owner: postgres -- REVOKE ALL ON SCHEMA public FROM PUBLIC; REVOKE ALL ON SCHEMA public FROM postgres; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO PUBLIC; -- -- PostgreSQL database dump complete --
true
e48b00ca395c7340e8699628606e7e85f04f18b3
SQL
Shtereva/CSharp-DB-Fundametals---MS-SQL-Basics
/Databases Basics - MS SQL Server/Exam Preparaton II/10. Customers without Feedback.sql
UTF-8
182
3.671875
4
[ "MIT" ]
permissive
SELECT CONCAT(c.FirstName , ' ', c.LastName) AS [CustomerName], c.PhoneNumber, c.Gender FROM Customers AS c WHERE c.Id NOT IN (SELECT CustomerId FROM Feedbacks) ORDER BY c.Id
true
eda69da33a4f6864097ebac7703dced8b639fd5f
SQL
rindratiana/test_saimltd
/SAIMLTD/SAIMLTD/App_Data/sql/script.sql
UTF-8
484
2.875
3
[]
no_license
๏ปฟCREATE DATABASE test_saimltd_bdd; USE test_saimltd_bdd; CREATE TABLE Client ( id int auto_increment primary key, denomination varchar(500) not null, adresse text, telephone varchar(15), mail varchar(200), siren varchar(15), activite text, capital double, forme_juridique varchar(10) ); CREATE TABLE Contact_person ( id int auto_increment primary key, id_societe int, nom_personne varchar(500), poste varchar(50), FOREIGN KEY (id_societe) REFERENCES client(id) );
true
a2b2861785f7a25370fb389bd4a1763334cfd1b4
SQL
ChrisJamesHassell/Software-Engineering
/PlatypusDatabase/Event/events.sql
UTF-8
1,352
2.96875
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.3.10-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 structure for table platypus.events CREATE TABLE IF NOT EXISTS `events` ( `eventID` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(32) NOT NULL, `description` varchar(250) NOT NULL, `category` enum('Medical','Auto','Home','ToDo','Miscellaneous') NOT NULL, `start` date NOT NULL, `end` date NOT NULL, `location` varchar(100) DEFAULT NULL, PRIMARY KEY (`eventID`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- Data exporting was unselected. /*!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
cf3baa703f10f1c823c1266af49fb5d0a5b61457
SQL
Defendy-C/recorder
/service/file_sys/model/filesys.sql
UTF-8
461
3.109375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS recorder DEFAULT CHARACTER SET utf8mb4; use recorder; create table file_sys ( id INT NOT NULL AUTO_INCREMENT, path VARCHAR(255) DEFAULT '' COMMENT 'ๅญ˜ๆ”พ่ทฏๅพ„', created_at DATETIME DEFAULT 0 COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', finished_at DATETIME DEFAULT 0 COMMENT 'ๅฎŒๆˆๆ—ถ้—ด', total_chunk INT DEFAULT 0 COMMENT 'ๆ–‡ไปถๅˆ†ๆฎตๆ•ฐ', PRIMARY KEY (`id`), UNIQUE KEY (`path`) )
true
d5d2c01213ebd6c51e5e10def69c247f6324ef39
SQL
willianrefky/SI_Toko_Robby
/dbtoko (1).sql
UTF-8
8,415
3.125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 15, 2019 at 05:32 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: `dbtoko` -- -- -------------------------------------------------------- -- -- Table structure for table `barang_masuk` -- CREATE TABLE `barang_masuk` ( `id_barang_masuk` char(16) NOT NULL, `barcode` varchar(11) NOT NULL, `supplier_id` int(11) NOT NULL, `jumlah_masuk` int(11) NOT NULL, `tanggal_masuk` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `barang_masuk` -- INSERT INTO `barang_masuk` (`id_barang_masuk`, `barcode`, `supplier_id`, `jumlah_masuk`, `tanggal_masuk`) VALUES ('T-BM-19101500001', 'A002', 2, 20, '2019-10-16'); -- -------------------------------------------------------- -- -- Table structure for table `customer` -- CREATE TABLE `customer` ( `customer_id` int(11) NOT NULL, `name` varchar(200) NOT NULL, `gender` enum('L','P') NOT NULL, `phone` varchar(15) NOT NULL, `address` text NOT NULL, `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `customer` -- INSERT INTO `customer` (`customer_id`, `name`, `gender`, `phone`, `address`, `created`, `updated`) VALUES (1, 'Alvian', 'L', '0897534546', 'Desa Langkap, Besuki', '2019-06-10 18:33:18', NULL); -- -------------------------------------------------------- -- -- Table structure for table `ongkir` -- CREATE TABLE `ongkir` ( `id_ongkir` int(11) NOT NULL, `kode_pos` varchar(10) NOT NULL, `harga` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `p_category` -- CREATE TABLE `p_category` ( `category_id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `p_category` -- INSERT INTO `p_category` (`category_id`, `name`, `created`, `updated`) VALUES (1, 'makanan', '2019-06-11 08:11:34', '2019-06-12 10:19:14'), (2, 'Minuman', '2019-06-12 15:39:01', NULL); -- -------------------------------------------------------- -- -- Table structure for table `p_item` -- CREATE TABLE `p_item` ( `item_id` int(11) NOT NULL, `barcode` varchar(11) NOT NULL, `name` varchar(100) DEFAULT NULL, `category_id` int(11) NOT NULL, `unit_id` int(11) NOT NULL, `price` int(11) DEFAULT NULL, `stock` int(10) NOT NULL DEFAULT '0', `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `p_item` -- INSERT INTO `p_item` (`item_id`, `barcode`, `name`, `category_id`, `unit_id`, `price`, `stock`, `created`, `updated`) VALUES (4, 'A001', 'Fanta Strawbery', 2, 3, 45000, 0, '2019-06-19 10:42:44', '2019-07-02 01:21:56'), (3, 'A002', 'Sprite Lemon', 2, 3, 4500, 0, '2019-06-12 15:39:28', '2019-10-09 16:29:50'), (5, 'A003', 'Plastik', 1, 3, 10000, 0, '2019-10-09 21:28:52', NULL), (6, 'A004', 'seragam', 1, 3, 111, 0, '2019-10-15 21:11:03', NULL); -- -------------------------------------------------------- -- -- Table structure for table `p_unit` -- CREATE TABLE `p_unit` ( `unit_id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `p_unit` -- INSERT INTO `p_unit` (`unit_id`, `name`, `created`, `updated`) VALUES (1, 'Buah', '2019-06-11 08:11:34', '2019-10-13 11:02:48'), (2, 'Kilogram', '2019-06-11 13:50:04', NULL), (3, 'Liter', '2019-06-12 15:38:26', NULL), (5, 'pack', '2019-10-13 16:24:47', NULL); -- -------------------------------------------------------- -- -- Table structure for table `supplier` -- CREATE TABLE `supplier` ( `supplier_id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `phone` varchar(15) NOT NULL, `address` varchar(200) NOT NULL, `description` text, `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `supplier` -- INSERT INTO `supplier` (`supplier_id`, `name`, `phone`, `address`, `description`, `created`, `updated`) VALUES (1, 'Toko A', '0897654321', 'Situbondo', NULL, '2019-06-10 10:33:45', NULL), (2, 'Toko B', '0899887766', 'Probolinggo', NULL, '2019-06-10 10:33:45', NULL), (4, 'Toko C', '07454523', 'Malang Batu', 'Toko Kualitas Bagus', '2019-06-10 12:04:03', '2019-06-10 07:48:19'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `user_id` int(11) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(40) NOT NULL, `name` varchar(255) NOT NULL, `address` text, `level` int(1) NOT NULL COMMENT '1:admin, 2:kasir' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user` -- INSERT INTO `user` (`user_id`, `username`, `password`, `name`, `address`, `level`) VALUES (1, 'admin', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'Willian Refky', 'Situbondo', 1), (2, 'kasir1', '874c0ac75f323057fe3b7fb3f5a8a41df2b94b1d', 'steven1', 'surabaya', 2), (4, 'admin1', '8cb2237d0679ca88db6464eac60da96345513964', 'alvian', 'situbondo', 1), (5, 'kasir2', '08dfc5f04f9704943a423ea5732b98d3567cbd49', 'rosi', 'jombang', 2), (6, 'wafff', '8cb2237d0679ca88db6464eac60da96345513964', 'waff yess', 'jember', 2); -- -- Indexes for dumped tables -- -- -- Indexes for table `barang_masuk` -- ALTER TABLE `barang_masuk` ADD PRIMARY KEY (`id_barang_masuk`), ADD KEY `barcode` (`barcode`); -- -- Indexes for table `customer` -- ALTER TABLE `customer` ADD PRIMARY KEY (`customer_id`); -- -- Indexes for table `ongkir` -- ALTER TABLE `ongkir` ADD PRIMARY KEY (`id_ongkir`); -- -- Indexes for table `p_category` -- ALTER TABLE `p_category` ADD PRIMARY KEY (`category_id`); -- -- Indexes for table `p_item` -- ALTER TABLE `p_item` ADD PRIMARY KEY (`barcode`) USING BTREE, ADD UNIQUE KEY `item_id` (`item_id`) USING BTREE, ADD KEY `category_id` (`category_id`), ADD KEY `unit_id` (`unit_id`), ADD KEY `item_id_2` (`item_id`) USING BTREE, ADD KEY `item_id_3` (`item_id`); -- -- Indexes for table `p_unit` -- ALTER TABLE `p_unit` ADD PRIMARY KEY (`unit_id`); -- -- Indexes for table `supplier` -- ALTER TABLE `supplier` ADD PRIMARY KEY (`supplier_id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`user_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `customer` -- ALTER TABLE `customer` MODIFY `customer_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `ongkir` -- ALTER TABLE `ongkir` MODIFY `id_ongkir` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `p_category` -- ALTER TABLE `p_category` MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `p_item` -- ALTER TABLE `p_item` MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `p_unit` -- ALTER TABLE `p_unit` MODIFY `unit_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `supplier` -- ALTER TABLE `supplier` MODIFY `supplier_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- Constraints for dumped tables -- -- -- Constraints for table `p_item` -- ALTER TABLE `p_item` ADD CONSTRAINT `p_item_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `p_category` (`category_id`), ADD CONSTRAINT `p_item_ibfk_2` FOREIGN KEY (`unit_id`) REFERENCES `p_unit` (`unit_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
918e8adb440272b406e1a6779bf1ad6d7039374d
SQL
Ruminat/PL-SQL-labs
/labs/4 lab/4-3.sql
UTF-8
535
3.140625
3
[]
no_license
VARIABLE dept_id NUMBER; DECLARE max_deptno NUMBER; dept_name Departments.Department_Name%TYPE := 'Education'; BEGIN SELECT MAX(Department_ID) INTO max_deptno FROM Departments; :dept_id := max_deptno + 10; INSERT INTO Departments (Department_ID, Department_Name, Location_ID) VALUES (:dept_id, dept_name, NULL ); The maximum department_id is: 270 1 row(s) added UPDATE Departments SET Location_ID = 3000 WHERE Department_ID = :dept_id; END; / SELECT * FROM Departments;
true
fcadee69b4f3eae6d226704a4dd4d0d7b541afce
SQL
scieloorg/opac-airflow
/airflow/migrations/0001-add-execution-report-tables-202002041716.sql
UTF-8
2,323
3.5
4
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* * A tabela xml_documents guarda o registro de iteraรงรตes dos xmls que estรฃo dentro * de um pacote SPS. * * Para cada artigo registrado ou deletado durante a sincronizaรงรฃo, nรณs adicionamos * uma entrada nesta tabela. */ CREATE TABLE IF NOT EXISTS xml_documents ( id SERIAL PRIMARY KEY, pid varchar(23) NULL, -- scielo-pid-v3 presente no xml package_name varchar(255) null, -- Nome do pacote processado ex: `rsp_v53.zip` dag_run varchar(255), -- Identificador de execuรงรฃo da dag `sync_documents_to_kernel` pre_sync_dag_run varchar(255) NULL, -- Identificador de execuรงรฃo da dag `pre_sync_documents_to_kernel` deletion bool DEFAULT false, file_name varchar(255), -- Nome do arquivo xml failed bool DEFAULT false, error text null, -- Erro lanรงado durante processamento payload json, -- Dado enviado para o Kernel created_at timestamptz DEFAULT now() ); CREATE INDEX IF NOT EXISTS xml_documents_pid ON xml_documents (pid); CREATE INDEX IF NOT EXISTS xml_documents_dag_run ON xml_documents (dag_run); CREATE INDEX IF NOT EXISTS xml_documents_package_name ON xml_documents (package_name); CREATE INDEX IF NOT EXISTS xml_documents_pre_sync_dag_run ON xml_documents (pre_sync_dag_run); /* * A tabela xml_documentsbundle guarda o registro de relacionamento entre * os artigos e seus respectivos `documentsbundle`. */ CREATE TABLE IF NOT EXISTS xml_documentsbundle ( id SERIAL PRIMARY KEY, pid varchar(23) NULL, bundle_id varchar(100), package_name varchar(255) null, dag_run varchar(255), pre_sync_dag_run varchar(255) NULL, ex_ahead bool default false, removed bool default false, failed bool DEFAULT false, error text null, payload json null, created_at timestamptz default now() ); CREATE INDEX IF NOT EXISTS xml_documentsbundle_pid ON xml_documentsbundle (pid); CREATE INDEX IF NOT EXISTS xml_documentsbundle_dag_run ON xml_documentsbundle (dag_run); CREATE INDEX IF NOT EXISTS xml_documentsbundle_package_name ON xml_documentsbundle (package_name); CREATE INDEX IF NOT EXISTS xml_documentsbundle_pre_sync_dag_run ON xml_documentsbundle (pre_sync_dag_run);
true
f9bc357040b73332eed9482e074c1481576530ff
SQL
annazar123/PKL
/ci3/tb_siswa.sql
UTF-8
1,665
3.078125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 03, 2020 at 09:22 AM -- Server version: 5.7.24 -- PHP Version: 7.2.19 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: `tb_siswa` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_siswa` -- CREATE TABLE `tb_siswa` ( `id` int(11) NOT NULL, `nama` varchar(255) NOT NULL, `no` varchar(15) NOT NULL, `alamat` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_siswa` -- INSERT INTO `tb_siswa` (`id`, `nama`, `no`, `alamat`) VALUES (1, 'Reza Oktovian', '082336566145', 'Kec Kedungwaru'), (2, 'Leornado Bedediktus pop', '082331617898 ', 'Kec Kauman '), (3, 'Frendy Akmal ', '083954665288 ', 'Kec Boyolangu '), (4, 'Bambang Rei', '085664221982', 'Kec Sumbergempol'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_siswa` -- ALTER TABLE `tb_siswa` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_siswa` -- ALTER TABLE `tb_siswa` MODIFY `id` int(11) 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
090781a32101c4db286be661503f63dbdd9675cd
SQL
KingAndrew/The-Social-Choring-Engine
/SocialChoringEngine/src/main/resources/sql/create_account.sql
UTF-8
898
3.375
3
[]
no_license
-- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `create_account`(IN p_user_name VARCHAR(44), IN p_parent_first_name VARCHAR(40), IN p_parent_last_name VARCHAR(40), IN p_parent_email VARCHAR(50), IN p_player_first_name VARCHAR(40), OUT p_account_id BIGINT(44)) BEGIN INSERT INTO PARENT (first_name, last_name, email) VALUES (p_parent_first_name, p_parent_last_name, p_parent_email); SET p_account_id = LAST_INSERT_ID(); INSERT INTO PLAYER (parent_id, first_name) VALUES (p_account_id, p_player_first_name); UPDATE USERS SET account_id = p_account_id WHERE user_name = p_user_name; END
true
dc116f99ceb79d61b0f254573f6d404fdf997d0c
SQL
shijaihui/Library-Management-System
/libsys.sql
UTF-8
15,209
3.28125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : wamp Source Server Version : 50723 Source Host : localhost:3306 Source Database : libsys Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2018-10-26 00:17:35 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for lib_admin -- ---------------------------- DROP TABLE IF EXISTS `lib_admin`; CREATE TABLE `lib_admin` ( `admin_id` varchar(20) NOT NULL, `password` varchar(25) NOT NULL, PRIMARY KEY (`admin_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_admin -- ---------------------------- -- ---------------------------- -- Table structure for lib_book_species -- ---------------------------- DROP TABLE IF EXISTS `lib_book_species`; CREATE TABLE `lib_book_species` ( `isbn` varchar(13) NOT NULL DEFAULT 'Unknown ISBN', `title` varchar(60) NOT NULL DEFAULT 'Unknown Title', `author` varchar(60) NOT NULL DEFAULT 'Unknown Author', `author_intro` varchar(100) DEFAULT 'There is no introduction of this author.', `press` varchar(60) NOT NULL DEFAULT 'Unknown Press', `category` varchar(255) NOT NULL DEFAULT 'Unknown', `summary` text, `pub_date` varchar(20) DEFAULT 'Unknown', `price` varchar(20) DEFAULT 'Unknown', `floor` int(10) NOT NULL DEFAULT '-1', `bookshelf` varchar(20) NOT NULL DEFAULT 'Uknown', `area_code` varchar(20) NOT NULL DEFAULT 'Unknown', PRIMARY KEY (`isbn`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_book_species -- ---------------------------- INSERT INTO `lib_book_species` VALUES ('1', 'ๅŽปๅŽปๅŽปๅŽป', '่ฏทๆฑ‚', 'There is no introduction of this author.', 'ๆ–นๆณ•', 'ๅ‘ๅˆฐ', null, '2018-06-24', '43', '18', '123', '123'); INSERT INTO `lib_book_species` VALUES ('10', 'seffs', 'fsefse', 'There is no introduction of this author.', 'sdesed', 'sdsed', null, '2014-10-24', '22', '10', '123', '123'); INSERT INTO `lib_book_species` VALUES ('11', 'Iโ€˜m Qu Zhuohan', 'Qu Zhuohan', 'There is no introduction of this author.', 'Northwestern Polytechnic University Press', 'Science', null, '2018-10-24', '20', '1', '1', '1'); INSERT INTO `lib_book_species` VALUES ('12', '123', '123', 'There is no introduction of this author.', '123', '123', null, '2018-10-24', '123', '123', '123', '123'); INSERT INTO `lib_book_species` VALUES ('13', '4', '5', 'There is no introduction of this author.', '6', '6', null, '2018-10-24', '4', '6', '6', '6'); INSERT INTO `lib_book_species` VALUES ('2', 'ๅ“ˆๅ“ˆๅ“ˆ', 'ๅ•Šๅ“ˆๅ“ˆ', 'There is no introduction of this author.', 'ๅ“ˆๅ“ˆ', 'ๅ“ˆๅ“ˆ', null, '2015-10-24', '123', '99', '1231', '12312'); INSERT INTO `lib_book_species` VALUES ('3', 'Unknown Title', 'Unknown Author', 'There is no introduction of this author.', 'Unknown Press', 'Unknown', null, 'Unknown', 'Unknown', '-1', 'Uknown', 'Unknown'); INSERT INTO `lib_book_species` VALUES ('333', 'ๅฒๅ˜‰่พ‰', 'ๅฒๅ˜‰่พ‰', 'There is no introduction of this author.', 'ๅฒไป”', 'ๅฒไป”', null, '2018-10-25', '123', '123', '123', '123'); INSERT INTO `lib_book_species` VALUES ('4', '123', '123', 'There is no introduction of this author.', '123', '123', null, '2014-10-24', '123', '123', '123', '123'); INSERT INTO `lib_book_species` VALUES ('5', 'Unknown Title', 'Unknown Author', 'There is no introduction of this author.', 'Unknown Press', 'Unknown', null, 'Unknown', 'Unknown', '-1', 'Uknown', 'Unknown'); INSERT INTO `lib_book_species` VALUES ('6', 'Unknown Title', 'Unknown Author', 'There is no introduction of this author.', 'Unknown Press', 'Unknown', null, 'Unknown', 'Unknown', '-1', 'Uknown', 'Unknown'); INSERT INTO `lib_book_species` VALUES ('7', 'Unknown Title', 'Unknown Author', 'There is no introduction of this author.', 'Unknown Press', 'Unknown', null, 'Unknown', 'Unknown', '-1', 'Uknown', 'Unknown'); INSERT INTO `lib_book_species` VALUES ('8', '้ฉฌๅ˜‰ไผŸ', '้ฉฌๅ˜‰ไผŸ', 'There is no introduction of this author.', '่ฅฟๅทฅๅคง', 'ๅ‘็”ตๆ–นๅผ', null, '2018-10-25', '123', '12', '1', '123'); INSERT INTO `lib_book_species` VALUES ('9', 'Unknown Title', 'Unknown Author', 'There is no introduction of this author.', 'Unknown Press', 'Unknown', null, 'Unknown', 'Unknown', '-1', 'Uknown', 'Unknown'); -- ---------------------------- -- Table structure for lib_book_unique -- ---------------------------- DROP TABLE IF EXISTS `lib_book_unique`; CREATE TABLE `lib_book_unique` ( `book_id` int(11) NOT NULL AUTO_INCREMENT, `isbn` varchar(13) NOT NULL, PRIMARY KEY (`book_id`), KEY `ISBN` (`isbn`) USING BTREE ) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_book_unique -- ---------------------------- INSERT INTO `lib_book_unique` VALUES ('1', '1'); INSERT INTO `lib_book_unique` VALUES ('2', '1'); INSERT INTO `lib_book_unique` VALUES ('3', '1'); INSERT INTO `lib_book_unique` VALUES ('4', '1'); INSERT INTO `lib_book_unique` VALUES ('5', '2'); INSERT INTO `lib_book_unique` VALUES ('6', '2'); INSERT INTO `lib_book_unique` VALUES ('7', '3'); INSERT INTO `lib_book_unique` VALUES ('8', '3'); INSERT INTO `lib_book_unique` VALUES ('9', '3'); INSERT INTO `lib_book_unique` VALUES ('10', '4'); INSERT INTO `lib_book_unique` VALUES ('11', '5'); INSERT INTO `lib_book_unique` VALUES ('12', '5'); INSERT INTO `lib_book_unique` VALUES ('13', '5'); INSERT INTO `lib_book_unique` VALUES ('14', '5'); INSERT INTO `lib_book_unique` VALUES ('15', '5'); INSERT INTO `lib_book_unique` VALUES ('16', '6'); INSERT INTO `lib_book_unique` VALUES ('17', '7'); INSERT INTO `lib_book_unique` VALUES ('18', '8'); INSERT INTO `lib_book_unique` VALUES ('19', '9'); INSERT INTO `lib_book_unique` VALUES ('20', '9'); INSERT INTO `lib_book_unique` VALUES ('21', '10'); INSERT INTO `lib_book_unique` VALUES ('22', '10'); INSERT INTO `lib_book_unique` VALUES ('23', '10'); INSERT INTO `lib_book_unique` VALUES ('24', '11'); INSERT INTO `lib_book_unique` VALUES ('25', '11'); INSERT INTO `lib_book_unique` VALUES ('26', '11'); INSERT INTO `lib_book_unique` VALUES ('27', '11'); INSERT INTO `lib_book_unique` VALUES ('28', '11'); INSERT INTO `lib_book_unique` VALUES ('29', '11'); INSERT INTO `lib_book_unique` VALUES ('30', '11'); INSERT INTO `lib_book_unique` VALUES ('31', '11'); INSERT INTO `lib_book_unique` VALUES ('32', '11'); INSERT INTO `lib_book_unique` VALUES ('33', '11'); INSERT INTO `lib_book_unique` VALUES ('34', '12'); INSERT INTO `lib_book_unique` VALUES ('35', '12'); INSERT INTO `lib_book_unique` VALUES ('36', '13'); INSERT INTO `lib_book_unique` VALUES ('37', '13'); INSERT INTO `lib_book_unique` VALUES ('38', '13'); INSERT INTO `lib_book_unique` VALUES ('39', '333'); INSERT INTO `lib_book_unique` VALUES ('40', '333'); INSERT INTO `lib_book_unique` VALUES ('41', '333'); INSERT INTO `lib_book_unique` VALUES ('42', '333'); INSERT INTO `lib_book_unique` VALUES ('43', '333'); INSERT INTO `lib_book_unique` VALUES ('44', '333'); -- ---------------------------- -- Table structure for lib_borrow -- ---------------------------- DROP TABLE IF EXISTS `lib_borrow`; CREATE TABLE `lib_borrow` ( `book_id` varchar(10) NOT NULL, `user_id` varchar(20) NOT NULL, `bor_time` date NOT NULL, `bor_length` int(11) NOT NULL DEFAULT '0', `cost` float(10,2) NOT NULL DEFAULT '0.00', `staff_id` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_borrow -- ---------------------------- INSERT INTO `lib_borrow` VALUES ('3', '18792512569', '2018-10-24', '0', '0.00', '2016303120'); INSERT INTO `lib_borrow` VALUES ('12', '17792933795', '2018-10-19', '0', '0.00', '2016303118'); INSERT INTO `lib_borrow` VALUES ('13', '17792933795', '2018-10-20', '0', '0.00', '2016303119'); -- ---------------------------- -- Table structure for lib_lost -- ---------------------------- DROP TABLE IF EXISTS `lib_lost`; CREATE TABLE `lib_lost` ( `book_id` varchar(10) NOT NULL, `user_id` varchar(20) NOT NULL, `cost` float(11,2) NOT NULL, `staff_id` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_lost -- ---------------------------- INSERT INTO `lib_lost` VALUES ('4', '17792933795', '88.00', '2016303120'); INSERT INTO `lib_lost` VALUES ('5', '17792933795', '88.00', '2016303118'); INSERT INTO `lib_lost` VALUES ('6', '17792933795', '88.00', '2016303118'); INSERT INTO `lib_lost` VALUES ('7', '18792512569', '66.00', '2016303119'); -- ---------------------------- -- Table structure for lib_notice -- ---------------------------- DROP TABLE IF EXISTS `lib_notice`; CREATE TABLE `lib_notice` ( `notice_id` int(10) NOT NULL AUTO_INCREMENT, `notice_title` varchar(100) NOT NULL DEFAULT 'Notice', `notice_body` text NOT NULL, `release_time` date NOT NULL, `staff_id` varchar(20) NOT NULL, PRIMARY KEY (`notice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_notice -- ---------------------------- INSERT INTO `lib_notice` VALUES ('1', '10.1-10.7 Holiday', 'From 10.1 to 10.7, we will have a holiday because of the National Festival', '2018-09-30', '2016303120'); INSERT INTO `lib_notice` VALUES ('2', 'System Maintenance', 'From 10.24 to 10.25 We will have a System Maintenance', '2018-10-23', '2016303120'); -- ---------------------------- -- Table structure for lib_order -- ---------------------------- DROP TABLE IF EXISTS `lib_order`; CREATE TABLE `lib_order` ( `user_id` varchar(20) NOT NULL, `book_id` varchar(10) NOT NULL, `ord_time` datetime NOT NULL, KEY `user_id` (`user_id`), KEY `book_id` (`book_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_order -- ---------------------------- -- ---------------------------- -- Table structure for lib_remove -- ---------------------------- DROP TABLE IF EXISTS `lib_remove`; CREATE TABLE `lib_remove` ( `book_id` varchar(10) NOT NULL, `reason` varchar(255) NOT NULL DEFAULT 'Lost', `remove_time` datetime NOT NULL, `staff_id` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_remove -- ---------------------------- INSERT INTO `lib_remove` VALUES ('4', 'Lost', '2018-10-25 00:00:00', '2016303120'); INSERT INTO `lib_remove` VALUES ('5', 'Lost', '2018-10-24 00:00:00', '2016303118'); INSERT INTO `lib_remove` VALUES ('6', 'Lost', '2018-10-25 00:00:00', '2016303119'); INSERT INTO `lib_remove` VALUES ('7', 'Lost', '2018-10-23 00:00:00', '2016303120'); INSERT INTO `lib_remove` VALUES ('8', 'Destroyed', '2018-10-25 00:00:00', '2016303121'); INSERT INTO `lib_remove` VALUES ('9', 'Destroyed', '2018-10-25 00:00:00', '2016303121'); INSERT INTO `lib_remove` VALUES ('43', 'Destroyed', '2018-10-25 00:00:00', '2016303120'); -- ---------------------------- -- Table structure for lib_return -- ---------------------------- DROP TABLE IF EXISTS `lib_return`; CREATE TABLE `lib_return` ( `user_id` varchar(20) NOT NULL, `book_id` varchar(10) NOT NULL, `bor_time` date NOT NULL, `ret_time` date NOT NULL, `fine` float(11,2) NOT NULL DEFAULT '0.00', `staff_id` int(10) NOT NULL, KEY `user_id` (`user_id`), KEY `book_id` (`book_id`), KEY `staff_id` (`staff_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_return -- ---------------------------- INSERT INTO `lib_return` VALUES ('17792933795', '15', '2018-10-18', '2018-10-19', '0.00', '2016303118'); INSERT INTO `lib_return` VALUES ('17792933795', '23', '2018-10-24', '2018-10-25', '0.00', '2016303118'); INSERT INTO `lib_return` VALUES ('18792512569', '21', '2018-10-24', '2018-10-25', '0.00', '2016303120'); INSERT INTO `lib_return` VALUES ('18792512569', '25', '2018-10-24', '2018-10-24', '0.00', '2016303121'); INSERT INTO `lib_return` VALUES ('17792933795', '30', '2018-10-20', '2018-10-23', '0.00', '2016303119'); INSERT INTO `lib_return` VALUES ('18792512569 ', '2 ', '2018-10-24', '2018-10-26', '0.00', '2016303120'); -- ---------------------------- -- Table structure for lib_setting -- ---------------------------- DROP TABLE IF EXISTS `lib_setting`; CREATE TABLE `lib_setting` ( `daily_fine` float(11,2) NOT NULL DEFAULT '1.00', `borrow_length` int(11) NOT NULL DEFAULT '30', `security_deposit` float(11,2) NOT NULL DEFAULT '300.00' ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_setting -- ---------------------------- INSERT INTO `lib_setting` VALUES ('1.00', '20', '300.00'); -- ---------------------------- -- Table structure for lib_staff -- ---------------------------- DROP TABLE IF EXISTS `lib_staff`; CREATE TABLE `lib_staff` ( `staff_id` varchar(20) NOT NULL, `password` varchar(25) NOT NULL DEFAULT '00010001', `name` varchar(30) NOT NULL, `avatar` varchar(300) DEFAULT 'http://localhost/libSys/public/avatar/default_avatar.jpg', `introduction` text, `tel` char(11) DEFAULT '', `email` varchar(50) DEFAULT 'Unknown', PRIMARY KEY (`staff_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_staff -- ---------------------------- INSERT INTO `lib_staff` VALUES ('2016303118', '00010001', 'Lv Bingxu', 'http://localhost/libSys/public/avatar/default_avatar.jpg', 'TL of Reader Team', '18220815305', 'lvbingxu@163.com'); INSERT INTO `lib_staff` VALUES ('2016303119', '00010001', 'Ma Jiawei', 'http://localhost/libSys/public/avatar/default_avatar.jpg', 'TM of Reader Team', '18629447641', 'majiawei@126.com'); INSERT INTO `lib_staff` VALUES ('2016303120', '00010001', 'Qu Zhuohan', 'http://localhost/libSys/public/avatar/default_avatar.jpg', 'TL of Librarian Team', '17629050308', 'quzhuohan1998@yahoo.com'); INSERT INTO `lib_staff` VALUES ('2016303121', '00010001', 'Shi Jiahui', 'http://localhost/libSys/public/avatar/default_avatar.jpg', 'TM of Librarian Team', '18229003162', 'shijiahui@outlook.com'); -- ---------------------------- -- Table structure for lib_user -- ---------------------------- DROP TABLE IF EXISTS `lib_user`; CREATE TABLE `lib_user` ( `user_id` varchar(20) NOT NULL, `password` varchar(25) NOT NULL DEFAULT '12345678', `name` varchar(30) NOT NULL DEFAULT 'Unknown', `avatar` varchar(300) DEFAULT 'http://localhost/libSys/public/avatar/default_avatar.jpg', `email` varchar(256) NOT NULL DEFAULT 'Unknown', `address` varchar(300) NOT NULL DEFAULT 'Unknown', `balance` float(255,2) NOT NULL DEFAULT '300.00', `register_time` date NOT NULL, `card_id` varchar(20) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lib_user -- ---------------------------- INSERT INTO `lib_user` VALUES ('13181981175', '123456', 'ๆ›ฒไป”', 'http://localhost/libSys/public/avatar/default_avatar.jpg', '1029789014@qq.com', 'shandong', '300.00', '2018-10-26', '0002817188'); INSERT INTO `lib_user` VALUES ('17792933795', '12345678', 'Xiao Yifu', 'http://localhost/libSys/public/avatar/default_avatar.jpg', '1029789014@qq.com', 'Unknown', '300.00', '2018-10-18', '0000012345'); INSERT INTO `lib_user` VALUES ('18792512569', '12345678', 'Qu Zhuohan', 'http://localhost/libSys/public/avatar/default_avatar.jpg', 'Molicaliatimis@outlook.com', 'Unknown', '300.00', '2018-10-24', '0000013232');
true
fe56c10dcd738bab86adc9a75a0165fbdd3e9180
SQL
cadl272/civ6mods
/1681296547/Core/Anacaona_Leader.sql
UTF-8
2,218
2.765625
3
[]
no_license
/* Leader Authors: ChimpanG */ ----------------------------------------------- -- Types ----------------------------------------------- INSERT INTO Types (Type, Kind ) VALUES ('LEADER_CVS_ANACAONA', 'KIND_LEADER' ); ----------------------------------------------- -- CivilizationLeaders ----------------------------------------------- INSERT INTO CivilizationLeaders (CivilizationType, LeaderType, CapitalName ) VALUES ('CIVILIZATION_CVS_TAINO', 'LEADER_CVS_ANACAONA', 'LOC_CITY_NAME_YAGUANA' ); ----------------------------------------------- -- Leaders ----------------------------------------------- INSERT INTO Leaders (LeaderType, Name, Sex, InheritFrom, SceneLayers ) VALUES ('LEADER_CVS_ANACAONA', 'LOC_LEADER_CVS_ANACAONA_NAME', 'Female', 'LEADER_DEFAULT', 4 ); ----------------------------------------------- -- LeaderQuotes ----------------------------------------------- INSERT INTO LeaderQuotes (LeaderType, Quote ) VALUES ('LEADER_CVS_ANACAONA', 'LOC_PEDIA_LEADERS_PAGE_CVS_ANACAONA_QUOTE' ); ----------------------------------------------- -- LoadingInfo ----------------------------------------------- INSERT INTO LoadingInfo (LeaderType, ForegroundImage, BackgroundImage, PlayDawnOfManAudio ) VALUES ('LEADER_CVS_ANACAONA', 'LEADER_CVS_ANACAONA_NEUTRAL', 'LEADER_CVS_ANACAONA_BACKGROUND', 0 ); ----------------------------------------------- -- RequirementSetRequirements ----------------------------------------------- INSERT INTO RequirementSetRequirements (RequirementSetId, RequirementId ) VALUES ('REQSET_CVS_LEADER_IS_TAINO', 'REQ_CVS_LEADER_IS_ANACAONA' ); ----------------------------------------------- -- Requirements ----------------------------------------------- INSERT INTO Requirements (RequirementId, RequirementType ) VALUES ('REQ_CVS_LEADER_IS_ANACAONA', 'REQUIREMENT_PLAYER_LEADER_TYPE_MATCHES' ); ----------------------------------------------- -- RequirementArguments ----------------------------------------------- INSERT INTO RequirementArguments (RequirementId, Name, Value ) VALUES ('REQ_CVS_LEADER_IS_ANACAONA', 'LeaderType', 'LEADER_CVS_ANACAONA' );
true
ae95b08f1edc628397680d92aa0b2adebc6df1ce
SQL
techgod/AirlineManagementSystem
/Phase-2/queries.sql
UTF-8
1,378
3.671875
4
[]
no_license
/*Find avg salary of captain in airline*/ select avg(salary) from employee where designation='CAPTAIN'; /*Find details of oldest aircraft*/ select serial_no, age from airplane where age = (select max(age) from airplane); /*Find fligths flying to bengaluru*/ select flight_no,destination,dep_time,arv_time from flights where destination='BLR'; /*Find total sale for a particular day*/ select sum(fare) from bookings where booking_date ='2019-03-21'; /*Find name & designation of crew on flight PSY 808*/ select employee.name, employee.designation from crew join employee on employee.emp_id = crew.emp_id join flights on crew.flight_no = flights.flight_no where crew.flight_no='PSY 293'; /*Find employees working at Bengaluru*/ select employee.name ,employee.emp_id from works_at join employee on employee.emp_id = works_at.emp_id join airport on airport.code = works_at.aircode where works_at.aircode='BLR'; /*Find food orders associated with a particular pnr*/ select * from includes join food on food.sku = includes.sku join bookings on bookings.pnr = includes.pnr where bookings.pnr='2HH326'; /*Find number of economy & businness class seats in the aircraft for a particular booking*/ select economy,business from flies join airplane on airplane.serial_no = flies.serial_no join bookings on bookings.flight_no = flies.flight_no where bookings.pnr='IO2O2JI';
true
109c2f2c2379c1f785b743e52e2504a534d597a8
SQL
adisemicolon/pemrograman-desktop
/dbakademik.sql
UTF-8
4,892
2.609375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 29 Mei 2017 pada 14.54 -- Versi Server: 10.1.9-MariaDB -- PHP Version: 5.6.15 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: `dbakademik` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `angsuran` -- CREATE TABLE `angsuran` ( `angsuran` char(2) NOT NULL, `SPA` int(11) DEFAULT NULL, `SPP_Tetap` int(11) DEFAULT NULL, `NIIT` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `angsuran` -- INSERT INTO `angsuran` (`angsuran`, `SPA`, `SPP_Tetap`, `NIIT`) VALUES ('01', 20, 2750000, 1250000), ('02', 20, 2750000, 1250000), ('03', 15, 2750000, 1250000), ('04', 15, 2750000, 1250000), ('05', 15, 2750000, 1250000), ('06', 15, 2750000, 1250000), ('07', 0, 2750000, 1250000), ('08', 0, 2750000, 1250000), ('09', 0, 2750000, 1250000), ('10', 20, 2750000, 1250000), ('11', 20, 2750000, 1250000), ('12', 20, 2750000, 1250000), ('13', 20, 2750000, 1250000), ('14', 20, 2750000, 1250000); -- -------------------------------------------------------- -- -- Struktur dari tabel `mahasiswa` -- CREATE TABLE `mahasiswa` ( `NIM` char(9) NOT NULL, `Nama` varchar(30) DEFAULT NULL, `Jurusan` char(2) DEFAULT NULL, `Jenjang` char(2) DEFAULT NULL, `Gelombang` varchar(2) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `mahasiswa` -- INSERT INTO `mahasiswa` (`NIM`, `Nama`, `Jurusan`, `Jenjang`, `Gelombang`) VALUES ('163110001', 'Putri Ayu Lestari', 'MI', 'D3', '1'), ('163110002', 'Astrini Twi Alfi Kusumastuti', 'MI', 'D3', '1'), ('163110003', 'Leni Adawiyah', 'MI', 'D3', '1'), ('163110004', 'Ade Annisa Rahmawati', 'MI', 'D3', '1'), ('163110005', 'Dahniar Ramadhanti Karyani', 'MI', 'D3', '1'), ('163110006', 'Febrianto', 'MI', 'D3', '1'), ('163110007', 'Aprila Bena Putra', 'MI', 'D3', '1'), ('163110008', 'Ade Puspitaningrum', 'MI', 'D3', '1'), ('163110009', 'Dana Nur Fiqi', 'MI', 'D3', '2'), ('163110010', 'Valentina Nurpuspita', 'MI', 'D3', '2'), ('163110011', 'Muhdi Pangestu', 'MI', 'D3', '2'), ('163110012', 'Yuli Supriani', 'MI', 'D3', '2'), ('163110013', 'Muhammad Taufik', 'MI', 'D3', '2'), ('163110014', 'Marselinus Seran', 'MI', 'D3', '2'), ('163110015', 'Candra Kurniawan', 'MI', 'D3', '2'), ('163110016', 'Bian Yovieta Wijaya', 'MI', 'D3', '2'), ('163110017', 'Doni Yanuar Kusuma Putra', 'MI', 'D3', '2'), ('163110019', 'Vita Ariyana', 'MI', 'D3', '2'), ('163110020', 'Ulfa Nur Fajri Maharani', 'MI', 'D3', '3'), ('163110021', 'Rahmi Nanda Kusuma Pratiwi', 'MI', 'D3', '3'), ('163110022', 'Dwi Dian Hayati', 'MI', 'D3', '3'), ('163110023', 'Randy Bayu Samudra P', 'MI', 'D3', '3'), ('163110024', 'Khiftian Aji Pamungkas', 'MI', 'D3', '3'), ('163110025', 'Dewi Irawati', 'MI', 'D3', '3'); -- -------------------------------------------------------- -- -- Struktur dari tabel `pembayaran` -- CREATE TABLE `pembayaran` ( `id_bayar` int(11) NOT NULL, `NIM` char(9) DEFAULT NULL, `angsuran` char(2) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `pembayaran` -- INSERT INTO `pembayaran` (`id_bayar`, `NIM`, `angsuran`) VALUES (1, '163110001', '03'); -- -------------------------------------------------------- -- -- Struktur dari tabel `spa` -- CREATE TABLE `spa` ( `id` char(2) NOT NULL, `angkatan` char(4) DEFAULT NULL, `gelombang` char(2) DEFAULT NULL, `nilai` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `spa` -- INSERT INTO `spa` (`id`, `angkatan`, `gelombang`, `nilai`) VALUES ('01', '2016', '01', 8600000), ('02', '2016', '02', 9000000), ('03', '2016', '03', 9600000); -- -- Indexes for dumped tables -- -- -- Indexes for table `angsuran` -- ALTER TABLE `angsuran` ADD PRIMARY KEY (`angsuran`); -- -- Indexes for table `mahasiswa` -- ALTER TABLE `mahasiswa` ADD PRIMARY KEY (`NIM`); -- -- Indexes for table `pembayaran` -- ALTER TABLE `pembayaran` ADD PRIMARY KEY (`id_bayar`), ADD KEY `NIM` (`NIM`), ADD KEY `angsuran` (`angsuran`); -- -- Indexes for table `spa` -- ALTER TABLE `spa` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `pembayaran` -- ALTER TABLE `pembayaran` MODIFY `id_bayar` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `pembayaran` -- ALTER TABLE `pembayaran` ADD CONSTRAINT `pembayaran_ibfk_1` FOREIGN KEY (`NIM`) REFERENCES `mahasiswa` (`NIM`), ADD CONSTRAINT `pembayaran_ibfk_2` FOREIGN KEY (`angsuran`) REFERENCES `angsuran` (`angsuran`); /*!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
b783af77faf9d78db6afcdff68c3c6d66a1a6deb
SQL
Adrish1999/SQL-Database-Management-System
/Day-02 Sales/Query_08.sql
UTF-8
259
3.453125
3
[]
no_license
/* Find products whose selling price is more than 1500. Calculate a new selling price as original selling price * .15. Rename the new column in the above query as new_price.*/ SELECT *, Sell_price*0.15 `New_price` FROM product_master WHERE Sell_price > 500;
true
29514a8bb2ef3b459afaa1da80a806f07efece89
SQL
raghavraman/RUC
/db.sql
UTF-8
1,916
3.40625
3
[]
no_license
CREATE TABLE IF NOT Exists `ruc_users` ( `user_id` int(11) NOT NULL, `email` varchar(50) NOT NULL UNIQUE, `first_name` varchar(50) DEFAULT NULL, `last_name` varchar(50) DEFAULT NULL, `age` int(3) DEFAULT NULL, `email` varchar(128) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(128) COLLATE utf8_unicode_ci NOT NULL, `photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `registered` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `refered_by` int(11) DEFAULT 1, `created_at` datetime NOT NULL, CONSTRAINT `user_login_PK` PRIMARY KEY (`user_id`), CONSTRAINT `user_details_FK_user_id` FOREIGN KEY (`user_id`) REFERENCES `user_login` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT Exists `ruc_signup_token` ( `token` varchar(32) NOT NULL, `genreated_by` int(11) NOT NULL, `generated_for` varchar(100) NOT NULL, `is_used` int(1) DEFAULT 0, `created_at` datetime NOT NULL, CONSTRAINT courses_PK PRIMARY KEY (`token`), CONSTRAINT `signup_token_FK_generated_by` FOREIGN KEY (`genreated_by`) REFERENCES `user_login`(`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT Exists `fact` ( `id` INTEGER NOT NULL, `score_phrase` varchar(50), `title` varchar(100), `url` varchar(100), `platform` varchar(50), `score` FLOAT(2,1), `genre` varchar(50), `editors_choice` varchar(100), `release_year` NUMBER(4), `release_month` NUMBER(2), `release_day` NUMBER(2), PRIMARY KEY (id) ); score_phrase title url platform score genre editors_choice release_year release_month release_day `genreated_by` int(11) NOT NULL, `generated_for` varchar(100) NOT NULL, `is_used` int(1) DEFAULT 0, `created_at` datetime NOT NULL, CONSTRAINT courses_PK PRIMARY KEY (`token`), CONSTRAINT `signup_token_FK_generated_by` FOREIGN KEY (`genreated_by`) REFERENCES `user_login`(`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
d57cda6a9267b8e698f38e33aef49e345e7b8ec6
SQL
hervekaffo/LaravelAjax
/db.sql
UTF-8
177,030
3.515625
4
[]
no_license
-- -------------------------------------------------------- -- Hรดte : localhost -- Version du serveur: 5.7.19 - MySQL Community Server (GPL) -- SE du serveur: 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' */; -- Export de la structure de la base pour datatables_demo CREATE DATABASE IF NOT EXISTS `datatables_demo` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `datatables_demo`; -- Export de la structure de la table datatables_demo. migrations CREATE TABLE IF NOT EXISTS `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Export de donnรฉes de la table datatables_demo.migrations : ~6 rows (environ) DELETE FROM `migrations`; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; INSERT INTO `migrations` (`migration`, `batch`) VALUES ('2014_10_12_000000_create_users_table', 1), ('2014_10_12_100000_create_password_resets_table', 1), ('2015_05_06_022458_create_posts_table', 1), ('2016_10_12_091446_create_user_post_table', 1), ('2016_10_13_000104_add_user_soft_delete', 1), ('2016_10_22_004452_create_tags_tables', 1); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; -- Export de la structure de la table datatables_demo. password_resets CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Export de donnรฉes de la table datatables_demo.password_resets : ~0 rows (environ) DELETE FROM `password_resets`; /*!40000 ALTER TABLE `password_resets` DISABLE KEYS */; /*!40000 ALTER TABLE `password_resets` ENABLE KEYS */; -- Export de la structure de la table datatables_demo. posts CREATE TABLE IF NOT EXISTS `posts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `posts_user_id_index` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=501 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Export de donnรฉes de la table datatables_demo.posts : ~500 rows (environ) DELETE FROM `posts`; /*!40000 ALTER TABLE `posts` DISABLE KEYS */; INSERT INTO `posts` (`id`, `user_id`, `title`, `created_at`, `updated_at`) VALUES (1, 44, 'Sed cumque nisi at assumenda eum. Culpa beatae omnis provident hic. Dolorem et corrupti at optio tenetur earum earum. Rerum consequatur reiciendis ea nesciunt.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (2, 288, 'Veniam ut aut animi repudiandae nemo non. Molestiae quasi temporibus quas deleniti.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (3, 364, 'Numquam dolorem et porro occaecati minus. Voluptas earum et eos quae mollitia. Est dolores fugiat quia autem vel quia aut. Aut excepturi omnis ut dolorem excepturi.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (4, 125, 'Ad accusantium ratione neque aspernatur numquam nisi facilis laudantium. Ea nihil dolorum voluptas voluptatibus neque repellat. Accusantium neque qui rem.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (5, 212, 'Porro accusantium et magnam dignissimos libero explicabo. Modi dolorem dolorum sapiente molestiae numquam. Quia ut eum quis deserunt voluptatem placeat voluptatibus. Enim et praesentium ut voluptatem harum quia.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (6, 172, 'Voluptate deserunt vero error. Ullam inventore qui in soluta ipsam. Dolorem explicabo dolores est. Sit et temporibus sunt qui.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (7, 167, 'Eos tenetur laudantium id sint vel quod. Veniam voluptates illum corrupti sit voluptas quam hic. Rerum vel qui nisi repellendus tempore voluptatum consequatur. Voluptatibus explicabo nam est quibusdam et commodi voluptatem.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (8, 269, 'Incidunt est natus quisquam. Quo magni consequatur sed. Officia qui cupiditate quas.', '2019-02-25 08:41:43', '2019-02-25 08:41:43'), (9, 179, 'Autem laboriosam eius soluta occaecati minus necessitatibus porro. Sint provident nisi quae est. Et est quia labore. Natus eius omnis aut ducimus iure cum nobis. Sit facilis voluptatum ut temporibus quidem.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (10, 196, 'Dolor reiciendis eligendi et modi doloribus error. Sed dolorum est odio ea. Nobis ut ipsa repellat quas sed explicabo qui dolores.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (11, 289, 'Magni sapiente delectus eum amet optio debitis. Explicabo asperiores dolores omnis nisi. Fugit assumenda incidunt culpa eum. Non quod eos delectus quia.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (12, 197, 'Ea aut labore laboriosam laboriosam qui. Cumque dolores rerum vitae unde fuga non ullam. Esse voluptatum rem repellendus vel voluptates. Dolores et nisi ab suscipit porro ratione sint dolores.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (13, 169, 'Nihil eaque qui omnis sequi aut culpa. Perspiciatis reprehenderit commodi quis impedit. Quis ratione ad nostrum est dolor assumenda. Voluptatem voluptatem temporibus dolore beatae voluptates at.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (14, 443, 'Sed id sunt ut qui vitae. Distinctio illo rerum veritatis deleniti voluptatem facere. Ab sint nihil sunt error amet commodi qui. Neque velit rerum unde eum ut sapiente.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (15, 190, 'Nostrum pariatur voluptatem et rerum. In quis qui id tenetur culpa. Nihil repellat minus eum quo aut. Et fugiat distinctio ratione minus quibusdam suscipit. Aspernatur cumque nobis voluptatibus totam.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (16, 334, 'Qui et excepturi nobis dolorem ex ullam ut. Accusantium ut reprehenderit et quos. Alias nihil consectetur explicabo dolorem nulla.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (17, 225, 'Sequi ut reprehenderit ducimus cumque. Necessitatibus quae sed est deleniti ratione est minima.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (18, 378, 'Nihil sed est velit delectus et nobis. Sed nam quia est iusto. Modi consequatur ab et eaque magnam.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (19, 231, 'In dolor debitis ut nihil iure. Soluta ut pariatur iure. Sapiente cumque ea quia commodi recusandae dolores. Enim ipsam esse nostrum voluptatem quibusdam praesentium. Adipisci animi praesentium cupiditate suscipit aliquam nostrum aliquid.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (20, 275, 'Est excepturi ipsa repellat consequatur nihil. Non omnis voluptas neque dicta dignissimos temporibus temporibus sed. Commodi atque quisquam nobis sunt est dicta voluptatibus. Est animi id aut eius perferendis.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (21, 436, 'Dolorem consectetur atque tempora enim quaerat sit dolor. Odio accusamus fugiat praesentium quis nesciunt nulla. Est quaerat amet cupiditate autem corrupti sequi.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (22, 436, 'Ea numquam dolorum eum in est. Qui deserunt vel in blanditiis. Qui et consequatur non odit. Deleniti laudantium impedit est tempore est.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (23, 182, 'Consectetur praesentium iure tenetur beatae quaerat id. Porro maxime enim voluptatum praesentium incidunt. Temporibus molestiae quae dolor modi aut impedit distinctio.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (24, 30, 'Est odio ut necessitatibus cupiditate deleniti est. Dicta fugiat inventore animi deleniti sunt suscipit. Ad accusamus sit atque dicta dolorem et et. Officiis perferendis accusantium velit tenetur ipsam.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (25, 70, 'Adipisci molestiae possimus asperiores id tempore iste doloribus officia. At ut nulla consequuntur nemo maiores. Et consectetur eligendi dolorum non et unde impedit qui. Ut nihil est nostrum doloremque labore.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (26, 460, 'Et quo adipisci et quis unde numquam deserunt. Adipisci laboriosam quisquam necessitatibus deserunt. Soluta voluptas quo nihil molestias enim.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (27, 402, 'Sequi consequatur et non facere tempore. Sit ea saepe veniam voluptatum labore ut ipsum. Blanditiis incidunt placeat et molestias et corrupti qui ut.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (28, 421, 'Ducimus vel velit est omnis nobis ut tenetur ad. Et et pariatur officiis omnis debitis porro. Iste deserunt et ut enim. Accusantium qui odit vitae omnis suscipit.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (29, 233, 'Quia sapiente voluptatum et et quia. Ipsa maiores qui aut vitae mollitia nostrum. Eligendi iure voluptates velit aut.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (30, 466, 'Molestiae perspiciatis consequuntur est temporibus. Quis est nulla in itaque provident. Id perferendis ea ullam delectus quod. Excepturi aut non qui.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (31, 429, 'Sequi eos exercitationem qui aut. Vero sed est eum quo adipisci quaerat. Ut distinctio eveniet non et.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (32, 12, 'Est dicta quibusdam cumque consectetur veniam inventore. Consectetur voluptates nisi ullam odio eveniet est. Tenetur officiis molestiae laboriosam necessitatibus voluptatem.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (33, 416, 'Nobis sit expedita iste itaque dolor rerum sit. Repellendus et et omnis est velit. Et ad temporibus at ea odio. Iure numquam consequuntur laudantium sit.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (34, 253, 'Similique sapiente iusto rerum consequatur. Et culpa sed doloribus velit. Corporis enim et beatae aut atque esse quos aut. Delectus qui qui minus natus architecto vero.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (35, 43, 'Accusantium ad veniam amet inventore facere repellendus. Consectetur ad dolor magnam repellat corrupti. Laboriosam vel debitis tenetur ipsa quia.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (36, 395, 'Similique dolore dicta dolorem rerum eos iusto. Sint ut doloremque voluptas sed alias. Tempora maiores sit fuga ex consequatur rem. Culpa ut ipsum et.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (37, 436, 'Enim minus temporibus fuga. Fuga quas eligendi ut voluptate similique voluptatem ea. Est est impedit eos aut cum. Ea nemo dolore qui commodi.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (38, 405, 'Eum dicta iste commodi aliquid aut quas. Illum quia corrupti aut. Quo neque consequatur omnis non. Non vel sint laudantium officia veniam odio.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (39, 92, 'Ut maxime ducimus et molestiae culpa occaecati. Molestias veritatis delectus alias et et modi libero neque. Soluta ex laudantium iusto aspernatur.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (40, 237, 'Quaerat magnam quod dolores dolorem dolorem inventore quidem non. Est quisquam error ut nesciunt quos expedita quis deserunt.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (41, 277, 'Velit explicabo similique sunt non pariatur voluptas dolor. Dolor quis dolor neque soluta delectus. Beatae ipsam et a voluptates.', '2019-02-25 08:41:44', '2019-02-25 08:41:44'), (42, 389, 'Et consequuntur corporis autem saepe non ex aut. Et ea laboriosam error ut enim sint sed et. Error ratione modi animi quibusdam nihil.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (43, 388, 'Sit assumenda reprehenderit magnam soluta sequi ut. Explicabo qui est dolores asperiores excepturi sit perspiciatis. Occaecati quaerat odit enim fugit quam.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (44, 285, 'Molestiae iusto unde qui et aperiam nihil quia porro. Illum voluptas itaque velit. Rerum aliquam voluptatum nam atque aut rerum sint.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (45, 155, 'Aut et quia a esse et voluptates. Suscipit neque eum eum saepe. Sunt consequatur non aliquam cupiditate est ratione rerum libero.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (46, 343, 'Iusto voluptate velit qui nemo. Neque ea molestiae cupiditate. Numquam id voluptate in nemo quae eveniet.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (47, 445, 'Libero autem consequatur temporibus aut. Non temporibus odit omnis omnis sit dolore quibusdam cupiditate. Repellat est voluptatem quis voluptas. Dolorem rem ad dicta.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (48, 349, 'Perspiciatis omnis recusandae aut quis maxime. Id ab officiis nisi eaque animi. Numquam et earum nostrum. Nobis sapiente itaque iste id magnam.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (49, 228, 'Ipsum veniam facilis id est. Blanditiis in minima possimus et vel. Est qui enim consequuntur voluptas.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (50, 431, 'Rerum eveniet aut est rem. Nemo impedit corporis id fugit et assumenda distinctio. Quis quia a sunt optio quis optio.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (51, 369, 'Vel officiis tempora perspiciatis et non. Est saepe impedit modi minus dolores dignissimos dicta id. Est temporibus eum repellendus excepturi accusamus.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (52, 472, 'Natus deleniti beatae minus nobis perspiciatis enim consequatur. Dolor soluta totam reiciendis quia. Magni dignissimos quas rerum doloremque est.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (53, 352, 'Dignissimos dolorum voluptatem qui quasi quidem. Hic consequatur repellendus molestias optio nobis amet ipsam. Architecto provident fugiat blanditiis molestiae natus. Dolores quos voluptas reiciendis ullam enim cum.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (54, 291, 'Omnis architecto sapiente laudantium ea ipsum blanditiis aspernatur. Praesentium velit voluptatem unde voluptatem. Rerum quam rerum blanditiis.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (55, 325, 'Quos quo similique quod voluptas debitis eos et. Laboriosam corporis distinctio officiis reprehenderit est reprehenderit. Dolorem et magnam at eius omnis ad illo.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (56, 143, 'Dolorem velit incidunt sint. Dolorum dolorum sed sit animi veniam placeat officia. Consequatur non labore quam molestiae in dicta eveniet. Nemo qui voluptas et ipsa fugiat nulla.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (57, 152, 'Repudiandae quos occaecati ea et repellendus. Quos doloremque et possimus aut minima nihil. Officiis quod ipsam ratione molestias. Qui a officiis quo aliquam.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (58, 148, 'Quam libero eos quis illo nisi. Architecto placeat dolores saepe est. Sit sed provident hic quasi nobis asperiores rerum. Ipsa sit possimus enim non et et.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (59, 60, 'Earum illo neque esse delectus est. Eveniet architecto veniam dolores non deleniti. Saepe aperiam consequatur autem temporibus neque ipsa assumenda. Eos deleniti ut excepturi exercitationem eos.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (60, 224, 'Illo mollitia consequatur autem itaque suscipit repellendus. Ipsa voluptas et molestiae vero. Nostrum ut quis nemo vitae autem tempore. Excepturi eos rerum mollitia doloremque.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (61, 106, 'Quidem magnam ad illum sed natus. Nihil vitae fuga eos ex blanditiis consequuntur laboriosam. Hic fugit voluptates exercitationem est aut sit. Eaque eveniet exercitationem laudantium enim libero.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (62, 234, 'Suscipit soluta fugiat error at harum numquam quasi. Magnam aspernatur in in ut sapiente ex. Dolorum aut suscipit provident doloremque consequatur.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (63, 26, 'Quia molestias aut delectus ut reiciendis aut ad. Nam ducimus deserunt corrupti. Cum ut at cum saepe ducimus sunt eos. Vel omnis modi in.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (64, 102, 'Sint sit reiciendis praesentium accusantium sunt expedita in. Ab fugit voluptatem et. Corporis impedit enim sit nobis vel. Tempora odio aut sapiente amet.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (65, 447, 'Recusandae porro autem odit sit et. Eos non quia illo nesciunt quae sit. Et voluptas deleniti voluptatem hic officia debitis cupiditate. Quo laborum possimus id esse omnis velit.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (66, 423, 'Odio et porro enim labore quibusdam. Alias qui eaque iste ex tempore quia soluta. In odit et similique expedita pariatur dolore consequatur.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (67, 493, 'Voluptas iste fugiat minus dicta. Sit similique occaecati id ex repellat voluptatem odio commodi.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (68, 219, 'Voluptatem non voluptate voluptas qui ratione et voluptatem. Voluptas impedit ut nemo laudantium. Non aperiam nam fugit commodi voluptatem nesciunt.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (69, 188, 'Officiis id veritatis facilis cum reiciendis. Accusantium eligendi in mollitia autem.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (70, 470, 'Eligendi asperiores dolorum iusto nesciunt consequatur. Voluptas hic consequatur sint omnis vero fugiat. Asperiores cum excepturi dolor nam voluptates fuga magnam omnis.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (71, 288, 'Sed expedita odit facilis officiis numquam vel adipisci. Ipsum autem dolore eos sint.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (72, 91, 'Id reprehenderit quae accusamus tenetur. Officia est enim beatae est a quod veniam. Aut vel itaque nobis quod dignissimos magni quia. Sit omnis voluptatum ullam blanditiis quisquam repellendus eaque rerum.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (73, 171, 'Debitis est nihil vel reprehenderit quasi rerum saepe. Explicabo dolorem ut excepturi voluptatibus. Necessitatibus consequatur minima neque ea dignissimos ut. Voluptatibus atque eos non at doloremque.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (74, 67, 'Aliquam dolores asperiores similique deserunt. Explicabo omnis alias dolores qui neque. Voluptatem cum quasi harum consequuntur molestiae. Nemo nam recusandae eius qui numquam non est dicta.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (75, 207, 'Id odio unde eum reprehenderit ut vitae maxime. Pariatur reiciendis eum iusto rem qui. At culpa aut autem.', '2019-02-25 08:41:45', '2019-02-25 08:41:45'), (76, 209, 'Odio minus rerum omnis consequuntur ex. Qui dolorum qui nihil deleniti aut. Suscipit voluptas ducimus sed autem. Quis enim eos quisquam odio.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (77, 255, 'Explicabo nam iste quod soluta quas aliquam. Deserunt voluptas quia minus sint. Quia molestias molestiae ut nihil suscipit.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (78, 93, 'Perferendis voluptas sint vero dolorem reiciendis quia. Ipsa tenetur enim ipsam quo ut.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (79, 6, 'Sunt fugiat sed accusantium corrupti consectetur beatae. Corporis cum dolorem modi recusandae quidem molestiae iusto. Voluptatem eaque consequuntur dolorem reiciendis.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (80, 345, 'Et sit soluta accusamus accusantium. Delectus ut ea illum non. Quia fugit et eaque.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (81, 394, 'Excepturi reprehenderit quis quasi eum officia. Est tenetur maiores repellendus. Numquam adipisci dolores nulla et nobis voluptate quia. Dolores magnam qui necessitatibus non. Qui et rerum iure dicta et dolorem.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (82, 384, 'Vel numquam nostrum aperiam autem repudiandae asperiores eum. Repudiandae pariatur eius quia ad. Qui occaecati temporibus saepe aut sed.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (83, 295, 'Doloremque corporis rerum itaque. Reiciendis voluptatem laboriosam eum. Tempora est aut non quia dolorem.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (84, 245, 'Eaque blanditiis aliquid sit ut maiores dolor assumenda. Doloribus rerum natus placeat nulla perferendis. Consequuntur rerum sed quia quidem quos consequatur. Eos qui et exercitationem ut. Esse fuga vel sint quia nisi inventore.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (85, 208, 'Sit molestiae dolores at voluptatem qui est quis cum. Illum eum molestias quisquam quia non et expedita officia. Sapiente nam aut qui non laborum ex et ut. Esse id neque voluptatem dolorem qui placeat.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (86, 412, 'Id voluptas enim iusto similique quis ullam et. Et et id et a. Quia asperiores ut consectetur omnis voluptas rem sapiente.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (87, 43, 'Eum omnis sit qui commodi et similique. Qui totam quae mollitia omnis. Omnis quidem sit eos amet optio quas qui. Aliquam autem sunt dolore temporibus consequuntur amet.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (88, 184, 'Et et accusamus numquam ipsam eveniet. Culpa harum expedita ducimus nihil. Ea provident placeat ducimus distinctio voluptatem minus consequatur. Qui sit et et aspernatur ratione enim.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (89, 161, 'Sunt et facere excepturi. Hic quod voluptatem quas est. Alias dicta vero nobis cupiditate beatae. Architecto sed dicta quasi voluptas qui culpa.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (90, 352, 'Delectus repudiandae ex ducimus totam sapiente accusantium. Et omnis cumque voluptatem nulla quia esse. Et placeat ut eos dolore aut praesentium qui aut. Aut sit id qui.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (91, 237, 'Est ut quidem rerum. Dolores numquam ut animi maiores est fuga. Voluptas aut provident architecto praesentium fugit esse.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (92, 279, 'Adipisci voluptatem aut maiores cumque repellendus fugiat. Et est enim similique illum omnis eius. Molestiae iure quo quis aut.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (93, 356, 'Quia iste voluptas commodi ut ipsam et. Accusantium perspiciatis tenetur adipisci praesentium. Voluptas ut ab non libero voluptatem quod.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (94, 352, 'Illo possimus nisi omnis autem officiis. Inventore omnis in ipsam ut consectetur. Modi aliquam suscipit minus temporibus amet asperiores numquam.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (95, 252, 'Ut nulla perferendis nesciunt. Ut eos accusantium dolorem. Et asperiores accusantium est delectus laboriosam porro autem. Quae sequi quis qui beatae enim.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (96, 92, 'Dolores in sapiente sunt fuga accusamus similique. Ad dolor veniam in sit qui ipsa. Doloribus ab magnam unde. Blanditiis dolor amet ut libero nisi odio.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (97, 80, 'Occaecati assumenda sit non iure est accusamus consectetur. Optio beatae tenetur quia omnis nam. Natus enim eum aut. Praesentium voluptas ea neque aliquid.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (98, 360, 'Excepturi quia vel et vel dolorum. Nesciunt quia enim molestias atque consequuntur molestiae. Aut quisquam corrupti et ratione autem qui temporibus ipsa. Suscipit et autem voluptas architecto aperiam vel consequuntur fugit.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (99, 264, 'Voluptatem eum at sed doloribus. Enim ut eos aut consequuntur omnis et. Explicabo non necessitatibus voluptas dolorum dolores tenetur dolor. Voluptatem et maxime sunt est excepturi rem.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (100, 43, 'Voluptates nemo repellendus illum quae magnam. Voluptatum deserunt et labore dolorem omnis et esse. Nesciunt vero at voluptatem voluptates labore. Et iure et quae velit ea saepe. Amet accusantium tenetur asperiores necessitatibus quos voluptatem.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (101, 376, 'Quisquam hic quisquam aut laudantium. Aut qui omnis quo aperiam enim sit quasi. Ea nihil debitis fugit occaecati a dolor impedit ut.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (102, 6, 'Quidem in adipisci rerum inventore praesentium. Voluptatum minima sed atque delectus nihil repudiandae. Quia qui tenetur beatae inventore illo hic possimus.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (103, 236, 'Minus ut dolor qui perferendis laboriosam similique. Et enim consectetur quos quibusdam. Maxime officia libero delectus dolor atque. Laudantium corporis itaque voluptatem laborum quas.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (104, 168, 'Architecto modi dignissimos quo et aut ut. Fuga culpa quis sequi optio. Molestias fugit aut officia. Enim quasi dolorum explicabo nesciunt voluptatem aspernatur.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (105, 197, 'Ea fugiat dolor officia asperiores eos. Molestiae voluptatem voluptatem in repudiandae. Sequi quibusdam ad ea.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (106, 76, 'Voluptas provident quibusdam pariatur sint. Atque sed animi natus laboriosam. Quae hic quaerat minus temporibus.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (107, 75, 'Iure id suscipit eos officia ut iure exercitationem. Natus reprehenderit dolorum quo autem voluptatem repellendus placeat. Itaque quas et ex totam excepturi.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (108, 383, 'Et vel delectus aut impedit sint. Velit quia ab dolorum nisi dignissimos illum. Magnam fuga necessitatibus veniam ut nemo.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (109, 366, 'Quod aut architecto quia sed debitis dolorem recusandae nemo. Eius nobis perferendis occaecati occaecati eos reprehenderit tempore ipsa. Et et ea aut ipsa occaecati mollitia et.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (110, 416, 'Quam iste consequatur et delectus eum maiores iure. Velit voluptatem earum qui. Et eos voluptatem beatae voluptas dignissimos. Tenetur est maiores veniam.', '2019-02-25 08:41:46', '2019-02-25 08:41:46'), (111, 340, 'Beatae quam aperiam tempore consequatur consectetur nesciunt vitae. Aliquam odio dolore ducimus iste cumque a omnis. Fuga omnis reprehenderit autem quasi aut ullam.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (112, 63, 'Quo quam sapiente sit quibusdam. Aut dolorum dolorum quod fuga perspiciatis sed. Nostrum voluptatem quia sit quia omnis.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (113, 55, 'Iusto provident laudantium dolorum et perspiciatis eum delectus. Sunt aperiam nesciunt itaque architecto. Iusto assumenda et ea commodi tempora dignissimos. Voluptatum autem et ab iste.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (114, 276, 'Beatae velit magnam recusandae eos earum. Aut in pariatur iure esse. Occaecati quisquam et velit eveniet dolorem sunt.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (115, 471, 'Blanditiis vel voluptatem animi recusandae sit hic. Necessitatibus et animi animi quibusdam. Sequi autem quaerat voluptatem.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (116, 373, 'Harum debitis totam ut voluptates blanditiis. Ea reiciendis fugit in dolores officiis aut quis. Beatae sit quisquam vitae debitis unde ad beatae.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (117, 228, 'Quod illum voluptas quia. Nisi reiciendis consequatur et impedit quia. Modi possimus quisquam dolor suscipit enim expedita eveniet. Aut dolorem nihil qui id.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (118, 96, 'Tempore omnis error neque deleniti temporibus. Pariatur officiis non aliquam accusamus facere optio maiores. Illum molestias excepturi quas consequatur enim fugit eveniet. Cumque ipsum ad illum repudiandae quos rem.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (119, 396, 'Consequatur harum sed consequatur quae enim. Odit nihil pariatur repudiandae et.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (120, 43, 'Voluptate voluptatem non ipsam. Necessitatibus saepe sit rerum aut sint. Adipisci non esse ut id et.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (121, 268, 'Ex exercitationem incidunt quas laboriosam exercitationem. Unde quam nisi nam quam ullam eum qui. Soluta quis blanditiis mollitia non eum. In recusandae sit et eius expedita qui.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (122, 333, 'Dolor qui expedita quo magni ut. Aut illum natus consequatur deleniti. Ut sed voluptas modi unde voluptatem doloremque sunt repellat.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (123, 227, 'Accusantium sunt suscipit veniam vero quibusdam nesciunt. Et voluptatum sit deserunt ab. Deleniti a tempore voluptatum.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (124, 149, 'Repudiandae quo quibusdam facilis vero sequi illo et. Optio reiciendis maxime odit ipsum neque omnis quaerat. Molestias suscipit tenetur necessitatibus ex et quo nemo.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (125, 434, 'Nam corporis sed cum qui. Modi accusantium dolorum autem est. Similique quod similique cupiditate aut in.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (126, 458, 'Vero nemo sed vitae alias omnis exercitationem dolores. Aut fuga quo a sint error. Sunt perferendis hic quis eum voluptates necessitatibus.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (127, 220, 'Similique voluptate necessitatibus cum deserunt tempora quisquam. Labore maxime soluta non dolorem. Sed quo quo aliquid vel. Iste voluptas est quia dolor error.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (128, 159, 'Voluptatem enim velit eaque est. Voluptas quisquam dolor nisi et harum rerum fugit. Quis sunt quae iure et maxime at amet. Et nemo quo consectetur expedita earum dolorem assumenda illo.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (129, 463, 'Exercitationem qui magnam explicabo libero maxime. Vero et et voluptates animi mollitia consequuntur nesciunt. Laboriosam magnam eum omnis non aut cupiditate.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (130, 167, 'Fugit voluptatibus recusandae quaerat tempora dolorum doloribus. Reiciendis ipsum non assumenda atque quis veritatis vero. Ducimus maiores est voluptatem voluptas. Ut quaerat qui velit praesentium delectus repellendus officiis.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (131, 284, 'Non molestiae est eius ut recusandae adipisci est. Et qui ducimus consequuntur natus ipsam ullam. Voluptates quo ratione voluptates vel. Asperiores rerum officiis et.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (132, 396, 'Deserunt hic aut sed adipisci alias dolorum. Quam in commodi facilis accusamus excepturi eaque. Ut assumenda ut ut est. Dolor rerum omnis excepturi.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (133, 256, 'Deleniti adipisci fugiat aut deserunt unde dolorem debitis praesentium. Aut nostrum expedita sit sit consequatur. Praesentium accusantium aliquid recusandae alias rerum temporibus. Omnis ut enim perferendis deleniti et.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (134, 28, 'Voluptatem omnis nostrum tempore. Magnam esse dolores non rerum iusto. Doloremque aut reiciendis ipsam vero sequi ea. Perferendis ex quia quis laudantium modi placeat et.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (135, 371, 'Eos et quo debitis sunt ad. Autem vel amet dolores sed soluta consequatur adipisci.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (136, 175, 'Voluptas recusandae numquam autem eaque. Dolorum est sed ipsam iure illo et laborum. Quaerat voluptatum ipsum omnis fugiat molestiae. Facere mollitia inventore deleniti commodi soluta.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (137, 235, 'Aperiam omnis asperiores aut. Nihil repudiandae sunt molestiae et sed. Aut pariatur suscipit culpa aut laborum reprehenderit recusandae. Et quos ipsum saepe cum vero illum.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (138, 384, 'Et asperiores voluptas magnam et. Dolor dolores magnam quaerat libero voluptatibus et minus nulla. Consequatur rerum voluptatem rerum. Culpa sint repellat rerum dignissimos natus.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (139, 448, 'Occaecati adipisci praesentium optio soluta dolorum dolorum. Asperiores ut sapiente similique. Et dicta architecto iusto autem unde asperiores.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (140, 45, 'Nesciunt recusandae voluptatem rerum ut. Laudantium et tenetur placeat autem ea qui. Est commodi quibusdam non libero inventore. Et voluptatibus velit quaerat deleniti sapiente in alias.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (141, 235, 'Ea earum optio fugiat voluptatum aliquid neque. Quia et et quis magni repellat. Pariatur iure cumque accusamus harum. Magni ut sunt dolor sit qui perferendis officia.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (142, 163, 'Est sit velit inventore voluptatibus velit. Libero repudiandae sed fuga molestiae dicta at. Est voluptatibus voluptas eum veniam et voluptatum et.', '2019-02-25 08:41:47', '2019-02-25 08:41:47'), (143, 106, 'Beatae nihil error consectetur quam laboriosam quia similique. Aliquam expedita voluptas officia. Dignissimos iure sunt consequatur ipsam a quaerat. Veniam aliquid inventore odio qui sit consequatur nobis.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (144, 135, 'Ut quibusdam aperiam quo cupiditate occaecati qui corporis. Et fuga eaque eos voluptates quas unde ut. Est ex cum iusto harum perspiciatis nesciunt. Quas eveniet velit et consequuntur nostrum nisi.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (145, 250, 'Ut exercitationem et facere provident fugiat in. Est laboriosam voluptate et qui recusandae eaque enim. Sit amet vel officiis in et eos qui. Consequuntur nihil tenetur magni aut nobis.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (146, 493, 'Praesentium ipsam veniam id ullam nulla esse. Fugiat nesciunt molestiae autem qui ea non possimus voluptatum. Modi voluptatem quidem quis dolorem ut molestiae quia. In assumenda asperiores assumenda ratione fuga.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (147, 122, 'Optio veniam qui iusto animi magnam in vel. Impedit harum voluptatum dolor itaque neque occaecati repellat. Quibusdam totam rerum rerum quo. Molestias cupiditate at consequatur hic delectus et.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (148, 109, 'Qui cupiditate natus unde laudantium officia. Ipsa fugit soluta soluta voluptas enim. Sit delectus distinctio cumque et unde nisi vel.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (149, 464, 'Veniam magnam dolor voluptatem soluta tenetur delectus vel quaerat. Voluptas earum quos provident dignissimos ipsam. Odio est corrupti omnis aperiam ut voluptate deserunt. Dolores aut ut vitae nihil qui tenetur recusandae. Molestias molestiae quisquam cor', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (150, 349, 'Quaerat voluptatem optio et doloremque maiores veniam. Aut adipisci voluptatem sed consequatur animi illum nobis.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (151, 216, 'Et beatae ullam voluptas voluptas non excepturi. Necessitatibus at quo dolor autem exercitationem facilis est. Rerum enim nam rem hic dolores neque illum. Nulla tempore ut vitae suscipit alias perferendis tempore.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (152, 377, 'Vel nihil explicabo et voluptates ab in. Sint a aut beatae similique deleniti eos architecto. Numquam sunt voluptates eum. Laborum distinctio sapiente debitis est blanditiis vel.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (153, 342, 'Est mollitia maxime qui quia aut. Et sapiente consectetur magnam aut odit est nobis. Omnis quis enim repudiandae adipisci.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (154, 341, 'Distinctio deserunt nisi reiciendis molestias in sit. Et perferendis accusantium excepturi dignissimos. Cupiditate maiores et sit eaque totam nisi quo. A dolorem sit voluptas molestiae.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (155, 90, 'Numquam ad unde et consequatur laborum omnis. Cumque eum inventore aliquid ipsa maiores. Qui mollitia atque aperiam consequatur qui et eaque.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (156, 477, 'Excepturi aliquam earum dicta est adipisci. Maiores dolores velit aut nobis. Rerum sed minima voluptas et placeat sit voluptate. Consectetur et aspernatur totam voluptatem libero quia voluptatem. Dolor consequatur expedita voluptate.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (157, 488, 'Aut repudiandae veniam eius corporis qui dolores eveniet. Beatae et commodi consectetur vitae qui dolor voluptatibus. Aliquam quis at ab corporis distinctio.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (158, 303, 'Quia soluta eos alias. Repellendus alias dolor magni et. Autem deserunt dolorem libero facilis. Incidunt modi dolorem sit minima necessitatibus laborum.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (159, 53, 'Qui voluptatibus et sit sunt eligendi in. Placeat consequatur quo et et saepe odio vel. Quia porro id architecto ipsa.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (160, 498, 'Et illum voluptatem voluptatibus rerum dolor ut. Quam veniam et optio ea sint. Beatae repudiandae ullam dolores rerum possimus et.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (161, 227, 'Nihil aut qui sapiente doloribus. Unde omnis illum id alias sint est aut. Necessitatibus rerum qui molestias dolorem aut.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (162, 433, 'Pariatur aut a corrupti enim tenetur tempora consequatur. In illo dolorem nostrum pariatur. Ratione et nam molestiae voluptate autem praesentium voluptas perferendis. Accusamus recusandae iusto eum nihil dolorem omnis.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (163, 391, 'Rem qui incidunt aspernatur qui et eligendi. Dolores quidem pariatur iste sequi aperiam deleniti culpa praesentium. Amet est possimus molestiae quae corrupti magnam consectetur officia. Hic sunt eaque ducimus tempora quasi.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (164, 20, 'Corrupti ut et laboriosam nemo. Itaque ea dolorum eveniet non. Eum dignissimos cupiditate non et laudantium.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (165, 126, 'Omnis qui laudantium ex vero sed rerum. Iusto at odit vel nobis vel. Voluptatibus veniam ut non.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (166, 472, 'Distinctio ut quo eos totam et. Aut delectus et dolor rerum qui qui fugit a. Quas dignissimos culpa beatae et. Magnam ut illum est quos ut sed. Enim ea vitae cumque numquam corporis at.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (167, 71, 'Doloremque ipsa sed exercitationem animi qui. Est eligendi quae voluptas numquam deserunt. Iusto aliquam vero sint.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (168, 175, 'Perferendis neque aspernatur laudantium ea. Culpa eius quia iste odio accusamus aliquid qui. Quibusdam modi nam tempora beatae omnis dolor quasi voluptatem. Quia omnis iure molestiae ratione voluptas et.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (169, 42, 'Dignissimos hic molestiae ipsa ipsam sit non facilis. Non fugiat beatae vel deleniti rerum consequatur eligendi. Dolorem odit eaque atque quod nam. Est eligendi est expedita perferendis ex quia. Dolorem et qui sed ducimus aperiam quasi ut.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (170, 421, 'Consectetur sed rerum voluptatem. Id maiores eum ut fuga quod. Qui praesentium saepe ut voluptatem. Aut qui exercitationem aperiam qui omnis. Ad voluptatem voluptatum ut soluta minus est soluta.', '2019-02-25 08:41:48', '2019-02-25 08:41:48'), (171, 56, 'Praesentium et nihil accusamus sit et blanditiis et. Sed hic tempora ut deleniti rerum et. Laboriosam quas eos ratione aliquid est tenetur tempore porro. Rerum ex eveniet recusandae fugiat iure et.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (172, 367, 'Provident ut ut dolorum sed aut. Laboriosam harum iure architecto voluptate. Ut soluta placeat at numquam.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (173, 255, 'Totam non nam reprehenderit eum. Magni assumenda culpa aut voluptatum. Sint dolores saepe quo culpa voluptatum.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (174, 148, 'Molestiae mollitia molestiae eius recusandae delectus ea sit. Dolorem quidem beatae in sapiente eaque debitis. Officia voluptatibus doloremque error. Quia veritatis hic fugiat ullam fugiat perspiciatis nulla.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (175, 278, 'Aperiam et temporibus nisi a tenetur. Qui qui nisi sapiente. Corporis porro perferendis quae quasi atque. Excepturi et officiis perferendis culpa ad.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (176, 190, 'In dolorem quas nisi sit voluptas. Dolorem eum repellendus rerum quam perspiciatis non dolorum. Et dolores et laborum fugiat est quia quaerat. Ut aut reprehenderit itaque occaecati labore eligendi.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (177, 153, 'Qui laborum quae est porro. Perferendis nobis unde tempore saepe quis illum sequi. Dicta consequatur nihil deleniti at rem quia.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (178, 282, 'Sit in voluptatem tempore dolor. Exercitationem placeat suscipit fugit impedit nisi. Incidunt id occaecati reiciendis. Reprehenderit accusantium similique et aut consequuntur.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (179, 197, 'Nam odio aspernatur eum sunt officia rerum voluptatem. Omnis accusamus dolorem repudiandae unde rerum. Rerum consequatur est pariatur nesciunt vel. Dolores quia libero praesentium dolores quidem vitae.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (180, 291, 'Voluptas quam molestiae debitis reprehenderit. Ut voluptatibus et eos molestiae nesciunt dolor. Possimus voluptate neque autem sunt et et omnis voluptatem. Et occaecati quae aut neque saepe. Minima consequatur reiciendis laudantium aut et iure.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (181, 391, 'Asperiores et eaque inventore quo. Adipisci eius temporibus vitae provident. Eum tempora iste eaque assumenda. Voluptatem est consequatur autem earum et modi.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (182, 274, 'Asperiores non sequi est vero non corporis nesciunt. Et sed numquam occaecati repudiandae. Voluptate possimus debitis dolorem sapiente. Magnam commodi enim numquam pariatur odit corporis est. Distinctio quidem fugit laudantium quia.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (183, 24, 'Hic voluptate doloremque expedita quasi. Ducimus aliquam enim deleniti illum odit. Aperiam aperiam autem aut ex est velit in consequatur. Libero harum praesentium veniam consequatur.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (184, 194, 'Quo et non quas quia quae corporis. Non tempore possimus et et. Quia quaerat maiores minima omnis dolorem.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (185, 142, 'Iste accusamus aut ea natus eveniet. Adipisci ut et explicabo eos qui doloremque nihil. Consequatur recusandae exercitationem occaecati.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (186, 332, 'Unde nisi autem quo ut eos. Ut eos quidem facilis magni quas vel. Rerum eum earum nesciunt consequuntur voluptas ad assumenda.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (187, 448, 'Facere possimus consectetur voluptatum voluptatem. Ea facilis suscipit expedita numquam consectetur repudiandae.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (188, 230, 'Rerum eos unde quia iure ab pariatur voluptate. Consequuntur rem dolorem voluptatem expedita eos. Molestiae et quam corporis asperiores dolorem est. Dolor doloribus quia et ut.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (189, 400, 'Aut laboriosam possimus qui sed itaque itaque provident consequatur. Repellat ut maiores sapiente neque. Quia nihil velit magnam suscipit. Dolorum quam error sunt et sequi magni enim. Sint voluptas porro tenetur consequatur.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (190, 89, 'Odio praesentium et praesentium delectus. Et eos deleniti autem omnis est. Eaque reiciendis quis minima blanditiis. Enim eos vero reprehenderit aut.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (191, 405, 'Aspernatur sunt et qui. Eos quo sed sequi sint minus. Velit nisi adipisci enim eligendi velit.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (192, 200, 'Nam placeat maiores nihil qui dignissimos quo. Exercitationem sit magnam sunt facere quia labore. Quo dolorem corporis voluptatem neque beatae. Dolorum alias sit voluptas ut nam. Ut aspernatur mollitia minus placeat.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (193, 430, 'Dignissimos unde debitis consequatur cumque. Eligendi excepturi laudantium accusamus fugit. Dolores qui error placeat maiores voluptatum fugit eius.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (194, 285, 'Aperiam natus unde sit sint aut magnam. Totam magni alias alias enim et placeat nulla provident.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (195, 385, 'Quo qui labore quos suscipit rerum. Velit dolores repellat sit qui iste. Autem laboriosam iure qui officia voluptas rerum voluptas.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (196, 45, 'Ab qui corrupti aliquam exercitationem dolorem nulla quas. Sit est soluta consequatur omnis quasi et tenetur omnis. Expedita praesentium dolor doloribus est. Quo fugit nobis praesentium cupiditate occaecati odit omnis.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (197, 250, 'Iusto eius blanditiis iure dolorem nihil molestias vel. Reprehenderit quam esse aut ut excepturi rem. Ab minus ullam ut voluptatem. Praesentium et quis modi aut.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (198, 233, 'Similique necessitatibus modi et sed dolore molestias quia. Aliquam sint et laboriosam ad eum. Recusandae consequatur eveniet ut numquam ex nesciunt.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (199, 237, 'Non sit omnis numquam qui dolor consequuntur. Possimus harum quos non animi. Eum consectetur explicabo dolor odit eaque doloremque.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (200, 254, 'Et qui vero sint ea sit fugit. Dolor earum qui eligendi iure. Nulla ipsam dignissimos ut distinctio totam.', '2019-02-25 08:41:49', '2019-02-25 08:41:49'), (201, 71, 'Ea neque et commodi sit. Eligendi recusandae praesentium blanditiis ex aut qui. Illum iusto aut dignissimos nostrum et praesentium. Odit sed ea exercitationem impedit necessitatibus ut.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (202, 86, 'Ut labore eos enim excepturi pariatur doloribus. Alias sunt voluptatem autem. Et vitae qui omnis culpa doloribus.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (203, 34, 'In placeat consequuntur aut nihil aliquam pariatur. Commodi quae saepe et dolor. Asperiores aut occaecati nostrum quis necessitatibus eveniet.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (204, 73, 'Accusamus quos ex repudiandae id. Quia est molestiae in. Sunt culpa odit velit id autem. Alias reprehenderit culpa eligendi sit quod voluptatem occaecati non. Dolor non quis ab qui autem.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (205, 37, 'Perferendis iusto sed iusto fugiat velit. Inventore id possimus sequi sed. Occaecati aliquam incidunt optio ad magni ut et. Omnis ea quos consequatur enim aut enim aut.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (206, 314, 'Aut hic quae et suscipit enim rem. Incidunt quia aperiam voluptatem explicabo. Et rem omnis consequatur sed est nobis ut. Veritatis eum omnis consequatur eveniet tenetur dolor architecto.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (207, 355, 'Et odio autem beatae. Ab labore id aut sed. Recusandae est voluptates eaque rem et voluptatum deserunt.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (208, 275, 'Dolores cum est sed suscipit dolore aut est. Temporibus distinctio distinctio ipsum unde sunt possimus quis. Nulla nihil aut fugiat tempore repellendus ullam. Maiores ex aliquid qui aut eaque ut.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (209, 8, 'Earum veritatis quia iure officiis. Ullam impedit et quae ipsum voluptas eum quasi. Molestiae esse dolores est alias et. Corrupti repudiandae cumque aut cumque recusandae pariatur.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (210, 172, 'Vitae quia voluptatem animi aspernatur. Adipisci quibusdam ex molestias non nisi unde aliquam. Quidem accusamus repellat deserunt ut soluta sit laborum. Numquam doloremque excepturi sapiente sit dolor.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (211, 437, 'Officiis hic repellat recusandae in quia nobis. Nihil placeat praesentium incidunt accusantium ducimus vero. Itaque officiis nulla ut omnis dignissimos sint impedit.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (212, 176, 'Architecto sit voluptatem fugiat ut maiores dolorum. Labore quo nobis aliquam. Eius quia ducimus magnam.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (213, 330, 'Et optio sed modi aliquid adipisci quo minima voluptatibus. Sed minus magni quo nihil asperiores quis molestias. Aut labore rerum molestias laborum consequatur laboriosam in.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (214, 446, 'Accusamus temporibus eligendi dolorum et ea nesciunt. Est omnis distinctio nam in. Vel eaque cumque cumque non nesciunt. Perferendis ipsam aut quis. Dolores nostrum a quas.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (215, 431, 'Molestiae aut dolores eum numquam quia sed sapiente ut. Dicta numquam et autem eius magni soluta occaecati maiores. Quia ex deleniti autem velit dicta totam. Et repellat iusto fugit doloribus.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (216, 102, 'Quis doloribus quos reiciendis sed et doloribus. Adipisci adipisci natus doloribus fugit. Unde temporibus veniam adipisci impedit praesentium ea maiores nulla.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (217, 331, 'Voluptatum dolores quas facilis rerum esse. Repudiandae consequatur ea officia voluptatem rem enim laboriosam.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (218, 52, 'Qui nesciunt vero beatae sunt sapiente vitae aut. Harum est amet soluta dolores. Et commodi voluptas ut eum minima sunt.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (219, 350, 'Est qui in cupiditate at amet in. Sit quia cupiditate perferendis quod labore consequuntur eaque tenetur. Nesciunt unde aut corrupti quasi. Eligendi voluptatem laboriosam molestiae aut debitis.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (220, 197, 'Magni amet similique voluptatum nobis dolores voluptatem. Ut iure voluptatibus at. Tempora harum inventore consequatur repudiandae. Quisquam culpa qui et dolores.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (221, 183, 'Ullam ducimus similique impedit omnis rem id eos magnam. Optio adipisci dignissimos commodi dolores. Non ut ab aliquam ullam voluptatem quisquam ipsum.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (222, 213, 'Eos est odio voluptatem doloremque sit ab. Dolores laborum officiis eveniet doloribus porro corrupti. Illo voluptatem aut esse nemo et quia non ea.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (223, 422, 'Soluta quas provident id qui minima. Architecto aut expedita ut dolorem consequatur praesentium dolores. Corrupti nam occaecati harum nihil.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (224, 315, 'Est est accusamus est in. Ex quos voluptas dolorum vel labore quo. Et et nesciunt vel aut non omnis enim maxime.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (225, 491, 'Eveniet ut dolorum similique ea. Reprehenderit molestiae placeat praesentium atque et sed quaerat dolores. Omnis eaque itaque et ipsum non.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (226, 17, 'Tempora quo est sunt sint unde eos atque rerum. Ratione et qui et itaque. Et esse officia provident autem magnam voluptate.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (227, 91, 'Voluptas in eum pariatur quidem. Eius eum est est quae natus dignissimos non. Ipsam reiciendis eaque nostrum perspiciatis. Consequatur quisquam ducimus architecto iure aut.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (228, 488, 'Inventore ad et animi est. Assumenda quasi qui libero quidem aliquam cupiditate.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (229, 31, 'Voluptatem nam optio ea hic. Unde expedita ullam numquam expedita. Ut nulla omnis nam.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (230, 443, 'Aut inventore neque natus ut assumenda. Eos error iusto architecto. Illo non atque veniam esse.', '2019-02-25 08:41:50', '2019-02-25 08:41:50'), (231, 352, 'Assumenda ducimus aliquam non non. Exercitationem ipsam ea quia nostrum architecto sit saepe incidunt. Ut qui assumenda doloribus expedita excepturi. Nemo porro quo ipsam minus harum.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (232, 274, 'Eligendi ipsam nihil cupiditate et illum tempore iure. Earum voluptatem eligendi optio dicta voluptas. Et pariatur et facere error omnis laborum. Quod inventore ratione laudantium modi praesentium quaerat qui placeat. Accusamus nostrum ipsam cum.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (233, 422, 'Quaerat dignissimos ea qui quos aspernatur dolorem aut. Quisquam hic recusandae error. Voluptatem animi consequatur ut voluptates quas laudantium nihil sint.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (234, 268, 'Enim minima enim voluptas saepe omnis et reprehenderit. Sunt ut aliquam corrupti eligendi qui illo saepe earum. Modi consequuntur voluptatem ut reiciendis iste unde. Itaque nesciunt nesciunt sint dolores eum unde in.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (235, 260, 'Voluptas officiis quia qui aliquid rerum deserunt quo. Doloremque est earum asperiores illo modi ut quia. Eligendi sapiente maxime fugit molestiae quos consequuntur. Enim vitae voluptatem sunt architecto quidem rem aliquam.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (236, 31, 'Voluptatum labore molestiae minus minus. Voluptatum ea esse rem corporis repudiandae rem. Nesciunt qui voluptatum ipsam.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (237, 98, 'Et magni tenetur nulla. Ullam fuga vero nemo omnis natus facilis. Nulla voluptatibus autem pariatur inventore provident est. Non et soluta molestiae voluptatem et harum sed.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (238, 483, 'Quis dolores commodi accusamus ipsum atque nihil quis. Mollitia voluptas sit omnis aut. Est harum asperiores qui.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (239, 196, 'Reprehenderit sint quia ab sequi repellat et culpa. Non reprehenderit sunt laboriosam provident sit ipsum laudantium consequuntur. Incidunt quia pariatur deserunt numquam.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (240, 111, 'Expedita a ipsa et amet et. Quia sit autem voluptas quia dolorem quis. Dolor consequatur corporis consequatur veniam ab non fugit. Dolorem facere in aut rerum non earum alias. Voluptatibus eaque cum deleniti vero enim itaque et corporis.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (241, 431, 'Voluptatem ea et enim quaerat. Accusantium ratione necessitatibus deserunt molestias. Aut nostrum non incidunt earum inventore ratione. Sed aut eaque ea placeat.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (242, 6, 'Repudiandae sit aspernatur in aliquid magni reiciendis perspiciatis id. Doloremque autem maiores qui. Ut non non enim odit fugiat fuga. Veniam architecto quasi ullam officiis suscipit repudiandae et voluptatem.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (243, 284, 'Odio et error rerum rem fuga. Voluptatibus porro expedita tenetur et voluptatum alias. Itaque voluptatibus harum earum harum. Qui nostrum non cum aut commodi facere molestiae odit. Et dolores est quae cum.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (244, 233, 'Est ut ea neque et aut. Magnam harum temporibus porro quod aut. Eligendi labore voluptatem rerum animi sunt. Facere minus sint molestiae qui minima.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (245, 46, 'Aut voluptatem facilis molestias non aut necessitatibus doloribus iusto. Rerum eum et animi magnam deserunt. Cumque sed omnis corporis rerum voluptate harum voluptatum. Rem et ratione sint maxime. Sit voluptatum molestiae aliquid dicta at in.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (246, 8, 'Voluptate labore vero perferendis et accusantium expedita. Sunt sequi omnis sed necessitatibus soluta eum reprehenderit cupiditate. Aut quae accusamus sequi sit non est.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (247, 232, 'Qui aut ut repudiandae aut voluptatem incidunt ea. Et et nisi reiciendis sunt sapiente.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (248, 489, 'Neque consequatur eos harum iure cupiditate quis. Illum perferendis voluptatem ad magnam fugit doloribus quae molestiae. Ipsum laborum dolorem enim nobis officia quas ut. Voluptate quibusdam nostrum et aspernatur aut quo placeat.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (249, 413, 'Placeat repudiandae commodi et. Eaque sunt eum similique omnis adipisci non. Est quae sed quaerat similique numquam enim.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (250, 314, 'Laborum nihil maiores sit repellendus. Deserunt distinctio nemo ut eos voluptatem reprehenderit. Enim voluptas sunt sapiente esse.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (251, 222, 'Eum fugiat consequatur harum voluptate tempore. Aut voluptas consequuntur nemo ab. Atque sequi mollitia aut. Dolorem voluptatem inventore nam accusantium et. Suscipit facere est odit.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (252, 147, 'Nostrum porro et amet aut aliquam. Vitae aut ut ducimus autem. Quia velit dolorum perferendis repellat odit aut quasi et. Ratione sapiente odit deleniti omnis.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (253, 233, 'Earum quidem est voluptatum doloremque adipisci. Et eos laborum aut quaerat asperiores laudantium minima. Natus facilis sunt nihil corrupti optio modi.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (254, 481, 'Id dolores placeat voluptatibus laboriosam ullam sed aut. Possimus cupiditate dolorum rerum praesentium repellat nihil. Maxime dolore blanditiis fugiat in iste.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (255, 458, 'Ut numquam rerum consequatur sed consequatur veniam. Enim sed nam illum dolore nemo. Adipisci consequatur commodi sequi vitae.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (256, 372, 'Tempora eligendi ut rem corporis nisi enim. Voluptates iusto dolor quibusdam praesentium. Eum qui quia aut sint aliquid. Veritatis dolor temporibus ex eum unde est.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (257, 433, 'Amet error et quaerat amet fugit aliquid. Ducimus eius a qui rerum. Quod quae quas molestias et fugiat. Ut rerum eos iusto provident autem earum quidem.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (258, 445, 'Iste fugiat sit eaque aliquid. Necessitatibus dolor qui et. A dolor est ducimus non aut vel voluptatem. Est quia omnis suscipit modi corrupti excepturi id. Voluptates exercitationem animi eaque error praesentium.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (259, 37, 'Unde autem perspiciatis repudiandae et. Quidem minima cupiditate deleniti at dolor. Quis odio qui sed possimus qui dolorum.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (260, 73, 'Officiis delectus in aut. Delectus ab optio veniam fugit. Aut libero enim aut voluptatem. Ab nemo voluptatem aut provident et ipsam.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (261, 141, 'Molestiae exercitationem repellat et quibusdam blanditiis ut nesciunt ut. Aut magni blanditiis eum a.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (262, 388, 'Molestiae sint doloremque nostrum praesentium qui aut. Et possimus qui sit at sit molestias. Omnis cupiditate non ut sequi. Omnis sit hic veniam accusamus iure ut.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (263, 317, 'Ad provident consequatur earum veniam. Commodi similique ut vel quisquam accusantium architecto dolorem.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (264, 2, 'Assumenda dolores facilis illum ut corrupti quia voluptatem. Saepe saepe itaque quis quisquam eos reprehenderit dolores. Rerum esse tempore quo vel qui adipisci.', '2019-02-25 08:41:51', '2019-02-25 08:41:51'), (265, 470, 'Dolor modi est est qui temporibus quo. Quia non adipisci et recusandae eum aliquid aspernatur autem. Ut quia quia occaecati asperiores dolore eum. Animi autem et itaque est facere ea qui.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (266, 316, 'Sed qui est qui et quidem. Qui quasi saepe dolores cupiditate praesentium. Ut perferendis est eos dicta et repellat voluptas. Ea saepe cumque non aut neque tempora. Libero ut accusantium qui exercitationem impedit occaecati corporis.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (267, 225, 'Voluptatem officiis quos ut fugit porro odio. Alias sit ipsum eum itaque veniam. Delectus consequuntur ullam accusantium voluptatem. Aliquid itaque molestiae possimus accusamus qui est vitae suscipit.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (268, 133, 'Velit ut alias fugiat aut. Debitis ipsum et excepturi. Qui ut eos aut consequatur cum animi nam sed. Eligendi et et totam voluptatem odio corporis.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (269, 301, 'Et omnis qui ipsa distinctio. Impedit nulla fugiat suscipit illo quia. Laboriosam voluptas sed at quod. Consequatur fugit sed vel et quibusdam dolores ea.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (270, 5, 'Asperiores sed ipsam in consequuntur expedita repudiandae quis. Non velit voluptatum deleniti eos. Eum quos distinctio ipsum.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (271, 80, 'Possimus laborum officia error pariatur dolor eveniet. Et laborum atque sed et nulla ex et. Corrupti eligendi vel dicta dignissimos sunt deserunt. Consequatur aliquid nihil rerum pariatur debitis qui corrupti nostrum.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (272, 321, 'Maiores ut ipsam qui maiores quos occaecati enim. Praesentium iusto nemo sequi nobis totam dolores dolorum. Cum facere voluptatum provident sapiente perspiciatis voluptas occaecati.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (273, 155, 'Mollitia labore et pariatur deleniti et dolorem ullam. Consequuntur rerum cumque architecto illum ea officia non. Reiciendis eligendi sed quia ab sed perferendis.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (274, 11, 'Fugiat beatae laboriosam cumque quidem animi. Assumenda dolores consequuntur adipisci rerum enim animi. Et ea fugiat aut cupiditate.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (275, 249, 'Nesciunt velit eius eius aut magni dicta voluptatem. Voluptatibus aliquam quia ea. Repellat ea voluptatibus consequatur aut a.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (276, 399, 'Eveniet velit eligendi enim. Voluptas repudiandae mollitia eos nulla aspernatur voluptas et beatae. Eos delectus iusto deleniti illo quo.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (277, 306, 'Cumque nihil non cupiditate quisquam nisi. At beatae labore velit magni. Voluptates tenetur ullam labore illo aut. Rerum perferendis doloremque eius itaque suscipit in ut voluptatem.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (278, 42, 'Excepturi ipsa aut id non molestias a. Asperiores dignissimos minus impedit accusantium. Deleniti tempore sequi a magnam labore et molestias omnis.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (279, 65, 'Nihil ad sint veritatis repudiandae explicabo quisquam accusantium. Molestiae reiciendis officiis sapiente repellat porro. Aut pariatur eum sed ut optio.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (280, 232, 'Nihil ut enim deleniti ratione. Et aut ad aliquam qui aut. Et et quos ut eos adipisci. Perferendis exercitationem illum aut recusandae. Magni excepturi et autem pariatur voluptatum voluptatem.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (281, 119, 'Fugiat distinctio impedit sed eaque accusamus autem est. Sunt nemo quis possimus tempora. Autem nulla quis odit.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (282, 272, 'Dolorem mollitia vitae voluptatibus optio. Quis libero itaque quas rerum saepe culpa quis. Quam dolor laboriosam molestias labore minus tempora veniam. Magni nihil et nostrum minus.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (283, 207, 'Similique consequatur corporis dolor quis autem perferendis qui. Voluptatem voluptatum qui qui blanditiis. Sint debitis delectus eaque et.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (284, 198, 'Corporis beatae ut hic corporis dicta. Omnis eligendi corporis beatae qui quia voluptas cupiditate molestiae. Iure rerum omnis doloribus tempora eius fugit qui voluptates.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (285, 61, 'Deserunt id labore assumenda quis qui aspernatur officiis. Et voluptatem dolor quam debitis sint corporis dolor repellat. Placeat cum nostrum ex vel atque suscipit voluptatem dolore. Facilis quo quam rem.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (286, 328, 'Voluptate earum enim eveniet dignissimos quam velit adipisci. Eligendi doloribus voluptatem consequatur consequuntur repellat sit sapiente. Ut et quibusdam dolorem. Fuga voluptates quam dolor quis culpa.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (287, 238, 'Soluta qui id expedita aspernatur ab omnis quaerat. Et voluptas facere deleniti sint adipisci. Sunt voluptatem maiores quod dolor recusandae sequi qui vitae.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (288, 407, 'Dolore ipsam aliquam facilis facere cupiditate id et in. Ea maxime qui et consequatur earum est ea et. Delectus voluptatem in laborum enim voluptate. Qui a odit sed ad aut.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (289, 199, 'Doloribus quia eaque esse. Rem ea omnis in aut et reiciendis dolores. Nostrum ut qui ab quidem qui sit voluptates. Atque assumenda itaque ipsa porro doloremque.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (290, 145, 'Et asperiores accusamus et dolores. Eos laudantium illo deleniti explicabo. Possimus rerum eligendi praesentium dolor dolorum.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (291, 367, 'Libero nesciunt consectetur deleniti fuga. Vero sint eum voluptates aliquid fugit eius.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (292, 74, 'Delectus pariatur et quis pariatur eum dolore aspernatur nam. Eos modi numquam voluptatum corrupti porro ex dolorum. Minima placeat non excepturi debitis. Sint labore et inventore voluptatem ab vel aliquid.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (293, 454, 'A qui et voluptas odio est. Rem sed omnis soluta. Ea est nobis sed.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (294, 323, 'Nulla et natus aut tempore aut eum. Qui et delectus et minima enim earum. Ipsum debitis unde dolorum culpa a aut.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (295, 184, 'Sed ducimus et amet quis repellat dolor. Sed culpa facere eum qui labore illo cupiditate facilis. Nostrum repellat vitae eum voluptate rerum sunt. Nihil quasi quia temporibus ea.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (296, 451, 'Illum voluptas et consequatur voluptatem qui delectus. Dolorem vel molestiae accusamus quidem. Assumenda natus rerum fuga nobis.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (297, 135, 'Velit sint sint omnis iure. Consequatur earum et dolorem aliquam quos ab. Itaque id autem illum deleniti sed alias.', '2019-02-25 08:41:52', '2019-02-25 08:41:52'), (298, 31, 'Exercitationem qui dolorem laudantium ipsa sit. Asperiores consequuntur dolores sint aperiam numquam recusandae ad.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (299, 300, 'Itaque esse nam quos dolores explicabo. Debitis voluptates nemo maiores temporibus. Soluta ut reprehenderit ullam quis voluptas aspernatur aut.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (300, 213, 'Magnam in tempora natus rem non. Quam earum non commodi porro quia voluptas. Doloremque placeat hic voluptate et cupiditate.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (301, 12, 'Quia qui accusantium odio accusantium aliquam. Et officia et est quam omnis. Sit optio sed rerum.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (302, 306, 'Temporibus temporibus aperiam aperiam necessitatibus quia. Vel praesentium perspiciatis voluptates. Itaque odit nihil quam. Exercitationem et fugiat sequi quam officia sit voluptatibus.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (303, 436, 'Id vero molestiae natus voluptatibus. Sint eaque et suscipit voluptatum in. Exercitationem fuga aliquam qui aut non voluptatibus. Ipsam error nesciunt id aut ratione non et.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (304, 30, 'Facilis voluptatum dolores et magnam explicabo illo doloremque. Quidem ab vitae laudantium deleniti. Cum itaque commodi impedit vel quia odit. Assumenda illo veniam eos dolores necessitatibus porro est.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (305, 393, 'Quod rem et rem ducimus commodi repudiandae. Repudiandae aspernatur quaerat explicabo autem nam. Iure eum et labore. Pariatur possimus placeat ut nostrum possimus. Rem iure quis aut nostrum.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (306, 120, 'Aliquid cupiditate et fugit nobis. Dolorem dicta tempora voluptatem quia vero qui. Qui fuga in nisi dignissimos quam veritatis. Deserunt dignissimos qui error assumenda odit.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (307, 127, 'Blanditiis ut eos molestias. Enim optio in voluptas ipsa facilis accusantium dolorum omnis. Quos sapiente voluptas ut fuga et odit pariatur.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (308, 321, 'Odit sit voluptates nesciunt voluptas quidem impedit consectetur. Vel tempore quo quam necessitatibus aperiam eum hic. Minima sint aut ut sit pariatur sed.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (309, 347, 'Ut assumenda error voluptatem magnam. Nostrum et autem eligendi rem.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (310, 143, 'Sed ducimus qui necessitatibus sapiente facere aut voluptatem. Molestias possimus consequatur aut quia quibusdam voluptate. Ipsam accusantium ipsam et aut ad doloremque sequi. Sint voluptatem ea libero ab rerum recusandae.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (311, 168, 'Beatae quas eius non dolorem. Deserunt laboriosam aut explicabo. Eum inventore molestiae est vero ut consequatur.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (312, 317, 'At et molestiae consequuntur sed maiores ea necessitatibus. Accusamus dolor nesciunt fugiat. Adipisci maiores deleniti aut.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (313, 14, 'Dolores et odio sed inventore et nobis nulla. Ducimus sit mollitia unde consequatur. Dignissimos est voluptas molestiae ea rerum quaerat. Et non vel nostrum atque impedit.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (314, 400, 'Numquam est totam quibusdam incidunt. Voluptas odio earum accusantium perferendis nam ut et. Veritatis similique dolor sed dolore rerum voluptas explicabo ut.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (315, 313, 'Ducimus voluptas a accusamus cupiditate magnam deleniti aliquid. Tempora totam quia ullam. Fugiat rerum blanditiis porro soluta in tenetur autem.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (316, 405, 'Sint voluptate maxime dolorum laboriosam vero voluptas commodi cumque. Neque sit exercitationem totam doloremque voluptas reprehenderit. Voluptas aperiam ab est in. Consectetur non qui nesciunt dolor.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (317, 185, 'Consequatur eligendi recusandae omnis omnis. Rerum repudiandae et non facilis nostrum consequatur. Nesciunt ea cupiditate placeat quod reiciendis reiciendis quam. Ipsam ea quia quo nulla. Vitae ut unde et aut cumque ut dolorum.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (318, 336, 'Fuga et omnis voluptatum non. Quia voluptatem molestias occaecati ex id eveniet deleniti. Ut enim animi cumque illum. Iste nisi eum veritatis perferendis recusandae.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (319, 264, 'Omnis vitae tempora eveniet est possimus aspernatur. Qui qui nulla et nihil. Sit totam voluptates molestiae iusto maiores impedit sit dolores.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (320, 64, 'Reiciendis est reiciendis magnam tempore rerum laboriosam voluptatem. Provident perspiciatis error magnam velit. Et mollitia ex architecto omnis non rerum.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (321, 168, 'Voluptate nesciunt et dolorem sunt dolor ullam ut. Placeat aperiam et ullam. Autem commodi aperiam et et.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (322, 88, 'Molestias sunt placeat et deserunt beatae. Beatae sint placeat ipsa qui quos quae alias. Et vel debitis similique ducimus.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (323, 295, 'Qui et mollitia laudantium eos labore voluptatem ipsum a. Nihil id laboriosam deserunt est. Voluptatem sunt fugiat earum non a quis praesentium enim. Ut exercitationem quod et pariatur sint voluptas molestiae.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (324, 276, 'Facilis eaque laudantium eveniet et cupiditate dolorem. Ut delectus sed fugiat odit sint nesciunt et. Molestias aut dolores sed eos.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (325, 124, 'Corporis rem aspernatur architecto voluptas at non assumenda. Explicabo delectus et soluta qui et facilis culpa. Quo ipsa aut et qui aut et exercitationem.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (326, 249, 'Rerum temporibus dolorem qui odio similique. Quae fugit explicabo quia sequi. Voluptates laborum cupiditate voluptas in iste in nisi eius. Impedit enim recusandae dolorem ut provident est et cum. Maiores enim in culpa eum dolorem.', '2019-02-25 08:41:53', '2019-02-25 08:41:53'), (327, 472, 'Odio suscipit quas minima suscipit aliquam unde dignissimos incidunt. Est mollitia et ipsum est ex. Aperiam eos consequuntur occaecati ipsam animi autem excepturi. Corporis aliquid ea est voluptate veniam sint et.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (328, 464, 'Vero qui officia voluptatibus praesentium quo ut voluptatem. Quidem aut fuga fugit eum ipsam iure est. Maiores et dolorem sit et quia cumque. Ut et voluptas iure id.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (329, 468, 'Veniam laboriosam sint quis illo. Velit molestiae et omnis temporibus sed vel. Ad exercitationem facilis mollitia facere. Enim qui impedit repellendus nihil.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (330, 335, 'Officia placeat error reiciendis aliquam sequi qui. Libero quam perspiciatis aut dolor libero necessitatibus. Excepturi ut nobis fugit pariatur tempore unde. Illo laboriosam iusto tempore id a nostrum omnis.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (331, 44, 'Neque ut est consectetur dolores. Ut eos architecto rerum molestias veniam. Placeat fugit sapiente ut tempora. Aspernatur neque similique ipsa reiciendis. Qui qui et sed enim commodi similique deserunt.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (332, 113, 'In molestias eaque maxime praesentium aperiam et rerum et. Ratione nihil quasi saepe. Non doloremque expedita consequatur pariatur et. Quibusdam nostrum quaerat provident odio accusantium. Ipsam tempora ipsam aut voluptate neque quibusdam minima.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (333, 193, 'Aspernatur culpa veritatis cumque non. Quaerat aperiam dolore qui aspernatur expedita aliquam corporis. Unde ut eligendi qui voluptate. Asperiores est minus dolor ad qui enim.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (334, 425, 'Dolores unde quia veritatis qui quo necessitatibus. Repudiandae dolores veritatis aut cupiditate sunt necessitatibus eligendi omnis. Minus cupiditate sint ipsa aut.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (335, 219, 'Tempora optio eos architecto officiis doloremque alias fuga. Et dolor repellat ad iste laboriosam. Voluptates cum et rem laudantium.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (336, 75, 'Quibusdam consequuntur est ut id dolores quia repudiandae. Necessitatibus sed ut a voluptatem neque. Aliquid officiis cumque et quo beatae dolorum odio.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (337, 115, 'Ut voluptatem quam autem quidem et consequuntur. Possimus facere nulla ut. Harum sunt animi quod temporibus aspernatur illum id est. Praesentium necessitatibus ipsam reprehenderit sequi.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (338, 53, 'Ut autem qui aut veritatis blanditiis qui quasi. Facere in dignissimos assumenda eos impedit maxime consequuntur. Dolorem totam doloribus vel eius quod quod vel.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (339, 201, 'Illum reprehenderit voluptas fuga in perspiciatis. Accusamus molestias quia voluptatibus. Non qui et id laborum. Illo rerum et laudantium corrupti minus sequi dolores.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (340, 158, 'In esse dignissimos commodi sapiente sunt quo ut. Repellat expedita provident incidunt voluptatem sit temporibus nam. Ipsa quibusdam voluptas voluptatem incidunt. Nesciunt est suscipit dignissimos ipsum non ipsam excepturi sunt.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (341, 388, 'Consequuntur in in labore perspiciatis. Quos maxime et velit voluptatibus cumque impedit sit porro. Ipsa eaque consequatur minus possimus.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (342, 110, 'Incidunt occaecati similique minima dolorem minus ducimus repellendus laudantium. Quia deserunt voluptas voluptatem eos aut sunt. Dolores recusandae in veniam voluptates omnis. Repudiandae voluptas illo distinctio.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (343, 303, 'Ut cum id qui. Consequuntur error sunt omnis quos. Eaque aliquam aliquid minus labore atque.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (344, 65, 'Consequatur voluptatem aliquam odit. Voluptatem perspiciatis ut facere et voluptas repudiandae eum. Non rerum eos nemo possimus aut architecto. Consequuntur illo aut velit illo. Sit accusamus expedita dolor doloribus velit et sit quia.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (345, 451, 'Provident error quis adipisci vitae repellat perferendis omnis et. Accusantium qui laudantium eligendi consequatur deserunt. Magni maxime assumenda fugit sapiente adipisci modi. Debitis molestiae et saepe possimus neque sit dolorem.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (346, 463, 'Eligendi tempora itaque voluptas unde est. Ipsum consequatur nisi nostrum ut perspiciatis voluptatem.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (347, 38, 'Est voluptatibus reiciendis ex vel. Eos voluptatem et vel architecto voluptas dolorem tenetur. Autem molestiae sapiente laboriosam amet provident voluptatem. Voluptate quam quo expedita impedit qui consequatur.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (348, 55, 'Omnis sapiente et deserunt cumque est. Tempore accusamus inventore iste nobis velit ipsum ab. Est ipsum est facilis error ea sequi.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (349, 398, 'Eos eos et deleniti. Odit voluptate suscipit iusto repellendus similique qui repellat. Magnam magnam perspiciatis repudiandae sint.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (350, 287, 'Architecto doloremque et molestiae enim. Eius doloribus vel deleniti aut.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (351, 91, 'Accusantium possimus et sint. Aut deleniti porro aperiam sed. Reprehenderit non occaecati natus labore accusantium earum. Reprehenderit tenetur facilis dolores odio voluptatem ipsum repellendus.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (352, 263, 'Omnis quibusdam quo pariatur nam. Quia fuga qui laboriosam tenetur. Sed vitae maxime sint labore vitae deserunt quae.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (353, 200, 'Minus fugiat corporis est dignissimos quae. Nam neque quo molestiae dicta. Est sed et eum et et dolores id.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (354, 386, 'Aut nam nisi consectetur facilis est qui. Culpa hic voluptatum et. Sunt vel tenetur numquam. Nisi dolorem saepe asperiores fugit quibusdam adipisci odio. Eligendi quam consequatur quasi sunt.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (355, 332, 'Et mollitia perferendis ipsa possimus corporis dolorum aliquid fugit. Maxime excepturi magnam autem velit est. Nobis repellat officiis dicta omnis laboriosam voluptas possimus perspiciatis. Maiores deleniti enim atque aperiam consequuntur ut.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (356, 240, 'Qui magni quia hic veniam sed. Tenetur eveniet qui odio accusantium atque.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (357, 92, 'Nam veniam autem nulla sint eos. Beatae deleniti nulla veniam. Qui optio impedit et sunt. Voluptates temporibus quasi fugiat consectetur sed inventore.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (358, 449, 'Et suscipit voluptatibus et sint. Excepturi molestiae explicabo molestiae fugit corporis. Aliquam sunt exercitationem fugit rem sapiente error.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (359, 402, 'Quam tempora voluptates ut dolores. Porro ut nobis dolorem quo quia tempora. Ut ut velit accusamus maiores omnis excepturi. Et alias similique ut ipsa enim et.', '2019-02-25 08:41:54', '2019-02-25 08:41:54'), (360, 194, 'Incidunt ratione sequi illo maxime. Maiores iusto illo laudantium quam saepe iste quis. Ut qui temporibus quaerat et ratione animi. Facilis quae quis voluptas dolore nulla voluptatem libero.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (361, 236, 'Necessitatibus recusandae soluta officiis. Est consequatur est quod. Omnis rerum voluptatibus laudantium veniam quasi quia quasi. Iusto iste molestiae ratione voluptate laborum.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (362, 227, 'Itaque autem saepe ut ut aut et voluptas aut. Voluptas nihil voluptates incidunt nulla dignissimos aliquam. Sint quis non quod necessitatibus totam tempore est.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (363, 461, 'Pariatur a ex dolor qui. Fugiat eveniet tenetur aliquam modi inventore est. Sit nam porro deserunt odio ipsum enim.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (364, 90, 'Nisi possimus dolor recusandae. Est beatae adipisci voluptatum rerum. Explicabo illo occaecati dolores et consequatur.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (365, 303, 'Tenetur veniam aut rem fuga exercitationem. Quo veritatis itaque aut sapiente nulla. Facilis ad repellat veniam odit perferendis animi exercitationem. Reprehenderit sint praesentium et optio aut aspernatur adipisci.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (366, 319, 'Expedita aut sit voluptas quidem. Deleniti beatae fugit sunt. Nihil culpa enim libero voluptatem error dolorem voluptates. Odit quam eius architecto libero eos non.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (367, 313, 'Dolorem ad blanditiis voluptatibus dolor ut. Illum qui repellat impedit nihil non natus autem et. Minus tenetur ab voluptatem aut fugiat debitis. Laudantium sed rerum adipisci dolor ab. Possimus in consequuntur veniam eos.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (368, 117, 'Consequuntur aut nam sint quia laudantium. Et excepturi eos voluptatem et. Ab atque in sapiente ea praesentium.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (369, 191, 'Accusamus blanditiis laboriosam vitae et voluptas. Fuga nulla ducimus dolores dolor.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (370, 137, 'In aut laudantium et dignissimos et molestias. Consequuntur accusantium aut autem autem. Ea nulla sunt necessitatibus repellendus enim ut molestiae eveniet. Sit hic est fugiat quo iure necessitatibus.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (371, 43, 'Quia suscipit non deserunt. Minus ea non labore iure cumque.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (372, 168, 'Praesentium ipsum numquam dicta dolorem aut. Magnam delectus ut adipisci recusandae natus nulla quis atque. A deserunt cupiditate temporibus. Ex aliquam nostrum eaque fugit id odit.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (373, 8, 'Enim et velit architecto laborum velit autem ab. Et numquam a qui odio numquam libero autem.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (374, 384, 'Quae sit cum iste dignissimos. Porro beatae in qui dolorem rerum neque dolorum nemo. Saepe non asperiores rem molestiae.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (375, 490, 'Et harum provident eligendi nam beatae est sed. Est sapiente sequi nisi voluptas. Quia corrupti blanditiis sunt repudiandae. Ut vel quae incidunt cumque.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (376, 51, 'Omnis consequatur dignissimos architecto. Corporis iste aperiam ut aperiam et laboriosam repudiandae nobis. Necessitatibus dolorum rerum harum atque dolores exercitationem rem sequi.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (377, 245, 'Iure quas eos dolorem sed saepe sed iste. Ut explicabo optio exercitationem omnis quae. Recusandae est harum facilis consequatur.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (378, 390, 'Illum animi sed culpa. Minus ullam ab expedita tempore sed accusamus laudantium. Voluptatem natus sit aut totam veritatis dolorem nihil.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (379, 246, 'Corrupti minima ex qui fugiat rem. Temporibus consequatur saepe quam dicta. Facere facere qui quo quaerat molestiae dolores delectus voluptatem.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (380, 88, 'Repudiandae iusto odio officiis vel eum. Iusto molestiae quis aliquid consectetur est consectetur. Et officiis voluptas ut dolor sunt quisquam. Debitis necessitatibus iste voluptatum perspiciatis.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (381, 364, 'Dolor sit laudantium ut nihil in ab laudantium at. Ab magnam eum et dolor quaerat. Officiis dolorem suscipit minima voluptas ut saepe tempore quisquam.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (382, 41, 'Inventore officiis et sit dolore repellendus non laborum. Accusamus debitis labore in totam sunt. Et ad cupiditate corrupti eligendi. Natus totam voluptatem sunt ut.', '2019-02-25 08:41:55', '2019-02-25 08:41:55'), (383, 134, 'Id numquam rerum libero rerum mollitia atque soluta. Sed nihil velit distinctio dolor mollitia id.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (384, 404, 'A sed earum tenetur rerum. Voluptas nihil maiores voluptatum est voluptas hic. Iusto rem suscipit sed rerum voluptatibus.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (385, 392, 'Optio iure harum assumenda dolores architecto eligendi sit. Maiores eum aut est similique aut illum aspernatur.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (386, 85, 'Quasi repellat at facilis et. Consequatur hic enim dolore voluptas voluptatem libero. Earum ipsam earum quo velit sequi provident. Similique qui voluptas omnis qui dolorem architecto.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (387, 191, 'Sapiente quia ut molestias nihil ullam alias. Laborum omnis labore sunt dolores nam. Dolor dicta et quae minus necessitatibus illum. Voluptas magnam nihil eligendi aut.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (388, 405, 'Ratione consequatur sit iure aliquid quia sunt aut. Autem et numquam alias itaque illum. Et repudiandae debitis sequi.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (389, 130, 'Porro eos tempore vel et odit. Recusandae voluptatibus ipsam nobis ipsam perferendis. Eveniet in occaecati enim in odio.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (390, 300, 'Itaque minus dolorem ipsum cupiditate eius a. Corporis nostrum est iure aut. Quod mollitia possimus aut distinctio eos odio.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (391, 186, 'Omnis reiciendis ut odit aut placeat quos minima. Sint in officia sed sit qui voluptas. Sint quam aut qui mollitia. Velit enim in in et veritatis corporis. Excepturi et voluptates voluptatem autem repellat sequi hic.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (392, 212, 'Dolores harum molestiae officiis eum soluta voluptatem debitis. Dolor qui necessitatibus eum. Nostrum officiis voluptatem sint maiores ad dolorem sequi totam.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (393, 106, 'Dicta nulla quis quo. Dolorem porro ratione vitae. Est fuga et doloremque sit rerum.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (394, 278, 'In veniam et maiores atque reiciendis hic. Vel facilis qui nemo accusamus ut dolore quos assumenda. Ut cumque harum nam ea omnis nostrum. Est natus suscipit earum neque. Eum sint qui ipsum voluptatem.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (395, 279, 'Fugiat repellendus ut facilis iusto. Et eos quos dolor optio dicta accusamus tenetur. Accusamus incidunt delectus quo porro alias vel nihil et.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (396, 28, 'Sapiente vero voluptatem et optio in. Eaque velit quasi sit voluptatem nobis consectetur. Nesciunt mollitia qui eligendi ut.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (397, 312, 'Et aut et voluptatem repellendus quae labore natus. Nulla aut dignissimos aut omnis adipisci et. Libero ipsum voluptatem quaerat ad labore quis nemo. Et quasi aliquid assumenda cum ad eligendi.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (398, 63, 'Est est repudiandae maiores sapiente laboriosam ut voluptates. Illum ullam delectus natus. Laborum cupiditate repellat doloremque in. Rerum dolorum necessitatibus est velit numquam nesciunt. Libero est aliquid sunt magnam.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (399, 317, 'Aut quo assumenda aut assumenda eos nam. Explicabo itaque repellendus vel iure. Maxime vero alias eum consequatur id quo excepturi. Facilis eligendi tempore quis sapiente nesciunt quis sequi.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (400, 42, 'Debitis saepe dolore laborum sint quae. Impedit rem atque ut aut ut quidem iste. Et error a voluptatem sint. Dolorem necessitatibus error expedita enim esse.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (401, 9, 'Totam vero possimus aperiam harum necessitatibus et debitis quia. Et quibusdam ipsa non ullam nesciunt dignissimos. Placeat voluptatibus modi ea ut similique aliquam et eos.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (402, 199, 'Quidem labore aut quod sed. Quis assumenda vero omnis aut. Perspiciatis sint laudantium nobis voluptatem ex. Atque modi iusto voluptatum corporis sit ducimus voluptates.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (403, 66, 'Temporibus fugit numquam ut hic. Expedita rem consequuntur enim hic dolor consequatur. Odit quaerat dolor sunt quis. Perspiciatis nihil nisi nulla soluta at sed dolorem accusamus.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (404, 265, 'Qui non id sed veniam atque iste ex. Dolor ullam nihil maiores. Aut omnis eaque impedit optio corrupti. Doloribus non qui aut dolor.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (405, 432, 'Rem qui et neque dolor sed dolores. At voluptatem rerum et eos labore. Ducimus dolores nobis et voluptatem magni velit voluptate.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (406, 33, 'Facere quo optio dolores laborum omnis. Ducimus dolores recusandae est deserunt dignissimos perspiciatis ut. Fuga voluptas autem dignissimos quod voluptas expedita sunt. Odit laudantium dolor aut itaque voluptatem quaerat. Voluptates dolorem ducimus aut d', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (407, 322, 'Et nesciunt ut quisquam ullam dolor. Id sapiente consequatur qui suscipit et.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (408, 142, 'Quisquam quae non amet nihil aut eum. Magni tempora hic est quos earum libero mollitia. Consequatur dolor perspiciatis et adipisci itaque asperiores aut.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (409, 457, 'Quia est aliquid fugiat nulla aliquid et labore. Aliquam omnis in unde magnam beatae quia. Ea ipsa ut optio optio dolor est rerum. Vitae similique laborum qui tempore sunt quisquam consequatur.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (410, 294, 'Voluptates voluptatibus asperiores quos quae nostrum ex nam. Aliquid consectetur fugit asperiores a. Ea optio quasi est voluptas. Natus voluptas ab quas non sit corporis.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (411, 461, 'Voluptatem quae vero quas exercitationem totam sunt alias. Commodi aut delectus in veritatis assumenda delectus. Voluptatem ex quos fugiat odio.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (412, 324, 'Dolor excepturi ut et. Voluptas nostrum et quia possimus et dolor. Officiis pariatur aut dolorem commodi.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (413, 286, 'Quisquam ullam asperiores qui aspernatur et omnis. Praesentium itaque vel velit dolorem. Architecto iure voluptatem consectetur quas repellendus qui praesentium. Architecto ut numquam enim debitis. Laborum eveniet aut voluptatum voluptates.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (414, 123, 'Nulla placeat officiis ipsum vero beatae vitae eum. Voluptatum harum consequatur laboriosam praesentium nostrum. Quia distinctio repellendus doloribus consectetur dolore dolores.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (415, 331, 'Ut fugiat nihil voluptatem libero. Tenetur quia nisi molestias repudiandae dolor culpa et consectetur. Adipisci itaque delectus quae qui at qui.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (416, 380, 'Mollitia quam veniam doloremque a. Aut beatae aperiam corrupti est perspiciatis porro saepe. Voluptas libero qui velit accusamus. Ab tempora nemo at libero veniam repellendus aut.', '2019-02-25 08:41:56', '2019-02-25 08:41:56'), (417, 89, 'Exercitationem tempore nisi in blanditiis consequuntur soluta. Maxime eos harum consequatur vel tempora aut quidem. Sunt quaerat adipisci labore ut.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (418, 209, 'Earum sit adipisci sed. Ex quia similique error voluptatem ratione. Non quasi culpa quod.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (419, 89, 'Aut et quia esse enim ut. Labore placeat voluptatem dolor similique perspiciatis. Recusandae et et doloremque nemo ut rerum.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (420, 193, 'Deserunt dolorem velit et quos. Quia est magni alias accusantium maxime qui quaerat. Aut cupiditate voluptas animi molestiae architecto dolor eius. Sunt inventore quam et ex quod.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (421, 108, 'Quia esse in rerum qui reiciendis. Eum odit explicabo accusantium. Nobis odit unde et aut ad quod. Reprehenderit nulla repellendus nam ea hic ducimus magnam.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (422, 112, 'Fuga nisi quis vel voluptate qui sit. Voluptate repellendus nemo autem eos porro. Et beatae aut eius excepturi soluta. Quia unde facilis sunt harum.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (423, 460, 'Ut molestiae et qui rerum aspernatur. Placeat et dolore quisquam ut id. Excepturi eos voluptas et quos aspernatur.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (424, 37, 'Ex et nemo temporibus temporibus esse aut. Ut veniam aut repudiandae qui quo eveniet. Ipsa dolores ipsa officiis et vel et beatae. Quia autem animi eum quaerat eos explicabo. Porro architecto assumenda aspernatur deserunt minima totam soluta.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (425, 125, 'Ut dicta libero sint id nostrum totam. A quod commodi mollitia minus illo eum ex.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (426, 393, 'Ullam aspernatur quis aut quo cupiditate totam. Ipsum autem earum vero commodi. Ut voluptates totam eum aut. Eos velit numquam non natus laboriosam.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (427, 4, 'Et ea quo explicabo et architecto soluta. Beatae dolorem excepturi ut. Eos vero id quis ratione veniam. Iusto debitis sit doloremque.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (428, 97, 'Accusantium eaque corrupti voluptatem veritatis nihil est totam corporis. Dolorem vitae incidunt nemo et distinctio aperiam id.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (429, 284, 'Occaecati sed explicabo molestias architecto delectus. Non non eius architecto quasi veritatis enim ducimus. Sed odio reiciendis suscipit officia impedit enim.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (430, 163, 'Rerum temporibus et non pariatur consectetur. Ut sapiente quia optio voluptatem. Vel recusandae cupiditate molestias nobis quo quidem similique vel. Deleniti quo doloribus rerum assumenda ut et cupiditate ut.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (431, 144, 'Earum molestiae commodi sequi omnis. Laboriosam neque provident odit doloribus quasi. Voluptatum modi in vel mollitia adipisci. Quae tempora id reiciendis necessitatibus.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (432, 291, 'Numquam iusto architecto aliquid inventore et tenetur maiores. Ex omnis eos voluptas libero quisquam. Qui et est et quibusdam aut. Laboriosam error natus blanditiis velit omnis et.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (433, 32, 'Suscipit impedit dolor exercitationem laudantium est. Distinctio a eos doloremque eius. Iusto neque et tenetur nesciunt.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (434, 412, 'Ut iure adipisci error nam eaque. Aliquam laboriosam exercitationem rerum molestias ut. Quae ab libero quis iure modi. Quaerat quasi dolores maiores id impedit.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (435, 360, 'Quia sed et ipsa veniam consequatur. Aut similique delectus perspiciatis ut. Maxime sunt voluptatem sit aut cum aut. Aut tempora ratione qui nemo dicta accusamus enim.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (436, 86, 'Qui dolor animi amet. Et aut laboriosam et dignissimos. Culpa ea quas eum quia qui.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (437, 486, 'Non dolorem enim ut voluptas est ut animi. Illum eos omnis molestiae ut repellendus. Et temporibus odit laboriosam voluptas.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (438, 304, 'Qui et sapiente occaecati quasi et. Itaque omnis totam rerum eum dicta quam. Numquam optio mollitia nesciunt. Qui eaque aut eos fugit dolore cum autem nobis.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (439, 200, 'Explicabo quas voluptatem cum magnam. Debitis consequatur amet id labore. Autem magni et veniam est. Velit ut aliquid suscipit et nobis corporis.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (440, 344, 'Rerum officia iusto expedita eum. Sit et omnis possimus dignissimos occaecati. Reprehenderit officia assumenda est sint nihil nostrum rerum. Id nostrum aperiam fugit in beatae.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (441, 231, 'Distinctio soluta aut est soluta sint. Ipsa ullam molestias qui corrupti sint. Necessitatibus omnis voluptatem suscipit ea.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (442, 485, 'Omnis consequuntur rerum quam suscipit et id modi. Quibusdam neque aut eum corrupti et dolore pariatur. Doloribus et unde nesciunt rerum maiores commodi. Beatae nihil ratione mollitia eaque amet dolor vel.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (443, 496, 'Nihil cumque sit id explicabo delectus repudiandae dicta. Odit accusamus ut autem et architecto. Quis ipsa in qui sit.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (444, 499, 'Nemo ullam vero aspernatur eius aliquam. Necessitatibus quia voluptatem quis pariatur ea. Ut quo exercitationem laborum fugit.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (445, 87, 'Officiis deserunt necessitatibus sit numquam quo qui. Non ipsam repellat et sed ullam. Cupiditate minus expedita reiciendis iure. Laudantium odit recusandae delectus voluptatibus quis odit.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (446, 209, 'Repudiandae rerum possimus exercitationem. Saepe qui pariatur nesciunt doloribus soluta reprehenderit eaque. Enim magni consectetur sit atque sed et.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (447, 304, 'Ut quia et esse aut qui veniam. Suscipit veritatis necessitatibus consequuntur asperiores amet. Adipisci eum quisquam autem sed mollitia dolorum.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (448, 76, 'Ut deserunt provident consequuntur facere eius. Repellendus voluptatem suscipit est at doloribus expedita. Ducimus necessitatibus quia nihil aliquid. Rerum sit magni illum deserunt harum voluptate.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (449, 218, 'Ea aut totam in. Officia dolores occaecati maiores aut adipisci quia. Nemo quam sit et quo iure. Ipsum et voluptatem delectus et ex optio soluta.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (450, 317, 'Quod cumque ut ipsa libero possimus veritatis tempora sequi. Molestiae aliquid molestiae consequatur aut et et facere. Sunt iste vel autem. Sit quo veniam dicta.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (451, 175, 'Quas est voluptas aut ut. Voluptatem nulla quia sit ea odio culpa explicabo. Aut et inventore quod aut. Magnam et numquam quas totam voluptates.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (452, 456, 'Debitis itaque laborum culpa cupiditate qui sed facilis. Nisi eum aut minima aut. Quae facilis occaecati asperiores ea enim corporis error. Quo vero quo quidem quia nulla.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (453, 383, 'Voluptatem possimus ullam sed quis qui consectetur facere. Et molestiae est ut labore sunt. In aut sed non sed quia est vero. Optio dolorem facilis dolor maiores non.', '2019-02-25 08:41:57', '2019-02-25 08:41:57'), (454, 57, 'Qui iusto quis sed soluta. Earum sapiente dolorem et voluptas.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (455, 340, 'Reprehenderit odit officiis quos exercitationem ipsum. Alias dolorem id in beatae aut. Delectus officia nihil eos delectus qui quis.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (456, 281, 'Sunt corrupti expedita laborum voluptatem magni molestiae numquam. Nulla sunt ratione sed labore et consequatur asperiores. Quasi placeat voluptatem ut repellat veniam aperiam.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (457, 24, 'Odit pariatur a et corporis magnam enim. Pariatur voluptatem qui est magnam omnis. Molestiae inventore harum rerum et non in.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (458, 324, 'Doloribus dolores magni non maiores delectus perferendis et. Ipsum maiores dolor quidem sunt voluptas earum voluptas ut. Blanditiis commodi et deleniti numquam consequuntur dolorem ut. Molestiae aut qui harum magni maiores ratione explicabo ab.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (459, 241, 'Mollitia sed dolore in nesciunt exercitationem aut et nisi. Unde recusandae beatae velit aut reprehenderit. Facilis earum itaque qui.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (460, 226, 'Ipsum et iusto aut voluptatem beatae deserunt. Et optio debitis mollitia suscipit aut sed quibusdam aut. Aut vitae et alias. Sit enim vitae expedita.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (461, 317, 'Est qui autem qui consequatur dolorem. Quisquam excepturi possimus culpa quae voluptatibus praesentium. Fugiat enim unde maxime tempore nisi architecto nihil. Odit ex esse laudantium dolores.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (462, 243, 'A libero autem culpa rerum. Aliquid iusto voluptates laudantium. Aliquam voluptatibus delectus eum quasi. Aliquid quos nulla dolores fugit fugiat eos sunt vel.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (463, 261, 'Veritatis nemo eos ratione necessitatibus aut. Ut labore est impedit odit porro non quia.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (464, 96, 'Consequatur explicabo sed dolore ab. Itaque dolore quae neque et voluptatibus libero. Tempore non temporibus quos magnam qui odit aliquam.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (465, 88, 'Omnis quasi reprehenderit sint illum non explicabo. Fuga nam adipisci fugit doloribus assumenda debitis. Exercitationem quidem qui repellendus non nam. Qui nihil adipisci autem ea vel aut.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (466, 311, 'Et asperiores voluptatum eligendi consequuntur impedit ut eum mollitia. Non nesciunt ipsa est est. Fuga quia ea vel laboriosam.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (467, 8, 'Veritatis eaque eaque dignissimos est omnis. Neque illum laboriosam quod facilis dolor. Et ipsa rerum beatae non qui ex enim.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (468, 469, 'Impedit porro aliquid voluptatem dolor repellendus soluta. Deleniti illo minima necessitatibus voluptate. Repellendus iste qui facere dolorem quas perspiciatis et.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (469, 126, 'Officia qui quia expedita. Architecto qui quis beatae et ducimus. Placeat ea fugiat veritatis. Corrupti ut delectus consequuntur nihil culpa rem sed.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (470, 226, 'Debitis ad corporis nobis consequatur velit nihil illum totam. Praesentium quia mollitia consequatur et magni. Nihil voluptatem vel alias velit perspiciatis. Quidem sapiente at et nesciunt.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (471, 407, 'Aut accusantium minima deleniti doloribus non. Recusandae laudantium autem consequuntur et. Sed ut vero voluptas illo soluta totam.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (472, 227, 'Quisquam nihil non numquam laudantium facilis suscipit. Rerum ad eius consequuntur ut quam fugit numquam. Voluptatum inventore sit a itaque.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (473, 81, 'Sed sed eaque et repudiandae ut doloribus vero. Eaque nemo repellat officia voluptatem neque. Et facere qui hic iusto sint.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (474, 438, 'Accusamus laborum porro quod est. Placeat distinctio voluptatum in excepturi a. Eos voluptatum nihil quia consequatur. Rem minima tempora omnis repellat dolor.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (475, 65, 'Nesciunt nisi aut harum ab vero cupiditate. Veniam enim iure quia. Aut autem praesentium et voluptates corporis consequatur.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (476, 414, 'Aut dolor est non nesciunt eos esse adipisci. Et consequatur doloremque et sint. Velit error magnam eos molestias.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (477, 295, 'Et dolorem sit non ut. Eaque unde dolores id quis doloribus numquam. Laudantium quidem ratione eos voluptatibus vel. Non mollitia eveniet est voluptatibus quam soluta.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (478, 395, 'Numquam minus aut nesciunt qui repellendus odio. Odit sit sed minima itaque qui. Asperiores iusto est laboriosam quisquam. Magnam dolorem nostrum ipsa.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (479, 24, 'Itaque ut et libero ex velit. Dolore praesentium saepe maiores excepturi enim. Fuga occaecati nihil non corporis omnis. Eaque repellat dolorem porro similique est odit.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (480, 49, 'Accusamus dolorum aspernatur facere aut sunt. Ea nisi nisi voluptatem recusandae magnam. Delectus molestiae quas eligendi illum porro aliquam quisquam. Dolores ipsum voluptas aliquid.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (481, 272, 'Adipisci aspernatur dicta eum doloribus. Esse et quia dicta maxime praesentium autem. Distinctio cumque quam quibusdam veritatis labore quibusdam ut. Magnam provident fuga numquam est vel natus.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (482, 162, 'Voluptatem et nobis omnis quod iusto magnam nisi. Rem ab alias quis impedit ab aut optio esse. Amet sunt et enim excepturi esse illo expedita.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (483, 208, 'Et illum dolorum sed iste delectus minima est velit. Itaque a officiis hic rerum voluptates. Veniam id velit magni earum cupiditate culpa. Quae accusamus animi est eos animi.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (484, 20, 'Molestias est architecto fugiat exercitationem voluptatum harum. Vel deserunt laudantium numquam. Aut amet officiis consectetur iure quasi et non. Dolorem itaque qui et.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (485, 190, 'Qui et consectetur iste. Accusantium aliquam optio aut et. Hic possimus facilis incidunt voluptate ducimus molestiae.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (486, 495, 'Eum laudantium et quasi adipisci quos animi est. Recusandae sed mollitia harum qui. Illum perspiciatis dignissimos reiciendis optio occaecati. Magnam velit nulla et qui repudiandae sequi et.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (487, 12, 'Maxime voluptatem reiciendis molestiae temporibus eos ut aut. Dolore cumque distinctio omnis est. Consectetur eius sit dolor.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (488, 414, 'Assumenda velit delectus atque modi rerum eos dolorem. Repudiandae dolor et aut qui.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (489, 285, 'Est rerum asperiores culpa molestias. Fugiat quibusdam commodi magni ipsam ut qui. Cupiditate ipsum iure voluptatem ea et ipsum possimus.', '2019-02-25 08:41:58', '2019-02-25 08:41:58'), (490, 154, 'Consequatur autem ab earum corporis. Vero aut est omnis dolor vel et. Amet nostrum in minima sit at facilis molestias.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (491, 295, 'Ut reiciendis rerum ducimus excepturi est necessitatibus. Laboriosam voluptatem ut dolor neque distinctio quo et. Minima id voluptas et culpa inventore.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (492, 300, 'Id fugit quo et accusantium aut iure delectus. Earum qui fugiat facere consequatur animi libero ipsum. Aut quam et ab dicta error.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (493, 112, 'Sint ut repellat consequatur vel modi quisquam. Ut magnam suscipit voluptate qui consequatur. Possimus exercitationem non nemo aut et id est autem. Qui fugit numquam enim quis eligendi repellat.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (494, 204, 'Officiis tenetur consequatur fugit. Minima et est autem cumque eum nemo qui. Occaecati autem ullam animi illo. Accusamus cum ab possimus ipsa ut.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (495, 62, 'Deserunt odit eveniet qui saepe. Quia et fuga id minus non necessitatibus. Praesentium nisi earum quis perspiciatis est harum. Ea architecto provident cum ut sed est iusto.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (496, 35, 'Odit dolorum dignissimos quo beatae dolores. Optio quia accusamus ut autem impedit. Quos quia mollitia libero nostrum recusandae est.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (497, 26, 'Deleniti vel recusandae tempore qui dolorum. Distinctio neque quam quam sed. Qui fuga et quidem et corporis aut voluptatibus magni. Quisquam omnis maxime consequuntur et.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (498, 465, 'Necessitatibus quidem recusandae quia magnam. Assumenda maiores qui architecto non voluptatem nesciunt. Est ea aperiam occaecati labore architecto quaerat iste doloremque. Quisquam consectetur non impedit quo sed aliquid rerum.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (499, 356, 'Facilis aut provident autem incidunt autem maxime. Fugiat commodi rerum ea voluptas ut fuga et. Repellendus vel omnis ea excepturi dolore perspiciatis numquam.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'), (500, 56, 'Iure voluptas ut molestiae non et et praesentium architecto. Illum beatae quaerat tenetur sequi. Id accusamus quia dignissimos qui beatae id illum.', '2019-02-25 08:41:59', '2019-02-25 08:41:59'); /*!40000 ALTER TABLE `posts` ENABLE KEYS */; -- Export de la structure de la table datatables_demo. taggables CREATE TABLE IF NOT EXISTS `taggables` ( `tag_id` int(10) unsigned NOT NULL, `taggable_id` int(10) unsigned NOT NULL, `taggable_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, KEY `taggables_taggable_id_taggable_type_index` (`taggable_id`,`taggable_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Export de donnรฉes de la table datatables_demo.taggables : ~2ย 471 rows (environ) DELETE FROM `taggables`; /*!40000 ALTER TABLE `taggables` DISABLE KEYS */; INSERT INTO `taggables` (`tag_id`, `taggable_id`, `taggable_type`) VALUES (0, 1, 'App\\Post'), (1, 2, 'App\\Post'), (2, 2, 'App\\Post'), (1, 3, 'App\\Post'), (2, 3, 'App\\Post'), (3, 3, 'App\\Post'), (4, 3, 'App\\Post'), (2, 4, 'App\\Post'), (4, 4, 'App\\Post'), (1, 5, 'App\\Post'), (2, 5, 'App\\Post'), (3, 5, 'App\\Post'), (4, 5, 'App\\Post'), (0, 6, 'App\\Post'), (1, 7, 'App\\Post'), (2, 7, 'App\\Post'), (3, 7, 'App\\Post'), (4, 7, 'App\\Post'), (0, 8, 'App\\Post'), (1, 9, 'App\\Post'), (2, 9, 'App\\Post'), (3, 9, 'App\\Post'), (4, 9, 'App\\Post'), (1, 10, 'App\\Post'), (2, 10, 'App\\Post'), (3, 10, 'App\\Post'), (4, 10, 'App\\Post'), (2, 11, 'App\\Post'), (3, 11, 'App\\Post'), (2, 12, 'App\\Post'), (3, 12, 'App\\Post'), (1, 13, 'App\\Post'), (3, 13, 'App\\Post'), (4, 13, 'App\\Post'), (1, 14, 'App\\Post'), (2, 14, 'App\\Post'), (3, 14, 'App\\Post'), (1, 15, 'App\\Post'), (4, 15, 'App\\Post'), (3, 16, 'App\\Post'), (4, 16, 'App\\Post'), (0, 17, 'App\\Post'), (1, 18, 'App\\Post'), (2, 18, 'App\\Post'), (3, 18, 'App\\Post'), (0, 19, 'App\\Post'), (2, 20, 'App\\Post'), (3, 20, 'App\\Post'), (4, 20, 'App\\Post'), (0, 21, 'App\\Post'), (1, 22, 'App\\Post'), (2, 22, 'App\\Post'), (4, 22, 'App\\Post'), (0, 23, 'App\\Post'), (0, 24, 'App\\Post'), (1, 25, 'App\\Post'), (2, 25, 'App\\Post'), (3, 25, 'App\\Post'), (4, 25, 'App\\Post'), (1, 26, 'App\\Post'), (4, 26, 'App\\Post'), (1, 27, 'App\\Post'), (2, 27, 'App\\Post'), (3, 27, 'App\\Post'), (4, 27, 'App\\Post'), (1, 28, 'App\\Post'), (2, 28, 'App\\Post'), (3, 28, 'App\\Post'), (4, 28, 'App\\Post'), (1, 29, 'App\\Post'), (2, 29, 'App\\Post'), (3, 29, 'App\\Post'), (0, 30, 'App\\Post'), (1, 31, 'App\\Post'), (2, 31, 'App\\Post'), (3, 31, 'App\\Post'), (4, 31, 'App\\Post'), (0, 32, 'App\\Post'), (2, 33, 'App\\Post'), (4, 33, 'App\\Post'), (1, 34, 'App\\Post'), (2, 34, 'App\\Post'), (3, 34, 'App\\Post'), (4, 34, 'App\\Post'), (1, 35, 'App\\Post'), (2, 35, 'App\\Post'), (3, 35, 'App\\Post'), (4, 35, 'App\\Post'), (1, 36, 'App\\Post'), (2, 36, 'App\\Post'), (3, 36, 'App\\Post'), (4, 36, 'App\\Post'), (2, 37, 'App\\Post'), (4, 37, 'App\\Post'), (1, 38, 'App\\Post'), (3, 38, 'App\\Post'), (4, 38, 'App\\Post'), (1, 39, 'App\\Post'), (2, 39, 'App\\Post'), (3, 39, 'App\\Post'), (4, 39, 'App\\Post'), (3, 40, 'App\\Post'), (4, 40, 'App\\Post'), (0, 41, 'App\\Post'), (1, 42, 'App\\Post'), (2, 42, 'App\\Post'), (4, 42, 'App\\Post'), (3, 43, 'App\\Post'), (4, 43, 'App\\Post'), (1, 44, 'App\\Post'), (2, 44, 'App\\Post'), (3, 44, 'App\\Post'), (4, 44, 'App\\Post'), (2, 45, 'App\\Post'), (3, 45, 'App\\Post'), (4, 45, 'App\\Post'), (1, 46, 'App\\Post'), (2, 46, 'App\\Post'), (3, 46, 'App\\Post'), (4, 46, 'App\\Post'), (3, 47, 'App\\Post'), (4, 47, 'App\\Post'), (0, 48, 'App\\Post'), (1, 49, 'App\\Post'), (2, 49, 'App\\Post'), (3, 49, 'App\\Post'), (4, 49, 'App\\Post'), (1, 50, 'App\\Post'), (4, 50, 'App\\Post'), (2, 51, 'App\\Post'), (3, 51, 'App\\Post'), (4, 51, 'App\\Post'), (2, 52, 'App\\Post'), (3, 52, 'App\\Post'), (1, 53, 'App\\Post'), (2, 53, 'App\\Post'), (3, 53, 'App\\Post'), (4, 53, 'App\\Post'), (1, 54, 'App\\Post'), (3, 54, 'App\\Post'), (0, 55, 'App\\Post'), (1, 56, 'App\\Post'), (2, 56, 'App\\Post'), (3, 56, 'App\\Post'), (4, 56, 'App\\Post'), (1, 57, 'App\\Post'), (2, 57, 'App\\Post'), (4, 57, 'App\\Post'), (1, 58, 'App\\Post'), (3, 58, 'App\\Post'), (4, 58, 'App\\Post'), (1, 59, 'App\\Post'), (2, 59, 'App\\Post'), (3, 59, 'App\\Post'), (4, 59, 'App\\Post'), (2, 60, 'App\\Post'), (4, 60, 'App\\Post'), (1, 61, 'App\\Post'), (3, 61, 'App\\Post'), (4, 61, 'App\\Post'), (1, 62, 'App\\Post'), (2, 62, 'App\\Post'), (3, 62, 'App\\Post'), (1, 63, 'App\\Post'), (2, 63, 'App\\Post'), (3, 63, 'App\\Post'), (4, 63, 'App\\Post'), (1, 64, 'App\\Post'), (3, 64, 'App\\Post'), (4, 64, 'App\\Post'), (0, 65, 'App\\Post'), (1, 66, 'App\\Post'), (2, 66, 'App\\Post'), (1, 67, 'App\\Post'), (2, 67, 'App\\Post'), (3, 67, 'App\\Post'), (0, 68, 'App\\Post'), (1, 69, 'App\\Post'), (3, 69, 'App\\Post'), (4, 69, 'App\\Post'), (1, 70, 'App\\Post'), (2, 70, 'App\\Post'), (4, 70, 'App\\Post'), (1, 71, 'App\\Post'), (2, 71, 'App\\Post'), (4, 71, 'App\\Post'), (1, 72, 'App\\Post'), (2, 72, 'App\\Post'), (3, 72, 'App\\Post'), (4, 72, 'App\\Post'), (3, 73, 'App\\Post'), (4, 73, 'App\\Post'), (3, 74, 'App\\Post'), (4, 74, 'App\\Post'), (2, 75, 'App\\Post'), (4, 75, 'App\\Post'), (3, 76, 'App\\Post'), (4, 76, 'App\\Post'), (1, 77, 'App\\Post'), (2, 77, 'App\\Post'), (1, 78, 'App\\Post'), (2, 78, 'App\\Post'), (3, 78, 'App\\Post'), (4, 78, 'App\\Post'), (0, 79, 'App\\Post'), (0, 80, 'App\\Post'), (1, 81, 'App\\Post'), (2, 81, 'App\\Post'), (4, 81, 'App\\Post'), (0, 82, 'App\\Post'), (0, 83, 'App\\Post'), (3, 84, 'App\\Post'), (4, 84, 'App\\Post'), (0, 85, 'App\\Post'), (2, 86, 'App\\Post'), (4, 86, 'App\\Post'), (1, 87, 'App\\Post'), (2, 87, 'App\\Post'), (4, 87, 'App\\Post'), (1, 88, 'App\\Post'), (2, 88, 'App\\Post'), (3, 88, 'App\\Post'), (1, 89, 'App\\Post'), (3, 89, 'App\\Post'), (1, 90, 'App\\Post'), (2, 90, 'App\\Post'), (3, 90, 'App\\Post'), (0, 91, 'App\\Post'), (0, 92, 'App\\Post'), (1, 93, 'App\\Post'), (3, 93, 'App\\Post'), (4, 93, 'App\\Post'), (0, 94, 'App\\Post'), (1, 95, 'App\\Post'), (2, 95, 'App\\Post'), (3, 95, 'App\\Post'), (4, 95, 'App\\Post'), (1, 96, 'App\\Post'), (3, 96, 'App\\Post'), (0, 97, 'App\\Post'), (1, 98, 'App\\Post'), (3, 98, 'App\\Post'), (1, 99, 'App\\Post'), (3, 99, 'App\\Post'), (4, 99, 'App\\Post'), (1, 100, 'App\\Post'), (4, 100, 'App\\Post'), (1, 101, 'App\\Post'), (2, 101, 'App\\Post'), (4, 101, 'App\\Post'), (1, 102, 'App\\Post'), (3, 102, 'App\\Post'), (1, 103, 'App\\Post'), (2, 103, 'App\\Post'), (3, 103, 'App\\Post'), (4, 103, 'App\\Post'), (0, 104, 'App\\Post'), (1, 105, 'App\\Post'), (3, 105, 'App\\Post'), (4, 105, 'App\\Post'), (1, 106, 'App\\Post'), (2, 106, 'App\\Post'), (3, 106, 'App\\Post'), (4, 106, 'App\\Post'), (1, 107, 'App\\Post'), (3, 107, 'App\\Post'), (0, 108, 'App\\Post'), (1, 109, 'App\\Post'), (2, 109, 'App\\Post'), (3, 109, 'App\\Post'), (4, 109, 'App\\Post'), (2, 110, 'App\\Post'), (4, 110, 'App\\Post'), (0, 111, 'App\\Post'), (1, 112, 'App\\Post'), (3, 112, 'App\\Post'), (4, 112, 'App\\Post'), (1, 113, 'App\\Post'), (3, 113, 'App\\Post'), (4, 113, 'App\\Post'), (1, 114, 'App\\Post'), (2, 114, 'App\\Post'), (3, 114, 'App\\Post'), (1, 115, 'App\\Post'), (2, 115, 'App\\Post'), (4, 115, 'App\\Post'), (2, 116, 'App\\Post'), (4, 116, 'App\\Post'), (2, 117, 'App\\Post'), (4, 117, 'App\\Post'), (0, 118, 'App\\Post'), (1, 119, 'App\\Post'), (3, 119, 'App\\Post'), (2, 120, 'App\\Post'), (3, 120, 'App\\Post'), (4, 120, 'App\\Post'), (0, 121, 'App\\Post'), (1, 122, 'App\\Post'), (2, 122, 'App\\Post'), (3, 122, 'App\\Post'), (4, 122, 'App\\Post'), (1, 123, 'App\\Post'), (2, 123, 'App\\Post'), (3, 123, 'App\\Post'), (4, 123, 'App\\Post'), (0, 124, 'App\\Post'), (0, 125, 'App\\Post'), (2, 126, 'App\\Post'), (3, 126, 'App\\Post'), (4, 126, 'App\\Post'), (1, 127, 'App\\Post'), (2, 127, 'App\\Post'), (3, 127, 'App\\Post'), (4, 127, 'App\\Post'), (2, 128, 'App\\Post'), (4, 128, 'App\\Post'), (1, 129, 'App\\Post'), (2, 129, 'App\\Post'), (2, 130, 'App\\Post'), (4, 130, 'App\\Post'), (1, 131, 'App\\Post'), (2, 131, 'App\\Post'), (3, 131, 'App\\Post'), (4, 131, 'App\\Post'), (1, 132, 'App\\Post'), (2, 132, 'App\\Post'), (4, 132, 'App\\Post'), (1, 133, 'App\\Post'), (2, 133, 'App\\Post'), (3, 133, 'App\\Post'), (1, 134, 'App\\Post'), (2, 134, 'App\\Post'), (3, 134, 'App\\Post'), (4, 134, 'App\\Post'), (1, 135, 'App\\Post'), (3, 135, 'App\\Post'), (4, 135, 'App\\Post'), (2, 136, 'App\\Post'), (3, 136, 'App\\Post'), (4, 136, 'App\\Post'), (1, 137, 'App\\Post'), (2, 137, 'App\\Post'), (3, 137, 'App\\Post'), (4, 137, 'App\\Post'), (1, 138, 'App\\Post'), (4, 138, 'App\\Post'), (2, 139, 'App\\Post'), (4, 139, 'App\\Post'), (1, 140, 'App\\Post'), (2, 140, 'App\\Post'), (3, 140, 'App\\Post'), (1, 141, 'App\\Post'), (2, 141, 'App\\Post'), (3, 141, 'App\\Post'), (4, 141, 'App\\Post'), (0, 142, 'App\\Post'), (1, 143, 'App\\Post'), (2, 143, 'App\\Post'), (3, 143, 'App\\Post'), (4, 143, 'App\\Post'), (0, 144, 'App\\Post'), (1, 145, 'App\\Post'), (4, 145, 'App\\Post'), (1, 146, 'App\\Post'), (4, 146, 'App\\Post'), (1, 147, 'App\\Post'), (2, 147, 'App\\Post'), (3, 147, 'App\\Post'), (4, 147, 'App\\Post'), (1, 148, 'App\\Post'), (2, 148, 'App\\Post'), (3, 148, 'App\\Post'), (4, 148, 'App\\Post'), (1, 149, 'App\\Post'), (4, 149, 'App\\Post'), (1, 150, 'App\\Post'), (2, 150, 'App\\Post'), (4, 150, 'App\\Post'), (2, 151, 'App\\Post'), (3, 151, 'App\\Post'), (1, 152, 'App\\Post'), (3, 152, 'App\\Post'), (4, 152, 'App\\Post'), (1, 153, 'App\\Post'), (2, 153, 'App\\Post'), (3, 153, 'App\\Post'), (4, 153, 'App\\Post'), (1, 154, 'App\\Post'), (2, 154, 'App\\Post'), (2, 155, 'App\\Post'), (3, 155, 'App\\Post'), (4, 155, 'App\\Post'), (2, 156, 'App\\Post'), (4, 156, 'App\\Post'), (0, 157, 'App\\Post'), (2, 158, 'App\\Post'), (3, 158, 'App\\Post'), (4, 158, 'App\\Post'), (1, 159, 'App\\Post'), (2, 159, 'App\\Post'), (1, 160, 'App\\Post'), (2, 160, 'App\\Post'), (3, 160, 'App\\Post'), (4, 160, 'App\\Post'), (0, 161, 'App\\Post'), (1, 162, 'App\\Post'), (4, 162, 'App\\Post'), (0, 163, 'App\\Post'), (0, 164, 'App\\Post'), (0, 165, 'App\\Post'), (1, 166, 'App\\Post'), (2, 166, 'App\\Post'), (3, 166, 'App\\Post'), (0, 167, 'App\\Post'), (0, 168, 'App\\Post'), (0, 169, 'App\\Post'), (0, 170, 'App\\Post'), (0, 171, 'App\\Post'), (2, 172, 'App\\Post'), (4, 172, 'App\\Post'), (2, 173, 'App\\Post'), (3, 173, 'App\\Post'), (4, 173, 'App\\Post'), (0, 174, 'App\\Post'), (2, 175, 'App\\Post'), (3, 175, 'App\\Post'), (4, 175, 'App\\Post'), (0, 176, 'App\\Post'), (1, 177, 'App\\Post'), (2, 177, 'App\\Post'), (3, 177, 'App\\Post'), (4, 177, 'App\\Post'), (1, 178, 'App\\Post'), (4, 178, 'App\\Post'), (0, 179, 'App\\Post'), (1, 180, 'App\\Post'), (3, 180, 'App\\Post'), (4, 180, 'App\\Post'), (1, 181, 'App\\Post'), (4, 181, 'App\\Post'), (1, 182, 'App\\Post'), (3, 182, 'App\\Post'), (4, 182, 'App\\Post'), (2, 183, 'App\\Post'), (3, 183, 'App\\Post'), (0, 184, 'App\\Post'), (3, 185, 'App\\Post'), (4, 185, 'App\\Post'), (1, 186, 'App\\Post'), (2, 186, 'App\\Post'), (3, 186, 'App\\Post'), (4, 186, 'App\\Post'), (3, 187, 'App\\Post'), (4, 187, 'App\\Post'), (1, 188, 'App\\Post'), (2, 188, 'App\\Post'), (3, 188, 'App\\Post'), (4, 188, 'App\\Post'), (1, 189, 'App\\Post'), (3, 189, 'App\\Post'), (4, 189, 'App\\Post'), (1, 190, 'App\\Post'), (4, 190, 'App\\Post'), (1, 191, 'App\\Post'), (2, 191, 'App\\Post'), (2, 192, 'App\\Post'), (3, 192, 'App\\Post'), (4, 192, 'App\\Post'), (0, 193, 'App\\Post'), (1, 194, 'App\\Post'), (2, 194, 'App\\Post'), (1, 195, 'App\\Post'), (2, 195, 'App\\Post'), (3, 195, 'App\\Post'), (4, 195, 'App\\Post'), (3, 196, 'App\\Post'), (4, 196, 'App\\Post'), (0, 197, 'App\\Post'), (0, 198, 'App\\Post'), (0, 199, 'App\\Post'), (1, 200, 'App\\Post'), (2, 200, 'App\\Post'), (3, 200, 'App\\Post'), (4, 200, 'App\\Post'), (0, 201, 'App\\Post'), (1, 202, 'App\\Post'), (2, 202, 'App\\Post'), (3, 202, 'App\\Post'), (4, 202, 'App\\Post'), (1, 203, 'App\\Post'), (2, 203, 'App\\Post'), (1, 204, 'App\\Post'), (2, 204, 'App\\Post'), (3, 204, 'App\\Post'), (4, 204, 'App\\Post'), (1, 205, 'App\\Post'), (2, 205, 'App\\Post'), (3, 205, 'App\\Post'), (1, 206, 'App\\Post'), (3, 206, 'App\\Post'), (1, 207, 'App\\Post'), (2, 207, 'App\\Post'), (0, 208, 'App\\Post'), (2, 209, 'App\\Post'), (3, 209, 'App\\Post'), (4, 209, 'App\\Post'), (0, 210, 'App\\Post'), (2, 211, 'App\\Post'), (4, 211, 'App\\Post'), (1, 212, 'App\\Post'), (2, 212, 'App\\Post'), (3, 212, 'App\\Post'), (1, 213, 'App\\Post'), (2, 213, 'App\\Post'), (3, 213, 'App\\Post'), (4, 213, 'App\\Post'), (2, 214, 'App\\Post'), (4, 214, 'App\\Post'), (0, 215, 'App\\Post'), (1, 216, 'App\\Post'), (2, 216, 'App\\Post'), (3, 216, 'App\\Post'), (4, 216, 'App\\Post'), (1, 217, 'App\\Post'), (2, 217, 'App\\Post'), (0, 218, 'App\\Post'), (1, 219, 'App\\Post'), (2, 219, 'App\\Post'), (4, 219, 'App\\Post'), (1, 220, 'App\\Post'), (2, 220, 'App\\Post'), (3, 220, 'App\\Post'), (4, 220, 'App\\Post'), (1, 221, 'App\\Post'), (3, 221, 'App\\Post'), (0, 222, 'App\\Post'), (2, 223, 'App\\Post'), (4, 223, 'App\\Post'), (1, 224, 'App\\Post'), (2, 224, 'App\\Post'), (3, 224, 'App\\Post'), (4, 224, 'App\\Post'), (0, 225, 'App\\Post'), (0, 226, 'App\\Post'), (2, 227, 'App\\Post'), (3, 227, 'App\\Post'), (4, 227, 'App\\Post'), (1, 228, 'App\\Post'), (2, 228, 'App\\Post'), (3, 228, 'App\\Post'), (4, 228, 'App\\Post'), (1, 229, 'App\\Post'), (2, 229, 'App\\Post'), (3, 229, 'App\\Post'), (4, 229, 'App\\Post'), (2, 230, 'App\\Post'), (3, 230, 'App\\Post'), (4, 230, 'App\\Post'), (1, 231, 'App\\Post'), (2, 231, 'App\\Post'), (3, 231, 'App\\Post'), (4, 231, 'App\\Post'), (2, 232, 'App\\Post'), (4, 232, 'App\\Post'), (1, 233, 'App\\Post'), (2, 233, 'App\\Post'), (3, 233, 'App\\Post'), (4, 233, 'App\\Post'), (0, 234, 'App\\Post'), (2, 235, 'App\\Post'), (3, 235, 'App\\Post'), (4, 235, 'App\\Post'), (1, 236, 'App\\Post'), (2, 236, 'App\\Post'), (3, 236, 'App\\Post'), (1, 237, 'App\\Post'), (3, 237, 'App\\Post'), (1, 238, 'App\\Post'), (2, 238, 'App\\Post'), (4, 238, 'App\\Post'), (1, 239, 'App\\Post'), (2, 239, 'App\\Post'), (3, 239, 'App\\Post'), (4, 239, 'App\\Post'), (0, 240, 'App\\Post'), (0, 241, 'App\\Post'), (0, 242, 'App\\Post'), (2, 243, 'App\\Post'), (3, 243, 'App\\Post'), (4, 243, 'App\\Post'), (1, 244, 'App\\Post'), (3, 244, 'App\\Post'), (4, 244, 'App\\Post'), (2, 245, 'App\\Post'), (3, 245, 'App\\Post'), (4, 245, 'App\\Post'), (0, 246, 'App\\Post'), (1, 247, 'App\\Post'), (4, 247, 'App\\Post'), (1, 248, 'App\\Post'), (2, 248, 'App\\Post'), (4, 248, 'App\\Post'), (1, 249, 'App\\Post'), (3, 249, 'App\\Post'), (1, 250, 'App\\Post'), (2, 250, 'App\\Post'), (4, 250, 'App\\Post'), (1, 251, 'App\\Post'), (2, 251, 'App\\Post'), (3, 251, 'App\\Post'), (4, 251, 'App\\Post'), (0, 252, 'App\\Post'), (1, 253, 'App\\Post'), (2, 253, 'App\\Post'), (3, 253, 'App\\Post'), (4, 253, 'App\\Post'), (1, 254, 'App\\Post'), (2, 254, 'App\\Post'), (1, 255, 'App\\Post'), (2, 255, 'App\\Post'), (3, 255, 'App\\Post'), (1, 256, 'App\\Post'), (2, 256, 'App\\Post'), (3, 256, 'App\\Post'), (4, 256, 'App\\Post'), (3, 257, 'App\\Post'), (4, 257, 'App\\Post'), (1, 258, 'App\\Post'), (2, 258, 'App\\Post'), (3, 258, 'App\\Post'), (4, 258, 'App\\Post'), (1, 259, 'App\\Post'), (2, 259, 'App\\Post'), (3, 259, 'App\\Post'), (4, 259, 'App\\Post'), (0, 260, 'App\\Post'), (2, 261, 'App\\Post'), (3, 261, 'App\\Post'), (4, 261, 'App\\Post'), (1, 262, 'App\\Post'), (2, 262, 'App\\Post'), (3, 262, 'App\\Post'), (4, 262, 'App\\Post'), (1, 263, 'App\\Post'), (2, 263, 'App\\Post'), (3, 263, 'App\\Post'), (4, 263, 'App\\Post'), (2, 264, 'App\\Post'), (3, 264, 'App\\Post'), (4, 264, 'App\\Post'), (1, 265, 'App\\Post'), (2, 265, 'App\\Post'), (1, 266, 'App\\Post'), (2, 266, 'App\\Post'), (0, 267, 'App\\Post'), (0, 268, 'App\\Post'), (1, 269, 'App\\Post'), (3, 269, 'App\\Post'), (4, 269, 'App\\Post'), (1, 270, 'App\\Post'), (2, 270, 'App\\Post'), (3, 270, 'App\\Post'), (4, 270, 'App\\Post'), (2, 271, 'App\\Post'), (3, 271, 'App\\Post'), (0, 272, 'App\\Post'), (0, 273, 'App\\Post'), (1, 274, 'App\\Post'), (2, 274, 'App\\Post'), (2, 275, 'App\\Post'), (3, 275, 'App\\Post'), (1, 276, 'App\\Post'), (3, 276, 'App\\Post'), (4, 276, 'App\\Post'), (1, 277, 'App\\Post'), (2, 277, 'App\\Post'), (3, 277, 'App\\Post'), (4, 277, 'App\\Post'), (0, 278, 'App\\Post'), (1, 279, 'App\\Post'), (2, 279, 'App\\Post'), (3, 279, 'App\\Post'), (4, 279, 'App\\Post'), (1, 280, 'App\\Post'), (2, 280, 'App\\Post'), (3, 280, 'App\\Post'), (0, 281, 'App\\Post'), (1, 282, 'App\\Post'), (2, 282, 'App\\Post'), (0, 283, 'App\\Post'), (0, 284, 'App\\Post'), (2, 285, 'App\\Post'), (3, 285, 'App\\Post'), (4, 285, 'App\\Post'), (0, 286, 'App\\Post'), (1, 287, 'App\\Post'), (2, 287, 'App\\Post'), (3, 287, 'App\\Post'), (4, 287, 'App\\Post'), (1, 288, 'App\\Post'), (2, 288, 'App\\Post'), (3, 288, 'App\\Post'), (4, 288, 'App\\Post'), (1, 289, 'App\\Post'), (4, 289, 'App\\Post'), (0, 290, 'App\\Post'), (3, 291, 'App\\Post'), (4, 291, 'App\\Post'), (0, 292, 'App\\Post'), (1, 293, 'App\\Post'), (2, 293, 'App\\Post'), (3, 293, 'App\\Post'), (4, 293, 'App\\Post'), (1, 294, 'App\\Post'), (2, 294, 'App\\Post'), (4, 294, 'App\\Post'), (1, 295, 'App\\Post'), (2, 295, 'App\\Post'), (4, 295, 'App\\Post'), (0, 296, 'App\\Post'), (1, 297, 'App\\Post'), (2, 297, 'App\\Post'), (3, 297, 'App\\Post'), (1, 298, 'App\\Post'), (2, 298, 'App\\Post'), (3, 298, 'App\\Post'), (4, 298, 'App\\Post'), (1, 299, 'App\\Post'), (4, 299, 'App\\Post'), (1, 300, 'App\\Post'), (2, 300, 'App\\Post'), (3, 300, 'App\\Post'), (4, 300, 'App\\Post'), (1, 301, 'App\\Post'), (3, 301, 'App\\Post'), (4, 301, 'App\\Post'), (3, 302, 'App\\Post'), (4, 302, 'App\\Post'), (2, 303, 'App\\Post'), (3, 303, 'App\\Post'), (1, 304, 'App\\Post'), (2, 304, 'App\\Post'), (3, 304, 'App\\Post'), (4, 304, 'App\\Post'), (0, 305, 'App\\Post'), (2, 306, 'App\\Post'), (3, 306, 'App\\Post'), (4, 306, 'App\\Post'), (2, 307, 'App\\Post'), (3, 307, 'App\\Post'), (4, 307, 'App\\Post'), (1, 308, 'App\\Post'), (3, 308, 'App\\Post'), (0, 309, 'App\\Post'), (1, 310, 'App\\Post'), (3, 310, 'App\\Post'), (2, 311, 'App\\Post'), (3, 311, 'App\\Post'), (4, 311, 'App\\Post'), (1, 312, 'App\\Post'), (2, 312, 'App\\Post'), (3, 312, 'App\\Post'), (0, 313, 'App\\Post'), (1, 314, 'App\\Post'), (4, 314, 'App\\Post'), (3, 315, 'App\\Post'), (4, 315, 'App\\Post'), (0, 316, 'App\\Post'), (1, 317, 'App\\Post'), (2, 317, 'App\\Post'), (3, 317, 'App\\Post'), (2, 318, 'App\\Post'), (3, 318, 'App\\Post'), (4, 318, 'App\\Post'), (0, 319, 'App\\Post'), (2, 320, 'App\\Post'), (3, 320, 'App\\Post'), (0, 321, 'App\\Post'), (0, 322, 'App\\Post'), (0, 323, 'App\\Post'), (0, 324, 'App\\Post'), (1, 325, 'App\\Post'), (2, 325, 'App\\Post'), (4, 325, 'App\\Post'), (1, 326, 'App\\Post'), (2, 326, 'App\\Post'), (3, 326, 'App\\Post'), (1, 327, 'App\\Post'), (3, 327, 'App\\Post'), (0, 328, 'App\\Post'), (1, 329, 'App\\Post'), (2, 329, 'App\\Post'), (3, 329, 'App\\Post'), (4, 329, 'App\\Post'), (1, 330, 'App\\Post'), (2, 330, 'App\\Post'), (4, 330, 'App\\Post'), (1, 331, 'App\\Post'), (2, 331, 'App\\Post'), (3, 331, 'App\\Post'), (1, 332, 'App\\Post'), (2, 332, 'App\\Post'), (3, 332, 'App\\Post'), (4, 332, 'App\\Post'), (2, 333, 'App\\Post'), (4, 333, 'App\\Post'), (2, 334, 'App\\Post'), (3, 334, 'App\\Post'), (4, 334, 'App\\Post'), (1, 335, 'App\\Post'), (3, 335, 'App\\Post'), (4, 335, 'App\\Post'), (1, 336, 'App\\Post'), (3, 336, 'App\\Post'), (1, 337, 'App\\Post'), (3, 337, 'App\\Post'), (1, 338, 'App\\Post'), (2, 338, 'App\\Post'), (3, 338, 'App\\Post'), (4, 338, 'App\\Post'), (1, 339, 'App\\Post'), (2, 339, 'App\\Post'), (3, 339, 'App\\Post'), (4, 339, 'App\\Post'), (1, 340, 'App\\Post'), (2, 340, 'App\\Post'), (0, 341, 'App\\Post'), (1, 342, 'App\\Post'), (2, 342, 'App\\Post'), (3, 342, 'App\\Post'), (4, 342, 'App\\Post'), (1, 343, 'App\\Post'), (4, 343, 'App\\Post'), (1, 344, 'App\\Post'), (3, 344, 'App\\Post'), (0, 345, 'App\\Post'), (1, 346, 'App\\Post'), (3, 346, 'App\\Post'), (4, 346, 'App\\Post'), (1, 347, 'App\\Post'), (2, 347, 'App\\Post'), (3, 347, 'App\\Post'), (4, 347, 'App\\Post'), (1, 348, 'App\\Post'), (2, 348, 'App\\Post'), (4, 348, 'App\\Post'), (0, 349, 'App\\Post'), (0, 350, 'App\\Post'), (1, 351, 'App\\Post'), (2, 351, 'App\\Post'), (3, 351, 'App\\Post'), (4, 351, 'App\\Post'), (1, 352, 'App\\Post'), (3, 352, 'App\\Post'), (0, 353, 'App\\Post'), (1, 354, 'App\\Post'), (2, 354, 'App\\Post'), (3, 354, 'App\\Post'), (1, 355, 'App\\Post'), (2, 355, 'App\\Post'), (3, 355, 'App\\Post'), (0, 356, 'App\\Post'), (2, 357, 'App\\Post'), (3, 357, 'App\\Post'), (4, 357, 'App\\Post'), (1, 358, 'App\\Post'), (2, 358, 'App\\Post'), (3, 358, 'App\\Post'), (4, 358, 'App\\Post'), (1, 359, 'App\\Post'), (2, 359, 'App\\Post'), (4, 359, 'App\\Post'), (1, 360, 'App\\Post'), (3, 360, 'App\\Post'), (4, 360, 'App\\Post'), (0, 361, 'App\\Post'), (2, 362, 'App\\Post'), (4, 362, 'App\\Post'), (1, 363, 'App\\Post'), (3, 363, 'App\\Post'), (4, 363, 'App\\Post'), (1, 364, 'App\\Post'), (2, 364, 'App\\Post'), (3, 364, 'App\\Post'), (4, 364, 'App\\Post'), (1, 365, 'App\\Post'), (4, 365, 'App\\Post'), (0, 366, 'App\\Post'), (2, 367, 'App\\Post'), (4, 367, 'App\\Post'), (1, 368, 'App\\Post'), (2, 368, 'App\\Post'), (3, 368, 'App\\Post'), (1, 369, 'App\\Post'), (2, 369, 'App\\Post'), (3, 369, 'App\\Post'), (4, 369, 'App\\Post'), (1, 370, 'App\\Post'), (2, 370, 'App\\Post'), (3, 370, 'App\\Post'), (4, 370, 'App\\Post'), (0, 371, 'App\\Post'), (1, 372, 'App\\Post'), (2, 372, 'App\\Post'), (3, 372, 'App\\Post'), (4, 372, 'App\\Post'), (0, 373, 'App\\Post'), (1, 374, 'App\\Post'), (2, 374, 'App\\Post'), (1, 375, 'App\\Post'), (2, 375, 'App\\Post'), (3, 375, 'App\\Post'), (4, 375, 'App\\Post'), (2, 376, 'App\\Post'), (3, 376, 'App\\Post'), (4, 376, 'App\\Post'), (1, 377, 'App\\Post'), (2, 377, 'App\\Post'), (3, 377, 'App\\Post'), (4, 377, 'App\\Post'), (1, 378, 'App\\Post'), (3, 378, 'App\\Post'), (1, 379, 'App\\Post'), (2, 379, 'App\\Post'), (3, 379, 'App\\Post'), (4, 379, 'App\\Post'), (1, 380, 'App\\Post'), (3, 380, 'App\\Post'), (4, 380, 'App\\Post'), (1, 381, 'App\\Post'), (2, 381, 'App\\Post'), (3, 381, 'App\\Post'), (4, 381, 'App\\Post'), (1, 382, 'App\\Post'), (2, 382, 'App\\Post'), (3, 382, 'App\\Post'), (4, 382, 'App\\Post'), (3, 383, 'App\\Post'), (4, 383, 'App\\Post'), (1, 384, 'App\\Post'), (2, 384, 'App\\Post'), (3, 384, 'App\\Post'), (4, 384, 'App\\Post'), (0, 385, 'App\\Post'), (2, 386, 'App\\Post'), (3, 386, 'App\\Post'), (4, 386, 'App\\Post'), (1, 387, 'App\\Post'), (2, 387, 'App\\Post'), (3, 387, 'App\\Post'), (4, 387, 'App\\Post'), (1, 388, 'App\\Post'), (2, 388, 'App\\Post'), (4, 388, 'App\\Post'), (1, 389, 'App\\Post'), (3, 389, 'App\\Post'), (4, 389, 'App\\Post'), (0, 390, 'App\\Post'), (2, 391, 'App\\Post'), (3, 391, 'App\\Post'), (4, 391, 'App\\Post'), (0, 392, 'App\\Post'), (1, 393, 'App\\Post'), (3, 393, 'App\\Post'), (1, 394, 'App\\Post'), (2, 394, 'App\\Post'), (0, 395, 'App\\Post'), (1, 396, 'App\\Post'), (2, 396, 'App\\Post'), (3, 396, 'App\\Post'), (3, 397, 'App\\Post'), (4, 397, 'App\\Post'), (2, 398, 'App\\Post'), (3, 398, 'App\\Post'), (4, 398, 'App\\Post'), (1, 399, 'App\\Post'), (2, 399, 'App\\Post'), (4, 399, 'App\\Post'), (1, 400, 'App\\Post'), (2, 400, 'App\\Post'), (3, 400, 'App\\Post'), (4, 400, 'App\\Post'), (1, 401, 'App\\Post'), (2, 401, 'App\\Post'), (3, 401, 'App\\Post'), (4, 401, 'App\\Post'), (1, 402, 'App\\Post'), (3, 402, 'App\\Post'), (4, 402, 'App\\Post'), (1, 403, 'App\\Post'), (2, 403, 'App\\Post'), (3, 403, 'App\\Post'), (4, 403, 'App\\Post'), (0, 404, 'App\\Post'), (1, 405, 'App\\Post'), (2, 405, 'App\\Post'), (3, 405, 'App\\Post'), (4, 405, 'App\\Post'), (3, 406, 'App\\Post'), (4, 406, 'App\\Post'), (1, 407, 'App\\Post'), (2, 407, 'App\\Post'), (3, 407, 'App\\Post'), (4, 407, 'App\\Post'), (1, 408, 'App\\Post'), (2, 408, 'App\\Post'), (1, 409, 'App\\Post'), (2, 409, 'App\\Post'), (4, 409, 'App\\Post'), (1, 410, 'App\\Post'), (2, 410, 'App\\Post'), (3, 410, 'App\\Post'), (4, 410, 'App\\Post'), (0, 411, 'App\\Post'), (0, 412, 'App\\Post'), (2, 413, 'App\\Post'), (3, 413, 'App\\Post'), (2, 414, 'App\\Post'), (4, 414, 'App\\Post'), (1, 415, 'App\\Post'), (2, 415, 'App\\Post'), (0, 416, 'App\\Post'), (1, 417, 'App\\Post'), (2, 417, 'App\\Post'), (4, 417, 'App\\Post'), (2, 418, 'App\\Post'), (3, 418, 'App\\Post'), (1, 419, 'App\\Post'), (2, 419, 'App\\Post'), (3, 419, 'App\\Post'), (4, 419, 'App\\Post'), (0, 420, 'App\\Post'), (0, 421, 'App\\Post'), (0, 422, 'App\\Post'), (1, 423, 'App\\Post'), (3, 423, 'App\\Post'), (0, 424, 'App\\Post'), (1, 425, 'App\\Post'), (2, 425, 'App\\Post'), (3, 425, 'App\\Post'), (4, 425, 'App\\Post'), (2, 426, 'App\\Post'), (3, 426, 'App\\Post'), (0, 427, 'App\\Post'), (1, 428, 'App\\Post'), (3, 428, 'App\\Post'), (0, 429, 'App\\Post'), (0, 430, 'App\\Post'), (1, 431, 'App\\Post'), (2, 431, 'App\\Post'), (3, 431, 'App\\Post'), (4, 431, 'App\\Post'), (1, 432, 'App\\Post'), (3, 432, 'App\\Post'), (4, 432, 'App\\Post'), (0, 433, 'App\\Post'), (1, 434, 'App\\Post'), (2, 434, 'App\\Post'), (2, 435, 'App\\Post'), (3, 435, 'App\\Post'), (1, 436, 'App\\Post'), (2, 436, 'App\\Post'), (3, 436, 'App\\Post'), (4, 436, 'App\\Post'), (2, 437, 'App\\Post'), (3, 437, 'App\\Post'), (4, 437, 'App\\Post'), (2, 438, 'App\\Post'), (3, 438, 'App\\Post'), (4, 438, 'App\\Post'), (3, 439, 'App\\Post'), (4, 439, 'App\\Post'), (0, 440, 'App\\Post'), (2, 441, 'App\\Post'), (3, 441, 'App\\Post'), (4, 441, 'App\\Post'), (2, 442, 'App\\Post'), (3, 442, 'App\\Post'), (4, 442, 'App\\Post'), (1, 443, 'App\\Post'), (2, 443, 'App\\Post'), (3, 443, 'App\\Post'), (4, 443, 'App\\Post'), (1, 444, 'App\\Post'), (2, 444, 'App\\Post'), (3, 444, 'App\\Post'), (4, 444, 'App\\Post'), (1, 445, 'App\\Post'), (2, 445, 'App\\Post'), (3, 445, 'App\\Post'), (4, 445, 'App\\Post'), (1, 446, 'App\\Post'), (2, 446, 'App\\Post'), (3, 446, 'App\\Post'), (4, 446, 'App\\Post'), (1, 447, 'App\\Post'), (2, 447, 'App\\Post'), (3, 447, 'App\\Post'), (4, 447, 'App\\Post'), (1, 448, 'App\\Post'), (2, 448, 'App\\Post'), (3, 448, 'App\\Post'), (4, 448, 'App\\Post'), (1, 449, 'App\\Post'), (2, 449, 'App\\Post'), (3, 449, 'App\\Post'), (4, 449, 'App\\Post'), (1, 450, 'App\\Post'), (2, 450, 'App\\Post'), (3, 450, 'App\\Post'), (3, 451, 'App\\Post'), (4, 451, 'App\\Post'), (1, 452, 'App\\Post'), (2, 452, 'App\\Post'), (1, 453, 'App\\Post'), (2, 453, 'App\\Post'), (3, 453, 'App\\Post'), (4, 453, 'App\\Post'), (1, 454, 'App\\Post'), (4, 454, 'App\\Post'), (1, 455, 'App\\Post'), (2, 455, 'App\\Post'), (0, 456, 'App\\Post'), (1, 457, 'App\\Post'), (4, 457, 'App\\Post'), (1, 458, 'App\\Post'), (4, 458, 'App\\Post'), (0, 459, 'App\\Post'), (0, 460, 'App\\Post'), (2, 461, 'App\\Post'), (3, 461, 'App\\Post'), (4, 461, 'App\\Post'), (2, 462, 'App\\Post'), (3, 462, 'App\\Post'), (2, 463, 'App\\Post'), (3, 463, 'App\\Post'), (4, 463, 'App\\Post'), (3, 464, 'App\\Post'), (4, 464, 'App\\Post'), (0, 465, 'App\\Post'), (1, 466, 'App\\Post'), (2, 466, 'App\\Post'), (4, 466, 'App\\Post'), (1, 467, 'App\\Post'), (2, 467, 'App\\Post'), (2, 468, 'App\\Post'), (4, 468, 'App\\Post'), (0, 469, 'App\\Post'), (2, 470, 'App\\Post'), (3, 470, 'App\\Post'), (4, 470, 'App\\Post'), (3, 471, 'App\\Post'), (4, 471, 'App\\Post'), (0, 472, 'App\\Post'), (0, 473, 'App\\Post'), (1, 474, 'App\\Post'), (3, 474, 'App\\Post'), (4, 474, 'App\\Post'), (1, 475, 'App\\Post'), (2, 475, 'App\\Post'), (3, 475, 'App\\Post'), (4, 475, 'App\\Post'), (1, 476, 'App\\Post'), (2, 476, 'App\\Post'), (4, 476, 'App\\Post'), (1, 477, 'App\\Post'), (2, 477, 'App\\Post'), (3, 477, 'App\\Post'), (4, 477, 'App\\Post'), (0, 478, 'App\\Post'), (0, 479, 'App\\Post'), (1, 480, 'App\\Post'), (2, 480, 'App\\Post'), (3, 480, 'App\\Post'), (4, 480, 'App\\Post'), (0, 481, 'App\\Post'), (3, 482, 'App\\Post'), (4, 482, 'App\\Post'), (1, 483, 'App\\Post'), (2, 483, 'App\\Post'), (3, 483, 'App\\Post'), (4, 483, 'App\\Post'), (1, 484, 'App\\Post'), (2, 484, 'App\\Post'), (3, 484, 'App\\Post'), (4, 484, 'App\\Post'), (1, 485, 'App\\Post'), (3, 485, 'App\\Post'), (4, 485, 'App\\Post'), (0, 486, 'App\\Post'), (2, 487, 'App\\Post'), (3, 487, 'App\\Post'), (1, 488, 'App\\Post'), (2, 488, 'App\\Post'), (3, 488, 'App\\Post'), (2, 489, 'App\\Post'), (3, 489, 'App\\Post'), (4, 489, 'App\\Post'), (3, 490, 'App\\Post'), (4, 490, 'App\\Post'), (2, 491, 'App\\Post'), (4, 491, 'App\\Post'), (1, 492, 'App\\Post'), (3, 492, 'App\\Post'), (0, 493, 'App\\Post'), (1, 494, 'App\\Post'), (3, 494, 'App\\Post'), (1, 495, 'App\\Post'), (2, 495, 'App\\Post'), (3, 495, 'App\\Post'), (4, 495, 'App\\Post'), (0, 496, 'App\\Post'), (0, 497, 'App\\Post'), (1, 498, 'App\\Post'), (2, 498, 'App\\Post'), (3, 498, 'App\\Post'), (4, 498, 'App\\Post'), (2, 499, 'App\\Post'), (3, 499, 'App\\Post'), (4, 499, 'App\\Post'), (1, 500, 'App\\Post'), (3, 500, 'App\\Post'), (0, 1, 'App\\User'), (1, 2, 'App\\User'), (2, 2, 'App\\User'), (3, 2, 'App\\User'), (4, 2, 'App\\User'), (3, 3, 'App\\User'), (4, 3, 'App\\User'), (1, 4, 'App\\User'), (2, 4, 'App\\User'), (4, 4, 'App\\User'), (1, 5, 'App\\User'), (2, 5, 'App\\User'), (4, 5, 'App\\User'), (0, 6, 'App\\User'), (0, 7, 'App\\User'), (1, 8, 'App\\User'), (2, 8, 'App\\User'), (3, 8, 'App\\User'), (4, 8, 'App\\User'), (1, 9, 'App\\User'), (2, 9, 'App\\User'), (3, 9, 'App\\User'), (4, 9, 'App\\User'), (3, 10, 'App\\User'), (4, 10, 'App\\User'), (1, 11, 'App\\User'), (2, 11, 'App\\User'), (3, 11, 'App\\User'), (4, 11, 'App\\User'), (1, 12, 'App\\User'), (2, 12, 'App\\User'), (2, 13, 'App\\User'), (3, 13, 'App\\User'), (1, 14, 'App\\User'), (2, 14, 'App\\User'), (3, 14, 'App\\User'), (4, 14, 'App\\User'), (1, 15, 'App\\User'), (2, 15, 'App\\User'), (3, 15, 'App\\User'), (2, 16, 'App\\User'), (4, 16, 'App\\User'), (2, 17, 'App\\User'), (3, 17, 'App\\User'), (1, 18, 'App\\User'), (2, 18, 'App\\User'), (3, 18, 'App\\User'), (4, 18, 'App\\User'), (1, 19, 'App\\User'), (2, 19, 'App\\User'), (4, 19, 'App\\User'), (0, 20, 'App\\User'), (2, 21, 'App\\User'), (3, 21, 'App\\User'), (4, 21, 'App\\User'), (1, 22, 'App\\User'), (3, 22, 'App\\User'), (1, 23, 'App\\User'), (2, 23, 'App\\User'), (3, 23, 'App\\User'), (4, 23, 'App\\User'), (1, 24, 'App\\User'), (2, 24, 'App\\User'), (3, 24, 'App\\User'), (4, 24, 'App\\User'), (1, 25, 'App\\User'), (2, 25, 'App\\User'), (3, 25, 'App\\User'), (4, 25, 'App\\User'), (1, 26, 'App\\User'), (2, 26, 'App\\User'), (3, 26, 'App\\User'), (4, 26, 'App\\User'), (0, 27, 'App\\User'), (1, 28, 'App\\User'), (3, 28, 'App\\User'), (4, 28, 'App\\User'), (0, 29, 'App\\User'), (1, 30, 'App\\User'), (2, 30, 'App\\User'), (3, 30, 'App\\User'), (1, 31, 'App\\User'), (2, 31, 'App\\User'), (3, 31, 'App\\User'), (4, 31, 'App\\User'), (0, 32, 'App\\User'), (1, 33, 'App\\User'), (2, 33, 'App\\User'), (3, 33, 'App\\User'), (4, 33, 'App\\User'), (1, 34, 'App\\User'), (2, 34, 'App\\User'), (1, 35, 'App\\User'), (2, 35, 'App\\User'), (3, 35, 'App\\User'), (4, 35, 'App\\User'), (1, 36, 'App\\User'), (3, 36, 'App\\User'), (4, 36, 'App\\User'), (1, 37, 'App\\User'), (4, 37, 'App\\User'), (2, 38, 'App\\User'), (3, 38, 'App\\User'), (4, 38, 'App\\User'), (0, 39, 'App\\User'), (1, 40, 'App\\User'), (2, 40, 'App\\User'), (3, 40, 'App\\User'), (4, 40, 'App\\User'), (2, 41, 'App\\User'), (3, 41, 'App\\User'), (4, 41, 'App\\User'), (1, 42, 'App\\User'), (2, 42, 'App\\User'), (0, 43, 'App\\User'), (0, 44, 'App\\User'), (0, 45, 'App\\User'), (0, 46, 'App\\User'), (1, 47, 'App\\User'), (2, 47, 'App\\User'), (3, 47, 'App\\User'), (4, 47, 'App\\User'), (1, 48, 'App\\User'), (2, 48, 'App\\User'), (3, 48, 'App\\User'), (4, 48, 'App\\User'), (0, 49, 'App\\User'), (2, 50, 'App\\User'), (3, 50, 'App\\User'), (4, 50, 'App\\User'), (1, 51, 'App\\User'), (2, 51, 'App\\User'), (3, 51, 'App\\User'), (0, 52, 'App\\User'), (0, 53, 'App\\User'), (1, 54, 'App\\User'), (2, 54, 'App\\User'), (4, 54, 'App\\User'), (1, 55, 'App\\User'), (2, 55, 'App\\User'), (3, 55, 'App\\User'), (1, 56, 'App\\User'), (2, 56, 'App\\User'), (3, 56, 'App\\User'), (4, 56, 'App\\User'), (2, 57, 'App\\User'), (3, 57, 'App\\User'), (4, 57, 'App\\User'), (3, 58, 'App\\User'), (4, 58, 'App\\User'), (1, 59, 'App\\User'), (2, 59, 'App\\User'), (4, 59, 'App\\User'), (1, 60, 'App\\User'), (2, 60, 'App\\User'), (4, 60, 'App\\User'), (2, 61, 'App\\User'), (4, 61, 'App\\User'), (1, 62, 'App\\User'), (2, 62, 'App\\User'), (2, 63, 'App\\User'), (3, 63, 'App\\User'), (1, 64, 'App\\User'), (3, 64, 'App\\User'), (4, 64, 'App\\User'), (2, 65, 'App\\User'), (3, 65, 'App\\User'), (4, 65, 'App\\User'), (1, 66, 'App\\User'), (2, 66, 'App\\User'), (3, 66, 'App\\User'), (4, 66, 'App\\User'), (1, 67, 'App\\User'), (2, 67, 'App\\User'), (4, 67, 'App\\User'), (1, 68, 'App\\User'), (3, 68, 'App\\User'), (4, 68, 'App\\User'), (1, 69, 'App\\User'), (3, 69, 'App\\User'), (1, 70, 'App\\User'), (2, 70, 'App\\User'), (3, 70, 'App\\User'), (4, 70, 'App\\User'), (0, 71, 'App\\User'), (1, 72, 'App\\User'), (2, 72, 'App\\User'), (3, 72, 'App\\User'), (4, 72, 'App\\User'), (1, 73, 'App\\User'), (2, 73, 'App\\User'), (4, 73, 'App\\User'), (0, 74, 'App\\User'), (1, 75, 'App\\User'), (3, 75, 'App\\User'), (4, 75, 'App\\User'), (1, 76, 'App\\User'), (2, 76, 'App\\User'), (4, 76, 'App\\User'), (1, 77, 'App\\User'), (3, 77, 'App\\User'), (1, 78, 'App\\User'), (2, 78, 'App\\User'), (3, 78, 'App\\User'), (4, 78, 'App\\User'), (0, 79, 'App\\User'), (1, 80, 'App\\User'), (3, 80, 'App\\User'), (1, 81, 'App\\User'), (2, 81, 'App\\User'), (3, 81, 'App\\User'), (4, 81, 'App\\User'), (1, 82, 'App\\User'), (4, 82, 'App\\User'), (1, 83, 'App\\User'), (2, 83, 'App\\User'), (3, 83, 'App\\User'), (4, 83, 'App\\User'), (2, 84, 'App\\User'), (3, 84, 'App\\User'), (1, 85, 'App\\User'), (2, 85, 'App\\User'), (3, 85, 'App\\User'), (4, 85, 'App\\User'), (2, 86, 'App\\User'), (4, 86, 'App\\User'), (1, 87, 'App\\User'), (4, 87, 'App\\User'), (1, 88, 'App\\User'), (3, 88, 'App\\User'), (4, 88, 'App\\User'), (1, 89, 'App\\User'), (2, 89, 'App\\User'), (1, 90, 'App\\User'), (2, 90, 'App\\User'), (3, 90, 'App\\User'), (1, 91, 'App\\User'), (4, 91, 'App\\User'), (0, 92, 'App\\User'), (3, 93, 'App\\User'), (4, 93, 'App\\User'), (1, 94, 'App\\User'), (2, 94, 'App\\User'), (3, 94, 'App\\User'), (4, 94, 'App\\User'), (1, 95, 'App\\User'), (2, 95, 'App\\User'), (3, 95, 'App\\User'), (4, 95, 'App\\User'), (2, 96, 'App\\User'), (3, 96, 'App\\User'), (0, 97, 'App\\User'), (1, 98, 'App\\User'), (2, 98, 'App\\User'), (1, 99, 'App\\User'), (3, 99, 'App\\User'), (0, 100, 'App\\User'), (1, 101, 'App\\User'), (3, 101, 'App\\User'), (4, 101, 'App\\User'), (1, 102, 'App\\User'), (2, 102, 'App\\User'), (4, 102, 'App\\User'), (1, 103, 'App\\User'), (2, 103, 'App\\User'), (3, 103, 'App\\User'), (4, 103, 'App\\User'), (1, 104, 'App\\User'), (2, 104, 'App\\User'), (1, 105, 'App\\User'), (2, 105, 'App\\User'), (3, 105, 'App\\User'), (4, 105, 'App\\User'), (0, 106, 'App\\User'), (2, 107, 'App\\User'), (4, 107, 'App\\User'), (2, 108, 'App\\User'), (4, 108, 'App\\User'), (0, 109, 'App\\User'), (1, 110, 'App\\User'), (2, 110, 'App\\User'), (4, 110, 'App\\User'), (1, 111, 'App\\User'), (2, 111, 'App\\User'), (3, 111, 'App\\User'), (4, 111, 'App\\User'), (2, 112, 'App\\User'), (3, 112, 'App\\User'), (1, 113, 'App\\User'), (3, 113, 'App\\User'), (1, 114, 'App\\User'), (2, 114, 'App\\User'), (3, 114, 'App\\User'), (4, 114, 'App\\User'), (1, 115, 'App\\User'), (2, 115, 'App\\User'), (3, 115, 'App\\User'), (1, 116, 'App\\User'), (3, 116, 'App\\User'), (4, 116, 'App\\User'), (1, 117, 'App\\User'), (3, 117, 'App\\User'), (1, 118, 'App\\User'), (2, 118, 'App\\User'), (3, 118, 'App\\User'), (1, 119, 'App\\User'), (2, 119, 'App\\User'), (3, 119, 'App\\User'), (4, 119, 'App\\User'), (1, 120, 'App\\User'), (3, 120, 'App\\User'), (4, 120, 'App\\User'), (0, 121, 'App\\User'), (3, 122, 'App\\User'), (4, 122, 'App\\User'), (1, 123, 'App\\User'), (2, 123, 'App\\User'), (3, 123, 'App\\User'), (4, 123, 'App\\User'), (0, 124, 'App\\User'), (0, 125, 'App\\User'), (1, 126, 'App\\User'), (2, 126, 'App\\User'), (1, 127, 'App\\User'), (2, 127, 'App\\User'), (3, 127, 'App\\User'), (4, 127, 'App\\User'), (1, 128, 'App\\User'), (2, 128, 'App\\User'), (3, 128, 'App\\User'), (4, 128, 'App\\User'), (1, 129, 'App\\User'), (2, 129, 'App\\User'), (4, 129, 'App\\User'), (2, 130, 'App\\User'), (3, 130, 'App\\User'), (4, 130, 'App\\User'), (0, 131, 'App\\User'), (1, 132, 'App\\User'), (2, 132, 'App\\User'), (3, 132, 'App\\User'), (4, 132, 'App\\User'), (1, 133, 'App\\User'), (2, 133, 'App\\User'), (3, 133, 'App\\User'), (4, 133, 'App\\User'), (1, 134, 'App\\User'), (2, 134, 'App\\User'), (3, 134, 'App\\User'), (4, 134, 'App\\User'), (1, 135, 'App\\User'), (2, 135, 'App\\User'), (3, 135, 'App\\User'), (4, 135, 'App\\User'), (2, 136, 'App\\User'), (3, 136, 'App\\User'), (4, 136, 'App\\User'), (1, 137, 'App\\User'), (2, 137, 'App\\User'), (3, 137, 'App\\User'), (0, 138, 'App\\User'), (1, 139, 'App\\User'), (3, 139, 'App\\User'), (4, 139, 'App\\User'), (1, 140, 'App\\User'), (2, 140, 'App\\User'), (3, 140, 'App\\User'), (4, 140, 'App\\User'), (2, 141, 'App\\User'), (3, 141, 'App\\User'), (1, 142, 'App\\User'), (2, 142, 'App\\User'), (4, 142, 'App\\User'), (1, 143, 'App\\User'), (3, 143, 'App\\User'), (1, 144, 'App\\User'), (2, 144, 'App\\User'), (3, 145, 'App\\User'), (4, 145, 'App\\User'), (1, 146, 'App\\User'), (2, 146, 'App\\User'), (4, 146, 'App\\User'), (2, 147, 'App\\User'), (3, 147, 'App\\User'), (4, 147, 'App\\User'), (0, 148, 'App\\User'), (0, 149, 'App\\User'), (1, 150, 'App\\User'), (2, 150, 'App\\User'), (3, 150, 'App\\User'), (4, 150, 'App\\User'), (0, 151, 'App\\User'), (1, 152, 'App\\User'), (3, 152, 'App\\User'), (4, 152, 'App\\User'), (0, 153, 'App\\User'), (1, 154, 'App\\User'), (3, 154, 'App\\User'), (4, 154, 'App\\User'), (0, 155, 'App\\User'), (1, 156, 'App\\User'), (2, 156, 'App\\User'), (4, 156, 'App\\User'), (1, 157, 'App\\User'), (2, 157, 'App\\User'), (3, 157, 'App\\User'), (4, 157, 'App\\User'), (0, 158, 'App\\User'), (1, 159, 'App\\User'), (3, 159, 'App\\User'), (4, 159, 'App\\User'), (1, 160, 'App\\User'), (3, 160, 'App\\User'), (1, 161, 'App\\User'), (2, 161, 'App\\User'), (3, 161, 'App\\User'), (3, 162, 'App\\User'), (4, 162, 'App\\User'), (0, 163, 'App\\User'), (1, 164, 'App\\User'), (3, 164, 'App\\User'), (1, 165, 'App\\User'), (2, 165, 'App\\User'), (3, 165, 'App\\User'), (4, 165, 'App\\User'), (1, 166, 'App\\User'), (2, 166, 'App\\User'), (3, 166, 'App\\User'), (1, 167, 'App\\User'), (2, 167, 'App\\User'), (3, 167, 'App\\User'), (4, 167, 'App\\User'), (1, 168, 'App\\User'), (2, 168, 'App\\User'), (3, 168, 'App\\User'), (4, 168, 'App\\User'), (0, 169, 'App\\User'), (1, 170, 'App\\User'), (2, 170, 'App\\User'), (3, 170, 'App\\User'), (4, 170, 'App\\User'), (0, 171, 'App\\User'), (1, 172, 'App\\User'), (3, 172, 'App\\User'), (4, 172, 'App\\User'), (0, 173, 'App\\User'), (2, 174, 'App\\User'), (4, 174, 'App\\User'), (1, 175, 'App\\User'), (2, 175, 'App\\User'), (3, 175, 'App\\User'), (4, 175, 'App\\User'), (1, 176, 'App\\User'), (2, 176, 'App\\User'), (3, 176, 'App\\User'), (4, 176, 'App\\User'), (0, 177, 'App\\User'), (1, 178, 'App\\User'), (2, 178, 'App\\User'), (3, 178, 'App\\User'), (4, 178, 'App\\User'), (1, 179, 'App\\User'), (2, 179, 'App\\User'), (3, 179, 'App\\User'), (4, 179, 'App\\User'), (0, 180, 'App\\User'), (0, 181, 'App\\User'), (0, 182, 'App\\User'), (1, 183, 'App\\User'), (2, 183, 'App\\User'), (0, 184, 'App\\User'), (1, 185, 'App\\User'), (3, 185, 'App\\User'), (4, 185, 'App\\User'), (1, 186, 'App\\User'), (3, 186, 'App\\User'), (4, 186, 'App\\User'), (1, 187, 'App\\User'), (2, 187, 'App\\User'), (3, 187, 'App\\User'), (4, 187, 'App\\User'), (1, 188, 'App\\User'), (2, 188, 'App\\User'), (3, 188, 'App\\User'), (4, 188, 'App\\User'), (2, 189, 'App\\User'), (3, 189, 'App\\User'), (1, 190, 'App\\User'), (2, 190, 'App\\User'), (3, 190, 'App\\User'), (4, 190, 'App\\User'), (2, 191, 'App\\User'), (4, 191, 'App\\User'), (0, 192, 'App\\User'), (1, 193, 'App\\User'), (2, 193, 'App\\User'), (3, 193, 'App\\User'), (2, 194, 'App\\User'), (3, 194, 'App\\User'), (4, 194, 'App\\User'), (1, 195, 'App\\User'), (2, 195, 'App\\User'), (3, 195, 'App\\User'), (1, 196, 'App\\User'), (2, 196, 'App\\User'), (3, 196, 'App\\User'), (0, 197, 'App\\User'), (1, 198, 'App\\User'), (3, 198, 'App\\User'), (0, 199, 'App\\User'), (1, 200, 'App\\User'), (2, 200, 'App\\User'), (3, 200, 'App\\User'), (0, 201, 'App\\User'), (2, 202, 'App\\User'), (4, 202, 'App\\User'), (2, 203, 'App\\User'), (3, 203, 'App\\User'), (4, 203, 'App\\User'), (1, 204, 'App\\User'), (2, 204, 'App\\User'), (3, 204, 'App\\User'), (4, 204, 'App\\User'), (0, 205, 'App\\User'), (0, 206, 'App\\User'), (0, 207, 'App\\User'), (0, 208, 'App\\User'), (0, 209, 'App\\User'), (1, 210, 'App\\User'), (2, 210, 'App\\User'), (3, 210, 'App\\User'), (4, 210, 'App\\User'), (1, 211, 'App\\User'), (2, 211, 'App\\User'), (3, 211, 'App\\User'), (4, 211, 'App\\User'), (1, 212, 'App\\User'), (2, 212, 'App\\User'), (4, 212, 'App\\User'), (2, 213, 'App\\User'), (4, 213, 'App\\User'), (1, 214, 'App\\User'), (3, 214, 'App\\User'), (4, 214, 'App\\User'), (0, 215, 'App\\User'), (2, 216, 'App\\User'), (3, 216, 'App\\User'), (4, 216, 'App\\User'), (0, 217, 'App\\User'), (0, 218, 'App\\User'), (1, 219, 'App\\User'), (2, 219, 'App\\User'), (1, 220, 'App\\User'), (2, 220, 'App\\User'), (3, 220, 'App\\User'), (2, 221, 'App\\User'), (3, 221, 'App\\User'), (4, 221, 'App\\User'), (1, 222, 'App\\User'), (2, 222, 'App\\User'), (3, 222, 'App\\User'), (4, 222, 'App\\User'), (1, 223, 'App\\User'), (2, 223, 'App\\User'), (3, 223, 'App\\User'), (4, 223, 'App\\User'), (1, 224, 'App\\User'), (2, 224, 'App\\User'), (3, 224, 'App\\User'), (4, 224, 'App\\User'), (2, 225, 'App\\User'), (3, 225, 'App\\User'), (1, 226, 'App\\User'), (2, 226, 'App\\User'), (1, 227, 'App\\User'), (3, 227, 'App\\User'), (4, 227, 'App\\User'), (0, 228, 'App\\User'), (0, 229, 'App\\User'), (0, 230, 'App\\User'), (1, 231, 'App\\User'), (3, 231, 'App\\User'), (3, 232, 'App\\User'), (4, 232, 'App\\User'), (1, 233, 'App\\User'), (2, 233, 'App\\User'), (3, 233, 'App\\User'), (4, 233, 'App\\User'), (0, 234, 'App\\User'), (1, 235, 'App\\User'), (4, 235, 'App\\User'), (0, 236, 'App\\User'), (0, 237, 'App\\User'), (1, 238, 'App\\User'), (2, 238, 'App\\User'), (3, 238, 'App\\User'), (4, 238, 'App\\User'), (0, 239, 'App\\User'), (0, 240, 'App\\User'), (1, 241, 'App\\User'), (2, 241, 'App\\User'), (3, 241, 'App\\User'), (4, 241, 'App\\User'), (2, 242, 'App\\User'), (4, 242, 'App\\User'), (1, 243, 'App\\User'), (3, 243, 'App\\User'), (4, 243, 'App\\User'), (2, 244, 'App\\User'), (3, 244, 'App\\User'), (1, 245, 'App\\User'), (2, 245, 'App\\User'), (3, 245, 'App\\User'), (1, 246, 'App\\User'), (2, 246, 'App\\User'), (3, 246, 'App\\User'), (1, 247, 'App\\User'), (3, 247, 'App\\User'), (4, 247, 'App\\User'), (2, 248, 'App\\User'), (3, 248, 'App\\User'), (4, 248, 'App\\User'), (1, 249, 'App\\User'), (2, 249, 'App\\User'), (3, 249, 'App\\User'), (4, 249, 'App\\User'), (0, 250, 'App\\User'), (2, 251, 'App\\User'), (3, 251, 'App\\User'), (4, 251, 'App\\User'), (1, 252, 'App\\User'), (2, 252, 'App\\User'), (3, 252, 'App\\User'), (4, 252, 'App\\User'), (2, 253, 'App\\User'), (4, 253, 'App\\User'), (1, 254, 'App\\User'), (2, 254, 'App\\User'), (4, 254, 'App\\User'), (1, 255, 'App\\User'), (2, 255, 'App\\User'), (3, 255, 'App\\User'), (4, 255, 'App\\User'), (1, 256, 'App\\User'), (3, 256, 'App\\User'), (0, 257, 'App\\User'), (0, 258, 'App\\User'), (1, 259, 'App\\User'), (2, 259, 'App\\User'), (3, 259, 'App\\User'), (4, 259, 'App\\User'), (1, 260, 'App\\User'), (2, 260, 'App\\User'), (3, 260, 'App\\User'), (0, 261, 'App\\User'), (1, 262, 'App\\User'), (2, 262, 'App\\User'), (0, 263, 'App\\User'), (0, 264, 'App\\User'), (1, 265, 'App\\User'), (4, 265, 'App\\User'), (1, 266, 'App\\User'), (2, 266, 'App\\User'), (1, 267, 'App\\User'), (4, 267, 'App\\User'), (1, 268, 'App\\User'), (2, 268, 'App\\User'), (3, 268, 'App\\User'), (4, 268, 'App\\User'), (0, 269, 'App\\User'), (3, 270, 'App\\User'), (4, 270, 'App\\User'), (0, 271, 'App\\User'), (1, 272, 'App\\User'), (3, 272, 'App\\User'), (1, 273, 'App\\User'), (2, 273, 'App\\User'), (4, 273, 'App\\User'), (2, 274, 'App\\User'), (3, 274, 'App\\User'), (4, 274, 'App\\User'), (1, 275, 'App\\User'), (3, 275, 'App\\User'), (1, 276, 'App\\User'), (2, 276, 'App\\User'), (3, 276, 'App\\User'), (4, 276, 'App\\User'), (1, 277, 'App\\User'), (2, 277, 'App\\User'), (1, 278, 'App\\User'), (2, 278, 'App\\User'), (3, 278, 'App\\User'), (4, 278, 'App\\User'), (2, 279, 'App\\User'), (3, 279, 'App\\User'), (4, 279, 'App\\User'), (3, 280, 'App\\User'), (4, 280, 'App\\User'), (1, 281, 'App\\User'), (2, 281, 'App\\User'), (3, 281, 'App\\User'), (4, 281, 'App\\User'), (1, 282, 'App\\User'), (2, 282, 'App\\User'), (3, 282, 'App\\User'), (4, 282, 'App\\User'), (1, 283, 'App\\User'), (2, 283, 'App\\User'), (4, 283, 'App\\User'), (0, 284, 'App\\User'), (1, 285, 'App\\User'), (2, 285, 'App\\User'), (3, 285, 'App\\User'), (4, 285, 'App\\User'), (2, 286, 'App\\User'), (3, 286, 'App\\User'), (4, 286, 'App\\User'), (0, 287, 'App\\User'), (1, 288, 'App\\User'), (2, 288, 'App\\User'), (3, 288, 'App\\User'), (4, 288, 'App\\User'), (2, 289, 'App\\User'), (4, 289, 'App\\User'), (1, 290, 'App\\User'), (2, 290, 'App\\User'), (3, 290, 'App\\User'), (4, 290, 'App\\User'), (0, 291, 'App\\User'), (1, 292, 'App\\User'), (2, 292, 'App\\User'), (4, 292, 'App\\User'), (2, 293, 'App\\User'), (3, 293, 'App\\User'), (4, 293, 'App\\User'), (2, 294, 'App\\User'), (3, 294, 'App\\User'), (4, 294, 'App\\User'), (1, 295, 'App\\User'), (2, 295, 'App\\User'), (4, 295, 'App\\User'), (0, 296, 'App\\User'), (1, 297, 'App\\User'), (3, 297, 'App\\User'), (4, 297, 'App\\User'), (2, 298, 'App\\User'), (4, 298, 'App\\User'), (1, 299, 'App\\User'), (3, 299, 'App\\User'), (1, 300, 'App\\User'), (3, 300, 'App\\User'), (1, 301, 'App\\User'), (2, 301, 'App\\User'), (3, 301, 'App\\User'), (1, 302, 'App\\User'), (2, 302, 'App\\User'), (3, 302, 'App\\User'), (4, 302, 'App\\User'), (1, 303, 'App\\User'), (2, 303, 'App\\User'), (4, 303, 'App\\User'), (0, 304, 'App\\User'), (1, 305, 'App\\User'), (3, 305, 'App\\User'), (4, 305, 'App\\User'), (1, 306, 'App\\User'), (2, 306, 'App\\User'), (0, 307, 'App\\User'), (0, 308, 'App\\User'), (1, 309, 'App\\User'), (2, 309, 'App\\User'), (3, 309, 'App\\User'), (4, 309, 'App\\User'), (0, 310, 'App\\User'), (0, 311, 'App\\User'), (0, 312, 'App\\User'), (1, 313, 'App\\User'), (2, 313, 'App\\User'), (3, 313, 'App\\User'), (4, 313, 'App\\User'), (0, 314, 'App\\User'), (0, 315, 'App\\User'), (1, 316, 'App\\User'), (2, 316, 'App\\User'), (3, 316, 'App\\User'), (4, 316, 'App\\User'), (1, 317, 'App\\User'), (2, 317, 'App\\User'), (3, 317, 'App\\User'), (0, 318, 'App\\User'), (1, 319, 'App\\User'), (2, 319, 'App\\User'), (3, 319, 'App\\User'), (4, 319, 'App\\User'), (1, 320, 'App\\User'), (2, 320, 'App\\User'), (4, 320, 'App\\User'), (1, 321, 'App\\User'), (2, 321, 'App\\User'), (3, 321, 'App\\User'), (0, 322, 'App\\User'), (0, 323, 'App\\User'), (1, 324, 'App\\User'), (2, 324, 'App\\User'), (3, 324, 'App\\User'), (4, 324, 'App\\User'), (1, 325, 'App\\User'), (2, 325, 'App\\User'), (3, 325, 'App\\User'), (4, 325, 'App\\User'), (2, 326, 'App\\User'), (3, 326, 'App\\User'), (1, 327, 'App\\User'), (2, 327, 'App\\User'), (4, 327, 'App\\User'), (1, 328, 'App\\User'), (2, 328, 'App\\User'), (3, 328, 'App\\User'), (4, 328, 'App\\User'), (1, 329, 'App\\User'), (2, 329, 'App\\User'), (3, 329, 'App\\User'), (4, 329, 'App\\User'), (2, 330, 'App\\User'), (4, 330, 'App\\User'), (1, 331, 'App\\User'), (2, 331, 'App\\User'), (3, 331, 'App\\User'), (4, 331, 'App\\User'), (0, 332, 'App\\User'), (1, 333, 'App\\User'), (2, 333, 'App\\User'), (3, 333, 'App\\User'), (4, 333, 'App\\User'), (1, 334, 'App\\User'), (2, 334, 'App\\User'), (3, 334, 'App\\User'), (4, 334, 'App\\User'), (1, 335, 'App\\User'), (2, 335, 'App\\User'), (3, 335, 'App\\User'), (4, 335, 'App\\User'), (3, 336, 'App\\User'), (4, 336, 'App\\User'), (1, 337, 'App\\User'), (2, 337, 'App\\User'), (3, 337, 'App\\User'), (4, 337, 'App\\User'), (2, 338, 'App\\User'), (4, 338, 'App\\User'), (0, 339, 'App\\User'), (1, 340, 'App\\User'), (2, 340, 'App\\User'), (3, 340, 'App\\User'), (4, 340, 'App\\User'), (1, 341, 'App\\User'), (2, 341, 'App\\User'), (4, 341, 'App\\User'), (0, 342, 'App\\User'), (2, 343, 'App\\User'), (3, 343, 'App\\User'), (4, 343, 'App\\User'), (1, 344, 'App\\User'), (2, 344, 'App\\User'), (1, 345, 'App\\User'), (2, 345, 'App\\User'), (3, 345, 'App\\User'), (0, 346, 'App\\User'), (1, 347, 'App\\User'), (2, 347, 'App\\User'), (3, 347, 'App\\User'), (1, 348, 'App\\User'), (3, 348, 'App\\User'), (3, 349, 'App\\User'), (4, 349, 'App\\User'), (1, 350, 'App\\User'), (2, 350, 'App\\User'), (3, 350, 'App\\User'), (4, 350, 'App\\User'), (1, 351, 'App\\User'), (2, 351, 'App\\User'), (3, 351, 'App\\User'), (4, 351, 'App\\User'), (2, 352, 'App\\User'), (3, 352, 'App\\User'), (1, 353, 'App\\User'), (3, 353, 'App\\User'), (4, 353, 'App\\User'), (0, 354, 'App\\User'), (1, 355, 'App\\User'), (3, 355, 'App\\User'), (1, 356, 'App\\User'), (3, 356, 'App\\User'), (4, 356, 'App\\User'), (0, 357, 'App\\User'), (2, 358, 'App\\User'), (3, 358, 'App\\User'), (4, 358, 'App\\User'), (1, 359, 'App\\User'), (2, 359, 'App\\User'), (3, 359, 'App\\User'), (4, 359, 'App\\User'), (1, 360, 'App\\User'), (2, 360, 'App\\User'), (3, 360, 'App\\User'), (4, 360, 'App\\User'), (0, 361, 'App\\User'), (0, 362, 'App\\User'), (1, 363, 'App\\User'), (2, 363, 'App\\User'), (3, 363, 'App\\User'), (4, 363, 'App\\User'), (1, 364, 'App\\User'), (3, 364, 'App\\User'), (4, 364, 'App\\User'), (1, 365, 'App\\User'), (2, 365, 'App\\User'), (3, 365, 'App\\User'), (4, 365, 'App\\User'), (0, 366, 'App\\User'), (3, 367, 'App\\User'), (4, 367, 'App\\User'), (0, 368, 'App\\User'), (1, 369, 'App\\User'), (3, 369, 'App\\User'), (1, 370, 'App\\User'), (2, 370, 'App\\User'), (3, 370, 'App\\User'), (4, 370, 'App\\User'), (0, 371, 'App\\User'), (1, 372, 'App\\User'), (3, 372, 'App\\User'), (4, 372, 'App\\User'), (1, 373, 'App\\User'), (2, 373, 'App\\User'), (3, 373, 'App\\User'), (4, 373, 'App\\User'), (0, 374, 'App\\User'), (0, 375, 'App\\User'), (1, 376, 'App\\User'), (2, 376, 'App\\User'), (3, 376, 'App\\User'), (4, 376, 'App\\User'), (1, 377, 'App\\User'), (2, 377, 'App\\User'), (3, 377, 'App\\User'), (4, 377, 'App\\User'), (2, 378, 'App\\User'), (3, 378, 'App\\User'), (1, 379, 'App\\User'), (2, 379, 'App\\User'), (1, 380, 'App\\User'), (2, 380, 'App\\User'), (3, 380, 'App\\User'), (4, 380, 'App\\User'), (0, 381, 'App\\User'), (2, 382, 'App\\User'), (3, 382, 'App\\User'), (4, 382, 'App\\User'), (1, 383, 'App\\User'), (3, 383, 'App\\User'), (4, 383, 'App\\User'), (1, 384, 'App\\User'), (2, 384, 'App\\User'), (3, 384, 'App\\User'), (1, 385, 'App\\User'), (3, 385, 'App\\User'), (2, 386, 'App\\User'), (3, 386, 'App\\User'), (1, 387, 'App\\User'), (2, 387, 'App\\User'), (3, 387, 'App\\User'), (1, 388, 'App\\User'), (2, 388, 'App\\User'), (3, 388, 'App\\User'), (4, 388, 'App\\User'), (1, 389, 'App\\User'), (2, 389, 'App\\User'), (3, 389, 'App\\User'), (1, 390, 'App\\User'), (2, 390, 'App\\User'), (1, 391, 'App\\User'), (2, 391, 'App\\User'), (3, 391, 'App\\User'), (4, 391, 'App\\User'), (1, 392, 'App\\User'), (3, 392, 'App\\User'), (4, 392, 'App\\User'), (1, 393, 'App\\User'), (2, 393, 'App\\User'), (3, 393, 'App\\User'), (4, 393, 'App\\User'), (1, 394, 'App\\User'), (2, 394, 'App\\User'), (4, 394, 'App\\User'), (0, 395, 'App\\User'), (2, 396, 'App\\User'), (4, 396, 'App\\User'), (3, 397, 'App\\User'), (4, 397, 'App\\User'), (2, 398, 'App\\User'), (4, 398, 'App\\User'), (0, 399, 'App\\User'), (1, 400, 'App\\User'), (3, 400, 'App\\User'), (4, 400, 'App\\User'), (1, 401, 'App\\User'), (2, 401, 'App\\User'), (1, 402, 'App\\User'), (2, 402, 'App\\User'), (3, 402, 'App\\User'), (4, 402, 'App\\User'), (1, 403, 'App\\User'), (2, 403, 'App\\User'), (4, 403, 'App\\User'), (1, 404, 'App\\User'), (2, 404, 'App\\User'), (2, 405, 'App\\User'), (4, 405, 'App\\User'), (3, 406, 'App\\User'), (4, 406, 'App\\User'), (0, 407, 'App\\User'), (1, 408, 'App\\User'), (2, 408, 'App\\User'), (3, 408, 'App\\User'), (2, 409, 'App\\User'), (4, 409, 'App\\User'), (1, 410, 'App\\User'), (4, 410, 'App\\User'), (1, 411, 'App\\User'), (2, 411, 'App\\User'), (3, 411, 'App\\User'), (4, 411, 'App\\User'), (0, 412, 'App\\User'), (1, 413, 'App\\User'), (3, 413, 'App\\User'), (4, 413, 'App\\User'), (1, 414, 'App\\User'), (4, 414, 'App\\User'), (0, 415, 'App\\User'), (1, 416, 'App\\User'), (2, 416, 'App\\User'), (3, 416, 'App\\User'), (4, 416, 'App\\User'), (2, 417, 'App\\User'), (4, 417, 'App\\User'), (1, 418, 'App\\User'), (2, 418, 'App\\User'), (3, 418, 'App\\User'), (4, 418, 'App\\User'), (1, 419, 'App\\User'), (2, 419, 'App\\User'), (3, 419, 'App\\User'), (4, 419, 'App\\User'), (1, 420, 'App\\User'), (2, 420, 'App\\User'), (3, 420, 'App\\User'), (4, 420, 'App\\User'), (1, 421, 'App\\User'), (2, 421, 'App\\User'), (3, 421, 'App\\User'), (4, 421, 'App\\User'), (0, 422, 'App\\User'), (0, 423, 'App\\User'), (1, 424, 'App\\User'), (2, 424, 'App\\User'), (3, 424, 'App\\User'), (0, 425, 'App\\User'), (1, 426, 'App\\User'), (2, 426, 'App\\User'), (3, 426, 'App\\User'), (4, 426, 'App\\User'), (1, 427, 'App\\User'), (2, 427, 'App\\User'), (3, 427, 'App\\User'), (4, 427, 'App\\User'), (2, 428, 'App\\User'), (3, 428, 'App\\User'), (4, 428, 'App\\User'), (2, 429, 'App\\User'), (3, 429, 'App\\User'), (1, 430, 'App\\User'), (2, 430, 'App\\User'), (4, 430, 'App\\User'), (1, 431, 'App\\User'), (2, 431, 'App\\User'), (3, 431, 'App\\User'), (4, 431, 'App\\User'), (2, 432, 'App\\User'), (4, 432, 'App\\User'), (1, 433, 'App\\User'), (2, 433, 'App\\User'), (2, 434, 'App\\User'), (3, 434, 'App\\User'), (4, 434, 'App\\User'), (0, 435, 'App\\User'), (2, 436, 'App\\User'), (3, 436, 'App\\User'), (4, 436, 'App\\User'), (1, 437, 'App\\User'), (2, 437, 'App\\User'), (3, 437, 'App\\User'), (4, 437, 'App\\User'), (1, 438, 'App\\User'), (2, 438, 'App\\User'), (3, 438, 'App\\User'), (4, 438, 'App\\User'), (2, 439, 'App\\User'), (4, 439, 'App\\User'), (0, 440, 'App\\User'), (1, 441, 'App\\User'), (2, 441, 'App\\User'), (3, 441, 'App\\User'), (4, 441, 'App\\User'), (0, 442, 'App\\User'), (1, 443, 'App\\User'), (2, 443, 'App\\User'), (3, 443, 'App\\User'), (4, 443, 'App\\User'), (0, 444, 'App\\User'), (0, 445, 'App\\User'), (2, 446, 'App\\User'), (3, 446, 'App\\User'), (1, 447, 'App\\User'), (2, 447, 'App\\User'), (3, 447, 'App\\User'), (4, 447, 'App\\User'), (1, 448, 'App\\User'), (2, 448, 'App\\User'), (3, 448, 'App\\User'), (4, 448, 'App\\User'), (0, 449, 'App\\User'), (1, 450, 'App\\User'), (4, 450, 'App\\User'), (1, 451, 'App\\User'), (2, 451, 'App\\User'), (3, 451, 'App\\User'), (4, 451, 'App\\User'), (0, 452, 'App\\User'), (2, 453, 'App\\User'), (3, 453, 'App\\User'), (1, 454, 'App\\User'), (4, 454, 'App\\User'), (1, 455, 'App\\User'), (2, 455, 'App\\User'), (1, 456, 'App\\User'), (2, 456, 'App\\User'), (3, 456, 'App\\User'), (4, 456, 'App\\User'), (1, 457, 'App\\User'), (2, 457, 'App\\User'), (3, 457, 'App\\User'), (4, 457, 'App\\User'), (0, 458, 'App\\User'), (1, 459, 'App\\User'), (2, 459, 'App\\User'), (3, 459, 'App\\User'), (4, 459, 'App\\User'), (1, 460, 'App\\User'), (2, 460, 'App\\User'), (1, 461, 'App\\User'), (3, 461, 'App\\User'), (4, 461, 'App\\User'), (2, 462, 'App\\User'), (4, 462, 'App\\User'), (1, 463, 'App\\User'), (2, 463, 'App\\User'), (4, 463, 'App\\User'), (0, 464, 'App\\User'), (1, 465, 'App\\User'), (3, 465, 'App\\User'), (2, 466, 'App\\User'), (4, 466, 'App\\User'), (1, 467, 'App\\User'), (4, 467, 'App\\User'), (1, 468, 'App\\User'), (2, 468, 'App\\User'), (4, 468, 'App\\User'), (0, 469, 'App\\User'), (1, 470, 'App\\User'), (3, 470, 'App\\User'), (4, 470, 'App\\User'), (2, 471, 'App\\User'), (3, 471, 'App\\User'), (1, 472, 'App\\User'), (2, 472, 'App\\User'), (3, 473, 'App\\User'), (4, 473, 'App\\User'), (0, 474, 'App\\User'), (1, 475, 'App\\User'), (2, 475, 'App\\User'), (3, 475, 'App\\User'), (4, 475, 'App\\User'), (0, 476, 'App\\User'), (1, 477, 'App\\User'), (3, 477, 'App\\User'), (0, 478, 'App\\User'), (1, 479, 'App\\User'), (4, 479, 'App\\User'), (2, 480, 'App\\User'), (3, 480, 'App\\User'), (4, 480, 'App\\User'), (1, 481, 'App\\User'), (2, 481, 'App\\User'), (3, 481, 'App\\User'), (4, 481, 'App\\User'), (1, 482, 'App\\User'), (2, 482, 'App\\User'), (3, 482, 'App\\User'), (1, 483, 'App\\User'), (2, 483, 'App\\User'), (4, 483, 'App\\User'), (0, 484, 'App\\User'), (0, 485, 'App\\User'), (1, 486, 'App\\User'), (2, 486, 'App\\User'), (3, 486, 'App\\User'), (4, 486, 'App\\User'), (2, 487, 'App\\User'), (3, 487, 'App\\User'), (4, 487, 'App\\User'), (2, 488, 'App\\User'), (3, 488, 'App\\User'), (0, 489, 'App\\User'), (0, 490, 'App\\User'), (1, 491, 'App\\User'), (2, 491, 'App\\User'), (4, 491, 'App\\User'), (2, 492, 'App\\User'), (3, 492, 'App\\User'), (4, 492, 'App\\User'), (0, 493, 'App\\User'), (1, 494, 'App\\User'), (3, 494, 'App\\User'), (1, 495, 'App\\User'), (2, 495, 'App\\User'), (3, 495, 'App\\User'), (4, 495, 'App\\User'), (2, 496, 'App\\User'), (3, 496, 'App\\User'), (4, 496, 'App\\User'), (0, 497, 'App\\User'), (1, 498, 'App\\User'), (2, 498, 'App\\User'), (3, 498, 'App\\User'), (4, 498, 'App\\User'), (0, 499, 'App\\User'), (1, 500, 'App\\User'), (4, 500, 'App\\User'); /*!40000 ALTER TABLE `taggables` ENABLE KEYS */; -- Export de la structure de la table datatables_demo. tags CREATE TABLE IF NOT EXISTS `tags` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Export de donnรฉes de la table datatables_demo.tags : ~4 rows (environ) DELETE FROM `tags`; /*!40000 ALTER TABLE `tags` DISABLE KEYS */; INSERT INTO `tags` (`id`, `name`) VALUES (1, 'Technology'), (2, 'Politics'), (3, 'Business'), (4, 'Entertainment'); /*!40000 ALTER TABLE `tags` ENABLE KEYS */; -- Export de la structure de la table datatables_demo. users CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `deleted_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=511 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Export de donnรฉes de la table datatables_demo.users : ~505 rows (environ) DELETE FROM `users`; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Mr. Art Heidenreich DVM', 'emerald20@predovic.com', '$2y$10$aBoG4OV1pv4L6xt3yfiE9eGtoqRV9d3Ii0/sVqS5aATHrh7qYY9GS', NULL, '2019-02-25 08:40:46', '2019-02-25 08:40:46', NULL), (2, 'Prof. Ewell Cremin DDS', 'koepp.elise@leannon.com', '$2y$10$WT1n3mKCHyxAYKNx5g40Pe/ulftnjZlU0lK.cECaEaDjWOUjVUGp.', NULL, '2019-02-25 08:40:46', '2019-02-25 08:40:46', NULL), (3, 'Miles Frami III', 'cjohnston@yahoo.com', '$2y$10$koQKKrS9pzNBGRWxJ4ntZuv.gwCcuvKnDczHSW29ypz8L1PbGwY0W', NULL, '2019-02-25 08:40:46', '2019-02-25 08:40:46', NULL), (4, 'Sarai Doyle', 'alexzander.reinger@hotmail.com', '$2y$10$gc/5BVJLU3HXZ8cgxk5HM.UuRt6Mk.Iqwae6DuDLcW.r7EUUaf/Na', NULL, '2019-02-25 08:40:46', '2019-02-25 08:40:46', NULL), (5, 'Breanna Wiza MD', 'nbruen@gmail.com', '$2y$10$7X8FrJxGZc.iDsjIZWaevuwohTIvByLkv9YoEhSDMSeaWVPTX4dea', NULL, '2019-02-25 08:40:46', '2019-02-25 08:40:46', NULL), (491, 'Rhiannon Gleichner', 'frami.susana@kautzer.biz', '$2y$10$6LBkAusPS8D2Q0HzmP11yOXBCIh8rA.JDYL7srJhdyIrK8VkwtNUO', NULL, '2019-02-25 08:41:42', '2019-02-25 08:41:42', NULL), (492, 'Lucie Grady', 'whermiston@maggio.com', '$2y$10$xcUczn47Xrbwc9NoJevrveTQTm21EuuTyRcj2988LVPGjT0Bkd92G', NULL, '2019-02-25 08:41:42', '2019-02-25 08:41:42', NULL), (493, 'Joany Crona I', 'nlynch@gmail.com', '$2y$10$39FXfN8a5y8om.75kRpX/.9Ph31GiSUjEr4fby.BhG8uC.YnKmYwm', NULL, '2019-02-25 08:41:42', '2019-02-25 08:41:42', NULL), (494, 'Christina Hartmann II', 'howell.breanne@purdy.com', '$2y$10$U2qZGIzHhMwvBMwjZBGAuOITs7fQnluivMlLpcSnT378I16TVJr7y', NULL, '2019-02-25 08:41:43', '2019-02-25 08:41:43', NULL), (495, 'Felipe Stokes', 'omer16@turner.net', '$2y$10$KYdnTuaggQNUHIkzYZdOwehSrwbbRwmUA2qCWBtpspmaYPQGDbnsa', NULL, '2019-02-25 08:41:43', '2019-02-25 08:41:43', NULL), (496, 'Prof. Ernesto Frami Jr.', 'chance18@gmail.com', '$2y$10$CjMgl7mqKBuHCaC0a00o.Oe9QXjzeKTHW2..p.vSUYQC4ZX5NzdFa', NULL, '2019-02-25 08:41:43', '2019-02-25 08:41:43', NULL), (497, 'Mr. Terrill Mosciski', 'fstehr@williamson.biz', '$2y$10$K/YB0srqFixJrr8uLEImCOsnbA8MLrWTqkOMBpm.e.0Lle4lJJD3u', NULL, '2019-02-25 08:41:43', '2019-02-25 08:41:43', NULL), (498, 'Addie Cole III', 'johnny.dickens@hotmail.com', '$2y$10$.GT2vBBUSso1y5eKUUUPXOFYdk6K.6NMh5ukDMOLw49WfkXUiVjYW', NULL, '2019-02-25 08:41:43', '2019-02-25 08:41:43', NULL), (499, 'Immanuel Willms Jr.', 'damon.dach@gmail.com', '$2y$10$.c5VzH23FMgpYr5fc5rw5uKuhTRQQ1U29Z.K5iU9D6mzcj1x2qv4S', NULL, '2019-02-25 08:41:43', '2019-02-25 08:41:43', NULL), (500, 'Jessika Dooley MD', 'ulabadie@hotmail.com', '$2y$10$.h9IBDo8j9GAeG1ffzsIruHmCO4YdwLbk27Ca0EegrhS8w0HjIh/i', NULL, '2019-02-25 08:41:43', '2019-02-25 08:41:43', NULL), (507, 'Agnes DuBuque', 'magdalena1.littel@yahoo.com', '$2y$10$/oe8DhBdCAWzHGKYrJoGvu2794D8KL1NHaXkolkqZvh7lAxpLt0se', NULL, '2019-04-07 08:54:32', '2019-04-07 08:54:32', NULL), (508, 'Addie Cole III', 'johnny.dickens1@hotmail.com', '$2y$10$SRa9WN82PWPmrtmIpQyZBuB33AQOB6rXNlRNX133lqTKfG8O3jFj.', NULL, '2019-04-07 09:22:44', '2019-04-07 09:22:44', NULL), (510, 'nkodo mbe jean yves', 'nkodomjy@gmail.com', '$2y$10$YvfKqwWdM6fYTj.8VVkao.2fEbs.brjH52je9s8bYmm9HLxny99AO', NULL, '2019-04-07 09:33:41', '2019-04-07 09:33:41', NULL); /*!40000 ALTER TABLE `users` ENABLE KEYS */; -- Export de la structure de la table datatables_demo. user_post CREATE TABLE IF NOT EXISTS `user_post` ( `user_id` int(10) unsigned NOT NULL, `post_id` int(10) unsigned NOT NULL, KEY `user_post_user_id_index` (`user_id`), KEY `user_post_post_id_index` (`post_id`), CONSTRAINT `user_post_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`), CONSTRAINT `user_post_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- Export de donnรฉes de la table datatables_demo.user_post : ~0 rows (environ) DELETE FROM `user_post`; /*!40000 ALTER TABLE `user_post` DISABLE KEYS */; /*!40000 ALTER TABLE `user_post` 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
0d83288472d1c08ea014bd732959bd2770c32335
SQL
dong-df/ovirt-engine
/packaging/dbscripts/upgrade/04_05_0290_change_default_display.sql
UTF-8
1,792
3.328125
3
[ "Apache-2.0" ]
permissive
-- Removing all graphics from blank template DELETE FROM vm_device WHERE type = 'graphics' AND vm_id = '00000000-0000-0000-0000-000000000000' AND EXISTS (select 1 from vm_static where vm_guid = '00000000-0000-0000-0000-000000000000' AND default_display_type = 1); -- Add VNC graphics to blank template INSERT INTO vm_device (device_id, vm_id, type, device, address, spec_params, is_managed, is_plugged, is_readonly) SELECT uuid_generate_v1(), '00000000-0000-0000-0000-000000000000', 'graphics', 'vnc', '', '', true, true, false WHERE EXISTS (select 1 from vm_static where vm_guid = '00000000-0000-0000-0000-000000000000' AND default_display_type = 1); -- Removing all video devices from blank template DELETE FROM vm_device WHERE type = 'video' AND vm_id = '00000000-0000-0000-0000-000000000000' AND EXISTS (select 1 from vm_static where vm_guid = '00000000-0000-0000-0000-000000000000' AND default_display_type = 1); -- Add VGA video device to blank template INSERT INTO vm_device (device_id, vm_id, type, device, address, spec_params, is_managed, is_plugged, is_readonly) SELECT uuid_generate_v1(), '00000000-0000-0000-0000-000000000000', 'video', 'vga', '', '{"vram" : "16384"}', true, true, false WHERE EXISTS (select 1 from vm_static where vm_guid = '00000000-0000-0000-0000-000000000000' AND default_display_type = 1); -- Change InstanceType's and Blank template default display type from QXL (1) to VGA (2) UPDATE vm_static SET default_display_type = 2 WHERE vm_guid in ('00000000-0000-0000-0000-000000000000', '00000003-0003-0003-0003-0000000000be', '00000005-0005-0005-0005-0000000002e6', '00000007-0007-0007-0007-00000000010a', '00000009-0009-0009-0009-0000000000f1', '0000000b-000b-000b-000b-00000000021f') AND default_display_type = 1;
true
7f8ecab96f97471e42be35db586dd4ba512b5081
SQL
saskiafebe/UAS-Object-Based-Programming
/ekspedisi.sql
UTF-8
16,557
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 13, 2018 at 09:06 AM -- Server version: 5.6.24 -- PHP Version: 5.6.8 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: `ekspedisi` -- -- -------------------------------------------------------- -- -- Table structure for table `ms_administrator` -- CREATE TABLE IF NOT EXISTS `ms_administrator` ( `id` int(11) NOT NULL, `username` varchar(12) NOT NULL, `password` varchar(32) NOT NULL, `jenis` varchar(10) NOT NULL, `email` varchar(50) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_administrator` -- INSERT INTO `ms_administrator` (`id`, `username`, `password`, `jenis`, `email`, `flag_active`) VALUES (1, 'admin', '803e652392bb4e4d898adf4b3ccae56d', 'admin', 'hafiizhekom@yahoo.com', 1), (2, 'nyanyang', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'nyanyang@yahoo.com', 1), (3, 'dio', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'dio@yahoo.com', 0), (4, 'vincent', '803e652392bb4e4d898adf4b3ccae56d', 'admin', 'vincent@yahoo.com', 0), (8, 'annisa', '803e652392bb4e4d898adf4b3ccae56d', 'admin', 'annisa@yahoo.com', 1), (9, 'ronny', '803e652392bb4e4d898adf4b3ccae56d', 'admin', 'ronny@yahoo.com', 1), (10, 'reza', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'reza@yahoo.com', 1), (11, 'raka', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'raka@yahoo.com', 1), (12, 'yudhi', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'yudhi@yahoo.com', 1), (13, 'budi', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'budi@yahoo.com', 1), (14, 'andi', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'andi@yahoo.com', 1), (15, 'danang', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'danang@yahoo.com', 1), (16, 'dudung', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'dudung@yahoo.com', 1), (17, 'maman', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'maman@yahoo.com', 1), (18, 'mamat', '803e652392bb4e4d898adf4b3ccae56d', 'staff', 'mamat@yahoo.com', 1); -- -------------------------------------------------------- -- -- Table structure for table `ms_kecamatan` -- CREATE TABLE IF NOT EXISTS `ms_kecamatan` ( `id` int(11) NOT NULL, `id_kota` int(11) NOT NULL, `kecamatan` varchar(50) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_kecamatan` -- INSERT INTO `ms_kecamatan` (`id`, `id_kota`, `kecamatan`, `flag_active`) VALUES (1, 1, 'Kemayoran', 1), (6, 1, 'Johar', 1), (7, 11, 'Tanon', 1), (8, 1, 'Sawah Besar', 1), (9, 1, 'Gambir', 1), (10, 1, 'Tanah Abang', 1), (11, 1, 'Menteng', 1), (12, 1, 'Senen', 1), (13, 1, 'Cempaka Putih', 1), (14, 1, 'Johar Baru', 1), (15, 8, 'Koja', 1), (16, 8, 'Tanjung Priok', 1), (17, 8, 'Kelapa Gading', 1), (18, 8, 'Cilincing', 1), (19, 8, 'Pademangan', 1), (20, 8, 'Penjaringan', 1), (21, 3, 'Kramat Jati', 1), (22, 3, 'Duren Sawit', 1), (23, 3, 'Jatinegara', 1), (24, 3, 'Pulo Gadung', 1), (25, 11, 'Tangen', 1), (26, 11, 'Sumberlawang', 1), (27, 11, 'Sukodono', 1), (28, 11, 'Sidoharjo', 1), (29, 11, 'Sambungmacan', 1), (30, 11, 'Sragen', 1), (31, 11, 'Sambirejo', 1), (32, 11, 'Plupuh', 1), (33, 11, 'Ngrampal', 1), (34, 11, 'Mondokan', 1), (35, 11, 'Miri', 1), (36, 11, 'Masaran', 1), (37, 11, 'Kedawung', 1), (38, 11, 'Karangmalang', 1), (39, 11, 'Kalijambe', 1), (40, 11, 'Jenar', 1), (41, 11, 'Gondang', 1), (42, 11, 'Gesi', 1), (43, 11, 'Gemolong', 1); -- -------------------------------------------------------- -- -- Table structure for table `ms_kota` -- CREATE TABLE IF NOT EXISTS `ms_kota` ( `id` int(11) NOT NULL, `id_provinsi` int(11) NOT NULL, `kota` varchar(50) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_kota` -- INSERT INTO `ms_kota` (`id`, `id_provinsi`, `kota`, `flag_active`) VALUES (1, 12, 'Jakarta Pusat', 1), (2, 14, 'Solo', 1), (3, 12, 'Jakarta Timur', 1), (4, 12, 'Jakarta Barat', 1), (7, 12, 'Jakarta Selatan', 1), (8, 12, 'Jakarta Utara', 1), (9, 14, 'Semarang', 1), (10, 13, 'Bandung', 1), (11, 14, 'Sragen', 1), (18, 1, 'Aceh Barat', 1), (19, 1, 'Aceh Barat Daya', 1), (20, 1, 'Aceh Besar', 1), (21, 1, 'Aceh Jaya', 1), (22, 1, 'Aceh Selatan', 1), (24, 2, 'Batubara', 1), (25, 2, 'Dairi', 1), (26, 2, 'Karo', 1), (27, 14, 'Banjarnegara', 1), (28, 14, 'Batang', 1), (29, 14, 'Banyumas', 1), (30, 14, 'Boyolali', 1), (31, 14, 'Brebes', 1); -- -------------------------------------------------------- -- -- Table structure for table `ms_kurir` -- CREATE TABLE IF NOT EXISTS `ms_kurir` ( `id` int(11) NOT NULL, `nama_kurir` varchar(50) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_kurir` -- INSERT INTO `ms_kurir` (`id`, `nama_kurir`, `flag_active`) VALUES (1, 'Nyanyang', 1), (2, 'Habib', 0), (3, 'Nanda', 0), (4, 'Yudhi', 1), (5, 'Musa', 1), (6, 'Lawe', 1), (7, 'Geovanta', 1), (8, 'Gabriel', 1), (9, 'Ronaldo', 1), (10, 'Febrianto', 1), (11, 'Rival', 1), (12, 'Rovendo', 1), (13, 'Kenny', 1), (14, 'Doel', 1), (15, 'Nano', 1), (16, 'Taka', 1), (17, 'Hideto', 1); -- -------------------------------------------------------- -- -- Table structure for table `ms_layanan` -- CREATE TABLE IF NOT EXISTS `ms_layanan` ( `id` int(11) NOT NULL, `nama_layanan` varchar(50) NOT NULL, `kode_layanan` varchar(10) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_layanan` -- INSERT INTO `ms_layanan` (`id`, `nama_layanan`, `kode_layanan`, `flag_active`) VALUES (1, 'Reguler', 'REG', 1), (2, 'Exclusive', 'EXC', 0), (3, 'VeryLate', 'VLT', 1), (4, 'Biasa', 'BSA', 1), (5, 'Luar Biasa', 'LBA', 1), (6, 'Mantap', 'MTP', 1); -- -------------------------------------------------------- -- -- Table structure for table `ms_provinsi` -- CREATE TABLE IF NOT EXISTS `ms_provinsi` ( `id` int(10) NOT NULL, `provinsi` varchar(50) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_provinsi` -- INSERT INTO `ms_provinsi` (`id`, `provinsi`, `flag_active`) VALUES (1, 'Nanggroe Aceh Darussalam', 1), (2, 'Sumatera Utara', 1), (3, 'Sumatera Barat', 1), (4, 'Riau', 1), (5, 'Kepulauan Riau', 1), (6, 'Kepulauan Bangka-Belitung', 1), (7, 'Jambi', 1), (8, 'Bengkulu', 1), (9, 'Sumatera Selatan', 1), (10, 'Lampung', 1), (11, 'Banten', 1), (12, 'DKI Jakarta', 1), (13, 'Jawa Barat', 1), (14, 'Jawa Tengah', 1), (15, 'Daerah Istimewa Yogyakarta ', 1), (16, 'Jawa Timur', 1), (17, 'Bali', 1), (18, 'Nusa Tenggara Barat', 1), (19, 'Nusa Tenggara Timur', 1), (20, 'Kalimantan Barat', 1), (21, 'Kalimantan Tengah', 1), (22, 'Kalimantan Selatan', 1), (23, 'Kalimantan Timur', 1), (24, 'Gorontalo', 1), (25, 'Sulawesi Selatan', 1), (26, 'Sulawesi Tenggara', 1), (27, 'Sulawesi Tengah', 1), (28, 'Sulawesi Utara', 1), (29, 'Sulawesi Barat', 1), (30, 'Maluku', 1), (31, 'Maluku Utara', 0), (32, 'Papua Barat', 1), (33, 'Papua', 1), (34, 'Kalimantan Utara', 1), (35, 'test', 0), (36, 'testlagi', 0), (37, 'ES', 0), (38, 'ER', 0), (39, 'sad', 0), (40, 'saddsdf', 0); -- -------------------------------------------------------- -- -- Table structure for table `ms_tarif` -- CREATE TABLE IF NOT EXISTS `ms_tarif` ( `id` int(11) NOT NULL, `id_kecamatan_asal` int(11) NOT NULL, `id_kecamatan_tujuan` int(11) NOT NULL, `id_layanan` int(11) NOT NULL, `durasi_pengiriman` int(11) NOT NULL, `harga` int(11) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_tarif` -- INSERT INTO `ms_tarif` (`id`, `id_kecamatan_asal`, `id_kecamatan_tujuan`, `id_layanan`, `durasi_pengiriman`, `harga`, `flag_active`) VALUES (1, 2, 7, 1, 2, 12000, 0), (2, 4, 7, 1, 2, 11000, 0), (3, 3, 7, 1, 2, 13000, 0), (4, 3, 6, 3, 2, 7000, 0), (5, 4, 1, 1, 1, 5000, 0), (6, 21, 13, 1, 1, 12000, 1), (7, 22, 13, 1, 1, 11000, 1), (8, 24, 11, 1, 1, 13000, 1), (9, 1, 8, 1, 1, 9000, 1), (10, 7, 7, 1, 3, 21000, 0), (11, 1, 7, 1, 3, 21000, 1), (12, 1, 7, 3, 7, 13000, 1), (13, 13, 10, 4, 3, 20000, 1), (14, 21, 21, 2, 3, 25000, 1), (15, 10, 8, 3, 3, 20000, 1); -- -------------------------------------------------------- -- -- Table structure for table `ms_usaha` -- CREATE TABLE IF NOT EXISTS `ms_usaha` ( `id` int(11) NOT NULL, `nama_usaha` varchar(50) NOT NULL, `alamat` varchar(100) DEFAULT NULL, `kode_pos` varchar(5) DEFAULT NULL, `flag_active` tinyint(1) DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; -- -- Dumping data for table `ms_usaha` -- INSERT INTO `ms_usaha` (`id`, `nama_usaha`, `alamat`, `kode_pos`, `flag_active`) VALUES (9, 'PT. TARUNA BANGSA', 'Jl. Test', '10640', 1); -- -------------------------------------------------------- -- -- Table structure for table `tr_detail_pengiriman` -- CREATE TABLE IF NOT EXISTS `tr_detail_pengiriman` ( `id` int(11) NOT NULL, `id_pengiriman` int(11) NOT NULL, `keterangan_barang` varchar(100) NOT NULL, `berat_barang` int(11) NOT NULL, `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tr_detail_pengiriman` -- INSERT INTO `tr_detail_pengiriman` (`id`, `id_pengiriman`, `keterangan_barang`, `berat_barang`, `flag_active`) VALUES (1, 9, 'Keset', 1, 1), (2, 9, 'Kemeja', 3, 1), (3, 10, 'Apple', 2, 1), (4, 10, 'Vas', 32, 0), (5, 10, 'Banana', 2, 0), (6, 11, 'TV', 2, 1), (7, 11, 'Baju', 1, 1), (8, 12, 'Keyboard', 2, 1), (9, 12, 'Mouse', 1, 1), (10, 12, 'Monitor', 2, 1), (11, 13, 'Pakaian', 1, 1), (12, 13, 'Tas', 1, 1), (46, 45, 'Lampu', 1, 1), (47, 45, 'Flashdisk', 1, 1), (48, 46, 'Gelas', 1, 1), (49, 46, 'Keyboard', 2, 1), (50, 47, 'Sepatu', 1, 1), (51, 47, 'Buku', 1, 1), (52, 45, 'Lampu', 1, 1), (53, 45, 'Flashdisk', 1, 1), (54, 46, 'Gelas', 1, 1), (55, 46, 'Keyboard', 2, 1); -- -------------------------------------------------------- -- -- Table structure for table `tr_head_pengiriman` -- CREATE TABLE IF NOT EXISTS `tr_head_pengiriman` ( `id` int(11) NOT NULL, `nama_pengirim` varchar(50) NOT NULL, `nama_penerima` varchar(50) NOT NULL, `id_kecamatan_pengirim` int(11) NOT NULL, `id_kecamatan_penerima` int(11) NOT NULL, `alamat_penerima` text NOT NULL, `tanggal` datetime NOT NULL, `tanggal_kirim` date NOT NULL, `tanggal_tiba` date NOT NULL, `total_berat` int(11) NOT NULL, `kode_layanan` varchar(10) NOT NULL, `id_kurir` int(11) NOT NULL, `harga` int(11) NOT NULL, `hari` int(11) NOT NULL, `verifikasi` tinyint(1) NOT NULL DEFAULT '0', `flag_active` tinyint(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tr_head_pengiriman` -- INSERT INTO `tr_head_pengiriman` (`id`, `nama_pengirim`, `nama_penerima`, `id_kecamatan_pengirim`, `id_kecamatan_penerima`, `alamat_penerima`, `tanggal`, `tanggal_kirim`, `tanggal_tiba`, `total_berat`, `kode_layanan`, `id_kurir`, `harga`, `hari`, `verifikasi`, `flag_active`) VALUES (3, 'Guntur', 'Tirta', 2, 7, 'Jl. Neraka', '2016-12-10 15:32:42', '2017-01-19', '2012-01-01', 7, 'REG', 1, 84000, 2, 0, 0), (4, 'Anjas', 'Nico', 2, 7, 'Jl. Neraka', '2016-12-11 00:22:54', '2017-02-16', '2012-01-01', 8, 'REG', 1, 96000, 2, 1, 0), (5, 'Hasbi', 'Amir', 2, 7, 'Jl. Neraka', '2016-12-11 00:25:01', '2016-12-21', '2012-01-01', 10, 'REG', 1, 120000, 2, 0, 0), (6, 'Supratna', 'Asep', 2, 7, 'Jl. Dago', '2016-12-11 00:26:40', '2016-12-15', '2012-01-01', 2, 'REG', 1, 24000, 2, 0, 0), (7, 'Dede', 'Dudu', 2, 7, 'Jl. Neraka', '2016-12-11 00:28:01', '2016-12-23', '2012-01-01', 0, 'REG', 1, 0, 2, 0, 0), (8, 'sadasd', 'asdasd', 2, 7, 'Jl. Neraka', '2016-12-11 00:30:07', '2016-12-15', '2016-12-21', 14, 'REG', 1, 168000, 2, 1, 0), (9, 'sadasdas', 'sadasdsa', 2, 7, 'dasdsad', '2016-12-11 00:31:04', '2016-12-15', '2012-01-01', 4, 'REG', 1, 48000, 2, 0, 0), (10, 'Test', 'Tust', 2, 7, 'sasda', '2016-12-11 00:34:51', '2016-12-15', '2016-12-21', 36, 'REG', 1, 432000, 2, 1, 0), (11, 'Rozaq', 'Wahyudi', 1, 7, 'Jl. Mayor Suharto No. 6', '2016-12-22 18:07:30', '2017-01-11', '2012-01-01', 3, 'REG', 1, 63000, 3, 0, 1), (12, 'Andi', 'Yanuar', 24, 11, 'Jl. Menteng, Kb. Sirih, Menteng, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10340, Indonesia', '2016-12-22 18:09:07', '2016-12-22', '2016-12-22', 5, 'REG', 3, 65000, 1, 1, 1), (13, 'Asep', 'Padmo', 1, 7, 'Jl. Sukodono, Tanon', '2016-12-22 18:16:28', '2017-02-08', '2012-01-01', 2, 'VLT', 1, 26000, 7, 0, 1), (45, 'Sandi', 'Habib', 1, 29, 'Jl. Bekasi Jaya', '2016-12-25 00:30:07', '2016-12-25', '2016-12-28', 2, 'REG', 2, 9000, 3, 1, 0), (46, 'Dio', 'Vincent', 1, 29, 'Jl. Bekasi Jaya', '2016-12-25 00:30:10', '2016-12-25', '2016-12-28', 3, 'REG', 2, 9000, 3, 1, 0), (47, 'Dio', 'Vincent', 21, 13, 'Jl. Neraka', '2017-01-04 15:31:11', '2017-01-10', '2017-01-04', 2, 'REG', 1, 24000, 1, 1, 0), (48, 'Sandi', 'Habib', 1, 29, 'Jl. Bekasi Jaya', '2016-12-25 00:30:07', '2016-12-25', '2012-01-01', 2, 'REG', 2, 9000, 3, 0, 1), (49, 'Dio', 'Vincent', 1, 29, 'Jl. Bekasi Jaya', '2016-12-25 00:30:10', '2016-12-25', '2012-01-01', 3, 'REG', 2, 9000, 3, 0, 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `ms_administrator` -- ALTER TABLE `ms_administrator` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`), ADD UNIQUE KEY `username_2` (`username`), ADD UNIQUE KEY `username_3` (`username`), ADD UNIQUE KEY `username_4` (`username`); -- -- Indexes for table `ms_kecamatan` -- ALTER TABLE `ms_kecamatan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ms_kota` -- ALTER TABLE `ms_kota` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ms_kurir` -- ALTER TABLE `ms_kurir` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ms_layanan` -- ALTER TABLE `ms_layanan` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `kode_layanan` (`kode_layanan`), ADD UNIQUE KEY `kode_layanan_2` (`kode_layanan`); -- -- Indexes for table `ms_provinsi` -- ALTER TABLE `ms_provinsi` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ms_tarif` -- ALTER TABLE `ms_tarif` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ms_usaha` -- ALTER TABLE `ms_usaha` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tr_detail_pengiriman` -- ALTER TABLE `tr_detail_pengiriman` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tr_head_pengiriman` -- ALTER TABLE `tr_head_pengiriman` ADD PRIMARY KEY (`id`), ADD KEY `kecamatan_pengirimz` (`id_kecamatan_penerima`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `ms_administrator` -- ALTER TABLE `ms_administrator` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `ms_kecamatan` -- ALTER TABLE `ms_kecamatan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=44; -- -- AUTO_INCREMENT for table `ms_kota` -- ALTER TABLE `ms_kota` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=32; -- -- AUTO_INCREMENT for table `ms_kurir` -- ALTER TABLE `ms_kurir` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `ms_layanan` -- ALTER TABLE `ms_layanan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `ms_provinsi` -- ALTER TABLE `ms_provinsi` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=41; -- -- AUTO_INCREMENT for table `ms_tarif` -- ALTER TABLE `ms_tarif` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `ms_usaha` -- ALTER TABLE `ms_usaha` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `tr_detail_pengiriman` -- ALTER TABLE `tr_detail_pengiriman` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=56; -- -- AUTO_INCREMENT for table `tr_head_pengiriman` -- ALTER TABLE `tr_head_pengiriman` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=50; -- -- Constraints for dumped tables -- -- -- Constraints for table `tr_head_pengiriman` -- ALTER TABLE `tr_head_pengiriman` ADD CONSTRAINT `kecamatan_pengirimz` FOREIGN KEY (`id_kecamatan_penerima`) REFERENCES `ms_kecamatan` (`id`); /*!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
bb0b356ff0a556f018a065a15d4b2f5a91d1aae4
SQL
msdickinson/DickinsonBros.Bus
/DickinsonBros.Bus.SQL/StoredProcedures/DeleteUser.sql
UTF-8
276
3.0625
3
[]
no_license
๏ปฟCREATE PROCEDURE [ServiceBus].[DeleteUser] @token UNIQUEIDENTIFIER AS IF (SELECT COUNT(*) FROM [ServiceBus].[User] WHERE [UserToken] = @token) = 0 THROW 51000, 'The User does not exist.', 1; ELSE DELETE FROM [ServiceBus].[User] WHERE [UserToken] = @token RETURN 0
true
2528d313bb6046de53b132441620ff1bdca601ef
SQL
Abhilash-Mandlekar/LeetCode
/M626_Exchange Seats.sql
UTF-8
430
4.09375
4
[]
no_license
/* Write your T-SQL query statement below */ with cte (Id1, Student1, Id2, Student2)as ((select * from seat s1 left join seat s2 on S1.ID = S2.ID - 1 and s2.Id % 2 = 0 WHERE S1.ID % 2 != 0 ) union all (select * from seat s1 left join seat s2 on S1.ID = S2.ID + 1 and s1.Id % 2 = 0 WHERE S2.ID IS NOT NULL)) select Id1 as Id, case When Student2 IS NULL THEN Student1 ELSE Student2 End as student from cte order by Id1;
true
65f38adb5e7c5d2bd1cbe7f02c9eb14d52d7e2c0
SQL
murari-goswami/bi
/ETL/DataVirtuality/views/tableau/tableau.mgmt_sandbox_all_calls.sql
UTF-8
584
3.46875
3
[]
no_license
-- Name: tableau.mgmt_sandbox_all_calls -- Created: 2015-05-08 10:24:20 -- Updated: 2015-05-08 10:24:20 CREATE VIEW tableau.mgmt_sandbox_all_calls AS SELECT c.customer_id, c.phone_number, n.date_called, n.waiting_time, CAST(CASE WHEN n.call_duration > 90 THEN n.call_duration ELSE null END as float)/60 as call_duration, n.disconnected_by, n.call_handled_by, n.call_queue, CASE WHEN n.call_duration > 90 THEN 1 ELSE 0 END as reached FROM bi.customer c JOIN dwh.nfone_data n on n.phone_number = c.phone_number WHERE n.date_called > '2015' AND c.phone_number is not null
true
21db6174fd10c117434a254146a240ab9e6c45b5
SQL
harsha547/ClassicModels-Database-Queries
/challenges/OnetoMany_Relationship/query_04.sql
UTF-8
195
3.015625
3
[]
no_license
-- 4. Report the products that have not been sold. SELECT * from products where not exists ( SELECT * FROM orderdetails WHERE products.productCode = orderdetails.productCode )
true
68f532b4aaecb20adfb7c134093696b502ec83cd
SQL
DYankova/UsersFeatures
/src/database/20171209.sql
UTF-8
1,818
3.53125
4
[]
no_license
CREATE DATABASE USER_SETTINGS; USE USER_SETTINGS; CREATE TABLE users ( id int(11) NOT NULL AUTO_INCREMENT, username varchar(45) NOT NULL, email varchar(45) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE features( id int(11) NOT NULL AUTO_INCREMENT, name varchar(45) NOT NULL, enabled boolean DEFAULT true, PRIMARY KEY (id) ); CREATE TABLE users_features ( user_id int(11) NOT NULL, feature_id int(11) NOT NULL, enabled boolean DEFAULT true, PRIMARY KEY (user_id,feature_id), KEY fk_user (user_id), KEY fk_feature (feature_id), CONSTRAINT fk_user FOREIGN KEY (user_id) REFERENCES users (id), CONSTRAINT fk_feature FOREIGN KEY (feature_id) REFERENCES features (id) ); INSERT INTO features(name, enabled) VALUES('change-email', true); INSERT INTO features(name, enabled) VALUES('ad-free', false); INSERT INTO features(name, enabled) VALUES('app-rate', false); INSERT INTO features(name, enabled) VALUES('app-feedback', true); insert into users(id, username, email) values( 1, 'Venus Williams', 'vm@gmail.com'); insert into users(id, username, email) values( 2, 'Serena Williams', 'sw@gmail.com'); insert into users(id, username, email) values( 3, 'Maria Sharapova', 'ms@gmail.com'); insert into users(id, username, email) values( 4, 'Steffi Grafs', 'sg@gmail.com'); insert into users(id, username, email) values( 5, 'Simona Halep', 'sh@gmail.com'); INSERT INTO users_features(user_id, feature_id, enabled) values (1, 1, true); INSERT INTO users_features(user_id, feature_id, enabled) values (1, 2, false); INSERT INTO users_features(user_id, feature_id, enabled) values (5, 1, false); INSERT INTO users_features(user_id, feature_id, enabled) values (4, 2, true); INSERT INTO users_features(user_id, feature_id, enabled) values (4, 3, false); INSERT INTO users_features(user_id, feature_id, enabled) values (4, 4, false);
true
4c17041b095f6a0a15eeba825bd780d7e51628b0
SQL
slagovskiy/psa
/Update/Update.1.5.9.1222/Import/before.18.sql
UTF-8
224
3.234375
3
[]
no_license
ALTER TABLE dbo.orderevent ADD CONSTRAINT PK_orderevent PRIMARY KEY CLUSTERED ( id_orderevent ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
true
f91a36ee2ed6129be7f1b29db2d8166ab041661d
SQL
rhuidean/python_april_2017
/Jason/sakila.sql
UTF-8
1,093
4
4
[]
no_license
/*Customers inside city_id=32*/ select first_name, last_name, email, address from customer as cu join address as ad on cu.address_id=ad.address_id where ad.city_id= 312; /*All comedy films*/ select f.title, f.description, f.release_year, f.special_features from film as f join film_category as fc on f.film_id = fc.film_id join category as ca on fc.category_id = ca.category_id where ca.name = 'Comedy'; /*Actor*/ select ac.actor_id, concat(ac.first_name,' ',ac.last_name) as actor_name, f.title, f.description,f.release_year from actor as ac join film_actor as fa on ac.actor_id = fa.actor_id join film as f on fa.film_id = f.film_id where ac.actor_id=5; /*Store & Customer*/ select cu.first_name,cu.last_name,cu.email,cu.address_id from customer as cu join address as ad on cu.address_id=ad.address_id join store as so on ad.address_id=so.address_id where so.store_id=1 and ad.city_id in (1,42,312,459); /*Rating, Feature, and Actor*/ select f.title, f.description, f.release_year, f.special_features from film as f where rating ='G' and special_features like '%behind the scenes%';
true
529bdf20a02788b7a0388cb56a25c6965740fd56
SQL
eprakars/Inventory
/createTable.sql
UTF-8
4,397
3.171875
3
[]
no_license
drop table Account; drop table ItemBeli; drop table ItemJual; drop table FakturBeli; drop table FakturJual; drop table Stock; drop table Pembayaran; drop table Customer; drop table Supplier; drop table salesperson; create table Account (_password varchar(100) primary key, _role int default 0) insert into Account values('admin', 0); create table SalesPerson (_spid int primary key, _salesname varchar(max), _address varchar(max), _city varchar(20), _phone varchar(max), _notes varchar(max), _dateIn date, _komImport varchar(30), _komLocal varchar(30), _extra varchar(max)); insert into SalesPerson values (1, 'Cheli', '', '', '', '', '2018-01-01', 0, '', '', ''); create table Supplier (_sid int primary key, _city varchar(max), _name varchar(max), _address varchar(max), _phone varchar(max), _notes varchar(max), _jatuhTempo date, _creditDay int, _extra varchar(max)); insert into Supplier values (1, '', 'Cheli', '', '', '', null, 0, ''); create table Customer (_cid int primary key, _name varchar(max), _spid int foreign key references SalesPerson(_spid), _city varchar(max), _address1 varchar(max), _address2 varchar(max), _phone varchar(max), _notes varchar(max), _lamaKredit int, _marketibility bit, _nonpwp bigint, _namanpwp varchar(max), _addressnpwp varchar(max), _extra varchar(max)); insert into Customer values (1, 'Cheli', 1, '', '', '', '', '', 0, 0, 0, '', '', ''); create table Stock (_id int identity(0, 1) primary key, _stockCode varchar(40) unique, _name varchar(200) unique, _merk varchar(max), _color varchar(max), _sizeid varchar(max), _notes varchar(max), _unit varchar(5), _quantity int, _colly int, _price int, _suggestedPrice int, _weight decimal(10,3), _dimensions varchar(20), _category varchar(max), _dateList date, _make bit, _imageName varchar(max), _extra varchar(max)); insert into Stock (_stockcode, _name, _merk, _color, _sizeid, _notes, _unit, _quantity, _colly, _price, _suggestedPrice, _weight, _dimensions, _category, _dateList, _make, _imageName, _extra) values ('MJ0001', 'Meja Lantai', '', '', '', '', '', 0, 0, 0, 0, 0, '', '', null, 0, null, ''); create table FakturJual (_idJual int primary key, _date date, _ppn bit, _cashCredit bit, _JualReturn bit, _cid int foreign key references Customer(_cid), _jatuhTempo date, _tanggalLunas date, _extra varchar(max), _terbayar int default 0); insert into FakturJual values (1, null, 0, 0, 0, 1, null, null, '', 0); create table ItemJual (_itemid int identity(0, 1) primary key, _dateOut date, _fid int foreign key references FakturJual(_idJual), _stockid int foreign key references Stock(_id), _quantity int, _sellingPrice int, _baseprice int, _discount int, _extra varchar(max), _del bit); insert into ItemJual (_fid, _dateOut, _stockid, _quantity, _sellingPrice, _baseprice, _discount, _extra, _del) values (1, null, 0, 0, 0, 0, 0, '', 0); create table FakturBeli (_idBeli int primary key, _date date, _jatuhTempo date, _ppn bit, _cashCredit bit, _BeliReturn bit, _sid int foreign key references Supplier(_sid), _discount int, _noPajak varchar(max), _datePajak date, _extra varchar(max)); insert into FakturBeli values (0, null, null, 0, 0, 0, 1, 0, '', null, ''); create table ItemBeli (_itemid int identity(0, 1) primary key, _dateIn date, _fid int foreign key references FakturBeli(_idBeli), _sid int foreign key references Stock(_id), _buyingPrice int, _quantity int, _extra varchar(max), _del bit); insert into ItemBeli (_dateIn, _fid, _sid, _buyingPrice, _quantity, _extra) values (null, 0, 0, 0, 0, ''); create table Pembayaran (_nogiro varchar(100) primary key, _dategiro date, _namabank varchar(max), _norek varchar(max), _jatuhTempo date, _amount int, _sisa int, _discount int, _cid int foreign key references Customer(_cid), _noFaktur varchar(max), _sudahCair bit, _keterangan varchar(max), _extra varchar(max));
true
7ec2449ad87698797ca27ab2591df07a87db3935
SQL
AneAniks/Encryption-and-Decryption-APP
/localhost.sql
UTF-8
4,740
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 05, 2019 at 09:58 PM -- Server version: 5.6.34 -- PHP Version: 7.1.11 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: `l2c` -- CREATE DATABASE IF NOT EXISTS `l2c` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `l2c`; -- -------------------------------------------------------- -- -- Table structure for table `loginhistory` -- CREATE TABLE `loginhistory` ( `username` varchar(25) NOT NULL, `password` varchar(25) NOT NULL, `unique_id` varchar(50) NOT NULL, `salt` varchar(10) NOT NULL, `created_at` datetime NOT NULL, `client` varchar(25) NOT NULL, `sno` int(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `loginhistory` -- INSERT INTO `loginhistory` (`username`, `password`, `unique_id`, `salt`, `created_at`, `client`, `sno`) VALUES ('ivan@test.mk', 'proba', '548812', '592', '0000-00-00 00:00:00', 'Lazarus', 26), ('ivan@test.mk', 'proba', '715188', '843', '0000-00-00 00:00:00', 'Lazarus', 27), ('ivan@test.mk', 'proba', '602762', '857', '0000-00-00 00:00:00', 'Lazarus', 28), ('ivan@test.mk', 'proba', '548812', '592', '0000-00-00 00:00:00', 'Lazarus', 29), ('test@test.mk', 'test', '548812', '592', '0000-00-00 00:00:00', 'Lazarus', 30), ('ivan@test.mk', 'proba', '548812', '592', '0000-00-00 00:00:00', 'Lazarus', 31), ('ivan@test.mk', 'proba', '15482498', 'as6d598s1', '2019-06-05 17:00:00', 'Android', 32), ('ivan@test.mk', 'proba', '15482498', 'as6d598s1', '2019-06-05 17:00:00', 'Android', 33); -- -------------------------------------------------------- -- -- Table structure for table `names` -- CREATE TABLE `names` ( `sno` int(11) NOT NULL, `name` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `created_at` datetime DEFAULT NULL, `unique_id` varchar(3) NOT NULL, `surname` varchar(55) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `names` -- INSERT INTO `names` (`sno`, `name`, `email`, `created_at`, `unique_id`, `surname`) VALUES (2, 'Ivan', 'ivan@test.mk', '2019-05-26 18:47:42', '2ce', 'Vasilevski'), (9, 'Ana-Marija', 'anamarija@gmail.com', '2019-06-05 17:18:03', '9ma', 'Petrushevska'), (10, 'Predrag', 'nikolikj@hotmail.com', '2019-06-05 17:18:27', '10n', 'Nikolikj'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `sno` int(11) NOT NULL, `unique_id` varchar(23) NOT NULL, `name` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `encrypted_password` varchar(256) NOT NULL, `salt` varchar(10) NOT NULL, `created_at` datetime DEFAULT NULL, `password` varchar(55) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`sno`, `unique_id`, `name`, `email`, `encrypted_password`, `salt`, `created_at`, `password`) VALUES (20, '5ceac1f77a1390.39518010', 'Ivan', 'ivan@test.mk', '$2y$10$ofwno1KV.yeJ3A/0IUpN3uIrg5VTQehT0YANAGliJI6px/7pu.Rmi', '87808aa0b7', '2019-05-26 18:42:31', 'proba'), (37, '5cf7dd2b6f8f98.25430326', 'Ana-Marija', 'anamarija@gmail.com', '$2y$10$WT6EJ7Wc/dTF4V8ILTvSNejZleE/MgUcWI.jsCpW3wBE7ZDRme41S', '8e94e861eb', '2019-06-05 17:18:03', 'anamarija'), (38, '5cf7dd43573464.26889042', 'Predrag', 'nikolikj@hotmail.com', '$2y$10$z4377DZlt/vmwYx7M6AAHOnu7tuOhk3Faa1U4fBFHJ23OWwBP07N6', '24cce6b719', '2019-06-05 17:18:27', 'predrag'); -- -- Indexes for dumped tables -- -- -- Indexes for table `loginhistory` -- ALTER TABLE `loginhistory` ADD PRIMARY KEY (`sno`); -- -- Indexes for table `names` -- ALTER TABLE `names` ADD PRIMARY KEY (`sno`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`sno`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `loginhistory` -- ALTER TABLE `loginhistory` MODIFY `sno` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; -- -- AUTO_INCREMENT for table `names` -- ALTER TABLE `names` MODIFY `sno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `sno` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39; -- -- Database: `test` -- CREATE DATABASE IF NOT EXISTS `test` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `test`; 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
2c21380ea77ff44e11824542f3693ee1f2d86018
SQL
NiladriGoswami/Online-Voting-System
/Online-Voting-System/polling.sql
UTF-8
4,200
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Apr 27, 2018 at 03:09 AM -- Server version: 5.7.21 -- PHP Version: 5.6.35 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 utf8 */; -- -- Database: `polling` -- -- -------------------------------------------------------- -- -- Table structure for table `administrator` -- DROP TABLE IF EXISTS `administrator`; CREATE TABLE IF NOT EXISTS `administrator` ( `admin_id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(255) NOT NULL, `last_name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) DEFAULT NULL, `cnf_password` varchar(255) NOT NULL, PRIMARY KEY (`admin_id`) ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=latin1; -- -- Dumping data for table `administrator` -- INSERT INTO `administrator` (`admin_id`, `first_name`, `last_name`, `email`, `password`, `cnf_password`) VALUES (1, 'Nitesh', 'Prasad', 'nitesh32@gmail.com', 'nitesh1234', 'nitesh1234'), (5, 'souvik', 'basu', '', '', ''), (26, 'sou', 'B', 'sss@ww', '123', '123'), (27, 'aaa', 'a', 'anusuha74@gmail.com', 'a', 'a'), (28, 'ghgh', 'kjkj', 'jhgjhg@bhkjh', '1234', '1234'), (29, 'souvik', 'basu', 'soubasu8@gmail.com', '1234', '1234'), (39, 'Niladri', 'Narua', 'niladri3294@gmail.com', 'niladri1994', 'qqqq'); -- -------------------------------------------------------- -- -- Table structure for table `member` -- DROP TABLE IF EXISTS `member`; CREATE TABLE IF NOT EXISTS `member` ( `member_id` int(11) NOT NULL AUTO_INCREMENT, `f_name` varchar(225) NOT NULL, `l_name` varchar(225) NOT NULL, `email` varchar(225) NOT NULL, `password` varchar(225) NOT NULL, `cnf_password` varchar(225) NOT NULL, PRIMARY KEY (`member_id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; -- -- Dumping data for table `member` -- INSERT INTO `member` (`member_id`, `f_name`, `l_name`, `email`, `password`, `cnf_password`) VALUES (1, 'Niladri', 'Goswami', 'niladrig007@gmail.com', 'niladri1994', 'niladri1994'), (4, 'Souvik', 'Basu', 'soubasu8@gmail.com', '12345', '12345'), (6, 'Sunil', 'Sonar', 'sunil64@gmail.com', 'sunil1234', 'sunil1234'), (7, 'ramen', 'das', 'das@mkk', '222', '222'), (8, 'anusuha ', 'maji', 'anusuha74@gmail.com', '123456', '123456'), (9, '', '', '', '', ''), (10, 'Nitin', 'Ambani', 'nitu42@gmail.com', 'nitu1234', 'nitu1234'), (11, 'Sayandeep', 'Baidya', 'sayandeeprhr1@gmail.com', 'xperiaion', 'xperiaion'), (12, 'fuck', 'fuck', 'fuck@fuck.fuck', 'fuck', 'fuck'), (13, 'Arjun', 'Shrivastav', 'arjun52@gmail.com', 'arjun1234', 'arjun1234'); -- -------------------------------------------------------- -- -- Table structure for table `tbs_candidate` -- DROP TABLE IF EXISTS `tbs_candidate`; CREATE TABLE IF NOT EXISTS `tbs_candidate` ( `candidate_id` int(11) NOT NULL AUTO_INCREMENT, `candidate_name` varchar(255) NOT NULL, `candidate_position` varchar(255) NOT NULL, `candidate_votes` int(11) DEFAULT NULL, PRIMARY KEY (`candidate_id`) ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbs_candidate` -- INSERT INTO `tbs_candidate` (`candidate_id`, `candidate_name`, `candidate_position`, `candidate_votes`) VALUES (1, 'Niladri', 'HOD', 10), (11, 'Souvik', 'CR', 4), (12, 'Souvik', 'HOD', 3), (13, 'Niladri', 'CR', 4); -- -------------------------------------------------------- -- -- Table structure for table `tb_position` -- DROP TABLE IF EXISTS `tb_position`; CREATE TABLE IF NOT EXISTS `tb_position` ( `position_id` int(11) NOT NULL AUTO_INCREMENT, `position_name` varchar(255) NOT NULL, PRIMARY KEY (`position_id`) ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_position` -- INSERT INTO `tb_position` (`position_id`, `position_name`) VALUES (10, 'CR'), (3, 'HOD'); 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
b3422e0dd1b74f1c2a181f7d951ab18cb82b7ca7
SQL
Newwharf/habit
/init.sql
UTF-8
9,107
3.546875
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Thu Jan 18 15:11:32 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema habit -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema habit -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `habit` DEFAULT CHARACTER SET utf8 ; USE `habit` ; -- ----------------------------------------------------- -- Table `habit`.`h_user` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_user` ( `i_id` INT NOT NULL, `v_wechatuid` VARCHAR(45) NULL COMMENT 'ๅพฎไฟก็”จๆˆทๅ”ฏไธ€ๆ ‡่ฏ†', `v_name` VARCHAR(45) NULL COMMENT '็”จๆˆทๅ็งฐ', `ti_sex` TINYINT NOT NULL DEFAULT 0 COMMENT 'ๆ€งๅˆซ๏ผŒ0็”ท๏ผŒ1ๅฅณ', `d_birthday` DATE NULL COMMENT '็”จๆˆท็”Ÿๆ—ฅ', `v_tel` VARCHAR(20) NULL COMMENT '็”จๆˆท็”ต่ฏ', `dt_cdate` DATETIME NULL, `v_imgurl` VARCHAR(45) NULL COMMENT '็”จๆˆทๅคดๅƒ้“พๆŽฅ', PRIMARY KEY (`i_id`), UNIQUE INDEX `wechat_user_id_UNIQUE` (`v_wechatuid` ASC), UNIQUE INDEX `birthday_UNIQUE` (`d_birthday` ASC)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `habit`.`h_action` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_action` ( `i_id` INT NOT NULL, `v_name` VARCHAR(45) NULL COMMENT 'ๅŠจไฝœๅ็งฐ', `ti_type` TINYINT NULL COMMENT 'ๅŠจไฝœ็ฑปๅž‹๏ผŒ0่ฎกๆฌกๅŠจไฝœ๏ผŒ1่ฎกๆ—ถๅŠจไฝœ', `v_unit` VARCHAR(45) NULL COMMENT 'ๅฆ‚ๆžœๆ˜ฏ่ฎกๆฌกๅŠจไฝœ๏ผŒๅˆ™่ฏฅๅญ—ๆฎตๆ ‡่ฏ†่ฎกๆฌก็š„ๅ•ไฝ', `i_userid` INT NULL DEFAULT NULL COMMENT '็”จๆˆทidๅค–้”ฎ', `s_state` TINYINT NOT NULL COMMENT '็Šถๆ€๏ผŒ0ๆœชๅˆ ้™ค๏ผŒ1ๅทฒๅˆ ้™ค๏ผŒ้ป˜่ฎค0', `dt_cdate` DATETIME NULL, PRIMARY KEY (`i_id`), INDEX `user_id_idx` (`i_userid` ASC), CONSTRAINT `h_action_user_id` FOREIGN KEY (`i_userid`) REFERENCES `habit`.`h_user` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `habit`.`h_plan` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_plan` ( `i_id` INT NOT NULL, `v_name` VARCHAR(45) NULL COMMENT '่ฎญ็ปƒๅ็งฐ', `dt_cdate` DATETIME NULL COMMENT '่ฎฐๅฝ•ๅˆ›ๅปบๆ—ถ้—ด', `ti_state` TINYINT NULL COMMENT '0ๆœชๅˆ ้™ค๏ผŒ1ๅทฒๅˆ ้™ค', `i_userid` INT NULL, PRIMARY KEY (`i_id`), INDEX `user_id_idx` (`i_userid` ASC), CONSTRAINT `h_plan_user_id` FOREIGN KEY (`i_userid`) REFERENCES `habit`.`h_user` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `habit`.`h_body_data_log` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_body_data_log` ( `i_id` INT NOT NULL, `i_userid` INT NULL, `ti_index` TINYINT NULL COMMENT 'ๅ…ณ่”็š„ๆŒ‡ๆ ‡๏ผŒ0่บซ้ซ˜๏ผŒ1ไฝ“้‡๏ผŒ2ไฝ“่„‚๏ผŒ3่‚ฉๅ›ด๏ผŒ4่ƒธๅ›ด๏ผŒ5่…ฐๅ›ด๏ผŒ6่…นๅ›ด๏ผŒ7่‡€ๅ›ด๏ผŒ8ๅทฆๅคง่‡‚ๅ›ด๏ผŒ9ๅณๅคง่‡‚ๅ›ด๏ผŒ10ๅทฆๅฐ่‡‚ๅ›ด๏ผŒ11ๅณๅฐ่‡‚ๅ›ด๏ผŒ12ๅทฆๅคง่…ฟๅ›ด๏ผŒ13ๅณๅคง่…ฟๅ›ด๏ผŒ14ๅทฆๅฐ่…ฟๅ›ด๏ผŒ15ๅณๅฐ่…ฟๅ›ด', `f_score` FLOAT NULL COMMENT 'ๆˆ็ปฉ', `dt_cdate` DATETIME NULL COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `v_comments` VARCHAR(45) NULL COMMENT 'ๆ„Ÿๆ‚Ÿ', PRIMARY KEY (`i_id`), INDEX `user_id_idx` (`i_userid` ASC), CONSTRAINT `h_body_data_log_user_id` FOREIGN KEY (`i_userid`) REFERENCES `habit`.`h_user` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `habit`.`h_target` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_target` ( `i_id` INT NOT NULL, `i_userid` INT NULL, `ti_index` TINYINT NULL COMMENT 'ๅ…ณ่”็š„ๆŒ‡ๆ ‡๏ผŒ0่บซ้ซ˜๏ผŒ1ไฝ“้‡๏ผŒ2ไฝ“่„‚๏ผŒ3่‚ฉๅ›ด๏ผŒ4่ƒธๅ›ด๏ผŒ5่…ฐๅ›ด๏ผŒ6่…นๅ›ด๏ผŒ7่‡€ๅ›ด๏ผŒ8ๅทฆๅคง่‡‚ๅ›ด๏ผŒ9ๅณๅคง่‡‚ๅ›ด๏ผŒ10ๅทฆๅฐ่‡‚ๅ›ด๏ผŒ11ๅณๅฐ่‡‚ๅ›ด๏ผŒ12ๅทฆๅคง่…ฟๅ›ด๏ผŒ13ๅณๅคง่…ฟๅ›ด๏ผŒ14ๅทฆๅฐ่…ฟๅ›ด๏ผŒ15ๅณๅฐ่…ฟๅ›ด', `ti_nexus` TINYINT NULL COMMENT 'ๅ…ณ็ณป๏ผŒ0ๅคงไบŽ็ญ‰ไบŽ็›ฎๆ ‡ๅ€ผ๏ผŒ1ๅฐไบŽ็ญ‰ไบŽ็›ฎๆ ‡', `f_value` FLOAT NULL COMMENT '็›ฎๆ ‡ๅ€ผ', `ti_flag` TINYINT NOT NULL DEFAULT 0 COMMENT 'ๆŒ‡ๆ ‡็Šถๆ€๏ผŒๅฆ‚ๆžœ่พพๅˆฐๅ…ณ่”ๅ…ณ็ณป็š„็›ฎๆ ‡ๅ€ผ๏ผŒๅˆ™็›ฎๆ ‡ๅฎŒๆˆ๏ผŒๅฆๅˆ™ๆœชๅฎŒๆˆ\n0ๆœชๅฎŒๆˆ๏ผŒ1ๅทฒๅฎŒๆˆ', `ti_state` TINYINT NOT NULL DEFAULT 0 COMMENT '็Šถๆ€๏ผŒ0ๆœชๅˆ ้™ค๏ผŒ1ๅทฒๅˆ ้™ค๏ผŒ้ป˜่ฎค0', `dt_cdate` DATETIME NULL, INDEX `user_id_idx` (`i_userid` ASC), PRIMARY KEY (`i_id`), CONSTRAINT `h_target_user_id` FOREIGN KEY (`i_userid`) REFERENCES `habit`.`h_user` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `habit`.`h_body_data` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_body_data` ( `i_id` INT NOT NULL, `i_userid` INT NULL COMMENT '็”จๆˆทidๅค–้”ฎ', `f_lastheight` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌก่บซ้ซ˜', `f_lastweight` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกไฝ“้‡', `f_lastbodyfat` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกไฝ“่„‚็އ', `f_lastshouldersize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌก่‚ฉๅฎฝ', `f_lastbust` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌก่ƒธๅ›ด', `f_lastabdominalsize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌก่…นๅ›ด', `f_lastwaistline` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌก่…ฐๅ›ด', `f_lasthipline` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌก่‡€ๅ›ด', `f_lastlforearmsize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅทฆๅฐ่‡‚ๅ›ด', `f_lastrforearmsize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅณๅฐ่‡‚ๅ›ด', `f_lastlarmsize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅทฆๅคง่‡‚ๅ›ด', `f_lastrarmsize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅณๅคง่‡‚ๅ›ด', `f_lastlthighsize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅทฆๅคง่…ฟๅ›ด', `f_lastrthighsize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅณๅคง่…ฟๅ›ด', `f_lastlcrussize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅทฆๅฐ่…ฟๅ›ด', `f_lastrcrussize` FLOAT NULL COMMENT 'ๆœ€ๅŽไธ€ๆฌกๅณๅฐ่…ฟๅ›ด', INDEX `user_id_idx` (`i_userid` ASC), CONSTRAINT `h_body_data_user_id` FOREIGN KEY (`i_userid`) REFERENCES `habit`.`h_user` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `habit`.`h_plan_action` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_plan_action` ( `i_planid` INT NULL, `i_actionid` INT NULL, `i_num` INT NULL COMMENT 'ๆœฌๅŠจไฝœ็š„็ป„ๆ•ฐ', `dt_cdate` DATETIME NULL COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `ti_state` TINYINT NULL COMMENT '0ๆœชๅˆ ้™ค๏ผŒ1ๅทฒๅˆ ้™ค', INDEX `plan_id_idx` (`i_planid` ASC), INDEX `action_id_idx` (`i_actionid` ASC), CONSTRAINT `plan_action_plan_id` FOREIGN KEY (`i_planid`) REFERENCES `habit`.`h_plan` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `plan_action_action_id` FOREIGN KEY (`i_actionid`) REFERENCES `habit`.`h_action` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `habit`.`h_plan_action_log` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `habit`.`h_plan_action_log` ( `i_id` INT NOT NULL, `i_planlogid` INT NULL COMMENT 'ๆœฌๆฌก่ฎญ็ปƒ็š„่ฎญ็ปƒๆ—ฅๅฟ—๏ผŒๅŒๆฌก่ฎญ็ปƒ็š„plan_log_id็›ธๅŒ', `i_planid` INT NULL COMMENT '่ฎญ็ปƒ็š„id', `i_actionid` INT NULL COMMENT 'ๅŠจไฝœ็š„id', `v_planname` VARCHAR(45) NULL COMMENT 'ๆ‰€ๅฑž่ฎญ็ปƒ็š„ๅ็งฐ', `v_actionname` VARCHAR(45) NULL COMMENT 'ๆ‰€ๅฑžๅŠจไฝœ็š„ๅ็งฐ', `ti_actiontype` TINYINT NULL COMMENT 'ๆ‰€ๅฑžๅŠจไฝœ็š„็ฑปๅž‹๏ผŒ0่ฎฐๆฌกๅŠจไฝœ๏ผŒ1่ฎกๆ—ถๅŠจไฝœ', `v_actionunit` VARCHAR(45) NULL COMMENT 'ๅฆ‚ๆžœๆ˜ฏ่ฎฐๆฌกๅŠจไฝœ๏ผŒๅˆ™่กจ็คบ่ฎฐๆฌกๅ•ไฝ', `i_numbyplan` INT NULL COMMENT 'ๆœฌๆฌก่ฎญ็ปƒ็š„็ฌฌๅ‡ ็ป„', `f_scoreweight` FLOAT NULL COMMENT 'ๆœฌ็ป„่ฎญ็ปƒ็š„่ดŸ้‡', `i_scorenum` INT NULL COMMENT 'ๆœฌ็ป„ๅŠจไฝœ็š„ๅฎŒๆˆๆฌกๆ•ฐ', `v_comments` VARCHAR(45) NULL COMMENT 'ๆ„Ÿๆ‚Ÿๅค‡ๆณจ', `i_scoretime` INT NULL COMMENT 'ๆœฌ็ป„่ฎญ็ปƒ็š„ๆŒ็ปญๆ—ถ้—ด', `dt_cdate` DATETIME NULL COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด\n', `dt_ledate` DATETIME NULL COMMENT 'ๆœ€ๅŽไฟฎๆ”นๆ—ถ้—ด', `ti_state` TINYINT NULL COMMENT '็Šถๆ€๏ผŒ0่ฎญ็ปƒไธญ๏ผŒ1่ฎญ็ปƒๅฎŒๆˆ', PRIMARY KEY (`i_id`), INDEX `plan_id_idx` (`i_planid` ASC), INDEX `action_id_idx` (`i_actionid` ASC), CONSTRAINT `h_plan_action_log_plan_id` FOREIGN KEY (`i_planid`) REFERENCES `habit`.`h_plan` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `h_plan_action_log_action_id` FOREIGN KEY (`i_actionid`) REFERENCES `habit`.`h_action` (`i_id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
true
ce36853f5ce1d68040deeb95c86bc1fa14880613
SQL
Ruidouk/git_pratice
/population_years.sql
UTF-8
157,043
2.671875
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "population_years" ( "country" STRING NOT NULL, "population" NUMBER, "year" NUMBER ); INSERT INTO "population_years" VALUES ('Bermuda',0.06306,2000); INSERT INTO "population_years" VALUES ('Bermuda',0.06361,2001); INSERT INTO "population_years" VALUES ('Bermuda',0.06418,2002); INSERT INTO "population_years" VALUES ('Bermuda',0.06476,2003); INSERT INTO "population_years" VALUES ('Bermuda',0.06534,2004); INSERT INTO "population_years" VALUES ('Bermuda',0.06591,2005); INSERT INTO "population_years" VALUES ('Bermuda',0.06644,2006); INSERT INTO "population_years" VALUES ('Bermuda',0.06692,2007); INSERT INTO "population_years" VALUES ('Bermuda',0.06739,2008); INSERT INTO "population_years" VALUES ('Bermuda',0.06784,2009); INSERT INTO "population_years" VALUES ('Bermuda',0.06827,2010); INSERT INTO "population_years" VALUES ('Canada',31.09956,2000); INSERT INTO "population_years" VALUES ('Canada',31.37674,2001); INSERT INTO "population_years" VALUES ('Canada',31.64096,2002); INSERT INTO "population_years" VALUES ('Canada',31.88931,2003); INSERT INTO "population_years" VALUES ('Canada',32.13476,2004); INSERT INTO "population_years" VALUES ('Canada',32.38638,2005); INSERT INTO "population_years" VALUES ('Canada',32.65668,2006); INSERT INTO "population_years" VALUES ('Canada',32.93596,2007); INSERT INTO "population_years" VALUES ('Canada',33.2127,2008); INSERT INTO "population_years" VALUES ('Canada',33.48721,2009); INSERT INTO "population_years" VALUES ('Canada',33.75974,2010); INSERT INTO "population_years" VALUES ('Greenland',0.05689,2000); INSERT INTO "population_years" VALUES ('Greenland',0.05713,2001); INSERT INTO "population_years" VALUES ('Greenland',0.05736,2002); INSERT INTO "population_years" VALUES ('Greenland',0.05754,2003); INSERT INTO "population_years" VALUES ('Greenland',0.0577,2004); INSERT INTO "population_years" VALUES ('Greenland',0.05778,2005); INSERT INTO "population_years" VALUES ('Greenland',0.05764,2006); INSERT INTO "population_years" VALUES ('Greenland',0.05753,2007); INSERT INTO "population_years" VALUES ('Greenland',0.05756,2008); INSERT INTO "population_years" VALUES ('Greenland',0.0576,2009); INSERT INTO "population_years" VALUES ('Greenland',0.05764,2010); INSERT INTO "population_years" VALUES ('Mexico',99.92662,2000); INSERT INTO "population_years" VALUES ('Mexico',101.24696,2001); INSERT INTO "population_years" VALUES ('Mexico',102.47993,2002); INSERT INTO "population_years" VALUES ('Mexico',103.71806,2003); INSERT INTO "population_years" VALUES ('Mexico',104.95959,2004); INSERT INTO "population_years" VALUES ('Mexico',106.2029,2005); INSERT INTO "population_years" VALUES ('Mexico',107.44953,2006); INSERT INTO "population_years" VALUES ('Mexico',108.70089,2007); INSERT INTO "population_years" VALUES ('Mexico',109.9554,2008); INSERT INTO "population_years" VALUES ('Mexico',111.21179,2009); INSERT INTO "population_years" VALUES ('Mexico',112.46886,2010); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00641,2000); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00637,2001); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00633,2002); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00629,2003); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00625,2004); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.0062,2005); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00615,2006); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.0061,2007); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00605,2008); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.006,2009); INSERT INTO "population_years" VALUES ('Saint Pierre and Miquelon',0.00594,2010); INSERT INTO "population_years" VALUES ('United States',282.17196,2000); INSERT INTO "population_years" VALUES ('United States',285.08156,2001); INSERT INTO "population_years" VALUES ('United States',287.80391,2002); INSERT INTO "population_years" VALUES ('United States',290.32642,2003); INSERT INTO "population_years" VALUES ('United States',293.04574,2004); INSERT INTO "population_years" VALUES ('United States',295.75315,2005); INSERT INTO "population_years" VALUES ('United States',298.59321,2006); INSERT INTO "population_years" VALUES ('United States',301.5799,2007); INSERT INTO "population_years" VALUES ('United States',304.37485,2008); INSERT INTO "population_years" VALUES ('United States',307.00655,2009); INSERT INTO "population_years" VALUES ('United States',310.23286,2010); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.07535,2000); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.07673,2001); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.07794,2002); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.07907,2003); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.08019,2004); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.08128,2005); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.08234,2006); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.08343,2007); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.08452,2008); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.08563,2009); INSERT INTO "population_years" VALUES ('Antigua and Barbuda',0.08675,2010); INSERT INTO "population_years" VALUES ('Argentina',37.33565,2000); INSERT INTO "population_years" VALUES ('Argentina',37.69417,2001); INSERT INTO "population_years" VALUES ('Argentina',37.99945,2002); INSERT INTO "population_years" VALUES ('Argentina',38.33688,2003); INSERT INTO "population_years" VALUES ('Argentina',38.74183,2004); INSERT INTO "population_years" VALUES ('Argentina',39.18126,2005); INSERT INTO "population_years" VALUES ('Argentina',39.61443,2006); INSERT INTO "population_years" VALUES ('Argentina',40.04882,2007); INSERT INTO "population_years" VALUES ('Argentina',40.482,2008); INSERT INTO "population_years" VALUES ('Argentina',40.91358,2009); INSERT INTO "population_years" VALUES ('Argentina',41.3432,2010); INSERT INTO "population_years" VALUES ('Aruba',0.09,2000); INSERT INTO "population_years" VALUES ('Aruba',0.09097,2001); INSERT INTO "population_years" VALUES ('Aruba',0.09217,2002); INSERT INTO "population_years" VALUES ('Aruba',0.09372,2003); INSERT INTO "population_years" VALUES ('Aruba',0.09546,2004); INSERT INTO "population_years" VALUES ('Aruba',0.09698,2005); INSERT INTO "population_years" VALUES ('Aruba',0.0985,2006); INSERT INTO "population_years" VALUES ('Aruba',0.10002,2007); INSERT INTO "population_years" VALUES ('Aruba',0.10154,2008); INSERT INTO "population_years" VALUES ('Aruba',0.10307,2009); INSERT INTO "population_years" VALUES ('Aruba',0.10459,2010); INSERT INTO "population_years" VALUES ('Bahamas, The',0.28259,2000); INSERT INTO "population_years" VALUES ('Bahamas, The',0.28569,2001); INSERT INTO "population_years" VALUES ('Bahamas, The',0.28858,2002); INSERT INTO "population_years" VALUES ('Bahamas, The',0.29135,2003); INSERT INTO "population_years" VALUES ('Bahamas, The',0.29406,2004); INSERT INTO "population_years" VALUES ('Bahamas, The',0.29671,2005); INSERT INTO "population_years" VALUES ('Bahamas, The',0.29929,2006); INSERT INTO "population_years" VALUES ('Bahamas, The',0.30197,2007); INSERT INTO "population_years" VALUES ('Bahamas, The',0.30473,2008); INSERT INTO "population_years" VALUES ('Bahamas, The',0.30755,2009); INSERT INTO "population_years" VALUES ('Bahamas, The',0.31043,2010); INSERT INTO "population_years" VALUES ('Barbados',0.27368,2000); INSERT INTO "population_years" VALUES ('Barbados',0.27491,2001); INSERT INTO "population_years" VALUES ('Barbados',0.27622,2002); INSERT INTO "population_years" VALUES ('Barbados',0.27755,2003); INSERT INTO "population_years" VALUES ('Barbados',0.27882,2004); INSERT INTO "population_years" VALUES ('Barbados',0.28004,2005); INSERT INTO "population_years" VALUES ('Barbados',0.28121,2006); INSERT INTO "population_years" VALUES ('Barbados',0.28236,2007); INSERT INTO "population_years" VALUES ('Barbados',0.2835,2008); INSERT INTO "population_years" VALUES ('Barbados',0.28459,2009); INSERT INTO "population_years" VALUES ('Barbados',0.28565,2010); INSERT INTO "population_years" VALUES ('Belize',0.248,2000); INSERT INTO "population_years" VALUES ('Belize',0.25464,2001); INSERT INTO "population_years" VALUES ('Belize',0.2613,2002); INSERT INTO "population_years" VALUES ('Belize',0.26796,2003); INSERT INTO "population_years" VALUES ('Belize',0.27462,2004); INSERT INTO "population_years" VALUES ('Belize',0.28129,2005); INSERT INTO "population_years" VALUES ('Belize',0.28795,2006); INSERT INTO "population_years" VALUES ('Belize',0.29461,2007); INSERT INTO "population_years" VALUES ('Belize',0.30127,2008); INSERT INTO "population_years" VALUES ('Belize',0.3079,2009); INSERT INTO "population_years" VALUES ('Belize',0.31452,2010); INSERT INTO "population_years" VALUES ('Bolivia',8.1951,2000); INSERT INTO "population_years" VALUES ('Bolivia',8.36745,2001); INSERT INTO "population_years" VALUES ('Bolivia',8.54249,2002); INSERT INTO "population_years" VALUES ('Bolivia',8.71906,2003); INSERT INTO "population_years" VALUES ('Bolivia',8.89597,2004); INSERT INTO "population_years" VALUES ('Bolivia',9.07294,2005); INSERT INTO "population_years" VALUES ('Bolivia',9.24971,2006); INSERT INTO "population_years" VALUES ('Bolivia',9.42594,2007); INSERT INTO "population_years" VALUES ('Bolivia',9.60126,2008); INSERT INTO "population_years" VALUES ('Bolivia',9.77525,2009); INSERT INTO "population_years" VALUES ('Bolivia',9.94742,2010); INSERT INTO "population_years" VALUES ('Brazil',176.31962,2000); INSERT INTO "population_years" VALUES ('Brazil',178.86966,2001); INSERT INTO "population_years" VALUES ('Brazil',181.41759,2002); INSERT INTO "population_years" VALUES ('Brazil',183.95992,2003); INSERT INTO "population_years" VALUES ('Brazil',186.4886,2004); INSERT INTO "population_years" VALUES ('Brazil',188.99308,2005); INSERT INTO "population_years" VALUES ('Brazil',191.46901,2006); INSERT INTO "population_years" VALUES ('Brazil',193.91858,2007); INSERT INTO "population_years" VALUES ('Brazil',196.34259,2008); INSERT INTO "population_years" VALUES ('Brazil',198.73927,2009); INSERT INTO "population_years" VALUES ('Brazil',201.10333,2010); INSERT INTO "population_years" VALUES ('Cayman Islands',0.03844,2000); INSERT INTO "population_years" VALUES ('Cayman Islands',0.03962,2001); INSERT INTO "population_years" VALUES ('Cayman Islands',0.0408,2002); INSERT INTO "population_years" VALUES ('Cayman Islands',0.04199,2003); INSERT INTO "population_years" VALUES ('Cayman Islands',0.04316,2004); INSERT INTO "population_years" VALUES ('Cayman Islands',0.04434,2005); INSERT INTO "population_years" VALUES ('Cayman Islands',0.04552,2006); INSERT INTO "population_years" VALUES ('Cayman Islands',0.04669,2007); INSERT INTO "population_years" VALUES ('Cayman Islands',0.04786,2008); INSERT INTO "population_years" VALUES ('Cayman Islands',0.04904,2009); INSERT INTO "population_years" VALUES ('Cayman Islands',0.05021,2010); INSERT INTO "population_years" VALUES ('Chile',15.15574,2000); INSERT INTO "population_years" VALUES ('Chile',15.33189,2001); INSERT INTO "population_years" VALUES ('Chile',15.50394,2002); INSERT INTO "population_years" VALUES ('Chile',15.67191,2003); INSERT INTO "population_years" VALUES ('Chile',15.83563,2004); INSERT INTO "population_years" VALUES ('Chile',15.99504,2005); INSERT INTO "population_years" VALUES ('Chile',16.15084,2006); INSERT INTO "population_years" VALUES ('Chile',16.30385,2007); INSERT INTO "population_years" VALUES ('Chile',16.45414,2008); INSERT INTO "population_years" VALUES ('Chile',16.60171,2009); INSERT INTO "population_years" VALUES ('Chile',16.74649,2010); INSERT INTO "population_years" VALUES ('Colombia',38.91035,2000); INSERT INTO "population_years" VALUES ('Colombia',39.31245,2001); INSERT INTO "population_years" VALUES ('Colombia',39.80495,2002); INSERT INTO "population_years" VALUES ('Colombia',40.35102,2003); INSERT INTO "population_years" VALUES ('Colombia',40.92215,2004); INSERT INTO "population_years" VALUES ('Colombia',41.48778,2005); INSERT INTO "population_years" VALUES ('Colombia',42.04625,2006); INSERT INTO "population_years" VALUES ('Colombia',42.59732,2007); INSERT INTO "population_years" VALUES ('Colombia',43.14111,2008); INSERT INTO "population_years" VALUES ('Colombia',43.67737,2009); INSERT INTO "population_years" VALUES ('Colombia',44.20529,2010); INSERT INTO "population_years" VALUES ('Costa Rica',3.88258,2000); INSERT INTO "population_years" VALUES ('Costa Rica',3.95621,2001); INSERT INTO "population_years" VALUES ('Costa Rica',4.02095,2002); INSERT INTO "population_years" VALUES ('Costa Rica',4.08382,2003); INSERT INTO "population_years" VALUES ('Costa Rica',4.1467,2004); INSERT INTO "population_years" VALUES ('Costa Rica',4.20869,2005); INSERT INTO "population_years" VALUES ('Costa Rica',4.26977,2006); INSERT INTO "population_years" VALUES ('Costa Rica',4.33113,2007); INSERT INTO "population_years" VALUES ('Costa Rica',4.39324,2008); INSERT INTO "population_years" VALUES ('Costa Rica',4.45505,2009); INSERT INTO "population_years" VALUES ('Costa Rica',4.51622,2010); INSERT INTO "population_years" VALUES ('Cuba',11.10586,2000); INSERT INTO "population_years" VALUES ('Cuba',11.15582,2001); INSERT INTO "population_years" VALUES ('Cuba',11.20269,2002); INSERT INTO "population_years" VALUES ('Cuba',11.24668,2003); INSERT INTO "population_years" VALUES ('Cuba',11.28785,2004); INSERT INTO "population_years" VALUES ('Cuba',11.32615,2005); INSERT INTO "population_years" VALUES ('Cuba',11.36155,2006); INSERT INTO "population_years" VALUES ('Cuba',11.39404,2007); INSERT INTO "population_years" VALUES ('Cuba',11.42395,2008); INSERT INTO "population_years" VALUES ('Cuba',11.45165,2009); INSERT INTO "population_years" VALUES ('Cuba',11.47746,2010); INSERT INTO "population_years" VALUES ('Dominica',0.07082,2000); INSERT INTO "population_years" VALUES ('Dominica',0.07121,2001); INSERT INTO "population_years" VALUES ('Dominica',0.07153,2002); INSERT INTO "population_years" VALUES ('Dominica',0.07173,2003); INSERT INTO "population_years" VALUES ('Dominica',0.07193,2004); INSERT INTO "population_years" VALUES ('Dominica',0.07212,2005); INSERT INTO "population_years" VALUES ('Dominica',0.07225,2006); INSERT INTO "population_years" VALUES ('Dominica',0.07238,2007); INSERT INTO "population_years" VALUES ('Dominica',0.07251,2008); INSERT INTO "population_years" VALUES ('Dominica',0.07266,2009); INSERT INTO "population_years" VALUES ('Dominica',0.07281,2010); INSERT INTO "population_years" VALUES ('Dominican Republic',8.46891,2000); INSERT INTO "population_years" VALUES ('Dominican Republic',8.61355,2001); INSERT INTO "population_years" VALUES ('Dominican Republic',8.7569,2002); INSERT INTO "population_years" VALUES ('Dominican Republic',8.89658,2003); INSERT INTO "population_years" VALUES ('Dominican Republic',9.03239,2004); INSERT INTO "population_years" VALUES ('Dominican Republic',9.16447,2005); INSERT INTO "population_years" VALUES ('Dominican Republic',9.29504,2006); INSERT INTO "population_years" VALUES ('Dominican Republic',9.42623,2007); INSERT INTO "population_years" VALUES ('Dominican Republic',9.55818,2008); INSERT INTO "population_years" VALUES ('Dominican Republic',9.69079,2009); INSERT INTO "population_years" VALUES ('Dominican Republic',9.82382,2010); INSERT INTO "population_years" VALUES ('Ecuador',12.44584,2000); INSERT INTO "population_years" VALUES ('Ecuador',12.62912,2001); INSERT INTO "population_years" VALUES ('Ecuador',12.82728,2002); INSERT INTO "population_years" VALUES ('Ecuador',13.07418,2003); INSERT INTO "population_years" VALUES ('Ecuador',13.3684,2004); INSERT INTO "population_years" VALUES ('Ecuador',13.66232,2005); INSERT INTO "population_years" VALUES ('Ecuador',13.91706,2006); INSERT INTO "population_years" VALUES ('Ecuador',14.13496,2007); INSERT INTO "population_years" VALUES ('Ecuador',14.35447,2008); INSERT INTO "population_years" VALUES ('Ecuador',14.5731,2009); INSERT INTO "population_years" VALUES ('Ecuador',14.79061,2010); INSERT INTO "population_years" VALUES ('El Salvador',5.84982,2000); INSERT INTO "population_years" VALUES ('El Salvador',5.8837,2001); INSERT INTO "population_years" VALUES ('El Salvador',5.90183,2002); INSERT INTO "population_years" VALUES ('El Salvador',5.91985,2003); INSERT INTO "population_years" VALUES ('El Salvador',5.93512,2004); INSERT INTO "population_years" VALUES ('El Salvador',5.95622,2005); INSERT INTO "population_years" VALUES ('El Salvador',5.97089,2006); INSERT INTO "population_years" VALUES ('El Salvador',5.98175,2007); INSERT INTO "population_years" VALUES ('El Salvador',6.00645,2008); INSERT INTO "population_years" VALUES ('El Salvador',6.0306,2009); INSERT INTO "population_years" VALUES ('El Salvador',6.05206,2010); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00285,2000); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.0029,2001); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00293,2002); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00297,2003); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00297,2004); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00297,2005); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00297,2006); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00297,2007); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00314,2008); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00314,2009); INSERT INTO "population_years" VALUES ('Falkland Islands (Islas Malvinas)',0.00314,2010); INSERT INTO "population_years" VALUES ('French Guiana',0.17,2000); INSERT INTO "population_years" VALUES ('French Guiana',0.17756,2001); INSERT INTO "population_years" VALUES ('French Guiana',0.18224,2002); INSERT INTO "population_years" VALUES ('French Guiana',0.18692,2003); INSERT INTO "population_years" VALUES ('French Guiana',0.19131,2004); INSERT INTO "population_years" VALUES ('French Guiana',0.19131,2005); INSERT INTO "population_years" VALUES ('French Guiana',0.19131,2006); INSERT INTO "population_years" VALUES ('French Guiana',0.19131,2007); INSERT INTO "population_years" VALUES ('French Guiana',0.19131,2008); INSERT INTO "population_years" VALUES ('French Guiana',0.19131,2009); INSERT INTO "population_years" VALUES ('French Guiana',0.19131,2010); INSERT INTO "population_years" VALUES ('Grenada',0.10161,2000); INSERT INTO "population_years" VALUES ('Grenada',0.10229,2001); INSERT INTO "population_years" VALUES ('Grenada',0.10284,2002); INSERT INTO "population_years" VALUES ('Grenada',0.10332,2003); INSERT INTO "population_years" VALUES ('Grenada',0.10397,2004); INSERT INTO "population_years" VALUES ('Grenada',0.10459,2005); INSERT INTO "population_years" VALUES ('Grenada',0.1052,2006); INSERT INTO "population_years" VALUES ('Grenada',0.10589,2007); INSERT INTO "population_years" VALUES ('Grenada',0.10656,2008); INSERT INTO "population_years" VALUES ('Grenada',0.1072,2009); INSERT INTO "population_years" VALUES ('Grenada',0.10782,2010); INSERT INTO "population_years" VALUES ('Guadeloupe',0.43,2000); INSERT INTO "population_years" VALUES ('Guadeloupe',0.43117,2001); INSERT INTO "population_years" VALUES ('Guadeloupe',0.43568,2002); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44019,2003); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44452,2004); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44452,2005); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44452,2006); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44452,2007); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44452,2008); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44452,2009); INSERT INTO "population_years" VALUES ('Guadeloupe',0.44452,2010); INSERT INTO "population_years" VALUES ('Guatemala',11.08503,2000); INSERT INTO "population_years" VALUES ('Guatemala',11.28435,2001); INSERT INTO "population_years" VALUES ('Guatemala',11.50667,2002); INSERT INTO "population_years" VALUES ('Guatemala',11.72521,2003); INSERT INTO "population_years" VALUES ('Guatemala',11.93999,2004); INSERT INTO "population_years" VALUES ('Guatemala',12.18255,2005); INSERT INTO "population_years" VALUES ('Guatemala',12.45475,2006); INSERT INTO "population_years" VALUES ('Guatemala',12.72811,2007); INSERT INTO "population_years" VALUES ('Guatemala',13.00221,2008); INSERT INTO "population_years" VALUES ('Guatemala',13.27652,2009); INSERT INTO "population_years" VALUES ('Guatemala',13.55044,2010); INSERT INTO "population_years" VALUES ('Guyana',0.78556,2000); INSERT INTO "population_years" VALUES ('Guyana',0.78626,2001); INSERT INTO "population_years" VALUES ('Guyana',0.78273,2002); INSERT INTO "population_years" VALUES ('Guyana',0.77981,2003); INSERT INTO "population_years" VALUES ('Guyana',0.77948,2004); INSERT INTO "population_years" VALUES ('Guyana',0.7765,2005); INSERT INTO "population_years" VALUES ('Guyana',0.77021,2006); INSERT INTO "population_years" VALUES ('Guyana',0.76381,2007); INSERT INTO "population_years" VALUES ('Guyana',0.75806,2008); INSERT INTO "population_years" VALUES ('Guyana',0.75294,2009); INSERT INTO "population_years" VALUES ('Guyana',0.74849,2010); INSERT INTO "population_years" VALUES ('Haiti',8.41289,2000); INSERT INTO "population_years" VALUES ('Haiti',8.56858,2001); INSERT INTO "population_years" VALUES ('Haiti',8.72319,2002); INSERT INTO "population_years" VALUES ('Haiti',8.88367,2003); INSERT INTO "population_years" VALUES ('Haiti',9.04569,2004); INSERT INTO "population_years" VALUES ('Haiti',9.20467,2005); INSERT INTO "population_years" VALUES ('Haiti',9.35756,2006); INSERT INTO "population_years" VALUES ('Haiti',9.50049,2007); INSERT INTO "population_years" VALUES ('Haiti',9.63908,2008); INSERT INTO "population_years" VALUES ('Haiti',9.77797,2009); INSERT INTO "population_years" VALUES ('Haiti',9.64892,2010); INSERT INTO "population_years" VALUES ('Honduras',6.3594,2000); INSERT INTO "population_years" VALUES ('Honduras',6.52698,2001); INSERT INTO "population_years" VALUES ('Honduras',6.69369,2002); INSERT INTO "population_years" VALUES ('Honduras',6.86205,2003); INSERT INTO "population_years" VALUES ('Honduras',7.02944,2004); INSERT INTO "population_years" VALUES ('Honduras',7.19307,2005); INSERT INTO "population_years" VALUES ('Honduras',7.35516,2006); INSERT INTO "population_years" VALUES ('Honduras',7.51621,2007); INSERT INTO "population_years" VALUES ('Honduras',7.67585,2008); INSERT INTO "population_years" VALUES ('Honduras',7.8337,2009); INSERT INTO "population_years" VALUES ('Honduras',7.98942,2010); INSERT INTO "population_years" VALUES ('Jamaica',2.61563,2000); INSERT INTO "population_years" VALUES ('Jamaica',2.64051,2001); INSERT INTO "population_years" VALUES ('Jamaica',2.66498,2002); INSERT INTO "population_years" VALUES ('Jamaica',2.68915,2003); INSERT INTO "population_years" VALUES ('Jamaica',2.713,2004); INSERT INTO "population_years" VALUES ('Jamaica',2.73651,2005); INSERT INTO "population_years" VALUES ('Jamaica',2.75961,2006); INSERT INTO "population_years" VALUES ('Jamaica',2.78222,2007); INSERT INTO "population_years" VALUES ('Jamaica',2.80433,2008); INSERT INTO "population_years" VALUES ('Jamaica',2.82593,2009); INSERT INTO "population_years" VALUES ('Jamaica',2.84723,2010); INSERT INTO "population_years" VALUES ('Martinique',0.416,2000); INSERT INTO "population_years" VALUES ('Martinique',0.41845,2001); INSERT INTO "population_years" VALUES ('Martinique',0.42223,2002); INSERT INTO "population_years" VALUES ('Martinique',0.426,2003); INSERT INTO "population_years" VALUES ('Martinique',0.426,2004); INSERT INTO "population_years" VALUES ('Martinique',0.426,2005); INSERT INTO "population_years" VALUES ('Martinique',0.426,2006); INSERT INTO "population_years" VALUES ('Martinique',0.426,2007); INSERT INTO "population_years" VALUES ('Martinique',0.426,2008); INSERT INTO "population_years" VALUES ('Martinique',0.426,2009); INSERT INTO "population_years" VALUES ('Martinique',0.426,2010); INSERT INTO "population_years" VALUES ('Montserrat',0.00395,2000); INSERT INTO "population_years" VALUES ('Montserrat',0.00424,2001); INSERT INTO "population_years" VALUES ('Montserrat',0.00481,2002); INSERT INTO "population_years" VALUES ('Montserrat',0.00449,2003); INSERT INTO "population_years" VALUES ('Montserrat',0.00496,2004); INSERT INTO "population_years" VALUES ('Montserrat',0.00453,2005); INSERT INTO "population_years" VALUES ('Montserrat',0.00463,2006); INSERT INTO "population_years" VALUES ('Montserrat',0.00451,2007); INSERT INTO "population_years" VALUES ('Montserrat',0.00508,2008); INSERT INTO "population_years" VALUES ('Montserrat',0.0051,2009); INSERT INTO "population_years" VALUES ('Montserrat',0.00512,2010); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.21018,2000); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.21229,2001); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.21434,2002); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.21632,2003); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.21824,2004); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.2201,2005); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.22189,2006); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.22365,2007); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.22537,2008); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.22705,2009); INSERT INTO "population_years" VALUES ('Netherlands Antilles',0.22869,2010); INSERT INTO "population_years" VALUES ('Nicaragua',4.93515,2000); INSERT INTO "population_years" VALUES ('Nicaragua',5.04262,2001); INSERT INTO "population_years" VALUES ('Nicaragua',5.14998,2002); INSERT INTO "population_years" VALUES ('Nicaragua',5.25701,2003); INSERT INTO "population_years" VALUES ('Nicaragua',5.36349,2004); INSERT INTO "population_years" VALUES ('Nicaragua',5.46918,2005); INSERT INTO "population_years" VALUES ('Nicaragua',5.57459,2006); INSERT INTO "population_years" VALUES ('Nicaragua',5.68021,2007); INSERT INTO "population_years" VALUES ('Nicaragua',5.78585,2008); INSERT INTO "population_years" VALUES ('Nicaragua',5.8912,2009); INSERT INTO "population_years" VALUES ('Nicaragua',5.99593,2010); INSERT INTO "population_years" VALUES ('Panama',2.89951,2000); INSERT INTO "population_years" VALUES ('Panama',2.95229,2001); INSERT INTO "population_years" VALUES ('Panama',3.00342,2002); INSERT INTO "population_years" VALUES ('Panama',3.05361,2003); INSERT INTO "population_years" VALUES ('Panama',3.10418,2004); INSERT INTO "population_years" VALUES ('Panama',3.15503,2005); INSERT INTO "population_years" VALUES ('Panama',3.20648,2006); INSERT INTO "population_years" VALUES ('Panama',3.25833,2007); INSERT INTO "population_years" VALUES ('Panama',3.30968,2008); INSERT INTO "population_years" VALUES ('Panama',3.36047,2009); INSERT INTO "population_years" VALUES ('Panama',3.41068,2010); INSERT INTO "population_years" VALUES ('Paraguay',5.41824,2000); INSERT INTO "population_years" VALUES ('Paraguay',5.5234,2001); INSERT INTO "population_years" VALUES ('Paraguay',5.62689,2002); INSERT INTO "population_years" VALUES ('Paraguay',5.72855,2003); INSERT INTO "population_years" VALUES ('Paraguay',5.82816,2004); INSERT INTO "population_years" VALUES ('Paraguay',5.92554,2005); INSERT INTO "population_years" VALUES ('Paraguay',6.02047,2006); INSERT INTO "population_years" VALUES ('Paraguay',6.113,2007); INSERT INTO "population_years" VALUES ('Paraguay',6.2032,2008); INSERT INTO "population_years" VALUES ('Paraguay',6.29088,2009); INSERT INTO "population_years" VALUES ('Paraguay',6.37583,2010); INSERT INTO "population_years" VALUES ('Peru',26.0867,2000); INSERT INTO "population_years" VALUES ('Peru',26.48533,2001); INSERT INTO "population_years" VALUES ('Peru',26.88171,2002); INSERT INTO "population_years" VALUES ('Peru',27.2752,2003); INSERT INTO "population_years" VALUES ('Peru',27.66518,2004); INSERT INTO "population_years" VALUES ('Peru',28.05111,2005); INSERT INTO "population_years" VALUES ('Peru',28.43259,2006); INSERT INTO "population_years" VALUES ('Peru',28.8093,2007); INSERT INTO "population_years" VALUES ('Peru',29.1809,2008); INSERT INTO "population_years" VALUES ('Peru',29.54696,2009); INSERT INTO "population_years" VALUES ('Peru',29.907,2010); INSERT INTO "population_years" VALUES ('Puerto Rico',3.81441,2000); INSERT INTO "population_years" VALUES ('Puerto Rico',3.83777,2001); INSERT INTO "population_years" VALUES ('Puerto Rico',3.85827,2002); INSERT INTO "population_years" VALUES ('Puerto Rico',3.87664,2003); INSERT INTO "population_years" VALUES ('Puerto Rico',3.89393,2004); INSERT INTO "population_years" VALUES ('Puerto Rico',3.91072,2005); INSERT INTO "population_years" VALUES ('Puerto Rico',3.92674,2006); INSERT INTO "population_years" VALUES ('Puerto Rico',3.94124,2007); INSERT INTO "population_years" VALUES ('Puerto Rico',3.95455,2008); INSERT INTO "population_years" VALUES ('Puerto Rico',3.96729,2009); INSERT INTO "population_years" VALUES ('Puerto Rico',3.9787,2010); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04566,2000); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04619,2001); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04669,2002); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04714,2003); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04753,2004); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.0479,2005); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04828,2006); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04866,2007); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04906,2008); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.04948,2009); INSERT INTO "population_years" VALUES ('Saint Kitts and Nevis',0.0499,2010); INSERT INTO "population_years" VALUES ('Saint Lucia',0.1533,2000); INSERT INTO "population_years" VALUES ('Saint Lucia',0.1544,2001); INSERT INTO "population_years" VALUES ('Saint Lucia',0.1553,2002); INSERT INTO "population_years" VALUES ('Saint Lucia',0.15601,2003); INSERT INTO "population_years" VALUES ('Saint Lucia',0.15666,2004); INSERT INTO "population_years" VALUES ('Saint Lucia',0.15737,2005); INSERT INTO "population_years" VALUES ('Saint Lucia',0.15813,2006); INSERT INTO "population_years" VALUES ('Saint Lucia',0.15887,2007); INSERT INTO "population_years" VALUES ('Saint Lucia',0.15959,2008); INSERT INTO "population_years" VALUES ('Saint Lucia',0.16027,2009); INSERT INTO "population_years" VALUES ('Saint Lucia',0.16092,2010); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10786,2000); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10761,2001); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10726,2002); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10688,2003); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10648,2004); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10607,2005); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10569,2006); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10531,2007); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10494,2008); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10457,2009); INSERT INTO "population_years" VALUES ('Saint Vincent/Grenadines',0.10422,2010); INSERT INTO "population_years" VALUES ('Suriname',0.43249,2000); INSERT INTO "population_years" VALUES ('Suriname',0.43851,2001); INSERT INTO "population_years" VALUES ('Suriname',0.44433,2002); INSERT INTO "population_years" VALUES ('Suriname',0.44993,2003); INSERT INTO "population_years" VALUES ('Suriname',0.45532,2004); INSERT INTO "population_years" VALUES ('Suriname',0.4605,2005); INSERT INTO "population_years" VALUES ('Suriname',0.46561,2006); INSERT INTO "population_years" VALUES ('Suriname',0.47078,2007); INSERT INTO "population_years" VALUES ('Suriname',0.476,2008); INSERT INTO "population_years" VALUES ('Suriname',0.48127,2009); INSERT INTO "population_years" VALUES ('Suriname',0.48662,2010); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.25178,2000); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.24905,2001); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.24584,2002); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.24243,2003); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.23933,2004); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.23669,2005); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.23456,2006); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.23281,2007); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.23132,2008); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.22995,2009); INSERT INTO "population_years" VALUES ('Trinidad and Tobago',1.22869,2010); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.01751,2000); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.01813,2001); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.01875,2002); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.01936,2003); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.01997,2004); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.02057,2005); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.02117,2006); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.02176,2007); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.02235,2008); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.02294,2009); INSERT INTO "population_years" VALUES ('Turks and Caicos Islands',0.02353,2010); INSERT INTO "population_years" VALUES ('Uruguay',3.32808,2000); INSERT INTO "population_years" VALUES ('Uruguay',3.34802,2001); INSERT INTO "population_years" VALUES ('Uruguay',3.36782,2002); INSERT INTO "population_years" VALUES ('Uruguay',3.38734,2003); INSERT INTO "population_years" VALUES ('Uruguay',3.40639,2004); INSERT INTO "population_years" VALUES ('Uruguay',3.42489,2005); INSERT INTO "population_years" VALUES ('Uruguay',3.44295,2006); INSERT INTO "population_years" VALUES ('Uruguay',3.46061,2007); INSERT INTO "population_years" VALUES ('Uruguay',3.47778,2008); INSERT INTO "population_years" VALUES ('Uruguay',3.49438,2009); INSERT INTO "population_years" VALUES ('Uruguay',3.51039,2010); INSERT INTO "population_years" VALUES ('Venezuela',23.49275,2000); INSERT INTO "population_years" VALUES ('Venezuela',23.84387,2001); INSERT INTO "population_years" VALUES ('Venezuela',24.19177,2002); INSERT INTO "population_years" VALUES ('Venezuela',24.54543,2003); INSERT INTO "population_years" VALUES ('Venezuela',24.90462,2004); INSERT INTO "population_years" VALUES ('Venezuela',25.26918,2005); INSERT INTO "population_years" VALUES ('Venezuela',25.64146,2006); INSERT INTO "population_years" VALUES ('Venezuela',26.02353,2007); INSERT INTO "population_years" VALUES ('Venezuela',26.41482,2008); INSERT INTO "population_years" VALUES ('Venezuela',26.81484,2009); INSERT INTO "population_years" VALUES ('Venezuela',27.22323,2010); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10864,2000); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10875,2001); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10892,2002); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10915,2003); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10935,2004); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.1096,2005); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10976,2006); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10982,2007); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10983,2008); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10981,2009); INSERT INTO "population_years" VALUES ('Virgin Islands, U.S.',0.10975,2010); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02038,2000); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02084,2001); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.0213,2002); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02176,2003); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02222,2004); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02268,2005); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02313,2006); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02359,2007); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02404,2008); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02449,2009); INSERT INTO "population_years" VALUES ('Virgin Islands, British',0.02494,2010); INSERT INTO "population_years" VALUES ('Albania',3.15835,2000); INSERT INTO "population_years" VALUES ('Albania',3.128,2001); INSERT INTO "population_years" VALUES ('Albania',3.09803,2002); INSERT INTO "population_years" VALUES ('Albania',3.06967,2003); INSERT INTO "population_years" VALUES ('Albania',3.04564,2004); INSERT INTO "population_years" VALUES ('Albania',3.02453,2005); INSERT INTO "population_years" VALUES ('Albania',3.00578,2006); INSERT INTO "population_years" VALUES ('Albania',2.99158,2007); INSERT INTO "population_years" VALUES ('Albania',2.98412,2008); INSERT INTO "population_years" VALUES ('Albania',2.98254,2009); INSERT INTO "population_years" VALUES ('Albania',2.98695,2010); INSERT INTO "population_years" VALUES ('Austria',8.11341,2000); INSERT INTO "population_years" VALUES ('Austria',8.13169,2001); INSERT INTO "population_years" VALUES ('Austria',8.14831,2002); INSERT INTO "population_years" VALUES ('Austria',8.16266,2003); INSERT INTO "population_years" VALUES ('Austria',8.17476,2004); INSERT INTO "population_years" VALUES ('Austria',8.18469,2005); INSERT INTO "population_years" VALUES ('Austria',8.19288,2006); INSERT INTO "population_years" VALUES ('Austria',8.19978,2007); INSERT INTO "population_years" VALUES ('Austria',8.20553,2008); INSERT INTO "population_years" VALUES ('Austria',8.21028,2009); INSERT INTO "population_years" VALUES ('Austria',8.21416,2010); INSERT INTO "population_years" VALUES ('Belgium',10.26362,2000); INSERT INTO "population_years" VALUES ('Belgium',10.29168,2001); INSERT INTO "population_years" VALUES ('Belgium',10.31197,2002); INSERT INTO "population_years" VALUES ('Belgium',10.33082,2003); INSERT INTO "population_years" VALUES ('Belgium',10.34828,2004); INSERT INTO "population_years" VALUES ('Belgium',10.36439,2005); INSERT INTO "population_years" VALUES ('Belgium',10.37907,2006); INSERT INTO "population_years" VALUES ('Belgium',10.39223,2007); INSERT INTO "population_years" VALUES ('Belgium',10.40395,2008); INSERT INTO "population_years" VALUES ('Belgium',10.41434,2009); INSERT INTO "population_years" VALUES ('Belgium',10.42349,2010); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.03546,2000); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.11129,2001); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.16542,2002); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.24318,2003); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.34559,2004); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.43049,2005); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.49898,2006); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.5522,2007); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.59031,2008); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.61341,2009); INSERT INTO "population_years" VALUES ('Bosnia and Herzegovina',4.6216,2010); INSERT INTO "population_years" VALUES ('Bulgaria',7.8185,2000); INSERT INTO "population_years" VALUES ('Bulgaria',7.73842,2001); INSERT INTO "population_years" VALUES ('Bulgaria',7.6618,2002); INSERT INTO "population_years" VALUES ('Bulgaria',7.5884,2003); INSERT INTO "population_years" VALUES ('Bulgaria',7.51797,2004); INSERT INTO "population_years" VALUES ('Bulgaria',7.45035,2005); INSERT INTO "population_years" VALUES ('Bulgaria',7.38537,2006); INSERT INTO "population_years" VALUES ('Bulgaria',7.32286,2007); INSERT INTO "population_years" VALUES ('Bulgaria',7.26268,2008); INSERT INTO "population_years" VALUES ('Bulgaria',7.20469,2009); INSERT INTO "population_years" VALUES ('Bulgaria',7.14879,2010); INSERT INTO "population_years" VALUES ('Croatia',4.41083,2000); INSERT INTO "population_years" VALUES ('Croatia',4.43911,2001); INSERT INTO "population_years" VALUES ('Croatia',4.48102,2002); INSERT INTO "population_years" VALUES ('Croatia',4.49778,2003); INSERT INTO "population_years" VALUES ('Croatia',4.49687,2004); INSERT INTO "population_years" VALUES ('Croatia',4.4959,2005); INSERT INTO "population_years" VALUES ('Croatia',4.49475,2006); INSERT INTO "population_years" VALUES ('Croatia',4.49331,2007); INSERT INTO "population_years" VALUES ('Croatia',4.49154,2008); INSERT INTO "population_years" VALUES ('Croatia',4.48941,2009); INSERT INTO "population_years" VALUES ('Croatia',4.48688,2010); INSERT INTO "population_years" VALUES ('Cyprus',0.91968,2000); INSERT INTO "population_years" VALUES ('Cyprus',0.93263,2001); INSERT INTO "population_years" VALUES ('Cyprus',0.94681,2002); INSERT INTO "population_years" VALUES ('Cyprus',0.96465,2003); INSERT INTO "population_years" VALUES ('Cyprus',0.98719,2004); INSERT INTO "population_years" VALUES ('Cyprus',1.01074,2005); INSERT INTO "population_years" VALUES ('Cyprus',1.03103,2006); INSERT INTO "population_years" VALUES ('Cyprus',1.04891,2007); INSERT INTO "population_years" VALUES ('Cyprus',1.06682,2008); INSERT INTO "population_years" VALUES ('Cyprus',1.08475,2009); INSERT INTO "population_years" VALUES ('Cyprus',1.10268,2010); INSERT INTO "population_years" VALUES ('Czech Republic',10.27013,2000); INSERT INTO "population_years" VALUES ('Czech Republic',10.26231,2001); INSERT INTO "population_years" VALUES ('Czech Republic',10.2563,2002); INSERT INTO "population_years" VALUES ('Czech Republic',10.25109,2003); INSERT INTO "population_years" VALUES ('Czech Republic',10.24618,2004); INSERT INTO "population_years" VALUES ('Czech Republic',10.24114,2005); INSERT INTO "population_years" VALUES ('Czech Republic',10.23546,2006); INSERT INTO "population_years" VALUES ('Czech Republic',10.22874,2007); INSERT INTO "population_years" VALUES ('Czech Republic',10.22091,2008); INSERT INTO "population_years" VALUES ('Czech Republic',10.2119,2009); INSERT INTO "population_years" VALUES ('Czech Republic',10.20171,2010); INSERT INTO "population_years" VALUES ('Denmark',5.33742,2000); INSERT INTO "population_years" VALUES ('Denmark',5.35583,2001); INSERT INTO "population_years" VALUES ('Denmark',5.37469,2002); INSERT INTO "population_years" VALUES ('Denmark',5.39414,2003); INSERT INTO "population_years" VALUES ('Denmark',5.41339,2004); INSERT INTO "population_years" VALUES ('Denmark',5.43234,2005); INSERT INTO "population_years" VALUES ('Denmark',5.45066,2006); INSERT INTO "population_years" VALUES ('Denmark',5.46812,2007); INSERT INTO "population_years" VALUES ('Denmark',5.48472,2008); INSERT INTO "population_years" VALUES ('Denmark',5.50051,2009); INSERT INTO "population_years" VALUES ('Denmark',5.51558,2010); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04579,2000); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04659,2001); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04735,2002); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04795,2003); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04829,2004); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04831,2005); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04832,2006); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04849,2007); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04867,2008); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04886,2009); INSERT INTO "population_years" VALUES ('Faroe Islands',0.04906,2010); INSERT INTO "population_years" VALUES ('Finland',5.1686,2000); INSERT INTO "population_years" VALUES ('Finland',5.18031,2001); INSERT INTO "population_years" VALUES ('Finland',5.19304,2002); INSERT INTO "population_years" VALUES ('Finland',5.20441,2003); INSERT INTO "population_years" VALUES ('Finland',5.21451,2004); INSERT INTO "population_years" VALUES ('Finland',5.22344,2005); INSERT INTO "population_years" VALUES ('Finland',5.23137,2006); INSERT INTO "population_years" VALUES ('Finland',5.23846,2007); INSERT INTO "population_years" VALUES ('Finland',5.24475,2008); INSERT INTO "population_years" VALUES ('Finland',5.25028,2009); INSERT INTO "population_years" VALUES ('Finland',5.25507,2010); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',10.03677,2000); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',9.99537,2001); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',10.00203,2002); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',9.99637,2003); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',9.98628,2004); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',9.96876,2005); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',NULL,2006); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',NULL,2007); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',NULL,2008); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',NULL,2009); INSERT INTO "population_years" VALUES ('Former Serbia and Montenegro',NULL,2010); INSERT INTO "population_years" VALUES ('France',59.70356,2000); INSERT INTO "population_years" VALUES ('France',60.0299,2001); INSERT INTO "population_years" VALUES ('France',60.3632,2002); INSERT INTO "population_years" VALUES ('France',60.6916,2003); INSERT INTO "population_years" VALUES ('France',61.04681,2004); INSERT INTO "population_years" VALUES ('France',61.43496,2005); INSERT INTO "population_years" VALUES ('France',61.82613,2006); INSERT INTO "population_years" VALUES ('France',62.22577,2007); INSERT INTO "population_years" VALUES ('France',62.61158,2008); INSERT INTO "population_years" VALUES ('France',62.98296,2009); INSERT INTO "population_years" VALUES ('France',63.33964,2010); INSERT INTO "population_years" VALUES ('Germany',82.18791,2000); INSERT INTO "population_years" VALUES ('Germany',82.28055,2001); INSERT INTO "population_years" VALUES ('Germany',82.35067,2002); INSERT INTO "population_years" VALUES ('Germany',82.39833,2003); INSERT INTO "population_years" VALUES ('Germany',82.42461,2004); INSERT INTO "population_years" VALUES ('Germany',82.43139,2005); INSERT INTO "population_years" VALUES ('Germany',82.4223,2006); INSERT INTO "population_years" VALUES ('Germany',82.401,2007); INSERT INTO "population_years" VALUES ('Germany',82.36955,2008); INSERT INTO "population_years" VALUES ('Germany',82.32976,2009); INSERT INTO "population_years" VALUES ('Germany',82.28299,2010); INSERT INTO "population_years" VALUES ('Gibraltar',0.02727,2000); INSERT INTO "population_years" VALUES ('Gibraltar',0.02802,2001); INSERT INTO "population_years" VALUES ('Gibraltar',0.0282,2002); INSERT INTO "population_years" VALUES ('Gibraltar',0.02832,2003); INSERT INTO "population_years" VALUES ('Gibraltar',0.02841,2004); INSERT INTO "population_years" VALUES ('Gibraltar',0.02846,2005); INSERT INTO "population_years" VALUES ('Gibraltar',0.02854,2006); INSERT INTO "population_years" VALUES ('Gibraltar',0.02861,2007); INSERT INTO "population_years" VALUES ('Gibraltar',0.02871,2008); INSERT INTO "population_years" VALUES ('Gibraltar',0.0288,2009); INSERT INTO "population_years" VALUES ('Gibraltar',0.02888,2010); INSERT INTO "population_years" VALUES ('Greece',10.55911,2000); INSERT INTO "population_years" VALUES ('Greece',10.58152,2001); INSERT INTO "population_years" VALUES ('Greece',10.60386,2002); INSERT INTO "population_years" VALUES ('Greece',10.62595,2003); INSERT INTO "population_years" VALUES ('Greece',10.64753,2004); INSERT INTO "population_years" VALUES ('Greece',10.66835,2005); INSERT INTO "population_years" VALUES ('Greece',10.68806,2006); INSERT INTO "population_years" VALUES ('Greece',10.70629,2007); INSERT INTO "population_years" VALUES ('Greece',10.72282,2008); INSERT INTO "population_years" VALUES ('Greece',10.73743,2009); INSERT INTO "population_years" VALUES ('Greece',10.74994,2010); INSERT INTO "population_years" VALUES ('Hungary',10.14743,2000); INSERT INTO "population_years" VALUES ('Hungary',10.12993,2001); INSERT INTO "population_years" VALUES ('Hungary',10.11278,2002); INSERT INTO "population_years" VALUES ('Hungary',10.09199,2003); INSERT INTO "population_years" VALUES ('Hungary',10.07261,2004); INSERT INTO "population_years" VALUES ('Hungary',10.05762,2005); INSERT INTO "population_years" VALUES ('Hungary',10.04627,2006); INSERT INTO "population_years" VALUES ('Hungary',10.03423,2007); INSERT INTO "population_years" VALUES ('Hungary',10.02048,2008); INSERT INTO "population_years" VALUES ('Hungary',10.00717,2009); INSERT INTO "population_years" VALUES ('Hungary',9.99234,2010); INSERT INTO "population_years" VALUES ('Iceland',0.28104,2000); INSERT INTO "population_years" VALUES ('Iceland',0.28481,2001); INSERT INTO "population_years" VALUES ('Iceland',0.28803,2002); INSERT INTO "population_years" VALUES ('Iceland',0.29106,2003); INSERT INTO "population_years" VALUES ('Iceland',0.29397,2004); INSERT INTO "population_years" VALUES ('Iceland',0.29674,2005); INSERT INTO "population_years" VALUES ('Iceland',0.29939,2006); INSERT INTO "population_years" VALUES ('Iceland',0.30193,2007); INSERT INTO "population_years" VALUES ('Iceland',0.30437,2008); INSERT INTO "population_years" VALUES ('Iceland',0.30669,2009); INSERT INTO "population_years" VALUES ('Iceland',0.30891,2010); INSERT INTO "population_years" VALUES ('Ireland',3.8222,2000); INSERT INTO "population_years" VALUES ('Ireland',3.8727,2001); INSERT INTO "population_years" VALUES ('Ireland',3.93313,2002); INSERT INTO "population_years" VALUES ('Ireland',4.00217,2003); INSERT INTO "population_years" VALUES ('Ireland',4.09116,2004); INSERT INTO "population_years" VALUES ('Ireland',4.19919,2005); INSERT INTO "population_years" VALUES ('Ireland',4.30902,2006); INSERT INTO "population_years" VALUES ('Ireland',4.41998,2007); INSERT INTO "population_years" VALUES ('Ireland',4.51771,2008); INSERT INTO "population_years" VALUES ('Ireland',4.58,2009); INSERT INTO "population_years" VALUES ('Ireland',4.62292,2010); INSERT INTO "population_years" VALUES ('Italy',57.74642,2000); INSERT INTO "population_years" VALUES ('Italy',57.87254,2001); INSERT INTO "population_years" VALUES ('Italy',57.95519,2002); INSERT INTO "population_years" VALUES ('Italy',58.02709,2003); INSERT INTO "population_years" VALUES ('Italy',58.08669,2004); INSERT INTO "population_years" VALUES ('Italy',58.13264,2005); INSERT INTO "population_years" VALUES ('Italy',58.16346,2006); INSERT INTO "population_years" VALUES ('Italy',58.17808,2007); INSERT INTO "population_years" VALUES ('Italy',58.17607,2008); INSERT INTO "population_years" VALUES ('Italy',58.15733,2009); INSERT INTO "population_years" VALUES ('Italy',58.12216,2010); INSERT INTO "population_years" VALUES ('Luxembourg',0.43878,2000); INSERT INTO "population_years" VALUES ('Luxembourg',0.44478,2001); INSERT INTO "population_years" VALUES ('Luxembourg',0.45079,2002); INSERT INTO "population_years" VALUES ('Luxembourg',0.45676,2003); INSERT INTO "population_years" VALUES ('Luxembourg',0.46269,2004); INSERT INTO "population_years" VALUES ('Luxembourg',0.46857,2005); INSERT INTO "population_years" VALUES ('Luxembourg',0.47441,2006); INSERT INTO "population_years" VALUES ('Luxembourg',0.48022,2007); INSERT INTO "population_years" VALUES ('Luxembourg',0.48601,2008); INSERT INTO "population_years" VALUES ('Luxembourg',0.49178,2009); INSERT INTO "population_years" VALUES ('Luxembourg',0.49754,2010); INSERT INTO "population_years" VALUES ('Macedonia',2.01451,2000); INSERT INTO "population_years" VALUES ('Macedonia',2.02391,2001); INSERT INTO "population_years" VALUES ('Macedonia',2.03044,2002); INSERT INTO "population_years" VALUES ('Macedonia',2.03515,2003); INSERT INTO "population_years" VALUES ('Macedonia',2.04009,2004); INSERT INTO "population_years" VALUES ('Macedonia',2.04526,2005); INSERT INTO "population_years" VALUES ('Macedonia',2.05055,2006); INSERT INTO "population_years" VALUES ('Macedonia',2.05592,2007); INSERT INTO "population_years" VALUES ('Macedonia',2.06132,2008); INSERT INTO "population_years" VALUES ('Macedonia',2.06672,2009); INSERT INTO "population_years" VALUES ('Macedonia',2.07209,2010); INSERT INTO "population_years" VALUES ('Malta',0.38995,2000); INSERT INTO "population_years" VALUES ('Malta',0.39187,2001); INSERT INTO "population_years" VALUES ('Malta',0.39352,2002); INSERT INTO "population_years" VALUES ('Malta',0.39518,2003); INSERT INTO "population_years" VALUES ('Malta',0.39685,2004); INSERT INTO "population_years" VALUES ('Malta',0.39853,2005); INSERT INTO "population_years" VALUES ('Malta',0.40021,2006); INSERT INTO "population_years" VALUES ('Malta',0.40188,2007); INSERT INTO "population_years" VALUES ('Malta',0.40353,2008); INSERT INTO "population_years" VALUES ('Malta',0.40517,2009); INSERT INTO "population_years" VALUES ('Malta',0.40677,2010); INSERT INTO "population_years" VALUES ('Netherlands',15.90785,2000); INSERT INTO "population_years" VALUES ('Netherlands',16.01744,2001); INSERT INTO "population_years" VALUES ('Netherlands',16.12283,2002); INSERT INTO "population_years" VALUES ('Netherlands',16.22325,2003); INSERT INTO "population_years" VALUES ('Netherlands',16.3182,2004); INSERT INTO "population_years" VALUES ('Netherlands',16.40749,2005); INSERT INTO "population_years" VALUES ('Netherlands',16.49146,2006); INSERT INTO "population_years" VALUES ('Netherlands',16.57061,2007); INSERT INTO "population_years" VALUES ('Netherlands',16.64531,2008); INSERT INTO "population_years" VALUES ('Netherlands',16.716,2009); INSERT INTO "population_years" VALUES ('Netherlands',16.78309,2010); INSERT INTO "population_years" VALUES ('Norway',4.4924,2000); INSERT INTO "population_years" VALUES ('Norway',4.5152,2001); INSERT INTO "population_years" VALUES ('Norway',4.53559,2002); INSERT INTO "population_years" VALUES ('Norway',4.5554,2003); INSERT INTO "population_years" VALUES ('Norway',4.57456,2004); INSERT INTO "population_years" VALUES ('Norway',4.59304,2005); INSERT INTO "population_years" VALUES ('Norway',4.61082,2006); INSERT INTO "population_years" VALUES ('Norway',4.62793,2007); INSERT INTO "population_years" VALUES ('Norway',4.64446,2008); INSERT INTO "population_years" VALUES ('Norway',4.66054,2009); INSERT INTO "population_years" VALUES ('Norway',4.67631,2010); INSERT INTO "population_years" VALUES ('Poland',38.65416,2000); INSERT INTO "population_years" VALUES ('Poland',38.64364,2001); INSERT INTO "population_years" VALUES ('Poland',38.62598,2002); INSERT INTO "population_years" VALUES ('Poland',38.60285,2003); INSERT INTO "population_years" VALUES ('Poland',38.58044,2004); INSERT INTO "population_years" VALUES ('Poland',38.55798,2005); INSERT INTO "population_years" VALUES ('Poland',38.53687,2006); INSERT INTO "population_years" VALUES ('Poland',38.51824,2007); INSERT INTO "population_years" VALUES ('Poland',38.5007,2008); INSERT INTO "population_years" VALUES ('Poland',38.48292,2009); INSERT INTO "population_years" VALUES ('Poland',38.46369,2010); INSERT INTO "population_years" VALUES ('Portugal',10.3356,2000); INSERT INTO "population_years" VALUES ('Portugal',10.38675,2001); INSERT INTO "population_years" VALUES ('Portugal',10.43387,2002); INSERT INTO "population_years" VALUES ('Portugal',10.47996,2003); INSERT INTO "population_years" VALUES ('Portugal',10.52415,2004); INSERT INTO "population_years" VALUES ('Portugal',10.56621,2005); INSERT INTO "population_years" VALUES ('Portugal',10.60587,2006); INSERT INTO "population_years" VALUES ('Portugal',10.64284,2007); INSERT INTO "population_years" VALUES ('Portugal',10.67691,2008); INSERT INTO "population_years" VALUES ('Portugal',10.70792,2009); INSERT INTO "population_years" VALUES ('Portugal',10.73577,2010); INSERT INTO "population_years" VALUES ('Romania',22.44735,2000); INSERT INTO "population_years" VALUES ('Romania',22.4155,2001); INSERT INTO "population_years" VALUES ('Romania',22.36575,2002); INSERT INTO "population_years" VALUES ('Romania',22.30468,2003); INSERT INTO "population_years" VALUES ('Romania',22.24763,2004); INSERT INTO "population_years" VALUES ('Romania',22.19716,2005); INSERT INTO "population_years" VALUES ('Romania',22.15048,2006); INSERT INTO "population_years" VALUES ('Romania',22.10615,2007); INSERT INTO "population_years" VALUES ('Romania',22.06081,2008); INSERT INTO "population_years" VALUES ('Romania',22.01182,2009); INSERT INTO "population_years" VALUES ('Romania',21.95928,2010); INSERT INTO "population_years" VALUES ('Slovakia',5.40032,2000); INSERT INTO "population_years" VALUES ('Slovakia',5.40468,2001); INSERT INTO "population_years" VALUES ('Slovakia',5.41005,2002); INSERT INTO "population_years" VALUES ('Slovakia',5.41641,2003); INSERT INTO "population_years" VALUES ('Slovakia',5.42357,2004); INSERT INTO "population_years" VALUES ('Slovakia',5.43136,2005); INSERT INTO "population_years" VALUES ('Slovakia',5.43945,2006); INSERT INTO "population_years" VALUES ('Slovakia',5.4475,2007); INSERT INTO "population_years" VALUES ('Slovakia',5.45541,2008); INSERT INTO "population_years" VALUES ('Slovakia',5.46305,2009); INSERT INTO "population_years" VALUES ('Slovakia',5.47031,2010); INSERT INTO "population_years" VALUES ('Slovenia',2.01056,2000); INSERT INTO "population_years" VALUES ('Slovenia',2.01118,2001); INSERT INTO "population_years" VALUES ('Slovenia',2.0115,2002); INSERT INTO "population_years" VALUES ('Slovenia',2.0116,2003); INSERT INTO "population_years" VALUES ('Slovenia',2.01147,2004); INSERT INTO "population_years" VALUES ('Slovenia',2.01107,2005); INSERT INTO "population_years" VALUES ('Slovenia',2.01035,2006); INSERT INTO "population_years" VALUES ('Slovenia',2.00925,2007); INSERT INTO "population_years" VALUES ('Slovenia',2.00771,2008); INSERT INTO "population_years" VALUES ('Slovenia',2.00569,2009); INSERT INTO "population_years" VALUES ('Slovenia',2.00314,2010); INSERT INTO "population_years" VALUES ('Spain',40.589,2000); INSERT INTO "population_years" VALUES ('Spain',41.04689,2001); INSERT INTO "population_years" VALUES ('Spain',41.63961,2002); INSERT INTO "population_years" VALUES ('Spain',42.32103,2003); INSERT INTO "population_years" VALUES ('Spain',43.00016,2004); INSERT INTO "population_years" VALUES ('Spain',43.70437,2005); INSERT INTO "population_years" VALUES ('Spain',44.43175,2006); INSERT INTO "population_years" VALUES ('Spain',45.21164,2007); INSERT INTO "population_years" VALUES ('Spain',45.91037,2008); INSERT INTO "population_years" VALUES ('Spain',46.29524,2009); INSERT INTO "population_years" VALUES ('Spain',46.50596,2010); INSERT INTO "population_years" VALUES ('Sweden',8.92357,2000); INSERT INTO "population_years" VALUES ('Sweden',8.93991,2001); INSERT INTO "population_years" VALUES ('Sweden',8.95417,2002); INSERT INTO "population_years" VALUES ('Sweden',8.97031,2003); INSERT INTO "population_years" VALUES ('Sweden',8.9864,2004); INSERT INTO "population_years" VALUES ('Sweden',9.00177,2005); INSERT INTO "population_years" VALUES ('Sweden',9.0166,2006); INSERT INTO "population_years" VALUES ('Sweden',9.03109,2007); INSERT INTO "population_years" VALUES ('Sweden',9.04539,2008); INSERT INTO "population_years" VALUES ('Sweden',9.05965,2009); INSERT INTO "population_years" VALUES ('Sweden',9.07406,2010); INSERT INTO "population_years" VALUES ('Switzerland',7.29913,2000); INSERT INTO "population_years" VALUES ('Switzerland',7.34377,2001); INSERT INTO "population_years" VALUES ('Switzerland',7.3946,2002); INSERT INTO "population_years" VALUES ('Switzerland',7.44147,2003); INSERT INTO "population_years" VALUES ('Switzerland',7.48431,2004); INSERT INTO "population_years" VALUES ('Switzerland',7.5231,2005); INSERT INTO "population_years" VALUES ('Switzerland',7.55793,2006); INSERT INTO "population_years" VALUES ('Switzerland',7.58892,2007); INSERT INTO "population_years" VALUES ('Switzerland',7.61604,2008); INSERT INTO "population_years" VALUES ('Switzerland',7.63923,2009); INSERT INTO "population_years" VALUES ('Switzerland',7.65844,2010); INSERT INTO "population_years" VALUES ('Turkey',67.3293,2000); INSERT INTO "population_years" VALUES ('Turkey',68.4049,2001); INSERT INTO "population_years" VALUES ('Turkey',69.47904,2002); INSERT INTO "population_years" VALUES ('Turkey',70.54864,2003); INSERT INTO "population_years" VALUES ('Turkey',71.61354,2004); INSERT INTO "population_years" VALUES ('Turkey',72.67381,2005); INSERT INTO "population_years" VALUES ('Turkey',73.72612,2006); INSERT INTO "population_years" VALUES ('Turkey',74.76784,2007); INSERT INTO "population_years" VALUES ('Turkey',75.79384,2008); INSERT INTO "population_years" VALUES ('Turkey',76.80552,2009); INSERT INTO "population_years" VALUES ('Turkey',77.80412,2010); INSERT INTO "population_years" VALUES ('United Kingdom',59.38361,2000); INSERT INTO "population_years" VALUES ('United Kingdom',59.61997,2001); INSERT INTO "population_years" VALUES ('United Kingdom',59.84827,2002); INSERT INTO "population_years" VALUES ('United Kingdom',60.0718,2003); INSERT INTO "population_years" VALUES ('United Kingdom',60.37665,2004); INSERT INTO "population_years" VALUES ('United Kingdom',60.73887,2005); INSERT INTO "population_years" VALUES ('United Kingdom',61.10066,2006); INSERT INTO "population_years" VALUES ('United Kingdom',61.50589,2007); INSERT INTO "population_years" VALUES ('United Kingdom',61.90184,2008); INSERT INTO "population_years" VALUES ('United Kingdom',62.25857,2009); INSERT INTO "population_years" VALUES ('United Kingdom',62.61254,2010); INSERT INTO "population_years" VALUES ('Armenia',3.04256,2000); INSERT INTO "population_years" VALUES ('Armenia',3.02759,2001); INSERT INTO "population_years" VALUES ('Armenia',3.01382,2002); INSERT INTO "population_years" VALUES ('Armenia',3.00171,2003); INSERT INTO "population_years" VALUES ('Armenia',2.99136,2004); INSERT INTO "population_years" VALUES ('Armenia',2.9829,2005); INSERT INTO "population_years" VALUES ('Armenia',2.97637,2006); INSERT INTO "population_years" VALUES ('Armenia',2.97165,2007); INSERT INTO "population_years" VALUES ('Armenia',2.96859,2008); INSERT INTO "population_years" VALUES ('Armenia',2.967,2009); INSERT INTO "population_years" VALUES ('Armenia',2.9668,2010); INSERT INTO "population_years" VALUES ('Azerbaijan',7.80905,2000); INSERT INTO "population_years" VALUES ('Azerbaijan',7.84723,2001); INSERT INTO "population_years" VALUES ('Azerbaijan',7.88378,2002); INSERT INTO "population_years" VALUES ('Azerbaijan',7.92412,2003); INSERT INTO "population_years" VALUES ('Azerbaijan',7.96835,2004); INSERT INTO "population_years" VALUES ('Azerbaijan',8.01557,2005); INSERT INTO "population_years" VALUES ('Azerbaijan',8.06616,2006); INSERT INTO "population_years" VALUES ('Azerbaijan',8.12025,2007); INSERT INTO "population_years" VALUES ('Azerbaijan',8.17772,2008); INSERT INTO "population_years" VALUES ('Azerbaijan',8.23867,2009); INSERT INTO "population_years" VALUES ('Azerbaijan',8.30351,2010); INSERT INTO "population_years" VALUES ('Belarus',10.0337,2000); INSERT INTO "population_years" VALUES ('Belarus',9.99979,2001); INSERT INTO "population_years" VALUES ('Belarus',9.95519,2002); INSERT INTO "population_years" VALUES ('Belarus',9.90521,2003); INSERT INTO "population_years" VALUES ('Belarus',9.85595,2004); INSERT INTO "population_years" VALUES ('Belarus',9.80913,2005); INSERT INTO "population_years" VALUES ('Belarus',9.76574,2006); INSERT INTO "population_years" VALUES ('Belarus',9.72472,2007); INSERT INTO "population_years" VALUES ('Belarus',9.68577,2008); INSERT INTO "population_years" VALUES ('Belarus',9.64853,2009); INSERT INTO "population_years" VALUES ('Belarus',9.61263,2010); INSERT INTO "population_years" VALUES ('Estonia',1.37984,2000); INSERT INTO "population_years" VALUES ('Estonia',1.36998,2001); INSERT INTO "population_years" VALUES ('Estonia',1.36012,2002); INSERT INTO "population_years" VALUES ('Estonia',1.35072,2003); INSERT INTO "population_years" VALUES ('Estonia',1.34166,2004); INSERT INTO "population_years" VALUES ('Estonia',1.33289,2005); INSERT INTO "population_years" VALUES ('Estonia',1.32433,2006); INSERT INTO "population_years" VALUES ('Estonia',1.31591,2007); INSERT INTO "population_years" VALUES ('Estonia',1.3076,2008); INSERT INTO "population_years" VALUES ('Estonia',1.29937,2009); INSERT INTO "population_years" VALUES ('Estonia',1.29117,2010); INSERT INTO "population_years" VALUES ('Georgia',4.77721,2000); INSERT INTO "population_years" VALUES ('Georgia',4.74616,2001); INSERT INTO "population_years" VALUES ('Georgia',4.72836,2002); INSERT INTO "population_years" VALUES ('Georgia',4.71092,2003); INSERT INTO "population_years" VALUES ('Georgia',4.69389,2004); INSERT INTO "population_years" VALUES ('Georgia',4.6774,2005); INSERT INTO "population_years" VALUES ('Georgia',4.66147,2006); INSERT INTO "population_years" VALUES ('Georgia',4.646,2007); INSERT INTO "population_years" VALUES ('Georgia',4.63084,2008); INSERT INTO "population_years" VALUES ('Georgia',4.61581,2009); INSERT INTO "population_years" VALUES ('Georgia',4.60083,2010); INSERT INTO "population_years" VALUES ('Kazakhstan',15.03214,2000); INSERT INTO "population_years" VALUES ('Kazakhstan',15.05225,2001); INSERT INTO "population_years" VALUES ('Kazakhstan',15.07722,2002); INSERT INTO "population_years" VALUES ('Kazakhstan',15.10758,2003); INSERT INTO "population_years" VALUES ('Kazakhstan',15.1437,2004); INSERT INTO "population_years" VALUES ('Kazakhstan',15.18584,2005); INSERT INTO "population_years" VALUES ('Kazakhstan',15.23324,2006); INSERT INTO "population_years" VALUES ('Kazakhstan',15.28493,2007); INSERT INTO "population_years" VALUES ('Kazakhstan',15.34053,2008); INSERT INTO "population_years" VALUES ('Kazakhstan',15.39944,2009); INSERT INTO "population_years" VALUES ('Kazakhstan',15.46048,2010); INSERT INTO "population_years" VALUES ('Kyrgyzstan',4.85105,2000); INSERT INTO "population_years" VALUES ('Kyrgyzstan',4.90133,2001); INSERT INTO "population_years" VALUES ('Kyrgyzstan',4.95916,2002); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.01915,2003); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.08143,2004); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.14628,2005); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.2139,2006); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.28415,2007); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.35687,2008); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.43175,2009); INSERT INTO "population_years" VALUES ('Kyrgyzstan',5.50863,2010); INSERT INTO "population_years" VALUES ('Latvia',2.37618,2000); INSERT INTO "population_years" VALUES ('Latvia',2.35823,2001); INSERT INTO "population_years" VALUES ('Latvia',2.34021,2002); INSERT INTO "population_years" VALUES ('Latvia',2.32294,2003); INSERT INTO "population_years" VALUES ('Latvia',2.30631,2004); INSERT INTO "population_years" VALUES ('Latvia',2.29024,2005); INSERT INTO "population_years" VALUES ('Latvia',2.27474,2006); INSERT INTO "population_years" VALUES ('Latvia',2.25981,2007); INSERT INTO "population_years" VALUES ('Latvia',2.24542,2008); INSERT INTO "population_years" VALUES ('Latvia',2.2315,2009); INSERT INTO "population_years" VALUES ('Latvia',2.21797,2010); INSERT INTO "population_years" VALUES ('Lithuania',3.65439,2000); INSERT INTO "population_years" VALUES ('Lithuania',3.64575,2001); INSERT INTO "population_years" VALUES ('Lithuania',3.63323,2002); INSERT INTO "population_years" VALUES ('Lithuania',3.62009,2003); INSERT INTO "population_years" VALUES ('Lithuania',3.6079,2004); INSERT INTO "population_years" VALUES ('Lithuania',3.59662,2005); INSERT INTO "population_years" VALUES ('Lithuania',3.58591,2006); INSERT INTO "population_years" VALUES ('Lithuania',3.57544,2007); INSERT INTO "population_years" VALUES ('Lithuania',3.56521,2008); INSERT INTO "population_years" VALUES ('Lithuania',3.55518,2009); INSERT INTO "population_years" VALUES ('Lithuania',3.54532,2010); INSERT INTO "population_years" VALUES ('Moldova',4.39081,2000); INSERT INTO "population_years" VALUES ('Moldova',4.37837,2001); INSERT INTO "population_years" VALUES ('Moldova',4.36712,2002); INSERT INTO "population_years" VALUES ('Moldova',4.35639,2003); INSERT INTO "population_years" VALUES ('Moldova',4.34742,2004); INSERT INTO "population_years" VALUES ('Moldova',4.34018,2005); INSERT INTO "population_years" VALUES ('Moldova',4.33401,2006); INSERT INTO "population_years" VALUES ('Moldova',4.32882,2007); INSERT INTO "population_years" VALUES ('Moldova',4.32445,2008); INSERT INTO "population_years" VALUES ('Moldova',4.32075,2009); INSERT INTO "population_years" VALUES ('Moldova',4.31748,2010); INSERT INTO "population_years" VALUES ('Russia',146.70997,2000); INSERT INTO "population_years" VALUES ('Russia',145.99031,2001); INSERT INTO "population_years" VALUES ('Russia',145.16262,2002); INSERT INTO "population_years" VALUES ('Russia',144.30785,2003); INSERT INTO "population_years" VALUES ('Russia',143.50743,2004); INSERT INTO "population_years" VALUES ('Russia',142.77558,2005); INSERT INTO "population_years" VALUES ('Russia',142.06949,2006); INSERT INTO "population_years" VALUES ('Russia',141.37775,2007); INSERT INTO "population_years" VALUES ('Russia',140.70209,2008); INSERT INTO "population_years" VALUES ('Russia',140.04125,2009); INSERT INTO "population_years" VALUES ('Russia',139.39021,2010); INSERT INTO "population_years" VALUES ('Tajikistan',6.2297,2000); INSERT INTO "population_years" VALUES ('Tajikistan',6.3391,2001); INSERT INTO "population_years" VALUES ('Tajikistan',6.45201,2002); INSERT INTO "population_years" VALUES ('Tajikistan',6.56785,2003); INSERT INTO "population_years" VALUES ('Tajikistan',6.68843,2004); INSERT INTO "population_years" VALUES ('Tajikistan',6.81479,2005); INSERT INTO "population_years" VALUES ('Tajikistan',6.94406,2006); INSERT INTO "population_years" VALUES ('Tajikistan',7.0766,2007); INSERT INTO "population_years" VALUES ('Tajikistan',7.21188,2008); INSERT INTO "population_years" VALUES ('Tajikistan',7.34915,2009); INSERT INTO "population_years" VALUES ('Tajikistan',7.48749,2010); INSERT INTO "population_years" VALUES ('Turkmenistan',4.38549,2000); INSERT INTO "population_years" VALUES ('Turkmenistan',4.44458,2001); INSERT INTO "population_years" VALUES ('Turkmenistan',4.50262,2002); INSERT INTO "population_years" VALUES ('Turkmenistan',4.55613,2003); INSERT INTO "population_years" VALUES ('Turkmenistan',4.60847,2004); INSERT INTO "population_years" VALUES ('Turkmenistan',4.66416,2005); INSERT INTO "population_years" VALUES ('Turkmenistan',4.71951,2006); INSERT INTO "population_years" VALUES ('Turkmenistan',4.77423,2007); INSERT INTO "population_years" VALUES ('Turkmenistan',4.82933,2008); INSERT INTO "population_years" VALUES ('Turkmenistan',4.88489,2009); INSERT INTO "population_years" VALUES ('Turkmenistan',4.94092,2010); INSERT INTO "population_years" VALUES ('Ukraine',49.00522,2000); INSERT INTO "population_years" VALUES ('Ukraine',48.50792,2001); INSERT INTO "population_years" VALUES ('Ukraine',48.05682,2002); INSERT INTO "population_years" VALUES ('Ukraine',47.66708,2003); INSERT INTO "population_years" VALUES ('Ukraine',47.30539,2004); INSERT INTO "population_years" VALUES ('Ukraine',46.95942,2005); INSERT INTO "population_years" VALUES ('Ukraine',46.62033,2006); INSERT INTO "population_years" VALUES ('Ukraine',46.29986,2007); INSERT INTO "population_years" VALUES ('Ukraine',45.99429,2008); INSERT INTO "population_years" VALUES ('Ukraine',45.7004,2009); INSERT INTO "population_years" VALUES ('Ukraine',45.4156,2010); INSERT INTO "population_years" VALUES ('Uzbekistan',25.04182,2000); INSERT INTO "population_years" VALUES ('Uzbekistan',25.37238,2001); INSERT INTO "population_years" VALUES ('Uzbekistan',25.69631,2002); INSERT INTO "population_years" VALUES ('Uzbekistan',25.99214,2003); INSERT INTO "population_years" VALUES ('Uzbekistan',26.2681,2004); INSERT INTO "population_years" VALUES ('Uzbekistan',26.53989,2005); INSERT INTO "population_years" VALUES ('Uzbekistan',26.81046,2006); INSERT INTO "population_years" VALUES ('Uzbekistan',27.07927,2007); INSERT INTO "population_years" VALUES ('Uzbekistan',27.34503,2008); INSERT INTO "population_years" VALUES ('Uzbekistan',27.60601,2009); INSERT INTO "population_years" VALUES ('Uzbekistan',27.86574,2010); INSERT INTO "population_years" VALUES ('Bahrain',0.63462,2000); INSERT INTO "population_years" VALUES ('Bahrain',0.64589,2001); INSERT INTO "population_years" VALUES ('Bahrain',0.65697,2002); INSERT INTO "population_years" VALUES ('Bahrain',0.66785,2003); INSERT INTO "population_years" VALUES ('Bahrain',0.67855,2004); INSERT INTO "population_years" VALUES ('Bahrain',0.68905,2005); INSERT INTO "population_years" VALUES ('Bahrain',0.69934,2006); INSERT INTO "population_years" VALUES ('Bahrain',0.70938,2007); INSERT INTO "population_years" VALUES ('Bahrain',0.71917,2008); INSERT INTO "population_years" VALUES ('Bahrain',0.72871,2009); INSERT INTO "population_years" VALUES ('Bahrain',0.738,2010); INSERT INTO "population_years" VALUES ('Iran',68.63155,2000); INSERT INTO "population_years" VALUES ('Iran',69.53153,2001); INSERT INTO "population_years" VALUES ('Iran',70.28374,2002); INSERT INTO "population_years" VALUES ('Iran',70.81183,2003); INSERT INTO "population_years" VALUES ('Iran',71.4395,2004); INSERT INTO "population_years" VALUES ('Iran',72.28271,2005); INSERT INTO "population_years" VALUES ('Iran',73.1844,2006); INSERT INTO "population_years" VALUES ('Iran',74.09327,2007); INSERT INTO "population_years" VALUES ('Iran',75.02536,2008); INSERT INTO "population_years" VALUES ('Iran',75.96761,2009); INSERT INTO "population_years" VALUES ('Iran',76.9233,2010); INSERT INTO "population_years" VALUES ('Iraq',22.67908,2000); INSERT INTO "population_years" VALUES ('Iraq',23.33473,2001); INSERT INTO "population_years" VALUES ('Iraq',24.00405,2002); INSERT INTO "population_years" VALUES ('Iraq',24.68518,2003); INSERT INTO "population_years" VALUES ('Iraq',25.37625,2004); INSERT INTO "population_years" VALUES ('Iraq',26.07609,2005); INSERT INTO "population_years" VALUES ('Iraq',26.78418,2006); INSERT INTO "population_years" VALUES ('Iraq',27.50016,2007); INSERT INTO "population_years" VALUES ('Iraq',28.22144,2008); INSERT INTO "population_years" VALUES ('Iraq',28.94557,2009); INSERT INTO "population_years" VALUES ('Iraq',29.67161,2010); INSERT INTO "population_years" VALUES ('Israel',6.11457,2000); INSERT INTO "population_years" VALUES ('Israel',6.25134,2001); INSERT INTO "population_years" VALUES ('Israel',6.36954,2002); INSERT INTO "population_years" VALUES ('Israel',6.49192,2003); INSERT INTO "population_years" VALUES ('Israel',6.61773,2004); INSERT INTO "population_years" VALUES ('Israel',6.74292,2005); INSERT INTO "population_years" VALUES ('Israel',6.86688,2006); INSERT INTO "population_years" VALUES ('Israel',6.99006,2007); INSERT INTO "population_years" VALUES ('Israel',7.11236,2008); INSERT INTO "population_years" VALUES ('Israel',7.2337,2009); INSERT INTO "population_years" VALUES ('Israel',7.35399,2010); INSERT INTO "population_years" VALUES ('Jordan',4.68762,2000); INSERT INTO "population_years" VALUES ('Jordan',4.79335,2001); INSERT INTO "population_years" VALUES ('Jordan',4.90206,2002); INSERT INTO "population_years" VALUES ('Jordan',5.01378,2003); INSERT INTO "population_years" VALUES ('Jordan',5.12826,2004); INSERT INTO "population_years" VALUES ('Jordan',5.2454,2005); INSERT INTO "population_years" VALUES ('Jordan',5.61722,2006); INSERT INTO "population_years" VALUES ('Jordan',5.99719,2007); INSERT INTO "population_years" VALUES ('Jordan',6.13263,2008); INSERT INTO "population_years" VALUES ('Jordan',6.26929,2009); INSERT INTO "population_years" VALUES ('Jordan',6.40709,2010); INSERT INTO "population_years" VALUES ('Kuwait',1.97408,2000); INSERT INTO "population_years" VALUES ('Kuwait',2.04256,2001); INSERT INTO "population_years" VALUES ('Kuwait',2.11225,2002); INSERT INTO "population_years" VALUES ('Kuwait',2.18395,2003); INSERT INTO "population_years" VALUES ('Kuwait',2.25843,2004); INSERT INTO "population_years" VALUES ('Kuwait',2.33662,2005); INSERT INTO "population_years" VALUES ('Kuwait',2.41946,2006); INSERT INTO "population_years" VALUES ('Kuwait',2.50672,2007); INSERT INTO "population_years" VALUES ('Kuwait',2.59806,2008); INSERT INTO "population_years" VALUES ('Kuwait',2.69253,2009); INSERT INTO "population_years" VALUES ('Kuwait',2.78913,2010); INSERT INTO "population_years" VALUES ('Lebanon',3.7915,2000); INSERT INTO "population_years" VALUES ('Lebanon',3.81411,2001); INSERT INTO "population_years" VALUES ('Lebanon',3.83546,2002); INSERT INTO "population_years" VALUES ('Lebanon',3.85548,2003); INSERT INTO "population_years" VALUES ('Lebanon',3.87449,2004); INSERT INTO "population_years" VALUES ('Lebanon',3.89239,2005); INSERT INTO "population_years" VALUES ('Lebanon',3.8511,2006); INSERT INTO "population_years" VALUES ('Lebanon',3.89556,2007); INSERT INTO "population_years" VALUES ('Lebanon',4.03802,2008); INSERT INTO "population_years" VALUES ('Lebanon',4.09932,2009); INSERT INTO "population_years" VALUES ('Lebanon',4.12525,2010); INSERT INTO "population_years" VALUES ('Oman',2.43238,2000); INSERT INTO "population_years" VALUES ('Oman',2.4873,2001); INSERT INTO "population_years" VALUES ('Oman',2.54108,2002); INSERT INTO "population_years" VALUES ('Oman',2.59379,2003); INSERT INTO "population_years" VALUES ('Oman',2.64561,2004); INSERT INTO "population_years" VALUES ('Oman',2.69689,2005); INSERT INTO "population_years" VALUES ('Oman',2.7482,2006); INSERT INTO "population_years" VALUES ('Oman',2.80028,2007); INSERT INTO "population_years" VALUES ('Oman',2.85388,2008); INSERT INTO "population_years" VALUES ('Oman',2.90963,2009); INSERT INTO "population_years" VALUES ('Oman',2.96772,2010); INSERT INTO "population_years" VALUES ('Palestine',3.11009,2000); INSERT INTO "population_years" VALUES ('Palestine',3.20475,2001); INSERT INTO "population_years" VALUES ('Palestine',3.30059,2002); INSERT INTO "population_years" VALUES ('Palestine',3.398,2003); INSERT INTO "population_years" VALUES ('Palestine',3.49718,2004); INSERT INTO "population_years" VALUES ('Palestine',3.59785,2005); INSERT INTO "population_years" VALUES ('Palestine',3.69993,2006); INSERT INTO "population_years" VALUES ('Palestine',3.80337,2007); INSERT INTO "population_years" VALUES ('Palestine',3.90788,2008); INSERT INTO "population_years" VALUES ('Palestine',4.01313,2009); INSERT INTO "population_years" VALUES ('Palestine',4.11908,2010); INSERT INTO "population_years" VALUES ('Qatar',0.62696,2000); INSERT INTO "population_years" VALUES ('Qatar',0.65885,2001); INSERT INTO "population_years" VALUES ('Qatar',0.69173,2002); INSERT INTO "population_years" VALUES ('Qatar',0.72512,2003); INSERT INTO "population_years" VALUES ('Qatar',0.75882,2004); INSERT INTO "population_years" VALUES ('Qatar',0.78567,2005); INSERT INTO "population_years" VALUES ('Qatar',0.80258,2006); INSERT INTO "population_years" VALUES ('Qatar',0.8149,2007); INSERT INTO "population_years" VALUES ('Qatar',0.82479,2008); INSERT INTO "population_years" VALUES ('Qatar',0.83329,2009); INSERT INTO "population_years" VALUES ('Qatar',0.84093,2010); INSERT INTO "population_years" VALUES ('Saudi Arabia',21.3119,2000); INSERT INTO "population_years" VALUES ('Saudi Arabia',21.79609,2001); INSERT INTO "population_years" VALUES ('Saudi Arabia',22.27404,2002); INSERT INTO "population_years" VALUES ('Saudi Arabia',22.74289,2003); INSERT INTO "population_years" VALUES ('Saudi Arabia',23.20004,2004); INSERT INTO "population_years" VALUES ('Saudi Arabia',23.64221,2005); INSERT INTO "population_years" VALUES ('Saudi Arabia',24.0732,2006); INSERT INTO "population_years" VALUES ('Saudi Arabia',24.49852,2007); INSERT INTO "population_years" VALUES ('Saudi Arabia',24.91741,2008); INSERT INTO "population_years" VALUES ('Saudi Arabia',25.32887,2009); INSERT INTO "population_years" VALUES ('Saudi Arabia',25.73178,2010); INSERT INTO "population_years" VALUES ('Syria',16.47124,2000); INSERT INTO "population_years" VALUES ('Syria',16.88507,2001); INSERT INTO "population_years" VALUES ('Syria',17.29982,2002); INSERT INTO "population_years" VALUES ('Syria',17.71535,2003); INSERT INTO "population_years" VALUES ('Syria',18.13682,2004); INSERT INTO "population_years" VALUES ('Syria',18.56267,2005); INSERT INTO "population_years" VALUES ('Syria',19.32269,2006); INSERT INTO "population_years" VALUES ('Syria',20.48772,2007); INSERT INTO "population_years" VALUES ('Syria',21.32486,2008); INSERT INTO "population_years" VALUES ('Syria',21.76298,2009); INSERT INTO "population_years" VALUES ('Syria',22.19811,2010); INSERT INTO "population_years" VALUES ('United Arab Emirates',3.2193,2000); INSERT INTO "population_years" VALUES ('United Arab Emirates',3.38733,2001); INSERT INTO "population_years" VALUES ('United Arab Emirates',3.5581,2002); INSERT INTO "population_years" VALUES ('United Arab Emirates',3.7317,2003); INSERT INTO "population_years" VALUES ('United Arab Emirates',3.90795,2004); INSERT INTO "population_years" VALUES ('United Arab Emirates',4.0866,2005); INSERT INTO "population_years" VALUES ('United Arab Emirates',4.26591,2006); INSERT INTO "population_years" VALUES ('United Arab Emirates',4.44401,2007); INSERT INTO "population_years" VALUES ('United Arab Emirates',4.6214,2008); INSERT INTO "population_years" VALUES ('United Arab Emirates',4.79849,2009); INSERT INTO "population_years" VALUES ('United Arab Emirates',4.97559,2010); INSERT INTO "population_years" VALUES ('Yemen',17.40726,2000); INSERT INTO "population_years" VALUES ('Yemen',17.97054,2001); INSERT INTO "population_years" VALUES ('Yemen',18.5462,2002); INSERT INTO "population_years" VALUES ('Yemen',19.13411,2003); INSERT INTO "population_years" VALUES ('Yemen',19.73383,2004); INSERT INTO "population_years" VALUES ('Yemen',20.34467,2005); INSERT INTO "population_years" VALUES ('Yemen',20.96452,2006); INSERT INTO "population_years" VALUES ('Yemen',21.59104,2007); INSERT INTO "population_years" VALUES ('Yemen',22.22285,2008); INSERT INTO "population_years" VALUES ('Yemen',22.85824,2009); INSERT INTO "population_years" VALUES ('Yemen',23.49536,2010); INSERT INTO "population_years" VALUES ('Algeria',30.42923,2000); INSERT INTO "population_years" VALUES ('Algeria',30.87431,2001); INSERT INTO "population_years" VALUES ('Algeria',31.31248,2002); INSERT INTO "population_years" VALUES ('Algeria',31.7409,2003); INSERT INTO "population_years" VALUES ('Algeria',32.15767,2004); INSERT INTO "population_years" VALUES ('Algeria',32.56074,2005); INSERT INTO "population_years" VALUES ('Algeria',32.95925,2006); INSERT INTO "population_years" VALUES ('Algeria',33.36274,2007); INSERT INTO "population_years" VALUES ('Algeria',33.76967,2008); INSERT INTO "population_years" VALUES ('Algeria',34.17819,2009); INSERT INTO "population_years" VALUES ('Algeria',34.58618,2010); INSERT INTO "population_years" VALUES ('Angola',10.37727,2000); INSERT INTO "population_years" VALUES ('Angola',10.53839,2001); INSERT INTO "population_years" VALUES ('Angola',10.76051,2002); INSERT INTO "population_years" VALUES ('Angola',11.05709,2003); INSERT INTO "population_years" VALUES ('Angola',11.39113,2004); INSERT INTO "population_years" VALUES ('Angola',11.70695,2005); INSERT INTO "population_years" VALUES ('Angola',11.99281,2006); INSERT INTO "population_years" VALUES ('Angola',12.2636,2007); INSERT INTO "population_years" VALUES ('Angola',12.53136,2008); INSERT INTO "population_years" VALUES ('Angola',12.79929,2009); INSERT INTO "population_years" VALUES ('Angola',13.06816,2010); INSERT INTO "population_years" VALUES ('Benin',6.61912,2000); INSERT INTO "population_years" VALUES ('Benin',6.83901,2001); INSERT INTO "population_years" VALUES ('Benin',7.06449,2002); INSERT INTO "population_years" VALUES ('Benin',7.29371,2003); INSERT INTO "population_years" VALUES ('Benin',7.52683,2004); INSERT INTO "population_years" VALUES ('Benin',7.77771,2005); INSERT INTO "population_years" VALUES ('Benin',8.03171,2006); INSERT INTO "population_years" VALUES ('Benin',8.27816,2007); INSERT INTO "population_years" VALUES ('Benin',8.53255,2008); INSERT INTO "population_years" VALUES ('Benin',8.79183,2009); INSERT INTO "population_years" VALUES ('Benin',9.05601,2010); INSERT INTO "population_years" VALUES ('Botswana',1.67968,2000); INSERT INTO "population_years" VALUES ('Botswana',1.71401,2001); INSERT INTO "population_years" VALUES ('Botswana',1.74618,2002); INSERT INTO "population_years" VALUES ('Botswana',1.77709,2003); INSERT INTO "population_years" VALUES ('Botswana',1.80783,2004); INSERT INTO "population_years" VALUES ('Botswana',1.84012,2005); INSERT INTO "population_years" VALUES ('Botswana',1.87578,2006); INSERT INTO "population_years" VALUES ('Botswana',1.91342,2007); INSERT INTO "population_years" VALUES ('Botswana',1.95205,2008); INSERT INTO "population_years" VALUES ('Botswana',1.99088,2009); INSERT INTO "population_years" VALUES ('Botswana',2.02931,2010); INSERT INTO "population_years" VALUES ('Burkina Faso',11.58775,2000); INSERT INTO "population_years" VALUES ('Burkina Faso',12.03936,2001); INSERT INTO "population_years" VALUES ('Burkina Faso',12.58496,2002); INSERT INTO "population_years" VALUES ('Burkina Faso',13.06539,2003); INSERT INTO "population_years" VALUES ('Burkina Faso',13.47809,2004); INSERT INTO "population_years" VALUES ('Burkina Faso',13.90389,2005); INSERT INTO "population_years" VALUES ('Burkina Faso',14.34353,2006); INSERT INTO "population_years" VALUES ('Burkina Faso',14.79717,2007); INSERT INTO "population_years" VALUES ('Burkina Faso',15.26474,2008); INSERT INTO "population_years" VALUES ('Burkina Faso',15.74623,2009); INSERT INTO "population_years" VALUES ('Burkina Faso',16.24181,2010); INSERT INTO "population_years" VALUES ('Burundi',6.8227,2000); INSERT INTO "population_years" VALUES ('Burundi',7.04302,2001); INSERT INTO "population_years" VALUES ('Burundi',7.28679,2002); INSERT INTO "population_years" VALUES ('Burundi',7.55265,2003); INSERT INTO "population_years" VALUES ('Burundi',7.85873,2004); INSERT INTO "population_years" VALUES ('Burundi',8.16194,2005); INSERT INTO "population_years" VALUES ('Burundi',8.46451,2006); INSERT INTO "population_years" VALUES ('Burundi',8.78294,2007); INSERT INTO "population_years" VALUES ('Burundi',9.13931,2008); INSERT INTO "population_years" VALUES ('Burundi',9.51133,2009); INSERT INTO "population_years" VALUES ('Burundi',9.86312,2010); INSERT INTO "population_years" VALUES ('Cameroon',15.34304,2000); INSERT INTO "population_years" VALUES ('Cameroon',15.70686,2001); INSERT INTO "population_years" VALUES ('Cameroon',16.09444,2002); INSERT INTO "population_years" VALUES ('Cameroon',16.48901,2003); INSERT INTO "population_years" VALUES ('Cameroon',16.87275,2004); INSERT INTO "population_years" VALUES ('Cameroon',17.26147,2005); INSERT INTO "population_years" VALUES ('Cameroon',17.65786,2006); INSERT INTO "population_years" VALUES ('Cameroon',18.06038,2007); INSERT INTO "population_years" VALUES ('Cameroon',18.46769,2008); INSERT INTO "population_years" VALUES ('Cameroon',18.8793,2009); INSERT INTO "population_years" VALUES ('Cameroon',19.29415,2010); INSERT INTO "population_years" VALUES ('Cape Verde',0.43013,2000); INSERT INTO "population_years" VALUES ('Cape Verde',0.43845,2001); INSERT INTO "population_years" VALUES ('Cape Verde',0.4467,2002); INSERT INTO "population_years" VALUES ('Cape Verde',0.45483,2003); INSERT INTO "population_years" VALUES ('Cape Verde',0.4628,2004); INSERT INTO "population_years" VALUES ('Cape Verde',0.4706,2005); INSERT INTO "population_years" VALUES ('Cape Verde',0.47831,2006); INSERT INTO "population_years" VALUES ('Cape Verde',0.48599,2007); INSERT INTO "population_years" VALUES ('Cape Verde',0.49362,2008); INSERT INTO "population_years" VALUES ('Cape Verde',0.50118,2009); INSERT INTO "population_years" VALUES ('Cape Verde',0.50866,2010); INSERT INTO "population_years" VALUES ('Central African Republic',3.97986,2000); INSERT INTO "population_years" VALUES ('Central African Republic',4.05393,2001); INSERT INTO "population_years" VALUES ('Central African Republic',4.12842,2002); INSERT INTO "population_years" VALUES ('Central African Republic',4.21492,2003); INSERT INTO "population_years" VALUES ('Central African Republic',4.28875,2004); INSERT INTO "population_years" VALUES ('Central African Republic',4.36304,2005); INSERT INTO "population_years" VALUES ('Central African Republic',4.44895,2006); INSERT INTO "population_years" VALUES ('Central African Republic',4.54373,2007); INSERT INTO "population_years" VALUES ('Central African Republic',4.64132,2008); INSERT INTO "population_years" VALUES ('Central African Republic',4.74192,2009); INSERT INTO "population_years" VALUES ('Central African Republic',4.84493,2010); INSERT INTO "population_years" VALUES ('Chad',7.94268,2000); INSERT INTO "population_years" VALUES ('Chad',8.17941,2001); INSERT INTO "population_years" VALUES ('Chad',8.43619,2002); INSERT INTO "population_years" VALUES ('Chad',8.74574,2003); INSERT INTO "population_years" VALUES ('Chad',9.09766,2004); INSERT INTO "population_years" VALUES ('Chad',9.40066,2005); INSERT INTO "population_years" VALUES ('Chad',9.64896,2006); INSERT INTO "population_years" VALUES ('Chad',9.88566,2007); INSERT INTO "population_years" VALUES ('Chad',10.11134,2008); INSERT INTO "population_years" VALUES ('Chad',10.32921,2009); INSERT INTO "population_years" VALUES ('Chad',10.54346,2010); INSERT INTO "population_years" VALUES ('Comoros',0.57863,2000); INSERT INTO "population_years" VALUES ('Comoros',0.59646,2001); INSERT INTO "population_years" VALUES ('Comoros',0.61467,2002); INSERT INTO "population_years" VALUES ('Comoros',0.63327,2003); INSERT INTO "population_years" VALUES ('Comoros',0.65226,2004); INSERT INTO "population_years" VALUES ('Comoros',0.67164,2005); INSERT INTO "population_years" VALUES ('Comoros',0.69137,2006); INSERT INTO "population_years" VALUES ('Comoros',0.71142,2007); INSERT INTO "population_years" VALUES ('Comoros',0.73178,2008); INSERT INTO "population_years" VALUES ('Comoros',0.75244,2009); INSERT INTO "population_years" VALUES ('Comoros',0.77341,2010); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.10394,2000); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.23999,2001); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.33042,2002); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.41425,2003); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.50374,2004); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.604,2005); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.70406,2006); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.80233,2007); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',3.90501,2008); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',4.01281,2009); INSERT INTO "population_years" VALUES ('Congo (Brazzaville)',4.12592,2010); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',51.84855,2000); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',53.49657,2001); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',55.20041,2002); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',56.88554,2003); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',58.62998,2004); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',60.47351,2005); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',62.37591,2006); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',64.3902,2007); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',66.51451,2008); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',68.69254,2009); INSERT INTO "population_years" VALUES ('Congo (Kinshasa)',70.91644,2010); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',16.88458,2000); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',17.31097,2001); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',17.68765,2002); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',18.068,2003); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',18.50438,2004); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',18.9205,2005); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',19.3268,2006); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',19.74695,2007); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',20.1796,2008); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',20.61707,2009); INSERT INTO "population_years" VALUES ('Cote dIvoire (IvoryCoast)',21.0588,2010); INSERT INTO "population_years" VALUES ('Djibouti',0.66942,2000); INSERT INTO "population_years" VALUES ('Djibouti',0.69299,2001); INSERT INTO "population_years" VALUES ('Djibouti',0.71635,2002); INSERT INTO "population_years" VALUES ('Djibouti',0.69078,2003); INSERT INTO "population_years" VALUES ('Djibouti',0.65741,2004); INSERT INTO "population_years" VALUES ('Djibouti',0.6664,2005); INSERT INTO "population_years" VALUES ('Djibouti',0.67914,2006); INSERT INTO "population_years" VALUES ('Djibouti',0.69438,2007); INSERT INTO "population_years" VALUES ('Djibouti',0.7092,2008); INSERT INTO "population_years" VALUES ('Djibouti',0.72462,2009); INSERT INTO "population_years" VALUES ('Djibouti',0.74053,2010); INSERT INTO "population_years" VALUES ('Egypt',65.15855,2000); INSERT INTO "population_years" VALUES ('Egypt',66.57408,2001); INSERT INTO "population_years" VALUES ('Egypt',68.02312,2002); INSERT INTO "population_years" VALUES ('Egypt',69.50186,2003); INSERT INTO "population_years" VALUES ('Egypt',71.00947,2004); INSERT INTO "population_years" VALUES ('Egypt',72.54351,2005); INSERT INTO "population_years" VALUES ('Egypt',74.10059,2006); INSERT INTO "population_years" VALUES ('Egypt',75.67654,2007); INSERT INTO "population_years" VALUES ('Egypt',77.26669,2008); INSERT INTO "population_years" VALUES ('Egypt',78.86664,2009); INSERT INTO "population_years" VALUES ('Egypt',80.47187,2010); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.49148,2000); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.50592,2001); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.52076,2002); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.53593,2003); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.55142,2004); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.56723,2005); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.58335,2006); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.59976,2007); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.61646,2008); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.63344,2009); INSERT INTO "population_years" VALUES ('Equatorial Guinea',0.6507,2010); INSERT INTO "population_years" VALUES ('Eritrea',4.19731,2000); INSERT INTO "population_years" VALUES ('Eritrea',4.33799,2001); INSERT INTO "population_years" VALUES ('Eritrea',4.50543,2002); INSERT INTO "population_years" VALUES ('Eritrea',4.70002,2003); INSERT INTO "population_years" VALUES ('Eritrea',4.90734,2004); INSERT INTO "population_years" VALUES ('Eritrea',5.06956,2005); INSERT INTO "population_years" VALUES ('Eritrea',5.21433,2006); INSERT INTO "population_years" VALUES ('Eritrea',5.35768,2007); INSERT INTO "population_years" VALUES ('Eritrea',5.50203,2008); INSERT INTO "population_years" VALUES ('Eritrea',5.64717,2009); INSERT INTO "population_years" VALUES ('Eritrea',5.79298,2010); INSERT INTO "population_years" VALUES ('Ethiopia',64.16496,2000); INSERT INTO "population_years" VALUES ('Ethiopia',66.12258,2001); INSERT INTO "population_years" VALUES ('Ethiopia',68.18727,2002); INSERT INTO "population_years" VALUES ('Ethiopia',70.36607,2003); INSERT INTO "population_years" VALUES ('Ethiopia',72.63721,2004); INSERT INTO "population_years" VALUES ('Ethiopia',74.98029,2005); INSERT INTO "population_years" VALUES ('Ethiopia',77.4114,2006); INSERT INTO "population_years" VALUES ('Ethiopia',79.9358,2007); INSERT INTO "population_years" VALUES ('Ethiopia',82.54484,2008); INSERT INTO "population_years" VALUES ('Ethiopia',85.23734,2009); INSERT INTO "population_years" VALUES ('Ethiopia',88.01349,2010); INSERT INTO "population_years" VALUES ('Gabon',1.23643,2000); INSERT INTO "population_years" VALUES ('Gabon',1.26915,2001); INSERT INTO "population_years" VALUES ('Gabon',1.30042,2002); INSERT INTO "population_years" VALUES ('Gabon',1.33262,2003); INSERT INTO "population_years" VALUES ('Gabon',1.36441,2004); INSERT INTO "population_years" VALUES ('Gabon',1.39569,2005); INSERT INTO "population_years" VALUES ('Gabon',1.42639,2006); INSERT INTO "population_years" VALUES ('Gabon',1.45645,2007); INSERT INTO "population_years" VALUES ('Gabon',1.48583,2008); INSERT INTO "population_years" VALUES ('Gabon',1.51499,2009); INSERT INTO "population_years" VALUES ('Gabon',1.54526,2010); INSERT INTO "population_years" VALUES ('Gambia, The',1.36822,2000); INSERT INTO "population_years" VALUES ('Gambia, The',1.41305,2001); INSERT INTO "population_years" VALUES ('Gambia, The',1.45811,2002); INSERT INTO "population_years" VALUES ('Gambia, The',1.5034,2003); INSERT INTO "population_years" VALUES ('Gambia, The',1.54888,2004); INSERT INTO "population_years" VALUES ('Gambia, The',1.59451,2005); INSERT INTO "population_years" VALUES ('Gambia, The',1.64029,2006); INSERT INTO "population_years" VALUES ('Gambia, The',1.68614,2007); INSERT INTO "population_years" VALUES ('Gambia, The',1.73208,2008); INSERT INTO "population_years" VALUES ('Gambia, The',1.77808,2009); INSERT INTO "population_years" VALUES ('Gambia, The',1.82416,2010); INSERT INTO "population_years" VALUES ('Ghana',19.75162,2000); INSERT INTO "population_years" VALUES ('Ghana',20.19629,2001); INSERT INTO "population_years" VALUES ('Ghana',20.66146,2002); INSERT INTO "population_years" VALUES ('Ghana',21.1372,2003); INSERT INTO "population_years" VALUES ('Ghana',21.60098,2004); INSERT INTO "population_years" VALUES ('Ghana',22.06238,2005); INSERT INTO "population_years" VALUES ('Ghana',22.52438,2006); INSERT INTO "population_years" VALUES ('Ghana',22.9807,2007); INSERT INTO "population_years" VALUES ('Ghana',23.43457,2008); INSERT INTO "population_years" VALUES ('Ghana',23.88781,2009); INSERT INTO "population_years" VALUES ('Ghana',24.33984,2010); INSERT INTO "population_years" VALUES ('Guinea',8.35041,2000); INSERT INTO "population_years" VALUES ('Guinea',8.41692,2001); INSERT INTO "population_years" VALUES ('Guinea',8.5203,2002); INSERT INTO "population_years" VALUES ('Guinea',8.75554,2003); INSERT INTO "population_years" VALUES ('Guinea',8.97198,2004); INSERT INTO "population_years" VALUES ('Guinea',9.15373,2005); INSERT INTO "population_years" VALUES ('Guinea',9.34573,2006); INSERT INTO "population_years" VALUES ('Guinea',9.56922,2007); INSERT INTO "population_years" VALUES ('Guinea',9.80651,2008); INSERT INTO "population_years" VALUES ('Guinea',10.05798,2009); INSERT INTO "population_years" VALUES ('Guinea',10.32403,2010); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.27886,2000); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.30645,2001); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.33312,2002); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.35992,2003); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.38693,2004); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.41416,2005); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.44275,2006); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.47278,2007); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.50318,2008); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.53396,2009); INSERT INTO "population_years" VALUES ('Guinea-Bissau',1.56513,2010); INSERT INTO "population_years" VALUES ('Kenya',30.50798,2000); INSERT INTO "population_years" VALUES ('Kenya',31.2987,2001); INSERT INTO "population_years" VALUES ('Kenya',32.15532,2002); INSERT INTO "population_years" VALUES ('Kenya',33.04178,2003); INSERT INTO "population_years" VALUES ('Kenya',33.96709,2004); INSERT INTO "population_years" VALUES ('Kenya',34.91178,2005); INSERT INTO "population_years" VALUES ('Kenya',35.89065,2006); INSERT INTO "population_years" VALUES ('Kenya',36.91372,2007); INSERT INTO "population_years" VALUES ('Kenya',37.95384,2008); INSERT INTO "population_years" VALUES ('Kenya',39.00277,2009); INSERT INTO "population_years" VALUES ('Kenya',40.04657,2010); INSERT INTO "population_years" VALUES ('Lesotho',1.91632,2000); INSERT INTO "population_years" VALUES ('Lesotho',1.92234,2001); INSERT INTO "population_years" VALUES ('Lesotho',1.92564,2002); INSERT INTO "population_years" VALUES ('Lesotho',1.92635,2003); INSERT INTO "population_years" VALUES ('Lesotho',1.9249,2004); INSERT INTO "population_years" VALUES ('Lesotho',1.92212,2005); INSERT INTO "population_years" VALUES ('Lesotho',1.9192,2006); INSERT INTO "population_years" VALUES ('Lesotho',1.91686,2007); INSERT INTO "population_years" VALUES ('Lesotho',1.91547,2008); INSERT INTO "population_years" VALUES ('Lesotho',1.91613,2009); INSERT INTO "population_years" VALUES ('Lesotho',1.91955,2010); INSERT INTO "population_years" VALUES ('Liberia',2.60067,2000); INSERT INTO "population_years" VALUES ('Liberia',2.67979,2001); INSERT INTO "population_years" VALUES ('Liberia',2.75304,2002); INSERT INTO "population_years" VALUES ('Liberia',2.76968,2003); INSERT INTO "population_years" VALUES ('Liberia',2.79594,2004); INSERT INTO "population_years" VALUES ('Liberia',2.93008,2005); INSERT INTO "population_years" VALUES ('Liberia',3.10761,2006); INSERT INTO "population_years" VALUES ('Liberia',3.26994,2007); INSERT INTO "population_years" VALUES ('Liberia',3.44037,2008); INSERT INTO "population_years" VALUES ('Liberia',3.58339,2009); INSERT INTO "population_years" VALUES ('Liberia',3.68508,2010); INSERT INTO "population_years" VALUES ('Libya',5.12544,2000); INSERT INTO "population_years" VALUES ('Libya',5.25089,2001); INSERT INTO "population_years" VALUES ('Libya',5.37924,2002); INSERT INTO "population_years" VALUES ('Libya',5.51013,2003); INSERT INTO "population_years" VALUES ('Libya',5.64308,2004); INSERT INTO "population_years" VALUES ('Libya',5.77753,2005); INSERT INTO "population_years" VALUES ('Libya',5.91323,2006); INSERT INTO "population_years" VALUES ('Libya',6.0499,2007); INSERT INTO "population_years" VALUES ('Libya',6.18704,2008); INSERT INTO "population_years" VALUES ('Libya',6.32436,2009); INSERT INTO "population_years" VALUES ('Libya',6.46145,2010); INSERT INTO "population_years" VALUES ('Madagascar',15.74194,2000); INSERT INTO "population_years" VALUES ('Madagascar',16.22682,2001); INSERT INTO "population_years" VALUES ('Madagascar',16.72589,2002); INSERT INTO "population_years" VALUES ('Madagascar',17.23952,2003); INSERT INTO "population_years" VALUES ('Madagascar',17.76815,2004); INSERT INTO "population_years" VALUES ('Madagascar',18.31216,2005); INSERT INTO "population_years" VALUES ('Madagascar',18.87216,2006); INSERT INTO "population_years" VALUES ('Madagascar',19.44882,2007); INSERT INTO "population_years" VALUES ('Madagascar',20.04255,2008); INSERT INTO "population_years" VALUES ('Madagascar',20.65356,2009); INSERT INTO "population_years" VALUES ('Madagascar',21.28184,2010); INSERT INTO "population_years" VALUES ('Malawi',11.80151,2000); INSERT INTO "population_years" VALUES ('Malawi',12.12867,2001); INSERT INTO "population_years" VALUES ('Malawi',12.46009,2002); INSERT INTO "population_years" VALUES ('Malawi',12.7968,2003); INSERT INTO "population_years" VALUES ('Malawi',13.14014,2004); INSERT INTO "population_years" VALUES ('Malawi',13.49211,2005); INSERT INTO "population_years" VALUES ('Malawi',13.85568,2006); INSERT INTO "population_years" VALUES ('Malawi',14.23279,2007); INSERT INTO "population_years" VALUES ('Malawi',14.62368,2008); INSERT INTO "population_years" VALUES ('Malawi',15.02876,2009); INSERT INTO "population_years" VALUES ('Malawi',15.4475,2010); INSERT INTO "population_years" VALUES ('Mali',10.62082,2000); INSERT INTO "population_years" VALUES ('Mali',10.91763,2001); INSERT INTO "population_years" VALUES ('Mali',11.21969,2002); INSERT INTO "population_years" VALUES ('Mali',11.5228,2003); INSERT INTO "population_years" VALUES ('Mali',11.82733,2004); INSERT INTO "population_years" VALUES ('Mali',12.13382,2005); INSERT INTO "population_years" VALUES ('Mali',12.44653,2006); INSERT INTO "population_years" VALUES ('Mali',12.76879,2007); INSERT INTO "population_years" VALUES ('Mali',13.10081,2008); INSERT INTO "population_years" VALUES ('Mali',13.44323,2009); INSERT INTO "population_years" VALUES ('Mali',13.79635,2010); INSERT INTO "population_years" VALUES ('Mauritania',2.50087,2000); INSERT INTO "population_years" VALUES ('Mauritania',2.56579,2001); INSERT INTO "population_years" VALUES ('Mauritania',2.63185,2002); INSERT INTO "population_years" VALUES ('Mauritania',2.69924,2003); INSERT INTO "population_years" VALUES ('Mauritania',2.76795,2004); INSERT INTO "population_years" VALUES ('Mauritania',2.83794,2005); INSERT INTO "population_years" VALUES ('Mauritania',2.9091,2006); INSERT INTO "population_years" VALUES ('Mauritania',2.98145,2007); INSERT INTO "population_years" VALUES ('Mauritania',3.05493,2008); INSERT INTO "population_years" VALUES ('Mauritania',3.12949,2009); INSERT INTO "population_years" VALUES ('Mauritania',3.20506,2010); INSERT INTO "population_years" VALUES ('Mauritius',1.18593,2000); INSERT INTO "population_years" VALUES ('Mauritius',1.19788,2001); INSERT INTO "population_years" VALUES ('Mauritius',1.20959,2002); INSERT INTO "population_years" VALUES ('Mauritius',1.221,2003); INSERT INTO "population_years" VALUES ('Mauritius',1.23206,2004); INSERT INTO "population_years" VALUES ('Mauritius',1.24282,2005); INSERT INTO "population_years" VALUES ('Mauritius',1.25343,2006); INSERT INTO "population_years" VALUES ('Mauritius',1.2639,2007); INSERT INTO "population_years" VALUES ('Mauritius',1.27419,2008); INSERT INTO "population_years" VALUES ('Mauritius',1.28426,2009); INSERT INTO "population_years" VALUES ('Mauritius',1.2941,2010); INSERT INTO "population_years" VALUES ('Morocco',28.11304,2000); INSERT INTO "population_years" VALUES ('Morocco',28.47748,2001); INSERT INTO "population_years" VALUES ('Morocco',28.8389,2002); INSERT INTO "population_years" VALUES ('Morocco',29.19706,2003); INSERT INTO "population_years" VALUES ('Morocco',29.55151,2004); INSERT INTO "population_years" VALUES ('Morocco',29.90096,2005); INSERT INTO "population_years" VALUES ('Morocco',30.24777,2006); INSERT INTO "population_years" VALUES ('Morocco',30.59445,2007); INSERT INTO "population_years" VALUES ('Morocco',30.94046,2008); INSERT INTO "population_years" VALUES ('Morocco',31.28517,2009); INSERT INTO "population_years" VALUES ('Morocco',31.62743,2010); INSERT INTO "population_years" VALUES ('Mozambique',18.12456,2000); INSERT INTO "population_years" VALUES ('Mozambique',18.55916,2001); INSERT INTO "population_years" VALUES ('Mozambique',18.97917,2002); INSERT INTO "population_years" VALUES ('Mozambique',19.38308,2003); INSERT INTO "population_years" VALUES ('Mozambique',19.77284,2004); INSERT INTO "population_years" VALUES ('Mozambique',20.15401,2005); INSERT INTO "population_years" VALUES ('Mozambique',20.53002,2006); INSERT INTO "population_years" VALUES ('Mozambique',20.90558,2007); INSERT INTO "population_years" VALUES ('Mozambique',21.2847,2008); INSERT INTO "population_years" VALUES ('Mozambique',21.66928,2009); INSERT INTO "population_years" VALUES ('Mozambique',22.06145,2010); INSERT INTO "population_years" VALUES ('Namibia',1.89344,2000); INSERT INTO "population_years" VALUES ('Namibia',1.9351,2001); INSERT INTO "population_years" VALUES ('Namibia',1.96067,2002); INSERT INTO "population_years" VALUES ('Namibia',1.98343,2003); INSERT INTO "population_years" VALUES ('Namibia',2.00665,2004); INSERT INTO "population_years" VALUES ('Namibia',2.02836,2005); INSERT INTO "population_years" VALUES ('Namibia',2.04915,2006); INSERT INTO "population_years" VALUES ('Namibia',2.06903,2007); INSERT INTO "population_years" VALUES ('Namibia',2.08867,2008); INSERT INTO "population_years" VALUES ('Namibia',2.10866,2009); INSERT INTO "population_years" VALUES ('Namibia',2.12847,2010); INSERT INTO "population_years" VALUES ('Niger',10.95143,2000); INSERT INTO "population_years" VALUES ('Niger',11.36215,2001); INSERT INTO "population_years" VALUES ('Niger',11.79208,2002); INSERT INTO "population_years" VALUES ('Niger',12.23931,2003); INSERT INTO "population_years" VALUES ('Niger',12.70466,2004); INSERT INTO "population_years" VALUES ('Niger',13.18887,2005); INSERT INTO "population_years" VALUES ('Niger',13.69295,2006); INSERT INTO "population_years" VALUES ('Niger',14.21471,2007); INSERT INTO "population_years" VALUES ('Niger',14.75208,2008); INSERT INTO "population_years" VALUES ('Niger',15.30625,2009); INSERT INTO "population_years" VALUES ('Niger',15.87827,2010); INSERT INTO "population_years" VALUES ('Nigeria',123.17882,2000); INSERT INTO "population_years" VALUES ('Nigeria',126.01433,2001); INSERT INTO "population_years" VALUES ('Nigeria',128.86432,2002); INSERT INTO "population_years" VALUES ('Nigeria',131.72752,2003); INSERT INTO "population_years" VALUES ('Nigeria',134.60451,2004); INSERT INTO "population_years" VALUES ('Nigeria',137.49506,2005); INSERT INTO "population_years" VALUES ('Nigeria',140.39777,2006); INSERT INTO "population_years" VALUES ('Nigeria',143.3121,2007); INSERT INTO "population_years" VALUES ('Nigeria',146.25531,2008); INSERT INTO "population_years" VALUES ('Nigeria',149.22909,2009); INSERT INTO "population_years" VALUES ('Nigeria',152.21734,2010); INSERT INTO "population_years" VALUES ('Reunion',0.72,2000); INSERT INTO "population_years" VALUES ('Reunion',0.73257,2001); INSERT INTO "population_years" VALUES ('Reunion',0.74387,2002); INSERT INTO "population_years" VALUES ('Reunion',0.75517,2003); INSERT INTO "population_years" VALUES ('Reunion',0.76615,2004); INSERT INTO "population_years" VALUES ('Reunion',0.76615,2005); INSERT INTO "population_years" VALUES ('Reunion',0.76615,2006); INSERT INTO "population_years" VALUES ('Reunion',0.76615,2007); INSERT INTO "population_years" VALUES ('Reunion',0.76615,2008); INSERT INTO "population_years" VALUES ('Reunion',0.76615,2009); INSERT INTO "population_years" VALUES ('Reunion',0.76615,2010); INSERT INTO "population_years" VALUES ('Rwanda',8.39841,2000); INSERT INTO "population_years" VALUES ('Rwanda',8.61098,2001); INSERT INTO "population_years" VALUES ('Rwanda',8.85737,2002); INSERT INTO "population_years" VALUES ('Rwanda',9.09847,2003); INSERT INTO "population_years" VALUES ('Rwanda',9.36125,2004); INSERT INTO "population_years" VALUES ('Rwanda',9.61107,2005); INSERT INTO "population_years" VALUES ('Rwanda',9.85722,2006); INSERT INTO "population_years" VALUES ('Rwanda',10.14108,2007); INSERT INTO "population_years" VALUES ('Rwanda',10.44077,2008); INSERT INTO "population_years" VALUES ('Rwanda',10.74631,2009); INSERT INTO "population_years" VALUES ('Rwanda',11.05598,2010); INSERT INTO "population_years" VALUES ('Saint Helena',0.00723,2000); INSERT INTO "population_years" VALUES ('Saint Helena',0.00728,2001); INSERT INTO "population_years" VALUES ('Saint Helena',0.00734,2002); INSERT INTO "population_years" VALUES ('Saint Helena',0.00739,2003); INSERT INTO "population_years" VALUES ('Saint Helena',0.00743,2004); INSERT INTO "population_years" VALUES ('Saint Helena',0.00748,2005); INSERT INTO "population_years" VALUES ('Saint Helena',0.00752,2006); INSERT INTO "population_years" VALUES ('Saint Helena',0.00756,2007); INSERT INTO "population_years" VALUES ('Saint Helena',0.0076,2008); INSERT INTO "population_years" VALUES ('Saint Helena',0.00764,2009); INSERT INTO "population_years" VALUES ('Saint Helena',0.00767,2010); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.14069,2000); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.14385,2001); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.14713,2002); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.15051,2003); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.15397,2004); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.15751,2005); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.16111,2006); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.16475,2007); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.16842,2008); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.1721,2009); INSERT INTO "population_years" VALUES ('Sao Tome and Principe',0.17581,2010); INSERT INTO "population_years" VALUES ('Senegal',9.46928,2000); INSERT INTO "population_years" VALUES ('Senegal',9.7162,2001); INSERT INTO "population_years" VALUES ('Senegal',9.97244,2002); INSERT INTO "population_years" VALUES ('Senegal',10.24014,2003); INSERT INTO "population_years" VALUES ('Senegal',10.51912,2004); INSERT INTO "population_years" VALUES ('Senegal',10.80412,2005); INSERT INTO "population_years" VALUES ('Senegal',11.09611,2006); INSERT INTO "population_years" VALUES ('Senegal',11.3943,2007); INSERT INTO "population_years" VALUES ('Senegal',11.69834,2008); INSERT INTO "population_years" VALUES ('Senegal',12.00807,2009); INSERT INTO "population_years" VALUES ('Senegal',12.32325,2010); INSERT INTO "population_years" VALUES ('Seychelles',0.07916,2000); INSERT INTO "population_years" VALUES ('Seychelles',0.08017,2001); INSERT INTO "population_years" VALUES ('Seychelles',0.08113,2002); INSERT INTO "population_years" VALUES ('Seychelles',0.08205,2003); INSERT INTO "population_years" VALUES ('Seychelles',0.08297,2004); INSERT INTO "population_years" VALUES ('Seychelles',0.08389,2005); INSERT INTO "population_years" VALUES ('Seychelles',0.0848,2006); INSERT INTO "population_years" VALUES ('Seychelles',0.0857,2007); INSERT INTO "population_years" VALUES ('Seychelles',0.0866,2008); INSERT INTO "population_years" VALUES ('Seychelles',0.08748,2009); INSERT INTO "population_years" VALUES ('Seychelles',0.08834,2010); INSERT INTO "population_years" VALUES ('Sierra Leone',3.80906,2000); INSERT INTO "population_years" VALUES ('Sierra Leone',4.04341,2001); INSERT INTO "population_years" VALUES ('Sierra Leone',4.28683,2002); INSERT INTO "population_years" VALUES ('Sierra Leone',4.46568,2003); INSERT INTO "population_years" VALUES ('Sierra Leone',4.6022,2004); INSERT INTO "population_years" VALUES ('Sierra Leone',4.70805,2005); INSERT INTO "population_years" VALUES ('Sierra Leone',4.81762,2006); INSERT INTO "population_years" VALUES ('Sierra Leone',4.91833,2007); INSERT INTO "population_years" VALUES ('Sierra Leone',5.023,2008); INSERT INTO "population_years" VALUES ('Sierra Leone',5.13214,2009); INSERT INTO "population_years" VALUES ('Sierra Leone',5.2457,2010); INSERT INTO "population_years" VALUES ('Somalia',7.38572,2000); INSERT INTO "population_years" VALUES ('Somalia',7.62677,2001); INSERT INTO "population_years" VALUES ('Somalia',7.89678,2002); INSERT INTO "population_years" VALUES ('Somalia',8.17424,2003); INSERT INTO "population_years" VALUES ('Somalia',8.45947,2004); INSERT INTO "population_years" VALUES ('Somalia',8.75245,2005); INSERT INTO "population_years" VALUES ('Somalia',9.03018,2006); INSERT INTO "population_years" VALUES ('Somalia',9.29161,2007); INSERT INTO "population_years" VALUES ('Somalia',9.55867,2008); INSERT INTO "population_years" VALUES ('Somalia',9.83202,2009); INSERT INTO "population_years" VALUES ('Somalia',10.11245,2010); INSERT INTO "population_years" VALUES ('South Africa',45.0641,2000); INSERT INTO "population_years" VALUES ('South Africa',45.57622,2001); INSERT INTO "population_years" VALUES ('South Africa',46.07695,2002); INSERT INTO "population_years" VALUES ('South Africa',46.56663,2003); INSERT INTO "population_years" VALUES ('South Africa',47.03287,2004); INSERT INTO "population_years" VALUES ('South Africa',47.48345,2005); INSERT INTO "population_years" VALUES ('South Africa',47.92567,2006); INSERT INTO "population_years" VALUES ('South Africa',48.36713,2007); INSERT INTO "population_years" VALUES ('South Africa',48.78276,2008); INSERT INTO "population_years" VALUES ('South Africa',49.05249,2009); INSERT INTO "population_years" VALUES ('South Africa',49.10911,2010); INSERT INTO "population_years" VALUES ('Sudan',34.1093,2000); INSERT INTO "population_years" VALUES ('Sudan',35.02449,2001); INSERT INTO "population_years" VALUES ('Sudan',35.9266,2002); INSERT INTO "population_years" VALUES ('Sudan',36.70783,2003); INSERT INTO "population_years" VALUES ('Sudan',37.44223,2004); INSERT INTO "population_years" VALUES ('Sudan',38.36308,2005); INSERT INTO "population_years" VALUES ('Sudan',39.3964,2006); INSERT INTO "population_years" VALUES ('Sudan',40.52607,2007); INSERT INTO "population_years" VALUES ('Sudan',41.68078,2008); INSERT INTO "population_years" VALUES ('Sudan',42.81128,2009); INSERT INTO "population_years" VALUES ('Sudan',43.9396,2010); INSERT INTO "population_years" VALUES ('Swaziland',1.14393,2000); INSERT INTO "population_years" VALUES ('Swaziland',1.16952,2001); INSERT INTO "population_years" VALUES ('Swaziland',1.19371,2002); INSERT INTO "population_years" VALUES ('Swaziland',1.21644,2003); INSERT INTO "population_years" VALUES ('Swaziland',1.23795,2004); INSERT INTO "population_years" VALUES ('Swaziland',1.25898,2005); INSERT INTO "population_years" VALUES ('Swaziland',1.2798,2006); INSERT INTO "population_years" VALUES ('Swaziland',1.29991,2007); INSERT INTO "population_years" VALUES ('Swaziland',1.3191,2008); INSERT INTO "population_years" VALUES ('Swaziland',1.33719,2009); INSERT INTO "population_years" VALUES ('Swaziland',1.35405,2010); INSERT INTO "population_years" VALUES ('Tanzania',33.71212,2000); INSERT INTO "population_years" VALUES ('Tanzania',34.56725,2001); INSERT INTO "population_years" VALUES ('Tanzania',35.3831,2002); INSERT INTO "population_years" VALUES ('Tanzania',36.19879,2003); INSERT INTO "population_years" VALUES ('Tanzania',36.98997,2004); INSERT INTO "population_years" VALUES ('Tanzania',37.77057,2005); INSERT INTO "population_years" VALUES ('Tanzania',38.56853,2006); INSERT INTO "population_years" VALUES ('Tanzania',39.38422,2007); INSERT INTO "population_years" VALUES ('Tanzania',40.21316,2008); INSERT INTO "population_years" VALUES ('Tanzania',41.04853,2009); INSERT INTO "population_years" VALUES ('Tanzania',41.8929,2010); INSERT INTO "population_years" VALUES ('Togo',4.99183,2000); INSERT INTO "population_years" VALUES ('Togo',5.13457,2001); INSERT INTO "population_years" VALUES ('Togo',5.27793,2002); INSERT INTO "population_years" VALUES ('Togo',5.42496,2003); INSERT INTO "population_years" VALUES ('Togo',5.57821,2004); INSERT INTO "population_years" VALUES ('Togo',5.71452,2005); INSERT INTO "population_years" VALUES ('Togo',5.8654,2006); INSERT INTO "population_years" VALUES ('Togo',6.04238,2007); INSERT INTO "population_years" VALUES ('Togo',6.22035,2008); INSERT INTO "population_years" VALUES ('Togo',6.40501,2009); INSERT INTO "population_years" VALUES ('Togo',6.58724,2010); INSERT INTO "population_years" VALUES ('Tunisia',9.56755,2000); INSERT INTO "population_years" VALUES ('Tunisia',9.67117,2001); INSERT INTO "population_years" VALUES ('Tunisia',9.77448,2002); INSERT INTO "population_years" VALUES ('Tunisia',9.87718,2003); INSERT INTO "population_years" VALUES ('Tunisia',9.97893,2004); INSERT INTO "population_years" VALUES ('Tunisia',10.07938,2005); INSERT INTO "population_years" VALUES ('Tunisia',10.17973,2006); INSERT INTO "population_years" VALUES ('Tunisia',10.28121,2007); INSERT INTO "population_years" VALUES ('Tunisia',10.38358,2008); INSERT INTO "population_years" VALUES ('Tunisia',10.48634,2009); INSERT INTO "population_years" VALUES ('Tunisia',10.58903,2010); INSERT INTO "population_years" VALUES ('Uganda',23.95582,2000); INSERT INTO "population_years" VALUES ('Uganda',24.69,2001); INSERT INTO "population_years" VALUES ('Uganda',25.46958,2002); INSERT INTO "population_years" VALUES ('Uganda',26.32196,2003); INSERT INTO "population_years" VALUES ('Uganda',27.23366,2004); INSERT INTO "population_years" VALUES ('Uganda',28.19939,2005); INSERT INTO "population_years" VALUES ('Uganda',29.2065,2006); INSERT INTO "population_years" VALUES ('Uganda',30.26261,2007); INSERT INTO "population_years" VALUES ('Uganda',31.36797,2008); INSERT INTO "population_years" VALUES ('Uganda',32.36956,2009); INSERT INTO "population_years" VALUES ('Uganda',33.39868,2010); INSERT INTO "population_years" VALUES ('Western Sahara',0.3363,2000); INSERT INTO "population_years" VALUES ('Western Sahara',0.35169,2001); INSERT INTO "population_years" VALUES ('Western Sahara',0.36739,2002); INSERT INTO "population_years" VALUES ('Western Sahara',0.3834,2003); INSERT INTO "population_years" VALUES ('Western Sahara',0.39974,2004); INSERT INTO "population_years" VALUES ('Western Sahara',0.4154,2005); INSERT INTO "population_years" VALUES ('Western Sahara',0.43032,2006); INSERT INTO "population_years" VALUES ('Western Sahara',0.4454,2007); INSERT INTO "population_years" VALUES ('Western Sahara',0.46063,2008); INSERT INTO "population_years" VALUES ('Western Sahara',0.47601,2009); INSERT INTO "population_years" VALUES ('Western Sahara',0.49152,2010); INSERT INTO "population_years" VALUES ('Zambia',10.34517,2000); INSERT INTO "population_years" VALUES ('Zambia',10.6461,2001); INSERT INTO "population_years" VALUES ('Zambia',10.91696,2002); INSERT INTO "population_years" VALUES ('Zambia',11.17251,2003); INSERT INTO "population_years" VALUES ('Zambia',11.4337,2004); INSERT INTO "population_years" VALUES ('Zambia',11.71036,2005); INSERT INTO "population_years" VALUES ('Zambia',12.01326,2006); INSERT INTO "population_years" VALUES ('Zambia',12.34108,2007); INSERT INTO "population_years" VALUES ('Zambia',12.69423,2008); INSERT INTO "population_years" VALUES ('Zambia',13.06068,2009); INSERT INTO "population_years" VALUES ('Zambia',13.46031,2010); INSERT INTO "population_years" VALUES ('Zimbabwe',11.82003,2000); INSERT INTO "population_years" VALUES ('Zimbabwe',11.86786,2001); INSERT INTO "population_years" VALUES ('Zimbabwe',11.86602,2002); INSERT INTO "population_years" VALUES ('Zimbabwe',11.81552,2003); INSERT INTO "population_years" VALUES ('Zimbabwe',11.73505,2004); INSERT INTO "population_years" VALUES ('Zimbabwe',11.63947,2005); INSERT INTO "population_years" VALUES ('Zimbabwe',11.54433,2006); INSERT INTO "population_years" VALUES ('Zimbabwe',11.44319,2007); INSERT INTO "population_years" VALUES ('Zimbabwe',11.35011,2008); INSERT INTO "population_years" VALUES ('Zimbabwe',11.39263,2009); INSERT INTO "population_years" VALUES ('Zimbabwe',11.65186,2010); INSERT INTO "population_years" VALUES ('Afghanistan',22.02095,2000); INSERT INTO "population_years" VALUES ('Afghanistan',22.0222,2001); INSERT INTO "population_years" VALUES ('Afghanistan',23.05074,2002); INSERT INTO "population_years" VALUES ('Afghanistan',24.38858,2003); INSERT INTO "population_years" VALUES ('Afghanistan',25.00134,2004); INSERT INTO "population_years" VALUES ('Afghanistan',25.53805,2005); INSERT INTO "population_years" VALUES ('Afghanistan',26.23521,2006); INSERT INTO "population_years" VALUES ('Afghanistan',26.91153,2007); INSERT INTO "population_years" VALUES ('Afghanistan',27.65889,2008); INSERT INTO "population_years" VALUES ('Afghanistan',28.39572,2009); INSERT INTO "population_years" VALUES ('Afghanistan',29.12129,2010); INSERT INTO "population_years" VALUES ('American Samoa',0.05777,2000); INSERT INTO "population_years" VALUES ('American Samoa',0.05874,2001); INSERT INTO "population_years" VALUES ('American Samoa',0.05964,2002); INSERT INTO "population_years" VALUES ('American Samoa',0.0605,2003); INSERT INTO "population_years" VALUES ('American Samoa',0.06146,2004); INSERT INTO "population_years" VALUES ('American Samoa',0.0624,2005); INSERT INTO "population_years" VALUES ('American Samoa',0.06322,2006); INSERT INTO "population_years" VALUES ('American Samoa',0.06403,2007); INSERT INTO "population_years" VALUES ('American Samoa',0.06483,2008); INSERT INTO "population_years" VALUES ('American Samoa',0.06563,2009); INSERT INTO "population_years" VALUES ('American Samoa',0.06643,2010); INSERT INTO "population_years" VALUES ('Australia',19.05319,2000); INSERT INTO "population_years" VALUES ('Australia',19.29426,2001); INSERT INTO "population_years" VALUES ('Australia',19.53494,2002); INSERT INTO "population_years" VALUES ('Australia',19.76654,2003); INSERT INTO "population_years" VALUES ('Australia',19.99508,2004); INSERT INTO "population_years" VALUES ('Australia',20.23235,2005); INSERT INTO "population_years" VALUES ('Australia',20.48947,2006); INSERT INTO "population_years" VALUES ('Australia',20.74963,2007); INSERT INTO "population_years" VALUES ('Australia',21.00731,2008); INSERT INTO "population_years" VALUES ('Australia',21.26264,2009); INSERT INTO "population_years" VALUES ('Australia',21.51575,2010); INSERT INTO "population_years" VALUES ('Bangladesh',132.15077,2000); INSERT INTO "population_years" VALUES ('Bangladesh',134.47753,2001); INSERT INTO "population_years" VALUES ('Bangladesh',136.86984,2002); INSERT INTO "population_years" VALUES ('Bangladesh',139.30503,2003); INSERT INTO "population_years" VALUES ('Bangladesh',141.7344,2004); INSERT INTO "population_years" VALUES ('Bangladesh',144.13874,2005); INSERT INTO "population_years" VALUES ('Bangladesh',146.51711,2006); INSERT INTO "population_years" VALUES ('Bangladesh',148.89374,2007); INSERT INTO "population_years" VALUES ('Bangladesh',151.28999,2008); INSERT INTO "population_years" VALUES ('Bangladesh',153.70033,2009); INSERT INTO "population_years" VALUES ('Bangladesh',156.11846,2010); INSERT INTO "population_years" VALUES ('Bhutan',0.60587,2000); INSERT INTO "population_years" VALUES ('Bhutan',0.61598,2001); INSERT INTO "population_years" VALUES ('Bhutan',0.62594,2002); INSERT INTO "population_years" VALUES ('Bhutan',0.63576,2003); INSERT INTO "population_years" VALUES ('Bhutan',0.64541,2004); INSERT INTO "population_years" VALUES ('Bhutan',0.6549,2005); INSERT INTO "population_years" VALUES ('Bhutan',0.66421,2006); INSERT INTO "population_years" VALUES ('Bhutan',0.67335,2007); INSERT INTO "population_years" VALUES ('Bhutan',0.68232,2008); INSERT INTO "population_years" VALUES ('Bhutan',0.69114,2009); INSERT INTO "population_years" VALUES ('Bhutan',0.69985,2010); INSERT INTO "population_years" VALUES ('Brunei',0.3253,2000); INSERT INTO "population_years" VALUES ('Brunei',0.33265,2001); INSERT INTO "population_years" VALUES ('Brunei',0.33999,2002); INSERT INTO "population_years" VALUES ('Brunei',0.34726,2003); INSERT INTO "population_years" VALUES ('Brunei',0.35431,2004); INSERT INTO "population_years" VALUES ('Brunei',0.36111,2005); INSERT INTO "population_years" VALUES ('Brunei',0.36782,2006); INSERT INTO "population_years" VALUES ('Brunei',0.37458,2007); INSERT INTO "population_years" VALUES ('Brunei',0.38137,2008); INSERT INTO "population_years" VALUES ('Brunei',0.38819,2009); INSERT INTO "population_years" VALUES ('Brunei',0.39503,2010); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',47.43887,2000); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',48.08106,2001); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',48.71575,2002); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',49.34468,2003); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',49.9622,2004); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',50.57209,2005); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',51.16167,2006); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',51.75584,2007); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',52.22815,2008); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',52.82612,2009); INSERT INTO "population_years" VALUES ('Burma (Myanmar)',53.41437,2010); INSERT INTO "population_years" VALUES ('Cambodia',12.35115,2000); INSERT INTO "population_years" VALUES ('Cambodia',12.53961,2001); INSERT INTO "population_years" VALUES ('Cambodia',12.7292,2002); INSERT INTO "population_years" VALUES ('Cambodia',12.92071,2003); INSERT INTO "population_years" VALUES ('Cambodia',13.10994,2004); INSERT INTO "population_years" VALUES ('Cambodia',13.2974,2005); INSERT INTO "population_years" VALUES ('Cambodia',13.49871,2006); INSERT INTO "population_years" VALUES ('Cambodia',13.71869,2007); INSERT INTO "population_years" VALUES ('Cambodia',13.95701,2008); INSERT INTO "population_years" VALUES ('Cambodia',14.20623,2009); INSERT INTO "population_years" VALUES ('Cambodia',14.45368,2010); INSERT INTO "population_years" VALUES ('China',1263.63753,2000); INSERT INTO "population_years" VALUES ('China',1270.74423,2001); INSERT INTO "population_years" VALUES ('China',1277.59472,2002); INSERT INTO "population_years" VALUES ('China',1284.30332,2003); INSERT INTO "population_years" VALUES ('China',1291.0018,2004); INSERT INTO "population_years" VALUES ('China',1297.76532,2005); INSERT INTO "population_years" VALUES ('China',1304.26188,2006); INSERT INTO "population_years" VALUES ('China',1310.58354,2007); INSERT INTO "population_years" VALUES ('China',1317.06568,2008); INSERT INTO "population_years" VALUES ('China',1323.59158,2009); INSERT INTO "population_years" VALUES ('China',1330.14129,2010); INSERT INTO "population_years" VALUES ('Cook Islands',0.01631,2000); INSERT INTO "population_years" VALUES ('Cook Islands',0.01573,2001); INSERT INTO "population_years" VALUES ('Cook Islands',0.01515,2002); INSERT INTO "population_years" VALUES ('Cook Islands',0.0146,2003); INSERT INTO "population_years" VALUES ('Cook Islands',0.01409,2004); INSERT INTO "population_years" VALUES ('Cook Islands',0.0136,2005); INSERT INTO "population_years" VALUES ('Cook Islands',0.01313,2006); INSERT INTO "population_years" VALUES ('Cook Islands',0.01269,2007); INSERT INTO "population_years" VALUES ('Cook Islands',0.01227,2008); INSERT INTO "population_years" VALUES ('Cook Islands',0.01187,2009); INSERT INTO "population_years" VALUES ('Cook Islands',0.01149,2010); INSERT INTO "population_years" VALUES ('Fiji',0.80493,2000); INSERT INTO "population_years" VALUES ('Fiji',0.81073,2001); INSERT INTO "population_years" VALUES ('Fiji',0.81667,2002); INSERT INTO "population_years" VALUES ('Fiji',0.82318,2003); INSERT INTO "population_years" VALUES ('Fiji',0.82982,2004); INSERT INTO "population_years" VALUES ('Fiji',0.83656,2005); INSERT INTO "population_years" VALUES ('Fiji',0.84395,2006); INSERT INTO "population_years" VALUES ('Fiji',0.85211,2007); INSERT INTO "population_years" VALUES ('Fiji',0.86054,2008); INSERT INTO "population_years" VALUES ('Fiji',0.8685,2009); INSERT INTO "population_years" VALUES ('Fiji',0.87598,2010); INSERT INTO "population_years" VALUES ('French Polynesia',0.24918,2000); INSERT INTO "population_years" VALUES ('French Polynesia',0.25361,2001); INSERT INTO "population_years" VALUES ('French Polynesia',0.25798,2002); INSERT INTO "population_years" VALUES ('French Polynesia',0.2623,2003); INSERT INTO "population_years" VALUES ('French Polynesia',0.26655,2004); INSERT INTO "population_years" VALUES ('French Polynesia',0.27074,2005); INSERT INTO "population_years" VALUES ('French Polynesia',0.27487,2006); INSERT INTO "population_years" VALUES ('French Polynesia',0.27896,2007); INSERT INTO "population_years" VALUES ('French Polynesia',0.28302,2008); INSERT INTO "population_years" VALUES ('French Polynesia',0.28703,2009); INSERT INTO "population_years" VALUES ('French Polynesia',0.291,2010); INSERT INTO "population_years" VALUES ('Guam',0.15532,2000); INSERT INTO "population_years" VALUES ('Guam',0.15833,2001); INSERT INTO "population_years" VALUES ('Guam',0.16106,2002); INSERT INTO "population_years" VALUES ('Guam',0.16361,2003); INSERT INTO "population_years" VALUES ('Guam',0.16612,2004); INSERT INTO "population_years" VALUES ('Guam',0.16861,2005); INSERT INTO "population_years" VALUES ('Guam',0.17109,2006); INSERT INTO "population_years" VALUES ('Guam',0.17354,2007); INSERT INTO "population_years" VALUES ('Guam',0.17599,2008); INSERT INTO "population_years" VALUES ('Guam',0.17843,2009); INSERT INTO "population_years" VALUES ('Guam',0.18087,2010); INSERT INTO "population_years" VALUES ('Hong Kong',6.65872,2000); INSERT INTO "population_years" VALUES ('Hong Kong',6.71338,2001); INSERT INTO "population_years" VALUES ('Hong Kong',6.76248,2002); INSERT INTO "population_years" VALUES ('Hong Kong',6.80974,2003); INSERT INTO "population_years" VALUES ('Hong Kong',6.85513,2004); INSERT INTO "population_years" VALUES ('Hong Kong',6.89869,2005); INSERT INTO "population_years" VALUES ('Hong Kong',6.94043,2006); INSERT INTO "population_years" VALUES ('Hong Kong',6.98041,2007); INSERT INTO "population_years" VALUES ('Hong Kong',7.01864,2008); INSERT INTO "population_years" VALUES ('Hong Kong',7.05507,2009); INSERT INTO "population_years" VALUES ('Hong Kong',7.08971,2010); INSERT INTO "population_years" VALUES ('India',1006.3003,2000); INSERT INTO "population_years" VALUES ('India',1023.29508,2001); INSERT INTO "population_years" VALUES ('India',1040.28482,2002); INSERT INTO "population_years" VALUES ('India',1057.25112,2003); INSERT INTO "population_years" VALUES ('India',1074.15902,2004); INSERT INTO "population_years" VALUES ('India',1090.97303,2005); INSERT INTO "population_years" VALUES ('India',1107.62435,2006); INSERT INTO "population_years" VALUES ('India',1140.56621,2008); INSERT INTO "population_years" VALUES ('India',1124.1348,2007); INSERT INTO "population_years" VALUES ('India',1156.89777,2009); INSERT INTO "population_years" VALUES ('India',1173.10802,2010); INSERT INTO "population_years" VALUES ('Indonesia',214.67661,2000); INSERT INTO "population_years" VALUES ('Indonesia',217.83628,2001); INSERT INTO "population_years" VALUES ('Indonesia',220.97191,2002); INSERT INTO "population_years" VALUES ('Indonesia',223.06967,2003); INSERT INTO "population_years" VALUES ('Indonesia',226.00413,2004); INSERT INTO "population_years" VALUES ('Indonesia',228.89575,2005); INSERT INTO "population_years" VALUES ('Indonesia',231.82024,2006); INSERT INTO "population_years" VALUES ('Indonesia',234.694,2007); INSERT INTO "population_years" VALUES ('Indonesia',237.51236,2008); INSERT INTO "population_years" VALUES ('Indonesia',242.96834,2010); INSERT INTO "population_years" VALUES ('Indonesia',240.27152,2009); INSERT INTO "population_years" VALUES ('Japan',126.72922,2000); INSERT INTO "population_years" VALUES ('Japan',126.97191,2001); INSERT INTO "population_years" VALUES ('Japan',127.18724,2002); INSERT INTO "population_years" VALUES ('Japan',127.35774,2003); INSERT INTO "population_years" VALUES ('Japan',127.4805,2004); INSERT INTO "population_years" VALUES ('Japan',127.53719,2005); INSERT INTO "population_years" VALUES ('Japan',127.51517,2006); INSERT INTO "population_years" VALUES ('Japan',127.43349,2007); INSERT INTO "population_years" VALUES ('Japan',127.28842,2008); INSERT INTO "population_years" VALUES ('Japan',127.07868,2009); INSERT INTO "population_years" VALUES ('Japan',126.80443,2010); INSERT INTO "population_years" VALUES ('Kiribati',0.08512,2000); INSERT INTO "population_years" VALUES ('Kiribati',0.08676,2001); INSERT INTO "population_years" VALUES ('Kiribati',0.08826,2002); INSERT INTO "population_years" VALUES ('Kiribati',0.0897,2003); INSERT INTO "population_years" VALUES ('Kiribati',0.09112,2004); INSERT INTO "population_years" VALUES ('Kiribati',0.09259,2005); INSERT INTO "population_years" VALUES ('Kiribati',0.09406,2006); INSERT INTO "population_years" VALUES ('Kiribati',0.09548,2007); INSERT INTO "population_years" VALUES ('Kiribati',0.09686,2008); INSERT INTO "population_years" VALUES ('Kiribati',0.09819,2009); INSERT INTO "population_years" VALUES ('Kiribati',0.09948,2010); INSERT INTO "population_years" VALUES ('Korea, North',21.26345,2000); INSERT INTO "population_years" VALUES ('Korea, North',21.49473,2001); INSERT INTO "population_years" VALUES ('Korea, North',21.71214,2002); INSERT INTO "population_years" VALUES ('Korea, North',21.89828,2003); INSERT INTO "population_years" VALUES ('Korea, North',22.05448,2004); INSERT INTO "population_years" VALUES ('Korea, North',22.19857,2005); INSERT INTO "population_years" VALUES ('Korea, North',22.33156,2006); INSERT INTO "population_years" VALUES ('Korea, North',22.45422,2007); INSERT INTO "population_years" VALUES ('Korea, North',22.56535,2008); INSERT INTO "population_years" VALUES ('Korea, North',22.66535,2009); INSERT INTO "population_years" VALUES ('Korea, North',22.75728,2010); INSERT INTO "population_years" VALUES ('Korea, South',46.83884,2000); INSERT INTO "population_years" VALUES ('Korea, South',47.17781,2001); INSERT INTO "population_years" VALUES ('Korea, South',47.43728,2002); INSERT INTO "population_years" VALUES ('Korea, South',47.65663,2003); INSERT INTO "population_years" VALUES ('Korea, South',47.85385,2004); INSERT INTO "population_years" VALUES ('Korea, South',48.00516,2005); INSERT INTO "population_years" VALUES ('Korea, South',48.12356,2006); INSERT INTO "population_years" VALUES ('Korea, South',48.25015,2007); INSERT INTO "population_years" VALUES ('Korea, South',48.37939,2008); INSERT INTO "population_years" VALUES ('Korea, South',48.50897,2009); INSERT INTO "population_years" VALUES ('Korea, South',48.63607,2010); INSERT INTO "population_years" VALUES ('Laos',5.39741,2000); INSERT INTO "population_years" VALUES ('Laos',5.49852,2001); INSERT INTO "population_years" VALUES ('Laos',5.57803,2002); INSERT INTO "population_years" VALUES ('Laos',5.654,2003); INSERT INTO "population_years" VALUES ('Laos',5.74604,2004); INSERT INTO "population_years" VALUES ('Laos',5.83636,2005); INSERT INTO "population_years" VALUES ('Laos',5.93079,2006); INSERT INTO "population_years" VALUES ('Laos',6.03541,2007); INSERT INTO "population_years" VALUES ('Laos',6.14518,2008); INSERT INTO "population_years" VALUES ('Laos',6.25687,2009); INSERT INTO "population_years" VALUES ('Laos',6.36816,2010); INSERT INTO "population_years" VALUES ('Macau',0.43174,2000); INSERT INTO "population_years" VALUES ('Macau',0.43478,2001); INSERT INTO "population_years" VALUES ('Macau',0.43898,2002); INSERT INTO "population_years" VALUES ('Macau',0.44418,2003); INSERT INTO "population_years" VALUES ('Macau',0.45523,2004); INSERT INTO "population_years" VALUES ('Macau',0.47403,2005); INSERT INTO "population_years" VALUES ('Macau',0.49943,2006); INSERT INTO "population_years" VALUES ('Macau',0.52553,2007); INSERT INTO "population_years" VALUES ('Macau',0.54567,2008); INSERT INTO "population_years" VALUES ('Macau',0.55985,2009); INSERT INTO "population_years" VALUES ('Macau',0.56796,2010); INSERT INTO "population_years" VALUES ('Malaysia',23.15128,2000); INSERT INTO "population_years" VALUES ('Malaysia',23.73736,2001); INSERT INTO "population_years" VALUES ('Malaysia',24.28261,2002); INSERT INTO "population_years" VALUES ('Malaysia',24.8804,2003); INSERT INTO "population_years" VALUES ('Malaysia',25.47547,2004); INSERT INTO "population_years" VALUES ('Malaysia',25.96812,2005); INSERT INTO "population_years" VALUES ('Malaysia',26.43216,2006); INSERT INTO "population_years" VALUES ('Malaysia',26.89556,2007); INSERT INTO "population_years" VALUES ('Malaysia',27.35776,2008); INSERT INTO "population_years" VALUES ('Malaysia',27.81787,2009); INSERT INTO "population_years" VALUES ('Malaysia',28.27473,2010); INSERT INTO "population_years" VALUES ('Maldives',0.29998,2000); INSERT INTO "population_years" VALUES ('Maldives',0.30591,2001); INSERT INTO "population_years" VALUES ('Maldives',0.31186,2002); INSERT INTO "population_years" VALUES ('Maldives',0.31849,2003); INSERT INTO "population_years" VALUES ('Maldives',0.3266,2004); INSERT INTO "population_years" VALUES ('Maldives',0.33625,2005); INSERT INTO "population_years" VALUES ('Maldives',0.34812,2006); INSERT INTO "population_years" VALUES ('Maldives',0.36497,2007); INSERT INTO "population_years" VALUES ('Maldives',0.38593,2008); INSERT INTO "population_years" VALUES ('Maldives',0.39633,2009); INSERT INTO "population_years" VALUES ('Maldives',0.39565,2010); INSERT INTO "population_years" VALUES ('Mongolia',2.66376,2000); INSERT INTO "population_years" VALUES ('Mongolia',2.70447,2001); INSERT INTO "population_years" VALUES ('Mongolia',2.74455,2002); INSERT INTO "population_years" VALUES ('Mongolia',2.78408,2003); INSERT INTO "population_years" VALUES ('Mongolia',2.82457,2004); INSERT INTO "population_years" VALUES ('Mongolia',2.86599,2005); INSERT INTO "population_years" VALUES ('Mongolia',2.9084,2006); INSERT INTO "population_years" VALUES ('Mongolia',2.95179,2007); INSERT INTO "population_years" VALUES ('Mongolia',2.99608,2008); INSERT INTO "population_years" VALUES ('Mongolia',3.04114,2009); INSERT INTO "population_years" VALUES ('Mongolia',3.08692,2010); INSERT INTO "population_years" VALUES ('Nauru',0.00986,2000); INSERT INTO "population_years" VALUES ('Nauru',0.00989,2001); INSERT INTO "population_years" VALUES ('Nauru',0.00992,2002); INSERT INTO "population_years" VALUES ('Nauru',0.00993,2003); INSERT INTO "population_years" VALUES ('Nauru',0.00997,2004); INSERT INTO "population_years" VALUES ('Nauru',0.01001,2005); INSERT INTO "population_years" VALUES ('Nauru',0.00957,2006); INSERT INTO "population_years" VALUES ('Nauru',0.00912,2007); INSERT INTO "population_years" VALUES ('Nauru',0.00916,2008); INSERT INTO "population_years" VALUES ('Nauru',0.00921,2009); INSERT INTO "population_years" VALUES ('Nauru',0.00927,2010); INSERT INTO "population_years" VALUES ('Nepal',24.81816,2000); INSERT INTO "population_years" VALUES ('Nepal',25.33561,2001); INSERT INTO "population_years" VALUES ('Nepal',25.81505,2002); INSERT INTO "population_years" VALUES ('Nepal',26.27538,2003); INSERT INTO "population_years" VALUES ('Nepal',26.70832,2004); INSERT INTO "population_years" VALUES ('Nepal',27.09387,2005); INSERT INTO "population_years" VALUES ('Nepal',27.45895,2006); INSERT INTO "population_years" VALUES ('Nepal',27.82789,2007); INSERT INTO "population_years" VALUES ('Nepal',28.19696,2008); INSERT INTO "population_years" VALUES ('Nepal',28.56338,2009); INSERT INTO "population_years" VALUES ('Nepal',28.95185,2010); INSERT INTO "population_years" VALUES ('New Caledonia',0.21119,2000); INSERT INTO "population_years" VALUES ('New Caledonia',0.21528,2001); INSERT INTO "population_years" VALUES ('New Caledonia',0.21944,2002); INSERT INTO "population_years" VALUES ('New Caledonia',0.22369,2003); INSERT INTO "population_years" VALUES ('New Caledonia',0.22802,2004); INSERT INTO "population_years" VALUES ('New Caledonia',0.2324,2005); INSERT INTO "population_years" VALUES ('New Caledonia',0.23651,2006); INSERT INTO "population_years" VALUES ('New Caledonia',0.24045,2007); INSERT INTO "population_years" VALUES ('New Caledonia',0.24445,2008); INSERT INTO "population_years" VALUES ('New Caledonia',0.24841,2009); INSERT INTO "population_years" VALUES ('New Caledonia',0.25235,2010); INSERT INTO "population_years" VALUES ('New Zealand',3.8004,2000); INSERT INTO "population_years" VALUES ('New Zealand',3.83576,2001); INSERT INTO "population_years" VALUES ('New Zealand',3.89633,2002); INSERT INTO "population_years" VALUES ('New Zealand',3.95813,2003); INSERT INTO "population_years" VALUES ('New Zealand',4.00601,2004); INSERT INTO "population_years" VALUES ('New Zealand',4.04606,2005); INSERT INTO "population_years" VALUES ('New Zealand',4.0878,2006); INSERT INTO "population_years" VALUES ('New Zealand',4.13018,2007); INSERT INTO "population_years" VALUES ('New Zealand',4.1713,2008); INSERT INTO "population_years" VALUES ('New Zealand',4.21126,2009); INSERT INTO "population_years" VALUES ('New Zealand',4.25012,2010); INSERT INTO "population_years" VALUES ('Niue',0.002,2000); INSERT INTO "population_years" VALUES ('Niue',0.00212,2001); INSERT INTO "population_years" VALUES ('Niue',0.00213,2002); INSERT INTO "population_years" VALUES ('Niue',0.00215,2003); INSERT INTO "population_years" VALUES ('Niue',0.00216,2004); INSERT INTO "population_years" VALUES ('Niue',0.00216,2005); INSERT INTO "population_years" VALUES ('Niue',0.00216,2006); INSERT INTO "population_years" VALUES ('Niue',0.00216,2007); INSERT INTO "population_years" VALUES ('Niue',0.00216,2008); INSERT INTO "population_years" VALUES ('Niue',0.00216,2009); INSERT INTO "population_years" VALUES ('Niue',0.00216,2010); INSERT INTO "population_years" VALUES ('Pakistan',152.42904,2000); INSERT INTO "population_years" VALUES ('Pakistan',156.79544,2001); INSERT INTO "population_years" VALUES ('Pakistan',160.26923,2002); INSERT INTO "population_years" VALUES ('Pakistan',163.16564,2003); INSERT INTO "population_years" VALUES ('Pakistan',166.22361,2004); INSERT INTO "population_years" VALUES ('Pakistan',169.27864,2005); INSERT INTO "population_years" VALUES ('Pakistan',172.38187,2006); INSERT INTO "population_years" VALUES ('Pakistan',175.49508,2007); INSERT INTO "population_years" VALUES ('Pakistan',178.47939,2008); INSERT INTO "population_years" VALUES ('Pakistan',181.45728,2009); INSERT INTO "population_years" VALUES ('Pakistan',184.40479,2010); INSERT INTO "population_years" VALUES ('Papua New Guinea',4.81279,2000); INSERT INTO "population_years" VALUES ('Papua New Guinea',4.93745,2001); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.0626,2002); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.18811,2003); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.31389,2004); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.43977,2005); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.56556,2006); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.69109,2007); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.81623,2008); INSERT INTO "population_years" VALUES ('Papua New Guinea',5.94078,2009); INSERT INTO "population_years" VALUES ('Papua New Guinea',6.06452,2010); INSERT INTO "population_years" VALUES ('Philippines',81.22208,2000); INSERT INTO "population_years" VALUES ('Philippines',83.09528,2001); INSERT INTO "population_years" VALUES ('Philippines',84.93641,2002); INSERT INTO "population_years" VALUES ('Philippines',86.75169,2003); INSERT INTO "population_years" VALUES ('Philippines',88.62179,2004); INSERT INTO "population_years" VALUES ('Philippines',90.43579,2005); INSERT INTO "population_years" VALUES ('Philippines',92.26694,2006); INSERT INTO "population_years" VALUES ('Philippines',94.15747,2007); INSERT INTO "population_years" VALUES ('Philippines',96.06168,2008); INSERT INTO "population_years" VALUES ('Philippines',97.9766,2009); INSERT INTO "population_years" VALUES ('Philippines',99.90018,2010); INSERT INTO "population_years" VALUES ('Samoa',0.17621,2000); INSERT INTO "population_years" VALUES ('Samoa',0.17779,2001); INSERT INTO "population_years" VALUES ('Samoa',0.17943,2002); INSERT INTO "population_years" VALUES ('Samoa',0.18109,2003); INSERT INTO "population_years" VALUES ('Samoa',0.18277,2004); INSERT INTO "population_years" VALUES ('Samoa',0.18449,2005); INSERT INTO "population_years" VALUES ('Samoa',0.18625,2006); INSERT INTO "population_years" VALUES ('Samoa',0.18796,2007); INSERT INTO "population_years" VALUES ('Samoa',0.1895,2008); INSERT INTO "population_years" VALUES ('Samoa',0.1909,2009); INSERT INTO "population_years" VALUES ('Samoa',0.192,2010); INSERT INTO "population_years" VALUES ('Singapore',4.03675,2000); INSERT INTO "population_years" VALUES ('Singapore',4.12023,2001); INSERT INTO "population_years" VALUES ('Singapore',4.19778,2002); INSERT INTO "population_years" VALUES ('Singapore',4.27679,2003); INSERT INTO "population_years" VALUES ('Singapore',4.35389,2004); INSERT INTO "population_years" VALUES ('Singapore',4.42572,2005); INSERT INTO "population_years" VALUES ('Singapore',4.49215,2006); INSERT INTO "population_years" VALUES ('Singapore',4.55301,2007); INSERT INTO "population_years" VALUES ('Singapore',4.60817,2008); INSERT INTO "population_years" VALUES ('Singapore',4.65754,2009); INSERT INTO "population_years" VALUES ('Singapore',4.70107,2010); INSERT INTO "population_years" VALUES ('Solomon Islands',0.43373,2000); INSERT INTO "population_years" VALUES ('Solomon Islands',0.44591,2001); INSERT INTO "population_years" VALUES ('Solomon Islands',0.45822,2002); INSERT INTO "population_years" VALUES ('Solomon Islands',0.47065,2003); INSERT INTO "population_years" VALUES ('Solomon Islands',0.48317,2004); INSERT INTO "population_years" VALUES ('Solomon Islands',0.49575,2005); INSERT INTO "population_years" VALUES ('Solomon Islands',0.50838,2006); INSERT INTO "population_years" VALUES ('Solomon Islands',0.52107,2007); INSERT INTO "population_years" VALUES ('Solomon Islands',0.53378,2008); INSERT INTO "population_years" VALUES ('Solomon Islands',0.54649,2009); INSERT INTO "population_years" VALUES ('Solomon Islands',0.5592,2010); INSERT INTO "population_years" VALUES ('Sri Lanka',19.43587,2000); INSERT INTO "population_years" VALUES ('Sri Lanka',19.64627,2001); INSERT INTO "population_years" VALUES ('Sri Lanka',19.87007,2002); INSERT INTO "population_years" VALUES ('Sri Lanka',20.09749,2003); INSERT INTO "population_years" VALUES ('Sri Lanka',20.30327,2004); INSERT INTO "population_years" VALUES ('Sri Lanka',20.50426,2005); INSERT INTO "population_years" VALUES ('Sri Lanka',20.71793,2006); INSERT INTO "population_years" VALUES ('Sri Lanka',20.92632,2007); INSERT INTO "population_years" VALUES ('Sri Lanka',21.12877,2008); INSERT INTO "population_years" VALUES ('Sri Lanka',21.32479,2009); INSERT INTO "population_years" VALUES ('Sri Lanka',21.51399,2010); INSERT INTO "population_years" VALUES ('Taiwan',22.18286,2000); INSERT INTO "population_years" VALUES ('Taiwan',22.33581,2001); INSERT INTO "population_years" VALUES ('Taiwan',22.45063,2002); INSERT INTO "population_years" VALUES ('Taiwan',22.54347,2003); INSERT INTO "population_years" VALUES ('Taiwan',22.62239,2004); INSERT INTO "population_years" VALUES ('Taiwan',22.70108,2005); INSERT INTO "population_years" VALUES ('Taiwan',22.78187,2006); INSERT INTO "population_years" VALUES ('Taiwan',22.85887,2007); INSERT INTO "population_years" VALUES ('Taiwan',22.92095,2008); INSERT INTO "population_years" VALUES ('Taiwan',22.97435,2009); INSERT INTO "population_years" VALUES ('Taiwan',23.02496,2010); INSERT INTO "population_years" VALUES ('Thailand',62.15674,2000); INSERT INTO "population_years" VALUES ('Thailand',62.68514,2001); INSERT INTO "population_years" VALUES ('Thailand',63.21312,2002); INSERT INTO "population_years" VALUES ('Thailand',63.73055,2003); INSERT INTO "population_years" VALUES ('Thailand',64.24084,2004); INSERT INTO "population_years" VALUES ('Thailand',64.7426,2005); INSERT INTO "population_years" VALUES ('Thailand',65.23501,2006); INSERT INTO "population_years" VALUES ('Thailand',65.71702,2007); INSERT INTO "population_years" VALUES ('Thailand',66.18726,2008); INSERT INTO "population_years" VALUES ('Thailand',66.64481,2009); INSERT INTO "population_years" VALUES ('Thailand',67.0895,2010); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',NULL,2000); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',NULL,2001); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',NULL,2002); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',0.99855,2003); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',1.02005,2004); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',1.04181,2005); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',1.06384,2006); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',1.08617,2007); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',1.10878,2008); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',1.13161,2009); INSERT INTO "population_years" VALUES ('Timor-Leste (East Timor)',1.15463,2010); INSERT INTO "population_years" VALUES ('Tonga',0.10235,2000); INSERT INTO "population_years" VALUES ('Tonga',0.10426,2001); INSERT INTO "population_years" VALUES ('Tonga',0.10616,2002); INSERT INTO "population_years" VALUES ('Tonga',0.10817,2003); INSERT INTO "population_years" VALUES ('Tonga',0.11026,2004); INSERT INTO "population_years" VALUES ('Tonga',0.11245,2005); INSERT INTO "population_years" VALUES ('Tonga',0.11471,2006); INSERT INTO "population_years" VALUES ('Tonga',0.11694,2007); INSERT INTO "population_years" VALUES ('Tonga',0.11901,2008); INSERT INTO "population_years" VALUES ('Tonga',0.1209,2009); INSERT INTO "population_years" VALUES ('Tonga',0.12258,2010); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.24999,2000); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.25365,2001); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.25739,2002); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.26116,2003); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.26494,2004); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.25814,2005); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.24957,2006); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.24888,2007); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.24678,2008); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.24424,2009); INSERT INTO "population_years" VALUES ('U.S. Pacific Islands',0.24221,2010); INSERT INTO "population_years" VALUES ('Vanuatu',0.18986,2000); INSERT INTO "population_years" VALUES ('Vanuatu',0.19317,2001); INSERT INTO "population_years" VALUES ('Vanuatu',0.19646,2002); INSERT INTO "population_years" VALUES ('Vanuatu',0.19971,2003); INSERT INTO "population_years" VALUES ('Vanuatu',0.20293,2004); INSERT INTO "population_years" VALUES ('Vanuatu',0.20609,2005); INSERT INTO "population_years" VALUES ('Vanuatu',0.20922,2006); INSERT INTO "population_years" VALUES ('Vanuatu',0.21234,2007); INSERT INTO "population_years" VALUES ('Vanuatu',0.21545,2008); INSERT INTO "population_years" VALUES ('Vanuatu',0.21852,2009); INSERT INTO "population_years" VALUES ('Vanuatu',0.22155,2010); INSERT INTO "population_years" VALUES ('Vietnam',79.17798,2000); INSERT INTO "population_years" VALUES ('Vietnam',80.20948,2001); INSERT INTO "population_years" VALUES ('Vietnam',81.25796,2002); INSERT INTO "population_years" VALUES ('Vietnam',82.29659,2003); INSERT INTO "population_years" VALUES ('Vietnam',83.35245,2004); INSERT INTO "population_years" VALUES ('Vietnam',84.42493,2005); INSERT INTO "population_years" VALUES ('Vietnam',85.47054,2006); INSERT INTO "population_years" VALUES ('Vietnam',86.51885,2007); INSERT INTO "population_years" VALUES ('Vietnam',87.55836,2008); INSERT INTO "population_years" VALUES ('Vietnam',88.57676,2009); INSERT INTO "population_years" VALUES ('Vietnam',89.57113,2010); COMMIT;
true
64c7e96af66b221be3b5f8ebedce80732c673c5a
SQL
sea-kg/ga-safa
/gasafa.sql
UTF-8
1,166
2.9375
3
[ "MIT" ]
permissive
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 */; CREATE TABLE IF NOT EXISTS `approx_funcs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `signalid` int(11) NOT NULL, `funcs` text NOT NULL, `distance` int(11) NOT NULL, `state` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `signals` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `data` text NOT NULL, `size` int(11) NOT NULL, `freq` float NOT NULL, `state` varchar(255) NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; /*!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
2ccc5268e602257d9bbe45d6a4a49dc8af160635
SQL
Pajtak/Generation_MySQL
/CursoOnline - Exercรญcio 6 - 25-10-2021.sql
UTF-8
3,602
3.96875
4
[ "Apache-2.0" ]
permissive
/*Crie um banco de dados para um serviรงo de um site de cursos onlines, o nome do banco deverรก ter o seguinte nome db_cursoDaMinhaVida, onde o sistema trabalharรก com as informaรงรตes dos produtos desta empresa. O sistema trabalharรก com 2 tabelas tb_curso e tb_categoria. siga exatamente esse passo a passo: Crie uma tabela de categorias utilizando a habilidade de abstraรงรฃo e determine 3 atributos relevantes do tb_categoria para se trabalhar com o serviรงo deste site de cursos onlines. Crie uma tabela de tb_produto e utilizando a habilidade de abstraรงรฃo e determine 5 atributos relevantes dos tb_produto para se trabalhar com o serviรงo de um site de cursos onlines(nรฃo esqueรงa de criar a foreign key de tb_categoria nesta tabela). Popule esta tabela Categoria com atรฉ 5 dados. Popule esta tabela Produto com atรฉ 8 dados. Faรงa um select que retorne os Produtos com o valor maior do que 50 reais. Faรงa um select trazendo os Produtos com valor entre 3 e 60 reais. Faรงa um select utilizando LIKE buscando os Produtos com a letra J. Faรงa um um select com Inner join entre tabela categoria e produto. Faรงa um select onde traga todos os Produtos de uma categoria especรญfica (exemplo todos os produtos que sรฃo da categoria Java). Salve as querys para cada uma dos requisitos do exercรญcio em um arquivo .SQL ou texto e coloque no seu GitHuB pessoal e compartilhe esta atividade.*/ create database db_curso_da_minha_vida; use db_curso_da_minha_vida; create table tb_categorias ( id_categorias bigint (3) auto_increment, materia enum("Inglรชs", "Francรชs", "Espanhol", "Java", "Python"), professor varchar(30), primary key(id_categorias) ); insert into tb_categorias (materia, professor) values ("Francรชs", "Franรงois"); insert into tb_categorias (materia, professor) values ("Python", "Pierre"); insert into tb_categorias (materia, professor) values ("Espanhol", "Rayanni"); insert into tb_categorias (materia, professor) values ("Inglรชs", "Renata"); insert into tb_categorias (materia, professor) values ("Python", "Dexter"); insert into tb_categorias (materia, professor) values ("Java", "Jairo"); create table tb_produtos ( id_produtos bigint (5) auto_increment, valor real not null, horario time, presencial boolean, turmas bigint, fk_categorias bigint, foreign key (fk_categorias) references tb_categorias(id_categorias), primary key (id_produtos) ); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (200.00, "20:00", 0, 1, 1); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (33.99, "08:00", 0, 2, 2); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (40.99, "08:00", 0, 3, 6); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (33.99, "08:00", 0, 4, 5); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (180.00, "21:00", 1, 5, 3); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (230.00, "17:00", 0, 6, 4); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (200.00, "19:00", 1, 7, 1); insert into tb_produtos (valor, horario, presencial, turmas, fk_categorias) values (180.00, "19:00", 0, 8, 3); select * from tb_produtos where valor > 50.00; select * from tb_produtos where valor between 3.00 and 60; select * from tb_categorias where materia like "%C%"; select * from tb_produtos inner join tb_categorias on tb_categorias.id_categorias = tb_produtos.fk_categorias; select * from tb_produtos where fk_categorias = 3;
true
47dd2a44cc1e4340cc2b3eaae7da6f1450ca6575
SQL
Lucyferius/youtube_telegram_bot
/src/main/resources/db/migration/V1__init.sql
UTF-8
1,132
3.640625
4
[]
no_license
create table bot_states ( id int not null primary key, description text not null ); insert into bot_states (id, description) values (0,'READY'); insert into bot_states (id, description) values (1,'BUSY'); create table bot_users ( id bigserial primary key, user_name text not null, chat_id bigserial not null, bot_state int not null references bot_states (id) ); create unique index users_user_name_uindex on bot_users (user_name); create unique index users_chat_id_uindex on bot_users (chat_id); create table media_type( id int not null primary key, type text not null ); insert into media_type (id, type) values (0,'mp3'); insert into media_type (id, type) values (1,'mp4'); create table uploaded_files( id bigserial primary key, youtube_video_id text not null, telegram_file_id text not null, media_type int not null references media_type (id) ); create unique index video_id_telegram_id_type_uindex on uploaded_files(youtube_video_id, telegram_file_id, media_type);
true
5abe10541a8ccb5b1d625fedb046fbdbd8152ec3
SQL
20143104/KMU
/2018-1/๋ฐ์ดํ„ฐ ๋ฒ ์ด์Šค/MySQL Report-2018/CompanyDB/companydb_department.sql
UTF-8
2,395
3.046875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `companydb` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `companydb`; -- MySQL dump 10.13 Distrib 5.7.8-rc, for Win64 (x86_64) -- -- Host: localhost Database: companydb -- ------------------------------------------------------ -- Server version 5.7.8-rc-log /*!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 `department` -- DROP TABLE IF EXISTS `department`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `department` ( `Dname` varchar(15) NOT NULL, `Dnumber` int(11) NOT NULL, `Mgr_ssn` char(9) NOT NULL, `Mgr_start_date` date DEFAULT NULL, PRIMARY KEY (`Dnumber`), UNIQUE KEY `Dname` (`Dname`), KEY `Mgr_ssn` (`Mgr_ssn`), CONSTRAINT `department_ibfk_1` FOREIGN KEY (`Mgr_ssn`) REFERENCES `employee` (`Ssn`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `department` -- LOCK TABLES `department` WRITE; /*!40000 ALTER TABLE `department` DISABLE KEYS */; INSERT INTO `department` VALUES ('Headquarters',1,'888665555','1981-06-19'),('Administration',4,'987654321','1995-01-01'),('Research',5,'333445555','1988-05-22'); /*!40000 ALTER TABLE `department` 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-05-29 18:59:33
true
503fc2cbbdba5e611fdb80af6ed1720ec8a1649c
SQL
RichezA/progHELHA
/2eme/Programmation/Labs/SQL/sql10-19.sql
UTF-8
3,870
3.78125
4
[]
no_license
--creation PRAGMA foreign_keys = ON; CREATE TABLE User ( userID INT NOT NULL, name varchar(255) DEFAULT NULL, surname varchar(255) DEFAULT NULL, PRIMARY KEY(userID) ); CREATE TABLE Poll ( pollID INT NOT NULL, name varchar(255) DEFAULT NULL, description TEXT DEFAULT NULL, createDate DATETIME DEFAULT NULL, userID INT NOT NULL, PRIMARY KEY(pollID), CONSTRAINT userIDVersUser FOREIGN KEY (userID) REFERENCES User (userID) ); CREATE TABLE Entry ( entryID INT NOT NULL, pollID INT NOT NULL, choiceDateT DATETIME DEFAULT NULL, PRIMARY KEY(entryID), CONSTRAINT uniquePoll UNIQUE (pollID, choiceDateT), CONSTRAINT pollIDVersPoll FOREIGN KEY (pollID) REFERENCES Poll(pollID) ); CREATE TABLE Answer ( userID INT NOT NULL, entryID INT NOT NULL, userAnsw VARCHAR(255) DEFAULT NULL, CONSTRAINT userIDVersUser FOREIGN KEY (userID) REFERENCES User(userID), CONSTRAINT entryIDVersEntry FOREIGN KEY (entryID) REFERENCES Entry(entryID) ); CREATE TABLE Groupe ( groupID INT NOT NULL, name varchar(255) DEFAULT NULL, PRIMARY KEY(groupID) ); CREATE TABLE Groups ( pollID INT NOT NULL, groupID INT NOT NULL, PRIMARY KEY (groupID,pollID) CONSTRAINT pollIDVersPoll FOREIGN KEY (pollID) REFERENCES Poll (pollID) CONSTRAINT groupIDVersGroupe FOREIGN KEY (groupID) REFERENCES Groupe (groupID) ); CREATE TABLE Role ( groupID INT NOT NULL, userID INT NOT NULL, name varchar(255) DEFAULT NULL, PRIMARY KEY(groupID,userID), CONSTRAINT groupIDVersGroupe FOREIGN KEY (groupID) REFERENCES Groupe(groupID), CONSTRAINT userIDVersUser FOREIGN KEY (userID) REFERENCES User(userID) ); --filling INSERT INTO Poll (pollID,name,description,createDate,userID) VALUES (1, "Date pour le barbecue", "Maim maim", "2018-11-01 10:02:00.000", 1); INSERT INTO Entry (entryID, pollID, choiceDateT) VALUES (1, 1, "2018-11-01 20:00:00.000"), (2, 1, "2018-11-05 18:00:00.000"), (3, 1, "2018-11-08 20:00:00.000"); INSERT INTO Answer (userID, entryID, userAnsw) VALUES (2, 1, "Prรฉsent"), (2, 2, "Absent"), (1, 1, "Prรฉsent"), (1, 2, "Prรฉsent"), (1, 3, "Prรฉsent"); INSERT INTO Poll (pollID, name, description, createDate, userID) VALUES (2, "La fรชte ?", "Allez les gars", "2018-11-03 22:10:00.000", 3); INSERT INTO Groups (pollID, groupID) VALUES (1, 1), (2, 2); INSERT INTO Entry (entryID, pollID, choiceDateT) VALUES (4, 2, "2018-11-10 21:00:00.000"), (5, 2, "2018-11-11 21:00:00.000"), (6, 2, "2018-11-12 21:00:00.000"); INSERT INTO Answer (userID, entryID, userAnsw) VALUES (3, 4, "Prรฉsent"), (3, 5, "Prรฉsent"), (3, 6, "Prรฉsent"), (1, 5, "Absent"); --update UPDATE Poll set description = "Miam miam" WHERE pollID = 1; --select SELECT * FROM Answer INNER JOIN (SELECT * FROM Entry NATURAL JOIN Poll WHERE pollID = (SELECT pollID FROM Groups WHERE groupID = (SELECT groupID from Groupe WHERE name = "Profs"))) AS Guys ON Answer.entryID = Guys.entryID WHERE userAnsw = "Prรฉsent" GROUP BY Answer.entryID HAVING Count(userAnsw) >= 1; SELECT COUNT(guys.userID) as Nombre, * FROM Answer INNER JOIN (SELECT * FROM Entry NATURAL JOIN Poll WHERE pollID IN (SELECT pollID FROM Groups WHERE groupID = (SELECT groupID from Groupe WHERE name = "Profs"))) AS Guys ON Answer.entryID = Guys.entryID WHERE userAnsw = "Prรฉsent" GROUP BY Answer.entryID ORDER BY Nombre DESC
true
20050e33037d7107ed84ea2db22be6ca2e6cc29d
SQL
algebrateam/phpdev2019
/pmrvic/mysql_vjezbe/zadaci 3.4.sql
UTF-8
3,482
4.40625
4
[ "MIT" ]
permissive
use fakultet; -- zadatak 3.2 -- ispisi maticne brojeve, a ime i prezime studenta u jednom polju SELECT stud.mbrStud, stud.imeStud, stud.prezStud FROM stud; -- zadatak 3.3 -- ispisi jedinstvena imena studenata SELECT DISTINCT stud.imeStud FROM stud ORDER BY stud.imeStud DESC; -- zadatak 3.3 -- drugi naฤin sa group by -- ispisi jedinstvena imena studenata SELECT stud.imeStud FROM stud GROUP BY stud.imeStud ORDER BY stud.imeStud DESC; -- zadatak 3.4 -- maticni broj stud koji su polozili ispit iz pred sa sifrom 146 SELECT ispit.mbrStud FROM ispit INNER JOIN pred ON ispit.sifPred = pred.sifPred WHERE pred.sifPred=146; -- zadatak 3.5 -- imena i prezimena natavnika i placa -- formulom (koef+04)*800 SELECT nastavnik.imeNastavnik, nastavnik.prezNastavnik, (nastavnik.koef+0.4)*800 AS placa FROM nastavnik; -- zadatak 3.6 -- imena i prezimena natavnika i placa -- formulom (koef+04)*800 SELECT nastavnik.imeNastavnik, nastavnik.prezNastavnik, (nastavnik.koef+0.4)*800 AS placa FROM nastavnik -- WHERE (nastavnik.koef+0.4)*800 <3500 OR (nastavnik.koef+0.4)*800 >8000; HAVING placa <3500 OR placa >8000; -- zadatak 3.7 -- ime i prez studenta koji su barem jednom pali predmet 220-240 SELECT * FROM stud INNER JOIN ispit on stud.mbrStud=ispit.mbrStud WHERE ispit.sifPred BETWEEN 220 AND 240 AND ispit.ocjena=1; -- zadatak 3.8 SELECT CONCAT(stud.imeStud,' ', stud.prezStud) AS imeprezime FROM stud INNER JOIN ispit ON stud.mbrStud=ispit.mbrStud WHERE ispit.ocjena=3; -- zadatak 3.9 -- naziv predmeta na koji nije izisao ni jedan student SELECT pred.nazPred FROM pred LEFT JOIN ispit ON pred.sifPred=ispit.sifPred WHERE ispit.sifPred IS NULL -- zadatak 3.10 -- naziv predmeta na koji je izisao barem jedan student SELECT DISTINCT pred.nazPred FROM pred RIGHT JOIN ispit ON pred.sifPred=ispit.sifPred -- zadatak 3.11 -- ime studenta poฤinje I zavrลกava sa aeiou SELECT *, SUBSTR(stud.imeStud,1,1) AS inic1, SUBSTR(stud.imeStud,-1,1) AS inic2 FROM stud HAVING inic1 IN ('a','e','i','o','u') AND inic2 IN ('a','e','i','o','u'); -- zadatak 3.11 NA DRUGI NACIN -- ime studenta poฤinje I zavrลกava sa aeiou SELECT * FROM stud WHERE LEFT(stud.imeStud,1) IN ('a','e','i','o','u') AND RIGHT(stud.imeStud,1) IN ('a','e','i','o','u'); -- zadatak 3.12 -- kao gornji osim preskoci sve sa samoglasnicima SELECT * FROM stud WHERE LEFT(stud.imeStud,1) NOT IN ('a','e','i','o','u') AND RIGHT(stud.imeStud,1) NOT IN ('a','e','i','o','u'); -- zadatak 3.13 NA DRUGI NACIN -- ime studenta poฤinje ILI zavrลกava sa aeiou SELECT * FROM stud WHERE LEFT(stud.imeStud,1) IN ('a','e','i','o','u') OR RIGHT(stud.imeStud,1) IN ('a','e','i','o','u'); -- zadatak 3.14 -- ime studenta ima 'nk' SELECT *, LOCATE('nk',stud.imeStud) FROM stud WHERE LOCATE('nk',stud.imeStud) > 0; -- zadatak 3.15 -- ime, prezime stud te naziv i ocjenu za svaki ispit SELECT stud.imeStud, stud.prezStud, pred.nazPred, ispit.ocjena FROM pred INNER JOIN ispit on pred.sifPred=ispit.sifPred INNER JOIN stud ON ispit.mbrStud=stud.mbrStud WHERE ispit.ocjena>1; -- 3.16 -- stud zupanije i stanovanja SELECT stud.imeStud, stud.prezStud, m1.nazMjesto AS mjestorodjenja, zupanija.nazZupanija AS zupanijarodjenja, mjesto.nazMjesto AS mjestostanovanja, z1.nazZupanija AS zupanijastanovanja FROM stud INNER JOIN mjesto m1 ON stud.pbrRod= m1.pbr INNER JOIN zupanija ON zupanija.sifZupanija=m1.sifZupanija INNER JOIN mjesto ON mjesto.pbr=stud.pbrStan INNER JOIN zupanija z1 ON z1.sifZupanija=mjesto.sifZupanija;
true
938ef71ed53f5ecc9493e0d9e5fd4fdf9ec10a6d
SQL
momor666/Academic-LabWork
/Database Lab/Lab3/EMPLOYEE.SQL
UTF-8
2,770
3.40625
3
[]
no_license
drop table dependent; drop table employee; drop table department; CREATE TABLE DEPARTMENT (DNAME VARCHAR2(15), DNUMBER NUMBER(2) NOT NULL, MGRSSN NUMBER(12), MGRSTARTDATE DATE, PRIMARY KEY (dnumber) ); CREATE TABLE employee (FNAME VARCHAR2(15), MINIT VARCHAR2(2), LNAME VARCHAR2(15), SSN NUMBER(12) NOT NULL, BDATE DATE, ADDRESS VARCHAR2(35), SEX VARCHAR2(1), SALARY NUMBER(7) NOT NULL, SUPERSSN NUMBER(12), DNO NUMBER(2) NOT NULL, PRIMARY KEY (ssn), FOREIGN KEY (dno) REFERENCES department (dnumber) ); CREATE TABLE DEPENDENT (ESSN NUMBER(12), DEPENDENT_NAME VARCHAR2(15), SEX VARCHAR2(1), BDATE DATE, RELATIONSHIP VARCHAR2(12), PRIMARY KEY (essn, dependent_name), FOREIGN KEY (essn) REFERENCES employee (ssn) ); INSERT INTO DEPARTMENT VALUES ('RESEARCH', 5, 333445555, '22-MAY-1978') ; INSERT INTO DEPARTMENT VALUES ('ADMINISTRATION', 4, 987654321, '01-JAN-1985') ; INSERT INTO DEPARTMENT VALUES ('HEADQUARTERS', 1, 888665555, '19-JUN-1971') ; INSERT INTO EMPLOYEE VALUES ('JOHN','B','SMITH',123456789,'09-JAN-1955','731 FONDREN, HOUSTON, TX', 'M',30000,333445555,5) ; INSERT INTO EMPLOYEE VALUES ('FRANKLIN','T','WONG',333445555,'08-DEC-1945','638 VOSS,HOUSTON TX', 'M',40000,888665555,5) ; INSERT INTO EMPLOYEE VALUES ('ALICIA','J','ZELAYA',999887777,'19-JUL-1958','3321 CASTLE, SPRING, TX', 'F',25000,987654321,4) ; INSERT INTO EMPLOYEE VALUES ('JENNIFER','S','WALLACE',987654321,'20-JUN-1931','291 BERRY, BELLAIRE, TX', 'F',43000,888665555,4) ; INSERT INTO EMPLOYEE VALUES ('RAMESH','K','NARAYAN',666884444,'15-SEP-1952','975 FIRE OAK, HUMBLE, TX', 'M',38000,333445555,5) ; INSERT INTO EMPLOYEE VALUES ('JOYCE','A','ENGLISH',453453453,'31-JUL-1962','5631 RICE, HOUSTON, TX', 'F',25000,333445555,5); INSERT INTO EMPLOYEE VALUES ('AHMAD','V','JABBAR',987987987,'29-MAR-1959','980 DALLAS, HOUSTON, TX', 'M',25000,987654321,4) ; INSERT INTO EMPLOYEE VALUES ('JAMES','E','BORG',888665555,'10-NOV-1927', '450 STONE, HOUSTON, TX', 'M',55000,NULL,1) ; INSERT INTO DEPENDENT VALUES (333445555,'ALICE','F','05-APR-1976','DAUGHTER') ; INSERT INTO DEPENDENT VALUES (333445555,'THEODORE','M','25-OCT-1973','SON') ; INSERT INTO DEPENDENT VALUES (333445555,'JOY','F','03-MAY-1948','SPOUSE'); INSERT INTO DEPENDENT VALUES (123456789,'MICHAEL','M','01-JAN-1978','SON'); INSERT INTO DEPENDENT VALUES (123456789,'ALICE','F','31-DEC-1978','DAUGHTER'); INSERT INTO DEPENDENT VALUES (123456789,'ELIZABETH','F','05-MAY-1957','SPOUSE'); INSERT INTO DEPENDENT VALUES (987654321,'ABNER','M','26-FEB-1932','SPOUSE');
true
2de64bd165b341a43245b15716f905fffd4f26e3
SQL
AnikMuhib/Hospital_Management_System
/Create Index Statements.sql
UTF-8
2,511
3.203125
3
[]
no_license
--(1)----------------------------------------------------------------------------------------------------- Create Index idx_CareCenterName ON Care_Center(CareCenterName); Create Index idx_RPatientRoomNum ON Resident_Patient(RoomNumber); Create Index idx_BedRoomNum ON BED(RoomNumber); Create Index idx_BedCareCenterID ON Bed(CareCenterID); --(3)------------------------------------------------------------------------------------------------------ Create Index idx_EmployeeDateHired ON Employee(Datehired); --(4)------------------------------------------------------------------------------------------------------ Create Index idx_InsurancePAPersonID ON Patient_Insurance_Coverage(PAPersonID); Create INdex idx_InsuranceCompanyID ON Patient_Insurance_Coverage(InsuranceCompanyID); --(5)----------------------------------------------------------------------------------------------------- Create Index idx_EmployeeType ON employee(employeetype); Create Index idx_CareCenterNurseIncrg ON care_center(nurseincharge ); Create Index idx_ResidentPatientBedNumber ON Resident_Patient(BedNumber); Create Index idx_BedBedNumber ON Bed(BedNumber); Create Index idx_VisitCareCCareCID ON Visit_Care_Center(CareCenterID); --(6)------------------------------------------------------------------------------------------------------------ Create Index idx_EmployeeAssCCHoursW ON Employee_Assigned_Care_Center(HoursWorked); Create Index idx_PersonCITY ON Person(CITY); Create Index idx_Employee_AssCCEMPID ON Employee_Assigned_Care_Center(EMPersonID); --(7)---------------------------------------------------------------------------------------------------------- Create Index idx_BedTypeDedcription ON Bed_Type(BedTypeDedcription); Create Index idx_BedBedTypeID ON Bed(BedTypeID); --(8)------------------------------------------------------------------------------------------------------------- Create Index idx_VisitVisitDate ON Visit(VisitDate); Create Index idx_VisitOPAPersonID ON Visit(OPAPersonID); Create Index idx_VisitCCOPAPerID ON Visit_Care_Center(OPAPersonID); --(9)--------------------------------------------------------------------------------------------------------------- Create Index idx_PatientCCPaPerID ON Patient_Credit_Card(PaPersonID); --(10)--------------------------------------------------------------------------------------------------------------- Create Index idx_VolunteerACCCareCID ON Volunteer_Assigned_Care_Center(CareCenterID);
true
d38f74f65c6c376d1c39415886c7a66cbe504462
SQL
RohitJhander/Mentora
/Backend/startup/mysql/create_table.sql
UTF-8
720
3.4375
3
[]
no_license
create table personal_profile( id int not null auto_increment, name varchar(255), email varchar(255), phone varchar(255), gender varchar(255), city varchar(255), country varchar(255), fb text, pic text, primary key (id), index (email), index (phone) )engine=InnoDB; create table education_profile( education_id int not null auto_increment, id int not null, school varchar(255), coaching varchar(255), college varchar(255), branch varchar(255), profession varchar(255), board varchar(255), mains varchar(255), advance varchar(255), pmt varchar(255), percentage float(4,2), other text, primary key (education_id), constraint foreign key (id) references personal_profile (id) )engine=InnoDB;
true
4d0f752eb5d026a956b79a6799208de113446740
SQL
malughanshyam/MachineLearningFinalProject
/SQL/SelectQueries.sql
UTF-8
7,312
2.65625
3
[]
no_license
select count(*) from test_raw; --48707 select count(*) from training_raw; --72983 select count(*) from test_raw_with_mm_yyyy; --48707 select count(*) from training_raw_with_mm_yyyy; --72983 select count(*) from test_exluding_f5_f8_f9_f10_f11_f13_f27_f28_f30; --48707 select count(*) from training_exluding_f5_f8_f9_f10_f11_f13_f27_f28_f30; --72983 SELECT AVG(MMRAcquisitionAuctionAveragePrice), AVG(MMRAcquisitionAuctionCleanPrice) , AVG(MMRAcquisitionRetailAveragePrice) , AVG(MMRAcquisitonRetailCleanPrice) , AVG(MMRCurrentAuctionAveragePrice) , AVG(MMRCurrentAuctionCleanPrice) , AVG(MMRCurrentRetailAveragePrice) , AVG(MMRCurrentRetailCleanPrice) , AVG(VehBCost) , AVG(WarrantyCost) FROM `carvana`.`training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`; SELECT `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Auction`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehicleAge`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Make`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Transmission`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`WheelType`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehOdo`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Nationality`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Size`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`TopThreeAmericanName`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionRetailAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitonRetailCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VNST`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehBCost`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`IsOnlineSale`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`WarrantyCost`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`IsBadBuy` FROM `carvana`.`training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30` WHERE `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Auction` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehicleAge` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Make` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Transmission` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`WheelType` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehOdo` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Nationality` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Size` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`TopThreeAmericanName` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionAveragePrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionCleanPrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionRetailAveragePrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitonRetailCleanPrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionAveragePrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionCleanPrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailAveragePrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailCleanPrice` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VNST` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehBCost` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`IsOnlineSale` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`WarrantyCost` is NULL OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`IsBadBuy` is NULL; SELECT `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Auction`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehicleAge`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Make`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Transmission`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`WheelType`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehOdo`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Nationality`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`Size`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`TopThreeAmericanName`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionRetailAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitonRetailCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailAveragePrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailCleanPrice`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VNST`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehBCost`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`IsOnlineSale`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`WarrantyCost`, `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`IsBadBuy` FROM `carvana`.`training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30` WHERE `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionAveragePrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionAuctionCleanPrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitionRetailAveragePrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRAcquisitonRetailCleanPrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionAveragePrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentAuctionCleanPrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailAveragePrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`MMRCurrentRetailCleanPrice` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`VehBCost` in (0,1) OR `training_exluding_f1_2_3_5_8_9_10_11_13_27_28_29_30`.`WarrantyCost` in (0,1);
true
82083ec1bfc906197c17b63ae7f46e411da00f9e
SQL
aniskop/plsql-parser
/src/test/resources/type_definition.sql
UTF-8
669
2.703125
3
[]
no_license
declare type nested_table is table of number; type nested_table is table of varchar2(4000); type nested_table is table of number(11,2); type "Nested table 123" is table of "Customer type"; type associative_array is table of number index by varchar2(200); type associative_array is table of varchar2(50) index by pls_integer; type associative_array is table of c_my_customers%rowtype index by pls_integer; type record_type is record ( field1 number, field2 varchar2(20), field3 r_medium%rowtype, field4 r_medium%type not null, field5 number default 10 ); begin end;
true
71803c3c096b332837fb3939cda828e396f2dfd6
SQL
cocktail-office/RGrhum
/_sql_dist/0.1.0.0/01_grhum_rgrhum-0.1.0.0.sql
UTF-8
2,488
3.765625
4
[]
no_license
-- -- Script SQL de GRHUM pour integration les tables de l'application RGrhum (Validation du rรฉfรฉrentiel) ร  executer depuis le user GRHUM -- -- **************************** -- ** ATTENTION ** -- **************************** -- Ceci n'est pas un patch GRhum, pour annuler les modifications apportรฉes par ces scripts, merci de vous -- reporter sur le fichier : 99_grhum_rgrhum_delete-0.1.0.0.sql -- CREATE TABLE GRHUM.RG_RAPPORT ( RAPPORT_ID number(22) NOT NULL, RAPPORT_D_DEBUT date, RAPPORT_D_FIN date, RAPPORT_DESCRIPTION varchar2(1024), CONSTRAINT PK_RG_RAPPORT PRIMARY KEY (RAPPORT_ID)); COMMENT ON TABLE GRHUM.RG_RAPPORT IS 'Table listant les donnรฉes du rapport d''anomalies du refรฉrentiel.'; COMMENT ON COLUMN GRHUM.RG_RAPPORT.RAPPORT_ID IS 'Clรฉ primaire des rapports d''anomalies du referentiel'; COMMENT ON COLUMN GRHUM.RG_RAPPORT.RAPPORT_D_DEBUT IS 'Date de dรฉbut du rapport.'; COMMENT ON COLUMN GRHUM.RG_RAPPORT.RAPPORT_D_FIN IS 'Date de fin du rapport'; COMMENT ON COLUMN GRHUM.RG_RAPPORT.RAPPORT_DESCRIPTION IS 'Informations sur le rapport.'; CREATE TABLE GRHUM.RG_RELEVE_ANOMALIE ( RAN_ID number(22) NOT NULL, RAN_RAPPORT_ID number(22) NOT NULL, RAN_PERSID number(10), RAN_C_STRUCTURE varchar2(10), RAN_MESSAGE_ERREUR varchar2(1024), CONSTRAINT PK_RG_RELEVE_ANOMALIE PRIMARY KEY (RAN_ID)); COMMENT ON TABLE GRHUM.RG_RELEVE_ANOMALIE IS 'Ensemble des anomalies (erreurs de validation) relevรฉes lors de la derniรจre exรฉcution de l''audit sur le Rรฉfรฉrentiel.'; COMMENT ON COLUMN GRHUM.RG_RELEVE_ANOMALIE.RAN_ID IS 'Clรฉ primaire des relevรฉs d''anomalies.'; COMMENT ON COLUMN GRHUM.RG_RELEVE_ANOMALIE.RAN_RAPPORT_ID IS 'Clรฉ extรฉrieur vers la table GRHUM.RG_RAPPORT'; COMMENT ON COLUMN GRHUM.RG_RELEVE_ANOMALIE.RAN_PERSID IS 'PersID qui provoque une anomalie dans le rรฉferentiel. (รฉventuellement redondant avec le C_structure). Peut รชtre nul, dans ce cas voir la colonne "C_structure".'; COMMENT ON COLUMN GRHUM.RG_RELEVE_ANOMALIE.RAN_C_STRUCTURE IS 'C_STRUCTURE concernรฉ par l''anomalie. Peut รชtre nul, dans ce cas voir la colonne "PersId".'; COMMENT ON COLUMN GRHUM.RG_RELEVE_ANOMALIE.RAN_MESSAGE_ERREUR IS 'Message de l''anomalie.'; ALTER TABLE GRHUM.RG_RELEVE_ANOMALIE ADD CONSTRAINT FK_RG_RAPPORT FOREIGN KEY (RAN_RAPPORT_ID) REFERENCES GRHUM.RG_RAPPORT (RAPPORT_ID); CREATE SEQUENCE GRHUM.RG_RAPPORT_SEQ; CREATE SEQUENCE GRHUM.RG_RELEVE_ANOMALIE_SEQ;
true
603e43536d2a6680c985995cd651a8a6f45ea5c5
SQL
ddRPB/platform
/core/resources/schemas/dbscripts/postgresql/obsolete/core-18.30-18.31.sql
UTF-8
1,389
2.9375
3
[]
no_license
/* * Copyright (c) 2018-2019 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ SELECT core.fn_dropifexists('portalwebparts', 'core', 'CONSTRAINT', 'fk_portalwebpartpages'); SELECT core.fn_dropifexists('portalpages', 'core', 'CONSTRAINT', 'pk_portalpages'); SELECT core.fn_dropifexists('portalpages', 'core', 'CONSTRAINT', 'uq_portalpage'); ALTER TABLE core.portalpages ADD COLUMN rowId SERIAL PRIMARY KEY; ALTER TABLE core.portalwebparts ADD COLUMN portalPageId INTEGER; UPDATE core.portalwebparts web SET portalPageId = page.rowId FROM core.portalpages page WHERE web.pageId = page.pageId; ALTER TABLE core.portalwebparts DROP COLUMN pageId; ALTER TABLE core.portalwebparts ALTER COLUMN portalPageId SET NOT NULL; ALTER TABLE core.portalwebparts ADD CONSTRAINT fk_portalwebpartpages FOREIGN KEY (portalPageId) REFERENCES core.portalpages (rowId);
true
528b0ed2c495b5def9d547b7c19a3a7b0bd4d2ab
SQL
datenfruehstueck/replicate
/database.sql
UTF-8
1,748
3.328125
3
[ "MIT" ]
permissive
/*!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 */; CREATE TABLE `replication` ( `uid` int(11) UNSIGNED NOT NULL, `orig_doi` varchar(200) NOT NULL, `orig_link_alternative` text NOT NULL, `orig_citation` text NOT NULL, `orig_abstract` text NOT NULL, `repl_author_last` varchar(255) NOT NULL, `repl_author_first` varchar(255) NOT NULL, `repl_level` enum('Bachelor thesis','Master thesis','Doctoral thesis','other') NOT NULL DEFAULT 'Bachelor thesis', `repl_year` int(4) UNSIGNED NOT NULL, `repl_title` text NOT NULL, `repl_abstract` text NOT NULL, `result` enum('Successful! Original results replicated successfully.','Mostly successful! Original and replicated results match but only in effect direction.','Somewhat successful! Original and replicated results match for some but not for other aspects.','Rather unsuccessful! Most original results did not replicate successfully.','Unsuccessful! Original results did not replicate whatsoever.','Not replicable! Data and/or methods could not be employed in comparable fashion.','Success not determinable (elaborate!):') NOT NULL, `result_details` text NOT NULL, `active` int(2) UNSIGNED NOT NULL default 0, ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; ALTER TABLE `replication` ADD PRIMARY KEY (`uid`); ALTER TABLE `replication` MODIFY `uid` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; 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
6b611bd5d123e42d24cf819893bceda735002f0c
SQL
leroniris/MysqlNotes
/mysqlๅŸบ็ก€/JoinSelect.sql
UTF-8
6,341
4.90625
5
[]
no_license
#่ฟ›้˜ถ6๏ผš่ฟžๆŽฅๆŸฅ่ฏข /* ๅซไน‰๏ผšๅˆ็งฐๅคš่กจๆŸฅ่ฏข๏ผŒๅฝ“ๆŸฅ่ฏข็š„ๅญ—ๆฎตๆฅ่‡ชไบŽๅคšไธช่กจๆ—ถ๏ผŒๅฐฑไผš็”จๅˆฐ่ฟžๆŽฅๆŸฅ่ฏข ็ฌ›ๅกๅฐ”ไน˜็งฏ็Žฐ่ฑก๏ผš่กจ1 ๆœ‰m่กŒ๏ผŒ่กจ2ๆœ‰n่กŒ๏ผŒ็ป“ๆžœ=m*n่กŒ ๅ‘็”ŸๅŽŸๅ› ๏ผšๆฒกๆœ‰ๆœ‰ๆ•ˆ็š„่ฟžๆŽฅๆกไปถ ๅฆ‚ไฝ•้ฟๅ…๏ผšๆทปๅŠ ๆœ‰ๆ•ˆ็š„่ฟžๆŽฅๆกไปถ ๅˆ†็ฑป๏ผš ๆŒ‰ๅนดไปฃๅˆ†็ฑป๏ผš sql92ๆ ‡ๅ‡†๏ผšไป…ไป…ๆ”ฏๆŒๅ†…่ฟžๆŽฅ sql99ๆ ‡ๅ‡†๏ผšๆ”ฏๆŒๅ†…่ฟžๆŽฅ+ๅค–่ฟžๆŽฅ๏ผˆๅทฆๅค–+ๅณๅค–๏ผ‰+ไบคๅ‰่ฟžๆŽฅ ๆŒ‰ๅŠŸ่ƒฝๅˆ†็ฑป๏ผš ๅ†…่ฟžๆŽฅ๏ผš ็ญ‰ๅ€ผ่ฟžๆŽฅ ้ž็ญ‰ๅ€ผ่ฟžๆŽฅ ่‡ช่ฟžๆŽฅ ๅค–่ฟžๆŽฅ๏ผš ๅทฆๅค–่ฟžๆŽฅ ๅณๅค–่ฟžๆŽฅ ๅ…จๅค–่ฟžๆŽฅ ไบคๅ‰่ฟžๆŽฅ๏ผš */ SELECT * FROM beauty; SELECT * FROM boys; SELECT `name`, boyName FROM boys,beauty WHERE boys.id = beauty.`boyfriend_id`; # sql92ๆ ‡ๅ‡† #1ใ€็ญ‰ๅ€ผ่ฟžๆŽฅ /* โ‘  ๅคš่กจ็ญ‰ๅ€ผ่ฟžๆŽฅ็š„็ป“ๆžœไธบๅคš่กจ็š„ไบค้›†้ƒจๅˆ† โ‘ก n่กจ่ฟžๆŽฅ๏ผŒ่‡ณๅฐ‘้œ€่ฆn-1ไธช่ฟžๆŽฅๆกไปถ โ‘ข ๅคš่กจ็š„้กบๅบๆฒกๆœ‰่ฆๆฑ‚ โ‘ฃ ไธ€่ˆฌ้œ€่ฆไธบ่กจ่ตทๅˆซๅ โ‘ค ๅฏไปฅๆญ้…ๅ‰้ขไป‹็ป็š„ๆ‰€ๆœ‰ๅญๅฅไฝฟ็”จ๏ผŒๆฏ”ๅฆ‚ๆŽ’ๅบใ€ๅˆ†็ป„ใ€็ญ›้€‰ */ #ๆกˆไพ‹1ใ€ๆŸฅ่ฏขๅฅณ็ฅžๅๅ’Œๅฏนๅบ”็š„็”ท็ฅžๅ SELECT `name`, boyName FROM boys,beauty WHERE boys.id = beauty.`boyfriend_id`; #ๆกˆไพ‹2๏ผšๆŸฅ่ฏขๅ‘˜ๅทฅๅๅ’Œๅฏนๅบ”็š„้ƒจ้—จๅ SELECT last_name, department_name FROM employees, departments WHERE employees.department_id = departments.department_id; #2ใ€ไธบ่กจ่ตทๅˆซๅ /* โ‘ ๆ้ซ˜่ฏญๅฅ็š„็ฎ€ๆดๅบฆ โ‘กๅŒบๅˆ†ๅคšไธช้‡ๅ็š„ๅญ—ๆฎต ๆณจๆ„๏ผšๅฆ‚ๆžœไธบ่กจ่ตทไบ†ๅˆซๅ๏ผŒๅˆ™ๆŸฅ่ฏข็š„ๅญ—ๆฎตๅฐฑไธ่ƒฝไฝฟ็”จๅŽŸๆฅ็š„่กจๅๅŽป้™ๅฎš */ #ๆŸฅ่ฏขๅ‘˜ๅทฅๅใ€ๅทฅ็งๅทใ€ๅทฅ็งๅ SELECT last_name,e.job_id,job_title FROM employees AS e, jobs AS j WHERE e.job_id = j.`job_id`; #3ใ€ไธคไธช่กจ็š„้กบๅบๆ˜ฏๅฆๅฏไปฅ่ฐƒๆข #ๆŸฅ่ฏขๅ‘˜ๅทฅๅใ€ๅทฅ็งๅทใ€ๅทฅ็งๅ SELECT e.last_name,e.job_id,j.job_title FROM jobs j,employees e WHERE e.`job_id`=j.`job_id`; # 4ใ€ๅฏไปฅๅŠ ็ญ›้€‰๏ผŸ # ๆกˆไพ‹1๏ผšๆŸฅ่ฏขๆœ‰ๅฅ–้‡‘็š„ๅ‘˜ๅทฅๅใ€้ƒจ้—จๅ SELECT last_name, department_name,commission_pct FROM employees, departments WHERE `commission_pct` IS NOT NULL AND employees.`department_id` = departments.`department_id`; # ๆกˆไพ‹2๏ผšๆŸฅ่ฏขๅŸŽๅธ‚ๅไธญ็ฌฌไบŒไธชๅญ—็ฌฆไธบo็š„้ƒจ้—จๅๅ’ŒๅŸŽๅธ‚ๅ SELECT department_name,city FROM departments AS d, locations AS l WHERE city LIKE '_o%' AND d.`location_id` = l.`location_id`; # 5ใ€ๅฏไปฅๅˆ†็ป„๏ผŸ # ๆกˆไพ‹1๏ผšๆŸฅ่ฏขๆฏไธชๅŸŽๅธ‚็š„้ƒจ้—จไธชๆ•ฐ SELECT COUNT(*) ไธชๆ•ฐ,city FROM departments d, locations l WHERE d.`location_id` = l.`location_id` GROUP BY city; # ๆกˆไพ‹2๏ผšๆŸฅ่ฏขๆœ‰ๅฅ–้‡‘็š„ๆฏไธช้ƒจ้—จๅๅ’Œ้ƒจ้—จ็š„้ข†ๅฏผ็ผ–ๅทๅ’Œ่ฏฅ้ƒจ้—จ็š„ๆœ€ไฝŽๅทฅ่ต„ SELECT department_name, d.manager_id, MIN(salary) FROM employees AS e, departments d WHERE e.`department_id` = d.`department_id` AND e.`manager_id` = d.`manager_id` AND commission_pct IS NOT NULL GROUP BY department_name; # 6ใ€ๅฏไปฅๅŠ ๆŽ’ๅบ # ๆกˆไพ‹๏ผšๆŸฅ่ฏขๆฏไธชๅทฅ็ง็š„ๅทฅ็งๅๅ’Œๅ‘˜ๅทฅ็š„ไธชๆ•ฐ๏ผŒๅนถไธ”ๆŒ‰ๅ‘˜ๅทฅไธชๆ•ฐ้™ๅบ SELECT job_title,COUNT(*) FROM employees AS e, jobs AS j WHERE e.`job_id` = j.`job_id` GROUP BY job_title ORDER BY COUNT(*) DESC; # 7ใ€ๅฏไปฅๅฎž็Žฐไธ‰่กจ่ฟžๆŽฅ # ๆกˆไพ‹๏ผšๆŸฅ่ฏขๅ‘˜ๅทฅๅ๏ผŒ้ƒจ้—จๅๅ’Œๆ‰€ๅœจ็š„ๅŸŽๅธ‚ SELECT last_name,department_name,city FROM employees AS e, departments AS d, locations AS l WHERE e.`department_id` = d.`department_id` AND l.`location_id` = d.`location_id`; # 2ใ€้ž็ญ‰ๅ€ผ่ฟžๆŽฅ # ๆกˆไพ‹๏ผšๆŸฅ่ฏขๅ‘˜ๅทฅ็š„ๅทฅ่ต„ๅทฅ่ต„็บงๅˆซ SELECT salary,grade_level FROM employees AS e, job_grades AS j WHERE salary BETWEEN j.`lowest_sal` AND j.`highest_sal`; # 3ใ€่‡ช่ฟžๆŽฅ # ๆกˆไพ‹๏ผšๆŸฅ่ฏขๅ‘˜ๅทฅๅๅ’Œไป–ไธŠ็บง็š„ๅ็งฐ SELECT e.employee_id, e.last_name,m.employee_id,m.last_name FROM employees e, employees m WHERE e.manager_id = m.employee_id; #ๆต‹่ฏ•๏ผš #1ใ€ๆ˜พ็คบๅ‘˜ๅทฅ่กจ็š„ๆœ€ๅคงๅทฅ่ต„๏ผŒๅทฅ่ต„ๅนณๅ‡ๅ€ผ SELECT MAX(salary),AVG(salary) FROM employees; #2ใ€ๆŸฅ่ฏขๅ‘˜ๅทฅๅ…ฑ่กจ็š„employee_id,job_id,last_name,ๆŒ‰department_id้™ๅบ๏ผŒsalaryๅ‡ๅบ SELECT employee_id,job_id,last_name FROM employees ORDER BY department_id DESC,salary ASC; #3ใ€ๆŸฅ่ฏขๅ‘˜ๅทฅ่กจ็š„job_idไธญๅŒ…ๅซ aๅ’Œ e็š„๏ผŒๅนถไธ”aๅœจe็š„ๅ‰้ข SELECT job_id FROM employees WHERE job_id LIKE '%a%e%' #4ใ€ๅทฒ็Ÿฅ่กจstudent้‡Œ้ขๆœ‰id(ๅญฆๅท)๏ผŒname,gradeId(ๅนด็บง็ผ–ๅท) # ๅทฒ็Ÿฅ่กจgrade้‡Œ้ขๆœ‰id(ๅนด็บง็ผ–ๅท), name(ๅนด็บงๅ) # ๅทฒ็Ÿฅ่กจresult๏ผŒ้‡Œ้ขๆœ‰id๏ผŒscore,studentNo(ๅญฆๅท) # ่ฆๆฑ‚ๆŸฅ่ฏขๅง“ๅใ€ๅนด็บงๅใ€ๆˆ็ปฉ #5ใ€ๆ˜พ็คบๅฝ“ๅ‰ๆ—ฅๆœŸ๏ผŒไปฅๅŠๅŽปๅ‰ๅŽ็ฉบๆ ผ๏ผŒๆˆชๅ–ๅญๅญ—็ฌฆไธฒ็š„ๅ‡ฝๆ•ฐ SELECT NOW(); SELECT TRIM('a' FROM 'aaaabbbaaabbbbaaaa'); SELECT SUBSTR(str,startIndex); SELECT SUBSTR(str,startIndex, LENGTH); # 6ใ€ๆ˜พ็คบๆ‰€ๆœ‰ๅ‘˜ๅทฅ็š„ๅง“ๅ๏ผŒ้ƒจ้—จๅทๅ’Œ้ƒจ้—จๅ็งฐ SELECT last_name,e.department_id,department_name FROM employees AS e, departments AS d WHERE e.`department_id` = d.`department_id`; # 7ใ€ๆŸฅ่ฏข90ๅท้ƒจ้—จๅ‘˜ๅทฅ็š„job_idๅ’Œ90ๅท้ƒจ้—จ็š„location_id SELECT job_id, location_id FROM employees AS e, departments AS d WHERE e.`department_id` = d.`department_id` AND e.department_id = 90; # 8ใ€้€‰ๆ‹ฉๆ‰€ๆœ‰ๆœ‰ๅฅ–้‡‘็š„ๅ‘˜ๅทฅ็š„last_name,department_name,location_id,city SELECT last_name,department_name,d.location_id,city FROM employees AS e,departments AS d, locations AS l WHERE e.`department_id` = d.`department_id` AND l.`location_id` = d.`location_id` AND commission_pct IS NOT NULL; # 9ใ€้€‰ๆ‹ฉcityๅœจTorontoๅทฅไฝœ็š„ๅ‘˜ๅทฅ็š„last_name,job_id,department_id,department_name SELECT last_name,job_id,e.department_id,department_name FROM employees AS e, departments AS d, locations AS l WHERE e.`department_id` = d.`department_id` AND l.`location_id` = d.`location_id` AND l.`city` = 'Toronto'; # 10ใ€ๆŸฅ่ฏขๆฏไธชๅทฅ็ง๏ผŒๆฏไธช้ƒจ้—จ็š„้ƒจ้—จๅ๏ผŒๅทฅ็งๅๅ’Œๆœ€ไฝŽๅทฅ่ต„ SELECT e.job_id,job_title,department_name,MIN(salary) FROM employees AS e, departments AS d, jobs AS j WHERE e.`department_id` = d.`department_id` AND e.`job_id` = j.`job_id` GROUP BY department_name,job_title; # 11ใ€ๆŸฅ่ฏขๆฏไธชๅ›ฝๅฎถไธ‹็š„้ƒจ้—จไธชๆ•ฐๅคงไบŽ2็š„ๅ›ฝๅฎถ็ผ–ๅท SELECT country_id,COUNT(*) FROM departments AS d, locations AS l WHERE d.`location_id` = l.`location_id` GROUP BY country_id HAVING COUNT(*) > 2; # 12ใ€้€‰ๆ‹ฉๆŒ‡ๅฎšๅ‘˜ๅทฅ็š„ๅง“ๅ๏ผŒๅ‘˜ๅทฅๅท๏ผŒไปฅๅŠไป–็š„็ฎก็†่€…็š„ๅง“ๅๅ’Œๅ‘˜ๅทฅๅท๏ผŒ็ป“ๆžœ็ฑปไผผไบŽไธ‹้ข็š„ๆ ผๅผ # employees Emp manager SELECT e.last_name, e.employee_id, m.`last_name`, m.`employee_id` FROM employees AS e, employees AS m WHERE e.`manager_id` = m.`employee_id`;
true
dd394c4fa7efae1e4e4807e9d86ea0cc075bc8de
SQL
object1985/javastudy
/tonaise-javaee/tonaise-test/src/test/resources/jp/co/tonaise/test/CreateTableDBHelperTest.sql
UTF-8
3,431
3.515625
4
[]
no_license
--ๆคœ่จผ็”จใ‚ณใƒกใƒณใƒˆ /* ๆคœ่จผ็”จใ‚ณใƒกใƒณใƒˆ */ /* ใƒฆใƒผใ‚ถใƒผใƒ†ใƒผใƒ–ใƒซ */ CREATE TABLE IF NOT EXISTS AP_USER ( USER_ID CHARACTER VARYING(20) NOT NULL, NAME CHARACTER VARYING(256) NOT NULL, BIRTHDAY DATE, AGE INT NOT NULL, ROLE_ID CHARACTER VARYING(1) NOT NULL, DELETE_FLG CHARACTER(1) NOT NULL DEFAULT '0', CREATED_AT TIMESTAMP, CREATED_BY CHARACTER VARYING(20), UPDATED_AT TIMESTAMP, UPDATED_BY CHARACTER VARYING(20), PRIMARY KEY (USER_ID) ); /* ไธป่ฆๅž‹ไธ€่ฆงใƒ†ใƒผใƒ–ใƒซ */ CREATE TABLE IF NOT EXISTS TYPELIST ( ID INT NOT NULL, TEST_ID BIGINT NOT NULL AUTO_INCREMENT, PRIMARY KEY (ID) ); /* ๅˆฅใ‚นใ‚ญใƒผใƒžไฝœๆˆ */ CREATE SCHEMA IF NOT EXISTS OTHERSCHEMA; /* ๅˆฅใ‚นใ‚ญใƒผใƒžไฝœๆˆใธใฎใƒ†ใƒผใƒ–ใƒซไฝœๆˆ */ CREATE TABLE IF NOT EXISTS OTHERSCHEMA.AP_USER ( USER_ID CHARACTER VARYING(20) NOT NULL, NAME CHARACTER VARYING(256) NOT NULL, BIRTHDAY DATE, AGE INT NOT NULL, ROLE_ID CHARACTER VARYING(2) NOT NULL, DELETE_FLG CHARACTER(1) NOT NULL DEFAULT '0', CREATED_AT TIMESTAMP, CREATED_BY CHARACTER VARYING(20), UPDATED_AT TIMESTAMP, UPDATED_BY CHARACTER VARYING(20), PRIMARY KEY (USER_ID) ); INSERT INTO AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID, CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A1','ใ‚†ใƒผใ–ใƒผ1','1987-01-01',20,'1','2015-01-10' ,'SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID, CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A2','ใ‚†ใƒผใ–ใƒผ2','1987-01-02',21,'0','2015-01-10' ,'SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID, CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A3','ใ‚†ใƒผใ–ใƒผ3','1987-01-03',22,'1','2015-01-10' ,'SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID,DELETE_FLG,CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A4','ใ‚†ใƒผใ–ใƒผ4','1987-01-04',23,'0','0' ,'2015-01-10','SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID,DELETE_FLG,CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A5','ใ‚†ใƒผใ–ใƒผ5','1987-01-05',24,'1','0' ,'2015-01-10','SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO OTHERSCHEMA.AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID, CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A1','ใ‚†ใƒผใ–ใƒผ1','1987-01-01',20,'1' ,'2015-01-10','SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO OTHERSCHEMA.AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID, CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A2','ใ‚†ใƒผใ–ใƒผ2','1987-01-02',21,'0' ,'2015-01-10','SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO OTHERSCHEMA.AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID, CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A3','ใ‚†ใƒผใ–ใƒผ3','1987-01-03',22,'1' ,'2015-01-10','SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO OTHERSCHEMA.AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID,DELETE_FLG,CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A4','ใ‚†ใƒผใ–ใƒผ4','1987-01-04',23,'0','0' ,'2015-01-10','SYSTEM-USER','2015-01-10','SYSTEM-USER'); INSERT INTO OTHERSCHEMA.AP_USER (USER_ID,NAME,BIRTHDAY,AGE,ROLE_ID,DELETE_FLG,CREATED_AT,CREATED_BY,UPDATED_AT,UPDATED_BY) VALUES ('A5','ใ‚†ใƒผใ–ใƒผ5','1987-01-05',24,'1','0' ,'2015-01-10','SYSTEM-USER','2015-01-10','SYSTEM-USER');
true
fd601880c4d4b718dccd2df034f1cd34f25bc166
SQL
hvescovi/sql2019
/aula10-SQLs/01-enviados/02.sql
UTF-8
3,331
4.0625
4
[]
no_license
drop database if exists exec_aeroporto; create database if not exists exec_aeroporto; use exec_aeroporto; create table if not exists passageiro( ds_nome varchar(100) not null, ds_cpf varchar(15), primary key(ds_cpf) ); create table if not exists aviao( ds_placa varchar(100) not null, ds_nome varchar(100) not null, num_cap_max int not null, num_tripulacao int not null, dom_categoria enum('Primeira Classe', 'Segunda Classe', 'Transporte', 'Etc'), num_peso_bag_max float not null, ds_nome_emp_resp varchar(100) not null, primary key(ds_placa) ); create table if not exists voo( nr_seq_voo int not null AUTO_INCREMENT, dt_embarque timestamp not null, num_plataforma int not null, ds_destino varchar(100) not null, ds_placa_aviao varchar(100) not null, primary key(nr_seq_voo, ds_placa_aviao), foreign key (ds_placa_aviao) references aviao(ds_placa) ); create table if not exists passageiro_voo( ds_cpf_passageiro varchar(15) not null, nr_seq_voo int not null, num_peso_bag float not null, primary key(ds_cpf_passageiro, nr_seq_voo, num_peso_bag), foreign key (nr_seq_voo) references voo(nr_seq_voo), foreign key (ds_cpf_passageiro) references passageiro(ds_cpf) ); insert into passageiro values ('Daniel Gripado', '666.666.666-66'); insert into passageiro values ('Miguel Gripado', '111.111.111-11'); insert into aviao values ('PLACA_DO_BEM', 'Bob', 100, 10, 'Primeira Classe', 100, 'Embratel'); insert into aviao values ('PLACA_DO_MAL', 'Marley', 250, 1, 'Etc', 5000, 'Brazzers'); insert into voo values (null, sysdate(), 666, 'Manaus', 'PLACA_DO_BEM'); insert into voo values (null, sysdate(), 333, 'Brasรญlia', 'PLACA_DO_MAL'); insert into passageiro_voo values ('666.666.666-66', 1, 50); insert into passageiro_voo values ('111.111.111-11', 1, 50); insert into passageiro_voo values ('666.666.666-66', 2, 1000); insert into passageiro_voo values ('111.111.111-11', 2, 1000); select count(*) from passageiro_voo WHERE nr_seq_voo = :sequencia_usuario; select IF(sum(a.num_peso_bag) > b.num_peso_bag_max, 'Sim', 'Nรฃo') from passageiro_voo a, aviao b where a.nr_seq_voo = :nr_seq_voo group by (sum(a.num_peso_bag)) select IF(cpeso.peso > bout.num_peso_bag_max, 'SIM', 'NรƒO') from ( select sum(a.num_peso_bag) peso from passageiro_voo a, aviao b, voo c where c.nr_seq_voo = :nr_seq_voo and c.nr_seq_voo = a.nr_seq_voo and c.ds_placa_aviao = b.ds_placa group by sum(a.num_peso_bag) ) cpeso, aviao bout, passageiro_voo aout, voo vout where vout.nr_seq_voo = :nr_seq_voo and vout.nr_seq_voo = aout.nr_seq_voo and vout.ds_placa_aviao = bout.ds_placa group by cpeso.peso; select d.voo, d.peso, aout.num_peso_bag_max pesomax, if(d.peso > aout.num_peso_bag_max, 'sim', 'nรฃo') ultrapassa from ( select v.nr_seq_voo voo, sum(pv.num_peso_bag) peso FROM passageiro_voo pv, voo v, aviao a where pv.nr_seq_voo = v.nr_seq_voo and v.ds_placa_aviao = a.ds_placa group by v.nr_seq_voo) d, voo vout, aviao aout where d.voo = vout.nr_seq_voo and aout.ds_placa = vout.ds_placa_aviao; select o.voo, o.qt_passageiro, a.num_cap_max capacidade_maxima, ((o.qt_passageiro/a.num_cap_max) * 100) percentual_cheio from ( select nr_seq_voo voo, count(*) qt_passageiro from passageiro_voo group by nr_seq_voo ) o, voo v, aviao a where o.voo = v.nr_seq_voo and v.ds_placa_aviao = a.ds_placa;
true
6567e71549656aa3f045b0b8b2ed4e63c8390bac
SQL
greenphantom/Heroku-Store
/store/src/scripts/createDBTables.sql
UTF-8
600
3.125
3
[]
no_license
SHOW TABLES; DROP TABLE IF EXISTS products, customers, carts, purchased; SHOW TABLES; CREATE TABLE customers(id SERIAL, fname VARCHAR(255), lname VARCHAR(255), username VARCHAR(255), email VARCHAR(255), UNIQUE(id, username)); CREATE TABLE products(itemId SERIAL, name VARCHAR(255), msrp DECIMAL(6,2), salePrice DECIMAL(8,2), upc INT, shortDescription VARCHAR(255), brandName VARCHAR(255), size VARCHAR(255), color VARCHAR(255), gender VARCHAR(255), UNIQUE(itemId)); CREATE TABLE carts(id int, itemId int, username VARCHAR(255)); CREATE TABLE purchased(itemId int, username VARCHAR(255)); SHOW TABLES;
true
a8c621155415b797b04ec2420513df45d327c703
SQL
GTimur/keyarch
/sql/key_info.sql
UTF-8
7,257
2.71875
3
[]
no_license
๏ปฟ CREATE TABLE "XXI"."KEY_INFO" ( "IKEYNUM" NUMBER(12,0) NOT NULL ENABLE, "INPP" NUMBER(12,0) NOT NULL ENABLE, "DREGDATE" DATE, "CRGEVENT" VARCHAR2(500), "ICLICUSID" NUMBER(12,0) NOT NULL ENABLE, "CCLINAME" VARCHAR2(500), "CSGNID" VARCHAR2(500), "IFACECUSID" NUMBER(12,0), "CFACENAME1" VARCHAR2(500), "CFACENAME2" VARCHAR2(500), "CFACENAME3" VARCHAR2(500), "CFACEPOST" VARCHAR2(100), "CTKNTYPE" VARCHAR2(100), "CTKNID" VARCHAR2(100), "ITKNJNUM" NUMBER(6,0) NOT NULL ENABLE, "CCNFRMTYPE" VARCHAR2(100), "CCNFRMID" VARCHAR2(100), "ICNFRMJNUM" NUMBER(6,0) DEFAULT NULL, "ICNFRMSUM" NUMBER(12,0), "IDISTNUM" NUMBER(6,0) DEFAULT NULL, "DDIST" DATE, "IPROTONUM" NUMBER(6,0) NOT NULL ENABLE, "IDSTTKNNUM" NUMBER(6,0) NOT NULL ENABLE, "DDSTTNKD" DATE, "ILKEYNUM" NUMBER(12,0) DEFAULT NULL, "ILDSTTKNNUM" NUMBER(6,0) DEFAULT NULL, "DLDSTTNKD" DATE DEFAULT NULL, "ILTKNJNUM" NUMBER(6,0) DEFAULT NULL, "ILKEYNUMOTP" NUMBER(12,0) DEFAULT NULL, "ILDACTOTP" NUMBER(6,0) DEFAULT NULL, "DLDACTOTP" DATE DEFAULT NULL, "IDSTSGNNUM" NUMBER(6,0) NOT NULL ENABLE, "DDSTSGND" DATE, "IPRODNUM" NUMBER(6,0) NOT NULL ENABLE, "DPRODD" DATE, "IWIPENUM" NUMBER(6,0) DEFAULT NULL, "DWIPED" DATE DEFAULT NULL, "CCOMMENT" VARCHAR2(1024) DEFAULT NULL, "IJRNKI" NUMBER(7,0) NOT NULL ENABLE, "IJRNKIOTP" NUMBER(7,0), "IJRNKIDIST" NUMBER(7,0), CONSTRAINT "KEYINFO_PK" PRIMARY KEY ("IKEYNUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE, CONSTRAINT "UQ_KEYINFO" UNIQUE ("IKEYNUM", "INPP") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "XXI"."KEY_INFO"."IKEYNUM" IS 'ID ะทะฐะฟะธัะธ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."INPP" IS 'ะŸะพั€ัะดะบะพะฒั‹ะน ะฝะพะผะตั€ ะถัƒั€ะฝะฐะปะฐ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DREGDATE" IS 'ะ”ะฐั‚ะฐ ะฒั‹ะดะฐั‡ะธ ะบะปัŽั‡ะฐ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CRGEVENT" IS 'ะŸั€ะธั‡ะธะฝะฐ:(1) - ะŸะตั€ะฒะธั‡ะฝะฐั ั€ะตะณะธัั‚ั€ะฐั†ะธั;(2) - ะšะพะผะฟั€ะพะผะตั‚ะฐั†ะธั;(3) - ะกะผะตะฝะฐ ะดะพะปะถะฝะพัั‚ะฝะพะณะพ ะปะธั†ะฐ;(4) - ะŸะปะฐะฝะพะฒะฐั ัะผะตะฝะฐ ะบะปัŽั‡ะฐ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ICLICUSID" IS 'ID ะบะปะธะตะฝั‚ะฐ (ะฒะฝัƒั‚ั€. CUS)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CCLINAME" IS 'ะŸะพะปะฝะพะต ะฝะฐะธะผะตะฝะพะฒะฐะฝะธะต ะฟั€ะตะดะฟั€ะธัั‚ะธั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CSGNID" IS 'ID ะบะปัŽั‡ะฐ ะญะŸ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IFACECUSID" IS 'ID ะฒะปะฐะดะตะปัŒั†ะฐ ะบะปัŽั‡ะฐ (CUS)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CFACENAME1" IS 'ะคะฐะผะธะปะธั ะฒะปะฐะดะตะปัŒั†ะฐ ะญะŸ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CFACENAME2" IS 'ะ˜ะผั ะฒะปะฐะดะตะปัŒั†ะฐ ะญะŸ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CFACENAME3" IS 'ะžั‚ั‡ะตัั‚ะฒะพ ะฒะปะฐะดะตะปัŒั†ะฐ ะญะŸ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CFACEPOST" IS 'ะ”ะพะปะถะฝะพัั‚ัŒ ะฒะปะฐะดะตะปัŒั†ะฐ ะญะŸ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CTKNTYPE" IS 'ะขะธะฟ ะฝะพัะธั‚ะตะปั (usb-token)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CTKNID" IS 'S/N ะฝะพัะธั‚ะตะปั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ITKNJNUM" IS 'ะฃั‡ั‘ั‚ะฝั‹ะน ะฝะพะผะตั€ ะฝะพัะธั‚ะตะปั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CCNFRMTYPE" IS 'ะขะธะฟ ัั€ะตะดัั‚ะฒะฐ ะฟะพะดั‚ะฒะตั€ะถะดะตะฝะธั (otp-ั‚ะพะบะตะฝ)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CCNFRMID" IS 's/n ัั€ะตะดัั‚ะฒะฐ ะฟะพะดั‚ะฒะตั€ะถะดะตะฝะธั (otp-ั‚ะพะบะตะฝ)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ICNFRMJNUM" IS 'ะฃั‡ั‘ั‚ะฝั‹ะน ะฝะพะผะตั€ ัั€ะตะดัั‚ะฒะฐ ะฟะพะดั‚ะฒะตั€ะถะดะตะฝะธั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ICNFRMSUM" IS 'ะกัƒะผะผะฐ ะฟะพะดั‚ะฒะตั€ะถะดะตะฝะธั OTP-ั‚ะพะบะตะฝะฐ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IDISTNUM" IS 'ะฃั‡ั‘ั‚ะฝั‹ะน ะฝะพะผะตั€ ะดะธัั‚ั€ะธะฑัƒั‚ะธะฒะฐ (ัƒัั‚ะฐะฝะพะฒะพั‡ะฝั‹ะน ะฟะฐะบะตั‚)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DDIST" IS 'ะดะฐั‚ะฐ ะฒั‹ะดะฐั‡ะธ ะดะธัั‚ั€ะธะฑัƒั‚ะธะฒะฐ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IPROTONUM" IS 'ะะพะผะตั€ ะŸั€ะพั‚ะพะบะพะปะฐ ะธ ะ—ะฐะบะปัŽั‡ะตะฝะธั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IDSTTKNNUM" IS 'โ„– ะะบั‚ะฐ ะฟะตั€ะตะดะฐั‡ะธ ะฝะพัะธั‚ะตะปั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DDSTTNKD" IS 'ะ”ะฐั‚ะฐ ะฐะบั‚ะฐ ะฟะตั€ะตะดะฐั‡ะธ ะฝะพัะธั‚ะตะปั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ILKEYNUM" IS 'ID ะทะฐะฟะธัะธ (ัะฒัะทัŒ ั ะดั€ัƒะณะพะน ัั‚ั€ะพะบะพะน ะถัƒั€ะฝะฐะปะฐ)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ILDSTTKNNUM" IS 'โ„– ะะบั‚ะฐ ะฟะตั€ะตะดะฐั‡ะธ ะฝะพัะธั‚ะตะปั (ะธะท ัะฒัะทะฐะฝะฝะพะน ัั‚ั€ะพะบะธ ILNKIKN)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DLDSTTNKD" IS 'ะ”ะฐั‚ะฐ ะฐะบั‚ะฐ ะฟะตั€ะตะดะฐั‡ะธ ะฝะพัะธั‚ะตะปั (ะธะท ัะฒัะทะฐะฝะฝะพะน ัั‚ั€ะพะบะธ ILNKIKN)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ILTKNJNUM" IS 'ะฃั‡ั‘ั‚ะฝั‹ะน ะฝะพะผะตั€ ะฝะพัะธั‚ะตะปั (ะธะท ัะฒัะทะฐะฝะฝะพะน ัั‚ั€ะพะบะธ ILNKIKN)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ILKEYNUMOTP" IS 'ID ะทะฐะฟะธัะธ (ัะฒัะทัŒ ั ะดั€ัƒะณะพะน ัั‚ั€ะพะบะพะน ะถัƒั€ะฝะฐะปะฐ)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."ILDACTOTP" IS 'โ„– ะะบั‚ะฐ ะฟะตั€ะตะดะฐั‡ะธ ะฝะพัะธั‚ะตะปั ะฒ ะบะพั‚ะพั€ะผ ะฑั‹ะป ะฟะตั€ะตะดะฐะฝ OTP(ะธะท ัะฒัะทะฐะฝะฝะพะน ัั‚ั€ะพะบะธ ILKEYNUMOTP)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DLDACTOTP" IS 'ะ”ะฐั‚ะฐ ะฐะบั‚ะฐ ะฟะตั€ะตะดะฐั‡ะธ ะฝะพัะธั‚ะตะปั ะฒ ะบะพั‚ะพั€ะพะผ ะฟะตั€ะตะดะฐะฒะฐะปัั OTP (ะธะท ัะฒัะทะฐะฝะฝะพะน ัั‚ั€ะพะบะธ ILKEYNUMOTP)'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IDSTSGNNUM" IS 'โ„– ะะบั‚ะฐ ะฟะตั€ะดะฐั‡ะธ ะบะปัŽั‡ะฐ ะญะŸ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DDSTSGND" IS 'ะ”ะฐั‚ะฐ ะฐะบั‚ะฐ ะฟะตั€ะตะดะฐั‡ะธ ะบะปัŽั‡ะฐ ะญะŸ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IPRODNUM" IS 'โ„– ะะบั‚ะฐ ะฒะฒะพะดะฐ ะฒ ัะบัะฟะปัƒะฐั‚ะฐั†ะธัŽ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DPRODD" IS 'ะ”ะฐั‚ะฐ ะฐะบั‚ะฐ ะฒะฒะพะดะฐ ะฒ ัะบัะฟะปัƒะฐั‚ะฐั†ะธัŽ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IWIPENUM" IS 'โ„– ะะบั‚ะฐ ัƒะฝะธั‡ั‚ะพะถะตะฝะธั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."DWIPED" IS 'ะ”ะฐั‚ะฐ ะฐะบั‚ะฐ ัƒะฝะธั‡ั‚ะพะถะตะฝะธั'; COMMENT ON COLUMN "XXI"."KEY_INFO"."CCOMMENT" IS 'ะŸั€ะธะผะตั‡ะฐะฝะธะต'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IJRNKI" IS 'ะŸั€ะธะฒัะทะบะฐ ัั‚ั€ะพะบะธ ะบ ะถัƒั€ะฝะฐะปัƒ ะดะปั USB ั‚ะพะบะตะฝะฐ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IJRNKIOTP" IS 'ะŸั€ะธะฒัะทะบะฐ ัั‚ั€ะพะบะธ ะบ ะถัƒั€ะฝะฐะปัƒ ะดะปั OTP ั‚ะพะบะตะฝะฐ'; COMMENT ON COLUMN "XXI"."KEY_INFO"."IJRNKIDIST" IS 'ะŸั€ะธะฒัะทะบะฐ ัั‚ั€ะพะบะธ ะบ ะถัƒั€ะฝะฐะปัƒ ะดะปั ะดะธัั‚ั€ะธะฑัƒั‚ะธะฒ'; COMMENT ON TABLE "XXI"."KEY_INFO" IS 'ะ–ัƒั€ะฝะฐะป ัƒั‡ะตั‚ะฐ ะบะปัŽั‡ะตะฒะพะน ะธะฝั„ะพั€ะผะฐั†ะธะธ (ะ”ะ‘ะž)';
true
a8d0553023f6c8efad127c317ac6ac05d35d12be
SQL
ZakharovS/Testing
/Testing2.4.4/src/main/resources/testing.sql
UTF-8
17,165
3.171875
3
[]
no_license
-- -------------------------------------------------------- -- ะกะตั€ะฒะตั€: 127.0.0.1 -- ะ’ะตั€ัั–ั ัะตั€ะฒะตั€ะฐ: 5.6.20 - MySQL Community Server (GPL) -- ะžะก ัะตั€ะฒะตั€ะฐ: Win64 -- HeidiSQL ะ’ะตั€ัั–ั: 9.1.0.4867 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 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 spd CREATE DATABASE IF NOT EXISTS `spd` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `spd`; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.answers CREATE TABLE IF NOT EXISTS `answers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `answer` text, `correct` int(11) DEFAULT NULL, `question_id` int(11) DEFAULT NULL, `test_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8; -- Dumping data for table spd.answers: ~67 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `answers`; /*!40000 ALTER TABLE `answers` DISABLE KEYS */; INSERT INTO `answers` (`id`, `answer`, `correct`, `question_id`, `test_id`) VALUES (1, 'ะŸั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€ ะฃะบั€ะฐั—ะฝะธ, ะฟะตั€ัˆะธะน ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€, ั‚ั€ะธ ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€ะธ, ะผั–ะฝั–ัั‚ั€ะธ;', 0, 1, 1), (2, 'ะŸั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€ ะฃะบั€ะฐั—ะฝะธ, ะฟะตั€ัˆะธะน ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€, ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€ะธ, ะผั–ะฝั–ัั‚ั€ะธ ะฃะบั€ะฐั—ะฝะธ;', 1, 1, 1), (3, 'ะŸั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€ ะฃะบั€ะฐั—ะฝะธ, ะฟะตั€ัˆะธะน ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€, ะพะดะธะฝ ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€, ะผั–ะฝั–ัั‚ั€ะธ;', 0, 1, 1), (4, 'ะŸั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€ ะฃะบั€ะฐั—ะฝะธ, ั‚ั€ะธ ะฟะตั€ัˆะธั… ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€, ะฒั–ั†ะต-ะฟั€ะตะผโ€™ั”ั€-ะผั–ะฝั–ัั‚ั€ะธ, ะผั–ะฝั–ัั‚ั€ะธ.', 0, 1, 1), (5, 'ั‚ะฐะบะธะผะธ, ั‰ะพ ะฝะต ะผะพะถัƒั‚ัŒ ะฑัƒั‚ะธ ะพะฑะผะตะถะตะฝั–;', 0, 2, 1), (6, 'ะฝะตะฒั–ะดั‡ัƒะถัƒะฒะฐะฝะธะผะธ ั‚ะฐ ะฝะตะฟะพั€ัƒัˆะฝะธะผะธ;', 1, 2, 1), (7, 'ะฒั–ะปัŒะฝะธะผะธ ั‚ะฐ ั€ั–ะฒะฝะธะผะธ;', 0, 2, 1), (8, 'ะฒะธั‡ะตั€ะฟะฝะธะผะธ.', 0, 2, 1), (9, 'ะ’ะตั€ั…ะพะฒะฝะฐ ะ ะฐะดะฐ ะฃะบั€ะฐั—ะฝะธ;', 0, 3, 1), (10, 'ะฝะฐั€ะพะดะฝั– ะดะตะฟัƒั‚ะฐั‚ะธ ะฃะบั€ะฐั—ะฝะธ;', 0, 3, 1), (11, 'ะบะพะผั–ั‚ะตั‚ะธ ะ’ะตั€ั…ะพะฒะฝะพั— ะ ะฐะดะธ ะฃะบั€ะฐั—ะฝะธ;', 0, 3, 1), (12, 'ะฃะฟะพะฒะฝะพะฒะฐะถะตะฝะธะน ะฒะตั€ั…ะพะฒะฝะพั— ะ ะฐะดะธ ะฃะบั€ะฐั—ะฝะธ ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ.', 1, 3, 1), (13, 'ะฝะตะฒั–ะดั‡ัƒะถัƒะฒะฐะฝะธะผ;', 0, 4, 1), (14, 'ั€ั–ะฒะฝะธะผ;', 1, 4, 1), (15, 'ะฝะตะพะฑะผะตะถะตะฝะธะผ;', 0, 4, 1), (16, 'ะฒั–ะปัŒะฝะธะผ.', 0, 4, 1), (17, 'ะŸั€ะตะทะธะดะตะฝั‚ ะฃะบั€ะฐั—ะฝะธ ะทะพะฑะพะฒโ€™ัะทะฐะฝะธะน ะนะพะณะพ ะฟั–ะดะฟะธัะฐั‚ะธ ั‚ะฐ ะพั„ั–ั†ั–ะนะฝะพ ะพะฟั€ะธะปัŽะดะฝะธั‚ะธ;', 0, 5, 1), (18, 'ะŸั€ะตะทะธะดะตะฝั‚ ะฃะบั€ะฐั—ะฝะธ ะทะพะฑะพะฒโ€™ัะทะฐะฝะธะน ะนะพะณะพ ะฟั–ะดะฟะธัะฐั‚ะธ ั‚ะฐ ะพั„ั–ั†ั–ะนะฝะพ ะพะฟั€ะธะปัŽะดะฝะธั‚ะธ ะฟั€ะพั‚ัะณะพะผ 10 ะดะฝั–ะฒ;', 1, 5, 1), (19, 'ะŸั€ะตะทะธะดะตะฝั‚ ะฃะบั€ะฐั—ะฝะธ ะผะฐั” ะฟั€ะฐะฒะพ ะฟะพะฒะตั€ะฝัƒั‚ะธ ะนะพะณะพ ะทั– ัะฒะพั—ะผะธ ะฒะผะพั‚ะธะฒะพะฒะฐะฝะธะผะธ ั– ัั„ะพั€ะผัƒะปัŒะพะฒะฐะฝะธะผะธ ะฟั€ะพะฟะพะทะธั†ั–ัะผะธ;', 0, 5, 1), (20, 'ะ—ะฐะบะพะฝ ะผะฐั” ะฑัƒั‚ะธ ะฟั–ะดะฟะธัะฐะฝะธะน ะ“ะพะปะพะฒะพัŽ ะ’ะตั€ั…ะพะฒะฝะพั— ะ ะฐะดะธ ะฃะบั€ะฐั—ะฝะธ ั‚ะฐ ะพะฟั€ะธะปัŽะดะฝะตะฝะธะน.', 0, 5, 1), (21, 'ะขะฐะบ.', 1, 6, 1), (22, 'ะั–.', 0, 6, 1), (23, 'ะขะฐะบ.', 1, 7, 1), (24, 'ะั–.', 0, 7, 1), (25, 'ะขะฐะบ, ะฟั–ะดะทะฒั–ั‚ะฝั– ะท ะฟะธั‚ะฐะฝัŒ ะทะดั–ะนัะฝะตะฝะฝั ะฟะพะฒะฝะพะฒะฐะถะตะฝัŒ ะผั–ัั†ะตะฒะธั… ะดะตั€ะถะฐะฒะฝะธั… ะฐะดะผั–ะฝั–ัั‚ั€ะฐั†ั–ะน.', 1, 8, 1), (26, 'ะั–, ะฝะต ะฟั–ะดะทะฒั–ั‚ะฝั–.', 0, 8, 1), (27, 'ะขะฐะบ, ะฟั–ะดะทะฒั–ั‚ะฝั– ะท ะฟะธั‚ะฐะฝัŒ ะทะดั–ะนัะฝะตะฝะฝั ะฟะพะฒะฝะพะฒะฐะถะตะฝัŒ ั‚ะตั€ะธั‚ะพั€ั–ะฐะปัŒะฝะธั… ะพั€ะณะฐะฝั–ะฒ ัŽัั‚ะธั†ั–ั—.', 0, 8, 1), (28, 'ะขะฐะบ, ัƒะฟะพะฒะฝะพะฒะฐะถะตะฝะธะน.', 1, 9, 1), (29, 'ะั–, ะฝะต ัƒะฟะพะฒะฝะพะฒะฐะถะตะฝะธะน.', 0, 9, 1), (30, '20 ะดะฝั–ะฒ;', 1, 10, 2), (31, '10 ะดะฝั–ะฒ;', 0, 10, 2), (32, '30 ะดะฝั–ะฒ.', 0, 10, 2), (33, 'ะฝะตะพะดะฝะฐะบะพะฒะต ะทะฐัั‚ะพััƒะฒะฐะฝะฝั ััƒะดะพะผ (ััƒะดะฐะผะธ) ะบะฐัะฐั†ั–ะนะฝะพั— ั–ะฝัั‚ะฐะฝั†ั–ั— ะพะดะฝะธั… ั– ั‚ะธั… ัะฐะผะธั… ะฝะพั€ะผ ะผะฐั‚ะตั€ั–ะฐะปัŒะฝะพะณะพ ั‚ะฐ ะฟั€ะพั†ะตััƒะฐะปัŒะฝะพะณะพ ะฟั€ะฐะฒะฐ, ั‰ะพ ะฟะพั‚ัะณะปะพ ัƒั…ะฒะฐะปะตะฝะฝั ั€ั–ะทะฝะธั… ะทะฐ ะทะผั–ัั‚ะพะผ ััƒะดะพะฒะธั… ั€ั–ัˆะตะฝัŒ ัƒ ะฟะพะดั–ะฑะฝะธั… ะฟั€ะฐะฒะพะฒั–ะดะฝะพัะธะฝะฐั…;', 0, 11, 2), (34, 'ะฝะตะพะดะฝะฐะบะพะฒะต ะทะฐัั‚ะพััƒะฒะฐะฝะฝั ััƒะดะพะผ (ััƒะดะฐะผะธ) ะบะฐัะฐั†ั–ะนะฝะพั— ั–ะฝัั‚ะฐะฝั†ั–ั— ะพะดะฝะธั… ั– ั‚ะธั… ัะฐะผะธั… ะฝะพั€ะผ ะผะฐั‚ะตั€ั–ะฐะปัŒะฝะพะณะพ ะฟั€ะฐะฒะฐ, ั‰ะพ ะฟะพั‚ัะณะปะพ ัƒั…ะฒะฐะปะตะฝะฝั ั€ั–ะทะฝะธั… ะทะฐ ะทะผั–ัั‚ะพะผ ััƒะดะพะฒะธั… ั€ั–ัˆะตะฝัŒ ัƒ ะฟะพะดั–ะฑะฝะธั… ะฟั€ะฐะฒะพะฒั–ะดะฝะพัะธะฝะฐั…;', 1, 11, 2), (35, 'ะฝะตะพะดะฝะฐะบะพะฒะต ะทะฐัั‚ะพััƒะฒะฐะฝะฝั ััƒะดะพะผ (ััƒะดะฐะผะธ) ะบะฐัะฐั†ั–ะนะฝะพั— ั–ะฝัั‚ะฐะฝั†ั–ั— ะพะดะฝะธั… ั– ั‚ะธั… ัะฐะผะธั… ะฝะพั€ะผ ะฟั€ะพั†ะตััƒะฐะปัŒะฝะพะณะพ ะฟั€ะฐะฒะฐ, ั‰ะพ ะฟะพั‚ัะณะปะพ ัƒั…ะฒะฐะปะตะฝะฝั ั€ั–ะทะฝะธั… ะทะฐ ะทะผั–ัั‚ะพะผ ััƒะดะพะฒะธั… ั€ั–ัˆะตะฝัŒ ัƒ ะฟะพะดั–ะฑะฝะธั… ะฟั€ะฐะฒะพะฒั–ะดะฝะพัะธะฝะฐั….', 0, 11, 2), (36, 'ะฝะฐ 7 ะดะฝั–ะฒ;', 0, 12, 2), (37, 'ะฝะฐ 3 ะดะฝั–;', 0, 12, 2), (38, 'ะฝะฐ 5 ะดะฝั–ะฒ.', 1, 12, 2), (39, 'ะฐะฟะตะปัั†ั–ะนะฝะฐ ั–ะฝัั‚ะฐะฝั†ั–ั ะฟะพ ะฒั–ะดะฝะพัˆะตะฝะฝัŽ ะดะพ ะฝะฐั†ั–ะพะฝะฐะปัŒะฝะธั… ััƒะดั–ะฒ;', 0, 13, 2), (40, 'ะผั–ะถะฝะฐั€ะพะดะฝะธะน ััƒะดะพะฒะธะน ะพั€ะณะฐะฝ;', 1, 13, 2), (41, 'ะผั–ะถะฝะฐั€ะพะดะฝะธะน ะฐั€ะฑั–ั‚ั€ะฐะถ. ', 0, 13, 2), (42, 'ั‚ะฐะบ;', 1, 14, 2), (43, 'ะฝั–;', 0, 14, 2), (44, 'ั‚ะฐะบ, ัะบั‰ะพ ั†ะต ะฝะตัƒั€ัะดะพะฒะฐ ะพั€ะณะฐะฝั–ะทะฐั†ั–ั.', 0, 14, 2), (45, 'ะฒะธั‡ะตั€ะฟะฐะฝะฝั ะฒัั–ั… ะฝะฐั†ั–ะพะฝะฐะปัŒะฝะธั… ะทะฐัะพะฑั–ะฒ ะฟั€ะฐะฒะพะฒะพะณะพ ะทะฐั…ะธัั‚ัƒ ั‚ะฐ ะดะพั‚ั€ะธะผะฐะฝะฝั ัˆะตัั‚ะธะผั–ััั‡ะฝะพะณะพ ัั‚ั€ะพะบัƒ ะทะฒะตั€ะฝะตะฝะฝั ะดะพ ะกัƒะดัƒ;', 1, 15, 2), (46, 'ะฒะธั‡ะตั€ะฟะฐะฝะฝั ะฒัั–ั… ะฝะฐั†ั–ะพะฝะฐะปัŒะฝะธั… ะทะฐัะพะฑั–ะฒ ะฟั€ะฐะฒะพะฒะพะณะพ ะทะฐั…ะธัั‚ัƒ;', 0, 15, 2), (47, 'ะฒะธั‡ะตั€ะฟะฐะฝะฝั ะฒัั–ั… ะฝะฐั†ั–ะพะฝะฐะปัŒะฝะธั… ะทะฐัะพะฑั–ะฒ ะฟั€ะฐะฒะพะฒะพะณะพ ะทะฐั…ะธัั‚ัƒ ั‚ะฐ ะดะพั‚ั€ะธะผะฐะฝะฝั ะฒะพััŒะผะธะผั–ััั‡ะฝะพะณะพ ัั‚ั€ะพะบัƒ ะทะฒะตั€ะฝะตะฝะฝั ะดะพ ะกัƒะดัƒ.', 0, 15, 2), (48, 'ะœั–ะฝั–ัั‚ั€ ัŽัั‚ะธั†ั–ั— ะฃะบั€ะฐั—ะฝะธ;', 0, 16, 2), (49, 'ะ’ะตั€ั…ะพะฒะฝะฐ ะ ะฐะดะฐ ะฃะบั€ะฐั—ะฝะธ;', 0, 16, 2), (50, 'ะšะฐะฑั–ะฝะตั‚ ะœั–ะฝั–ัั‚ั€ั–ะฒ ะฃะบั€ะฐั—ะฝะธ;', 1, 16, 2), (51, 'ะŸั€ะตะทะธะดะตะฝั‚ ะฃะบั€ะฐั—ะฝะธ.', 0, 16, 2), (52, 'ะพะฑา‘ั€ัƒะฝั‚ะพะฒะฐะฝั–ัั‚ัŒ ะทะฐัะฒะธ;', 0, 17, 2), (53, 'ัะฟะปะฐั‚ะฐ ััƒะดะพะฒะพะณะพ ะทะฑะพั€ัƒ;', 1, 17, 2), (54, 'ััƒะผั–ัะฝั–ัั‚ัŒ ัะบะฐั€ะณ ะท ะฟะพะปะพะถะตะฝะฝัะผะธ ะšะพะฝะฒะตะฝั†ั–ั— ะฐะฑะพ ะŸั€ะพั‚ะพะบะพะปั–ะฒ ะดะพ ะฝะตั—;', 0, 17, 2), (55, 'ะฒะธั‡ะตั€ะฟะฐะฝะฝั ะฒัั–ั… ะฝะฐั†ั–ะพะฝะฐะปัŒะฝะธั… ะทะฐัะพะฑั–ะฒ ะฟั€ะฐะฒะพะฒะพะณะพ ะทะฐั…ะธัั‚ัƒ.', 0, 17, 2), (56, 'ั‚ะฐะบ;', 0, 18, 2), (57, 'ะฝั–;', 1, 18, 2), (58, 'ัƒ ะฒะธะฝัั‚ะบะพะฒะธั… ะฒะธะฟะฐะดะบะฐั…, ะฟะตั€ะตะดะฑะฐั‡ะตะฝะธั… ะšะพะฝะฒะตะฝั†ั–ั”ัŽ ะฐะฑะพ ะŸั€ะพั‚ะพะบะพะปะฐะผะธ ะดะพ ะฝะตั—', 0, 18, 2), (59, 'ะทะฐะฑะตะทะฟะตั‡ะตะฝะฝั ะฟั€ะตะดัั‚ะฐะฒะฝะธั†ั‚ะฒะฐ ะฃะบั€ะฐั—ะฝะธ ะฒ ัƒ ะฑัƒะดัŒ-ัะบะธั… ะทะฐะบะพั€ะดะพะฝะฝะธั… ัŽั€ะธัะดะธะบั†ั–ะนะฝะธั… ะพั€ะณะฐะฝะฐั…;', 0, 19, 2), (60, 'ะทะฐะฑะตะทะฟะตั‡ะตะฝะฝั ะฟั€ะตะดัั‚ะฐะฒะฝะธั†ั‚ะฒะฐ ะณั€ะพะผะฐะดัะฝ ะฃะบั€ะฐั—ะฝะธ ะฒ ะ„ะฒั€ะพะฟะตะนััŒะบะพะผัƒ ััƒะดั– ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ;', 0, 19, 2), (61, 'ะทะฐะฑะตะทะฟะตั‡ะตะฝะฝั ะฟั€ะตะดัั‚ะฐะฒะฝะธั†ั‚ะฒะฐ ะฃะบั€ะฐั—ะฝะธ ะฒ ะ„ะฒั€ะพะฟะตะนััŒะบะพะผัƒ ััƒะดั– ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ.', 1, 19, 2), (138, 'ะ’ะพะฒะฐ', 0, 39, 2), (139, 'ะŸะตั‚ัŒะบะฐ', 0, 39, 2), (140, 'ะœะณะฐะฝะณะฐ', 1, 39, 2), (141, 'ะ›ัŽะดะฐ', 0, 39, 2); /*!40000 ALTER TABLE `answers` ENABLE KEYS */; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.authorization CREATE TABLE IF NOT EXISTS `authorization` ( `userrole_id` int(11) NOT NULL AUTO_INCREMENT, `userid` int(11) DEFAULT NULL, `userrole` varchar(11) DEFAULT NULL, PRIMARY KEY (`userrole_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; -- Dumping data for table spd.authorization: ~3 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `authorization`; /*!40000 ALTER TABLE `authorization` DISABLE KEYS */; INSERT INTO `authorization` (`userrole_id`, `userid`, `userrole`) VALUES (1, 88, 'ROLE_ADMIN'), (2, 89, 'ROLE_USER'), (6, 97, 'ROLE_USER'), (7, 99, 'ROLE_USER'); /*!40000 ALTER TABLE `authorization` ENABLE KEYS */; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.currtest CREATE TABLE IF NOT EXISTS `currtest` ( `id` int(11) NOT NULL AUTO_INCREMENT, `answer_id` int(11) DEFAULT NULL, `question_id` int(11) DEFAULT NULL, `sessionID` text, `test_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `Answers` (`answer_id`), KEY `Questions` (`question_id`), KEY `Test` (`test_id`), KEY `User` (`user_id`), CONSTRAINT `Answers` FOREIGN KEY (`answer_id`) REFERENCES `answers` (`id`), CONSTRAINT `Questions` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`), CONSTRAINT `Test` FOREIGN KEY (`test_id`) REFERENCES `test` (`id`), CONSTRAINT `User` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -- Dumping data for table spd.currtest: ~0 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `currtest`; /*!40000 ALTER TABLE `currtest` DISABLE KEYS */; /*!40000 ALTER TABLE `currtest` ENABLE KEYS */; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.joke CREATE TABLE IF NOT EXISTS `joke` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; -- Dumping data for table spd.joke: ~6 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `joke`; /*!40000 ALTER TABLE `joke` DISABLE KEYS */; INSERT INTO `joke` (`id`, `name`) VALUES (1, 'A bad beginning makes a bad ending.'), (2, 'A bad corn promise is better than a good lawsuit.'), (3, 'A beggar can never be bankrupt.'), (4, 'Good.'), (5, 'A black hen lays a white egg.'), (6, 'A clean fast is better than a dirty breakfast.'), (7, 'A clean hand wants no washing.'); /*!40000 ALTER TABLE `joke` ENABLE KEYS */; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.test CREATE TABLE IF NOT EXISTS `questions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question` text, `test_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8; -- Dumping data for table spd.test: ~24 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `questions`; /*!40000 ALTER TABLE `test` DISABLE KEYS */; INSERT INTO `questions` (`id`, `question`, `test_id`) VALUES (1, 'ะ”ะพ ัะบะปะฐะดัƒ ะšะฐะฑั–ะฝะตั‚ัƒ ะœั–ะฝั–ัั‚ั€ั–ะฒ ะฃะบั€ะฐั—ะฝะธ ะฒั…ะพะดัั‚ัŒ:', 1), (2, 'ะŸั€ะฐะฒะฐ ั– ัะฒะพะฑะพะดะธ ะปัŽะดะธะฝะธ ั”:', 1), (3, 'ะŸะฐั€ะปะฐะผะตะฝั‚ััŒะบะธะน ะบะพะฝั‚ั€ะพะปัŒ ะทะฐ ะดะพะดะตั€ะถะฐะฝะฝัะผ ะบะพะฝัั‚ะธั‚ัƒั†ั–ะนะฝะธั… ะฟั€ะฐะฒ ั– ัะฒะพะฑะพะด ะปัŽะดะธะฝะธ ั– ะณั€ะพะผะฐะดัะฝะธะฝะฐ ะทะดั–ะนัะฝัŽั”:', 1), (4, 'ะŸั€ะฐะฒะพ ะดะพัั‚ัƒะฟัƒ ะดะพ ะดะตั€ะถะฐะฒะฝะพั— ัะปัƒะถะฑะธ ะดะปั ะณั€ะพะผะฐะดัะฝ ะฃะบั€ะฐั—ะฝะธ ั”:', 1), (5, 'ะฏะบั‰ะพ ะฟั–ะด ั‡ะฐั ะฟะพะฒั‚ะพั€ะฝะพะณะพ ั€ะพะทะณะปัะดัƒ ะ—ะฐะบะพะฝ ะทะฝะพะฒัƒ ะฟั€ะธะนะฝัั‚ะธะน ะ’ะตั€ั…ะพะฒะฝะพัŽ ะ ะฐะดะพัŽ ะฃะบั€ะฐั—ะฝะธ ะฝะต ะผะตะฝัˆ ัะบ ะดะฒะพะผะฐ ั‚ั€ะตั‚ะธะฝะฐะผะธ ะฒั–ะด ั—ั— ะบะพะฝัั‚ะธั‚ัƒั†ั–ะนะฝะพะณะพ ัะบะปะฐะดัƒ:', 1), (6, 'ะงะธ ะผะฐัŽั‚ัŒ ะฟะพะณะพะดะถัƒะฒะฐั‚ะธ ั‚ะตั€ะธั‚ะพั€ั–ะฐะปัŒะฝั– ะพั€ะณะฐะฝะธ ัŽัั‚ะธั†ั–ั— ะฟั€ะพะฟะพะทะธั†ั–ั— ั‰ะพะดะพ ะฟั€ั–ะพั€ะธั‚ะตั‚ั–ะฒ ัะฒะพั”ั— ั€ะพะฑะพั‚ะธ ะท ะณะพะปะพะฒะฐะผะธ ะผั–ัั†ะตะฒะธั… ะดะตั€ะถะฐะฒะฝะธั… ะฐะดะผั–ะฝั–ัั‚ั€ะฐั†ั–ะน?', 1), (7, 'ะงะธ ะผะพะถัƒั‚ัŒ ะทะฐัะปัƒั…ะพะฒัƒะฒะฐั‚ะธััŒ ะฝะฐ ะทะฐัั–ะดะฐะฝะฝัั… ะบะพะปะตะณั–ะน ะผั–ัั†ะตะฒะธั… ะดะตั€ะถะฐะดะผั–ะฝั–ัั‚ั€ะฐั†ั–ะน ะทะฒั–ั‚ะธ ะบะตั€ั–ะฒะฝะธะบั–ะฒ ั‚ะตั€ะธั‚ะพั€ั–ะฐะปัŒะฝะธั… ะพั€ะณะฐะฝั–ะฒ ะฟั€ะพ ะฒะธะบะพะฝะฐะฝะฝั ะฟะปะฐะฝั–ะฒ ั€ะพะฑะพั‚ะธ?', 1), (8, 'ะงะธ ะฟั–ะดะทะฒั–ั‚ะฝั– ะบะตั€ั–ะฒะฝะธะบะธ ั‚ะตั€ะธั‚ะพั€ั–ะฐะปัŒะฝะธั… ะพั€ะณะฐะฝั–ะฒ ัŽัั‚ะธั†ั–ั— ะณะพะปะพะฒะฐะผ ะฒั–ะดะฟะพะฒั–ะดะฝะธั… ะผั–ัั†ะตะฒะธั… ะดะตั€ะถะฐะฒะฝะธั… ะฐะดะผั–ะฝั–ัั‚ั€ะฐั†ั–ั—? ะฏะบั‰ะพ ะฟั–ะดะทะฒั–ั‚ะฝั–, ะฒะธะทะฝะฐั‡ะธั‚ะธ ะท ัะบะธั… ะฟะธั‚ะฐะฝัŒ?', 1), (9, 'ะงะธ ัƒะฟะพะฒะฝะพะฒะฐะถะตะฝะธะน ะณะพะปะพะฒะฐ ะผั–ัั†ะตะฒะพั— ะดะตั€ะถะฐะฒะฝะพั— ะฐะดะผั–ะฝั–ัั‚ั€ะฐั†ั–ั— ะฟะพั€ัƒัˆัƒะฒะฐั‚ะธ ะฟะธั‚ะฐะฝะฝั ะฟั€ะพ ะฒั–ะดะฟะพะฒั–ะดะฝั–ัั‚ัŒ ะทะฐะนะผะฐะฝั–ะน ะฟะพัะฐะดั– ะบะตั€ั–ะฒะฝะธะบะฐ ะฒั–ะดะฟะพะฒั–ะดะฝะพะณะพ ั‚ะตั€ะธั‚ะพั€ั–ะฐะปัŒะฝะพะณะพ ะพั€ะณะฐะฝัƒ ัŽัั‚ะธั†ั–ั—?', 1), (10, 'ะกั‚ั€ะพะบ ะบะฐัะฐั†ั–ะนะฝะพะณะพ ะพัะบะฐั€ะถะตะฝะฝั ััƒะดะพะฒะธั… ั€ั–ัˆะตะฝัŒ:', 2), (11, 'ะŸั–ะดัั‚ะฐะฒะฐ ะดะปั ะฟะพะดะฐะฝะฝั ะทะฐัะฒะธ ะฟั€ะพ ะฟะตั€ะตะณะปัะด ััƒะดะพะฒะธั… ั€ั–ัˆะตะฝัŒ ะ’ะตั€ั…ะพะฒะฝะธะผ ะกัƒะดะพะผ ะฃะบั€ะฐั—ะฝะธ', 2), (12, 'ะกั‚ั€ะพะบ ัะบะปะฐะดะตะฝะฝั ะฟะพัั‚ะฐะฝะพะฒะธ ะฒ ัะฟั€ะฐะฒะฐั… ะฐะดะผั–ะฝั–ัั‚ั€ะฐั‚ะธะฒะฝะพะณะพ ััƒะดะพั‡ะธะฝัั‚ะฒะฐ ัƒ ะฟะพะฒะฝะพะผัƒ ะพะฑััะทั– ะผะพะถะต ะฑัƒั‚ะธ ะฒั–ะดะบะปะฐะดะตะฝะพ ะฝะต ะฑั–ะปัŒัˆะต ะฝั–ะถ:', 2), (13, 'ะ„ะฒั€ะพะฟะตะนััŒะบะธะน ััƒะด ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ โ€“ ั†ะต:', 2), (14, 'ะงะธ ะผะพะถะต ะทะฒะตั€ะฝัƒั‚ะธัั ะดะพ ะ„ะฒั€ะพะฟะตะนััŒะบะพะณะพ ััƒะดัƒ ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ ัŽั€ะธะดะธั‡ะฝะฐ ะพัะพะฑะฐ:', 2), (15, 'ะ„ะฒั€ะพะฟะตะนััŒะบะธะน ััƒะด ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ ะผะพะถะต ะฒะทัั‚ะธ ะดะพ ั€ะพะทะณะปัะดัƒ ะทะฐัะฒัƒ ะปะธัˆะต ะทะฐ ั‚ะฐะบะธั… ัƒะผะพะฒ:', 2), (16, 'ะฃั€ัะดะพะฒะพะณะพ ัƒะฟะพะฒะฝะพะฒะฐะถะตะฝะพะณะพ ัƒ ัะฟั€ะฐะฒะฐั… ะ„ะฒั€ะพะฟะตะนััŒะบะพะณะพ ััƒะดัƒ ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ ะฟั€ะธะทะฝะฐั‡ะฐั” ะฝะฐ ะฟะพัะฐะดัƒ ั‚ะฐ ะทะฒั–ะปัŒะฝัั” ะท ะฟะพัะฐะดะธ:', 2), (17, 'ะะต ั” ัƒะผะพะฒะพัŽ ะฟั€ะธะนะฝัั‚ะฝะพัั‚ั– ะทะฐัะฒะธ ะดะพ ั€ะพะทะณะปัะดัƒ ะ„ะฒั€ะพะฟะตะนััŒะบะธะผ ััƒะดะพะผ:', 2), (18, 'ะงะธ ะผะฐั” ะ„ะฒั€ะพะฟะตะนััŒะบะธะน ััƒะด ะฟะพะฒะฝะพะฒะฐะถะตะฝะฝั ัะบะฐัะพะฒัƒะฒะฐั‚ะธ ะฐะฑะพ ะทะผั–ะฝัŽะฒะฐั‚ะธ ั€ั–ัˆะตะฝะฝั ะฝะฐั†ั–ะพะฝะฐะปัŒะฝะธั… ััƒะดั–ะฒ:', 2), (19, 'ะžัะฝะพะฒะฝะธะผ ะทะฐะฒะดะฐะฝะฝัะผ ะฃั€ัะดะพะฒะพะณะพ ัƒะฟะพะฒะฝะพะฒะฐะถะตะฝะพะณะพ ัƒ ัะฟั€ะฐะฒะฐั… ะ„ะฒั€ะพะฟะตะนััŒะบะพะณะพ ััƒะดัƒ ะท ะฟั€ะฐะฒ ะปัŽะดะธะฝะธ ั”:', 2), (39, 'ะšะฐะบ ะขะตะฑั ะทะฒะฐั‚ัŒ?', 2); /*!40000 ALTER TABLE `test` ENABLE KEYS */; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.resulttest CREATE TABLE IF NOT EXISTS `resulttest` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `test_id` int(11) DEFAULT NULL, `result` int(11) DEFAULT NULL, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=180 DEFAULT CHARSET=utf8; -- Dumping data for table spd.resulttest: ~9 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `resulttest`; /*!40000 ALTER TABLE `resulttest` DISABLE KEYS */; INSERT INTO `resulttest` (`id`, `user_id`, `test_id`, `result`, `time`) VALUES (170, 88, 1, 3, '2015-07-02 14:04:42'), (171, 88, 1, 3, '2015-07-02 14:05:56'), (172, 88, 2, 1, '2015-07-02 14:36:33'), (173, 88, 1, 1, '2015-07-03 15:13:32'), (174, 88, 1, 2, '2015-07-03 17:37:26'), (175, 88, 1, 3, '2015-07-03 17:44:56'), (176, 88, 2, 0, '2015-07-30 18:52:27'), (177, 88, 17, 1, '2015-07-30 18:53:01'), (178, 88, 1, 4, '2015-07-30 19:49:40'), (179, 88, 1, 2, '2015-07-31 14:59:35'); /*!40000 ALTER TABLE `resulttest` ENABLE KEYS */; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.test CREATE TABLE IF NOT EXISTS `test` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- Dumping data for table spd.test: ~3 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `test`; /*!40000 ALTER TABLE `test` DISABLE KEYS */; INSERT INTO `test` (`id`, `name`) VALUES (1, 'ะ—ะฐะณะฐะปัŒะฝั– ะฟะธั‚ะฐะฝะฝั'), (2, 'ะŸั€ะตะดัั‚ะฐะฒะฝะธั†ั‚ะฒะพ ั–ะฝั‚ะตั€ะตัั–ะฒ ะšะฐะฑั–ะฝะตั‚ัƒ ะœั–ะฝั–ัั‚ั€ั–ะฒ ะฃะบั€ะฐั—ะฝะธ ั‚ะฐ ะœั–ะฝั–ัั‚ะตั€ัั‚ะฒะฐ ัŽัั‚ะธั†ั–ั— ะฃะบั€ะฐั—ะฝะธ ัƒ ััƒะดะฐั… ะฃะบั€ะฐั—ะฝะธ'); /*!40000 ALTER TABLE `test` ENABLE KEYS */; -- Dumping structure for ั‚ะฐะฑะปะธั†ั spd.user CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL, `password` varchar(20) NOT NULL, `nickname` varchar(50) DEFAULT NULL, `email` varchar(50) DEFAULT NULL, `enabled` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8; -- Dumping data for table spd.user: ~5 rows (ะฟั€ะธะฑะปะธะทะฝะพ) DELETE FROM `user`; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` (`id`, `username`, `password`, `nickname`, `email`, `enabled`) VALUES (88, 'SashOk', '123', '777', 's020687@gmail.com', 1), (89, 'Albatros', '123', 'jdk5', 'sds@ex.ua', 1), (97, 'Messi', '789', 'Messi', 'messi@ex.ua', 1), (99, 'Zaza', '123', 'Zahar', 'zaza@ya.ru', 1), (100, 'Za', '123', 'ads', 'asd@f.t', 1); /*!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
03cf9595b6c554313a5f9e529d354aaa11796a9c
SQL
SSaipriya23/feedback-analysis
/feedback.sql
UTF-8
4,712
2.875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.22, for osx10.13 (x86_64) -- -- Host: 127.0.0.1 Database: feedback -- ------------------------------------------------------ -- Server version 5.7.21 /*!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 `answers` -- DROP TABLE IF EXISTS `answers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `answers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `answer` text NOT NULL, `questionId` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `question_answers` (`questionId`), CONSTRAINT `question_answers` FOREIGN KEY (`questionId`) REFERENCES `questions` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `answers` -- LOCK TABLES `answers` WRITE; /*!40000 ALTER TABLE `answers` DISABLE KEYS */; /*!40000 ALTER TABLE `answers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `companies` -- DROP TABLE IF EXISTS `companies`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `companies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `process` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `companies` -- LOCK TABLES `companies` WRITE; /*!40000 ALTER TABLE `companies` DISABLE KEYS */; INSERT INTO `companies` VALUES (1,'Cognizant','Written Round, Technical Round, HR Round'),(2,'Infosys','Online Test, Technical Round, HR Round'),(3,'TCS','Aptitude, Technical Interview, Managerial Interview, HR Round'); /*!40000 ALTER TABLE `companies` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `login` -- DROP TABLE IF EXISTS `login`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `login` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category` varchar(10) NOT NULL, `userid` varchar(30) NOT NULL, `name` varchar(30) NOT NULL, `password` varchar(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `login` -- LOCK TABLES `login` WRITE; /*!40000 ALTER TABLE `login` DISABLE KEYS */; INSERT INTO `login` VALUES (0,'Admin','dummy-id','Admin user','m2J@UM*2uqhT$RBnw6iI'); /*!40000 ALTER TABLE `login` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `questions` -- DROP TABLE IF EXISTS `questions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `questions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question` varchar(100) NOT NULL, `companyId` int(11) NOT NULL, `approvedAnswer` text NOT NULL, PRIMARY KEY (`id`), KEY `question_company` (`companyId`), CONSTRAINT `question_company` FOREIGN KEY (`companyId`) REFERENCES `companies` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `questions` -- LOCK TABLES `questions` WRITE; /*!40000 ALTER TABLE `questions` DISABLE KEYS */; INSERT INTO `questions` VALUES (1,'Combination Sum',2,'\"\"'),(2,'Reverse an Array',2,'\"\"'),(3,'What is a proxy Server ?',2,'\"\"'),(4,'Check if the door is open or closed',3,'\"\"'),(5,'What does static variable mean?',3,'\"\"'),(6,'Difference between C++ and Java',3,'\"\"'); /*!40000 ALTER TABLE `questions` 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 2018-07-29 17:03:07
true
3d32b2f197deacacb63f2574205f82c4c746c71f
SQL
RuslanYusupov1/DZ1
/20210512/ะ—ะฐะดะฐะฝะธะต sql 29.sql
UTF-8
641
3.328125
3
[]
no_license
ะ—ะฐะดะฐะฝะธะต: 29 (Serge I: 2003-02-14) ะ’ ะฟั€ะตะดะฟะพะปะพะถะตะฝะธะธ, ั‡ั‚ะพ ะฟั€ะธั…ะพะด ะธ ั€ะฐัั…ะพะด ะดะตะฝะตะณ ะฝะฐ ะบะฐะถะดะพะผ ะฟัƒะฝะบั‚ะต ะฟั€ะธะตะผะฐ ั„ะธะบัะธั€ัƒะตั‚ัั ะฝะต ั‡ะฐั‰ะต ะพะดะฝะพะณะพ ั€ะฐะทะฐ ะฒ ะดะตะฝัŒ [ั‚.ะต. ะฟะตั€ะฒะธั‡ะฝั‹ะน ะบะปัŽั‡ (ะฟัƒะฝะบั‚, ะดะฐั‚ะฐ)], ะฝะฐะฟะธัะฐั‚ัŒ ะทะฐะฟั€ะพั ั ะฒั‹ั…ะพะดะฝั‹ะผะธ ะดะฐะฝะฝั‹ะผะธ (ะฟัƒะฝะบั‚, ะดะฐั‚ะฐ, ะฟั€ะธั…ะพะด, ั€ะฐัั…ะพะด). ะ˜ัะฟะพะปัŒะทะพะฒะฐั‚ัŒ ั‚ะฐะฑะปะธั†ั‹ Income_o ะธ Outcome_o. select isnull(a.point, b.point), isnull(a.date, b.date), a.inc, b.out from income_o a as a join outcome_o b as b on a.date=b.date and a.point=b.point
true
2288d9471693845e8ef70268e0ef457d0fa4eba5
SQL
pedromlcosta/LBAW
/proto.sql
UTF-8
3,181
3.3125
3
[]
no_license
DROP SCHEMA IF EXISTS proto CASCADE; CREATE SCHEMA proto; SET SCHEMA 'proto'; CREATE TABLE users ( username varchar PRIMARY KEY, realname varchar NOT NULL, password varchar NOT NULL ); CREATE TABLE tweets ( id SERIAL PRIMARY KEY, time timestamp NOT NULL, username varchar REFERENCES users NOT NULL, text text NOT NULL ); CREATE table follows ( follower varchar REFERENCES users, followed varchar REFERENCES users, PRIMARY KEY (follower, followed) ); INSERT INTO users VALUES ('john', 'John Doe', 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3'); INSERT INTO users VALUES ('mary', 'Mary Jane', 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3'); INSERT INTO users VALUES ('mike', 'Mike Tyson', 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 10:41', 'john', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam magna arcu, dictum et bibendum a, volutpat sed mi. Maecenas facilisis.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 11:21', 'john', 'Nam congue erat eu lectus ullamcorper, sed ornare sapien interdum. Vestibulum rutrum adipiscing sed.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 12:35', 'mary', 'Etiam a arcu vitae augue varius posuere eget vitae lectus. Vivamus diam posuere.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 14:25', 'john', 'Praesent metus augue, suscipit at eleifend nec, pharetra vitae dolor. Morbi sed.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 14:41', 'mike', 'Donec quis augue vitae urna turpis duis.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 15:12', 'mary', 'Praesent a orci vitae urna molestie sed.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 16:46', 'mary', 'Sed sem nibh, facilisis in orci aliquam.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 16:54', 'john', 'Maecenas iaculis ante vel velit pharetra vulputate volutpat.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 17:39', 'john', 'Morbi commodo consequat turpis, vel hendrerit turpis nullam.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 19:54', 'mary', 'Vestibulum eget lectus molestie, convallis velit nec nullam.'); INSERT INTO tweets VALUES (DEFAULT, '2013-10-31 21:43', 'mike', 'Fusce quam lorem, dictum vitae ligula ut, molestie volutpat.'); INSERT INTO tweets VALUES (DEFAULT, '2013-11-01 09:41', 'mary', 'Quisque augue lectus, auctor at bibendum nec, lobortis amet.'); INSERT INTO tweets VALUES (DEFAULT, '2013-11-01 10:44', 'mary', 'Ut et tincidunt orci. Nulla facilisi. Sed egestas neque nec est metus.'); INSERT INTO tweets VALUES (DEFAULT, '2013-11-01 11:47', 'mike', 'Curabitur porttitor sem scelerisque nibh sagittis, ut tristique metus.'); INSERT INTO tweets VALUES (DEFAULT, '2013-11-01 11:49', 'john', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla quis ultricies nunc, eget condimentum nulla. Donec metus.'); INSERT INTO tweets VALUES (DEFAULT, '2013-11-01 11:55', 'mike', 'Etiam porta porttitor tempus. Fusce viverra nisi at tortor ultricies, sit amet consectetur lorem mattis. Maecenas metus.'); INSERT INTO follows VALUES ('mike', 'mary'); INSERT INTO follows VALUES ('mike', 'john'); INSERT INTO follows VALUES ('mary', 'mike'); INSERT INTO follows VALUES ('john', 'mary');
true
9e96a74488a7a4b10284a137dda50621971792ae
SQL
rohan299p/GRIP-TSF_tsfBank
/sql/sparks_bank.sql
UTF-8
2,942
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 13, 2021 at 09:19 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 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: `sparks_bank` -- -- -------------------------------------------------------- -- -- Table structure for table `transaction` -- CREATE TABLE `transaction` ( `sno` int(3) NOT NULL, `sender` text NOT NULL, `receiver` text NOT NULL, `balance` int(8) NOT NULL, `datetime` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `transaction` -- INSERT INTO `transaction` (`sno`, `sender`, `receiver`, `balance`, `datetime`) VALUES (5, 'Priyanka', 'Yash', 3000, '2021-06-11 01:44:29'), (6, 'Abhishek', 'Sairaj', 4000, '2021-06-13 17:06:56'), (7, 'Abhishek', 'Yash', 2000, '2021-06-13 17:08:56'), (8, 'Anushka', 'Ranvir', 6000, '2021-06-13 21:35:33'), (9, 'Deepika', 'Virat', 4500, '2021-06-13 21:35:54'), (10, 'Yash', 'Virat', 4000, '2021-06-14 00:19:33'), (11, 'Sairaj', 'Riya', 7500, '2021-06-14 00:20:17'), (12, 'Virat', 'Priyanka', 8500, '2021-06-14 00:21:27'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(3) NOT NULL, `name` text NOT NULL, `email` varchar(30) NOT NULL, `balance` int(8) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `balance`) VALUES (1, 'Abhishek', 'abhishek@gmail.com', 44000), (2, 'Riya', 'riya123@gmail.com', 36500), (3, 'Sairaj', 'sairaj45@gmail.com', 36500), (4, 'Priyanka', 'priyanka@gmail.com', 53500), (5, 'Yash', 'yash@gmail.com', 38000), (6, 'Ranvir', 'ranvirsingh@gmail.com', 44000), (7, 'Deepika', 'padukone@gmail.com', 48500), (8, 'Anushka', 'anushka768@gmail.com', 34000), (9, 'Virat', 'viratkohli@gmail.com', 60000), (10, 'Vijay', 'vijay3344@gmail.com', 50000), (11, 'Ajinkya', 'ajinkya@gmail.com', 55000); -- -- Indexes for dumped tables -- -- -- Indexes for table `transaction` -- ALTER TABLE `transaction` ADD PRIMARY KEY (`sno`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `transaction` -- ALTER TABLE `transaction` MODIFY `sno` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; 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
4d1cef4e8a5d42287782003a43d918f13a02ea8e
SQL
margoober/codeup_database_exercises
/update_exercises.sql
UTF-8
647
3.234375
3
[]
no_license
USE codeup_test_db; SELECT "1. All albums & sales in hundred thousands:" AS ""; UPDATE albums SET sales_in_millions = sales_in_millions * 10 WHERE id >= 0; SELECT name AS "", artist AS "", sales_in_millions AS "" FROM albums; SELECT "2. All albums pre-1880:" AS ""; UPDATE albums SET release_date = release_date - 100 WHERE release_date < 1980; SELECT name AS "", artist AS "", release_date AS "" FROM albums WHERE release_date < 1980; SELECT "3. All Talking Heads albums:" AS ""; UPDATE albums SET artist = "Talking Heads" WHERE artist = "The Talking Heads"; SELECT name AS "", artist AS "" FROM albums WHERE artist = "Talking Heads";
true
9fa4093694ad5805f5ff64160d32feffe812e4e5
SQL
DWhite1234/studyCodes
/mysql/day02/DQL.sql
UTF-8
678
3.546875
4
[]
no_license
-- DQL็š„ๅ…ณ้”ฎๅญ—ไปฅๅŠๆ‰ง่กŒ้กบๅบ,ๅ’Œ่šๅˆๅ‡ฝๆ•ฐ SELECT # 5.ๆŸฅ่ฏข็ป“ๆžœ FROM # 1.็กฎๅฎš่กจ WHERE # 2.่ฟ‡ๆปค่กจๆ•ฐๆฎ GROUP BY # 3.ๅˆ†็ป„ HAVING # 4.่ฟ‡ๆปค่šๅˆๅ‡ฝๆ•ฐ ORDER BY # 6.ๅฐ†็ป“ๆžœๆŽ’ๅบ asc(ๅ‡ๅบ,้ป˜่ฎคๅ€ผ)|desc(้™ๅบ) LIMIT # 7.ๅฐ†็ป“ๆžœๅˆ†้กต,ๆˆ–ๆˆชๅ– ๅธธ็”จ็š„ไบ”็ง่šๅˆๅ‡ฝๆ•ฐ: MAX(ๅญ—ๆฎต):ๆฑ‚ๆœ€ๅคงๅ€ผ MIN(ๅญ—ๆฎต):ๆฑ‚ๆœ€ๅฐๅ€ผ COUNT(ๅญ—ๆฎต):ๆปก่ถณๆกไปถ็š„ๆ•ฐๆฎๆกๆ•ฐ AVG(ๅญ—ๆฎต):ๆฑ‚ๅนณๅ‡ๅ€ผ SUM(ๅญ—ๆฎต):ๆฑ‚ๅ’Œ ๆณจๆ„็‚น: 1. GROUP BY,SELECT: ๅฝ“ไฝฟ็”จไบ†GROUP BYไน‹ๅŽ,select ๅŽ้ขๅช่ƒฝ่ทŸ่šๅˆๅ‡ฝๆ•ฐๆˆ–่€…ๅˆ†็ป„ๅญ—ๆฎต 2. limit 1: ็›ธๅฝ“ไบŽlimit 0 ,1 ๅ–็ฌฌไธ€ไฝๆ•ฐๆฎ 3. ไฝฟ็”จๅ…ณ้”ฎๅญ—distinct่ฟ›่กŒselectๅŽป้‡
true
faa139fe98fdbb392e3af6911ebf30ad7dccb814
SQL
Asbaharoon/ERP_Garment_Ver-1
/ERP_Garment_Ver-1/MySqlDump/garmentsystem_salary_table.sql
UTF-8
2,624
3.125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `garmentsystem` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `garmentsystem`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: itp2016ver1fdgd.cht0bvbob1wj.us-west-2.rds.amazonaws.com Database: garmentsystem -- ------------------------------------------------------ -- Server version 5.6.27-log /*!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 `salary_table` -- DROP TABLE IF EXISTS `salary_table`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `salary_table` ( `sal_id` int(11) NOT NULL, `basic_sal` int(11) DEFAULT NULL, `ot_rate` double DEFAULT NULL, `net_sal` double DEFAULT NULL, `etf` double DEFAULT NULL, `allowence` double DEFAULT NULL, `emp_id` varchar(10) DEFAULT NULL, `ot_hours` double DEFAULT NULL, `epf` double DEFAULT NULL, `Month` text, PRIMARY KEY (`sal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `salary_table` -- LOCK TABLES `salary_table` WRITE; /*!40000 ALTER TABLE `salary_table` DISABLE KEYS */; INSERT INTO `salary_table` VALUES (4,9000,1.5,8620,3,700,'3',3,12,'January'),(5,7000,1.5,6110,3,90,'2',1,12,'February'),(6,8000,1.5,7080,3,20,'1',1,12,'March'),(7,5000,1.5,4800,3,500,'90',1,12,'March'),(9,700,1.5,602,3,0,'4',1,12,'January'),(10,3000,1.5,3510,3,600,'1',12,12,'March'); /*!40000 ALTER TABLE `salary_table` 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 2017-05-08 17:55:47
true
4babfab7665448aac047cd9b48900c816d6da13c
SQL
andreysoares/mimic-code
/concepts/organfailure/kdigo-stages-7day.sql
UTF-8
4,012
3.890625
4
[ "MIT" ]
permissive
-- This query checks if the patient had AKI according to KDIGO on admission -- AKI can be defined either using data from the first 2 days, or first 7 days -- For urine output: the highest UO in hours 0-48 is used -- For creatinine: the creatinine value from days 0-2 or 0-7 is used. -- Baseline creatinine is defined as first measurement in hours [-6, 24] from ICU admit DROP MATERIALIZED VIEW IF EXISTS kdigo_stages_7day; CREATE MATERIALIZED VIEW kdigo_stages_7day AS with uo_6hr as ( select ie.icustay_id -- , uo.charttime -- , uo.urineoutput_6hr , min(uo.urineoutput_6hr / uo.weight / 6.0)::numeric as uo6 from icustays ie inner join kdigo_uo uo on ie.icustay_id = uo.icustay_id and uo.charttime <= ie.intime + interval '7' day - interval '6' hour group by ie.icustay_id ) , uo_12hr as ( select ie.icustay_id -- , uo.charttime -- , uo.weight -- , uo.urineoutput_12hr , min(uo.urineoutput_12hr / uo.weight / 12.0)::numeric as uo12 from icustays ie inner join kdigo_uo uo on ie.icustay_id = uo.icustay_id and uo.charttime <= ie.intime + interval '7' day - interval '12' hour group by ie.icustay_id ) , uo_24hr as ( select ie.icustay_id -- , uo.charttime -- , uo.weight -- , uo.urineoutput_24hr , min(uo.urineoutput_24hr / uo.weight / 24.0)::numeric as uo24 from icustays ie inner join kdigo_uo uo on ie.icustay_id = uo.icustay_id and uo.charttime <= ie.intime + interval '7' day - interval '24' hour group by ie.icustay_id ) -- stages for UO / creat , kdigo_stg as ( select ie.icustay_id , ie.intime, ie.outtime , case when HighCreat7day >= (LowCreat7day*3.0) then 3 when HighCreat7day >= 4 -- note the criteria specify an INCREASE to >=4 and LowCreat7day <= (3.7) then 3 -- therefore we check that adm <= 3.7 -- TODO: initiation of RRT when HighCreat7day >= (LowCreat7day*2.0) then 2 when HighCreat7day >= (LowCreat7day+0.3) then 1 when HighCreat7day >= (LowCreat7day*1.5) then 1 when HighCreat7day is null then null when LowCreat7day is null then null else 0 end as AKI_stage_7day_creat -- AKI stages according to urine output , case when UO24 < 0.3 then 3 when UO12 = 0 then 3 when UO12 < 0.5 then 2 when UO6 < 0.5 then 1 when UO6 is null then null else 0 end as AKI_stage_7day_uo -- Creatinine information , LowCreat7dayTime, LowCreat7day , HighCreat7dayTime, HighCreat7day -- Urine output information: the values and the time of their measurement , round(UO6,4) as UO6_48hr , round(UO12,4) as UO12_48hr , round(UO24,4) as UO24_48hr from icustays ie left join uo_6hr on ie.icustay_id = uo_6hr.icustay_id left join uo_12hr on ie.icustay_id = uo_12hr.icustay_id left join uo_24hr on ie.icustay_id = uo_24hr.icustay_id left join KDIGO_CREAT cr on ie.icustay_id = cr.icustay_id ) select kd.icustay_id -- Classify AKI using both creatinine/urine output criteria , case when coalesce(AKI_stage_7day_creat,AKI_stage_7day_uo) > 0 then 1 else coalesce(AKI_stage_7day_creat,AKI_stage_7day_uo) end as AKI_7day , case when AKI_stage_7day_creat >= AKI_stage_7day_uo then AKI_stage_7day_creat when AKI_stage_7day_uo > AKI_stage_7day_creat then AKI_stage_7day_uo else coalesce(AKI_stage_7day_creat,AKI_stage_7day_uo) end as AKI_stage_7day , AKI_stage_7day_creat -- Creatinine information - convert absolute times to hours since admission , LowCreat7day , HighCreat7day , ROUND(extract(epoch from (LowCreat7dayTime-intime))::numeric / 60.0 / 60.0 / 24.0, 4) as LowCreat7dayTimeElapsed , ROUND(extract(epoch from (HighCreat7dayTime-intime))::numeric / 60.0 / 60.0 / 24.0, 4) as HighCreat7dayTimeElapsed , LowCreat7dayTime , HighCreat7dayTime -- Urine output information: the values and the time of their measurement , UO6_48hr , UO12_48hr , UO24_48hr from kdigo_stg kd order by kd.icustay_id;
true
2b73c504a1a7e99f073456788b078aa157885635
SQL
AristovEV/SQL-ex
/homework9.sql
UTF-8
3,366
4.46875
4
[]
no_license
--task1 (lesson8) -- oracle: https://leetcode.com/problems/department-top-three-salaries/ select Department,Employee,salary from( select d.Name as Department,e.name as Employee ,salary, dense_rank() over (partition by departmentid order by salary desc) from employee e join department d on d.id=e.departmentid where e.name !='Janet') g --task2 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/17 select distinct member_name,status,sum(unit_price) over(partition by member_name) as costs from FamilyMembers f LEFT JOIN Payments p on f.member_id=p.family_member where extract(year from cast(date as date))='2005' --task3 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/13 select name from (select name, row_number() over(partition by name) as num from Passenger ) h where num >1 --task4 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/38 select count(first_name) as count from Student where first_name like 'Anna%' --task5 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/35 select count(classroom) as count from(select classroom,date from Schedule WHERE date like '%2019-09-02%') d --task6 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/38 select count(first_name) as count from Student where first_name like 'Anna%' --task7 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/32 select round(avg(age)) as age from (select timestampdiff(year,birthday,current_date) age from FamilyMembers) f --task8 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/27 SELECT distinct good_type_name , sum(unit_price) over (partition BY good_type_name) as costs from GoodTypes gt JOIN Goods g on good_type_id = type JOIN Payments p on good_id = good WHERE extract(year from date)='2005' order BY costs desc --task9 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/37 select min(age) as year from (select timestampdiff(year,birthday,current_date) age from Student) f --task10 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/44 select max(age) as max_year from (select timestampdiff(year,birthday,current_date) age from (SELECT birthday from Student s join Student_in_class st on s.id=st.Student join Class c on c.id=st.class where c.name LIKE '10%') b ) h --task11 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/20 select status,member_name,unit_price as costs from FamilyMembers JOIN Payments on member_id=family_member JOIN Goods on good = good_id JOIN GoodTypes on type=good_type_id where good_type_name = 'entertainment' --task12 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/55 DELETE FROM Company where id in (SELECT Company from trip t GROUP BY Company HAVING count(id) = 2) --task13 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/45 select classroom from (SELECT classroom, row_number() over (partition BY classroom) as num from Schedule ) g where num = 5 --task14 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/43 select last_name from teacher t join Schedule s on t.id=s.teacher join Subject sub on s.subject=sub.id where sub.name='Physical Culture' ORDER BY last_name --task15 (lesson8) -- https://sql-academy.org/ru/trainer/tasks/63 select concat (last_name,'.',left(first_name,1),'.',left(middle_name,1),'.') as name from Student order BY name
true
f41ad0557811b8bc457ffac5ee49c757c77c6fa4
SQL
iSC-Labs/Fittime
/PHP Files/fitness_test.sql
UTF-8
15,327
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 23, 2017 at 04:29 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 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: `fitness_test` -- -- -------------------------------------------------------- -- -- Table structure for table `meal` -- CREATE TABLE `meal` ( `id` int(255) NOT NULL, `name` varchar(250) NOT NULL, `calories` int(255) NOT NULL, `size` varchar(100) DEFAULT NULL, `restuarant` varchar(200) NOT NULL, `prize` double NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `meal` -- INSERT INTO `meal` (`id`, `name`, `calories`, `size`, `restuarant`, `prize`) VALUES (1, 'Chick-fil-A Chicken Sandwich Meal', 600, 'small', 'Chick-fil-A', 6.39), (2, 'Chick-fil-A Chicken Sanwich Meal', 800, 'medium', 'Chick-fil-A', 7.39), (3, 'Chick-fil-A Chicken Sanwich Meal', 1000, 'large', 'Chick-fil-A', 7.39), (4, 'Spicy Chicken Sandwich Meal', 890, 'small', 'Chick-fil-A', 6.65), (5, 'Spicy Chicken Sandwich Meal', 920, 'medium', 'Chick-fil-A', 7.65), (6, 'Spicy Chicken Sandwich Meal', 1080, 'large', 'Chick-fil-A', 8.65), (7, 'Classic Chick-fil-A Nuggets Meal', 600, 'small', 'Chick-fil-A', 6.39), (8, 'Classic Chick-fil-A Nuggets Meal', 750, 'medium', 'Chick-fil-A', 7.39), (9, 'Classic Chick-fil-A Nuggets Meal', 900, 'large', 'Chick-fil-A', 8.39), (10, 'Chick-fil-A Chick-n Strips Meal', 600, 'small', 'Chick-fil-A', 6.79), (11, 'Chick-fil-A Chick-n Strips Meal', 800, 'medium', 'Chick-fil-A', 7.79), (12, 'Chick-fil-A Chick-n Strips Meal', 1000, 'large', 'Chick-fil-A', 8.79), (13, 'Chick-fil-A Grilled Chicken Sanwich Meal', 720, 'small', 'Chick-fil-A', 7.79), (14, 'Chick-fil-A Grilled Chicken Sanwich Meal', 820, 'medium', 'Chick-fil-A', 8.79), (15, 'Chick-fil-A Grilled Chicken Sanwich Meal', 920, 'large', 'Chick-fil-A', 9.79), (16, 'Chick-fil-A Chicken Sandwich', 440, NULL, 'Chick-fil-A', 3.45), (17, 'Spicy-Chicken Sandwich', 450, NULL, 'Chick-fil-A', 3.69), (18, 'Chick-fil-A Grilled Chicken Sandwich', 310, NULL, 'Chick-fil-A', 4.85), (19, 'Cobb Salad', 430, NULL, 'Chick-fil-A', 7.89), (20, 'Grilled Market Salad', 450, NULL, 'Chick-fil-A', 7.89), (21, 'Grilled Chiken Cool Wrap', 350, NULL, 'Chick-fil-A', 5.69), (22, 'Waffle Potato Fries', 400, NULL, 'Chick-fil-A', 1.79), (23, 'Fruit Cup', 45, NULL, 'Chick-fil-A', 2.99), (24, 'Side Salad', 80, NULL, 'Chick-fil-A', 3.15), (25, 'Chocolate Chunk Cookie', 350, NULL, 'Chick-fil-A', 1.29), (26, 'Bagel', 290, NULL, 'Einstein Bros Bagels', 3.35), (27, 'Applewood Bacon & Cheddar Egg Sandwich', 520, NULL, 'Einstein Bros Bagels', 6.69), (28, 'Turkey-Sausage & Cheddar Egg Sandwich', 540, NULL, 'Einstein Bros Bagels', 6.67), (29, 'Ham & Swiss Egg Sandwich', 490, NULL, 'Einstein Bros Bagels', 7.25), (30, 'Egg & Cheddar Sandwich', 470, NULL, 'Einstein Bros Bagels', 6.65), (32, 'Ham & Swiss Deli Sandwich', 660, NULL, 'Einstein Bros Bagels', 6.64), (33, 'Albacore Tuna Salad Deli Sandwich', 590, NULL, 'Einstein Bros Bagels', 4.25), (34, 'Harvest Chicken Salad Deli Sandwich', 620, NULL, 'Einstein Bros Bagels', 4.35), (35, 'Turkey & Cheddar Deli Sandwich', 660, NULL, 'Einstein Bros Bagels', 4.15), (36, 'Club Mex Wrap', 720, NULL, 'Einstein Bros Bagels', 3.36), (37, 'Nova Lox & Bagel', 480, NULL, 'Einstein Bros Bagels', 5.59), (38, 'Buffalo Chiken & Bacon Tostini', 660, NULL, 'Einstein Bros Bagels', 6.97), (39, 'Turkey Club Tostini', 750, NULL, 'Einstein Bros Bagels', 6.65), (40, 'Roasted Veggie Tostini', 510, NULL, 'Einstein Bros Bagels', 6.76), (41, 'Italian Chicken Tostini', 740, NULL, 'Einstein Bros Bagels', 6.76), (42, 'Thintastic Buffalo Chicken', 600, NULL, 'Einstein Bros Bagels', 6.26), (43, 'Thintastic Club', 750, NULL, 'Einstein Bros Bagels', 5.43), (44, 'Strawberry Banana Smoothie', 400, NULL, 'Einstein Bros Bagels', 3.25), (45, 'Mixed Berry Smoothie', 390, NULL, 'Einstein Bros Bagels', 3.25), (46, 'South Turkey-Sausage Thintastic Egg White', 540, NULL, 'Einstein Bros Bagels', 4.57), (47, 'Southwest Turkey-Sausage Thintastic Egg White', 600, NULL, 'Einstein Bros Bagels', 4.59), (48, 'Greek Yogurt Parfait', 270, NULL, 'Einstein Bros Bagels', 4.29), (49, 'Eintein Jalapeno Chips', 180, NULL, 'Einstein Bros Bagels', 3.39), (50, 'Einstein Bros BBQ Chips', 180, NULL, 'Einstein Bros Bagels', 3.39), (51, 'Eintein Original Kettle Chips', 180, NULL, 'Einstein Bros Bagels', 3.59), (52, 'Cinnamon Twist', 360, NULL, 'Einstein Bros Bagels', 3.57), (53, 'Wild Strawberry', 340, NULL, 'Freshens', 4.09), (54, 'Maui Mango', 330, NULL, 'Freshens', 4.09), (55, 'Tropical Therapy', 480, NULL, 'Freshens', 4.09), (56, 'Super Red', 300, NULL, 'Freshens', 4.49), (57, 'Caribbean Craze', 330, NULL, 'Freshens', 4.09), (58, 'Mango Me Crazy', 290, NULL, 'Freshens', 4.09), (59, 'Jamaican Jammer', 320, NULL, 'Freshens', 4.09), (60, 'Orange Sunrise', 320, NULL, 'Freshens', 4.09), (61, 'Purple Reign', 320, NULL, 'Freshens', 4.09), (62, 'Cookie Dough Smoothie', 630, NULL, 'Freshens', 4.09), (63, 'Peach on the Beach', 280, NULL, 'Freshens', 4.09), (64, 'Bangin Berry', 510, NULL, 'Freshens', 4.09), (65, 'Oh Kale!', 320, NULL, 'Freshens', 4.49), (66, 'Peanut Butter Protein', 500, NULL, 'Freshens', 4.49), (67, 'Caribbean Passion', 270, 'small', 'Jamba Juice', 4.49), (68, 'Caribbean Passion', 330, 'medium', 'Jamba Juice', 5.49), (69, 'Caribbean Passion', 440, 'large', 'Jamba Juice', 6.49), (70, 'Razzmatazz', 290, 'small', 'Jamba Juice', 3.25), (71, 'Razzmatazz', 395, 'medium', 'Jamba Juice', 4.25), (72, 'Razzmatazz', 500, 'large', 'Jamba Juice', 5.25), (73, 'Mango-a-Go-Go', 300, 'small', 'Jamba Juice', 3.25), (74, 'Mango-a-Go-Go', 400, 'medium', 'Jamba Juice', 4.25), (75, 'Mango-Go-Go', 500, 'large', 'Jamba Juice', 5.25), (76, 'Strawberries Wild', 260, 'small', 'Jamba Juice', 3.25), (77, 'Strawberries Wild', 370, 'medium', 'Jamba Juice', 4.25), (78, 'Strawberries Wild', 460, 'large', 'Jamba Juice', 5.25), (79, 'Strawberries Sufrider', 320, 'small', 'Jamba Juice', 3.23), (80, 'Strawberries Sufrider', 455, 'medium', 'Jamba Juice', 4.23), (81, 'Strawberries Sufrider', 590, 'large', 'Jamba Juice', 5.23), (82, 'Orange Dream Machine', 350, 'small', 'Jamba Juice', 3.45), (83, 'Orange Dream Machine', 455, 'medium', 'Jamba Juice', 4.45), (84, 'Orange Dream Machine', 590, 'large', 'Jamba Juice', 5.45), (85, 'Peanut Butter Mood', 480, 'small', 'Jamba Juice', 3.46), (86, 'Peanut Butter Mood', 730, 'medium', 'Jamba Juice', 4.36), (87, 'Peanut Butter Mood', 980, 'large', 'Jamba Juice', 5.36), (88, 'Matcha Green Tea Blast', 300, 'small', 'Jamba Juice', 3.49), (89, 'Matcha Green Tea Blast', 420, 'medium', 'Jamba Juice', 4.39), (90, 'Matcha Green Tea Blast', 540, 'large', 'Jamba Juice', 5.49), (91, 'Apple n Greens', 250, 'small', 'Jamba Juice', 3.59), (92, 'Apple n Greens', 335, 'medium', 'Jamba Juice', 4.59), (93, 'Apple n Greens', 420, 'large', 'Jamba Juice', 5.49), (94, 'Strawberry Whril', 210, 'small', 'Jamba Juice', 3.27), (95, 'Strawberry Whril', 295, 'medium', 'Jamba Juice', 4.27), (96, 'Strawberry Whril', 380, 'large', 'Jamba Juice', 5.27), (97, 'Peach Perfection', 210, 'small', 'Jamba Juice', 3.43), (98, 'Peach Perfection', 285, 'medium', 'Jamba Juice', 4.43), (99, 'Peach Perfection', 360, 'large', 'Jamba Juice', 5.43), (100, 'Cranberry Orange Scone', 420, NULL, 'Starbucks', 2.45), (101, 'Petie Vanilla Bean Scone', 120, NULL, 'Starbucks', 0.95), (102, 'Toffeedoodle Cookie', 300, NULL, 'Starbucks', 1.95), (103, 'Chocolate Chip Cookie', 310, NULL, 'Starbucks', 1.95), (104, 'Outrageous Oatmeal Cookie', 310, NULL, 'Starbucks', 1.95), (105, 'Birthday Cake Pop', 170, NULL, 'Starbucks', 1.95), (106, 'Chocolate Cake Pop', 140, NULL, 'Starbucks', 1.95), (107, 'Latte Macchiato', 170, NULL, 'Starbucks', 3.95), (108, 'Freshly Brewed Coffe', 0, NULL, 'Starbucks', 1.95), (109, 'Teavana Brewed Tea', 0, NULL, 'Starbucks', 2.25), (110, 'Chocolate Chunk Cookie', 370, NULL, 'Starbucks', 1.95), (111, 'Double Chocolate Chunk Brownie', 380, NULL, 'Starbucks', 2.25), (112, 'Marshmallow Dream Bar', 240, NULL, 'Starbucks', 2.45), (113, 'Old Fashioned Doughnut', 480, NULL, 'Starbucks', 1.75), (114, 'Cascara Latte', 240, NULL, 'Starbucks', 4.25), (115, '6 in.Meatball Marinara Meal Deal', 480, NULL, 'Subway', 6.25), (116, '6 in.Black Forest Ham Meal Deal', 290, NULL, 'Subway', 6.25), (117, '6 in.Cold Cut Combo Meal Deal', 360, NULL, 'Subway', 6.25), (118, '6 in.Spicy Italian Meal Deal', 480, NULL, 'Subway', 6.25), (119, '6 in.Veggie Delite Meal Deal', 230, NULL, 'Subway', 6.15), (120, '6 in.Turkey Italiano Melt Meal Deal', 490, NULL, 'Subway', 6.75), (121, '6 in.Tuna Meal Deal', 480, NULL, 'Subway', 6.75), (122, '6 in.Italian B.M.T Meal Deal', 410, NULL, 'Subway', 6.75), (123, '6 in.Turkey Breast Meal Deal', 280, NULL, 'Subway', 6.75), (124, '6 in.Turkey Breast & Black Forest Ham Meal Deal', 280, NULL, 'Subway', 6.75), (125, '6 in.Oven Roasted Chicken Meal Deal', 320, NULL, 'Subway', 6.75), (126, '6 in.B.L.T Meal Deal', 380, NULL, 'Subway', 380), (127, '6 in.Buffalo Chicken Meal Deal', 420, NULL, 'Subway', 420), (128, '6 in.Sweet Onion Teriyaki Chicken Meal Deal', 370, NULL, 'Subway', 7.25), (129, '6 in.Steak & Cheese Meal Deal', 380, NULL, 'Subway', 7.25), (130, '6 in.Subway Club Meal Deal', 310, NULL, 'Subway', 7.25), (131, '6 in.Chicken & Bacon Ranch Melt Meal', 610, NULL, 'Subway', 7.5), (132, '6 in.Roast Beef Meal Deal', 320, NULL, 'Subway', 7.25), (133, '6 in.Veggie Patty Meal', 390, NULL, 'Subway', 6.75), (134, '12 in.Meatball Marinara Meal Deal', 480, NULL, 'Subway', 7.75), (135, '12 in.Black Forest Ham Meal Deal', 290, NULL, 'Subway', 7.75), (136, '12 in.Cold Cut Combo Meal Deal', 360, NULL, 'Subway', 7.75), (137, '12 in.Spicy Italian Meal Deal', 480, NULL, 'Subway', 7.75), (138, '12 in.Veggie Delite Meal Deal', 230, NULL, 'Subway', 7.9), (139, '12 in.Turkey Italiano Melt Meal Deal', 490, NULL, 'Subway', 8.5), (140, '12 in.Tuna Meal Deal', 480, NULL, 'Subway', 8.5), (141, '12 in.Italian B.M.T Meal Deal', 410, NULL, 'Subway', 8.5), (142, '12 in.Turkey Breast Meal Deal', 280, NULL, 'Subway', 8.5), (143, '12 in.Turkey Breast & Black Forest Ham Meal Deal', 280, NULL, 'Subway', 8.5), (144, '12 in.Oven Roasted Chicken Meal Deal', 320, NULL, 'Subway', 8.5), (145, '12 in.B.L.T Meal Deal', 380, NULL, 'Subway', 8.5), (146, '12 in.Buffalo Chicken Meal Deal', 420, NULL, 'Subway', 8.5), (147, '12 in.Sweet Onion Teriyaki Chicken Meal Deal', 370, NULL, 'Subway', 8.5), (148, '12 in.Steak & Cheese Meal Deal', 380, NULL, 'Subway', 10.25), (149, '6 in.Subway Club Meal Deal', 310, NULL, 'Subway', 8.5), (150, '6 in.Chicken & Bacon Ranch Melt Meal', 610, NULL, 'Subway', 8.5), (151, '6 in.Roast Beef Meal Deal', 320, NULL, 'Subway', 8.5), (152, '6 in.Veggie Patty Meal', 390, NULL, 'Subway', 8.5), (153, 'Cheeseburger & French Fries', 983, NULL, 'Chomp It', 6.99), (154, 'Chicken Tenders & French Fries', 1135, NULL, 'Chomp It', 6.19), (155, 'BLT & French Fries', 874, NULL, 'Chomp It', 5.99), (156, 'Salad Garden Salad', 452, NULL, 'Chomp It', 3.49), (157, 'Chicken Caesar Salad', 744, NULL, 'Chomp It', 6.99), (158, 'Spicy Chicken Sandwich & French Fries', 1232, NULL, 'Chomp It', 6.99), (159, 'Grilled Chicken Sandwich & French Fries', 1051, NULL, 'Chomp It', 6.99), (160, 'Turkey Club & Home-Made Potato Chips', 1205, NULL, 'Chomp It', 6.79), (161, 'Cheeseburger', 357, NULL, 'Chomp It', 5.49), (162, 'Black Bean Burger', 366, NULL, 'Chomp It', 6.99), (163, 'Chicken Tenders', 509, NULL, 'Chomp It', 4.29), (164, 'Turkey Club', 579, NULL, 'Chomp It', 5.49), (165, 'Grilled Chicken', 425, NULL, 'Chomp It', 4.85), (166, 'Spicy Chicken', 425, NULL, 'Chomp It', 4.25), (167, 'Three Cheese Grilled Cheese Sandwich', 302, NULL, 'Chomp It', 2.99); -- -------------------------------------------------------- -- -- Table structure for table `pages` -- CREATE TABLE `pages` ( `id` int(200) NOT NULL, `title` varchar(300) NOT NULL, `label` varchar(300) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pages` -- INSERT INTO `pages` (`id`, `title`, `label`) VALUES (1, 'Home', 'Home'), (2, 'Body Mass Index', 'Body Mass Index'), (3, 'Basal Metabolic Rate', 'Basal Metabolic Rate'), (4, 'Total Calories Needed', 'Total Calories Needed'), (5, 'Total Calories Burned', 'Total Calories Burned'), (6, 'Exercising', 'Excersising'), (8, 'Target Heart Rate', 'Target Heart Rate'); -- -------------------------------------------------------- -- -- Table structure for table `restuarant` -- CREATE TABLE `restuarant` ( `id` int(255) NOT NULL, `name` varchar(250) NOT NULL, `location` varchar(250) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `restuarant` -- INSERT INTO `restuarant` (`id`, `name`, `location`) VALUES (1, 'Chick-fil-A', 'Broward'), (2, 'Chick-fil-A', 'HUB'), (3, 'Chick-fil-A', 'Sun Terrace'), (4, 'Einstein Bros Bagels', 'HUB'), (5, 'Einstein Bros Bagels', 'Vet Med'), (6, 'Freshens', 'Little Hall'), (7, 'Freshens', 'Reitz'), (8, 'Freshens', 'SW Rec'), (9, 'Jamba Juice', 'Turlington'), (10, 'Risting Roll', 'Heavener Hall'), (11, 'Starbucks', 'HUB'), (12, 'Starbucks', 'Library West'), (13, 'Starbucks', 'Marston'), (14, 'Starbucks', 'Sun Terrace'), (15, 'Subwary', 'Reitz'), (16, 'Subway', 'Turlington'), (17, 'Chomp It', 'Graham'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(255) NOT NULL, `email` varchar(200) NOT NULL, `password` varchar(300) NOT NULL, `firstname` longtext NOT NULL, `lastname` longtext NOT NULL, `gender` varchar(8) NOT NULL, `age` int(2) NOT NULL, `height` float NOT NULL, `weight` int(3) NOT NULL, `activity` longtext NOT NULL, `allergy` text, `dietary_preference` text NOT NULL, `setgoal` varchar(500) NOT NULL, `dd` int(2) NOT NULL, `mm` int(2) NOT NULL, `yyyy` int(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `email`, `password`, `firstname`, `lastname`, `gender`, `age`, `height`, `weight`, `activity`, `allergy`, `dietary_preference`, `setgoal`, `dd`, `mm`, `yyyy`) VALUES (1, 'john.doe@email.com', 'password', 'John', 'Doe', 'Male', 16, 185.42, 70, 'moderate', NULL, '', '', 20, 11, 2000), (2, 'aroushi.sharma', 'rebelt3i', 'Aroushi', 'Sharma', 'Female', 17, 156, 63, 'little', NULL, '', '', 22, 0, 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `pages` -- ALTER TABLE `pages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `pages` -- ALTER TABLE `pages` MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; /*!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
793263ff42766e90795fe0080c829e6e5d25f9dc
SQL
skilbjo/lambdas
/s3-logger/dev-resources/query1.sql
UTF-8
2,139
3.46875
3
[ "MIT" ]
permissive
with access_logs as ( select cast(date_parse(s3.datetime,'%d/%b/%Y:%H:%i:%S +%f') as date) date, s3.bucket, s3.requestor_id, s3.http_status, s3.error_code, s3.user_agent, s3.key, s3.request_uri_key, (case when s3.operation in ('REST.GET.OBJECT', 'REST.GET.OBJECT', 'REST.GET.BUCKET') then 'read' when s3.operation in ('REST.HEAD.BUCKET', 'REST.HEAD.OBJECT') then 'head' when s3.operation in ('REST.DELETE.OBJECT', 'REST.POST.MULTI_OBJECT_DELETE') then 'delete' when s3.operation in ('REST.GET.ACL', 'REST.GET.BUCKETPOLICY', 'REST.GET.ENCRYPTION', 'REST.GET.ANALYTICS') then 'admin' when s3.operation in ('REST.GET.METRICS') then 'metrics' when s3.operation in ('REST.GET.ACCELERATE', 'REST.GET.BUCKETVERSIONS', 'REST.GET.CORS', 'REST.GET.INVENTORY', 'REST.GET.LIFECYCLE', 'REST.GET.LOCATION', 'REST.GET.LOGGING_STATUS', 'REST.GET.NOTIFICATION', 'REST.GET.REPLICATION', 'REST.GET.REQUEST_PAYMENT', 'REST.GET.TAGGING', 'REST.GET.VERSIONING', 'REST.GET.WEBSITE') then 'unknown' when s3.operation in ('REST.COPY.OBJECT', 'REST.PUT.OBJECT', 'REST.POST.UPLOAD') then 'write' else s3.operation end) as request_type from logs.s3 where s3.s3uploaddate between date '2018-08-20' and date '2018-08-20' and length(s3.datetime) > 1 ) select date, request_type, count(*) requests, bucket, requestor_id, key, request_uri_key, http_status, error_code, user_agent from access_logs group by 1, 2, 4, 5, 6, 7, 8, 9, 10 order by 3 desc
true
df450f5347a89004af545de799b720ebc1733ffe
SQL
guillez/ramas
/sql/ddl/20_Tablas/mgi_responsable_academica.sql
ISO-8859-2
1,121
3
3
[]
no_license
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- SIU-Kolla 4 - Mdulo de Gestin de Encuestas -- Versin 4.3 -- Tabla: mgi_responsable_academica -- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- DROP TABLE IF EXISTS mgi_responsable_academica; CREATE TABLE mgi_responsable_academica ( responsable_academica INTEGER NOT NULL DEFAULT nextval('mgi_responsable_academica_seq'::text) , nombre Varchar(200) NOT NULL, codigo Varchar NOT NULL, tipo_responsable_academica Integer NOT NULL, institucion Integer NOT NULL, ra_araucano Integer, localidad Integer, calle Varchar(100), numero Varchar(10), codigo_postal Varchar(15), telefono Varchar(50), fax Varchar(50), email Varchar(100), unidad_gestion Varchar ); -- ALTER TABLE mgi_responsable_academica DROP CONSTRAINT pk_mgi_responsable_academica; ALTER TABLE mgi_responsable_academica ADD CONSTRAINT pk_mgi_responsable_academica PRIMARY KEY (responsable_academica); -- ++++++++++++++++++++++++++ Fin tabla mgi_responsable_academica +++++++++++++++++++++++++++++
true
666e84339ad1c3f53f70fd2ae12c0d494942f9af
SQL
yasinfaruk/BITM_Atomic_Project
/BITM.sql
UTF-8
7,048
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1build0.15.04.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 12, 2016 at 11:35 AM -- Server version: 5.6.27-0ubuntu0.15.04.1 -- PHP Version: 5.6.4-4ubuntu6.4 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: `BITM` -- -- -------------------------------------------------------- -- -- Table structure for table `atomicProject` -- CREATE TABLE IF NOT EXISTS `atomicProject` ( `id` int(11) NOT NULL, `title` varchar(20) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=latin1; -- -- Dumping data for table `atomicProject` -- INSERT INTO `atomicProject` (`id`, `title`) VALUES (67, 'Gullibar Twist - '), (68, 'Harry Potter for JK '), (73, 'Harry '), (74, 'Loving Word'), (75, 'Harbinger'), (76, 'God is small Thing'), (77, 'Million Dollar Secre'), (78, 'Titanic'), (79, 'A Golden Age'), (80, 'Inside of Happiness'); -- -------------------------------------------------------- -- -- Table structure for table `checkbox` -- CREATE TABLE IF NOT EXISTS `checkbox` ( `id` int(11) NOT NULL, `hobby` varchar(30) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; -- -- Dumping data for table `checkbox` -- INSERT INTO `checkbox` (`id`, `hobby`) VALUES (1, 'Coding,Traveling,Cricket,Music'), (2, 'Traveling,Watching Movie'), (5, 'Traveling'), (6, 'Coding , Traveling , Cricket'); -- -------------------------------------------------------- -- -- Table structure for table `Date` -- CREATE TABLE IF NOT EXISTS `Date` ( `id` int(11) NOT NULL, `birthday` date NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `Date` -- INSERT INTO `Date` (`id`, `birthday`) VALUES (1, '2015-01-02'), (2, '2015-01-02'), (3, '2015-01-02'), (4, '2015-01-02'), (5, '2019-02-02'); -- -------------------------------------------------------- -- -- Table structure for table `email` -- CREATE TABLE IF NOT EXISTS `email` ( `id` int(11) NOT NULL, `email` varchar(30) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1; -- -- Dumping data for table `email` -- INSERT INTO `email` (`id`, `email`) VALUES (1, 'rahim@mail.com'), (2, 'mail@mail.com'), (3, 'faruk@mail.com'), (4, 'faruk@mail.com'), (5, 'yasin.faruk88@gmail.com'), (7, 'yasinfaruk@mail.com'), (9, 'sujan@mail.com'); -- -------------------------------------------------------- -- -- Table structure for table `file` -- CREATE TABLE IF NOT EXISTS `file` ( `id` int(11) NOT NULL, `image` varchar(30) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1; -- -- Dumping data for table `file` -- INSERT INTO `file` (`id`, `image`) VALUES (5, 'vasen.jpg'), (6, 'download (7).jpg'), (7, 'download (5).jpg'), (8, 'realistiska-tavlan.jpg'), (9, 'yellow-taxi_vvvjao.png'), (10, 'yellow-taxi_vvvjao.png'), (11, 'free-breakers.jpg'), (12, 'download (32).jpg'), (13, 'download (2).jpg'), (14, 'download (1).jpg'), (15, 'download.jpg'), (16, 'diiamant.jpg'), (18, 'chrome1.jpg'), (20, 'african-sunrise-1359276.jpg'), (24, 'dreamwalker.jpg'), (25, 'jpg (2).jpg'), (26, 'yf.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `input` -- CREATE TABLE IF NOT EXISTS `input` ( `id` int(11) NOT NULL, `location` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `radio` -- CREATE TABLE IF NOT EXISTS `radio` ( `id` int(11) NOT NULL, `gender` varchar(10) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1; -- -- Dumping data for table `radio` -- INSERT INTO `radio` (`id`, `gender`) VALUES (1, 'female'), (2, 'female'), (3, 'female'), (4, 'male'), (5, 'female'), (6, 'female'), (7, 'female'), (8, 'female'), (10, 'male'), (11, 'female'); -- -------------------------------------------------------- -- -- Table structure for table `select_city` -- CREATE TABLE IF NOT EXISTS `select_city` ( `id` int(11) NOT NULL, `city` varchar(20) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; -- -- Dumping data for table `select_city` -- INSERT INTO `select_city` (`id`, `city`) VALUES (1, ''), (2, 'dhaka'), (3, 'dhaka'), (6, 'dhaka'), (7, 'chitagong'); -- -------------------------------------------------------- -- -- Table structure for table `textarea` -- CREATE TABLE IF NOT EXISTS `textarea` ( `id` int(11) NOT NULL, `summary` varchar(200) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `textarea` -- INSERT INTO `textarea` (`id`, `summary`) VALUES (1, 'This'), (4, 'Only summary'), (5, 'Dummy text.'); -- -- Indexes for dumped tables -- -- -- Indexes for table `atomicProject` -- ALTER TABLE `atomicProject` ADD PRIMARY KEY (`id`); -- -- Indexes for table `checkbox` -- ALTER TABLE `checkbox` ADD PRIMARY KEY (`id`); -- -- Indexes for table `Date` -- ALTER TABLE `Date` ADD PRIMARY KEY (`id`); -- -- Indexes for table `email` -- ALTER TABLE `email` ADD PRIMARY KEY (`id`); -- -- Indexes for table `file` -- ALTER TABLE `file` ADD PRIMARY KEY (`id`); -- -- Indexes for table `input` -- ALTER TABLE `input` ADD PRIMARY KEY (`id`); -- -- Indexes for table `radio` -- ALTER TABLE `radio` ADD PRIMARY KEY (`id`); -- -- Indexes for table `select_city` -- ALTER TABLE `select_city` ADD PRIMARY KEY (`id`); -- -- Indexes for table `textarea` -- ALTER TABLE `textarea` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `atomicProject` -- ALTER TABLE `atomicProject` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=81; -- -- AUTO_INCREMENT for table `checkbox` -- ALTER TABLE `checkbox` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `Date` -- ALTER TABLE `Date` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `email` -- ALTER TABLE `email` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `file` -- ALTER TABLE `file` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=27; -- -- AUTO_INCREMENT for table `input` -- ALTER TABLE `input` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `radio` -- ALTER TABLE `radio` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `select_city` -- ALTER TABLE `select_city` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `textarea` -- ALTER TABLE `textarea` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; /*!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
1ed5097b27d74903b24d9b4b626bd1aa8f1bb0a2
SQL
MayowaShoyinka/Dufuna-CodeCamp20
/submissions/cynthiaNwakaeme/databases/init.sql
UTF-8
5,909
3.5625
4
[]
no_license
-- CREATED MY E-COMMERCE DATABASE CREATE DATABASE taries_empire; USE taries_empire; -- CREATED TABLES FOR E-COMMERCE DATABASE -- 1) ADMINISTRATORS -- A) Created the admins table CREATE TABLE admins ( admin_id INT NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, password VARCHAR(15) NOT NULL, phone_number VARCHAR(15) NOT NULL, PRIMARY KEY (admin_id) ); -- B) Inserted records into the admins table INSERT INTO admins (name, email, password, phone_number) VALUES ('Cynthia Nwakaeme', 'nwakaemecynthia@gmail', 'openheavens', '+234812838338'), ('Leke Ologede', 'lekyinologede@example.com', 'muffins3', '+449383848899'), ('Sheila Odor', 'sheilaodor1@sample.com', 'dubabbyboo', '+27894903002'), ('David Dave', 'deesquare@sample.com', 'deesquare4life', '+234894903002'), ('Darlyntina Nwakaeme', 'darlyntina@yahoo.com', 'march22nd', '+233900880888'); -- 2)CATEGORIES -- A)Created the categories table CREATE TABLE categories ( category_id INT NOT NULL AUTO_INCREMENT, category_name VARCHAR(50) NOT NULL, PRIMARY KEY (category_id) ); -- B) Inserted records into the categories table INSERT INTO categories (category_name) VALUES ('skincare_products'), ('hair_extentions'), ('accessories'), ('clothings'), ('footwears'); -- 3) PRODUCTS -- A) Created the products table CREATE TABLE products ( product_id INT NOT NULL AUTO_INCREMENT, category_id INT NOT NULL, admin_id INT NOT NULL, name VARCHAR(50) NOT NULL, description VARCHAR(250) NOT NULL, image BLOB, unit_price DECIMAL(8,2) NOT NULL, stock_level INT NOT NULL, status ENUM('in stock', 'out of stock', 'low stock'), PRIMARY KEY (product_id), FOREIGN KEY (category_id) REFERENCES categories (category_id), FOREIGN KEY (admin_id) REFERENCES admins (admin_id) ); -- Inserted records into the products table INSERT INTO products (category_id, admin_id,name, description, image, unit_price, stock_level, status) VALUES (1,2,'J-Royalty organic black soap', 'J-royalty Organic African black soap is formulated with loads of organic ingredients, herbs and refined essential oil', LOAD_FILE('E:/Images/soap.jpg'),250.00, 3000, 'out of stock'), (3,4,'32 inches Bone Straight Hair', 'Berry Human hair extension are quality hair from the best hair brand in Nigeria',LOAD_FILE('E:/Images/humanHair.jpg'),150000.00, 20, 'in stock'), (1,3,'Wrap Gown with belt', 'All season, We have got you covered with fantastic clothings raning from Corporate/Native/Casual wears', LOAD_FILE('E:/Images/zeeClothings.jpg'),55000.00, 50, 'low stock'), (2,1,'Tyna block Heels', 'Tynas\' shoes helps you stay confident and classy', LOAD_FILE('E:/Images/tynaShoes.jpg'),15000.00,20,'out of stock'); -- 4)CUSTOMERS -- Created the customers table CREATE TABLE customers ( customer_id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, email VARCHAR(50) NOT NULL, password VARCHAR(15) NOT NULL, PRIMARY KEY (customer_id) ); -- Inserted records into the customers table INSERT INTO customers (first_name, last_name, email, password) VALUES ('Jennifer', 'Koko', 'jennykoko@gmail.com', 'redeemed'), ('Kokolyna', 'Bushfield', 'kokobushfield@example.com', 'christcentered'), ('Anderson', 'Phils', 'philandy@gmail.com', 'ionic2basic'), ('Sharon', 'Stone', 'kokobushfield@example.com', 'devyact'), ('Kyla', 'Fielder', 'kaylafill@example.com', 'coolgirl2talk2'); -- 5) CUSTOMERS' CONTACTS -- Created the customers' contacts table CREATE TABLE customer_contacts ( contact_id INT NOT NULL AUTO_INCREMENT, customer_id INT NULL, street VARCHAR(150) NOT NULL, city VARCHAR(30) NOT NULL, state VARCHAR(30) NOT NULL, zip_code MEDIUMINT, country VARCHAR(20) NOT NULL, phone VARCHAR(15) NOT NULL, PRIMARY KEY (contact_id), FOREIGN KEY (customer_id) REFERENCES customers (customer_id) ); -- Inserted records into the customer addresses table INSERT INTO customer_contacts (customer_id, street, city, state, zip_code, country, phone) VALUES (1, '4 Clinton Harrison Street', 'Wuse II', 'Abuja', 23444 , 'Nigeria', '090808198'), (2, 'Plot 21 Reddington Street', 'Lekki Phase 1', 'Lagos', 65655 , 'Nigeria', '45153251365'), (3, '34 Cardogan Estate', 'Gwaripa', 'Abuja', 32432 , 'Nigeria', '09542424524'), (4, '92 Balarabe Musa Cresent', 'Eti Osa II', 'Abuja', 757557 , 'Nigeria', '0812243433'), (5, 'Block 34 Lake View II Estate', 'Festac', 'Abuja', 465242 , 'Nigeria', '070235546226'); -- 6) ORDERS -- A) Created the orders table CREATE TABLE orders ( order_id INT NOT NULL AUTO_INCREMENT, clients INT NOT NULL, order_amount DECIMAL(20,2) NOT NULL, order_created_at DATETIME, PRIMARY KEY (order_id), FOREIGN KEY (clients) REFERENCES customers (customer_id) ); -- B) Inserted values into the orders table INSERT INTO orders (clients, order_amount, order_created_at) VALUES (2, 1250.00, now()), (3, 150000.00, now()), (1, 550000.00, now()), (1, 30000.00, now()), (4, 150000.00, now()); -- 7) ORDER ITEMS -- Created the order items table CREATE TABLE order_items ( item_id INT NOT NULL AUTO_INCREMENT, order_id INT NOT NULL, product_id INT NOT NULL, quantity INT NOT NULL, unit_price DECIMAL(8,2) NOT NULL, total_amount DECIMAL(20,2) NOT NULL, PRIMARY KEY (item_id), FOREIGN KEY (order_id) REFERENCES orders (order_id), FOREIGN KEY (product_id) REFERENCES products (product_id) ); -- Inserted records into the order items table INSERT INTO order_items (order_id, product_id, quantity, unit_price, total_amount) VALUES (1, 1, 3, 250.00, 1250.00), (2, 2, 1, 150000.00, 150000.00), (3, 3, 10, 55000.00, 550000.00), (3, 3, 2, 15000.00, 30000.00), (3, 3, 2, 150000.00, 300000.00);
true
4f65db736c8ccf974bd8fcdbe8f3844bca5be155
SQL
amataku/yayoifes_analyzer
/database/design/table.sql
UTF-8
213
2.65625
3
[]
no_license
CREATE TABLE customer( id MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY, -- ID visit_date DATETIME NOT NULL, -- ๆฅใŸๆ™‚ๅˆป sex ENUM('female', 'male', 'neither'), -- ๆ€งๅˆฅ age INT NOT NULL -- ๅนด้ฝข );
true
25bc850e68e53a9a8efd48ec0807e6b957540bc4
SQL
LuisPerez94/Punto_Venta
/src/export.sql
ISO-8859-10
83,056
2.8125
3
[]
no_license
-------------------------------------------------------- -- Archivo creado - viernes-junio-12-2015 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table ALMACEN -------------------------------------------------------- CREATE TABLE "LUIS"."ALMACEN" ( "IDALMACEN" CHAR(4 BYTE), "DESCRIPCIONALMACEN" VARCHAR2(80 BYTE) ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Table CABFACTURA -------------------------------------------------------- CREATE TABLE "LUIS"."CABFACTURA" ( "IDCABFACTURA" CHAR(4 BYTE), "IDCLIENTE" CHAR(4 BYTE), "IDVENDEDOR" CHAR(4 BYTE) ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Table CLIENTE -------------------------------------------------------- CREATE TABLE "LUIS"."CLIENTE" ( "IDCLIENTE" CHAR(4 BYTE), "NOMBRECLIENTE" VARCHAR2(45 BYTE), "APPATERNO" VARCHAR2(15 BYTE), "APMATERNO" VARCHAR2(15 BYTE), "DIRECCIONCLIENTE" VARCHAR2(80 BYTE), "CORREOCLIENTE" VARCHAR2(40 BYTE), "TELEFONOCLIENTE" NUMBER(10,0) DEFAULT 0, "SEXOCLIENTE" CHAR(1 BYTE) ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Table DETALLEFACTURA -------------------------------------------------------- CREATE TABLE "LUIS"."DETALLEFACTURA" ( "IDDETALLEFACT" CHAR(4 BYTE), "IDCABFACTURA" CHAR(4 BYTE), "IDPRODUCTO" CHAR(4 BYTE), "CANTIDADPRODUCTO" NUMBER DEFAULT 0, "FECHAVENTA" DATE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; -------------------------------------------------------- -- DDL for Table GUARDA -------------------------------------------------------- CREATE TABLE "LUIS"."GUARDA" ( "IDGUARDA" CHAR(4 BYTE), "IDPRODUCTO" CHAR(4 BYTE), "IDALMACEN" CHAR(4 BYTE) ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Table LOGS -------------------------------------------------------- CREATE TABLE "LUIS"."LOGS" ( "USUARIO" VARCHAR2(40 BYTE), "TABLA_MODIFICADA" VARCHAR2(40 BYTE), "FECHA_MOD" DATE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Table PRODUCTO -------------------------------------------------------- CREATE TABLE "LUIS"."PRODUCTO" ( "IDPRODUCTO" CHAR(4 BYTE), "NOMPRODUCTO" VARCHAR2(15 BYTE), "PRECIOPRODUCTO" FLOAT(126), "DESCRIPCIONPRODUCTO" VARCHAR2(80 BYTE), "IMAGEN" VARCHAR2(80 BYTE), "EXISTENCIA" NUMBER ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Table VENDEDOR -------------------------------------------------------- CREATE TABLE "LUIS"."VENDEDOR" ( "IDVENDEDOR" CHAR(4 BYTE), "NOMVENDEDOR" VARCHAR2(20 BYTE), "APPATERNOVENDEDOR" VARCHAR2(15 BYTE), "APMATERNOVENDEDOR" VARCHAR2(15 BYTE), "FECHANACVENDEDOR" DATE, "CORREOVENDEDOR" VARCHAR2(40 BYTE), "DIRECCIONVENDEDOR" VARCHAR2(80 BYTE), "SEXOVENDEDOR" VARCHAR2(1 BYTE), "FECHAINGRESOVENDEDOR" DATE, "SUELDOVENDEDOR" NUMBER ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for View CLIENTES_MAS_COMPRAS -------------------------------------------------------- CREATE OR REPLACE FORCE VIEW "LUIS"."CLIENTES_MAS_COMPRAS" ("IDCLIENTE", "NUMERO_COMPRAS", "APPATERNO", "APMATERNO", "NOMBRECLIENTE") AS select distinct cabfactura.IDCLIENTE, count(cabfactura.idcliente) as Numero_Compras, cliente.APPATERNO, cliente.APMATERNO, cliente.NOMBRECLIENTE from cliente, cabfactura where cabfactura.idcliente = cliente.idcliente group by cabfactura.IDCLIENTE, cliente.idcliente, cliente.APPATERNO, cliente.APMATERNO, cliente.NOMBRECLIENTE order by cabfactura.IDCLIENTE; -------------------------------------------------------- -- DDL for View PRODUCTOMASVENDIDOS -------------------------------------------------------- CREATE OR REPLACE FORCE VIEW "LUIS"."PRODUCTOMASVENDIDOS" ("IDPRODUCTO", "NOMPRODUCTO", "VENDIDOS") AS SELECT Producto.idProducto, Producto.nomProducto, SUM(Detallefactura.cantidadProducto) vendidos FROM Cabfactura, Detallefactura, Producto WHERE Cabfactura.idCabfactura = Detallefactura.idCabfactura AND Detallefactura.idProducto = Producto.idProducto GROUP BY Producto.idProducto,Producto.nomProducto ORDER BY vendidos DESC; -------------------------------------------------------- -- DDL for View PRODUCTOSPORFECHA -------------------------------------------------------- CREATE OR REPLACE FORCE VIEW "LUIS"."PRODUCTOSPORFECHA" ("IDPRODUCTO", "NOMPRODUCTO", "PRECIOPRODUCTO", "FECHAVENTA", "VENDIDOS", "VENTAPORPRODUCTO") AS SELECT Producto.idProducto, Producto.nomProducto,Producto.precioproducto, Detallefactura.FECHAVENTA, SUM(Detallefactura.cantidadProducto) vendidos, SUM(Producto.precioproducto * Detallefactura.cantidadProducto) ventaPorProducto FROM Cabfactura, Detallefactura, Producto WHERE Cabfactura.idCabfactura = Detallefactura.idCabfactura AND Detallefactura.idProducto = Producto.idProducto AND Detallefactura.fechaVenta BETWEEN '03-03-2013' AND '03-08-2015' GROUP BY Producto.IDPRODUCTO,Producto.NOMPRODUCTO, Producto.PRECIOPRODUCTO, Detallefactura.FECHAVENTA; -------------------------------------------------------- -- DDL for View VENDEDORES_MAS_VENTAS -------------------------------------------------------- CREATE OR REPLACE FORCE VIEW "LUIS"."VENDEDORES_MAS_VENTAS" ("IDVENDEDOR", "NUMERO_VENTAS", "APPATERNOVENDEDOR", "APMATERNOVENDEDOR", "NOMVENDEDOR") AS select cabfactura.idvendedor, count(cabfactura.IDVENDEDOR) as Numero_ventas, vendedor.APPATERNOVENDEDOR, vendedor.APMATERNOVENDEDOR, VENDEDOR.NOMVENDEDOR from vendedor, cabfactura where cabfactura.idvendedor = vendedor.idvendedor group by cabfactura.idvendedor, vendedor.APPATERNOVENDEDOR, vendedor.APMATERNOVENDEDOR, VENDEDOR.NOMVENDEDOR order by cabfactura.idvendedor; REM INSERTING into LUIS.ALMACEN SET DEFINE OFF; Insert into LUIS.ALMACEN (IDALMACEN,DESCRIPCIONALMACEN) values ('1 ','Almacen 1'); REM INSERTING into LUIS.CABFACTURA SET DEFINE OFF; Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('10 ','4 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('1 ','1 ','1 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('2 ','2 ','2 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('3 ','3 ','3 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('4 ','1 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('5 ','2 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('6 ','3 ','3 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('7 ','3 ','1 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('8 ','3 ','1 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('9 ','2 ','1 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('11 ','7 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('13 ','9 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('12 ','2 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('14 ','8 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('15 ','3 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('16 ','3 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('17 ','3 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('18 ','3 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('19 ','3 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('20 ','8 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('21 ','8 ','4 '); Insert into LUIS.CABFACTURA (IDCABFACTURA,IDCLIENTE,IDVENDEDOR) values ('22 ','2 ','4 '); REM INSERTING into LUIS.CLIENTE SET DEFINE OFF; Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('2 ','Rafael ','Marquez','Solano','Victoria 12','rafitamar@gmail.com',4192382,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('3 ','Francisco','Rodriguez','Madero','Juarez 20','pacorodriguez@yahoo.com',2947726,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('4 ','Hector','Moreno','Blanco','Heroes de Puebla 201','hectormorblan@gmail.com',9820123,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('1 ','Jesus','Corona','Modelo','Carlos Cruz 10','chuycorona@hotmail.com',1234656,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('5 ','Paul','Aguilar','Cruz','Hidalgo 291','paulaguilar@hotmail.com',3783461,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('6 ','Miguel','Layun','Fernandez','Mancilla 284','todoesculpadelayun@gmail.com',7894622,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('7 ','Jose','Vazquez','Vazquez','qwerty 78','gallovazquez@gmail.com',9187633,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('8 ','Hector','Herrera','Guzman','Arteaga 28','hectorherrera@hotmail.com',3126745,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('9 ','Andres','Guardado','Amione','Independencia 23','andresguarda@hotmail.com',2375423,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('10 ','Giovanni','dos Santos','Aveiro','5 de mayo 56','belindagolosa69@yahoo.com',4736241,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('11 ','Javier','Hernandez','Balcazar','Espaa 89','chicharito14@hotmail.com',2734685,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('12 ','Gabriela','Rodriguez ','Medina','Procuraduria 82','gabyrodriguez@gmail.com',5637426,'F'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('17 ','jr','m','s','n/a','js@gmai',123132,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('18 ','Rey','Mw','To','rmt','rmt@gamil.com',1234567890,'M'); Insert into LUIS.CLIENTE (IDCLIENTE,NOMBRECLIENTE,APPATERNO,APMATERNO,DIRECCIONCLIENTE,CORREOCLIENTE,TELEFONOCLIENTE,SEXOCLIENTE) values ('19 ','Luis','Bernardo','Ballesteros','Calle Debian','debianLoamo@gmail.com',12345678,'M'); REM INSERTING into LUIS.DETALLEFACTURA SET DEFINE OFF; Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('21 ','13 ','1 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('22 ','14 ','6 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('18 ','10 ','3 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('19 ','11 ','2 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('23 ','15 ','5 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('25 ','17 ','1 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('26 ','17 ','4 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('27 ','18 ','4 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('28 ','19 ','4 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('29 ','20 ','4 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('30 ','21 ','2 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('24 ','16 ','5 ',1,to_date('10/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('31 ','22 ','9 ',1,to_date('11/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('32 ','22 ','1 ',1,to_date('11/06/15','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('1 ','1 ','1 ',2,to_date('01/01/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('2 ','1 ','2 ',1,to_date('01/01/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('3 ','1 ','3 ',1,to_date('01/01/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('4 ','2 ','6 ',2,to_date('02/02/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('5 ','2 ','7 ',1,to_date('02/02/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('6 ','3 ','4 ',2,to_date('03/03/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('7 ','3 ','8 ',2,to_date('03/03/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('8 ','3 ','2 ',1,to_date('03/03/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('9 ','4 ','1 ',2,to_date('05/05/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('10 ','5 ','7 ',1,to_date('06/06/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('11 ','6 ','3 ',2,to_date('08/08/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('12 ','6 ','2 ',1,to_date('08/08/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('13 ','6 ','8 ',2,to_date('08/08/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('14 ','7 ','5 ',2,to_date('10/10/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('15 ','7 ','6 ',2,to_date('10/10/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('16 ','8 ','9 ',1,to_date('12/12/13','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('17 ','9 ','9 ',1,to_date('01/01/14','DD/MM/RR')); Insert into LUIS.DETALLEFACTURA (IDDETALLEFACT,IDCABFACTURA,IDPRODUCTO,CANTIDADPRODUCTO,FECHAVENTA) values ('20 ','12 ','9 ',2,to_date('10/06/15','DD/MM/RR')); REM INSERTING into LUIS.GUARDA SET DEFINE OFF; Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('1 ','1 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('2 ','2 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('3 ','3 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('4 ','4 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('5 ','5 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('6 ','6 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('7 ','7 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('8 ','8 ','1 '); Insert into LUIS.GUARDA (IDGUARDA,IDPRODUCTO,IDALMACEN) values ('9 ','9 ','1 '); REM INSERTING into LUIS.LOGS SET DEFINE OFF; Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','vendedor',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','vendedor',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','vendedor',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','vendedor',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','vendedor',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','vendedor',to_date('08/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','almacen',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','guarda',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('09/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('10/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cabfactura',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','detallefactura',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','cliente',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','vendedor',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); Insert into LUIS.LOGS (USUARIO,TABLA_MODIFICADA,FECHA_MOD) values ('LUIS','producto',to_date('11/06/15','DD/MM/RR')); REM INSERTING into LUIS.PRODUCTO SET DEFINE OFF; Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('1 ','Playera ',400,'100 % Algodon , Colores: Azul,Blanca,Roja,Amarilla. Tallas G.M.CH.ECH','src/img/productos/camisetadeportiva1.jpg',0); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('2 ','Tenis ',600,'Tallas: 21-28 ','src/img/productos/tenis.jpg',0); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('3 ','Balon Basquet',250,'Como el que usan en la NBA','src/img/productos/pelotabasquet.jpg',1); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('4 ','Raqueta',150,'Mango metalico','src/img/productos/raqueta.jpg',0); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('5 ','Rodilleras',100,'Colores: Blanca , Negro','src/img/productos/rodilleras.jpg',1); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('6 ','Coderas',100,'Colores: Blaca, Negro','src/img/productos/coderas.jpg',1); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('7 ','Casco',350,'Colores, blanco, negro','src/img/productos/cascobici.jpg',11); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('8 ','BandasToallas',200,'90 % algodon 10% poliester Marca: Nike Colores: Azul Blanco Rosa Rojo','src/img/productos/bandatoalla.jpg',1); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('9 ','SmartBand',2000,'La SmartBand mas smart del mercado','src/img/productos/smartband.jpg',110); Insert into LUIS.PRODUCTO (IDPRODUCTO,NOMPRODUCTO,PRECIOPRODUCTO,DESCRIPCIONPRODUCTO,IMAGEN,EXISTENCIA) values ('10 ','Nave Espacial',39999,'Increible nave espacial','src/img/productos/nave.jpg',12); REM INSERTING into LUIS.VENDEDOR SET DEFINE OFF; Insert into LUIS.VENDEDOR (IDVENDEDOR,NOMVENDEDOR,APPATERNOVENDEDOR,APMATERNOVENDEDOR,FECHANACVENDEDOR,CORREOVENDEDOR,DIRECCIONVENDEDOR,SEXOVENDEDOR,FECHAINGRESOVENDEDOR,SUELDOVENDEDOR) values ('1 ','Fernando','Bobadilla','Contreras',to_date('05/10/93','DD/MM/RR'),'mbobadilla@outlook.com','Carlos 123','M',to_date('26/02/13','DD/MM/RR'),30000); Insert into LUIS.VENDEDOR (IDVENDEDOR,NOMVENDEDOR,APPATERNOVENDEDOR,APMATERNOVENDEDOR,FECHANACVENDEDOR,CORREOVENDEDOR,DIRECCIONVENDEDOR,SEXOVENDEDOR,FECHAINGRESOVENDEDOR,SUELDOVENDEDOR) values ('2 ','Jose Ramon','Marquez','Solano',to_date('06/01/92','DD/MM/RR'),'jrms@gmail.com','cordoba 23','M',to_date('20/06/13','DD/MM/RR'),15000); Insert into LUIS.VENDEDOR (IDVENDEDOR,NOMVENDEDOR,APPATERNOVENDEDOR,APMATERNOVENDEDOR,FECHANACVENDEDOR,CORREOVENDEDOR,DIRECCIONVENDEDOR,SEXOVENDEDOR,FECHAINGRESOVENDEDOR,SUELDOVENDEDOR) values ('3 ','Ruben','Perez','Rodriguez',to_date('22/06/94','DD/MM/RR'),'crumac22@gmail.com','aeropuerts 6','M',to_date('14/02/14','DD/MM/RR'),5000); Insert into LUIS.VENDEDOR (IDVENDEDOR,NOMVENDEDOR,APPATERNOVENDEDOR,APMATERNOVENDEDOR,FECHANACVENDEDOR,CORREOVENDEDOR,DIRECCIONVENDEDOR,SEXOVENDEDOR,FECHAINGRESOVENDEDOR,SUELDOVENDEDOR) values ('4 ','Luis','Perez','Muoz',to_date('26/07/94','DD/MM/RR'),'ingluisperez.m@outlook,com','Rio Esva 131-4 Lomas de Rio Medio 4','M',to_date('04/04/14','DD/MM/RR'),9000); Insert into LUIS.VENDEDOR (IDVENDEDOR,NOMVENDEDOR,APPATERNOVENDEDOR,APMATERNOVENDEDOR,FECHANACVENDEDOR,CORREOVENDEDOR,DIRECCIONVENDEDOR,SEXOVENDEDOR,FECHAINGRESOVENDEDOR,SUELDOVENDEDOR) values ('5 ','Karen','Garcia','Robles',to_date('02/02/90','DD/MM/RR'),'grkaren@gmail.com','Calle de la perdicion #89 Col.Margarita','F',to_date('02/02/14','DD/MM/RR'),5555); Insert into LUIS.VENDEDOR (IDVENDEDOR,NOMVENDEDOR,APPATERNOVENDEDOR,APMATERNOVENDEDOR,FECHANACVENDEDOR,CORREOVENDEDOR,DIRECCIONVENDEDOR,SEXOVENDEDOR,FECHAINGRESOVENDEDOR,SUELDOVENDEDOR) values ('6 ','Luis','Vendedot','Vendedor',to_date('26/07/94','DD/MM/RR'),'dbf@hotmail.com','fbfubfuf','M',to_date('11/06/15','DD/MM/RR'),2000); -------------------------------------------------------- -- DDL for Index PK_GUARDA -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."PK_GUARDA" ON "LUIS"."GUARDA" ("IDGUARDA") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index PK_CABFACTURA -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."PK_CABFACTURA" ON "LUIS"."CABFACTURA" ("IDCABFACTURA") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index PK_VENDEDOR -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."PK_VENDEDOR" ON "LUIS"."VENDEDOR" ("IDVENDEDOR") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index U_CORREOVENDEDOR -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."U_CORREOVENDEDOR" ON "LUIS"."VENDEDOR" ("CORREOVENDEDOR") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index PK_PRODUCTO -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."PK_PRODUCTO" ON "LUIS"."PRODUCTO" ("IDPRODUCTO") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index PK_IDDETALLEFACT -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."PK_IDDETALLEFACT" ON "LUIS"."DETALLEFACTURA" ("IDDETALLEFACT") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; -------------------------------------------------------- -- DDL for Index PK_ALMACEN -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."PK_ALMACEN" ON "LUIS"."ALMACEN" ("IDALMACEN") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index U_CORREOCLIENTE -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."U_CORREOCLIENTE" ON "LUIS"."CLIENTE" ("CORREOCLIENTE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index PK_CLIENTE -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."PK_CLIENTE" ON "LUIS"."CLIENTE" ("IDCLIENTE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- DDL for Index U_TELEFONOCLIENTE -------------------------------------------------------- CREATE UNIQUE INDEX "LUIS"."U_TELEFONOCLIENTE" ON "LUIS"."CLIENTE" ("TELEFONOCLIENTE") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ; -------------------------------------------------------- -- Constraints for Table DETALLEFACTURA -------------------------------------------------------- ALTER TABLE "LUIS"."DETALLEFACTURA" ADD CONSTRAINT "PK_IDDETALLEFACT" PRIMARY KEY ("IDDETALLEFACT") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE; ALTER TABLE "LUIS"."DETALLEFACTURA" ADD CONSTRAINT "CK_CANTIDADPRODUCTO" CHECK (cantidadproducto >= 0) ENABLE; ALTER TABLE "LUIS"."DETALLEFACTURA" MODIFY ("IDDETALLEFACT" NOT NULL ENABLE); ALTER TABLE "LUIS"."DETALLEFACTURA" MODIFY ("IDCABFACTURA" NOT NULL ENABLE); ALTER TABLE "LUIS"."DETALLEFACTURA" MODIFY ("IDPRODUCTO" NOT NULL ENABLE); ALTER TABLE "LUIS"."DETALLEFACTURA" MODIFY ("CANTIDADPRODUCTO" NOT NULL ENABLE); ALTER TABLE "LUIS"."DETALLEFACTURA" MODIFY ("FECHAVENTA" NOT NULL ENABLE); -------------------------------------------------------- -- Constraints for Table GUARDA -------------------------------------------------------- ALTER TABLE "LUIS"."GUARDA" ADD CONSTRAINT "PK_GUARDA" PRIMARY KEY ("IDGUARDA") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."GUARDA" MODIFY ("IDALMACEN" NOT NULL ENABLE); ALTER TABLE "LUIS"."GUARDA" MODIFY ("IDPRODUCTO" NOT NULL ENABLE); ALTER TABLE "LUIS"."GUARDA" MODIFY ("IDGUARDA" NOT NULL ENABLE); -------------------------------------------------------- -- Constraints for Table CABFACTURA -------------------------------------------------------- ALTER TABLE "LUIS"."CABFACTURA" ADD CONSTRAINT "PK_CABFACTURA" PRIMARY KEY ("IDCABFACTURA") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."CABFACTURA" MODIFY ("IDVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."CABFACTURA" MODIFY ("IDCLIENTE" NOT NULL ENABLE); ALTER TABLE "LUIS"."CABFACTURA" MODIFY ("IDCABFACTURA" NOT NULL ENABLE); -------------------------------------------------------- -- Constraints for Table PRODUCTO -------------------------------------------------------- ALTER TABLE "LUIS"."PRODUCTO" ADD CONSTRAINT "PK_PRODUCTO" PRIMARY KEY ("IDPRODUCTO") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."PRODUCTO" MODIFY ("PRECIOPRODUCTO" NOT NULL ENABLE); ALTER TABLE "LUIS"."PRODUCTO" MODIFY ("NOMPRODUCTO" NOT NULL ENABLE); ALTER TABLE "LUIS"."PRODUCTO" MODIFY ("IDPRODUCTO" NOT NULL ENABLE); -------------------------------------------------------- -- Constraints for Table CLIENTE -------------------------------------------------------- ALTER TABLE "LUIS"."CLIENTE" ADD CONSTRAINT "U_TELEFONOCLIENTE" UNIQUE ("TELEFONOCLIENTE") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."CLIENTE" ADD CONSTRAINT "U_CORREOCLIENTE" UNIQUE ("CORREOCLIENTE") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."CLIENTE" ADD CONSTRAINT "CK_SEXO" CHECK (sexocliente = 'M' or sexocliente = 'F') ENABLE; ALTER TABLE "LUIS"."CLIENTE" ADD CONSTRAINT "PK_CLIENTE" PRIMARY KEY ("IDCLIENTE") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."CLIENTE" MODIFY ("SEXOCLIENTE" NOT NULL ENABLE); ALTER TABLE "LUIS"."CLIENTE" MODIFY ("DIRECCIONCLIENTE" NOT NULL ENABLE); ALTER TABLE "LUIS"."CLIENTE" MODIFY ("APMATERNO" NOT NULL ENABLE); ALTER TABLE "LUIS"."CLIENTE" MODIFY ("APPATERNO" NOT NULL ENABLE); ALTER TABLE "LUIS"."CLIENTE" MODIFY ("NOMBRECLIENTE" NOT NULL ENABLE); ALTER TABLE "LUIS"."CLIENTE" MODIFY ("IDCLIENTE" NOT NULL ENABLE); -------------------------------------------------------- -- Constraints for Table ALMACEN -------------------------------------------------------- ALTER TABLE "LUIS"."ALMACEN" ADD CONSTRAINT "PK_ALMACEN" PRIMARY KEY ("IDALMACEN") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."ALMACEN" MODIFY ("IDALMACEN" NOT NULL ENABLE); -------------------------------------------------------- -- Constraints for Table VENDEDOR -------------------------------------------------------- ALTER TABLE "LUIS"."VENDEDOR" ADD CONSTRAINT "U_CORREOVENDEDOR" UNIQUE ("CORREOVENDEDOR") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."VENDEDOR" ADD CONSTRAINT "CK_SEXOVENDEDOR" CHECK (sexovendedor = 'M' or sexovendedor = 'F') ENABLE; ALTER TABLE "LUIS"."VENDEDOR" ADD CONSTRAINT "PK_VENDEDOR" PRIMARY KEY ("IDVENDEDOR") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "SYSTEM" ENABLE; ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("SUELDOVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("FECHAINGRESOVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("SEXOVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("FECHANACVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("APMATERNOVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("APPATERNOVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("NOMVENDEDOR" NOT NULL ENABLE); ALTER TABLE "LUIS"."VENDEDOR" MODIFY ("IDVENDEDOR" NOT NULL ENABLE); -------------------------------------------------------- -- Ref Constraints for Table CABFACTURA -------------------------------------------------------- ALTER TABLE "LUIS"."CABFACTURA" ADD CONSTRAINT "FK_CABFACTURA_CLIENTE" FOREIGN KEY ("IDCLIENTE") REFERENCES "LUIS"."CLIENTE" ("IDCLIENTE") ENABLE; ALTER TABLE "LUIS"."CABFACTURA" ADD CONSTRAINT "FK_CABFACTURA_VENDEDOR" FOREIGN KEY ("IDVENDEDOR") REFERENCES "LUIS"."VENDEDOR" ("IDVENDEDOR") ENABLE; -------------------------------------------------------- -- Ref Constraints for Table DETALLEFACTURA -------------------------------------------------------- ALTER TABLE "LUIS"."DETALLEFACTURA" ADD CONSTRAINT "FK_DETALLEFACTURA_CABFACTURA" FOREIGN KEY ("IDCABFACTURA") REFERENCES "LUIS"."CABFACTURA" ("IDCABFACTURA") ENABLE; ALTER TABLE "LUIS"."DETALLEFACTURA" ADD CONSTRAINT "FK_DETALLEFACTURA_PRODUCTO" FOREIGN KEY ("IDPRODUCTO") REFERENCES "LUIS"."PRODUCTO" ("IDPRODUCTO") ENABLE; -------------------------------------------------------- -- Ref Constraints for Table GUARDA -------------------------------------------------------- ALTER TABLE "LUIS"."GUARDA" ADD CONSTRAINT "FK_GUARDA_ALMACEN" FOREIGN KEY ("IDALMACEN") REFERENCES "LUIS"."ALMACEN" ("IDALMACEN") ENABLE; ALTER TABLE "LUIS"."GUARDA" ADD CONSTRAINT "FK_GUARDA_PRODUCTO" FOREIGN KEY ("IDPRODUCTO") REFERENCES "LUIS"."PRODUCTO" ("IDPRODUCTO") ENABLE; -------------------------------------------------------- -- DDL for Trigger TRALMACEN -------------------------------------------------------- CREATE OR REPLACE TRIGGER "LUIS"."TRALMACEN" after insert or delete or update on almacen begin if inserting or deleting or updating then insert into logs (usuario, tabla_modificada, fecha_mod) values (user, 'almacen', SYSDATE); dbms_output.put_line( 'Se modifico almacen' ); end if; end ; / ALTER TRIGGER "LUIS"."TRALMACEN" ENABLE; -------------------------------------------------------- -- DDL for Trigger TRCABFACTURA -------------------------------------------------------- CREATE OR REPLACE TRIGGER "LUIS"."TRCABFACTURA" after insert or delete or update on cabfactura begin if inserting or deleting or updating then insert into logs (usuario, tabla_modificada, fecha_mod) values (user, 'cabfactura', SYSDATE); dbms_output.put_line( 'Se modifico cabfactura' ); end if; end ; / ALTER TRIGGER "LUIS"."TRCABFACTURA" ENABLE; -------------------------------------------------------- -- DDL for Trigger TRCLIENTE -------------------------------------------------------- CREATE OR REPLACE TRIGGER "LUIS"."TRCLIENTE" after insert or delete or update on cliente begin if inserting or deleting or updating then insert into logs (usuario, tabla_modificada, fecha_mod) values (user, 'cliente', SYSDATE); dbms_output.put_line( 'Se modifico cliente' ); end if; end ; / ALTER TRIGGER "LUIS"."TRCLIENTE" ENABLE; -------------------------------------------------------- -- DDL for Trigger TRDETALLEFACTURA -------------------------------------------------------- CREATE OR REPLACE TRIGGER "LUIS"."TRDETALLEFACTURA" after insert or delete or update on detallefactura begin if inserting or deleting or updating then insert into logs (usuario, tabla_modificada, fecha_mod) values (user, 'detallefactura', SYSDATE); dbms_output.put_line( 'Se modifico detallefactura' ); end if; end ; / ALTER TRIGGER "LUIS"."TRDETALLEFACTURA" ENABLE; -------------------------------------------------------- -- DDL for Trigger TRGUARDA -------------------------------------------------------- CREATE OR REPLACE TRIGGER "LUIS"."TRGUARDA" after insert or delete or update on guarda begin if inserting or deleting or updating then insert into logs (usuario, tabla_modificada, fecha_mod) values (user, 'guarda', SYSDATE); dbms_output.put_line( 'Se modifico guarda' ); end if; end ; / ALTER TRIGGER "LUIS"."TRGUARDA" ENABLE; -------------------------------------------------------- -- DDL for Trigger TRPRODUCTO -------------------------------------------------------- CREATE OR REPLACE TRIGGER "LUIS"."TRPRODUCTO" after insert or delete or update on producto begin if inserting or deleting or updating then insert into logs (usuario, tabla_modificada, fecha_mod) values (user, 'producto', SYSDATE); dbms_output.put_line( 'Se modifico producto' ); end if; end ; / ALTER TRIGGER "LUIS"."TRPRODUCTO" ENABLE; -------------------------------------------------------- -- DDL for Trigger TRVENDEDOR -------------------------------------------------------- CREATE OR REPLACE TRIGGER "LUIS"."TRVENDEDOR" after insert or delete or update on vendedor begin if inserting or deleting or updating then insert into logs (usuario, tabla_modificada, fecha_mod) values (user, 'vendedor', SYSDATE); dbms_output.put_line( 'Se modifico vendedor' ); end if; end ; / ALTER TRIGGER "LUIS"."TRVENDEDOR" ENABLE; -------------------------------------------------------- -- DDL for Procedure ALMACEN_INS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."ALMACEN_INS" (a CHAR, b varchar2) is BEGIN insert into almacen (idalmacen, descripcionalmacen) values (a, b); dbms_output.put_line ('Se inserto correctamente en almacen'); END; / -------------------------------------------------------- -- DDL for Procedure CABFACTURA_INS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."CABFACTURA_INS" (a char, b char, c char, d varchar2) is BEGIN insert into cabfactura (idcabfactura, idcliente, idvendedor) values (a, b, c); dbms_output.put_line ('Se inserto correctamente en cabfactura'); END; / -------------------------------------------------------- -- DDL for Procedure CLIENTE_INS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."CLIENTE_INS" (a char, b varchar2, c varchar2, d varchar2, e varchar2, f varchar2, g number, h char) is BEGIN insert into cliente (idcliente, nombrecliente, appaterno, apmaterno, direccioncliente, correocliente, telefonocliente, sexocliente) values (a, b, c, d, e, f, g, h); dbms_output.put_line ('Se inserto correctamente en cliente'); END; / -------------------------------------------------------- -- DDL for Procedure DETALLEFACTURA_INS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."DETALLEFACTURA_INS" (a char, b char, c char, d number) is e date := SYSDATE; BEGIN insert into detallefactura (iddetallefact, idcabfactura, idproducto, cantidadproducto, fechaventa) values (a, b, c, d, e); dbms_output.put_line ('Se inserto correctamente en detallefactura'); END; / -------------------------------------------------------- -- DDL for Procedure GUARDA_INS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."GUARDA_INS" (a char, b char, c char) is BEGIN insert into guarda (idguarda, idproducto, idalmacen) values (a, b, c); dbms_output.put_line ('Se inserto correctamente en guarda'); end; / -------------------------------------------------------- -- DDL for Procedure PCLIENTESCOMPRAS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PCLIENTESCOMPRAS" is cursor c_compras is select * from clientes_mas_compras; dat clientes_mas_compras%rowtype; begin open c_compras; loop fetch c_compras into dat; exit when c_compras%notfound; dbms_output.put_line(dat.idcliente || ' - ' || dat.numero_compras || ' - '|| dat.appaterno || ' - ' || dat.apmaterno || ' - ' || dat.nombrecliente); end loop; close c_compras; end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARAMVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARAMVENDEDOR" (idc char, val varchar2) is Begin update vendedor set apmaternovendedor = val where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARAPMATERNO -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARAPMATERNO" (idc char, val varchar2) is Begin update cliente set apmaterno = val where idcliente = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARAPPATERNO -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARAPPATERNO" (idc char, val varchar2) is Begin update cliente set appaterno = val where idcliente = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARAPVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARAPVENDEDOR" (idc char, val varchar2) is Begin update vendedor set APPATERNOVENDEDOR = val where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARCANTIDADPROD -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARCANTIDADPROD" (idc char, val char) is Begin update detallefactura set CANTIDADPRODUCTO = val where iddetallefact = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARCORREOCLIENTE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARCORREOCLIENTE" (idc char, val varchar2) is Begin update cliente set correocliente = val where idcliente = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARCORREOVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARCORREOVENDEDOR" (idc char, val varchar2) is Begin update vendedor set correovendedor = val where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARDESCALMACEN -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARDESCALMACEN" (idc char, val varchar2) is Begin update almacen set descripcionalmacen = val where idalmacen = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARDESCRIPPRODUCTO -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARDESCRIPPRODUCTO" (idc char, val varchar2) is Begin update producto set descripcionproducto = val where idproducto = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARDIRECCIONCLIENTE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARDIRECCIONCLIENTE" (idc char, val varchar2) is Begin update cliente set direccioncliente = val where idcliente = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARDIRVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARDIRVENDEDOR" (idc char, val varchar2) is Begin update vendedor set direccionvendedor = val where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARFECHAFACTURA -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARFECHAFACTURA" (idc char, val varchar2) is Begin update detallefactura set fechaventa = TO_DATE (val || ' 00:00:00', 'dd/mm/yyyy hh24:mi:ss' ) where iddetallefact = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARFIVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARFIVENDEDOR" (idc char, val varchar2) is Begin update vendedor set fechaingresovendedor = TO_DATE (val || ' 00:00:00', 'dd/mm/yyyy hh24:mi:ss' ) where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARFNVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARFNVENDEDOR" (idc char, val varchar2) is Begin update vendedor set fechanacvendedor = TO_DATE (val || ' 00:00:00', 'dd/mm/yyyy hh24:mi:ss' ) where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARIDALMACENG -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARIDALMACENG" (idc char, val char) is Begin update guarda set idalmacen = val where idguarda = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARIDCABFACTDETFACT -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARIDCABFACTDETFACT" (idc char, val char) is Begin update detallefactura set idcabfactura = val where iddetallefact = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARIDCLIENTE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARIDCLIENTE" (idc char, val char) is Begin update cabfactura set cabfactura.IDCLIENTE = val where idcabfactura = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARIDPRODUCTOG -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARIDPRODUCTOG" (idc char, val char) is Begin update guarda set idproducto = val where idguarda = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARIDVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARIDVENDEDOR" (idc char, val char) is Begin update cabfactura set idvendedor = val where idcabfactura = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARNOMBRECLIENTE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARNOMBRECLIENTE" (idc char, val varchar2) is Begin update cliente set nombrecliente = val where idcliente = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARNOMPRODUCTO -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARNOMPRODUCTO" (idc char, val varchar2) is Begin update producto set nomproducto = val where idproducto = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARNOMVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARNOMVENDEDOR" (idc char, val varchar2) is Begin update vendedor set nomvendedor = val where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARPRECIOPRODUCTO -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARPRECIOPRODUCTO" (idc char, val float) is Begin update producto set precioproducto = val where idproducto = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARPRODUCTODF -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARPRODUCTODF" (idc char, val char) is Begin update detallefactura set idproducto = val where iddetallefact = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARSEXOCLIENTE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARSEXOCLIENTE" (idc char, val char) is Begin update cliente set sexocliente = val where idcliente = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARSEXOVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARSEXOVENDEDOR" (idc char, val varchar2) is Begin update vendedor set sexovendedor = val where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARSUELDOVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARSUELDOVENDEDOR" (idc char, val number) is Begin update vendedor set sueldovendedor = val where idvendedor = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRACTUALIZARTELEFONOCLIENTE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRACTUALIZARTELEFONOCLIENTE" (idc char, val number) is Begin update cliente set telefonocliente = val where idcliente = idc; dbms_output.put_line ('Se actualizo correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRELIMINARALMACEN -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRELIMINARALMACEN" (idc char) is Begin delete from almacen where idalmacen = idc; dbms_output.put_line ('Se elimino correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRELIMINARCABFACT -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRELIMINARCABFACT" (idc char) is Begin delete from cabfactura where idcabfactura = idc; dbms_output.put_line ('Se elimino correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRELIMINARDETFACT -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRELIMINARDETFACT" (idc char) is Begin delete from detallefactura where iddetallefact = idc; dbms_output.put_line ('Se elimino correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRELIMINARGUARDA -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRELIMINARGUARDA" (idc char) is Begin delete from guarda where idguarda = idc; dbms_output.put_line ('Se elimino correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRELIMINARPRODUCTO -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRELIMINARPRODUCTO" (idc char) is Begin delete from producto where idproducto = idc; dbms_output.put_line ('Se elimino correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRELIMINARVENDEDOR -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRELIMINARVENDEDOR" (idc char) is Begin delete from vendedor where idvendedor = idc; dbms_output.put_line ('Se elimino correctamente el registro'); end; / -------------------------------------------------------- -- DDL for Procedure PRMODIFICACION -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRMODIFICACION" (s char ) is BEGIN dbms_output.put_line('Se agrego modificaciones a la tabla log, modificado en: '||s ); END; / -------------------------------------------------------- -- DDL for Procedure PRODUCTO_INS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRODUCTO_INS" (a char, b varchar2, c float, d varchar2, e varchar2, f number) is BEGIN insert into producto (idproducto, nomproducto, precioproducto, descripcionproducto, imagen, existencia) values (a, b, c, d, e, f); dbms_output.put_line ('Se inserto correctamente en producto'); end; / -------------------------------------------------------- -- DDL for Procedure PRPRODUCTOMASVENDIDO -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PRPRODUCTOMASVENDIDO" is cursor c_ventas is select * from ProductoMasVendidos; dat ProductoMasVendidos%rowtype; begin open c_ventas; loop fetch c_ventas into dat; exit when c_ventas%notfound; dbms_output.put_line(dat.idproducto || ' - ' || dat.nomproducto || ' - '|| dat.vendidos); end loop; close c_ventas; end; / -------------------------------------------------------- -- DDL for Procedure PVENDEDORESVENTAS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."PVENDEDORESVENTAS" is cursor c_ventas is select * from VENDEDORES_MAS_VENTAS; dat VENDEDORES_MAS_VENTAS%rowtype; begin open c_ventas; loop fetch c_ventas into dat; exit when c_ventas%notfound; dbms_output.put_line(dat.idvendedor || ' - ' || dat.numero_ventas || ' - '|| dat.appaternovendedor || ' - ' || dat.apmaternovendedor || ' - ' || dat.nomvendedor); end loop; close c_ventas; end; / -------------------------------------------------------- -- DDL for Procedure VENDEDOR_INS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "LUIS"."VENDEDOR_INS" (a char, b varchar2, c varchar2, d varchar2 , e varchar2, f varchar2, g varchar2, h varchar2, j number) is e1 date := TO_DATE (e || ' 00:00:00', 'dd/mm/yyyy hh24:mi:ss' ); i date := SYSDATE; BEGIN insert into vendedor (idvendedor, nomvendedor, appaternovendedor, apmaternovendedor, fechanacvendedor, correovendedor, direccionvendedor, sexovendedor, fechaingresovendedor, sueldovendedor) values (a, b, c, d, e1, f, g, h, i, j); dbms_output.put_line ('Se inserto correctamente en vendedor'); end; /
true
3c58d7409bceba090dc812a74c524fa67a686ac5
SQL
ellelang/EAmosm
/de-target/conversion.sql
UTF-8
6,649
3.65625
4
[]
no_license
/*+ ETLM { depend:{ add:[ { name:"adw_metrics_glue.WRT_SEGMENTS_CONV", age:{days:3} } ] } } */ WITH filtered_ads as --ad meet criteria 2,3,6,7 ( SELECT dads.dim_ad_id as ad_id FROM adw_metrics_glue.dim_ads dads INNER JOIN adw_metrics_glue.dim_campaigns dcamp ON dads.dim_campaign_id = dcamp.dim_campaign_id INNER JOIN adw_metrics_glue.dim_advertisers dadv ON dcamp.dim_advertiser_id = dadv.dim_advertiser_id INNER JOIN adw_metrics_glue.dim_ad_product_types dapt on dads.dim_ad_product_type_id = dapt.dim_ad_product_type_id INNER JOIN dvde.pvc_advertiser_mapping pam ON dadv.cfid = pam.rodeo_advertiser_id where dcamp.campaign_status = 'RUNNING' -- filter is campaign is running AND dads.ad_status = 'RUNNING' -- filter if ads are running AND DATEDIFF(day, dads.start_dt_utc, dads.end_dt_utc) > 14 -- filter if start and end date are 14 days apart and pam.rodeo_advertiser_id is not null group by dads.dim_ad_id ) select ds.base_seg_id, dim_date, ds.marketplace_id, da.cfid as ad_cfid, dc.cfid as campaign_cfid, dc.start_dt_utc, dc.end_dt_utc, dc.dim_advertiser_id, dadv.advertiser_name, dc.campaign_name, ae.entity_id, case when seg_class_code = 'CUSTOM_ASIN' then 'Other' else seg_name end as seg_name, tm.targ_method, SUM(CASE WHEN dsat.dim_conv_type_id in (1,2) AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id in (1,2) AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id in (1,2) AND dsat.dim_engagement_scope_id = 2 THEN dsat.click_conversion_count ELSE 0 END) AS brand_halo_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id in (1,2) AND dsat.dim_engagement_scope_id = 2 THEN dsat.impression_conversion_count ELSE 0 END) AS brand_halo_view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 3 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS click_considerations, SUM(CASE WHEN dsat.dim_conv_type_id = 3 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS view_considerations, SUM(CASE WHEN dsat.dim_conv_type_id in ( 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,29,30,31,32,36,37,43,44,45,46,47,48,49,53,54,55,56,57,58,59,60,61,62,63,64,80,81,82,83) AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS click_pixels, SUM(CASE WHEN dsat.dim_conv_type_id in ( 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,29,30,31,32,36,37,43,44,45,46,47,48,49,53,54,55,56,57,58,59,60,61,62,63,64,80,81,82,83) AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS view_pixels, SUM(CASE WHEN dsat.dim_conv_type_id = 115 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS amazon_pay_initial_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 115 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS amazon_pay_initial_view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 116 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS amazon_pay_recurring_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 116 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS amazon_pay_recurring_view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 156 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS subscription_free_trial_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 156 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS subscription_free_trial_view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 157 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS subscription_initial_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 157 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS subscription_initial_view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 158 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS subscription_recurring_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 158 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS subscription_recurring_view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 159 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS subscription_win_back_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 159 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS subscription_win_back_view_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 160 AND dsat.dim_engagement_scope_id = 1 THEN dsat.click_conversion_count ELSE 0 END) AS subscription_initial_promotion_click_purchases, SUM(CASE WHEN dsat.dim_conv_type_id = 160 AND dsat.dim_engagement_scope_id = 1 THEN dsat.impression_conversion_count ELSE 0 END) AS subscription_initial_promotion_view_purchases from adw_metrics_glue.WRT_SEGMENTS_CONV dsat inner join adw_metrics_glue.dim_ads da on dsat.dim_ad_id = da.dim_ad_id inner join adw_metrics_glue.dim_campaigns dc on da.dim_campaign_id = dc.dim_campaign_id inner join adw_metrics_glue.dim_ad_product_types dapt on da.dim_ad_product_type_id = dapt.dim_ad_product_type_id inner join adw_metrics_glue.dim_segments ds ON dsat.dim_seg_id = ds.dim_seg_id inner join adw_metrics_glue.dim_targeting_methods tm ON dsat.dim_targ_method_id = tm.dim_targ_method_id inner join adw_metrics_glue.dim_advertisers dadv ON dc.dim_advertiser_id = dadv.dim_advertiser_id inner join adw_metrics_glue.dim_advertiser_entities ae ON dadv.advertiser_id = ae.advertiser_id and is_deleted = 0 where dim_date between to_date('{RUN_DATE_YYYYMMDD}','YYYYMMDD')-18 and to_date('{RUN_DATE_YYYYMMDD}','YYYYMMDD')-4 and dsat.dim_ad_id in (select ad_id from filtered_ads) group by ds.base_seg_id, dim_date, ds.marketplace_id, da.cfid, dc.cfid, dc.start_dt_utc, dc.end_dt_utc, dc.dim_advertiser_id, dadv.advertiser_name, dc.campaign_name, ae.entity_id, case when seg_class_code = 'CUSTOM_ASIN' then 'Other' else seg_name end, tm.targ_method
true
9fe28fe3577c53bd49734d46eb515cd1ae3a8128
SQL
Deepesh-Tank/Online-Electronic-Store-Using-Spring-MVC-Hibernate
/sql-scripts/AutoPower.sql
UTF-8
540
2.703125
3
[]
no_license
#DROP DATABASE `AutoPower`; CREATE DATABASE IF NOT EXISTS `AutoPower` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `AutoPower`; create table `customer` ( `id` varchar(100) , `first_name` varchar(100) , `last_name` varchar(100) , `local_address` varchar(100) , `city` varchar(100) , `state` varchar(100) , `shop_license` varchar(100) , `shop_name` varchar(100) , primary key(id) ); ALTER TABLE customer ADD contacts varchar(100) ; ALTER TABLE customer ADD email varchar(100) ;
true
a88104878455f821775f1c55f0de61f40035833b
SQL
MdJannatunNimeNishat/bloodbank
/blood_bank.sql
UTF-8
2,553
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 11, 2020 at 09:54 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.29 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: `blood_bank` -- -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `age` int(11) NOT NULL, `gender` varchar(255) NOT NULL, `bloodGroup` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `mobile` varchar(255) NOT NULL, `pic` varchar(255) NOT NULL, `lastDonetDate` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `name`, `email`, `age`, `gender`, `bloodGroup`, `address`, `password`, `mobile`, `pic`, `lastDonetDate`) VALUES (5, 'Md.jannatun Nime Nishat ', 'nishatnime100@gmail.com', 23, 'Mail', 'O+', 'Naruli,Bogura Sadar', '81dc9bdb52d04dc20036dbd8313ed055', '01743607289', 'PicsArt_08-12-09.09.36.jpg', '1970-01-01'), (6, 'MD. Seaum Ibna Mostafiz ', 'seaum@gmail.com', 27, 'Mail', 'A+', 'Joypurhat sadar', '81dc9bdb52d04dc20036dbd8313ed055', '01798671339', 'IMG_E3697.JPG', '1999-03-16'), (7, 'Al-Mukit', 'angryMukit@gmail.com', 24, 'Mail', 'O+', 'Jamalpur ', '81dc9bdb52d04dc20036dbd8313ed055', '01792557891', '92627876_2660066294277477_4787850939660763136_n.jpg', '1996-04-12'), (8, 'Ashiqur Rahman ', 'ashiqur@gmail.com', 23, 'Mail', 'B+', 'Savar Dhaka', '81dc9bdb52d04dc20036dbd8313ed055', '01758721142', '104169056_2384347598525063_8600331257508946346_o.jpg', '1997-05-01'), (9, 'Jannatun Nime Nishat', 'adon@gmail.com', 19, 'Mail', 'O+', 'Naruli,Bogura Sadar', '25d55ad283aa400af464c76d713c07ad', '01743607289', 'IMG_E3699.JPG', '1996-07-27'); -- -- Indexes for dumped tables -- -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; 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
1e2e04b4037626c4793776fdb8ad916a1c6090e4
SQL
ConstantineUA/accountant.dev
/app/config/structure.sql
UTF-8
1,465
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 24, 2015 at 12:08 AM -- Server version: 5.5.43-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `accountant` -- -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE IF NOT EXISTS `categories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `type` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table to store payment categories' AUTO_INCREMENT=19 ; -- -------------------------------------------------------- -- -- Table structure for table `payments` -- CREATE TABLE IF NOT EXISTS `payments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_id` int(11) NOT NULL, `amount` decimal(15,2) NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `comment` varchar(512) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `category_id` (`category_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table to store payments' AUTO_INCREMENT=31 ; -- -- Constraints for dumped tables -- -- -- Constraints for table `payments` -- ALTER TABLE `payments` ADD CONSTRAINT `payments_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
true
61ecb30b9385b1727c4cf3beeae1b2ef1f4692f6
SQL
Yuukio/Documentos_SIBCATIE
/Bases de Datos/BD_SIBCATIE.sql
UTF-8
15,494
3.109375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed Jun 13 01:59:03 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema BD_SIBCATIE -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema BD_SIBCATIE -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `BD_SIBCATIE` DEFAULT CHARACTER SET utf8 ; USE `BD_SIBCATIE` ; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Forma` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Forma` ( `idForma` INT NOT NULL, `nombre` VARCHAR(45) NULL, `caracteristicas` VARCHAR(255) NULL, PRIMARY KEY (`idForma`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`EstadoSalud` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`EstadoSalud` ( `idEstadoSalud` INT NOT NULL, `nombre_estado` VARCHAR(45) NULL, PRIMARY KEY (`idEstadoSalud`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Color` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Color` ( `idColor` INT NOT NULL, `nombre` VARCHAR(45) NULL, PRIMARY KEY (`idColor`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`TipoHoja` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`TipoHoja` ( `idTipoHoja` INT NOT NULL, `nombre_hoja` VARCHAR(45) NULL, `forma` VARCHAR(45) NULL, PRIMARY KEY (`idTipoHoja`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`ZonaCardinal` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`ZonaCardinal` ( `idZonaCardinal` INT NOT NULL, `nombre_cardinal` VARCHAR(45) NULL, PRIMARY KEY (`idZonaCardinal`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Continente` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Continente` ( `idContinente` INT NOT NULL, `nombre_continente` VARCHAR(45) NULL, `ZonaCardinal_idZonaCardinal` INT NOT NULL, PRIMARY KEY (`idContinente`, `ZonaCardinal_idZonaCardinal`), INDEX `fk_Continente_ZonaCardinal1_idx` (`ZonaCardinal_idZonaCardinal` ASC), CONSTRAINT `fk_Continente_ZonaCardinal1` FOREIGN KEY (`ZonaCardinal_idZonaCardinal`) REFERENCES `BD_SIBCATIE`.`ZonaCardinal` (`idZonaCardinal`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Familia` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Familia` ( `idFamilia` INT NOT NULL, `nombre_familia` VARCHAR(45) NULL, PRIMARY KEY (`idFamilia`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`DeterminadaPor` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`DeterminadaPor` ( `idDeterminadaPor` INT NOT NULL, `nombre_determinada` VARCHAR(45) NULL, `fecha` DATE NULL, PRIMARY KEY (`idDeterminadaPor`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Epiteto` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Epiteto` ( `idEpiteto` INT NOT NULL, `nombre_epiteto` VARCHAR(45) NULL, `referencia` VARCHAR(45) NULL, PRIMARY KEY (`idEpiteto`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Genero` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Genero` ( `idGenero` INT NOT NULL, `nombre` VARCHAR(45) NULL, PRIMARY KEY (`idGenero`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`NombreCientifico` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`NombreCientifico` ( `idNombreCientifico` INT NOT NULL, `Epiteto_idEpiteto` INT NOT NULL, `Genero_idGenero` INT NOT NULL, PRIMARY KEY (`idNombreCientifico`, `Epiteto_idEpiteto`, `Genero_idGenero`), INDEX `fk_NombreCientifico_Epiteto1_idx` (`Epiteto_idEpiteto` ASC), INDEX `fk_NombreCientifico_Genero1_idx` (`Genero_idGenero` ASC), CONSTRAINT `fk_NombreCientifico_Epiteto1` FOREIGN KEY (`Epiteto_idEpiteto`) REFERENCES `BD_SIBCATIE`.`Epiteto` (`idEpiteto`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_NombreCientifico_Genero1` FOREIGN KEY (`Genero_idGenero`) REFERENCES `BD_SIBCATIE`.`Genero` (`idGenero`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Planta` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Planta` ( `idPlanta` INT NOT NULL, `fecha_ingreso` DATE NULL, `fuente_informacion` VARCHAR(45) NULL, `autor` VARCHAR(45) NULL, `altura` DECIMAL NULL, `reproduccion` TINYINT NULL, `visible` TINYINT NULL, `Forma_idForma` INT NOT NULL, `EstadoSalud_idEstadoSalud` INT NOT NULL, `Color_idColor` INT NOT NULL, `TipoHoja_idTipoHoja` INT NOT NULL, `Continente_idContinente` INT NOT NULL, `ZonaCardinal_idZonaCardinal` INT NOT NULL, `Familia_idFamilia` INT NOT NULL, `DeterminadaPor_idDeterminadaPor` INT NOT NULL, `NombreCientifico_idNombreCientifico` INT NOT NULL, PRIMARY KEY (`idPlanta`, `Forma_idForma`, `EstadoSalud_idEstadoSalud`, `Color_idColor`, `TipoHoja_idTipoHoja`, `Continente_idContinente`, `ZonaCardinal_idZonaCardinal`, `Familia_idFamilia`, `DeterminadaPor_idDeterminadaPor`, `NombreCientifico_idNombreCientifico`), INDEX `fk_Planta_Forma1_idx` (`Forma_idForma` ASC), INDEX `fk_Planta_EstadoSalud1_idx` (`EstadoSalud_idEstadoSalud` ASC), INDEX `fk_Planta_Color1_idx` (`Color_idColor` ASC), INDEX `fk_Planta_TipoHoja1_idx` (`TipoHoja_idTipoHoja` ASC), INDEX `fk_Planta_Continente1_idx` (`Continente_idContinente` ASC), INDEX `fk_Planta_ZonaCardinal1_idx` (`ZonaCardinal_idZonaCardinal` ASC), INDEX `fk_Planta_Familia1_idx` (`Familia_idFamilia` ASC), INDEX `fk_Planta_DeterminadaPor1_idx` (`DeterminadaPor_idDeterminadaPor` ASC), INDEX `fk_Planta_NombreCientifico1_idx` (`NombreCientifico_idNombreCientifico` ASC), CONSTRAINT `fk_Planta_Forma1` FOREIGN KEY (`Forma_idForma`) REFERENCES `BD_SIBCATIE`.`Forma` (`idForma`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_EstadoSalud1` FOREIGN KEY (`EstadoSalud_idEstadoSalud`) REFERENCES `BD_SIBCATIE`.`EstadoSalud` (`idEstadoSalud`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_Color1` FOREIGN KEY (`Color_idColor`) REFERENCES `BD_SIBCATIE`.`Color` (`idColor`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_TipoHoja1` FOREIGN KEY (`TipoHoja_idTipoHoja`) REFERENCES `BD_SIBCATIE`.`TipoHoja` (`idTipoHoja`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_Continente1` FOREIGN KEY (`Continente_idContinente`) REFERENCES `BD_SIBCATIE`.`Continente` (`idContinente`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_ZonaCardinal1` FOREIGN KEY (`ZonaCardinal_idZonaCardinal`) REFERENCES `BD_SIBCATIE`.`ZonaCardinal` (`idZonaCardinal`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_Familia1` FOREIGN KEY (`Familia_idFamilia`) REFERENCES `BD_SIBCATIE`.`Familia` (`idFamilia`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_DeterminadaPor1` FOREIGN KEY (`DeterminadaPor_idDeterminadaPor`) REFERENCES `BD_SIBCATIE`.`DeterminadaPor` (`idDeterminadaPor`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_NombreCientifico1` FOREIGN KEY (`NombreCientifico_idNombreCientifico`) REFERENCES `BD_SIBCATIE`.`NombreCientifico` (`idNombreCientifico`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Uso` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Uso` ( `idUso` INT NOT NULL, `nombre` VARCHAR(45) NULL, PRIMARY KEY (`idUso`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`NombreComun` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`NombreComun` ( `idNombreComun` INT NOT NULL, `nombre_comun` VARCHAR(45) NULL, `lengua` VARCHAR(45) NULL, `Planta_idPlanta` INT NOT NULL, PRIMARY KEY (`idNombreComun`, `Planta_idPlanta`), INDEX `fk_NombreComun_Planta1_idx` (`Planta_idPlanta` ASC), CONSTRAINT `fk_NombreComun_Planta1` FOREIGN KEY (`Planta_idPlanta`) REFERENCES `BD_SIBCATIE`.`Planta` (`idPlanta`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Foto` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Foto` ( `idFoto` INT NOT NULL, `fecha` DATE NULL, `latitud` DECIMAL NULL, `longitud` DECIMAL NULL, `Planta_idPlanta` INT NOT NULL, `url` VARCHAR(45) NULL, PRIMARY KEY (`idFoto`, `Planta_idPlanta`), INDEX `fk_Foto_Planta_idx` (`Planta_idPlanta` ASC), CONSTRAINT `fk_Foto_Planta` FOREIGN KEY (`Planta_idPlanta`) REFERENCES `BD_SIBCATIE`.`Planta` (`idPlanta`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Planta_has_Uso` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Planta_has_Uso` ( `Planta_idPlanta` INT NOT NULL, `Uso_idUso` INT NOT NULL, PRIMARY KEY (`Planta_idPlanta`, `Uso_idUso`), INDEX `fk_Planta_has_Uso_Planta1_idx` (`Planta_idPlanta` ASC), INDEX `fk_Planta_has_Uso_Uso1_idx` (`Uso_idUso` ASC), CONSTRAINT `fk_Planta_has_Uso_Planta1` FOREIGN KEY (`Planta_idPlanta`) REFERENCES `BD_SIBCATIE`.`Planta` (`idPlanta`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Planta_has_Uso_Uso1` FOREIGN KEY (`Uso_idUso`) REFERENCES `BD_SIBCATIE`.`Uso` (`idUso`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Usuario` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Usuario` ( `idUsuario` INT NOT NULL, `nombre` VARCHAR(45) NULL, `apellido` VARCHAR(45) NULL, `email` VARCHAR(255) NULL, `usuario` VARCHAR(45) NULL, `password` VARCHAR(255) NULL, `fecha_registro` DATETIME NULL, `activo` VARCHAR(45) NULL, `rol` TINYINT NULL, PRIMARY KEY (`idUsuario`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Historial` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Historial` ( `idActividad` INT NOT NULL, `fecha` DATETIME NULL, `accion` VARCHAR(45) NULL, `Planta_idPlanta` INT NOT NULL, `Usuario_idUsuario` INT NOT NULL, PRIMARY KEY (`idActividad`, `Planta_idPlanta`, `Usuario_idUsuario`), INDEX `fk_Historial_Planta1_idx` (`Planta_idPlanta` ASC), INDEX `fk_Historial_Usuario1_idx` (`Usuario_idUsuario` ASC), CONSTRAINT `fk_Historial_Planta1` FOREIGN KEY (`Planta_idPlanta`) REFERENCES `BD_SIBCATIE`.`Planta` (`idPlanta`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Historial_Usuario1` FOREIGN KEY (`Usuario_idUsuario`) REFERENCES `BD_SIBCATIE`.`Usuario` (`idUsuario`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Visitante` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Visitante` ( `idVisitante` INT NOT NULL, `usuario` VARCHAR(45) NULL, `password` VARCHAR(45) NULL, `email` VARCHAR(45) NULL, PRIMARY KEY (`idVisitante`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Consulta` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Consulta` ( `idConsulta` INT NOT NULL, `consulta` TEXT NULL, `fecha_consulta` DATETIME NULL, `url_foto` VARCHAR(255) NULL, `latitud` DECIMAL NULL, `longitud` DECIMAL NULL, `Consultacol` VARCHAR(45) NULL, `Visitante_idVisitante` INT NOT NULL, PRIMARY KEY (`idConsulta`, `Visitante_idVisitante`), INDEX `fk_Consulta_Visitante1_idx` (`Visitante_idVisitante` ASC), CONSTRAINT `fk_Consulta_Visitante1` FOREIGN KEY (`Visitante_idVisitante`) REFERENCES `BD_SIBCATIE`.`Visitante` (`idVisitante`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Exportar` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Exportar` ( `idExportar` INT NOT NULL, `Planta_idPlanta` INT NOT NULL, `Visitante_idVisitante` INT NOT NULL, PRIMARY KEY (`idExportar`, `Planta_idPlanta`, `Visitante_idVisitante`), INDEX `fk_Exportar_Planta1_idx` (`Planta_idPlanta` ASC), INDEX `fk_Exportar_Visitante1_idx` (`Visitante_idVisitante` ASC), CONSTRAINT `fk_Exportar_Planta1` FOREIGN KEY (`Planta_idPlanta`) REFERENCES `BD_SIBCATIE`.`Planta` (`idPlanta`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Exportar_Visitante1` FOREIGN KEY (`Visitante_idVisitante`) REFERENCES `BD_SIBCATIE`.`Visitante` (`idVisitante`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `BD_SIBCATIE`.`Favorito` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BD_SIBCATIE`.`Favorito` ( `idFavorito` INT NOT NULL, `Planta_idPlanta` INT NOT NULL, `Visitante_idVisitante` INT NOT NULL, PRIMARY KEY (`idFavorito`, `Planta_idPlanta`, `Visitante_idVisitante`), INDEX `fk_Favorito_Planta1_idx` (`Planta_idPlanta` ASC), INDEX `fk_Favorito_Visitante1_idx` (`Visitante_idVisitante` ASC), CONSTRAINT `fk_Favorito_Planta1` FOREIGN KEY (`Planta_idPlanta`) REFERENCES `BD_SIBCATIE`.`Planta` (`idPlanta`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_Favorito_Visitante1` FOREIGN KEY (`Visitante_idVisitante`) REFERENCES `BD_SIBCATIE`.`Visitante` (`idVisitante`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
true
3b45261da98a20af35c160c54d1c852ab1cbe4ca
SQL
youngmeezz/sql
/select/์ง‘๊ณ„.sql
UTF-8
3,761
4.8125
5
[]
no_license
SELECT AVG(salary), SUM(salary) FROM salaries WHERE emp_no = '10060'; -- 10060๊นŒ์ง€ ๊ฐ€์„œ ๊ทธ ์œ„์— ๊นŒ์ง€ ์ถœ๋ ฅ SELECT emp_no, AVG(salary) AS avg_salary, SUM(salary) FROM salaries WHERE to_date = '9999-01-01' GROUP BY emp_no HAVING avg_salary > 40000 ORDER BY avg_salary ASC; -- ์˜ˆ์ œ1 : ๊ฐ ์‚ฌ์›๋ณ„๋กœ ํ‰๊ท ์—ฐ๋ด‰ ์ถœ๋ ฅ (~๋ณ„ group by ์‚ฌ์šฉํ•˜๊ธฐ) -- select avg(salary) -- from employees -- group by avg(salary) -- having salary SELECT emp_no, AVG(salary) FROM salaries GROUP BY emp_no ORDER BY AVG(salary) DESC; -- [๊ณผ์ œ]์˜ˆ์ œ 2 : ๊ฐ ํ˜„์žฌ Manager ์ง์ฑ… ์‚ฌ์›์— ๋Œ€ํ•œ ํ‰๊ท  ์—ฐ๋ด‰์€?(join ์ด์šฉํ•ด์„œ ํ’€๊ธฐ) select b.title, a.salary from salaries a, titles b where a.emp_no = b.emp_no -- ์กฐ์ธ ์กฐ๊ฑด and a.to_date ='9999-01-01' -- row ์„ ํƒ ์กฐ๊ฑด1 and b.to_date ='9999-01-01' -- row ์„ ํƒ ์กฐ๊ฑด2 and b.title = 'Manager'; -- row ์„ ํƒ ์กฐ๊ฑด3 select avg(a.salary) from salaries a, titles b where a.emp_no = b.emp_no -- ์กฐ์ธ ์กฐ๊ฑด and a.to_date ='9999-01-01' -- row ์„ ํƒ ์กฐ๊ฑด1 and b.to_date ='9999-01-01' -- row ์„ ํƒ ์กฐ๊ฑด2 and b.title = 'Manager'; -- row ์„ ํƒ ์กฐ๊ฑด3 -- [๊ณผ์ œ]์˜ˆ์ œ 2-1 : ๊ฐ ํ˜„์žฌ ์ง์ฑ…๋ณ„ ํ‰๊ท  ์—ฐ๋ด‰์€?(join ์ด์šฉํ•ด์„œ ํ’€๊ธฐ) SELECT b.title, AVG(a.salary) FROM salaries a, titles b WHERE a.emp_no = b.emp_no AND a.to_date = '9999-01-01' AND b.to_date = '9999-01-01' GROUP BY b.title order by avg(a.salary) desc; -- ์˜ˆ์ œ3 : ์‚ฌ์›๋ณ„ ๋ช‡ ๋ฒˆ์˜ ์ง์ฑ… ๋ณ€๊ฒฝ์ด ์žˆ์—ˆ๋Š”์ง€ ์กฐํšŒ SELECT emp_no, COUNT(*) FROM titles GROUP BY emp_no ORDER BY COUNT(*) DESC; -- 204120์ด ์–ด๋–ป๊ฒŒ ์Šน์ง„ํ–ˆ๋Š”์ง€ ๊ณผ์ • ํ™•์ธ SELECT * FROM titles WHERE emp_no = '204120'; -- ์˜ค๋ฅ˜๋‚˜๋Š” ์ด์œ  emp_no๊ฐ€ group by ๋˜์ง€ ์•Š์•„์„œ ์˜ค๋ฅ˜๋‚œ๋‹ค. ๊ทธ๋ฆผ์„ ๊ทธ๋ฆฌ๋ฉด ํŽธํ•˜๋‹ค SELECT emp_no, COUNT(title) FROM titles; -- ์˜ˆ์ œ4 : ๊ฐ ์‚ฌ์›๋ณ„๋กœ ํ‰๊ท ์—ฐ๋ด‰ ์ถœ๋ ฅํ•˜๋˜ 50,000๋ถˆ ์ด์ƒ์ธ ์ง์›๋งŒ ์ถœ๋ ฅ SELECT emp_no, AVG(salary) FROM salaries GROUP BY emp_no HAVING AVG(salary) > 50000 ORDER BY AVG(salary) DESC; -- group by ๋Š” ~๋ณ„ ๋„ฃ์–ด์ฃผ๊ณ  having์€ group๋œ๊ฒƒ์˜ ์กฐ๊ฑด ๋„ฃ์–ด์ฃผ๊ธฐ -- [๊ณผ์ œ] ์˜ˆ์ œ 5: ํ˜„์žฌ ์ง์ฑ…๋ณ„๋กœ ํ‰๊ท  ์—ฐ๋ด‰๊ณผ ์ธ์›์ˆ˜๋ฅผ ๊ตฌํ•˜๋˜ ์ง์ฑ…๋ณ„๋กœ ์ธ์›์ด 100๋ช… ์ด์ƒ์ธ ์ง์ฑ…๋งŒ ์ถœ๋ ฅํ•˜์„ธ์š”. SELECT a.title AS '์ง์ฑ…', AVG(b.salary) AS 'ํ‰๊ท  ์—ฐ๋ด‰', COUNT(b.emp_no) AS '์ธ์›์ˆ˜' FROM titles a, salaries b WHERE a.emp_no = b.emp_no AND a.to_date = '9999-01-01' AND b.to_date = '9999-01-01' GROUP BY a.title HAVING COUNT(b.emp_no) >= 100; -- [๊ณผ์ œ] ์˜ˆ์ œ 6:ํ˜„์žฌ ๋ถ€์„œ๋ณ„๋กœ ํ˜„์žฌ ์ง์ฑ…์ด Engineer์ธ ์ง์›๋“ค์— ๋Œ€ํ•ด์„œ๋งŒ ํ‰๊ท ๊ธ‰์—ฌ๋ฅผ ๊ตฌํ•˜์„ธ์š”. SELECT b.dept_name AS '๋ถ€์„œ', c.title AS '์ง์ฑ…', AVG(a.salary) AS 'ํ‰๊ท  ๊ธ‰์—ฌ' FROM salaries a, departments b, titles c, dept_emp d WHERE a.emp_no = c.emp_no AND c.emp_no = d.emp_no AND a.to_date = '9999-01-01' AND c.to_date = '9999-01-01' AND d.to_date = '9999-01-01' AND c.title = 'Engineer' AND b.dept_no = d.dept_no GROUP BY d.dept_no; -- [๊ณผ์ œ] ์˜ˆ์ œ 7: ํ˜„์žฌ ์ง์ฑ…๋ณ„๋กœ ๊ธ‰์—ฌ์˜ ์ดํ•ฉ์„ ๊ตฌํ•˜๋˜ Engineer์ง์ฑ…์€ ์ œ์™ธํ•˜์„ธ์š” -- ๋‹จ, ์ดํ•ฉ์ด 2,000,000,000์ด์ƒ์ธ ์ง์ฑ…๋งŒ ๋‚˜ํƒ€๋‚ด๋ฉฐ ๊ธ‰์—ฌ์ดํ•ฉ์— -- ๋Œ€ํ•ด์„œ ๋‚ด๋ฆผ์ฐจ์ˆœ(DESC)๋กœ ์ •๋ ฌํ•˜์„ธ์š”. SELECT a.title, SUM(b.salary) FROM titles a, salaries b WHERE a.emp_no = b.emp_no AND a.to_date = '9999-01-01' AND b.to_date = '9999-01-01' AND a.title != 'Engineer' GROUP BY a.title HAVING SUM(b.salary) > 2000000000 ORDER BY SUM(b.salary) DESC;
true
25f44ce7142ad4e1baa0c0fda8f60070c34def7e
SQL
Peyton-Woods/csc321_group2
/7-11 Queries.sql
UTF-8
550
4
4
[]
no_license
Select CustFName, CustLName, LEFT(CustFName, 1)+ LEFT(CustLName, 1) AS Initials From Orders; Select Distinct FoodID,SUM(FoodCount) from OrderLineItems group by FoodID order by FoodID; Select TOP 5 Price, FoodID From Product Order By Price DESC; Select FoodID, Price From Product Where Price<=6; Select price*foodcount as ordertotal from product join orderlineitems on product.foodid=orderlineitems.foodid join orders on orderlineitems.orderid=orders.orderid where price*foodcount>10 AND orderdate>='10-01-2016';
true
ea69ebfa7aca17fddb4cedb9a6f67b7da3d8bb8c
SQL
OezcanEser/Expensee
/backend/db/db.sql
UTF-8
701
3.421875
3
[]
no_license
create table users( id Serial PRIMARY KEY, username VARCHAR(100) NOT NULL, password VARCHAR(100) NOT NULL, email VARCHAR(100) NOT NULL, ); create table wallets ( id Serial PRIMARY KEY, category VARCHAR(100) NOT NULL, description VARCHAR(200) NOT NULL, price real NOT NULL, created_at VARCHAR(50) NOT NULL, time TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, user_id integer NOT NULL references users(id) on delete cascade ); insert into wallets ( category, description, price, created_at, user_id ) values ( 'Sonstiges', 'test description', 200, '2020-10-10', 1 );
true
8ff4fc2d1277b93b0323c305111964b0ff36c10a
SQL
hasnathm99/construction_management_system
/db/machines.sql
UTF-8
2,173
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 13, 2018 at 12:03 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 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: `construction` -- -- -------------------------------------------------------- -- -- Table structure for table `machines` -- CREATE TABLE `machines` ( `id` int(10) NOT NULL, `name` varchar(50) NOT NULL, `category` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `machines` -- INSERT INTO `machines` (`id`, `name`, `category`) VALUES (11, 'CAT E200B (A)', 'excavator'), (12, 'CAT E200B (B)', 'excavator'), (13, 'Hitachi EX1502C', 'excavator'), (14, 'Caterpillar 225', 'excavator'), (15, 'Hanta Pavers 3.1m', 'paver'), (16, 'Hanta Pavers 2.50m', 'paver'), (17, 'Barber Green', 'paver'), (18, 'TCM 850', 'payloader'), (19, 'Volvo BM4400', 'payloader'), (20, 'Kanto Roller', 'roller'), (21, 'Sakai Roller 9 tyre', 'roller'), (22, 'SM Roller', 'roller'), (23, '2 wheel steal Sakai Roller', 'roller'), (24, '2 wheel JM Roller', 'roller'), (25, '3 wheel Sheet metal Roller', 'roller'), (26, '3 wheel Dynapac Roller', 'roller'), (27, '3 wheel Joseph Roller', 'roller'), (28, 'Baby Roller', 'roller'), (29, 'Vibromax Roller', 'roller'), (30, 'Bedford Truck', 'truck'); -- -- Indexes for dumped tables -- -- -- Indexes for table `machines` -- ALTER TABLE `machines` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `machines` -- ALTER TABLE `machines` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; 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