sql
stringlengths
6
1.05M
-- Databases I -- Contiuous Assessment 2 -- Student Number :C16448216 -- Student Name : <NAME> --Course Code : DT228 -- 1. Create your data structures and insert data -- Drop tables to clear any existing structures with the same name Drop table SpecProd CASCADE CONSTRAINTS PURGE; Drop table Product CASCADE CONSTRAINTS PURGE; Drop table ProdType CASCADE CONSTRAINTS PURGE; Drop table Specification CASCADE CONSTRAINTS PURGE; Drop table Designer CASCADE CONSTRAINTS PURGE; Drop table Client CASCADE CONSTRAINTS PURGE; --Create the tables --Create table Client Create table Client ( clientID Number(6), fullName varchar2(50) NOT NULL, emailAdr varchar2(30) NOT NULL, CONSTRAINT client_pk PRIMARY KEY (clientID), constraint client_emailAdr_uniqe UNIQUE(emailAdr), constraint client_emailAdr_chk CHECK(emailAdr like '%@%.com') ); --Create table Designer Create table Designer ( designerID Number(6), dName varchar(50) NOT NULL, emailAdr varchar2(30), dRateofPay number(4,2), CONSTRAINT designer_pk PRIMARY KEY (designerID), constraint designer_emailAdr_uniqe UNIQUE(emailAdr), Constraint dRateofPay_chk CHECK (dRateofPay < 75.99) ); --Create table Specification Create table Specification ( specID Number(6), clientID Number(6), designerID Number(6), specDate DATE, specDesc varchar(50), specCommision Number(7,2), designHrsWorked number(3), CONSTRAINT specification_pk PRIMARY KEY (specID), Constraint Client_Specification_FK FOREIGN KEY (clientID) REFERENCES Client (clientID), Constraint Designer_Specification_FK FOREIGN KEY (designerID) REFERENCES Designer (designerID), Constraint specCommision_chk CHECK (specCommision < 16001), Constraint designHrsWorked_chk CHECK (designHrsWorked < 151) ); --Create table ProdType Create table ProdType ( prodCat char(1), catDesc varchar(50), CONSTRAINT prodCat_pk PRIMARY KEY (prodCat), CONSTRAINT prodCat_chk CHECK (prodCat IN ('G', 'L', 'C','S','X')), CONSTRAINT catDesc_chk CHECK (catDesc IN ('Garden Lighting', 'Lamps and Bulbs', 'Cables','Shades','Christmas')) ); --Create table Product Create table Product ( prodCat char(1), prodID varchar(6), prodDesc varchar(50), prodPrice number(4,2), prodQtyInStock number(3), CONSTRAINT product_pk PRIMARY KEY (prodID), Constraint Product_Prodtype_fk FOREIGN KEY (prodCat) REFERENCES ProdType(prodCat), Constraint prodPrice_chk CHECK (prodPrice BETWEEN 5.00 AND 45.50 ) ); --Create table SpecProd Create table SpecProd ( specID Number(6), prodID Varchar(6), prodCat char(1), qtyUsed number(3), Constraint SpecProd_Specification_fk FOREIGN KEY (specID) REFERENCES Specification(specID), Constraint SpecProd_Product_fk FOREIGN KEY (prodID) REFERENCES Product(prodID), Constraint SpecProd_ProdType_fk FOREIGN KEY (prodCat) REFERENCES ProdType(prodCat) ); -- Inserting your data -- Insert into Client Table insert into Client (clientID, fullName,emailAdr) values(101, '<NAME>','<EMAIL>'); insert into Client (clientID, fullName,emailAdr) values(201, '<NAME>','<EMAIL>'); insert into Client (clientID, fullName,emailAdr) values(301, '<NAME>','<EMAIL>'); insert into Client (clientID, fullName,emailAdr) values(401, '<NAME>','<EMAIL>'); -- Insert into Designer Table insert into Designer (designerID, dName,emailAdr,dRateofPay) values(101, '<NAME>','<EMAIL>',65.00); insert into Designer (designerID, dName,emailAdr,dRateofPay) values(201, '<NAME>','<EMAIL>',72.50); insert into Designer (designerID, dName,emailAdr,dRateofPay) values(301, '<NAME>','<EMAIL>',75.00); insert into Designer (designerID, dName,emailAdr,dRateofPay) values(401, '<NAME>','<EMAIL>',45.50); -- Insert into Specification Table insert into Specification (specID, specDate,specDesc,specCommision,designHrsWorked,clientID,designerID) values(101, '12 Jun 2017','Full house',10000,10,101,101); insert into Specification (specID, specDate,specDesc,specCommision,designHrsWorked,clientID,designerID) values(102, '14 Jul 2017','Garden Patio',12000,20,101,101); insert into Specification (specID, specDate,specDesc,specCommision,designHrsWorked,clientID,designerID) values(103, '15 Aug 2017','Summerhouse',8000,5,201,301); insert into Specification (specID, specDate,specDesc,specCommision,designHrsWorked,clientID,designerID) values(104, '10 Sep 2017','Christmas decorations',5000,5,301,201); -- Insert into ProdType Table insert into ProdType (prodCat, catDesc) values('G','Garden Lighting'); insert into ProdType (prodCat, catDesc) values('L','Lamps and Bulbs'); insert into ProdType (prodCat, catDesc) values('C','Cables'); insert into ProdType (prodCat, catDesc) values('X','Christmas'); insert into ProdType (prodCat, catDesc) values('S','Shades'); -- Insert into Product Table insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('G101','Outdoor Wall Light',40.00,26,'G'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('G102', 'Patio Lights',41.00,27,'G'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('L101', 'E14 Engery Saving Bulb',6.00,28,'L'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('L102', 'E27 Led Bulb ',9.00,30,'L'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('C101', '2-Core Black Braided Flexible Rubber Cable',10.00,50,'C'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('C102', 'Southwire 250-Ft 2-Conductor Landscape Lighting',11.00,78,'C'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('X101', 'LED string lights German Christmas 10-light',15.50,55,'X'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('X102', 'LED heart string lights',20.00,12,'X'); insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('S101', 'Fabric Cylinder Shade Red',30.00,100,'S'); -- Insert into SpecProd Table insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(20,101,'L101','L'); insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(30,101,'L102','L'); insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(10,101,'C101','C'); insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(20,102,'G101','G'); insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(25,102,'G102','G'); insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(10,103,'C101','C'); insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(3,103,'C102','C'); insert into SpecProd (qtyUsed,specID,prodID,prodCat) values(20,104,'X101','X'); commit; -- Retrieve all the data select * from Client; select * from Designer; select * from Specification; select * from Product; select * from ProdType; select * from SpecProd; --Question 1. --A listing for all designers of the specifications they have worked on including in the output their name, --email address and a 10 character description of the specification in uppercase sorted in descending order --of designer id and then specification description. SELECT dName,designerID,emailAdr,UPPER (SUBSTR(specDesc, 1, 10)) -- Will select items (first 10 letters of specDsec in Uppercase) FROM Specification -- Selects from the Specification table join Designer using (designerID) -- join the Designer Table to the Specification table using designerID ORDER BY designerID,specDesc DESC; -- Order by designerID and specDesc in descending order --Question 2. -- A listing of all products. Including one column which combines the product ID and the product category code; -- the product category description (in uppercase); product description (in uppercase); product price (preceded by the Euro symbol). -- The listing should be sorted by product category description in ascending order and descending order of product price within each category. SELECT prodID,UPPER(catDesc) ,UPPER (prodDesc),to_char(prodPrice,'u99.99') -- Will select items (catDesc and prodDesc in uppercase ) and (prodPrice with a euro symbol) FROM Product -- Selects from the Product table join ProdType using (prodCat) -- Join the ProdType Table to the Product table using prodCat ORDER BY prodDesc ASC, prodPrice DESC; -- Order by prodDesc in ascending order and prodPrice in descending order --Question 3. -- A listing of all specifications showing the specification ID, client ID, client name, specification description, -- specification date (formatted as dd/mm/yyyy) and specification commission(including the Euro symbol) sorted in --descending order of commission. SELECT specID,clientID,fullName,specDesc,to_char(specDate,'fmDD/MM/YYYY'),to_char(specCommision,'u999,999.99') --Will select items (specDate in DD/MM/YYYY format ) and (specCommision with a euro symbol) FROM Specification -- Selects from the Specification table JOIN Client using (clientID) -- join the Client Table to the Specification table using clientID ORDER BY specCommision DESC; -- Order by specCommision in descending order --Question 4. --A listing of all specifications showing the specification ID, client ID, client name, designer ID, designer name, --specification description, specification date (formatted as dd/mm/yyyy) and specification commission(including the Euro symbol) --sorted in descending order of commission. The following headers should be used SPECIFICATION ID CLIENT NAME DESIGNER NAME DESCRIPTION COMMISSION DATE COMMISSION AMT --Will select items and change header in output (specDate in DD/MM/YYYY format ) and (specCommision with a euro symbol) SELECT specID AS SPECIFICATION_ID,clientID AS CLIENT ,fullName AS NAME ,designerID AS DESIGNER ,dName AS NAME_ ,specDesc AS DESCRIPTION ,to_char(specDate,'fmDD/MM/YYYY') AS COMMISSION_DATE ,to_char(specCommision,'u999,999.99') AS COMMISSION_AMT FROM Specification -- Selects from the Specification table JOIN Client using (clientID) -- Join the Client Table to the Specification table using clientID JOIN DESIGNER using (designerID) -- join the Designer Table to the Specification table using designerID ORDER BY specCommision DESC; -- Order by specCommision in descending order --Question 5. --A listing for each product used as part of a specification the specification ID, specification description, --the product name, product price, number of each product used and a total price per product per specification (price x quantity used). SELECT specID,specDesc,prodDesc,prodPrice,qtyUsed, prodPrice*qtyUsed AS total_price_of_prod_per_spec -- Will select items with an additional column showing (prodPrice*qtyUsed) called total_price_of_prod_per_spec FROM SpecProd -- Selects from the SpecProd table JOIN Specification using (specID) -- Join the Specification Table to the SpecProd table using specID JOIN Product using (prodID); -- Join the Product Table to the SpecProd table using prodID --Question 6. --A listing for each specification including the specification ID, --specification description and total cost of the specification --(commission + Sum of quantity used x product price for all products used). --Hint: Involves a group SELECT specID,specDesc,SUM (prodPrice*qtyUsed )+ specCommision AS Total_cost -- Will select items with an additional column showing ((prodPrice*qtyUsed )+ specCommision) called Total_cost FROM SpecProd -- Selects from the SpecProd table JOIN Specification using (specID) -- Join the Specification Table to the SpecProd table using specID JOIN Product using (prodID) -- Join the Product Table to the SpecProd table using prodID GROUP BY specID,specDesc,specCommision -- Group the attributes specID,specDesc,specCommision of thay contain the same values ORDER BY specID ASC; -- Display in ascendingorder of specID --Question 7. -- A listing showing details required for report 6 but including an additional column in the output which categorises -- the specification as ‘High Value’ if the total cost is > 10,000, ‘Medium Cost’ if the total cost is between 8,000 and 10,000 -- and ‘Low Cost’ otherwise. Hint: Involves using a selection statement SELECT specID,specDesc,SUM (prodPrice*qtyUsed )+ specCommision AS Total_cost, -- Will select items with an additional column showing ((prodPrice*qtyUsed )+ specCommision) called Total_cost CASE -- Check each of the following when clauses WHEN SUM (prodPrice*qtyUsed )+ specCommision > 10000 THEN 'High Value' -- if (prodPrice*qtyUsed )+ specCommision is more than 10,000 WHEN SUM (prodPrice*qtyUsed )+ specCommision BETWEEN 8000 AND 10000 THEN 'Medium Cost' -- if (prodPrice*qtyUsed )+ specCommision is more than 8,000 but less than 10,000 ELSE 'Low Cost' --If neither of the 2 conditions above have been satisfied, print this END AS Cost --Name of column in table FROM SpecProd -- Selects from the SpecProd table JOIN Specification using (specID) -- Join the Specification Table to the SpecProd table using specID JOIN Product using (prodID) -- Join the Product Table to the SpecProd table using prodID GROUP BY specID,specDesc,specCommision -- Group the attributes specID,specDesc,specCommision of thay contain the same values ORDER BY specID ASC; -- Display in ascending order of specID --Question 8 -- A listing showing details required for report 6 but including only specifications with a total cost more than 10000. -- Output should in the form of a sentence for each specification and the output column should be called ‘High Value Specifications’. -- All numeric fields should be formatted appropriately for numerical/monetary field and trimmed of leading spaces to give a consistent output. E.g. -- Specification 102 Garden Patio used a total of 45 products at a cost of €1825.00 and the total cost including commission was €13825.00 -- Hint: involves a group but including only selected values in the output with all output concatenated. -- Will select items in the form of a sentance containing the following -- |------> The sum of qty of product used -- |------> (prodPrice*qtyUsed) with a euro symbol and a left trim -- |------> (prodPrice*qtyUsed ) + specCommision with a euro symbol and a left trim -- |------> All with a header of High_Value_Specification SELECT 'Specification ' || specID ||' '|| SpecDesc || ' used a total of ' || SUM (qtyUsed ) || ' products at a cost of ' || LTRIM (to_char(SUM(prodPrice*qtyUsed),'u9999.99')) || ' and the total cost including commission was ' || LTRIM (to_char((SUM (prodPrice*qtyUsed ) + specCommision),'u999,999.99')) AS High_Value_Specification FROM SpecProd -- Selects from the SpecProd table JOIN Specification using (specID) -- Join the Specification Table to the SpecProd table using specID JOIN Product using (prodID) -- Join the Product Table to the SpecProd table using prodID GROUP BY specID,specDesc,specCommision -- Group the attributes specID,specDesc,specCommision of thay contain the same values HAVING ( SUM (prodPrice*qtyUsed )+ specCommision > 10000) -- Only show options where (prodPrice*qtyUsed )+ specCommision is more than 10000 ORDER BY specID ASC; -- Display in ascending order of specID --CONSTRAINTS ERROR CHECKING -- CLIENT EMAIL MUS BE UNIQUE --insert into Client (clientID, fullName,emailAdr) values(101, '<NAME>','<EMAIL>'); --insert into Client (clientID, fullName,emailAdr) values(101, '<NAME>','<EMAIL>');(this line will give a error as email is the same as another in table) -- DESIGNER EMAIL MUS BE UNIQUE --insert into Designer (designerID, dName,emailAdr,dRateofPay) values(101, '<NAME>','<EMAIL>',65.00); --insert into Designer (designerID, dName,emailAdr,dRateofPay) values(101, '<NAME>','<EMAIL>',65.00);(this line will give a error as email is the same as another in table) -- ALL EMAIL ADDRESSES MUST CONTAIN THE @ SYMBOL AND A THE . SYMBOL AND THESE CANNOT BE THE FIRST CHARACTER OF THE EMAIL ADDRESS -- insert into Client (clientID, fullName,emailAdr) values(101, '<NAME>','jjabsw.com') ;(will give error as there is no @ symbol) -- insert into Client (clientID, fullName,emailAdr) values(101, '<NAME>','<EMAIL>');(will give error as there is no . symbol) -- insert into Client (clientID, fullName,emailAdr) values(101, '<NAME>','@swcom'); (will give error as @ is at start) -- DESIGNER RATE OF PAY MUST BE < 75.99. ----insert into Designer (designerID, dName,emailAdr,dRateofPay) values(101, '<NAME>','<EMAIL>',120.00); (will give error as dRateofPay is 120.00) -- PRODUCT UNIT PRICE MUST BE BETWEEN 5.00 AND 45.50. -- insert into Product(prodID,prodDesc,prodPrice,prodQtyInStock,prodCat) values('G101','Outdoor Wall Light',50.00,26,'G');(will give error as prodPrice is 50.00) -- THE COMMISSION PRICE FOR A SPECIFICATION CANNOT BE MORE THAN 16,000. --insert into Specification (specID, specDate,specDesc,specCommision,designHrsWorked,clientID,designerID) values(104, '10 Sep 2017','Christmas decorations',25000,5,301,201);(will give error as specCommision is 25,000) -- THE HOURS WORKED BY A DESIGNER ON A SPECIFICATION CANNOT BE MORE THAN 150. --insert into Specification (specID, specDate,specDesc,specCommision,designHrsWorked,clientID,designerID) values(104, '10 Sep 2017','Christmas decorations',25000,999,301,201);(will give error as designHrsWorked is 999) -- VALID PRODUCT CATEGORIES ARE G GARDEN LIGHTING, L LAMPS & BULBS, C CABLES, S SHADES, X CHRISTMAS. -- insert into ProdType (prodCat, catDesc) values('Z','Garden Lighting');(will give error as prodCat is 'Z') --insert into ProdType (prodCat, catDesc) values('G','Paint'); (will give error as catDesc is 'Paint')
drop table if exists itin_suggestion_tags; drop table if exists tags;
<gh_stars>0 CREATE TABLE cabs ( cab_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, driver_id INT NOT NULL, cab_model VARCHAR(32) NOT NULL, cab_license VARCHAR(32) NOT NULL UNIQUE KEY, cab_type VARCHAR(32) NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP, deleted_at DATETIME DEFAULT CURRENT_TIMESTAMP, INDEX(cab_id), INDEX(cab_license) );
<reponame>KarmaScripter/BudgetX CREATE TABLE Accounts ( AccountId INTEGER NOT NULL UNIQUE CONSTRAINT PrimaryKeyAccounts PRIMARY KEY AUTOINCREMENT, Code TEXT(255) NOT NULL, ActivityCode TEXT(255) NULL, Name TEXT(255) NULL, Title TEXT(255) NULL, ProgramAreaCode TEXT(255) NULL, ProgramProjectCode TEXT(255) NULL, GoalCode TEXT(255) NULL, ObjectiveCode TEXT(255) NULL );
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 26, 2021 at 01:49 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `tokobungapapanucapanbandung` -- -- -------------------------------------------------------- -- -- Table structure for table `contacts` -- CREATE TABLE `contacts` ( `id` int(11) NOT NULL, `icon` varchar(255) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `column` varchar(255) DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `contacts` -- INSERT INTO `contacts` (`id`, `icon`, `title`, `description`, `column`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'lnr lnr-map-marker', 'Lokasi Kami', 'Toko bunga papan ucapan Bandung - Pasar Bunga tegalega, Bandung', 'col-lg-4 col-md-6 col-custom', 1, 1, NULL, NULL, '2021-11-26 07:25:17', NULL, NULL), (2, 'lnr lnr-smartphone', 'Kontak Kami', 'Call: 082111942244 <br>WA: 081903902070', 'col-lg-4 col-md-6 col-custom', 1, 1, NULL, NULL, '2021-11-26 07:26:08', NULL, NULL), (3, 'lnr lnr-envelope', 'Email', '<EMAIL> <br> <EMAIL>', 'col-lg-4 col-md-6 col-custom', 1, 1, NULL, NULL, '2021-11-26 07:26:42', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `home_excess` -- CREATE TABLE `home_excess` ( `id` int(11) NOT NULL, `foto` varchar(255) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `column` varchar(255) DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `home_excess` -- INSERT INTO `home_excess` (`id`, `foto`, `title`, `description`, `column`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, '92ed80325e278139105862f45e10c5cd.png', 'Bunga Berkualitas', 'Kami selalu menghadirkan rangkaian bunga terbaik dengan bunga segar pilihan.', 'col-lg-4 col-sm-6', 1, 1, 1, NULL, '2021-11-17 20:39:28', '2021-11-17 20:40:01', NULL), (2, 'cfa50b3e4de6dc62e336445986b923c6.png', 'Pelayanan Ramah', 'Dilayani oleh CS yang sudah berpengalaman dalam berbagai macam rangkaian bunga.', 'col-lg-4 col-sm-6', 1, 1, NULL, NULL, '2021-11-17 20:40:20', NULL, NULL), (3, '901bef74c7f2bacf2286ee2956bfd267.png', 'Kiriman Tepat Waktu', 'Layanan terbaik anda dengan pengiriman selalu on time.', 'col-lg-4 col-sm-6', 1, 1, NULL, NULL, '2021-11-17 20:40:42', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `home_footer_list` -- CREATE TABLE `home_footer_list` ( `id` int(11) NOT NULL, `link` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `home_footer_list` -- INSERT INTO `home_footer_list` (`id`, `link`, `name`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'produk?category=standing-flower', 'Standing flower', 1, 1, 1, NULL, '2021-11-19 18:35:18', '2021-11-19 19:57:59', NULL), (3, 'produk?category=bunga+wedding', 'Bunga wedding', 1, 1, 1, NULL, '2021-11-22 22:11:41', '2021-11-22 22:12:26', NULL), (4, 'produk?category=bunga+selamat', 'Bunga selamat', 1, 1, NULL, NULL, '2021-11-22 22:21:28', NULL, NULL), (5, 'produk?category=bunga+duka', 'Bunga Duka', 1, 1, NULL, NULL, '2021-11-22 22:21:48', NULL, NULL), (6, 'produk?category=bucket+bunga', 'Bucket Bunga', 1, 1, NULL, NULL, '2021-11-22 22:22:09', NULL, NULL), (7, 'produk?category=standing+flowers', 'Standing Flower', 1, 1, NULL, NULL, '2021-11-22 22:23:17', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `home_slider` -- CREATE TABLE `home_slider` ( `id` int(11) NOT NULL, `foto` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `subtitle` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `home_slider` -- INSERT INTO `home_slider` (`id`, `foto`, `name`, `title`, `subtitle`, `description`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, '59a901025be8f30dac7575dbaccfb89d.jpg', 'Slider 1', 'Welcome', 'Toko Bunga Ucapan Bandung', '', 1, 1, 1, NULL, '2021-11-17 20:22:03', '2021-11-19 10:57:59', NULL), (2, 'e990707bc479e10e60a9fa7d17756a8d.jpg', 'afdsaf', 'asdfasdf', 'sasdfasdf', 'safasdf', 3, 1, NULL, 1, '2021-11-17 20:23:42', '2021-11-17 20:23:47', '2021-11-17 20:23:47'), (3, '9d18e4d337bdd0b3254192fddabbb8d4.jpg', 'Slider 2', 'Quality', 'Bunga Dengan Kualitas Terbaik', '', 1, 1, NULL, NULL, '2021-11-17 20:41:55', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `home_sosmed` -- CREATE TABLE `home_sosmed` ( `id` int(11) NOT NULL, `icon` varchar(255) DEFAULT NULL, `link` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `home_sosmed` -- INSERT INTO `home_sosmed` (`id`, `icon`, `link`, `name`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'fa fa-facebook', 'http://facebook.com/iseplutpinur7', 'Facebook', 1, 1, 1, NULL, '2021-11-19 18:38:25', '2021-11-19 19:53:22', NULL), (3, 'fa fa-twitter', '#', 'Twitter', 1, 1, NULL, NULL, '2021-11-19 19:55:49', NULL, NULL), (4, 'fa fa-linkedin', '#', 'Linkedin', 1, 1, NULL, NULL, '2021-11-19 19:55:49', NULL, NULL), (5, 'fa fa-youtube', '#', 'Youtube', 1, 1, NULL, NULL, '2021-11-19 19:55:49', NULL, NULL), (6, 'fa fa-vimeo', '#', 'Vimeo', 1, 1, 1, NULL, '2021-11-19 19:55:49', '2021-11-19 20:11:33', NULL); -- -------------------------------------------------------- -- -- Table structure for table `home_testimonials` -- CREATE TABLE `home_testimonials` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `position` varchar(255) DEFAULT NULL, `foto` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `home_testimonials` -- INSERT INTO `home_testimonials` (`id`, `name`, `position`, `foto`, `description`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, '<NAME>', 'Customer', '20f08a34992cbeaeb813c0f15653641e.jpg', 'These guys have been absolutely outstanding. Perfect Themes and the best of all\r\n that you have many options to choose! Best Support team ever! Very fast\r\n responding! Thank you very much! I highly recommend this theme and these people!', 1, 1, 1, NULL, '2021-11-17 22:17:19', '2021-11-17 22:17:53', NULL), (2, '<NAME>', 'Customer', '200a2b0f909c05222e32556fe815c86b.jpg', 'These guys have been absolutely outstanding. Perfect Themes and the best of all\r\n that you have many options to choose! Best Support team ever! Very fast\r\n responding! Thank you very much! I highly recommend this theme and these people!', 1, 1, NULL, NULL, '2021-11-17 22:18:57', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `key_value` -- CREATE TABLE `key_value` ( `key` varchar(255) NOT NULL, `value1` text DEFAULT NULL, `value2` text DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `key_value` -- INSERT INTO `key_value` (`key`, `value1`, `value2`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES ('about', 'Tentang Kami', ' <h3 class=\"section-title-3 pb-0\">Athena Florist</h3>\r\n <p>Athena Florist Bandung merupakan perusahaan yang bergerak dibidang penjualan bunga papan, berdiri sejak 2018 di Bandung.\r\n Perusahaan ini didirikan oleh keluarga saya pada tanggal 15 januari 2018.\r\n athena florist bandung - merupakan layanan toko karangan bunga online yang telah berpengalaman dan terpercaya melayani berbagai jenis rangkaiian bunga yang menarik, elegan, dan kreatif dalam segi rangkaiian yang di hasilkan. kami berpusat di kota bandung siap melayani anda 24 jam dengan senang hati, beragam jenis karangan/rangkaian bunga papan ucapan seperti Anniversry, Congratulation, duka cita, Happy Wedding, dan even even tertentu seperti Valentine, acara kantor, dll</p>', 1, 1, NULL, '2021-11-26 03:39:47', '2021-11-26 03:56:13', NULL), ('about_foto', '1d765eeecf75da2a1ebe89e6670d92d3.png', NULL, 1, 1, NULL, '2021-11-26 03:39:47', '2021-11-26 03:57:07', NULL), ('about_history', 'A little story about us', '<h2 class=\"section-title-large\">Our History</h2>\r\n <p><strong>Sejarah adanya bunga papan ucapan Bandung</strong></p>\r\n <p>bunga papan ini biasanya dikirimkan oleh seseorang ataupun perusahaan ketika dalam suatu acara ataupun momen tertentu, seperti misalnya acara pernikahan, peresmian, duka cita atau bahkan perayaan ulang tahun seseorang yang dianggap penting atau spesial. Anggapan kita terhadap sebuah acara atau seseorang yang banyak dikirimi karangan bunga papan maka ia adalah orang penting yang mempunyai banyak pengaruh untuk kalangan orang banyak. Biasanya semakin besar suatu acara yang diadakan maka akan semakin banyak pula kiriman karangan bunga papannya</p>\r\n ', 1, 1, NULL, '2021-11-26 03:38:13', '2021-11-26 03:59:15', NULL), ('contact_maps', '<iframe src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3960.6134744797523!2d107.60127411431729!3d-6.936714169829251!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2e68e9a18575daed%3A0x9c362e4a9bbfa5a7!2sToko%20Bunga%20papan%20ucapan%20Bandung%20-%20Athena%20Florist!5e0!3m2!1sid!2sid!4v1637587340767!5m2!1sid!2sid\" width=\"600\" height=\"450\" style=\"border:0;\" allowfullscreen=\"\" loading=\"lazy\"></iframe>', NULL, 1, 1, NULL, '2021-11-26 07:27:55', '2021-11-26 07:36:32', NULL), ('footer_contact', 'Info Kontak', '<p> </p><address><span style=\"color: rgb(72, 72, 72); font-family: Poppins, sans-serif; font-size: 14px; text-align: center; background-color: rgb(255, 255, 255);\">Toko bunga papan ucapan Bandung - Pasar Bunga tegalega, Bandung</span><br>Phone:&nbsp;<span style=\"color: rgb(72, 72, 72); font-family: Poppins, sans-serif; font-size: 14px; text-align: center; background-color: rgb(255, 255, 255);\">081903902070</span><br>Email: <EMAIL></address>https://tokobungapapanucapanbandung.com<address><br></address><p></p>', 1, 1, NULL, '2021-11-19 17:52:48', '2021-11-22 22:07:58', NULL), ('footer_copyright', 'Copyright © ${(new Date().getFullYear())} Toko Bunga Ucapan Bandung', NULL, 1, 1, NULL, '2021-11-19 17:52:48', '2021-11-19 18:46:33', NULL), ('footer_descritpion', 'Kami menyediakan berbagai macam rangkaian bunga dengan design yang modern yang tentunya bisa anda lakukan costum baik ukuran atau jenis bunga', NULL, 1, 1, NULL, '2021-11-19 15:22:55', '2021-11-19 18:17:33', NULL), ('footer_list_head', 'Menyediakan', NULL, 1, 1, NULL, '2021-11-19 17:52:48', '2021-11-19 18:52:33', NULL), ('logo', '6fbe94da589c94255915300bf665782c.png', '4707ee8ba9fff6de51d74efbe5a35ee7.png', 1, 1, NULL, '2021-11-19 15:15:03', '2021-11-19 15:41:06', NULL), ('offer', 'Terlengkap Dan Terjangkau', 'Toko Bunga Ucapan Bandung', 1, 1, NULL, '2021-11-17 21:17:10', '2021-11-17 21:55:55', NULL), ('offer2', 'Terbaik Dan Terpercaya', 'TUNGGU APA LAGI', 1, 1, NULL, '2021-11-17 22:03:28', '2021-11-17 22:06:50', NULL), ('offer_decritpion', '<p><span class=\"fw-bold\">Toko Bunga Ucapan Bandung</span> merupakan salah satu toko bunga\r\n terbaik di <span class=\"fw-bold\">Kota Bandung</span> dengan produk kami berbagai macam\r\n karangan bunga dan rangkaian bunga seperti :\r\n </p>\r\n <br>\r\n <div class=\"container\">\r\n <ul style=\"list-style-type: disc;\">\r\n <li>PAPAN BUNGA Single 2in1 Steroform</li>\r\n <li>HANDBUQUET</li>\r\n <li>BUQUET ( Meja, Standing, box )</li>\r\n <li>SALIB, KRANS DUKA</li>\r\n <li>Bunga Semat / kantong</li>\r\n <li>Dekorasi Bahagia, Duka</li>\r\n <li>Parcel Buah, Cookies</li>\r\n <li>dll.</li>\r\n </ul>\r\n </div>\r\n\r\n <br>\r\n <p>Produk yang kami sediakan menggunakan bunga yang fresh dan bermacam warna yang bisa\r\n disesuaikan untuk moment Anda. Selain itu kami juga menggunakan bunga buatan untuk pengganti\r\n bunga asli agar karangan bunga Anda tidak cepat layu.</p>', NULL, 1, 1, NULL, '2021-11-17 21:17:10', '2021-11-17 21:56:15', NULL), ('offer_decritpion2', ' <p>Toko Bunga Papan Ucapan Bandung menawarka proses pemesanan yang sangat mudah, tinggal\r\n cari\r\n produk yang Anda inginkan, atau rekomendasi produk sesuai dengan moment yang Anda\r\n butuhkan\r\n melalui katalog produk di website ini, maupun langsung hubungi team CS kami yang siap\r\n membantu anda 24 jam untuk membantu pemesanan bunga secara online dan offline.\r\n </p>', NULL, 1, 1, NULL, '2021-11-17 22:03:28', '2021-11-17 22:07:17', NULL), ('product', 'Bunga Terbaik Dari Kami', 'BUNGA APA YANG ANDA CARI HARI INI ?', 1, 1, NULL, '2021-11-18 09:59:33', '2021-11-18 09:59:52', NULL), ('product2', 'Kamu Mung<NAME>', 'PRODUK LAIN KAMI', 1, 1, NULL, '2021-11-19 07:14:04', '2021-11-19 07:16:22', NULL), ('testimoni', 'Kepuasan Pelanggan adalah yang utama', 'TESTIMONI', 1, 1, NULL, '2021-11-17 22:23:33', '2021-11-17 22:29:34', NULL); -- -------------------------------------------------------- -- -- Table structure for table `level` -- CREATE TABLE `level` ( `lev_id` int(11) NOT NULL, `lev_nama` varchar(50) NOT NULL, `lev_keterangan` text NOT NULL, `lev_status` varchar(50) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `level` -- INSERT INTO `level` (`lev_id`, `lev_nama`, `lev_keterangan`, `lev_status`, `created_at`) VALUES (1, 'Super Admin', 'Super Admin', 'Aktif', '2020-06-18 09:40:31'); -- -------------------------------------------------------- -- -- Table structure for table `menu` -- CREATE TABLE `menu` ( `menu_id` int(11) NOT NULL, `menu_menu_id` int(11) NOT NULL, `menu_nama` varchar(50) NOT NULL, `menu_keterangan` text NOT NULL, `menu_index` int(11) NOT NULL, `menu_icon` varchar(50) NOT NULL, `menu_url` varchar(100) NOT NULL, `menu_status` varchar(50) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `menu` -- INSERT INTO `menu` (`menu_id`, `menu_menu_id`, `menu_nama`, `menu_keterangan`, `menu_index`, `menu_icon`, `menu_url`, `menu_status`, `created_at`) VALUES (1, 0, 'Dashboard', '-', 1, 'fa fa-suitcase', 'admin/dashboard', 'Aktif', '2020-06-18 02:40:07'), (2, 0, 'Pengaturan', '-', 6, 'fa fa-cogs', '#', 'Aktif', '2020-06-18 02:40:07'), (4, 2, 'Menu', '-', 6, 'far fa-circle', 'pengaturan/menu', 'Aktif', '2020-06-18 02:40:07'), (5, 2, 'Level', '-', 4, 'far fa-circle', 'pengaturan/level', 'Aktif', '2020-06-18 02:40:07'), (6, 2, 'Pengguna', '-', 2, 'far fa-circle', 'pengaturan/pengguna', 'Aktif', '2020-06-18 02:40:07'), (7, 2, 'Ganti Password', 'Ganti password', 3, 'fa fa-key', 'pengaturan/password', 'Aktif', '2021-06-28 08:34:14'), (110, 0, 'Calon Ketua', 'Calon Ketua Umum\n', 1, 'fas fa-user', 'admin/CalonKetua', 'Aktif', '2021-10-28 17:04:18'), (111, 0, 'Pemilih', '-', 2, ' fas fa-tasks', 'admin/pemilih', 'Aktif', '2021-10-28 18:27:32'), (112, 0, 'Perhitungan Suara', '-', 3, 'far fa-comment', 'admin/Count', 'Aktif', '2021-10-28 19:46:03'), (113, 0, 'Reset Suara', 'Reset / Kosongkan Suara', 5, 'fas fa-undo', 'pengaturan/reset', 'Aktif', '2021-10-28 22:41:40'), (114, 0, 'Kunci Pemungutan Suara', '1', 4, 'fas fa-key', 'admin/kunci', 'Aktif', '2021-10-28 23:24:00'), (115, 118, 'Warna', 'Warna Produk', 3, 'far fa-circle', 'admin/product/color', 'Aktif', '2021-11-14 14:39:54'), (116, 118, 'Kategori', 'Kategori Produk', 2, 'far fa-circle', 'admin/product/category', 'Aktif', '2021-11-14 14:39:14'), (117, 118, 'Master', 'List daftar Produk', 1, 'far fa-circle', 'admin/product/item', 'Aktif', '2021-11-14 14:38:38'), (118, 0, 'Produk', '-', 1, 'fas fa-fan', '#', 'Aktif', '2021-11-14 14:36:41'), (119, 0, 'Home', 'Halaman Home', 2, 'fas fa-home', '#', 'Aktif', '2021-11-15 14:50:51'), (120, 119, 'Slider', '-', 3, 'far fa-circle', 'admin/home/slider', 'Aktif', '2021-11-15 14:51:28'), (121, 119, 'Kelebihan', '-', 4, 'far fa-circle', 'admin/home/excess', 'Aktif', '2021-11-15 14:52:32'), (122, 119, 'Penawaran', 'Penawaran', 5, 'far fa-circle', 'admin/home/offer', 'Aktif', '2021-11-15 14:53:56'), (123, 119, 'Testimoni', '-', 6, 'far fa-circle', 'admin/home/testimoni', 'Aktif', '2021-11-15 14:54:34'), (124, 0, 'WhatsApp', 'No whatsapp untuk produk', 3, 'fab fa-whatsapp', 'admin/whatsapp', 'Aktif', '2021-11-17 15:39:07'), (126, 0, 'Navigasi', '-', 4, 'fas fa-location-arrow', 'admin/menu', 'Aktif', '2021-11-17 19:09:01'), (127, 119, 'Logo', '-', 1, 'far fa-circle', 'admin/home/logo', 'Aktif', '2021-11-19 08:05:37'), (128, 119, 'Footer', '-', 2, 'far fa-circle', 'admin/home/footer', 'Aktif', '2021-11-19 08:08:39'), (129, 119, 'About', '-', 9, 'fa fa-clone', 'admin/home/about', 'Aktif', '2021-11-24 15:39:57'), (130, 119, 'Contact', '-', 10, 'far fa-circle', 'admin/home/contact', 'Aktif', '2021-11-25 21:01:27'); -- -------------------------------------------------------- -- -- Table structure for table `menu_front` -- CREATE TABLE `menu_front` ( `menu_id` int(11) NOT NULL, `menu_menu_id` int(11) NOT NULL, `menu_nama` varchar(50) NOT NULL, `menu_keterangan` text DEFAULT NULL, `menu_index` int(11) NOT NULL, `menu_icon` varchar(50) DEFAULT NULL, `menu_url` varchar(100) NOT NULL, `menu_status` varchar(50) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `menu_front` -- INSERT INTO `menu_front` (`menu_id`, `menu_menu_id`, `menu_nama`, `menu_keterangan`, `menu_index`, `menu_icon`, `menu_url`, `menu_status`, `created_at`) VALUES (1, 0, 'Home', 'Halaman utama', 1, NULL, '/', 'Aktif', '2021-11-17 19:06:19'), (2, 0, 'Bunga Papan', '', 2, NULL, '#', 'Aktif', '2021-11-17 19:18:47'), (3, 2, 'Bunga Wedding', '', 1, NULL, 'produk?category=bunga-wedding', 'Aktif', '2021-11-17 19:19:45'), (4, 2, 'Bunga Selamat', '-', 2, NULL, 'produk?category=bunga-selamat', 'Aktif', '2021-11-17 19:20:20'), (5, 2, 'Bunga Duka', '', 3, NULL, 'produk?category=bunga-duka', 'Aktif', '2021-11-17 19:20:57'), (7, 0, 'Bucket Bunga', '', 3, NULL, 'produk?category=box', 'Aktif', '2021-11-17 19:22:44'), (8, 0, 'Standing Flowers', '', 5, NULL, 'produk?category=standing-flower', 'Aktif', '2021-11-17 19:23:31'), (10, 0, 'About', '', 6, NULL, 'about', 'Aktif', '2021-11-17 19:26:48'), (11, 0, 'Contact', '', 7, NULL, 'contact', 'Aktif', '2021-11-22 12:56:23'); -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `slug` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `excerpt` text DEFAULT NULL, `size` text DEFAULT NULL, `old_price` int(11) DEFAULT NULL, `price` int(11) DEFAULT NULL, `discount` int(11) DEFAULT NULL, `sku` varchar(255) DEFAULT NULL, `status` int(11) NOT NULL DEFAULT 0, `view_home` int(1) DEFAULT 0, `view_review` int(1) NOT NULL DEFAULT 0, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `name`, `slug`, `description`, `excerpt`, `size`, `old_price`, `price`, `discount`, `sku`, `status`, `view_home`, `view_review`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Flowers daisy pink stick', 'flowers-daisy-pink-stick', '<p class=\"mb-3\" style=\"color: rgb(72, 72, 72); font-family: Poppins, sans-serif; font-size: 14px; background-color: rgb(248, 248, 248);\">On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p style=\"margin-bottom: 10px; color: rgb(72, 72, 72); font-family: Poppins, sans-serif; font-size: 14px; background-color: rgb(248, 248, 248);\">Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"line-height: 1; font-size: 18px; font-family: Poppins, sans-serif; color: rgb(0, 0, 0); background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); width: 1090px; color: rgb(33, 37, 41); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px; background-color: rgb(248, 248, 248);\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"border-color: inherit; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-width: 0px 0px 1px; padding: 0.5rem; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 0, 100000, 0, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-15 01:39:27', '2021-11-18 13:29:29', NULL), (3, 'Jasmine flowers white', 'jasmine-flowers-whit2e', '<p class=\"mb-3\" style=\"color: rgb(72, 72, 72); font-family: Poppins, sans-serif; font-size: 14px; background-color: rgb(248, 248, 248);\">On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p style=\"margin-bottom: 10px; color: rgb(72, 72, 72); font-family: Poppins, sans-serif; font-size: 14px; background-color: rgb(248, 248, 248);\">Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 0, 2000000, 0, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-15 15:00:54', '2021-11-19 05:57:45', NULL), (4, 'Jasmine flowers white', 'jasmine-flowers-white', '<p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p><br></p><p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. ', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 0, 150000, 0, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-19 04:41:28', '2021-11-19 04:47:47', NULL), (5, 'Blossom bouquet flower', 'blossom-bouquet-flower', '<p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p><br></p><p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. ', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 0, 800000, 0, NULL, 1, 1, 1, NULL, NULL, NULL, '2021-11-19 04:44:45', '2021-11-19 06:04:06', NULL); INSERT INTO `products` (`id`, `name`, `slug`, `description`, `excerpt`, `size`, `old_price`, `price`, `discount`, `sku`, `status`, `view_home`, `view_review`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (6, 'Orchid flower red stick', 'orchid-flower-red-stick', '<p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p><br></p><p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. ', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 1000000, 1200000, 17, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-19 04:49:37', '2021-11-19 04:51:15', NULL), (7, 'Rose bouquet white', 'rose-bouquet-white', '<p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p><br></p><p><br></p><p><br></p><p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue;', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 100000, 50000, 50, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-19 04:51:16', '2021-11-19 04:52:56', NULL), (8, 'Hyacinth white stick', 'hyacinth-white-stick', '<p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p><br></p><p><br></p><p><br></p><p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue;', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 0, 1000000, 0, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-19 04:52:56', '2021-11-19 04:55:23', NULL), (9, 'Glory of the Snow', 'glory-of-the-snow', '<p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p><br></p><p><br></p><p><br></p><p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue;', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 0, 10000, 0, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-19 04:55:23', '2021-11-19 04:58:42', NULL); INSERT INTO `products` (`id`, `name`, `slug`, `description`, `excerpt`, `size`, `old_price`, `price`, `discount`, `sku`, `status`, `view_home`, `view_review`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (10, 'Jack in the Pulpit', 'jack-in-the-pulpit', '<p>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>', 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; ', '<p><br></p><h4 class=\"title-3 mb-4\" style=\"font-family: Poppins, sans-serif; line-height: 1; color: rgb(0, 0, 0); font-size: 18px; background-color: rgb(248, 248, 248);\">Size Chart</h4><table class=\"table border\" style=\"width: 1090px; color: rgb(33, 37, 41); background-color: rgb(248, 248, 248); caption-side: bottom; --bs-table-bg:transparent; --bs-table-accent-bg:transparent; --bs-table-striped-color:#212529; --bs-table-striped-bg:rgba(0, 0, 0, 0.05); --bs-table-active-color:#212529; --bs-table-active-bg:rgba(0, 0, 0, 0.1); --bs-table-hover-color:#212529; --bs-table-hover-bg:rgba(0, 0, 0, 0.075); vertical-align: top; font-family: Poppins, sans-serif; font-size: 14px;\"><tbody style=\"border-style: solid; border-width: 0px; vertical-align: inherit;\"><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">UK</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">26</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">European</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">46</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">48</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">50</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">52</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">54</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">usa</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">20</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">22</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Australia</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">28</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">10</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">12</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">16</td></tr><tr style=\"border-style: solid; border-width: 0px;\"><td class=\"cun-name\" style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">Canada</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">24</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">18</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">14</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">42</td><td style=\"padding: 0.5rem; border-width: 0px 0px 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: inherit; background-color: var(--bs-table-bg); box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);\">36</td></tr></tbody></table>', 0, 20000, 0, NULL, 1, 1, 0, NULL, NULL, NULL, '2021-11-19 04:58:43', '2021-11-19 05:00:07', NULL), (11, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, NULL, NULL, NULL, '2021-11-19 05:00:08', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `product_categories` -- CREATE TABLE `product_categories` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `slug` varchar(255) DEFAULT NULL, `foto` varchar(255) NOT NULL, `description` text DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product_categories` -- INSERT INTO `product_categories` (`id`, `name`, `slug`, `foto`, `description`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Bunga wedding', 'bunga-wedding', '37192df5281fe4fbee5c19457edd685c.png', 'tes', 3, 1, 1, 1, '2021-11-14 23:10:38', '2021-11-14 23:38:45', '2021-11-14 23:38:45'), (2, 'Birthday Boqutets', 'birthday-boqutets', '', '', 3, 1, NULL, 1, '2021-11-14 23:38:33', '2021-11-22 15:10:03', '2021-11-22 15:10:03'), (3, 'Funeral Flowers', 'funeral-flowers', '', '', 3, 1, NULL, 1, '2021-11-14 23:38:53', '2021-11-22 15:09:59', '2021-11-22 15:09:59'), (4, 'Interior Decor', 'interior-decor', '', '', 3, 1, NULL, 1, '2021-11-14 23:39:02', '2021-11-22 15:09:54', '2021-11-22 15:09:54'), (5, 'Bucket Bunga', 'bucket-bunga', '', '', 1, 1, 1, NULL, '2021-11-14 23:39:11', '2021-11-22 22:45:17', NULL), (7, 'STANDING FLOWER', 'standing-flower', '', '', 3, 1, NULL, 1, '2021-11-18 02:24:22', '2021-11-22 15:10:26', '2021-11-22 15:10:26'), (8, 'BUNGA MEJA', 'bunga-meja', '', '', 3, 1, NULL, 1, '2021-11-18 02:24:33', '2021-11-22 22:48:24', '2021-11-22 22:48:24'), (9, 'HAND BOUQUET', 'hand-bouquet', '', '', 3, 1, NULL, 1, '2021-11-18 02:24:42', '2021-11-22 22:48:28', '2021-11-22 22:48:28'), (10, 'Standing Flower', 'standing-flower', '', '', 1, 1, 1, NULL, '2021-11-18 02:24:56', '2021-11-22 22:49:50', NULL), (11, 'Bunga Wedding', 'bunga-wedding', '', '', 1, 1, 1, NULL, '2021-11-18 02:25:11', '2021-11-22 22:50:05', NULL), (12, 'Bunga selamat', 'bunga-selamat', '', '', 1, 1, 1, NULL, '2021-11-18 02:25:23', '2021-11-22 22:50:17', NULL), (13, 'Bunga Duka', 'bunga-duka', '', '', 1, 1, 1, NULL, '2021-11-18 02:25:30', '2021-11-22 22:50:24', NULL), (15, 'tes', 'tes', '', '', 3, 1, NULL, 1, '2021-11-22 22:49:46', '2021-11-22 22:49:52', '2021-11-22 22:49:52'); -- -------------------------------------------------------- -- -- Table structure for table `product_category_detail` -- CREATE TABLE `product_category_detail` ( `id` int(11) NOT NULL, `product_id` int(11) DEFAULT NULL, `category_id` int(11) DEFAULT NULL, `status` int(11) NOT NULL DEFAULT 1, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product_category_detail` -- INSERT INTO `product_category_detail` (`id`, `product_id`, `category_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (6, 1, 2, 1, 1, NULL, NULL, '2021-11-15 09:35:48', NULL, NULL), (7, 1, 3, 1, 1, NULL, NULL, '2021-11-15 09:35:52', NULL, NULL), (9, 3, 2, 1, 1, NULL, NULL, '2021-11-19 04:40:21', NULL, NULL), (10, 4, 8, 1, 1, NULL, NULL, '2021-11-19 04:44:17', NULL, NULL), (12, 6, 1, 1, 1, NULL, NULL, '2021-11-19 04:50:46', NULL, NULL), (13, 7, 5, 1, 1, NULL, NULL, '2021-11-19 04:52:07', NULL, NULL), (14, 8, 4, 1, 1, NULL, NULL, '2021-11-19 04:54:58', NULL, NULL), (15, 9, 1, 1, 1, NULL, NULL, '2021-11-19 04:55:53', NULL, NULL), (16, 10, 1, 1, 1, NULL, NULL, '2021-11-19 04:59:44', NULL, NULL), (18, 1, 8, 1, 1, NULL, NULL, '2021-11-19 14:26:36', NULL, NULL), (19, 3, 8, 1, 1, NULL, NULL, '2021-11-19 14:26:36', NULL, NULL), (20, 5, 1, 1, 1, NULL, NULL, '2021-11-22 22:25:12', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `product_colors` -- CREATE TABLE `product_colors` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `slug` varchar(255) DEFAULT NULL, `foto` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product_colors` -- INSERT INTO `product_colors` (`id`, `name`, `slug`, `foto`, `description`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Pink', 'pink', '', NULL, 1, 1, 1, NULL, '2021-11-14 23:26:40', '2021-11-14 23:27:21', NULL), (2, 'Red', 'red', '', '', 1, 1, NULL, NULL, '2021-11-14 23:39:57', NULL, NULL), (3, 'Black', 'black', '', '', 1, 1, NULL, NULL, '2021-11-14 23:40:03', NULL, NULL), (4, 'Blue', 'blue', '', '', 1, 1, NULL, NULL, '2021-11-14 23:40:15', NULL, NULL), (5, 'Green', 'green', '', '', 1, 1, NULL, NULL, '2021-11-14 23:40:21', NULL, NULL), (6, 'White', 'white', '', '', 1, 1, NULL, NULL, '2021-11-15 09:57:37', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `product_color_detail` -- CREATE TABLE `product_color_detail` ( `id` int(11) NOT NULL, `product_id` int(11) DEFAULT NULL, `color_id` int(11) DEFAULT NULL, `status` int(11) NOT NULL DEFAULT 1, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product_color_detail` -- INSERT INTO `product_color_detail` (`id`, `product_id`, `color_id`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 1, 1, 1, 1, NULL, NULL, '2021-11-15 09:39:31', NULL, NULL), (4, 1, 6, 1, 1, NULL, NULL, '2021-11-15 09:57:49', NULL, NULL), (6, 3, 2, 1, 1, NULL, NULL, '2021-11-19 04:41:26', NULL, NULL), (7, 4, 1, 1, 1, NULL, NULL, '2021-11-19 04:44:38', NULL, NULL), (8, 5, 4, 1, 1, NULL, NULL, '2021-11-19 04:49:18', NULL, NULL), (9, 5, 1, 1, 1, NULL, NULL, '2021-11-19 04:49:24', NULL, NULL), (10, 6, 5, 1, 1, NULL, NULL, '2021-11-19 04:51:08', NULL, NULL), (11, 6, 2, 1, 1, NULL, NULL, '2021-11-19 04:51:12', NULL, NULL), (12, 7, 1, 1, 1, NULL, NULL, '2021-11-19 04:52:54', NULL, NULL), (13, 8, 4, 1, 1, NULL, NULL, '2021-11-19 04:55:19', NULL, NULL), (14, 9, 1, 1, 1, NULL, NULL, '2021-11-19 04:56:13', NULL, NULL), (15, 10, 1, 1, 1, NULL, NULL, '2021-11-19 05:00:02', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `product_images` -- CREATE TABLE `product_images` ( `id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `number` int(11) DEFAULT 1, `foto` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `status` int(11) NOT NULL DEFAULT 1, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product_images` -- INSERT INTO `product_images` (`id`, `product_id`, `name`, `number`, `foto`, `description`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 1, 'Gambar 1', 1, 'e31ec3aac88b913dc06faf5cb611c203.jpg', NULL, 1, 1, NULL, NULL, '2021-11-15 02:31:24', '2021-11-15 09:08:43', NULL), (3, 1, 'Gambar 2', 2, '2a465871252d3ec323221787dbef81f5.jpg', NULL, 1, 1, NULL, NULL, '2021-11-15 09:17:32', NULL, NULL), (6, 3, 'Gambar 1', 1, '10eaf6ee43e7a38d91aee7b94e1fb5d4.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:41:00', NULL, NULL), (7, 3, 'Gambar 2', 2, 'fb7fe8da4699983e4f920930fddbd15c.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:41:15', NULL, NULL), (8, 4, 'Gambar 1', 1, '017fd92d234fea3b7061473148223db6.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:44:33', NULL, NULL), (9, 5, 'Bunga 1', 1, 'cf0ddadb487dceb05c332507954a038e.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:49:14', NULL, NULL), (10, 6, 'Gambar 1', 1, '1d45a090adc9f6a8da8c457b2e4e6b27.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:51:01', NULL, NULL), (11, 7, 'Gambar 1', 1, '7343e219548d24eef7468d26d4df3a77.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:52:34', NULL, NULL), (12, 7, 'Gambar 2', 2, '261d7582cb1a322490f37d9d30dec096.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:52:48', NULL, NULL), (13, 8, 'Gambar 2', 1, '63b6c30c159eb4256d3b968812baab82.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:55:11', NULL, NULL), (14, 9, 'Tampak depan', 1, '58544870e40cdd0272b128418336741b.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:56:08', NULL, NULL), (15, 10, 'Tampak depan', 1, '93bf12c2a018ae031cb2ca4fc945ce7f.jpg', NULL, 1, 1, NULL, NULL, '2021-11-19 04:59:58', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `product_reviews` -- CREATE TABLE `product_reviews` ( `id` int(11) NOT NULL, `product_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `date` date DEFAULT NULL, `description` text DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product_reviews` -- INSERT INTO `product_reviews` (`id`, `product_id`, `name`, `date`, `description`, `email`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 5, '<NAME>', '2021-11-19', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin in viverra ex, vitae vestibulum arcu. Duis sollicitudin metus sed lorem commodo, eu dapibus libero interdum. Morbi convallis viverra erat, et aliquet orci congue vel. Integer in odio enim. Pellentesque in dignissim leo. Vivamus varius ex sit amet quam tincidunt iaculis.', '<EMAIL>', 1, 1, NULL, NULL, '2021-11-19 20:46:57', '2021-11-19 22:23:42', '2021-11-19 14:46:06'), (6, 5, '<NAME>', '2021-11-19', 'tes', '<EMAIL>', 1, NULL, NULL, NULL, '2021-11-19 21:20:15', '2021-11-19 22:23:50', NULL), (7, 5, '<NAME>', '2021-11-19', 'tes', '<EMAIL>', 1, NULL, NULL, NULL, '2021-11-19 21:21:49', NULL, NULL), (9, 5, 'a', '2021-11-19', 'a', '<EMAIL>', 1, NULL, NULL, NULL, '2021-11-19 21:22:29', NULL, NULL), (10, 5, 'a', '2021-11-19', 'a', '<EMAIL>', 1, NULL, NULL, NULL, '2021-11-19 21:30:16', NULL, NULL), (11, 5, '<NAME>', '2021-11-19', 'a', '<EMAIL>', 1, NULL, NULL, NULL, '2021-11-19 21:35:32', NULL, NULL), (12, 5, '<NAME>', '2021-11-22', 'bagus', '<EMAIL>', 1, NULL, NULL, NULL, '2021-11-22 15:11:58', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `role_aplikasi` -- CREATE TABLE `role_aplikasi` ( `rola_id` int(11) NOT NULL, `rola_menu_id` int(11) NOT NULL, `rola_lev_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `role_aplikasi` -- INSERT INTO `role_aplikasi` (`rola_id`, `rola_menu_id`, `rola_lev_id`, `created_at`) VALUES (229, 1, 1, '2021-10-28 22:24:48'), (234, 6, 1, '2021-10-28 22:24:57'), (235, 7, 1, '2021-10-28 22:25:00'), (236, 5, 1, '2021-10-28 22:25:01'), (238, 4, 1, '2021-10-28 22:25:03'), (239, 2, 1, '2021-10-28 22:25:10'), (242, 1, 127, '2021-10-28 23:56:31'), (243, 118, 1, '2021-11-14 15:58:25'), (244, 117, 1, '2021-11-14 15:59:39'), (245, 116, 1, '2021-11-14 15:59:40'), (246, 115, 1, '2021-11-14 15:59:40'), (247, 119, 1, '2021-11-15 14:55:53'), (248, 120, 1, '2021-11-15 14:55:54'), (249, 121, 1, '2021-11-15 14:55:55'), (250, 122, 1, '2021-11-15 14:55:56'), (251, 123, 1, '2021-11-15 14:55:56'), (252, 124, 1, '2021-11-17 15:39:14'), (253, 126, 1, '2021-11-17 19:09:13'), (254, 127, 1, '2021-11-19 08:07:42'), (255, 128, 1, '2021-11-19 08:08:51'), (256, 129, 1, '2021-11-24 15:45:20'), (257, 130, 1, '2021-11-25 21:01:35'); -- -------------------------------------------------------- -- -- Table structure for table `role_users` -- CREATE TABLE `role_users` ( `role_id` int(11) NOT NULL, `role_user_id` int(11) NOT NULL, `role_lev_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `role_users` -- INSERT INTO `role_users` (`role_id`, `role_user_id`, `role_lev_id`, `created_at`) VALUES (1, 1, 1, '2020-06-18 09:39:26'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `user_id` int(11) NOT NULL, `id_partner` int(11) DEFAULT NULL, `nik` varchar(30) DEFAULT NULL, `user_nama` varchar(50) NOT NULL, `user_tgl_lahir` date DEFAULT NULL, `user_jk` enum('Laki-Laki','Perempuan') DEFAULT NULL COMMENT 'Jenis Kelamin', `user_password` varchar(100) NOT NULL, `user_email` varchar(50) NOT NULL, `user_email_status` enum('0','1') NOT NULL DEFAULT '0' COMMENT '0 Belum Diverifikasi | 1 Sudah Diverifikasi', `user_phone` varchar(15) NOT NULL, `user_foto` varchar(255) DEFAULT NULL, `user_status` int(1) NOT NULL DEFAULT 0 COMMENT '0 Tidak Aktif | 1 Aktif | 2 Pendding | 3 deleted', `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`user_id`, `id_partner`, `nik`, `user_nama`, `user_tgl_lahir`, `user_jk`, `user_password`, `user_email`, `user_email_status`, `user_phone`, `user_foto`, `user_status`, `created_at`, `updated_at`) VALUES (1, NULL, '1', 'Administrator', NULL, NULL, '$2y$10$34NjNNzrzOHiYA/Wc54tt.n3TB9abQUM065ZueEMd/LDw2NewOFoG', '<EMAIL>', '1', '08123123', NULL, 1, '2020-06-18 09:39:08', '2020-06-18 09:39:08'); -- -------------------------------------------------------- -- -- Table structure for table `whatsapp` -- CREATE TABLE `whatsapp` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `description` text NOT NULL, `number` varchar(255) NOT NULL, `status` int(1) NOT NULL DEFAULT 0 COMMENT '0 Tidak aktif, 1 aktif', `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(), `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `whatsapp` -- INSERT INTO `whatsapp` (`id`, `name`, `description`, `number`, `status`, `created_by`, `updated_by`, `deleted_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'gilang persada', '123', '81903902070', 1, 1, 1, NULL, '2021-11-18 00:58:52', '2021-11-24 22:06:38', NULL), (4, 'Nomor 2', 'Tes dua', '858578996321', 3, 1, 1, 1, '2021-11-18 01:05:30', '2021-11-24 22:05:59', '2021-11-24 22:05:59'), (5, 'no 3', '', '123', 3, 1, 1, 1, '2021-11-18 01:15:56', '2021-11-24 22:06:04', '2021-11-24 22:06:04'); -- -- Indexes for dumped tables -- -- -- Indexes for table `contacts` -- ALTER TABLE `contacts` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `home_excess` -- ALTER TABLE `home_excess` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `home_footer_list` -- ALTER TABLE `home_footer_list` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `home_slider` -- ALTER TABLE `home_slider` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `home_sosmed` -- ALTER TABLE `home_sosmed` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `home_testimonials` -- ALTER TABLE `home_testimonials` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `key_value` -- ALTER TABLE `key_value` ADD PRIMARY KEY (`key`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `level` -- ALTER TABLE `level` ADD PRIMARY KEY (`lev_id`); -- -- Indexes for table `menu` -- ALTER TABLE `menu` ADD PRIMARY KEY (`menu_id`); -- -- Indexes for table `menu_front` -- ALTER TABLE `menu_front` ADD PRIMARY KEY (`menu_id`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `product_categories` -- ALTER TABLE `product_categories` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`,`status`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `product_category_detail` -- ALTER TABLE `product_category_detail` ADD PRIMARY KEY (`id`), ADD KEY `category_id` (`category_id`), ADD KEY `product_id` (`product_id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `product_colors` -- ALTER TABLE `product_colors` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `product_color_detail` -- ALTER TABLE `product_color_detail` ADD PRIMARY KEY (`id`), ADD KEY `color_id` (`color_id`), ADD KEY `product_id` (`product_id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `product_images` -- ALTER TABLE `product_images` ADD PRIMARY KEY (`id`), ADD KEY `product_id` (`product_id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `product_reviews` -- ALTER TABLE `product_reviews` ADD PRIMARY KEY (`id`), ADD KEY `product_id` (`product_id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- Indexes for table `role_aplikasi` -- ALTER TABLE `role_aplikasi` ADD PRIMARY KEY (`rola_id`); -- -- Indexes for table `role_users` -- ALTER TABLE `role_users` ADD PRIMARY KEY (`role_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `user_email` (`user_email`); -- -- Indexes for table `whatsapp` -- ALTER TABLE `whatsapp` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`), ADD KEY `updated_by` (`updated_by`), ADD KEY `deleted_by` (`deleted_by`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `contacts` -- ALTER TABLE `contacts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `home_excess` -- ALTER TABLE `home_excess` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `home_footer_list` -- ALTER TABLE `home_footer_list` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `home_slider` -- ALTER TABLE `home_slider` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `home_sosmed` -- ALTER TABLE `home_sosmed` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `home_testimonials` -- ALTER TABLE `home_testimonials` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `level` -- ALTER TABLE `level` MODIFY `lev_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=128; -- -- AUTO_INCREMENT for table `menu` -- ALTER TABLE `menu` MODIFY `menu_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=131; -- -- AUTO_INCREMENT for table `menu_front` -- ALTER TABLE `menu_front` MODIFY `menu_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `product_categories` -- ALTER TABLE `product_categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `product_category_detail` -- ALTER TABLE `product_category_detail` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `product_colors` -- ALTER TABLE `product_colors` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `product_color_detail` -- ALTER TABLE `product_color_detail` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `product_images` -- ALTER TABLE `product_images` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `product_reviews` -- ALTER TABLE `product_reviews` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `role_aplikasi` -- ALTER TABLE `role_aplikasi` MODIFY `rola_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=258; -- -- AUTO_INCREMENT for table `role_users` -- ALTER TABLE `role_users` MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61; -- -- AUTO_INCREMENT for table `whatsapp` -- ALTER TABLE `whatsapp` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- Constraints for dumped tables -- -- -- Constraints for table `home_excess` -- ALTER TABLE `home_excess` ADD CONSTRAINT `home_excess_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_excess_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_excess_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `home_footer_list` -- ALTER TABLE `home_footer_list` ADD CONSTRAINT `home_footer_list_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_footer_list_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_footer_list_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `home_slider` -- ALTER TABLE `home_slider` ADD CONSTRAINT `home_slider_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_slider_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_slider_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `home_sosmed` -- ALTER TABLE `home_sosmed` ADD CONSTRAINT `home_sosmed_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_sosmed_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_sosmed_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `home_testimonials` -- ALTER TABLE `home_testimonials` ADD CONSTRAINT `home_testimonials_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_testimonials_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `home_testimonials_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `key_value` -- ALTER TABLE `key_value` ADD CONSTRAINT `key_value_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `key_value_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `key_value_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `products` -- ALTER TABLE `products` ADD CONSTRAINT `products_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `products_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `products_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `product_categories` -- ALTER TABLE `product_categories` ADD CONSTRAINT `product_categories_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_categories_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_categories_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `product_category_detail` -- ALTER TABLE `product_category_detail` ADD CONSTRAINT `product_category_detail_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_category_detail_ibfk_2` FOREIGN KEY (`category_id`) REFERENCES `product_categories` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_category_detail_ibfk_3` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_category_detail_ibfk_4` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_category_detail_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `product_colors` -- ALTER TABLE `product_colors` ADD CONSTRAINT `product_color_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_color_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_color_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `product_color_detail` -- ALTER TABLE `product_color_detail` ADD CONSTRAINT `product_color_detail_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_color_detail_ibfk_2` FOREIGN KEY (`color_id`) REFERENCES `product_colors` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_color_detail_ibfk_3` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_color_detail_ibfk_4` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_color_detail_ibfk_5` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `product_images` -- ALTER TABLE `product_images` ADD CONSTRAINT `product_images_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_images_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_images_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_images_ibfk_5` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `product_reviews` -- ALTER TABLE `product_reviews` ADD CONSTRAINT `product_reviews_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_reviews_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_reviews_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `product_reviews_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `whatsapp` -- ALTER TABLE `whatsapp` ADD CONSTRAINT `whatsapp_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `whatsapp_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, ADD CONSTRAINT `whatsapp_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE; COMMIT;
/* SQLyog Ultimate v10.42 MySQL - 5.6.24 : Database - db_pelajar ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!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 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`db_pelajar` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `db_pelajar`; /*Table structure for table `t_kelas` */ DROP TABLE IF EXISTS `t_kelas`; CREATE TABLE `t_kelas` ( `id_kelas` int(11) NOT NULL AUTO_INCREMENT, `nama_kelas` varchar(50) NOT NULL, `jurusan` varchar(50) NOT NULL, PRIMARY KEY (`id_kelas`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; /*Data for the table `t_kelas` */ insert into `t_kelas`(`id_kelas`,`nama_kelas`,`jurusan`) values (1,'B1','RPL'),(2,'TKJ','Teknik Komputer Jaringan'),(3,'E2.1','Rekayasa Perangkat Lunak'),(4,'B3','Multimedia'),(5,'F1','Teknik Otomasi Industri'),(7,'E2.2','Teknik Komputer Jaringan'),(8,'D1','Audio Video'),(9,'E2.3','Multimedia'); /*Table structure for table `t_login` */ DROP TABLE IF EXISTS `t_login`; CREATE TABLE `t_login` ( `username` varchar(100) NOT NULL, `password` varchar(32) NOT NULL, `level` tinyint(1) NOT NULL, PRIMARY KEY (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `t_login` */ insert into `t_login`(`username`,`password`,`level`) values ('admin','<PASSWORD>',1),('user','<PASSWORD>',0); /*Table structure for table `t_siswa` */ DROP TABLE IF EXISTS `t_siswa`; CREATE TABLE `t_siswa` ( `id_siswa` int(11) NOT NULL AUTO_INCREMENT, `nis` int(15) NOT NULL, `nama` varchar(150) NOT NULL, `jk` varchar(1) NOT NULL, `alamat` text NOT NULL, `notelp` varchar(12) NOT NULL, `agama` varchar(20) NOT NULL, `id_kelas` int(11) NOT NULL, PRIMARY KEY (`id_siswa`,`nis`), KEY `id_kelas` (`id_kelas`), CONSTRAINT `t_siswa_ibfk_1` FOREIGN KEY (`id_kelas`) REFERENCES `t_kelas` (`id_kelas`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; /*Data for the table `t_siswa` */ insert into `t_siswa`(`id_siswa`,`nis`,`nama`,`jk`,`alamat`,`notelp`,`agama`,`id_kelas`) values (9,1314115320,'<NAME>','L','GBI','087722390425','Islam',1),(10,1314115321,'<NAME>','L','Cigondewah','087722390425','Islam',1),(11,1314115324,'<NAME>','L','GBI','087722390424','Islam',3),(12,1314115322,'Mega Bangkit P','L','-','089927364827','Islam',1); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
SELECT DISTINCT (SELECT type FROM UNNEST(credits)) as credits_type FROM `.....gcp_billing_export_v1_....` WHERE DATE(_PARTITIONTIME) = "2021-09-01" GROUP BY credits_type LIMIT 1000 SUSTAINED_USAGE_DISCOUNT DISCOUNT COMMITTED_USAGE_DISCOUNT COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE SELECT ROUND(SUM(cost), 2) AS charges , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'SUSTAINED_USAGE_DISCOUNT')),2), 0) as credits_SUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'DISCOUNT')),2), 0) as credits_D , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT')),2), 0) as credits_CUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE')),2), 0) as credits_CUDDB FROM `....gcp_billing_export_v1_....` WHERE DATE(_PARTITIONTIME) = "2021-09-01" AND service.description = "Cloud SQL" LIMIT 1000 SELECT EXTRACT(MONTH FROM _PARTITIONTIME) as month , EXTRACT(DAY FROM LAST_DAY(DATE(_PARTITIONTIME), MONTH)) * 24 * 18.0 as commitment FROM `....gcp_billing_export_v1_....` LIMIT 1 SELECT invoice.month , ROUND(SUM(cost), 2) AS cost , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'SUSTAINED_USAGE_DISCOUNT')),2), 0) as credits_SUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'DISCOUNT')),2), 0) as credits_D , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT')),2), 0) as credits_CUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE')),2), 0) as credits_CUDDB , ROUND(SUM(cost) + SUM(IFNULL(( SELECT SUM(c.amount) FROM UNNEST(credits) c), 0)),2) AS cost_after_credits FROM `...gcp_billing_export_v1_....` WHERE EXTRACT(YEAR FROM _PARTITIONTIME) = 2021 AND service.description = "Cloud SQL" GROUP BY 1 ORDER BY 1 DESC SELECT invoice.month , (18 * 24 * 30) as commitment , ROUND(SUM(cost), 2) AS cost , ROUND(SUM(CASE sku.id WHEN "84B5-2F8B-3A6D" THEN usage.amount_in_pricing_units ELSE 0 END),2) as usage_hours , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'SUSTAINED_USAGE_DISCOUNT')),2), 0) as credits_SUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'DISCOUNT')),2), 0) as credits_D , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT')),2), 0) as credits_CUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE')),2), 0) as credits_CUDDB , ROUND(SUM(cost) + SUM(IFNULL(( SELECT SUM(c.amount) FROM UNNEST(credits) c), 0)),2) AS cost_after_credits FROM `...gcp_billing_export_v1_....` WHERE service.description = "Cloud SQL" --AND invoice.month = "202108" --AND project.id = "..project-id..." GROUP BY 1 ORDER BY 1 DESC DECLARE SERVICE_DESC STRING DEFAULT 'Cloud SQL'; DECLARE SERVICE_SKU_ID STRING DEFAULT '84B5-2F8B-3A6D'; DECLARE COMMITMENT_HOUR NUMERIC DEFAULT 18; SELECT invoice.month , (COMMITMENT_HOUR * 24 * EXTRACT(DAY FROM LAST_DAY(PARSE_DATE("%Y%m", invoice.month)))) as commitment , ROUND(SUM(cost), 2) AS cost , ROUND(SUM(CASE sku.id WHEN SERVICE_SKU_ID THEN usage.amount_in_pricing_units ELSE 0 END),2) as usage_hours , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'SUSTAINED_USAGE_DISCOUNT')),2), 0) as credits_SUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'DISCOUNT')),2), 0) as credits_D , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT')),2), 0) as credits_CUD , IFNULL(ROUND(SUM((SELECT SUM(amount) FROM UNNEST(credits) WHERE type = 'COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE')),2), 0) as credits_CUDDB , ROUND(SUM(cost) + SUM(IFNULL(( SELECT SUM(c.amount) FROM UNNEST(credits) c), 0)),2) AS cost_after_credits FROM `....gcp_billing_export_v1_....` WHERE service.description = SERVICE_DESC AND invoice.month = "202108" AND project.id = "...project-id...." GROUP BY 1 ORDER BY 1 DESC SELECT DISTINCT sku.id as sku_id , service.description as service_desc , sku.description as sku_desc , (SELECT type from UNNEST(credits)) as credits_type FROM `...gcp_billing_export_v1_....` WHERE EXTRACT(YEAR FROM _PARTITIONTIME) = 2021 AND EXTRACT(MONTH FROM _PARTITIONTIME) = 8 AND EXTRACT(DAY FROM _PARTITIONTIME) = 30 --AND service.description = 'Cloud SQL' AND (SELECT type from UNNEST(credits)) IS NOT NULL LIMIT 10
<filename>sql/blogCommentsSeed.sql // selects projects table to insert mock data -- SELECT * FROM nicecity.blogcomments; // -- blogComments table seed with 5 mock entries -- INSERT INTO blogcomments (comment, likes, dislikes, createdAt, updatedAt, commenterId, BlogPostId) VALUES ("I really like this", 2, 0, current_timestamp(), current_timestamp(),1, 3); INSERT INTO blogcomments (comment, likes, dislikes, createdAt, updatedAt, commenterId, BlogPostId) VALUES ("I am interested", 4, 1, current_timestamp(), current_timestamp(),2, 2); INSERT INTO blogcomments (comment, likes, dislikes, createdAt, updatedAt, commenterId, BlogPostId) VALUES ("This is good", 3, 0, current_timestamp(), current_timestamp(),1, 2); INSERT INTO blogcomments (comment, likes, dislikes, createdAt, updatedAt, commenterId, BlogPostId) VALUES ("Nice", 1, 0, current_timestamp(), current_timestamp(),2, 1); INSERT INTO blogcomments (comment, likes, dislikes, createdAt, updatedAt, commenterId, BlogPostId) VALUES ("Way to go", 2, 0, current_timestamp(), current_timestamp(),1, 3);
<gh_stars>0 CREATE TABLE Cursos( CodigoCurso INT IDENTITY(1,1), Nombre VARCHAR(20) NOT NULL, MontoCurso DECIMAL(18,3) NOT NULL, Activo BIT DEFAULT 1, FechaCreacion DATETIME NOT NULL DEFAULT GETDATE(), FechaModificacion DATETIME, CreadoPor VARCHAR(60), ModificadoPor VARCHAR(60) CONSTRAINT PK_Cursos PRIMARY KEY(CodigoCurso) ) GO EXEC sp_addextendedproperty @name = N'MS_Description',@value = 'Cursos a llevar en la Carrera', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos' GO EXEC sp_addextendedproperty @name = N'MS_Description',@value = 'Nombre del curso', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos', @level2type = N'Column' ,@level2name = 'Nombre' GO EXEC sp_addextendedproperty @name = N'MS_Description',@value = 'Monto o valor del curso.', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos', @level2type = N'Column' ,@level2name = 'MontoCurso' GO EXEC sp_addextendedproperty @name = N'MS_Description',@value = 'Condición en la que se encuentra el registro: 1 = Activo; 0 = Inactivo o Borrado', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos', @level2type = N'Column' ,@level2name = 'Activo' GO EXEC sp_addextendedproperty @name = N'MS_Description',@value = 'Fecha de creación del registro', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos', @level2type = N'Column' ,@level2name = 'FechaCreacion' GO EXEC sp_addextendedproperty @name = N'MS_Description',@value ='Fecha de modificación del registro', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos', @level2type = N'Column' ,@level2name = 'FechaModificacion' GO EXEC sp_addextendedproperty @name = N'MS_Description',@value = 'Nombre del usuario que crea el registro', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos', @level2type = N'Column' ,@level2name = 'CreadoPor' GO EXEC sp_addextendedproperty @name = N'MS_Description',@value = 'Nos indica quien alteró el campo', @level0type = N'Schema' ,@level0name = 'dbo', @level1type = N'Table' ,@level1name = 'Cursos', @level2type = N'Column' ,@level2name = 'ModificadoPor'
<reponame>michaelGRU/temp<filename>SQLQuery_1.sql CREATE FUNCTION sum(a INT, b INT) RETURNS INT AS $$ BEGIN RETURN a + b; END; $$ LANGUAGE plpgsql;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 17-Dez-2015 às 21:23 -- Versão do servidor: 5.5.46-0+deb8u1 -- PHP Version: 5.6.14-0+deb8u1 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: `plscience` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `ActedOnBehalfOf` -- CREATE TABLE IF NOT EXISTS `ActedOnBehalfOf` ( `idActedOnBehalfOf` int(11) NOT NULL, `InputPort_idPort` int(11) NOT NULL, `OutputPort_idPort` int(11) NOT NULL, `Description` varchar(255) DEFAULT NULL, `Wf` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `ActedOnBehalfOf` -- INSERT INTO `ActedOnBehalfOf` (`idActedOnBehalfOf`, `InputPort_idPort`, `OutputPort_idPort`, `Description`, `Wf`) VALUES (1, 8, 3, 'Task 1 acted on behalf of task1', NULL), (2, 14, 9, 'Task 1 acted on behalf of task1', NULL), (3, 19, 11, 'Task 1 acted on behalf of task5', NULL), (4, 22, 13, 'Task 1 acted on behalf of task5', NULL), (5, 27, 16, 'Task 1 acted on behalf of task5', NULL), (6, 30, 18, 'Task 1 acted on behalf of task5', NULL), (7, 35, 21, 'Task Sum acted on behalf of taskMultiplication', NULL), (8, 38, 23, 'Task Sum acted on behalf of taskMultiplication', NULL), (9, 42, 26, 'Task Sum acted on behalf of task Multiplication', NULL), (10, 46, 28, 'Task Sum acted on behalf of task Multiplication', NULL), (11, 50, 31, 'Task Sum acted on behalf of task Multiplication', NULL), (12, 54, 33, 'Task Sum acted on behalf of task Multiplication', NULL), (13, 58, 36, 'Task Sum acted on behalf of task Multiplication', NULL), (14, 61, 38, 'Task Sum acted on behalf of task Multiplication', NULL), (15, 66, 41, 'Task Sum acted on behalf of task Multiplication', NULL), (16, 69, 43, 'Task Sum acted on behalf of task Multiplication', NULL), (17, 74, 46, 'Task Sum acted on behalf of task Multiplication', NULL), (18, 77, 48, 'Task Sum acted on behalf of task Multiplication', NULL), (19, 82, 51, 'Task Sum acted on behalf of task Multiplication', NULL), (20, 85, 53, 'Task Sum acted on behalf of task Multiplication', NULL), (21, 91, 56, 'Task Sum acted on behalf of task Multiplication', NULL), (22, 94, 58, 'Task Subtraction acted on behalf of task Multiplication', NULL), (23, 99, 61, 'Task Sum acted on behalf of task Multiplication', NULL), (24, 104, 63, 'Task Sum acted on behalf of task Multiplication', NULL), (25, 109, 65, 'Task Sum acted on behalf of task Multiplication', NULL), (26, 114, 67, 'Task Sum acted on behalf of task Multiplication', NULL), (27, 119, 69, 'Task Sum acted on behalf of task Multiplication', NULL), (28, 124, 71, 'Task Sum acted on behalf of task Multiplication', NULL), (29, 133, 73, 'Task Subtraction acted on behalf of task Multiplication', NULL), (30, 138, 75, 'Task Sum acted on behalf of task Multiplication', NULL), (31, 143, 77, 'Task Sum acted on behalf of task Multiplication', NULL), (32, 148, 79, 'Task Sum acted on behalf of task Multiplication', NULL), (33, 153, 81, 'Task Sum acted on behalf of task Multiplication', NULL), (34, 156, 83, 'Task Sum acted on behalf of task Multiplication', NULL), (35, 161, 86, 'Task Sum acted on behalf of task Multiplication', NULL), (36, 166, 88, 'Task Sum acted on behalf of task Multiplication', NULL), (37, 171, 90, 'Task Sum acted on behalf of task Multiplication', NULL), (38, 174, 92, 'Task Subtraction acted on behalf of task Multiplication', NULL), (39, 181, 95, 'Task Sum acted on behalf of task Multiplication', NULL), (40, 184, 97, 'Task Subtraction acted on behalf of task Multiplication', NULL), (41, 196, 100, 'Task Sum acted on behalf of task Multiplication', NULL), (42, 199, 102, 'Task Subtraction acted on behalf of task Multiplication', NULL), (43, 207, 105, 'Task Sum acted on behalf of task Multiplication', NULL), (44, 210, 107, 'Task Subtraction acted on behalf of task Multiplication', NULL), (45, 216, 110, 'Task Sum acted on behalf of task Multiplication', NULL), (46, 219, 112, 'Task Subtraction acted on behalf of task Multiplication', NULL), (47, 231, 115, 'Task Sum acted on behalf of task Multiplication', NULL), (48, 234, 117, 'Task Subtraction acted on behalf of task Multiplication', NULL), (49, 239, 120, 'Task Sum acted on behalf of task Multiplication', NULL), (50, 242, 122, 'Task Subtraction acted on behalf of task Multiplication', NULL), (51, 247, 125, 'Task Sum acted on behalf of task Multiplication', NULL), (52, 250, 127, 'Task Subtraction acted on behalf of task Multiplication', NULL), (53, 255, 130, 'Task Sum acted on behalf of task Multiplication', NULL), (54, 258, 132, 'Task Subtraction acted on behalf of task Multiplication', NULL), (55, 263, 135, 'Task Sum acted on behalf of task Multiplication', NULL), (56, 266, 137, 'Task Subtraction acted on behalf of task Multiplication', NULL), (57, 271, 140, 'Task Sum acted on behalf of task Multiplication', NULL), (58, 274, 142, 'Task Subtraction acted on behalf of task Multiplication', NULL); -- -------------------------------------------------------- -- -- Estrutura da tabela `Activity` -- CREATE TABLE IF NOT EXISTS `Activity` ( `idActivity` int(11) NOT NULL, `Entity_idEntity` int(11) NOT NULL, `Name` varchar(45) COLLATE utf8_swedish_ci NOT NULL, `Function` varchar(45) COLLATE utf8_swedish_ci DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `Activity` -- INSERT INTO `Activity` (`idActivity`, `Entity_idEntity`, `Name`, `Function`, `Description`) VALUES (1, 1, 'Calculus', 'Return the value of the executed calculation', 'Given a set of input values, the workflow should return the results of operations'), (3, 1, 'Calculo', 'Executar calculos matemáticos', 'Demonstracao da ferramenta'); -- -------------------------------------------------------- -- -- Estrutura da tabela `Agent` -- CREATE TABLE IF NOT EXISTS `Agent` ( `idAgent` int(11) NOT NULL, `Login` varchar(255) COLLATE utf8_swedish_ci NOT NULL, `Email` varchar(255) COLLATE utf8_swedish_ci NOT NULL, `Password` varchar(255) COLLATE utf8_swedish_ci NOT NULL, `Name` varchar(255) COLLATE utf8_swedish_ci NOT NULL, `Institution` int(11) NOT NULL, `Function` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `Agent` -- INSERT INTO `Agent` (`idAgent`, `Login`, `Email`, `Password`, `Name`, `Institution`, `Function`, `Description`) VALUES (1, 'tassio', '<EMAIL>', 'f10354719639a6e97c1ccc7ed0c5f2d3', '<NAME>', 1, 'Pesquisador', 'Aluno de Pós-graduação'), (2, 'regina', '<EMAIL>', '221182760f5b980c97c7a74a94d57364', '<NAME>', 1, 'Pesquisadora', 'Professora de Pós-graduação'), (3, 'humberto', '<EMAIL>', '<PASSWORD>', 'Humberto Dalpra', 1, 'Pesquisador', 'Aluno de Pós-Graduação'), (4, 'marco', '<EMAIL>', 'f5888d0bb58d611107e11f7cbc41c97a', '<NAME>', 1, 'Pesquisador', 'Professor de Pós-graduação'); -- -------------------------------------------------------- -- -- Estrutura da tabela `collaboration_service` -- CREATE TABLE IF NOT EXISTS `collaboration_service` ( `id` bigint(20) NOT NULL, `group_service_id` bigint(20) NOT NULL, `coordination_service_id` bigint(20) NOT NULL, `cooperation_service_id` bigint(20) NOT NULL, `communication_service_id` bigint(20) NOT NULL, `collaborative_service_type_id` bigint(20) NOT NULL, `collab_service_name` varchar(255) NOT NULL, `description` varchar(255) DEFAULT '', `developed` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `collaboration_service` -- INSERT INTO `collaboration_service` (`id`, `group_service_id`, `coordination_service_id`, `cooperation_service_id`, `communication_service_id`, `collaborative_service_type_id`, `collab_service_name`, `description`, `developed`) VALUES (1, 1, 1, 1, 1, 1, 'User List UFJF', 'User List UFJF members.', 0), (2, 2, 2, 2, 2, 1, 'User List USP', 'User List USP.', 0); -- -------------------------------------------------------- -- -- Estrutura da tabela `collaborative_service_type` -- CREATE TABLE IF NOT EXISTS `collaborative_service_type` ( `id` bigint(20) NOT NULL, `name_service_type` varchar(255) NOT NULL, `description` varchar(255) DEFAULT '' ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `collaborative_service_type` -- INSERT INTO `collaborative_service_type` (`id`, `name_service_type`, `description`) VALUES (1, 'User List', 'Service to control a users list of a group (or institution).'), (2, 'Workflow Prototyping', 'Service for prototyping of a scientific workflow.'); -- -------------------------------------------------------- -- -- Estrutura da tabela `communication_service` -- CREATE TABLE IF NOT EXISTS `communication_service` ( `id` bigint(20) NOT NULL, `message` tinyint(1) NOT NULL DEFAULT '0', `issuer` tinyint(1) NOT NULL DEFAULT '0', `receiver` tinyint(1) NOT NULL DEFAULT '0', `communicationProtocol` tinyint(1) NOT NULL DEFAULT '0', `commonSense` tinyint(1) NOT NULL DEFAULT '0', `synchronism` tinyint(1) NOT NULL DEFAULT '0', `transmissionMode` tinyint(1) NOT NULL DEFAULT '0', `compromise` tinyint(1) NOT NULL DEFAULT '0', `negotiation` tinyint(1) NOT NULL DEFAULT '0', `code` tinyint(1) NOT NULL DEFAULT '0', `mode` tinyint(1) NOT NULL DEFAULT '0', `interpretation` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `communication_service` -- INSERT INTO `communication_service` (`id`, `message`, `issuer`, `receiver`, `communicationProtocol`, `commonSense`, `synchronism`, `transmissionMode`, `compromise`, `negotiation`, `code`, `mode`, `interpretation`) VALUES (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Estrutura da tabela `competence` -- CREATE TABLE IF NOT EXISTS `competence` ( `id` bigint(20) NOT NULL, `competence_name` varchar(255) NOT NULL, `description` varchar(255) DEFAULT '' ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `competence` -- INSERT INTO `competence` (`id`, `competence_name`, `description`) VALUES (1, 'JAVA Developer', 'It has the competence to desemvolver in JAVA language.'), (2, 'C Developer', 'It has the competence to desemvolver in C language.'), (3, 'Developer', 'It has the competence to develop in any programming language.'), (4, 'Programmer', 'It has the competence to develop in any programming language.'); -- -------------------------------------------------------- -- -- Estrutura da tabela `competence_group_service` -- CREATE TABLE IF NOT EXISTS `competence_group_service` ( `group_service_id` bigint(20) NOT NULL, `competence_id` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `competence_group_service` -- INSERT INTO `competence_group_service` (`group_service_id`, `competence_id`) VALUES (1, 1), (2, 2), (1, 3), (2, 4); -- -------------------------------------------------------- -- -- Estrutura da tabela `concept_xml` -- CREATE TABLE IF NOT EXISTS `concept_xml` ( `id_concept_xml` bigint(20) NOT NULL, `service` varchar(45) NOT NULL, `concept_service` varchar(45) NOT NULL, `ratio` double DEFAULT NULL, `has_concept` tinyint(1) NOT NULL DEFAULT '0', `validity` tinyint(1) NOT NULL DEFAULT '0', `conceptService1` varchar(45) DEFAULT NULL, `conceptService2` varchar(45) DEFAULT NULL, `id_struct_xml` bigint(20) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `concept_xml` -- INSERT INTO `concept_xml` (`id_concept_xml`, `service`, `concept_service`, `ratio`, `has_concept`, `validity`, `conceptService1`, `conceptService2`, `id_struct_xml`) VALUES (1, 'Group Service', 'Group', NULL, 0, 0, NULL, NULL, 1), (2, 'Group Service', 'Participant', NULL, 0, 0, NULL, NULL, 1), (3, 'Coordination Service', 'Role', 100, 1, 0, 'Manager', 'Manager', 1), (4, 'Coordination Service', 'Role', 76.32, 1, 0, 'Scientist', 'Researcher', 1), (5, 'Coordination Service', 'Status', NULL, 0, 0, NULL, NULL, 1), (6, 'Group Service', 'Group', NULL, 0, 1, NULL, NULL, 2), (7, 'Group Service', 'Participant', NULL, 0, 0, NULL, NULL, 2), (8, 'Coordination Service', 'Role', 100, 1, 0, 'Manager', 'Manager', 2), (9, 'Coordination Service', 'Role', 76.32, 1, 0, 'Scientist', 'Researcher', 2), (10, 'Coordination Service', 'Status', NULL, 0, 0, NULL, NULL, 2), (11, 'Group Service', 'Group', NULL, 0, 0, NULL, NULL, 3), (12, 'Group Service', 'Participant', NULL, 0, 0, NULL, NULL, 3), (13, 'Coordination Service', 'Role', 100, 1, 0, 'Manager', 'Manager', 3), (14, 'Coordination Service', 'Role', 76.32, 1, 0, 'Scientist', 'Researcher', 3), (15, 'Coordination Service', 'Status', NULL, 0, 0, NULL, NULL, 3), (16, 'Group Service', 'Group', NULL, 0, 1, NULL, NULL, 4), (17, 'Group Service', 'Participant', NULL, 0, 0, NULL, NULL, 4), (18, 'Coordination Service', 'Role', 100, 1, 0, 'Manager', 'Manager', 4), (19, 'Coordination Service', 'Role', 76.32, 1, 0, 'Scientist', 'Researcher', 4), (20, 'Coordination Service', 'Status', NULL, 0, 0, NULL, NULL, 4); -- -------------------------------------------------------- -- -- Estrutura da tabela `cooperation_service` -- CREATE TABLE IF NOT EXISTS `cooperation_service` ( `id` bigint(20) NOT NULL, `activity` tinyint(1) NOT NULL DEFAULT '0', `task` tinyint(1) NOT NULL DEFAULT '0', `product` tinyint(1) NOT NULL DEFAULT '0', `artifact` tinyint(1) NOT NULL DEFAULT '0', `sharedSpace` tinyint(1) NOT NULL DEFAULT '0', `resource` tinyint(1) NOT NULL DEFAULT '0', `share` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `cooperation_service` -- INSERT INTO `cooperation_service` (`id`, `activity`, `task`, `product`, `artifact`, `sharedSpace`, `resource`, `share`) VALUES (1, 0, 0, 0, 0, 0, 0, 0), (2, 0, 0, 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Estrutura da tabela `coordination_service` -- CREATE TABLE IF NOT EXISTS `coordination_service` ( `id` bigint(20) NOT NULL, `workPlan` tinyint(1) NOT NULL DEFAULT '0', `deadline` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '0', `role` tinyint(1) NOT NULL DEFAULT '0', `policy` tinyint(1) NOT NULL DEFAULT '0', `monitoring` tinyint(1) NOT NULL DEFAULT '0', `coupling` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `coordination_service` -- INSERT INTO `coordination_service` (`id`, `workPlan`, `deadline`, `status`, `role`, `policy`, `monitoring`, `coupling`) VALUES (1, 0, 0, 1, 1, 0, 0, 0), (2, 0, 0, 1, 1, 0, 0, 0); -- -------------------------------------------------------- -- -- Estrutura da tabela `Entity` -- CREATE TABLE IF NOT EXISTS `Entity` ( `idEntity` int(11) NOT NULL, `Name` varchar(255) COLLATE utf8_swedish_ci NOT NULL, `Acronym` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `Entity` -- INSERT INTO `Entity` (`idEntity`, `Name`, `Acronym`, `Description`) VALUES (1, 'Universidade Federal de Juiz de Fora', 'UFJF', 'Mestrado em Ciência da Computação'), (2, 'Instituto Federal de Educação, Ciência e Tecnologia do Sudeste de Minas Gerais', 'IF Sudeste MG', 'Bacharelado em Sistemas de Informação'); -- -------------------------------------------------------- -- -- Estrutura da tabela `Experiment` -- CREATE TABLE IF NOT EXISTS `Experiment` ( `idExperiment` int(11) NOT NULL, `Entity_idEntity` int(11) DEFAULT NULL, `Activity_idActivity` int(11) DEFAULT NULL, `idAgent` int(11) DEFAULT NULL, `Name` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `DateStarted` date DEFAULT NULL, `DateEnded` date DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Version` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `number_stages` int(11) DEFAULT NULL, `parsifal_review` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `Experiment` -- INSERT INTO `Experiment` (`idExperiment`, `Entity_idEntity`, `Activity_idActivity`, `idAgent`, `Name`, `DateStarted`, `DateEnded`, `Description`, `Version`, `number_stages`, `parsifal_review`) VALUES (1, 1, 1, 1, 'Mathematical operations', '2015-06-18', NULL, 'Given a set of input values, the workflow should return the results of operations', '01.00', NULL, NULL), (2, 1, 3, 1, 'Experimento matematico', '2015-10-08', '2015-10-10', 'Demonstracao ao NEnC', '01.00', NULL, NULL), (3, NULL, NULL, NULL, 'Teste', '2015-12-09', '2015-12-30', 'Teste de Criação', '', 2, NULL); -- -------------------------------------------------------- -- -- Estrutura da tabela `experiment_services` -- CREATE TABLE IF NOT EXISTS `experiment_services` ( `id` bigint(20) NOT NULL, `service_name` varchar(255) DEFAULT NULL, `stage` int(11) DEFAULT NULL, `latestTime_used` date DEFAULT NULL, `idExperiment` int(11) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `experiment_services` -- INSERT INTO `experiment_services` (`id`, `service_name`, `stage`, `latestTime_used`, `idExperiment`) VALUES (51, '', 0, '2015-12-02', 3), (101, 'teste 2', 1, '2015-12-02', 3), (151, 'teste 1', 0, '2015-12-02', 3); -- -------------------------------------------------------- -- -- Estrutura da tabela `group_service` -- CREATE TABLE IF NOT EXISTS `group_service` ( `id` bigint(20) NOT NULL, `participant` tinyint(1) NOT NULL DEFAULT '0', `belief` tinyint(1) NOT NULL DEFAULT '0', `confidence` tinyint(1) NOT NULL DEFAULT '0', `motivation` tinyint(1) NOT NULL DEFAULT '0', `groupp` tinyint(1) NOT NULL DEFAULT '0', `competence` tinyint(1) NOT NULL DEFAULT '0', `goal` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `group_service` -- INSERT INTO `group_service` (`id`, `participant`, `belief`, `confidence`, `motivation`, `groupp`, `competence`, `goal`) VALUES (1, 1, 0, 0, 0, 1, 1, 0), (2, 1, 0, 0, 0, 1, 1, 0); -- -------------------------------------------------------- -- -- Estrutura da tabela `InputPort` -- CREATE TABLE IF NOT EXISTS `InputPort` ( `idPort` int(11) NOT NULL, `Name` varchar(255) DEFAULT NULL, `Description` varchar(255) DEFAULT NULL, `Task_idTask` int(11) NOT NULL, `Value` varchar(255) DEFAULT NULL, `Wf` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `InputPort` -- INSERT INTO `InputPort` (`idPort`, `Name`, `Description`, `Task_idTask`, `Value`, `Wf`) VALUES (1, 'Starting port workflow', 'Port of task with valeu ', 1, '6', NULL), (2, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (3, 'Starting port workflow', 'Port of task with valeu ', 1, '8', NULL), (4, 'Starting port workflow', 'Port of task with valeu ', 1, '8', NULL), (5, 'Starting port workflow', 'Port of task with valeu ', 1, '3', NULL), (6, 'Starting port workflow', 'Port of task with valeu ', 1, '7', NULL), (7, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (8, 'Starting port task1', '1 task input with valueinput 0', 1, '0', NULL), (9, 'Starting port task1', '1 task input with valueinput 0', 1, '0', NULL), (10, 'Starting port workflow', 'Port of task with valeu ', 1, '3', NULL), (11, 'Starting port workflow', 'Port of task with valeu ', 1, '7', NULL), (12, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (13, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (14, 'Starting port task1', '1 task input with valueinput 12', 1, '12', NULL), (15, 'Starting port task1', '1 task input with valueinput 12', 1, '12', NULL), (16, 'Starting port workflow', 'Port of task with valeu ', 1, '3', NULL), (17, 'Starting port workflow', 'Port of task with valeu ', 1, '7', NULL), (18, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (19, 'Starting port task5', '5 task input with valueinput 8', 5, '8', NULL), (20, 'Starting port task5', '5 task input with valueinput 8', 5, '8', NULL), (21, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (22, 'Starting port task5', '5 task input with valueinput -12', 5, '-12', NULL), (23, 'Starting port task5', '5 task input with valueinput -12', 5, '-12', NULL), (24, 'Starting port workflow', 'Port of task with valeu ', 1, '3', NULL), (25, 'Starting port workflow', 'Port of task with valeu ', 1, '7', NULL), (26, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (27, 'Starting port task5', '5 task input with valueinput 8', 5, '8', NULL), (28, 'Starting port task5', '5 task input with valueinput 8', 5, '8', NULL), (29, 'Starting port workflow', 'Port of task with valeu ', 1, '5', NULL), (30, 'Starting port task5', '5 task input with valueinput 12', 5, '12', NULL), (31, 'Starting port task5', '5 task input with valueinput 12', 5, '12', NULL), (32, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (33, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (34, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (35, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 8', 5, '8', NULL), (36, 'Starting port taskMultiplication', 'Task Multiplication input with valueinput 8', 5, '8', NULL), (37, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (38, 'Starting port task Multiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (39, 'Starting port taskMultiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (40, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (41, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (42, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (43, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (44, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (45, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (46, 'Starting port task Multiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (47, 'Starting port task Multiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (48, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (49, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (50, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (51, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (52, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (53, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (54, 'Starting port task Multiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (55, 'Starting port task Multiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (56, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (57, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (58, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (59, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (60, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (61, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 12', 5, '12', NULL), (62, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 12', 5, '12', NULL), (63, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (64, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (65, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (66, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (67, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (68, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (69, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 12', 5, '12', NULL), (70, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 12', 5, '12', NULL), (71, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (72, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (73, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (74, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (75, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (76, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (77, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (78, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (79, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (80, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (81, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (82, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (83, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (84, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (85, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (86, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (87, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (88, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (89, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (90, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (91, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (92, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (93, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (94, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (95, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (96, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (97, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (98, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (99, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (100, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (101, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (102, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (103, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (104, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (105, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (106, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (107, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (108, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (109, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (110, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (111, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (112, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (113, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (114, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (115, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (116, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (117, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (118, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (119, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (120, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (121, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (122, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (123, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (124, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (125, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (126, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (127, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (128, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (129, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (130, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (131, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (132, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (133, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (134, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (135, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (136, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (137, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (138, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (139, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (140, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (141, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (142, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (143, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (144, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (145, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (146, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (147, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (148, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (149, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (150, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (151, 'Starting port workflow to Sum', 'Port of task with valeu 7', 1, '7', NULL), (152, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (153, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 8', 5, '8', NULL), (154, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 8', 5, '8', NULL), (155, 'Starting port workflow to Sum', 'Port of task with valeu 5', 1, '5', NULL), (156, 'Starting port task Multiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (157, 'Starting port task Multiplication', 'Task Multiplication input with valueinput -12', 5, '-12', NULL), (158, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (159, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (160, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (161, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (162, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (163, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (164, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (165, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (166, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (167, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (168, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (169, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (170, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (171, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (172, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (173, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (174, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (175, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (176, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (177, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (178, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (179, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (180, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (181, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (182, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (183, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (184, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (185, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (186, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (187, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (188, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (189, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (190, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (191, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (192, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (193, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (194, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (195, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (196, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (197, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (198, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (199, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (200, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (201, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (202, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (203, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (204, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (205, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (206, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (207, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (208, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (209, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (210, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (211, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (212, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (213, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (214, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (215, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (216, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (217, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (218, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (219, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (220, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (221, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (222, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (223, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (224, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (225, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (226, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (227, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (228, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (229, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (230, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (231, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (232, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (233, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (234, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (235, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (236, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (237, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (238, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (239, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (240, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (241, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (242, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (243, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (244, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (245, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (246, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (247, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (248, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (249, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (250, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (251, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (252, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (253, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (254, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (255, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (256, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (257, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (258, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (259, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (260, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (261, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (262, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (263, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (264, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (265, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (266, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (267, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (268, 'Starting port workflow to Sum', 'Port of task with valeu 3', 1, '3', NULL), (269, 'Starting port workflow to Subtraction', 'Port of task with valeu 7', 3, '7', NULL), (270, 'Starting port workflow to Sum', 'Port of task with valeu 2', 1, '2', NULL), (271, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (272, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 5', 5, '5', NULL), (273, 'Starting port workflow to Subtraction', 'Port of task with valeu 5', 3, '5', NULL), (274, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL), (275, 'Starting port task Multiplication', 'Task Multiplication input with valueinput 2', 5, '2', NULL); -- -------------------------------------------------------- -- -- Estrutura da tabela `interoperability_struct_xml` -- CREATE TABLE IF NOT EXISTS `interoperability_struct_xml` ( `id_struct_xml` bigint(20) NOT NULL, `interoperability_name` varchar(45) NOT NULL DEFAULT 'Teste', `first_service_id` bigint(20) NOT NULL, `second_service_id` bigint(20) NOT NULL, `agent_id` bigint(20) NOT NULL DEFAULT '100', `first_type_service` varchar(45) NOT NULL, `second_type_service` varchar(45) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `interoperability_struct_xml` -- INSERT INTO `interoperability_struct_xml` (`id_struct_xml`, `interoperability_name`, `first_service_id`, `second_service_id`, `agent_id`, `first_type_service`, `second_type_service`) VALUES (1, '1-User List UFJF-2-User List USP-100', 1, 2, 100, 'User List', 'User List'), (2, '1-User List UFJF-2-User List USP-100', 1, 2, 100, 'User List', 'User List'), (3, '1-User List UFJF-2-User List USP-100', 1, 2, 100, 'User List', 'User List'), (4, '1-User List UFJF-2-User List USP-100', 1, 2, 100, 'User List', 'User List'); -- -------------------------------------------------------- -- -- Estrutura da tabela `IsPartOf` -- CREATE TABLE IF NOT EXISTS `IsPartOf` ( `idIsPartOf` int(11) NOT NULL, `Agent_idAgent` int(11) DEFAULT NULL, `ResearchGroup_idResearchGroup` int(11) DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `IsPartOf` -- INSERT INTO `IsPartOf` (`idIsPartOf`, `Agent_idAgent`, `ResearchGroup_idResearchGroup`, `Description`) VALUES (1, 2, 1, 'Professora de Pós-graduação'), (2, 1, 1, 'Aluno de Pós-graduação'), (3, 3, 1, 'Aluno de Pós-graduação'), (4, 4, 1, 'Professor de Pós-graduação'); -- -------------------------------------------------------- -- -- Estrutura da tabela `OutputPort` -- CREATE TABLE IF NOT EXISTS `OutputPort` ( `idPort` int(11) NOT NULL, `Name` varchar(255) DEFAULT NULL, `Description` varchar(255) DEFAULT NULL, `Task_idTask` int(11) NOT NULL, `Value` varchar(255) DEFAULT NULL, `Wf` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `OutputPort` -- INSERT INTO `OutputPort` (`idPort`, `Name`, `Description`, `Task_idTask`, `Value`, `Wf`) VALUES (1, 'Ended Port Task 1', 'Task output with valueoutput 11', 1, '11', NULL), (2, 'Ended Port Task 1', 'Task output with valueoutput 16', 1, '16', NULL), (3, 'Ended Port Task 1', 'Task output with valueoutput 12', 1, '12', NULL), (4, 'Ended Port Task 1', 'Task output with valueoutput 12', 1, '12', NULL), (5, 'Ended Port Task 1', 'Task output with valueoutput 15', 1, '15', NULL), (6, 'Ended Port Task 1', 'Task output with valueoutput 8', 1, '8', NULL), (7, 'Ended Port Task 1', 'Task output with valueoutput 8', 1, '8', NULL), (8, 'Ended Port Task 1', 'Task output with valueoutput 20', 1, '20', NULL), (9, 'Ended Port Task 1', 'Task output with valueoutput 12', 1, '12', NULL), (10, 'Ended Port Task 1', 'Task output with valueoutput 12', 1, '12', NULL), (11, 'Ended Port Task 1', 'Task output with valueoutput 8', 1, '8', NULL), (12, 'Ended Port Task 1', 'Task output with valueoutput 8', 1, '8', NULL), (13, 'Ended Port Task 1', 'Task output with valueoutput -12', 1, '-12', NULL), (14, 'Ended Port Task 1', 'Task output with valueoutput -12', 1, '-12', NULL), (15, 'Ended Port Task 5', 'Task output with valueoutput 96', 5, '96', NULL), (16, 'Ended Port Task 1', 'Task output with valueoutput 8', 1, '8', NULL), (17, 'Ended Port Task 1', 'Task output with valueoutput 8', 1, '8', NULL), (18, 'Ended Port Task 1', 'Task output with valueoutput 12', 1, '12', NULL), (19, 'Ended Port Task 1', 'Task output with valueoutput 12', 1, '12', NULL), (20, 'Ended Port Task 5', 'Task output with valueoutput 96', 5, '96', NULL), (21, 'Ended Port Task Sum', 'Task Sumoutput with valueoutput 8', 1, '8', NULL), (22, 'Ended Port Task Sum', 'Task Sum output with valueoutput 8', 1, '8', NULL), (23, 'Ended Port Task Sum', 'Task Sumoutput with valueoutput -12', 1, '-12', NULL), (24, 'Ended Port Task Sum', 'Task Sum output with valueoutput -12', 1, '-12', NULL), (25, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 96', 5, '96', NULL), (26, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (27, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (28, 'Ended Port Task Sum', 'Task Sum output with valueoutput -12', 1, '-12', NULL), (29, 'Ended Port Task Sum', 'Task Sum output with valueoutput -12', 1, '-12', NULL), (30, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 60', 5, '60', NULL), (31, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (32, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (33, 'Ended Port Task Sum', 'Task Sum output with valueoutput -12', 1, '-12', NULL), (34, 'Ended Port Task Sum', 'Task Sum output with valueoutput -12', 1, '-12', NULL), (35, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 60', 5, '60', NULL), (36, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (37, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (38, 'Ended Port Task Sum', 'Task Sum output with valueoutput 12', 1, '12', NULL), (39, 'Ended Port Task Sum', 'Task Sum output with valueoutput 12', 1, '12', NULL), (40, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 60', 5, '60', NULL), (41, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (42, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (43, 'Ended Port Task Sum', 'Task Sum output with valueoutput 12', 1, '12', NULL), (44, 'Ended Port Task Sum', 'Task Sum output with valueoutput 12', 1, '12', NULL), (45, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 60', 5, '60', NULL), (46, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (47, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (48, 'Ended Port Task Sum', 'Task Sum output with valueoutput 2', 1, '2', NULL), (49, 'Ended Port Task Sum', 'Task Sum output with valueoutput 2', 1, '2', NULL), (50, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (51, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (52, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (53, 'Ended Port Task Sum', 'Task Sum output with valueoutput 2', 1, '2', NULL), (54, 'Ended Port Task Sum', 'Task Sum output with valueoutput 2', 1, '2', NULL), (55, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (56, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (57, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (58, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (59, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (60, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (61, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (62, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (63, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (64, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (65, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (66, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (67, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (68, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (69, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (70, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (71, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (72, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (73, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (74, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (75, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (76, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (77, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (78, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (79, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (80, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (81, 'Ended Port Task Sum', 'Task Sum output with valueoutput 8', 1, '8', NULL), (82, 'Ended Port Task Sum', 'Task Sum output with valueoutput 8', 1, '8', NULL), (83, 'Ended Port Task Sum', 'Task Sum output with valueoutput -12', 1, '-12', NULL), (84, 'Ended Port Task Sum', 'Task Sum output with valueoutput -12', 1, '-12', NULL), (85, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 96', 5, '96', NULL), (86, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (87, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (88, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (89, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (90, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (91, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (92, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (93, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (94, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (95, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (96, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (97, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (98, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (99, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (100, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (101, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (102, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (103, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (104, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (105, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (106, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (107, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (108, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (109, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (110, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (111, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (112, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (113, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (114, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (115, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (116, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (117, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (118, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (119, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (120, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (121, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (122, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (123, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (124, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (125, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (126, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (127, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (128, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (129, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (130, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (131, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (132, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (133, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (134, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (135, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (136, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (137, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (138, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (139, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL), (140, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (141, 'Ended Port Task Sum', 'Task Sum output with valueoutput 5', 1, '5', NULL), (142, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (143, 'Ended Port Task Subtraction', 'Task Subtraction output with valueoutput 2', 3, '2', NULL), (144, 'Ended Port Task Multiplication', 'Task Multiplication output with valueoutput 10', 5, '10', NULL); -- -------------------------------------------------------- -- -- Estrutura da tabela `ResearchGroup` -- CREATE TABLE IF NOT EXISTS `ResearchGroup` ( `idResearchGroup` int(11) NOT NULL, `Name` varchar(255) COLLATE utf8_swedish_ci NOT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Agent_idAgent_chef` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `ResearchGroup` -- INSERT INTO `ResearchGroup` (`idResearchGroup`, `Name`, `Description`, `Agent_idAgent_chef`) VALUES (1, 'NEnC', 'Núcleo de Engenharia do Conhecimento', 2); -- -------------------------------------------------------- -- -- Estrutura da tabela `roler` -- CREATE TABLE IF NOT EXISTS `roler` ( `id` bigint(20) NOT NULL, `role_name` varchar(255) NOT NULL, `hierarchy_level` int(11) DEFAULT '0', `description` varchar(255) DEFAULT '' ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `roler` -- INSERT INTO `roler` (`id`, `role_name`, `hierarchy_level`, `description`) VALUES (1, 'Manager', 1, 'Manager of a scientific experiment.'), (2, 'Scientist', 5, 'Scientist of a scientific experiment.'), (3, 'Researcher', 5, 'Researcher of a scientific experiment.'), (4, 'Supervisor', 3, 'Supervisor of a scientific experiment.'); -- -------------------------------------------------------- -- -- Estrutura da tabela `role_coordination_service` -- CREATE TABLE IF NOT EXISTS `role_coordination_service` ( `coordination_service_id` bigint(20) NOT NULL, `role_id` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `role_coordination_service` -- INSERT INTO `role_coordination_service` (`coordination_service_id`, `role_id`) VALUES (1, 1), (2, 1), (1, 2), (2, 3); -- -------------------------------------------------------- -- -- Estrutura da tabela `sequence` -- CREATE TABLE IF NOT EXISTS `sequence` ( `SEQ_NAME` varchar(50) NOT NULL, `SEQ_COUNT` decimal(38,0) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `sequence` -- INSERT INTO `sequence` (`SEQ_NAME`, `SEQ_COUNT`) VALUES ('SEQ_GEN', 400); -- -------------------------------------------------------- -- -- Estrutura da tabela `SGWfC` -- CREATE TABLE IF NOT EXISTS `SGWfC` ( `idSGWfC` int(11) NOT NULL, `Name` varchar(255) DEFAULT NULL, `Description` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `SGWfC` -- INSERT INTO `SGWfC` (`idSGWfC`, `Name`, `Description`) VALUES (1, 'Kepler', 'Kepler é um software livre do sistema para a concepção, execução, reutilizando, evoluindo, arquivamento e compartilhamento científicos'), (2, 'Taverna Workbench', 'Taverna é um conjunto de ferramentas usadas para criar e executar workflows científicos e ajuda na experimentação in silico'); -- -------------------------------------------------------- -- -- Estrutura da tabela `steps_scientific_experimentation` -- CREATE TABLE IF NOT EXISTS `steps_scientific_experimentation` ( `id` bigint(20) NOT NULL, `name_step` varchar(255) NOT NULL, `number_step` int(11) NOT NULL DEFAULT '0', `description` varchar(255) DEFAULT '' ) ENGINE=InnoDB AUTO_INCREMENT=352 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `steps_scientific_experimentation` -- INSERT INTO `steps_scientific_experimentation` (`id`, `name_step`, `number_step`, `description`) VALUES (201, 'Problem Investigation', 1, 'Primeira etapa do ciclo de vida de um experimento científico, segundo BELLOUM et al., (2011).'), (251, 'Experiment Prototyping', 2, 'Segunda etapa do ciclo de vida de um experimento científico, segundo BELLOUM et al., (2011).'), (301, 'Experiment Execution', 3, 'Terceira etapa do ciclo de vida de um experimento científico, segundo BELLOUM et al., (2011).'), (351, 'Results Publication', 4, 'Quarta etapa do ciclo de vida de um experimento científico, segundo BELLOUM et al., (2011).'); -- -------------------------------------------------------- -- -- Estrutura da tabela `steps_service` -- CREATE TABLE IF NOT EXISTS `steps_service` ( `collab_service_id` bigint(20) NOT NULL, `step_id` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `steps_service` -- INSERT INTO `steps_service` (`collab_service_id`, `step_id`) VALUES (1, 201), (2, 201), (2, 251), (2, 301), (2, 351); -- -------------------------------------------------------- -- -- Estrutura da tabela `Task` -- CREATE TABLE IF NOT EXISTS `Task` ( `idTask` int(11) NOT NULL, `Name` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Type` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `Task` -- INSERT INTO `Task` (`idTask`, `Name`, `Type`, `Description`) VALUES (1, 'Sum', 'Integer', 'Sum of two values'), (2, 'Sum', 'Float', 'Sum of two values'), (3, 'Subtraction', 'Integer', 'Subtraction of two values'), (4, 'Subtraction', 'Float', 'Subtraction of two values'), (5, 'Multiplication', 'Integer', 'Multiplication of two values'), (6, 'Multiplication', 'Float', 'Multiplication of two values'), (7, 'Division', 'Float', 'Division of two values'); -- -------------------------------------------------------- -- -- Estrutura da tabela `taverna_workflow` -- CREATE TABLE IF NOT EXISTS `taverna_workflow` ( `id` bigint(20) NOT NULL, `created_at` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `t2flow` mediumtext, `idAgent` int(11) NOT NULL, `experiment_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estrutura da tabela `taverna_workflow_input` -- CREATE TABLE IF NOT EXISTS `taverna_workflow_input` ( `id` bigint(20) NOT NULL, `name` varchar(255) DEFAULT NULL, `taverna_workflow_id` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estrutura da tabela `taverna_workflow_run` -- CREATE TABLE IF NOT EXISTS `taverna_workflow_run` ( `id` bigint(20) NOT NULL, `status` varchar(255) DEFAULT NULL, `uuid` varchar(255) DEFAULT NULL, `taverna_workflow_id` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estrutura da tabela `taverna_workflow_run_input_value` -- CREATE TABLE IF NOT EXISTS `taverna_workflow_run_input_value` ( `id` bigint(20) NOT NULL, `input_value` varchar(255) DEFAULT NULL, `taverna_workflow_input_id` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estrutura da tabela `Used` -- CREATE TABLE IF NOT EXISTS `Used` ( `idUsed` int(11) NOT NULL, `Task_idTask` int(11) NOT NULL, `Workflow_idWorkflow` int(11) NOT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=210 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `Used` -- INSERT INTO `Used` (`idUsed`, `Task_idTask`, `Workflow_idWorkflow`, `Description`) VALUES (1, 1, 1, 'Task was used in workflow'), (2, 1, 1, 'Task was used in workflow'), (3, 1, 2, 'Task was used in workflow'), (4, 1, 2, 'Task was used in workflow'), (5, 1, 2, 'Task was used in workflow'), (6, 1, 2, 'Task 1 was used in workflow 2'), (7, 1, 3, 'Task was used in workflow'), (8, 1, 3, 'Task was used in workflow'), (9, 1, 3, 'Task was used in workflow'), (10, 1, 3, 'Task was used in workflow'), (11, 1, 3, 'Task 1 was used in workflow 3'), (12, 1, 4, 'Task was used in workflow'), (13, 1, 4, 'Task was used in workflow'), (14, 1, 4, 'Task was used in workflow'), (15, 5, 4, 'Task 5 was used in workflow 4'), (16, 1, 4, 'Task was used in workflow'), (17, 5, 4, 'Task 5 was used in workflow 4'), (18, 1, 5, 'Task was used in workflow'), (19, 1, 5, 'Task was used in workflow'), (20, 1, 5, 'Task was used in workflow'), (21, 5, 5, 'Task 5 was used in workflow 5'), (22, 1, 5, 'Task was used in workflow'), (23, 5, 5, 'Task 5 was used in workflow 5'), (24, 1, 4, 'TaskSumwas used in workflowSimpleCount'), (25, 1, 4, 'TaskSumwas used in workflowSimpleCount'), (26, 1, 4, 'TaskSumwas used in workflowSimpleCount'), (27, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (28, 1, 4, 'TaskSumwas used in workflowSimpleCount'), (29, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (30, 1, 4, 'Task Sum was used in workflow SimpleCount'), (31, 1, 4, 'Task Sum was used in workflow SimpleCount'), (32, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (33, 1, 4, 'Task Sum was used in workflow SimpleCount'), (34, 1, 4, 'Task Sum was used in workflow SimpleCount'), (35, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (36, 1, 4, 'Task Sum was used in workflow SimpleCount'), (37, 1, 4, 'Task Sum was used in workflow SimpleCount'), (38, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (39, 1, 4, 'Task Sum was used in workflow SimpleCount'), (40, 1, 4, 'Task Sum was used in workflow SimpleCount'), (41, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (42, 1, 4, 'Task Sum was used in workflow SimpleCount'), (43, 1, 4, 'Task Sum was used in workflow SimpleCount'), (44, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (45, 1, 4, 'Task Sum was used in workflow SimpleCount'), (46, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (47, 1, 4, 'Task Sum was used in workflow SimpleCount'), (48, 1, 4, 'Task Sum was used in workflow SimpleCount'), (49, 1, 4, 'Task Sum was used in workflow SimpleCount'), (50, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (51, 1, 4, 'Task Sum was used in workflow SimpleCount'), (52, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (53, 1, 4, 'Task Sum was used in workflow SimpleCount'), (54, 1, 4, 'Task Sum was used in workflow SimpleCount'), (55, 1, 4, 'Task Sum was used in workflow SimpleCount'), (56, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (57, 1, 4, 'Task Sum was used in workflow SimpleCount'), (58, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (59, 1, 4, 'Task Sum was used in workflow SimpleCount'), (60, 1, 4, 'Task Sum was used in workflow SimpleCount'), (61, 1, 4, 'Task Sum was used in workflow SimpleCount'), (62, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (63, 1, 4, 'Task Sum was used in workflow SimpleCount'), (64, 5, 4, 'Task Multiplication was used in workflow SimpleCount'), (65, 1, 4, 'Task Sum was used in workflow SimpleCount'), (192, 1, 6, 'Task Sum was used in workflow Demonstracao'), (193, 3, 6, 'Task Subtraction was used in workflow Demonstracao'), (194, 1, 6, 'Task Sum was used in workflow Demonstracao'), (195, 5, 6, 'Task Multiplication was used in workflow Demonstracao'), (196, 3, 6, 'Task Subtraction was used in workflow Demonstracao'), (197, 5, 6, 'Task Multiplication was used in workflow Demonstracao'), (198, 1, 6, 'Task Sum was used in workflow Demonstracao'), (199, 3, 6, 'Task Subtraction was used in workflow Demonstracao'), (200, 1, 6, 'Task Sum was used in workflow Demonstracao'), (201, 5, 6, 'Task Multiplication was used in workflow Demonstracao'), (202, 3, 6, 'Task Subtraction was used in workflow Demonstracao'), (203, 5, 6, 'Task Multiplication was used in workflow Demonstracao'), (204, 1, 6, 'Task Sum was used in workflow Demonstracao'), (205, 3, 6, 'Task Subtraction was used in workflow Demonstracao'), (206, 1, 6, 'Task Sum was used in workflow Demonstracao'), (207, 5, 6, 'Task Multiplication was used in workflow Demonstracao'), (208, 3, 6, 'Task Subtraction was used in workflow Demonstracao'), (209, 5, 6, 'Task Multiplication was used in workflow Demonstracao'); -- -------------------------------------------------------- -- -- Estrutura da tabela `WasAssociatedWith` -- CREATE TABLE IF NOT EXISTS `WasAssociatedWith` ( `idWasAssociatedWith` int(11) NOT NULL, `Workflow_idWorkflow` int(11) DEFAULT NULL, `Experiment_Experiment` int(11) DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `WasAssociatedWith` -- INSERT INTO `WasAssociatedWith` (`idWasAssociatedWith`, `Workflow_idWorkflow`, `Experiment_Experiment`, `Description`) VALUES (1, 1, 1, NULL), (2, 2, 1, NULL), (3, 3, 1, NULL), (4, 4, 1, NULL), (5, 5, 1, NULL), (6, 1, 1, 'Workflow was attributed to experimento'), (7, 1, 1, 'Workflow was attributed to experimento'), (8, 2, 1, 'Workflow was attributed to experimento'), (9, 3, 1, 'Workflow was attributed to experimento'), (10, 4, 1, 'Workflow was attributed to experimento'), (11, 5, 1, 'Workflow was attributed to experimento'), (12, 4, 1, 'Workflow SimpleCount was attributed to experimento Mathematical operations'), (13, 4, 1, 'Workflow SimpleCount was attributed to experimento Mathematical operations'), (14, 4, 1, 'Workflow SimpleCount was attributed to experimento Mathematical operations'), (15, 4, 1, 'Workflow SimpleCount was attributed to experimento Mathematical operations'), (16, 4, 1, 'Workflow SimpleCount was attributed to experimento Mathematical operations'), (17, 4, 1, 'Workflow SimpleCount was attributed to experimento Mathematical operations'), (18, 4, 1, 'Workflow SimpleCount was attributed to experimento Mathematical operations'), (41, 6, 2, 'Workflow Demonstracao was attributed to experimento Experimento matematico'), (42, 6, 2, 'Workflow Demonstracao was attributed to experimento Experimento matematico'), (43, 6, 2, 'Workflow Demonstracao was attributed to experimento Experimento matematico'); -- -------------------------------------------------------- -- -- Estrutura da tabela `WasControledBy` -- CREATE TABLE IF NOT EXISTS `WasControledBy` ( `idWasControledBy` int(11) NOT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Activity_idActivity` int(11) NOT NULL, `Agent_idAgent` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -------------------------------------------------------- -- -- Estrutura da tabela `WasDerivedFrom` -- CREATE TABLE IF NOT EXISTS `WasDerivedFrom` ( `idWasDerivedFrom` int(11) NOT NULL, `DerivedOf` int(11) NOT NULL, `DerivedTo` int(11) NOT NULL, `Type` varchar(255) COLLATE utf8_swedish_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `WasDerivedFrom` -- INSERT INTO `WasDerivedFrom` (`idWasDerivedFrom`, `DerivedOf`, `DerivedTo`, `Type`) VALUES (1, 1, 2, 'Evolution'), (2, 2, 3, 'Evolution'); -- -------------------------------------------------------- -- -- Estrutura da tabela `WasEndedBy` -- CREATE TABLE IF NOT EXISTS `WasEndedBy` ( `idWasEndedBy` int(11) NOT NULL, `Task_idTask` int(11) NOT NULL, `Activity_idActivity` int(11) NOT NULL, `DateEnded` datetime DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `WasEndedBy` -- INSERT INTO `WasEndedBy` (`idWasEndedBy`, `Task_idTask`, `Activity_idActivity`, `DateEnded`, `Description`) VALUES (1, 1, 1, '2015-08-06 21:12:24', 'task 1 ended to activity 1'), (2, 1, 1, '2015-08-06 21:21:27', 'task 1 ended to activity 1'), (3, 1, 1, '2015-08-06 21:29:02', 'task 1 ended to activity 1'), (4, 1, 1, '2015-08-06 21:29:03', 'task 1 ended to activity 1'), (5, 1, 1, '2015-08-06 21:31:49', 'task 1 ended to activity 1'), (6, 1, 1, '2015-08-06 21:31:50', 'task 1 ended to activity 1'), (7, 1, 1, '2015-08-06 21:31:51', 'task 1 ended to activity 1'), (8, 1, 1, '2015-08-06 21:36:37', 'task 1 ended to activity 1'), (9, 1, 1, '2015-08-06 21:36:39', 'task 1 ended to activity 1'), (10, 5, 1, '2015-08-06 21:36:39', 'task 5 ended to activity 1'), (11, 1, 1, '2015-08-06 21:39:19', 'task 1 ended to activity 1'), (12, 1, 1, '2015-08-06 21:39:20', 'task 1 ended to activity 1'), (13, 5, 1, '2015-08-06 21:39:20', 'task 5 ended to activity 1'), (41, 1, 3, '2015-10-08 16:00:46', 'Task Sum ended to activity Calculo'), (42, 3, 3, '2015-10-08 16:00:47', 'Task Subtraction ended to activity Calculo'), (43, 5, 3, '2015-10-08 16:00:47', 'Task Multiplication ended to activity Calculo'), (44, 1, 3, '2015-10-19 17:06:36', 'Task Sum ended to activity Calculo'), (45, 3, 3, '2015-10-19 17:06:37', 'Task Subtraction ended to activity Calculo'), (46, 5, 3, '2015-10-19 17:06:37', 'Task Multiplication ended to activity Calculo'), (47, 1, 3, '2015-10-19 19:07:43', 'Task Sum ended to activity Calculo'), (48, 3, 3, '2015-10-19 19:07:47', 'Task Subtraction ended to activity Calculo'), (49, 5, 3, '2015-10-19 19:07:47', 'Task Multiplication ended to activity Calculo'); -- -------------------------------------------------------- -- -- Estrutura da tabela `WasEndedByWT` -- CREATE TABLE IF NOT EXISTS `WasEndedByWT` ( `idWasEndedByWT` int(11) NOT NULL, `Workflow_idWorkflow` int(11) NOT NULL, `Task_idTask` int(11) NOT NULL, `Ended` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -------------------------------------------------------- -- -- Estrutura da tabela `WasGeneratedBy` -- CREATE TABLE IF NOT EXISTS `WasGeneratedBy` ( `idWasGeneratedBy` int(11) NOT NULL, `Experiment_Experiment` int(11) NOT NULL, `ResearchGroup_idResearchGroup` int(11) NOT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -------------------------------------------------------- -- -- Estrutura da tabela `WasInformedBy` -- CREATE TABLE IF NOT EXISTS `WasInformedBy` ( `idWasInformedBy` int(11) NOT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Task_idTask` int(11) NOT NULL, `Activity_idActivity` int(11) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `WasInformedBy` -- INSERT INTO `WasInformedBy` (`idWasInformedBy`, `Description`, `Task_idTask`, `Activity_idActivity`) VALUES (1, 'task 1 was successful for activity 1', 1, 1), (2, 'task 1 was successful for activity 1', 1, 1), (3, 'task 1 was successful for activity 1', 1, 1), (4, 'task 1 was successful for activity 1', 1, 1), (5, 'task 1 was successful for activity 1', 1, 1), (6, 'task 1 was successful for activity 1', 1, 1), (7, 'task 1 was successful for activity 1', 1, 1), (8, 'task 1 was successful for activity 1', 1, 1), (9, 'task 1 was successful for activity 1', 1, 1), (10, 'task 5 was successful for activity 1', 5, 1), (11, 'task 1 was successful for activity 1', 1, 1), (12, 'task 1 was successful for activity 1', 1, 1), (13, 'task 5 was successful for activity 1', 5, 1), (59, 'Task Sum was successful for activity Calculo', 1, 3), (60, 'Task Subtraction was successful for activity Calculo', 3, 3), (61, 'Task Multiplication was successful for activity Calculo', 5, 3), (62, 'Task Sum was successful for activity Calculo', 1, 3), (63, 'Task Subtraction was successful for activity Calculo', 3, 3), (64, 'Task Multiplication was successful for activity Calculo', 5, 3), (65, 'Task Sum was successful for activity Calculo', 1, 3), (66, 'Task Subtraction was successful for activity Calculo', 3, 3), (67, 'Task Multiplication was successful for activity Calculo', 5, 3), (68, 'Task Sum was successful for activity Calculo', 1, 3), (69, 'Task Subtraction was successful for activity Calculo', 3, 3), (70, 'Task Multiplication was successful for activity Calculo', 5, 3); -- -------------------------------------------------------- -- -- Estrutura da tabela `WasRevisionOf` -- CREATE TABLE IF NOT EXISTS `WasRevisionOf` ( `idWasRevisionOf` int(11) NOT NULL, `RevisionOf` int(11) NOT NULL, `RevisionTo` int(11) NOT NULL, `Type` varchar(255) COLLATE utf8_swedish_ci DEFAULT 'Corrective' ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `WasRevisionOf` -- INSERT INTO `WasRevisionOf` (`idWasRevisionOf`, `RevisionOf`, `RevisionTo`, `Type`) VALUES (1, 4, 5, 'Corretive'); -- -------------------------------------------------------- -- -- Estrutura da tabela `WasStartedBy` -- CREATE TABLE IF NOT EXISTS `WasStartedBy` ( `idWasStartedBy` int(11) NOT NULL, `Task_idTask` int(11) NOT NULL, `Activity_idActivity` int(11) NOT NULL, `DateStarted` datetime DEFAULT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `WasStartedBy` -- INSERT INTO `WasStartedBy` (`idWasStartedBy`, `Task_idTask`, `Activity_idActivity`, `DateStarted`, `Description`) VALUES (1, 1, 1, '2015-08-06 21:12:24', 'task 1 started to activity 1'), (2, 1, 1, '2015-08-06 21:21:26', 'task 1 started to activity 1'), (3, 1, 1, '2015-08-06 21:29:01', 'task 1 started to activity 1'), (4, 1, 1, '2015-08-06 21:29:02', 'task 1 started to activity 1'), (5, 1, 1, '2015-08-06 21:31:48', 'task 1 started to activity 1'), (6, 1, 1, '2015-08-06 21:31:51', 'task 1 started to activity 1'), (7, 5, 1, '2015-08-06 21:36:37', 'task 5 started to activity 1'), (8, 5, 1, '2015-08-06 21:36:39', 'task 5 started to activity 1'), (9, 1, 1, '2015-08-06 21:39:17', 'task 1 started to activity 1'), (10, 5, 1, '2015-08-06 21:39:18', 'task 5 started to activity 1'), (11, 5, 1, '2015-08-06 21:39:20', 'task 5 started to activity 1'), (32, 5, 3, '2015-10-08 16:00:46', 'Task Multiplication started to activity Calculo'), (33, 5, 3, '2015-10-08 16:00:47', 'Task Multiplication started to activity Calculo'), (34, 5, 3, '2015-10-19 17:06:36', 'Task Multiplication started to activity Calculo'), (35, 5, 3, '2015-10-19 17:06:37', 'Task Multiplication started to activity Calculo'), (36, 5, 3, '2015-10-19 19:07:42', 'Task Multiplication started to activity Calculo'), (37, 5, 3, '2015-10-19 19:07:47', 'Task Multiplication started to activity Calculo'); -- -------------------------------------------------------- -- -- Estrutura da tabela `WasStartedByWT` -- CREATE TABLE IF NOT EXISTS `WasStartedByWT` ( `idWasStartedByWT` int(11) NOT NULL, `Workflow_idWorkflow` int(11) NOT NULL, `Task_idTask` int(11) NOT NULL, `Started` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -------------------------------------------------------- -- -- Estrutura da tabela `Workflow` -- CREATE TABLE IF NOT EXISTS `Workflow` ( `idWorkflow` int(11) NOT NULL, `Name` varchar(255) COLLATE utf8_swedish_ci NOT NULL, `Description` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `Version` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `DateVersion` date DEFAULT NULL, `NumberStage` int(11) DEFAULT NULL, `link` varchar(255) COLLATE utf8_swedish_ci DEFAULT NULL, `SGWfC_idSGWfC` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci; -- -- Extraindo dados da tabela `Workflow` -- INSERT INTO `Workflow` (`idWorkflow`, `Name`, `Description`, `Version`, `DateVersion`, `NumberStage`, `link`, `SGWfC_idSGWfC`) VALUES (1, 'SimpleAddition', 'Sum of two values', '01.00.00', '2015-06-18', 1, NULL, 1), (2, 'SimpleSum', 'Sum of three values', '01.00.00', '2015-06-19', 2, NULL, 1), (3, 'SimpleSum2', 'Sum of four values', '01.00.00', '2015-06-22', 3, NULL, 1), (4, 'SimpleCount', 'Calculation values', '01.00.00', '2015-06-24', 3, NULL, 1), (5, 'SimpleCount2', 'Calculation values', '01.00.00', '2015-06-26', 3, NULL, 1), (6, 'Demonstracao', 'Apresentacao NenC', '01.00.00', '2015-10-08', 3, NULL, 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `ActedOnBehalfOf` -- ALTER TABLE `ActedOnBehalfOf` ADD PRIMARY KEY (`idActedOnBehalfOf`), ADD KEY `fk_InputPort_has_OutputPort_OutputPort1_idx` (`OutputPort_idPort`), ADD KEY `fk_InputPort_has_OutputPort_InputPort1_idx` (`InputPort_idPort`); -- -- Indexes for table `Activity` -- ALTER TABLE `Activity` ADD PRIMARY KEY (`idActivity`), ADD KEY `fk_Activity_Entity1_idx` (`Entity_idEntity`); -- -- Indexes for table `Agent` -- ALTER TABLE `Agent` ADD PRIMARY KEY (`idAgent`), ADD UNIQUE KEY `Login_UNIQUE` (`Login`), ADD UNIQUE KEY `Email_UNIQUE` (`Email`), ADD KEY `fk_Agent_Entity1_idx` (`Institution`); -- -- Indexes for table `collaboration_service` -- ALTER TABLE `collaboration_service` ADD PRIMARY KEY (`id`), ADD KEY `group_service_id_fka_idx` (`group_service_id`), ADD KEY `coordination_service_id_fka_idx` (`coordination_service_id`), ADD KEY `cooperation_service_id_fka_idx` (`cooperation_service_id`), ADD KEY `communication_service_id_fka_idx` (`communication_service_id`), ADD KEY `collaboration_service_type_id_fka_idx` (`collaborative_service_type_id`); -- -- Indexes for table `collaborative_service_type` -- ALTER TABLE `collaborative_service_type` ADD PRIMARY KEY (`id`); -- -- Indexes for table `communication_service` -- ALTER TABLE `communication_service` ADD PRIMARY KEY (`id`); -- -- Indexes for table `competence` -- ALTER TABLE `competence` ADD PRIMARY KEY (`id`); -- -- Indexes for table `competence_group_service` -- ALTER TABLE `competence_group_service` ADD PRIMARY KEY (`group_service_id`,`competence_id`), ADD KEY `competence_id_fka_idx` (`competence_id`); -- -- Indexes for table `concept_xml` -- ALTER TABLE `concept_xml` ADD PRIMARY KEY (`id_concept_xml`), ADD KEY `id_struct_xml_fka_idx` (`id_struct_xml`); -- -- Indexes for table `cooperation_service` -- ALTER TABLE `cooperation_service` ADD PRIMARY KEY (`id`); -- -- Indexes for table `coordination_service` -- ALTER TABLE `coordination_service` ADD PRIMARY KEY (`id`); -- -- Indexes for table `Entity` -- ALTER TABLE `Entity` ADD PRIMARY KEY (`idEntity`); -- -- Indexes for table `Experiment` -- ALTER TABLE `Experiment` ADD PRIMARY KEY (`idExperiment`), ADD KEY `fk_Expiriment_Entity1_idx` (`Entity_idEntity`), ADD KEY `fk_Expiriment_Activity1_idx` (`Activity_idActivity`), ADD KEY `fk_Experiment_Agent1_idx` (`idAgent`); -- -- Indexes for table `experiment_services` -- ALTER TABLE `experiment_services` ADD PRIMARY KEY (`id`), ADD KEY `fk_experiment_services_Experiment1_idx` (`idExperiment`); -- -- Indexes for table `group_service` -- ALTER TABLE `group_service` ADD PRIMARY KEY (`id`); -- -- Indexes for table `InputPort` -- ALTER TABLE `InputPort` ADD PRIMARY KEY (`idPort`), ADD KEY `fk_Port_Task1` (`Task_idTask`); -- -- Indexes for table `interoperability_struct_xml` -- ALTER TABLE `interoperability_struct_xml` ADD PRIMARY KEY (`id_struct_xml`); -- -- Indexes for table `IsPartOf` -- ALTER TABLE `IsPartOf` ADD PRIMARY KEY (`idIsPartOf`), ADD KEY `fk_Agent_has_ResearchGroup_ResearchGroup1_idx` (`ResearchGroup_idResearchGroup`), ADD KEY `fk_Agent_has_ResearchGroup_Agent1_idx` (`Agent_idAgent`); -- -- Indexes for table `OutputPort` -- ALTER TABLE `OutputPort` ADD PRIMARY KEY (`idPort`), ADD KEY `fk_Port_Task1_idx` (`Task_idTask`); -- -- Indexes for table `ResearchGroup` -- ALTER TABLE `ResearchGroup` ADD PRIMARY KEY (`idResearchGroup`), ADD KEY `fk_Agent_has_Expiriment_Agent1_idx` (`Agent_idAgent_chef`); -- -- Indexes for table `roler` -- ALTER TABLE `roler` ADD PRIMARY KEY (`id`); -- -- Indexes for table `role_coordination_service` -- ALTER TABLE `role_coordination_service` ADD PRIMARY KEY (`coordination_service_id`,`role_id`), ADD KEY `role_id_fka_idx` (`role_id`); -- -- Indexes for table `sequence` -- ALTER TABLE `sequence` ADD PRIMARY KEY (`SEQ_NAME`); -- -- Indexes for table `SGWfC` -- ALTER TABLE `SGWfC` ADD PRIMARY KEY (`idSGWfC`); -- -- Indexes for table `steps_scientific_experimentation` -- ALTER TABLE `steps_scientific_experimentation` ADD PRIMARY KEY (`id`); -- -- Indexes for table `steps_service` -- ALTER TABLE `steps_service` ADD PRIMARY KEY (`collab_service_id`,`step_id`), ADD KEY `collab_service_fk_idx` (`collab_service_id`), ADD KEY `step_id_fk` (`step_id`); -- -- Indexes for table `Task` -- ALTER TABLE `Task` ADD PRIMARY KEY (`idTask`); -- -- Indexes for table `taverna_workflow` -- ALTER TABLE `taverna_workflow` ADD PRIMARY KEY (`id`), ADD KEY `fk_taverna_workflow_Agent1_idx` (`idAgent`), ADD KEY `fk_taverna_workflow_Experiment1_idx` (`experiment_id`); -- -- Indexes for table `taverna_workflow_input` -- ALTER TABLE `taverna_workflow_input` ADD PRIMARY KEY (`id`), ADD KEY `fk_taverna_workflow_input_taverna_workflow1_idx` (`taverna_workflow_id`); -- -- Indexes for table `taverna_workflow_run` -- ALTER TABLE `taverna_workflow_run` ADD PRIMARY KEY (`id`), ADD KEY `fk_taverna_workflow_run_taverna_workflow1_idx` (`taverna_workflow_id`); -- -- Indexes for table `taverna_workflow_run_input_value` -- ALTER TABLE `taverna_workflow_run_input_value` ADD PRIMARY KEY (`id`), ADD KEY `fk_taverna_workflow_run_input_value_taverna_workflow_input1_idx` (`taverna_workflow_input_id`); -- -- Indexes for table `Used` -- ALTER TABLE `Used` ADD PRIMARY KEY (`idUsed`), ADD KEY `fk_WasStartedBy_Task1_idx` (`Task_idTask`), ADD KEY `fk_Used_Workflow1_idx` (`Workflow_idWorkflow`); -- -- Indexes for table `WasAssociatedWith` -- ALTER TABLE `WasAssociatedWith` ADD PRIMARY KEY (`idWasAssociatedWith`), ADD KEY `fk_Workflow_has_Expiriment_Expiriment1_idx` (`Experiment_Experiment`), ADD KEY `fk_Workflow_has_Expiriment_Workflow1_idx` (`Workflow_idWorkflow`); -- -- Indexes for table `WasControledBy` -- ALTER TABLE `WasControledBy` ADD PRIMARY KEY (`idWasControledBy`), ADD KEY `fk_WasControledBy_Activity1_idx` (`Activity_idActivity`), ADD KEY `fk_WasControledBy_Agent1_idx` (`Agent_idAgent`); -- -- Indexes for table `WasDerivedFrom` -- ALTER TABLE `WasDerivedFrom` ADD PRIMARY KEY (`idWasDerivedFrom`), ADD KEY `fk_WasDerivedFrom_Workflow1_idx` (`DerivedOf`), ADD KEY `fk_WasDerivedFrom_Workflow2_idx` (`DerivedTo`); -- -- Indexes for table `WasEndedBy` -- ALTER TABLE `WasEndedBy` ADD PRIMARY KEY (`idWasEndedBy`), ADD KEY `fk_WasStartedBy_Task1_idx` (`Task_idTask`), ADD KEY `fk_WasEndedBy_Activity1_idx` (`Activity_idActivity`); -- -- Indexes for table `WasEndedByWT` -- ALTER TABLE `WasEndedByWT` ADD PRIMARY KEY (`idWasEndedByWT`), ADD KEY `fk_Workflow_has_Task_Task2_idx` (`Task_idTask`), ADD KEY `fk_Workflow_has_Task_Workflow2_idx` (`Workflow_idWorkflow`); -- -- Indexes for table `WasGeneratedBy` -- ALTER TABLE `WasGeneratedBy` ADD PRIMARY KEY (`idWasGeneratedBy`), ADD KEY `fk_Experiment_has_ResearchGroup_ResearchGroup1_idx` (`ResearchGroup_idResearchGroup`), ADD KEY `fk_Experiment_has_ResearchGroup_Experiment1_idx` (`Experiment_Experiment`); -- -- Indexes for table `WasInformedBy` -- ALTER TABLE `WasInformedBy` ADD PRIMARY KEY (`idWasInformedBy`), ADD KEY `fk_WasInformedBy_Port_Entity_Task1_idx` (`Task_idTask`), ADD KEY `fk_WasInformedBy_Activity1_idx` (`Activity_idActivity`); -- -- Indexes for table `WasRevisionOf` -- ALTER TABLE `WasRevisionOf` ADD PRIMARY KEY (`idWasRevisionOf`), ADD KEY `fk_WasDerivedFrom_Workflow1_idx` (`RevisionOf`), ADD KEY `fk_WasDerivedFrom_Workflow2_idx` (`RevisionTo`); -- -- Indexes for table `WasStartedBy` -- ALTER TABLE `WasStartedBy` ADD PRIMARY KEY (`idWasStartedBy`), ADD KEY `fk_WasStartedBy_Task1_idx` (`Task_idTask`), ADD KEY `fk_WasStartedBy_Activity1_idx` (`Activity_idActivity`); -- -- Indexes for table `WasStartedByWT` -- ALTER TABLE `WasStartedByWT` ADD PRIMARY KEY (`idWasStartedByWT`), ADD KEY `fk_Workflow_has_Task_Task1_idx` (`Task_idTask`), ADD KEY `fk_Workflow_has_Task_Workflow1_idx` (`Workflow_idWorkflow`); -- -- Indexes for table `Workflow` -- ALTER TABLE `Workflow` ADD PRIMARY KEY (`idWorkflow`), ADD KEY `fk_Workflow_SGWfC1_idx` (`SGWfC_idSGWfC`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `ActedOnBehalfOf` -- ALTER TABLE `ActedOnBehalfOf` MODIFY `idActedOnBehalfOf` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=59; -- -- AUTO_INCREMENT for table `Activity` -- ALTER TABLE `Activity` MODIFY `idActivity` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `Agent` -- ALTER TABLE `Agent` MODIFY `idAgent` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `collaboration_service` -- ALTER TABLE `collaboration_service` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `collaborative_service_type` -- ALTER TABLE `collaborative_service_type` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `communication_service` -- ALTER TABLE `communication_service` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `competence` -- ALTER TABLE `competence` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `concept_xml` -- ALTER TABLE `concept_xml` MODIFY `id_concept_xml` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=79; -- -- AUTO_INCREMENT for table `cooperation_service` -- ALTER TABLE `cooperation_service` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `coordination_service` -- ALTER TABLE `coordination_service` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `Entity` -- ALTER TABLE `Entity` MODIFY `idEntity` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `Experiment` -- ALTER TABLE `Experiment` MODIFY `idExperiment` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `experiment_services` -- ALTER TABLE `experiment_services` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=152; -- -- AUTO_INCREMENT for table `group_service` -- ALTER TABLE `group_service` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `InputPort` -- ALTER TABLE `InputPort` MODIFY `idPort` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=276; -- -- AUTO_INCREMENT for table `interoperability_struct_xml` -- ALTER TABLE `interoperability_struct_xml` MODIFY `id_struct_xml` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `IsPartOf` -- ALTER TABLE `IsPartOf` MODIFY `idIsPartOf` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `OutputPort` -- ALTER TABLE `OutputPort` MODIFY `idPort` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=145; -- -- AUTO_INCREMENT for table `ResearchGroup` -- ALTER TABLE `ResearchGroup` MODIFY `idResearchGroup` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `roler` -- ALTER TABLE `roler` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `steps_scientific_experimentation` -- ALTER TABLE `steps_scientific_experimentation` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=352; -- -- AUTO_INCREMENT for table `Task` -- ALTER TABLE `Task` MODIFY `idTask` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `taverna_workflow` -- ALTER TABLE `taverna_workflow` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `taverna_workflow_run` -- ALTER TABLE `taverna_workflow_run` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `Used` -- ALTER TABLE `Used` MODIFY `idUsed` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=210; -- -- AUTO_INCREMENT for table `WasAssociatedWith` -- ALTER TABLE `WasAssociatedWith` MODIFY `idWasAssociatedWith` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=44; -- -- AUTO_INCREMENT for table `WasControledBy` -- ALTER TABLE `WasControledBy` MODIFY `idWasControledBy` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `WasDerivedFrom` -- ALTER TABLE `WasDerivedFrom` MODIFY `idWasDerivedFrom` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `WasEndedBy` -- ALTER TABLE `WasEndedBy` MODIFY `idWasEndedBy` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=50; -- -- AUTO_INCREMENT for table `WasEndedByWT` -- ALTER TABLE `WasEndedByWT` MODIFY `idWasEndedByWT` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `WasGeneratedBy` -- ALTER TABLE `WasGeneratedBy` MODIFY `idWasGeneratedBy` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `WasInformedBy` -- ALTER TABLE `WasInformedBy` MODIFY `idWasInformedBy` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=71; -- -- AUTO_INCREMENT for table `WasRevisionOf` -- ALTER TABLE `WasRevisionOf` MODIFY `idWasRevisionOf` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `WasStartedBy` -- ALTER TABLE `WasStartedBy` MODIFY `idWasStartedBy` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=38; -- -- AUTO_INCREMENT for table `WasStartedByWT` -- ALTER TABLE `WasStartedByWT` MODIFY `idWasStartedByWT` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `Workflow` -- ALTER TABLE `Workflow` MODIFY `idWorkflow` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7; -- -- Constraints for dumped tables -- -- -- Limitadores para a tabela `ActedOnBehalfOf` -- ALTER TABLE `ActedOnBehalfOf` ADD CONSTRAINT `fk_InputPort_has_OutputPort_InputPort1` FOREIGN KEY (`InputPort_idPort`) REFERENCES `InputPort` (`idPort`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_InputPort_has_OutputPort_OutputPort1` FOREIGN KEY (`OutputPort_idPort`) REFERENCES `OutputPort` (`idPort`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `Activity` -- ALTER TABLE `Activity` ADD CONSTRAINT `fk_Activity_Entity1` FOREIGN KEY (`Entity_idEntity`) REFERENCES `Entity` (`idEntity`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `Agent` -- ALTER TABLE `Agent` ADD CONSTRAINT `fk_Agent_Entity1` FOREIGN KEY (`Institution`) REFERENCES `Entity` (`idEntity`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `collaboration_service` -- ALTER TABLE `collaboration_service` ADD CONSTRAINT `collaboration_service_type_id_fka` FOREIGN KEY (`collaborative_service_type_id`) REFERENCES `collaborative_service_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `communication_service_id_fka` FOREIGN KEY (`communication_service_id`) REFERENCES `communication_service` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `cooperation_service_id_fka` FOREIGN KEY (`cooperation_service_id`) REFERENCES `cooperation_service` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `coordination_service_id_fka` FOREIGN KEY (`coordination_service_id`) REFERENCES `coordination_service` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `group_service_id_fka` FOREIGN KEY (`group_service_id`) REFERENCES `group_service` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `competence_group_service` -- ALTER TABLE `competence_group_service` ADD CONSTRAINT `competence_id_fka` FOREIGN KEY (`competence_id`) REFERENCES `competence` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `group_service_id_fkc` FOREIGN KEY (`group_service_id`) REFERENCES `group_service` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `concept_xml` -- ALTER TABLE `concept_xml` ADD CONSTRAINT `id_struct_xml_fka` FOREIGN KEY (`id_struct_xml`) REFERENCES `interoperability_struct_xml` (`id_struct_xml`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `Experiment` -- ALTER TABLE `Experiment` ADD CONSTRAINT `fk_Experiment_Agent1` FOREIGN KEY (`idAgent`) REFERENCES `Agent` (`idAgent`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_Expiriment_Activity1` FOREIGN KEY (`Activity_idActivity`) REFERENCES `Activity` (`idActivity`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_Expiriment_Entity1` FOREIGN KEY (`Entity_idEntity`) REFERENCES `Entity` (`idEntity`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `experiment_services` -- ALTER TABLE `experiment_services` ADD CONSTRAINT `fk_experiment_services_Experiment1` FOREIGN KEY (`idExperiment`) REFERENCES `Experiment` (`idExperiment`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `InputPort` -- ALTER TABLE `InputPort` ADD CONSTRAINT `fk_Port_Task10` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `IsPartOf` -- ALTER TABLE `IsPartOf` ADD CONSTRAINT `fk_Agent_has_ResearchGroup_Agent1` FOREIGN KEY (`Agent_idAgent`) REFERENCES `Agent` (`idAgent`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_Agent_has_ResearchGroup_ResearchGroup1` FOREIGN KEY (`ResearchGroup_idResearchGroup`) REFERENCES `ResearchGroup` (`idResearchGroup`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `OutputPort` -- ALTER TABLE `OutputPort` ADD CONSTRAINT `fk_Port_Task1` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `ResearchGroup` -- ALTER TABLE `ResearchGroup` ADD CONSTRAINT `fk_Agent_has_Expiriment_Agent1` FOREIGN KEY (`Agent_idAgent_chef`) REFERENCES `Agent` (`idAgent`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `role_coordination_service` -- ALTER TABLE `role_coordination_service` ADD CONSTRAINT `coordination_service_id_fkb` FOREIGN KEY (`coordination_service_id`) REFERENCES `coordination_service` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `role_id_fka` FOREIGN KEY (`role_id`) REFERENCES `roler` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `steps_service` -- ALTER TABLE `steps_service` ADD CONSTRAINT `collab_service_fk` FOREIGN KEY (`collab_service_id`) REFERENCES `collaboration_service` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `step_id_fk` FOREIGN KEY (`step_id`) REFERENCES `steps_scientific_experimentation` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `taverna_workflow` -- ALTER TABLE `taverna_workflow` ADD CONSTRAINT `fk_taverna_workflow_Agent1` FOREIGN KEY (`idAgent`) REFERENCES `Agent` (`idAgent`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_taverna_workflow_Experiment1` FOREIGN KEY (`experiment_id`) REFERENCES `Experiment` (`idExperiment`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `taverna_workflow_input` -- ALTER TABLE `taverna_workflow_input` ADD CONSTRAINT `fk_taverna_workflow_input_taverna_workflow1` FOREIGN KEY (`taverna_workflow_id`) REFERENCES `taverna_workflow` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `taverna_workflow_run` -- ALTER TABLE `taverna_workflow_run` ADD CONSTRAINT `fk_taverna_workflow_run_taverna_workflow1` FOREIGN KEY (`taverna_workflow_id`) REFERENCES `taverna_workflow` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `taverna_workflow_run_input_value` -- ALTER TABLE `taverna_workflow_run_input_value` ADD CONSTRAINT `fk_taverna_workflow_run_input_value_taverna_workflow_input1` FOREIGN KEY (`taverna_workflow_input_id`) REFERENCES `taverna_workflow_input` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `Used` -- ALTER TABLE `Used` ADD CONSTRAINT `fk_Used_Workflow1` FOREIGN KEY (`Workflow_idWorkflow`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_WasStartedBy_Task100` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasAssociatedWith` -- ALTER TABLE `WasAssociatedWith` ADD CONSTRAINT `fk_Workflow_has_Expiriment_Expiriment1` FOREIGN KEY (`Experiment_Experiment`) REFERENCES `Experiment` (`idExperiment`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_Workflow_has_Expiriment_Workflow1` FOREIGN KEY (`Workflow_idWorkflow`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasControledBy` -- ALTER TABLE `WasControledBy` ADD CONSTRAINT `fk_WasControledBy_Activity1` FOREIGN KEY (`Activity_idActivity`) REFERENCES `Activity` (`idActivity`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_WasControledBy_Agent1` FOREIGN KEY (`Agent_idAgent`) REFERENCES `Agent` (`idAgent`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasDerivedFrom` -- ALTER TABLE `WasDerivedFrom` ADD CONSTRAINT `fk_WasDerivedFrom_Workflow1` FOREIGN KEY (`DerivedOf`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_WasDerivedFrom_Workflow2` FOREIGN KEY (`DerivedTo`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasEndedBy` -- ALTER TABLE `WasEndedBy` ADD CONSTRAINT `fk_WasEndedBy_Activity1` FOREIGN KEY (`Activity_idActivity`) REFERENCES `Activity` (`idActivity`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_WasStartedBy_Task10` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasEndedByWT` -- ALTER TABLE `WasEndedByWT` ADD CONSTRAINT `fk_Workflow_has_Task_Task2` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_Workflow_has_Task_Workflow2` FOREIGN KEY (`Workflow_idWorkflow`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasGeneratedBy` -- ALTER TABLE `WasGeneratedBy` ADD CONSTRAINT `fk_Experiment_has_ResearchGroup_Experiment1` FOREIGN KEY (`Experiment_Experiment`) REFERENCES `Experiment` (`idExperiment`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_Experiment_has_ResearchGroup_ResearchGroup1` FOREIGN KEY (`ResearchGroup_idResearchGroup`) REFERENCES `ResearchGroup` (`idResearchGroup`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasInformedBy` -- ALTER TABLE `WasInformedBy` ADD CONSTRAINT `fk_WasInformedBy_Activity1` FOREIGN KEY (`Activity_idActivity`) REFERENCES `Activity` (`idActivity`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_WasInformedBy_Port_Entity_Task1` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasRevisionOf` -- ALTER TABLE `WasRevisionOf` ADD CONSTRAINT `fk_WasDerivedFrom_Workflow10` FOREIGN KEY (`RevisionOf`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_WasDerivedFrom_Workflow20` FOREIGN KEY (`RevisionTo`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasStartedBy` -- ALTER TABLE `WasStartedBy` ADD CONSTRAINT `fk_WasStartedBy_Activity1` FOREIGN KEY (`Activity_idActivity`) REFERENCES `Activity` (`idActivity`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_WasStartedBy_Task1` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `WasStartedByWT` -- ALTER TABLE `WasStartedByWT` ADD CONSTRAINT `fk_Workflow_has_Task_Task1` FOREIGN KEY (`Task_idTask`) REFERENCES `Task` (`idTask`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_Workflow_has_Task_Workflow1` FOREIGN KEY (`Workflow_idWorkflow`) REFERENCES `Workflow` (`idWorkflow`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Limitadores para a tabela `Workflow` -- ALTER TABLE `Workflow` ADD CONSTRAINT `fk_Workflow_SGWfC1` FOREIGN KEY (`SGWfC_idSGWfC`) REFERENCES `SGWfC` (`idSGWfC`) ON DELETE NO ACTION ON UPDATE NO ACTION; /*!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 */;
.separator "," CREATE TABLE Salaries ( Id INTEGER PRIMARY KEY, EmployeeName TEXT, JobTitle TEXT, BasePay NUMERIC, OvertimePay NUMERIC, OtherPay NUMERIC, Benefits NUMERIC, TotalPay NUMERIC, TotalPayBenefits NUMERIC, Year INTEGER, Notes TEXT, Agency TEXT, Status TEXT); .import "working/noHeader/Salaries.csv" Salaries CREATE INDEX salaries_year_idx ON Salaries (Year);
-- This shows using the AutoMLTrain stored procedure to create a forecasting model for the nyc_energy dataset. DECLARE @max_horizon INT = 48 DECLARE @split_time NVARCHAR(22) = (SELECT DATEADD(hour, -@max_horizon, MAX(timeStamp)) FROM nyc_energy WHERE demand IS NOT NULL) DECLARE @TrainDataQuery NVARCHAR(MAX) = ' SELECT CAST(timeStamp as NVARCHAR(30)) as timeStamp, demand, precip, temp FROM nyc_energy WHERE demand IS NOT NULL AND precip IS NOT NULL AND temp IS NOT NULL and timeStamp < ''' + @split_time + '''' INSERT INTO dbo.aml_model(RunId, ExperimentName, Model, LogFileText, WorkspaceName) EXEC dbo.AutoMLTrain @input_query= @TrainDataQuery, @label_column='demand', @task='forecasting', @iterations=10, @iteration_timeout_minutes=5, @time_column_name='timeStamp', @max_horizon=@max_horizon, @experiment_name='automl-sql-forecast', @primary_metric='normalized_root_mean_squared_error'
CREATE TABLE IF NOT EXISTS experiments.approaches( experiment_id bigint NOT NULL, approach_id bigint NOT NULL, name varchar(255) NOT NULL, hyperparameters json NOT NULL, python_path varchar(255), python_content text, created_on TIMESTAMP DEFAULT now(), PRIMARY KEY (experiment_id,approach_id) ); ALTER TABLE experiments.approaches ADD COLUMN preprocessors json;
<reponame>ferreiro/SQL<filename>3_Triggers:Procedures/2_Deparments_employees_changes.sql<gh_stars>10-100 CREATE SEQUENCE CHANGEID INCREMENT BY 1 START WITH 1; drop table Departments cascade constraints; drop table Employees cascade constraints; drop table Changes cascade constraints; CREATE TABLE Departments (CodDept CHAR(5) PRIMARY KEY, Name VARCHAR(100)); CREATE TABLE Employees (SSN CHAR(9) PRIMARY KEY, Name VARCHAR(100), CodDept CHAR(5) REFERENCES Departments on delete set NULL, Salary NUMBER(4,0)); CREATE TABLE Changes(IdChange VARCHAR(10) PRIMARY KEY, UserId VARCHAR(8), OldSalary NUMBER(4,0), NewSalary NUMBER(4,0)); INSERT INTO Departments VALUES('1', 'Department 1'); INSERT INTO Departments VALUES('2', 'Department 2'); INSERT INTO Departments VALUES('3', 'Department 3'); INSERT INTO Employees VALUES('123456789', 'PACO', '1', 2000); INSERT INTO Employees VALUES('123455789', 'Luis', '1', 0); INSERT INTO Employees VALUES('123455789', 'Luis', '1', 1000); INSERT INTO Employees VALUES('013455789', 'Sara', '2', 1000); INSERT INTO Employees VALUES('023455789', 'Pularda', '2', 3000); UPDATE Employees SET SALARY=2000 WHERE SSN='123456789'; /* Write a trigger that records in the table Changes any update of the salary of the employees. The trigger must store the user, the date of the change, and both the salary before the change and the updated salary. The ID will be obtained from a sequence called SEQChanges. */ create or replace TRIGGER UpdateRecords after update of Salary on Employees for each row begin INSERT INTO Changes values (CHANGEID.NEXTVAL, USER(), :OLD.Salary, :NEW.Salary); end; /* Write a stored procedure that lists for each department the name and salary of each employee whose salary is lower than the average of the department. For each department the procedure must show the total amount of these salaries by department. */ create or replace PROCEDURE MY_SALARIESPROC IS CURSOR cursorDeparment is SELECT Name, SALARY FROM EMPLOYEES E WHERE SALARY<( SELECT AVG(SALARY) FROM EMPLOYEES WHERE CodDept=E.CodDept GROUP BY (CodDept) ); AUX NUMBER:=0; v_name VARCHAR(100); rEmployee cursorDeparment%ROWTYPE; BEGIN OPEN cursorDeparment; LOOP FETCH cursorDeparment into rEmployee; EXIT WHEN cursorDeparment%NOTFOUND; dbms_output.put_line(rEmployee.Name || ', ' || rEmployee.Salary); END LOOP; CLOSE CursorDeparment; END;
-- Languages INSERT [Localization].[Language] ([CultureName], [DisplayName], [Country], [Region], [IsDefaultLanguage]) VALUES (N'en-US', N'English - United States', N'English - United States', N'United States', 1) INSERT [Localization].[Language] ([CultureName], [DisplayName], [Country], [Region], [IsDefaultLanguage]) VALUES (N'tr-TR', N'Turkish - Turkey', N'Turkish - Turkey', N'Turkey', 0) INSERT [Localization].[Language] ([CultureName], [DisplayName], [Country], [Region], [IsDefaultLanguage]) VALUES (N'fr-FR', N'French - France', N'French - France', N'France', 0) -- .Net Core Default Validation Message Localization Resources INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'The value ''{0}'' is not valid for {1}.' , N'The value ''{0}'' is not valid for {1}.' , N'AttemptedValueIsInvalidAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'A value for the ''{0}'' property was not provided.' , N'A value for the ''{0}'' property was not provided.' , N'MissingBindRequiredValueAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'A value is required.' , N'A value is required.' , N'MissingKeyOrValueAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'The supplied value is invalid for {0}.' , N'The supplied value is invalid for {0}.' , N'UnknownValueIsInvalidAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'The value ''{0}'' is invalid.' , N'The value ''{0}'' is invalid.' , N'ValueIsInvalidAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'The field {0} must be a number.' , N'The field {0} must be a number.' , N'ValueMustBeANumberAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Null value is invalid.' , N'Null value is invalid.' , N'ValueMustNotBeNullAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'The {0} field is not a valid e-mail address.' , N'The {0} field is not a valid e-mail address.' , N'InvalidEmail') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'The field {0} must match the regular expression ''{1}''.', N'The field {0} must match the regular expression ''{1}''.', N'MustMatchRegex') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'The password and confirmation password do not match.' , N'The password and confirmation password do not match.' , N'PasswordNoMatch') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'{0} must be less than {2} and greater then {1}.' , N'{0} must be less than {2} and greater then {1}.' , N'Range') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'{0} cannot be empty.' , N'{0} cannot be empty.' , N'Required') -- .Net Core Default Validation Localization Turkish Resources INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'The value ''{0}'' is not valid for {1}.' , N'''{0}'' değeri ''{1}'' için geçerli değil.', N'AttemptedValueIsInvalidAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'A value for the ''{0}'' property was not provided.' , N'''{0}'' için bir değer sağlanmadı.', N'MissingBindRequiredValueAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'A value is required.' , N'Bu değer zorunludur.', N'MissingKeyOrValueAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'The supplied value is invalid for {0}.' , N'Sağlanan değer, ''{0}'' için geçersiz.', N'UnknownValueIsInvalidAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'The value ''{0}'' is invalid.' , N'''{0}'' değeri geçersiz.', N'ValueIsInvalidAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'The field {0} must be a number.' , N'''{0}'' alanı bir sayı olmalıdır.', N'ValueMustBeANumberAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Null value is invalid.' , N'Null değer geçersiz.', N'ValueMustNotBeNullAccessor') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'The {0} field is not a valid e-mail address.' , N'''{0}'' alanı geçerli bir e-posta adresi değil.', N'InvalidEmail') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'The field {0} must match the regular expression ''{1}''.', N'''{0}'' alanı, ''{1}'' ifadesinin normal ifadesiyle eşleşmelidir.', N'MustMatchRegex') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'The password and confirmation password do not match.' , N'Şifre ve doğrulama şifresi uyuşmuyor.', N'PasswordNoMatch') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'{0} must be less than {2} and greater then {1}.' , N'''{0}'', ''{2}'' den düşük ve ''{1}'' den daha büyük olmalıdır.', N'Range') INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'{0} cannot be empty.' , N'''{0}'' boş olamaz.', N'Required') --Test Project English Resources INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'HasNoEquivalentInOtherLanguages' , N'- This key value has no equivalent in other languages.<br/>- If you mark <b>"LocalizationSettings.UseDefaultLanguageWhenValueIsNull"</b> property as true in <b>appsettings.json</b>, the value for the default language is shown.', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Hello' , N'Hello!', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Sample Pages' , N'Sample Pages!', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Exception Handler' , N'Exception Handler!', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Client Side Localization Sample Message' , N'This message was generated by javascript with client side localization.', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'AboutMe' , N'About Me', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Address' , N'Address', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'City' , N'City', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Company' , N'Company', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'ConfirmPassword', N'Confirm Password', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Country' , N'Country', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'EMailAddress' , N'E-Mail Address', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'FirstName' , N'First Name', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'LastName' , N'Last Name', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Password' , N'Password', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'PostalCode' , N'Postal Code', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Username' , N'Username', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'BirthDate' , N'Birth Date', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Time' , N'Time', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Currency' , N'Currency', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'PhoneNumber' , N'Phone Number', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'CreditCard' , N'Credit Card', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'IpAddress' , N'Ip Address', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'ItemNotFoundExceptionKey', N'Item not found', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'CustomExceptionKey', N'Custom Exception Localization Test Message', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Click and show client side localization sample' , N'Click and show client side localization sample', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Logo_Description' , N'Logo Description NetCoreStack Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_Home' , N'Home', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_Forms' , N'Forms', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_About' , N'About', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_Contact' , N'Contact', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_Component_Api' , N'Component Api', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_ClientSideLocalization' , N'Client Side Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_ExceptionLocalization' , N'Exception Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Menu_AjaxExceptionLocalization' , N'Ajax Exception Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'AboutPageDescription' , N'About page description', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'HowToUse' , N'How to use', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'ApiPage_AllLanguage' , N'All Languages', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'ApiPage_AllResources' , N'All Resources', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'ApiPage_AllResourcesByLanguageId' , N'All Resources By LanguageId', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'ApiPage_CreateLanguage' , N'Create Language', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'ApiPage_CreateResource' , N'Create Resource', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (1, N'Copyright' , N'© Copyright {0} {1} All Rights Reserved', NULL) --Test Project Turkish Resources INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Hello' , N'Merhaba!', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Sample Pages' , N'Örnek Sayfalar', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Exception Handler' , N'Hata Yakalama', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Client Side Localization Sample Message' , N'Bu mesaj JavaScript ile Client-Side Localization aracılığı ile üretildi.', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'AboutMe' , N'Hakkımda', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Address' , N'Adres', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'City' , N'Şehir', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Company' , N'Firma', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'ConfirmPassword', N'<PASSWORD>', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Country' , N'Ülke', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'EMailAddress' , N'E-Posta Adresi', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'FirstName' , N'Ad', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'LastName' , N'Soyad', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Password' , N'<PASSWORD>', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'PostalCode' , N'Posta Kodu', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Username' , N'<NAME>', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'BirthDate' , N'Doğum Tarihi', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Time' , N'Zaman', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Currency' , N'Para Birimi', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'PhoneNumber' , N'Telefon Numarası', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'CreditCard' , N'Kredi Kartı', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'IpAddress' , N'İp Adresi', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'ItemNotFoundExceptionKey', N'Öğe bulunamadı', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'CustomExceptionKey', N'Özel Hata Sayfası Localization Test Mesajı', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Click and show client side localization sample' , N'Tıkla ve client-side localization örneğini görüntüle', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Logo_Description' , N'Logo Açıklaması - NetCoreStack Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_Home' , N'Ana Sayfa', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_Forms' , N'Form Öğeleri', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_About' , N'Hakkında', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_Contact' , N'İletişim', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_Component_Api' , N'Component Api', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_ClientSideLocalization' , N'Client Side Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_ExceptionLocalization' , N'Exception Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Menu_AjaxExceptionLocalization' , N'Ajax Exception Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'AboutPageDescription' , N'Hakkında sayfası açıklaması', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'HowToUse' , N'Nasıl kullanılır?', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'ApiPage_AllLanguage' , N'Tüm Diller', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'ApiPage_AllResources' , N'Tüm Kaynaklar', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'ApiPage_AllResourcesByLanguageId' , N'LanguageId parametresine göre kaynaklar', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'ApiPage_CreateLanguage' , N'Yeni Dil Oluşturma', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'ApiPage_CreateResource' , N'Yeni Kaynak Oluşturma', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (2, N'Copyright' , N'© {0} {1} Her hakkı saklıdır', NULL) --Test Project French Resources INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Hello' , N'Bonjour!', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Sample Pages' , N'Exemples de pages', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Exception Handler' , N'Gestionnaire d`exception', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Client Side Localization Sample Message' , N'Ce message a été généré par javascript avec la localisation côté client.', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'AboutMe' , N'À propos de moi', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Address' , N'Adresse', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'City' , N'Ville', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Company' , N'Entreprise', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'ConfirmPassword', N'Confirmez le mot de passe', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Country' , N'Pays', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'EMailAddress' , N'Adresse électronique', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'FirstName' , N'Prénom', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'LastName' , N'Nom de famille', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Password' , N'Mot de passe', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'PostalCode' , N'Code Postal', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Username' , N'Nom d`utilisateur', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'BirthDate' , N'Date de naissance', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Time' , N'Temps', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Currency' , N'Devise', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'PhoneNumber' , N'Numéro de téléphone', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'CreditCard' , N'Carte de crédit', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'IpAddress' , N'Adresse IP', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'ItemNotFoundExceptionKey', N'Objet non-trouvé', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'CustomExceptionKey', N'Message de test de localisation d`exception personnalisée', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Click and show client side localization sample' , N'Cliquez et montrez un exemple de localisation côté client', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Logo_Description' , N'Description du logo - NetCoreStack Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_Home' , N'Page d`accueil', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_Forms' , N'Éléments de forme', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_About' , N'À propos de moi', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_Contact' , N'Sur', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_Component_Api' , N'Component Api', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_ClientSideLocalization' , N'Client Side Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_ExceptionLocalization' , N'Exception Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Menu_AjaxExceptionLocalization' , N'Ajax Exception Localization', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'AboutPageDescription' , N'A propos de la description de la page', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'HowToUse' , N'Comment utiliser', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'ApiPage_AllLanguage' , N'Toutes les langues', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'ApiPage_AllResources' , N'Toutes les ressources', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'ApiPage_AllResourcesByLanguageId' , N'Paramètre Resources by LanguageId', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'ApiPage_CreateLanguage' , N'Créer une nouvelle langue', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'ApiPage_CreateResource' , N'Yeni Kaynak Oluşturma', NULL) INSERT [Localization].[Resource] ([LanguageId], [Key], [Value], [Comment]) VALUES (3, N'Copyright' , N'© Copyright {0} {1} Tous droits réservés.', NULL)
-- Conexao com BD SSolar CONNECT 'jdbc:derby://localhost:1527/ssolar'; -- Remocao das funcoes e procedimentos do banco de dados DROP PROCEDURE procNomePlaneta; DROP FUNCTION funcPosPlaneta; -- Remocao do registro do jar onde se encontra codigo -- Java correspondente as funcoes e procedimentos CALL SQLJ.remove_jar ('APP.PlanetaJar', 0); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY ('derby.database.classpath', ''); -- Finaliza conexao DISCONNECT;
SELECT to_char(li.created_at, 'YYYY-MM') AS month, COUNT(*) AS list_item_count FROM api_facilitylistitem li JOIN api_source s ON li.source_id = s.id WHERE status = 'ERROR_MATCHING' AND s.create = true AND to_char(li.created_at, 'YYYY-MM') < to_char(now(), 'YYYY-MM') GROUP BY to_char(li.created_at, 'YYYY-MM') ORDER BY to_char(li.created_at, 'YYYY-MM');
<reponame>tmillross/IE_data_commons -- MySQL dump 10.13 Distrib 8.0.12, for Win64 (x86_64) -- -- Host: localhost Database: iedc -- ------------------------------------------------------ -- Server version 8.0.12 /*!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 */; 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 `datagroups` -- DROP TABLE IF EXISTS `datagroups`; /*!40101 SET @saved_cs_client = @@character_set_client */; SET character_set_client = utf8mb4 ; CREATE TABLE `datagroups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `datagroup_name` varchar(255) NOT NULL, `datagroup_version` varchar(30) DEFAULT NULL, `project_id` int(11) DEFAULT NULL, `data_categories` varchar(255) DEFAULT NULL, `data_types` varchar(255) DEFAULT NULL, `data_layers` varchar(255) DEFAULT NULL, `process_scope` varchar(255) DEFAULT NULL, `process_resolution` varchar(255) DEFAULT NULL, `product_scope` varchar(255) DEFAULT NULL, `product_resolution` varchar(255) DEFAULT NULL, `material_scope` varchar(255) DEFAULT NULL, `material_resolution` varchar(255) DEFAULT NULL, `regional_scope` varchar(255) DEFAULT NULL, `regional_resolution` varchar(255) DEFAULT NULL, `temporal_scope` varchar(255) DEFAULT NULL, `temporal_resolution` varchar(255) DEFAULT NULL, `description` text, `keywords` varchar(255) NOT NULL, `system_definition_picture` varchar(255) DEFAULT NULL, `comment` text, `type_of_source` int(11) DEFAULT NULL, `project_license` int(11) DEFAULT NULL, `main_author` varchar(255) DEFAULT NULL, `project_link` text, `project_report` text, `suggested_citation` text, `submission_date` datetime NOT NULL, `submitting_user` int(11) NOT NULL, `reserve1` varchar(255) DEFAULT NULL, `reserve2` varchar(255) DEFAULT NULL, `reserve3` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UC_datagroups` (`datagroup_name`), KEY `datagroups_license_id` (`project_license`), KEY `datagroups_sources_id` (`type_of_source`), KEY `datagroups_users_id` (`submitting_user`), KEY `datagroups_project_id` (`project_id`), CONSTRAINT `datagroups_license_id` FOREIGN KEY (`project_license`) REFERENCES `licences` (`id`), CONSTRAINT `datagroups_project_id` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`), CONSTRAINT `datagroups_sources_id` FOREIGN KEY (`type_of_source`) REFERENCES `source_type` (`id`), CONSTRAINT `datagroups_users_id` FOREIGN KEY (`submitting_user`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!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 2018-10-09 15:53:21
select sum(missing_imported_count) as missing_imported_count from [parquet_table_name_counts] where missing_imported_count > 0 and exported_count > 0 and missing_imported_count <> exported_count;
BEGIN; -- BP_AbweichendeBauweise --BP_DetailAbgrenzungenTypen --BP_DetailArtDerBaulNutzung --BP_DetailDachform --BP_DetailZweckbestGemeinbedarf --BP_DetailZweckbestGemeinschaftsanlagen --BP_DetailZweckbestGewaesser --BP_DetailZweckbestGruenFlaeche --BP_DetailZweckbestLandwirtschaft --BP_DetailZweckbestNebenanlagen --BP_DetailZweckbestSpielSportanlage --BP_DetailZweckbestStrassenverkehr --BP_DetailZweckbestVerEntsorgung --BP_DetailZweckbestWaldFlaeche --BP_DetailZweckbestWasserwirtschaft --BP_SonstPlanArt TRUNCATE xplan_gml.bp_sonstplanart; INSERT INTO xplan_gml.bp_sonstplanart (codespace, id, value) VALUES ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '1000', 'Sanierungssatzung'), ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '2000', 'Erhaltungssatzung'), ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '3000', 'Stadtumbaugebietssatzung'), ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '4000', 'sonstige Bausatzung'), ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '5000', 'Entwicklungssatzung'), ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '6000', 'städtebauliche Entwicklungssatzung'), ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '7000', 'städtebauliches Entwicklungskonzept'), ('https://bauleitplaene-mv.de/codelist/BP_SonstPlanArt/BP_SonstPlanArt.xml', '8000', 'Vorhaben- und Erschließungsplan') ; --BP_SpezielleBauweiseSonstTypen --BP_Status TRUNCATE xplan_gml.bp_status; INSERT INTO xplan_gml.bp_status (codespace, id, value) VALUES ('https://bauleitplaene-mv.de/codelist/BP_Status/BP_Status.xml', '1000', 'Aufstellung'), ('https://bauleitplaene-mv.de/codelist/BP_Status/BP_Status.xml', '2000', 'Entwurf'), ('https://bauleitplaene-mv.de/codelist/BP_Status/BP_Status.xml', '3000', 'Satzung'), ('https://bauleitplaene-mv.de/codelist/BP_Status/BP_Status.xml', '4000', 'Rechtskraft'), ('https://bauleitplaene-mv.de/codelist/BP_Status/BP_Status.xml', '5000', 'Unwirksamkeit, Aufhebung') ; --BP_ZweckbestimmungGenerischeObjekte --FP_DetailArtDerBaulNutzung --FP_DetailZweckbestGemeinbedarf --FP_DetailZweckbestGewaesser --FP_DetailZweckbestGruen --FP_DetailZweckbestLandwirtschaftsFlaeche --FP_DetailZweckbestSpielSportanlage --FP_DetailZweckbestStrassenverkehr --FP_DetailZweckbestVerEntsorgung --FP_DetailZweckbestWaldFlaeche --FP_DetailZweckbestWasserwirtschaft --FP_SonstPlanArt --FP_SpezifischePraegungTypen --FP_Status TRUNCATE xplan_gml.fp_status; INSERT INTO xplan_gml.fp_status (codespace, id, value) VALUES ('https://bauleitplaene-mv.de/codelist/FP_Status/FP_Status.xml', '1000', 'Aufstellung'), ('https://bauleitplaene-mv.de/codelist/FP_Status/FP_Status.xml', '2000', 'Entwurf'), ('https://bauleitplaene-mv.de/codelist/FP_Status/FP_Status.xml', '3000', 'Satzung'), ('https://bauleitplaene-mv.de/codelist/FP_Status/FP_Status.xml', '4000', 'Rechtskraft'), ('https://bauleitplaene-mv.de/codelist/FP_Status/FP_Status.xml', '5000', 'Unwirksamkeit, Aufhebung') ; --FP_ZentralerVersorgungsbereichAuspraegung --FP_ZweckbestimmungGenerischeObjekte --LP_BodenschutzrechtDetailTypen --LP_ErholungFreizeitDetailFunktionen --LP_InternatSchutzobjektDetailTypen --LP_MassnahmeLandschaftsbild --LP_Pflanzart --LP_SchutzobjektLandesrechtDetailTypen --LP_SonstPlanArt --LP_SonstRechtDetailTypen --LP_WaldschutzDetailTypen --LP_WasserrechtGemeingebrEinschraenkungNaturschutzDetailTypen --LP_WasserrechtSchutzgebietDetailTypen --LP_WasserrechtSonstigeTypen --LP_WasserrechtWirtschaftAbflussHochwSchutzDetailTypen --LP_ZweckbestimmungGenerischeObjekte --RP_GenerischesObjektTypen --RP_SonstGrenzeTypen --RP_SonstPlanArt --RP_Status --SO_DetailKlassifizNachBodenschutzrecht --SO_DetailKlassifizNachDenkmalschutzrecht --SO_DetailKlassifizNachForstrecht --SO_DetailKlassifizNachLuftverkehrsrecht --SO_DetailKlassifizNachSchienenverkehrsrecht --SO_DetailKlassifizNachSonstigemRecht --SO_DetailKlassifizNachStrassenverkehrsrecht --SO_DetailKlassifizNachWasserrecht --SO_DetailKlassifizSchutzgebietNaturschutzrecht --SO_DetailKlassifizSchutzgebietSonstRecht --SO_DetailKlassifizSchutzgebietWasserrecht --SO_PlanArt --SO_SonstGebietsArt --SO_SonstGrenzeTypen --SO_SonstRechtscharakter --SO_SonstRechtsstandGebietTyp --VegetationsobjektTypen --XP_GesetzlicheGrundlage --XP_MimeTypes -- XP_MimeTypes TRUNCATE xplan_gml.xp_mimetypes; INSERT INTO xplan_gml.xp_mimetypes (codespace, id, value) VALUES ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/pdf', 'application/pdf'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/zip', 'application/zip'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/xml', 'application/xml'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/msword', 'application/msword'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/msexcel', 'application/msexcel'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/vnd.ogc.sld+xml', 'application/vnd.ogc.sld+xml'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/vnd.ogc.wms_xml', 'application/vnd.ogc.wms_xml'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/vnd.ogc.gml', 'application/vnd.ogc.gml'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'application/odt', 'application/odt'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'image/jpg', 'image/jpg'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'image/png', 'image/png'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'image/tiff', 'image/tiff'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'image/ecw', 'image/ecw'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'image/svg+xml', 'image/svg+xml'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'text/html', 'text/html'), ('https://bauleitplaene-mv.de/codelist/XP_MimeType/XP_MimeType.xml', 'text/plain', 'text/plain') ; COMMIT; --XP_StylesheetListe
use data_extracts; drop procedure if exists backupWFChildImmsBulk; DELIMITER // CREATE PROCEDURE backupWFChildImmsBulk () BEGIN drop table if exists dataset_wf_previous_backup; create table dataset_wf_previous_backup like dataset_wf_previous; insert into dataset_wf_previous_backup select * from dataset_wf_previous; END// DELIMITER ;
GRANT CONNECT TO [gridProteinFolding];
DROP TABLE IF EXISTS snippet; CREATE TABLE snippet ( id varchar(36) NOT NULL, title varchar(200) NOT NULL, code varchar(500) DEFAULT NULL, created date NOT NULL, modified date NOT NULL, PRIMARY KEY (id) );
-- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: localhost Database: seckill -- ------------------------------------------------------ -- Server version 8.0.18 /*!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 */; /*!50503 SET NAMES utf8mb4 */; /*!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 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/ `seckill` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `seckill`; -- -- Table structure for table `item` -- DROP TABLE IF EXISTS `item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `item` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `price` double(10,0) NOT NULL DEFAULT '0', `description` varchar(500) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `sales` int(11) NOT NULL DEFAULT '0', `image_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `item` -- LOCK TABLES `item` WRITE; /*!40000 ALTER TABLE `item` DISABLE KEYS */; INSERT INTO `item` VALUES (2,'Apple iPhone 11',5999,'一切都刚刚好。',27,'https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/iphone11-select-2019-family?wid=882&hei=1058&fmt=jpeg&qlt=80&op_usm=0.5,0.5&.v=1567022175704'),(3,'Apple iPhone XR',4499,'哪一面,都是亮点。',29,'https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/iphone-xr-black-select-201809?wid=940&hei=1112&fmt=png-alpha&qlt=80&.v=1551226038992'); /*!40000 ALTER TABLE `item` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `item_stock` -- DROP TABLE IF EXISTS `item_stock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `item_stock` ( `id` int(11) NOT NULL AUTO_INCREMENT, `stock` int(11) NOT NULL DEFAULT '0', `item_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `item_id_index` (`item_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `item_stock` -- LOCK TABLES `item_stock` WRITE; /*!40000 ALTER TABLE `item_stock` DISABLE KEYS */; INSERT INTO `item_stock` VALUES (2,2973,2),(3,2471,3); /*!40000 ALTER TABLE `item_stock` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `order_info` -- DROP TABLE IF EXISTS `order_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `order_info` ( `id` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `item_id` int(11) NOT NULL DEFAULT '0', `item_price` double NOT NULL DEFAULT '0', `amount` int(11) NOT NULL DEFAULT '0', `order_price` double NOT NULL DEFAULT '0', `promo_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `order_info` -- LOCK TABLES `order_info` WRITE; /*!40000 ALTER TABLE `order_info` DISABLE KEYS */; INSERT INTO `order_info` VALUES ('2019121400000000',3,2,5999,1,5999,0),('2019121400000100',3,2,5999,1,5999,0),('2019121400000200',3,2,5999,1,5999,0),('2019121400000300',2,3,4499,1,4499,0),('2019121400000400',2,3,4499,1,4499,0),('2019121400000500',2,3,4499,1,4499,0),('2019121400000600',2,3,4499,1,4499,0),('2019121500000700',2,2,5999,1,5999,0),('2019121500000800',2,2,5999,1,5999,0),('2019121500000900',2,3,4499,1,4499,0),('2019121500001000',2,3,4499,1,4499,0),('2019121500001100',2,3,4499,1,4499,0),('2019121500001200',2,2,3500,1,3500,2),('2019121500001300',2,2,3500,1,3500,2),('2019121500001400',2,2,3500,1,3500,2),('2019121500001500',3,2,3500,1,3500,2),('2019121500001600',3,3,4499,1,4499,0),('2019121500001700',8,2,3500,1,3500,2),('2019121500001800',8,2,3500,1,3500,2),('2019121500001900',8,2,3500,1,3500,2),('2019121500002000',8,2,5999,1,5999,0),('2019121500002100',8,2,5999,1,5999,0),('2019122600002200',2,2,5999,1,5999,0),('2019122600002300',2,3,4499,1,4499,0),('2019122600002400',2,2,5999,1,5999,0),('2019122600002500',2,3,4499,1,4499,0),('2019122600002600',9,3,4499,1,4499,0),('2019122600002700',9,2,5999,1,5999,0),('2019122600002800',9,3,4499,1,4499,0),('2019122600002900',3,3,4499,1,4499,0),('2019122600003000',3,2,5999,1,5999,0),('2019122700003100',3,3,4499,1,4499,0),('2019122700003200',8,3,4499,1,4499,0),('2019122700003300',2,3,4499,1,4499,0),('2019122700003400',9,2,5999,1,5999,0),('2019122700003500',2,2,5999,1,5999,0),('2019122700003600',2,3,4499,1,4499,0),('2019122700003700',3,3,4499,1,4499,0),('2019122700003800',2,2,5999,1,5999,0),('2019122700003900',8,2,5999,1,5999,0),('2019122700004000',8,3,4499,1,4499,0),('2019122700004100',2,3,4499,1,4499,0),('2019122700004200',10,3,4499,1,4499,0),('2019122800004300',8,2,5999,1,5999,0),('2019122800004400',3,3,4000,1,4000,1),('2020010400004500',8,2,5999,1,5999,0),('2020010400004600',8,2,5999,1,5999,0),('2020010400004700',8,2,5999,1,5999,0),('2020010400004800',8,2,5999,1,5999,0),('2020010500004900',2,3,4000,1,4000,1),('2020010500005000',8,3,4000,1,4000,1),('2020010500005100',3,3,4499,1,4499,0),('2020010500005200',3,3,4499,1,4499,0),('2020011300005300',2,3,4499,1,4499,0),('2020011300005400',3,3,4000,1,4000,1),('2020011300005500',3,3,4000,1,4000,1); /*!40000 ALTER TABLE `order_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `promo` -- DROP TABLE IF EXISTS `promo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `promo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `start_date` datetime NOT NULL DEFAULT '0001-01-01 01:01:01', `end_date` datetime NOT NULL DEFAULT '0001-01-01 01:01:01', `item_id` int(11) NOT NULL DEFAULT '0', `item_price` double NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `promo` -- LOCK TABLES `promo` WRITE; /*!40000 ALTER TABLE `promo` DISABLE KEYS */; INSERT INTO `promo` VALUES (1,'Apple iPhone XR 打折促销','2020-01-12 00:00:00','2020-01-13 12:00:00',3,4000),(2,'Apple iPhone 11 打折促销','2020-01-12 00:00:00','2020-01-13 12:00:00',2,3500); /*!40000 ALTER TABLE `promo` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sequence_info` -- DROP TABLE IF EXISTS `sequence_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `sequence_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `current_value` int(11) NOT NULL DEFAULT '0', `step` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sequence_info` -- LOCK TABLES `sequence_info` WRITE; /*!40000 ALTER TABLE `sequence_info` DISABLE KEYS */; INSERT INTO `sequence_info` VALUES (1,'order_info',56,1); /*!40000 ALTER TABLE `sequence_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `stock_log` -- DROP TABLE IF EXISTS `stock_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `stock_log` ( `stock_log_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `item_id` int(11) NOT NULL DEFAULT '0', `amount` int(11) NOT NULL DEFAULT '0', `status` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`stock_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `stock_log` -- LOCK TABLES `stock_log` WRITE; /*!40000 ALTER TABLE `stock_log` DISABLE KEYS */; INSERT INTO `stock_log` VALUES ('35fd0ccc2f184bc3a7fdde71720080e9',2,1,3),('4194ecccc2a94fecb8717f72924287cc',3,1,2),('4aec3e05e2864d8b857614312351a4fb',3,1,3),('960964301a5c4c2988d2fa0c7a33661d',3,1,2),('c5705a19ebb944ebb378f57c525449a0',2,1,3),('f03b71052b5f407ead57a2e49f60838d',2,1,3); /*!40000 ALTER TABLE `stock_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_info` -- DROP TABLE IF EXISTS `user_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `gender` tinyint(4) NOT NULL DEFAULT '0', `age` int(11) NOT NULL DEFAULT '0', `telephone` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `register_mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `third_party_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `telephone_unique_index` (`telephone`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_info` -- LOCK TABLES `user_info` WRITE; /*!40000 ALTER TABLE `user_info` DISABLE KEYS */; INSERT INTO `user_info` VALUES (2,'陈松瑜',1,27,'13032940358','telephone',''),(3,'songor',1,27,'15193594096','telephone',''),(8,'Jagger',1,28,'13006215945','telephone',''),(9,'chensongyu',1,28,'15193594098','telephone',''),(10,'dn',2,25,'18733540863','telephone',''); /*!40000 ALTER TABLE `user_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_password` -- DROP TABLE IF EXISTS `user_password`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_password` ( `id` int(11) NOT NULL AUTO_INCREMENT, `encrypt_password` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `user_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_password` -- LOCK TABLES `user_password` WRITE; /*!40000 ALTER TABLE `user_password` DISABLE KEYS */; INSERT INTO `user_password` VALUES (2,'<PASSWORD>',2),(3,'<PASSWORD>',3),(6,'<PASSWORD>',8),(7,'<PASSWORD>',9),(8,'<PASSWORD>',10); /*!40000 ALTER TABLE `user_password` 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 2020-01-13 3:34:20
-- Schema CREATE TABLE IF NOT EXISTS `BlackMarket` ( `id` int(11) NOT NULL, `price` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BlackMarketOffer` ( `id` int(11) NOT NULL, `cardId` int(11) NOT NULL, `cardType` int(11) NOT NULL, `expirationDate` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BonusTime` ( `id` int(11) NOT NULL, `playerId` int(11) NOT NULL, `mapId` int(11) NOT NULL, `bonusTime00` int(11) NOT NULL DEFAULT '0', `bonusTime01` int(11) NOT NULL DEFAULT '0', `bonusTime02` int(11) NOT NULL DEFAULT '0', `bonusTime03` int(11) NOT NULL DEFAULT '0', `bonusTime10` int(11) NOT NULL DEFAULT '0', `bonusTime11` int(11) NOT NULL DEFAULT '0', `bonusTime12` int(11) NOT NULL DEFAULT '0', `bonusTime13` int(11) NOT NULL DEFAULT '0', `bonusTime20` int(11) NOT NULL DEFAULT '0', `bonusTime21` int(11) NOT NULL DEFAULT '0', `bonusTime22` int(11) NOT NULL DEFAULT '0', `bonusTime23` int(11) NOT NULL DEFAULT '0', `bonusTimeMax` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BonusTime_0_9_2` ( `id` int(11) NOT NULL, `playerId` int(11) NOT NULL, `mapId` int(11) NOT NULL, `bonusTime00` int(11) NOT NULL DEFAULT '0', `bonusTime01` int(11) NOT NULL DEFAULT '0', `bonusTime02` int(11) NOT NULL DEFAULT '0', `bonusTime03` int(11) NOT NULL DEFAULT '0', `bonusTime10` int(11) NOT NULL DEFAULT '0', `bonusTime11` int(11) NOT NULL DEFAULT '0', `bonusTime12` int(11) NOT NULL DEFAULT '0', `bonusTime13` int(11) NOT NULL DEFAULT '0', `bonusTime20` int(11) NOT NULL DEFAULT '0', `bonusTime21` int(11) NOT NULL DEFAULT '0', `bonusTime22` int(11) NOT NULL DEFAULT '0', `bonusTime23` int(11) NOT NULL DEFAULT '0', `bonusTimeMax` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BonusTime_0_9_3` ( `id` int(11) NOT NULL, `playerId` int(11) NOT NULL, `mapId` int(11) NOT NULL, `bonusTime00` int(11) NOT NULL DEFAULT '0', `bonusTime01` int(11) NOT NULL DEFAULT '0', `bonusTime02` int(11) NOT NULL DEFAULT '0', `bonusTime03` int(11) NOT NULL DEFAULT '0', `bonusTime10` int(11) NOT NULL DEFAULT '0', `bonusTime11` int(11) NOT NULL DEFAULT '0', `bonusTime12` int(11) NOT NULL DEFAULT '0', `bonusTime13` int(11) NOT NULL DEFAULT '0', `bonusTime20` int(11) NOT NULL DEFAULT '0', `bonusTime21` int(11) NOT NULL DEFAULT '0', `bonusTime22` int(11) NOT NULL DEFAULT '0', `bonusTime23` int(11) NOT NULL DEFAULT '0', `bonusTimeMax` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BonusTime_0_10_0` ( `id` int(11) NOT NULL, `playerId` int(11) NOT NULL, `mapId` int(11) NOT NULL, `bonusTime00` int(11) NOT NULL DEFAULT '0', `bonusTime01` int(11) NOT NULL DEFAULT '0', `bonusTime02` int(11) NOT NULL DEFAULT '0', `bonusTime03` int(11) NOT NULL DEFAULT '0', `bonusTime10` int(11) NOT NULL DEFAULT '0', `bonusTime11` int(11) NOT NULL DEFAULT '0', `bonusTime12` int(11) NOT NULL DEFAULT '0', `bonusTime13` int(11) NOT NULL DEFAULT '0', `bonusTime20` int(11) NOT NULL DEFAULT '0', `bonusTime21` int(11) NOT NULL DEFAULT '0', `bonusTime22` int(11) NOT NULL DEFAULT '0', `bonusTime23` int(11) NOT NULL DEFAULT '0', `bonusTimeMax` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BonusTime_1_0_0` ( `id` int(11) NOT NULL, `playerId` int(11) NOT NULL, `mapId` int(11) NOT NULL, `bonusTime00` int(11) NOT NULL DEFAULT '0', `bonusTime01` int(11) NOT NULL DEFAULT '0', `bonusTime02` int(11) NOT NULL DEFAULT '0', `bonusTime03` int(11) NOT NULL DEFAULT '0', `bonusTime10` int(11) NOT NULL DEFAULT '0', `bonusTime11` int(11) NOT NULL DEFAULT '0', `bonusTime12` int(11) NOT NULL DEFAULT '0', `bonusTime13` int(11) NOT NULL DEFAULT '0', `bonusTime20` int(11) NOT NULL DEFAULT '0', `bonusTime21` int(11) NOT NULL DEFAULT '0', `bonusTime22` int(11) NOT NULL DEFAULT '0', `bonusTime23` int(11) NOT NULL DEFAULT '0', `bonusTimeMax` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BonusTime_1_1_0` ( `id` int(11) NOT NULL, `playerId` int(11) NOT NULL, `mapId` int(11) NOT NULL, `bonusTime00` int(11) NOT NULL DEFAULT '0', `bonusTime01` int(11) NOT NULL DEFAULT '0', `bonusTime02` int(11) NOT NULL DEFAULT '0', `bonusTime03` int(11) NOT NULL DEFAULT '0', `bonusTime10` int(11) NOT NULL DEFAULT '0', `bonusTime11` int(11) NOT NULL DEFAULT '0', `bonusTime12` int(11) NOT NULL DEFAULT '0', `bonusTime13` int(11) NOT NULL DEFAULT '0', `bonusTime20` int(11) NOT NULL DEFAULT '0', `bonusTime21` int(11) NOT NULL DEFAULT '0', `bonusTime22` int(11) NOT NULL DEFAULT '0', `bonusTime23` int(11) NOT NULL DEFAULT '0', `bonusTimeMax` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `BonusTime_1_2_0` ( `id` int(11) NOT NULL, `playerId` int(11) NOT NULL, `mapId` int(11) NOT NULL, `bonusTime00` int(11) NOT NULL DEFAULT '0', `bonusTime01` int(11) NOT NULL DEFAULT '0', `bonusTime02` int(11) NOT NULL DEFAULT '0', `bonusTime03` int(11) NOT NULL DEFAULT '0', `bonusTime10` int(11) NOT NULL DEFAULT '0', `bonusTime11` int(11) NOT NULL DEFAULT '0', `bonusTime12` int(11) NOT NULL DEFAULT '0', `bonusTime13` int(11) NOT NULL DEFAULT '0', `bonusTime20` int(11) NOT NULL DEFAULT '0', `bonusTime21` int(11) NOT NULL DEFAULT '0', `bonusTime22` int(11) NOT NULL DEFAULT '0', `bonusTime23` int(11) NOT NULL DEFAULT '0', `bonusTimeMax` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `Hero` ( `id` int(11) NOT NULL, `name` varchar(128) COLLATE utf8_bin NOT NULL, `rarity` int(4) NOT NULL, `sinceVersion` varchar(5) COLLATE utf8_bin NOT NULL, `isForgeable` int(1) NOT NULL, `isBlackMarketOffer` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `Item` ( `id` int(11) NOT NULL, `name` varchar(128) COLLATE utf8_bin NOT NULL, `rarity` int(4) NOT NULL, `sinceVersion` varchar(5) COLLATE utf8_bin NOT NULL, `isForgeable` int(1) NOT NULL, `isBlackMarketOffer` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `Player` ( `id` int(11) NOT NULL, `savekey` varchar(6) COLLATE utf8_bin NOT NULL, `level` int(11) NOT NULL, `experience` bigint(20) NOT NULL, `name` varchar(32) COLLATE utf8_bin NOT NULL, `isCheater` tinyint(1) NOT NULL DEFAULT '0', `lastUpdate` datetime DEFAULT NULL, `relics` int(11) NOT NULL DEFAULT '0', `boosters` int(11) NOT NULL DEFAULT '0', `lastQuestCreation` datetime DEFAULT NULL, `email` text COLLATE utf8_bin, `supporterLevel` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `PlayerDailyQuest` ( `playerId` int(11) NOT NULL, `questId` int(11) NOT NULL, `creationDate` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `PlayerFoilCard` ( `playerId` int(11) NOT NULL, `cardId` int(11) NOT NULL, `cardType` int(11) NOT NULL, `amount` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `PlayerHiddenQuest` ( `playerId` int(11) NOT NULL, `questId` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `PlayerPurchasedBlackMarketOffer` ( `playerId` int(11) NOT NULL, `offerId` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `PlayerPurchasedProduct` ( `playerId` int(11) NOT NULL, `productId` varchar(128) COLLATE utf8_bin NOT NULL, `store` varchar(64) COLLATE utf8_bin NOT NULL, `data` text COLLATE utf8_bin NOT NULL, `signature` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `Potion` ( `id` int(11) NOT NULL, `name` varchar(128) COLLATE utf8_bin NOT NULL, `rarity` int(4) NOT NULL, `sinceVersion` varchar(5) COLLATE utf8_bin NOT NULL, `isForgeable` int(1) NOT NULL, `isBlackMarketOffer` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `Quest` ( `id` int(11) NOT NULL, `title` varchar(128) COLLATE utf8_bin NOT NULL, `description` varchar(256) COLLATE utf8_bin NOT NULL, `requiredAmount` int(11) NOT NULL, `reward` int(11) NOT NULL, `isHidden` int(1) NOT NULL, `sinceVersion` varchar(16) COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `Tower` ( `id` int(11) NOT NULL, `name` varchar(128) COLLATE utf8_bin NOT NULL, `rarity` int(4) NOT NULL, `sinceVersion` varchar(5) COLLATE utf8_bin NOT NULL, `isForgeable` int(1) NOT NULL, `isBlackMarketOffer` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE IF NOT EXISTS `VersionInfo` ( `store` varchar(64) COLLATE utf8_bin NOT NULL, `version` varchar(14) COLLATE utf8_bin NOT NULL, `url` text COLLATE utf8_bin NOT NULL, `details` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ALTER TABLE `BlackMarket` ADD PRIMARY KEY (`id`); ALTER TABLE `BlackMarketOffer` ADD PRIMARY KEY (`id`); ALTER TABLE `BonusTime` ADD PRIMARY KEY (`id`), ADD KEY `playerId` (`playerId`), ADD KEY `mapId` (`mapId`); ALTER TABLE `BonusTime_0_9_2` ADD PRIMARY KEY (`id`), ADD KEY `playerId` (`playerId`), ADD KEY `mapId` (`mapId`); ALTER TABLE `BonusTime_0_9_3` ADD PRIMARY KEY (`id`), ADD KEY `playerId` (`playerId`), ADD KEY `mapId` (`mapId`); ALTER TABLE `BonusTime_0_10_0` ADD PRIMARY KEY (`id`), ADD KEY `playerId` (`playerId`), ADD KEY `mapId` (`mapId`); ALTER TABLE `BonusTime_1_0_0` ADD PRIMARY KEY (`id`), ADD KEY `playerId` (`playerId`), ADD KEY `mapId` (`mapId`); ALTER TABLE `BonusTime_1_1_0` ADD PRIMARY KEY (`id`), ADD KEY `playerId` (`playerId`), ADD KEY `mapId` (`mapId`); ALTER TABLE `BonusTime_1_2_0` ADD PRIMARY KEY (`id`), ADD KEY `playerId` (`playerId`), ADD KEY `mapId` (`mapId`); ALTER TABLE `Hero` ADD PRIMARY KEY (`id`); ALTER TABLE `Item` ADD PRIMARY KEY (`id`); ALTER TABLE `Player` ADD PRIMARY KEY (`id`), ADD KEY `savekey` (`savekey`); ALTER TABLE `PlayerDailyQuest` ADD PRIMARY KEY (`playerId`,`questId`); ALTER TABLE `PlayerFoilCard` ADD PRIMARY KEY (`playerId`,`cardId`,`cardType`); ALTER TABLE `PlayerHiddenQuest` ADD PRIMARY KEY (`playerId`,`questId`); ALTER TABLE `PlayerPurchasedBlackMarketOffer` ADD PRIMARY KEY (`playerId`,`offerId`); ALTER TABLE `PlayerPurchasedProduct` ADD PRIMARY KEY (`playerId`,`productId`); ALTER TABLE `Potion` ADD PRIMARY KEY (`id`); ALTER TABLE `Quest` ADD PRIMARY KEY (`id`); ALTER TABLE `Tower` ADD PRIMARY KEY (`id`); ALTER TABLE `VersionInfo` ADD PRIMARY KEY (`store`); ALTER TABLE `BlackMarketOffer` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `BonusTime` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `BonusTime_0_9_2` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `BonusTime_0_9_3` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `BonusTime_0_10_0` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `BonusTime_1_0_0` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `BonusTime_1_1_0` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `BonusTime_1_2_0` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `Player` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- Fixed data -- Black Market settings INSERT INTO BlackMarket (id, price) VALUES (1, 250); -- Quests INSERT INTO Quest (id, title, description, requiredAmount, reward, isHidden, sinceVersion) VALUES (1, 'Headhunter', 'Kill 7 <color rgb="0xffff00">Challenges</color>!', 7, 40, 0, '1.0.0'), (2, 'Dark Planet', 'Win a game with <color rgb="0x444444">Darkness</color> and <color rgb="0x71864c">Nature</color> towers only.', 1, 40, 0, '1.0.0'), (3, 'Green City', 'Win a game with <color rgb="0x71864c">Nature</color> and <color rgb="0x868686">Metropolis</color> towers only.', 1, 40, 0, '1.0.0'), (4, 'Claim the Moor', 'Defeat all enemies in the Blood Moor!', 1, 100, 1, '1.0.0'), (5, 'Wind Lord', 'Defeat all enemies in the Shattered Plains!', 1, 100, 1, '1.0.0'), (6, 'Credits Watcher', 'AWESOME! You watched the ENTIRE credits!', 1, 20, 1, '1.0.0'), (7, 'Black Mirrors', 'Win a game with <color rgb="0x444444">Darkness</color> and <color rgb="0x868686">Metropolis</color> towers only.', 1, 40, 0, '1.0.0'), (8, 'Embrace the Dark', 'Win a game with <color rgb="0x444444">Darkness</color> towers only.', 1, 60, 1, '1.0.0'), (9, 'Nature''s Wrath', 'Win a game with <color rgb="0x71864c">Nature</color> towers only.', 1, 60, 1, '1.0.0'), (10, 'Urbanize!', 'Win a game with <color rgb="0x868686">Metropolis</color> towers only.', 1, 60, 1, '1.0.0'), (11, 'Twisted Mind', 'Defeat all enemies in the Twisted Paths!', 1, 100, 1, '1.0.0'), (12, 'Golden Deckmaster!', 'Defeat all enemies in the Golden Land!', 1, 250, 1, '1.0.0'), (13, 'Survivor', 'Survive 800 seconds in the bonus round!', 800, 60, 0, '1.0.0'), (14, 'American Dream', 'Collect 1M gold!', 1000000, 60, 0, '1.0.0'), (15, 'The wisdom of towers', 'Gain 400 tower levels!', 400, 40, 0, '1.0.0'), (16, 'Black Market Visitor', 'Hey! You found the black market!', 1, 20, 1, '1.1.0'), (17, 'Innkeeper''s regular', 'Thank you, come again! :-)', 1, 20, 1, '1.1.0'), (18, 'Black Market Customer', 'A pleasure, friend. Come again!', 1, 100, 1, '1.1.0'), (19, 'Perfect game', 'Good lord! You just bowled a perfect game!', 1, 250, 1, '1.2.0'), (20, 'Strike Machine', 'Play bowling and roll 5 strikes!', 5, 40, 0, '1.2.0'), (21, 'Dust, everywhere!', 'You just created your first Card Dust.', 1, 20, 1, '1.3.0'), (22, 'About time!', 'No longer swipe until your fingers bleed.', 1, 20, 1, '1.3.0'), (23, 'Cheers!', 'From now on you win every drinking contest.', 1, 20, 1, '1.3.0'), (24, 'Deck Shuffler', 'Transmute 200 cards!', 200, 40, 0, '1.3.0'), (25, 'Nibble, nibble, gnaw', 'Let <color rgb="0xa800ff">Knusperhexe</color> eat 700 creeps.', 700, 40, 0, '1.3.0'), (26, 'It''s so fluffy!!!', 'Let <color rgb="0xa800ff">Balu</color> be cuddled 200 times.', 200, 40, 0, '1.3.0'), (27, 'Monkey Mania!', 'Let <color rgb="0xa800ff">Muli</color> have 200 hangovers.', 200, 40, 0, '1.3.0'); -- Towers INSERT INTO Tower (id, name, rarity, sinceVersion, isForgeable, isBlackMarketOffer) VALUES (1, 'Beaver', 1, '0.1', 1, 0), (2, 'Dandelion', 1, '0.1', 1, 0), (3, '<NAME>', 1, '0.1', 1, 0), (4, '<NAME>', 2, '0.1', 1, 0), (5, '<NAME>', 2, '0.1', 1, 0), (6, 'Wolf', 2, '0.1', 1, 0), (7, '<NAME>', 3, '0.1', 1, 0), (8, '<NAME>', 3, '0.2', 1, 0), (9, '<NAME>', 3, '0.3', 1, 0), (10, 'Ganesha', 4, '0.1', 1, 0), (11, '<NAME>', 4, '0.3', 1, 0), (12, 'Manitou', 4, '0.3', 1, 0), (39, '<NAME>', 5, '1.3', 1, 0), (40, 'Kiwi', 5, '1.3', 0, 0), (13, 'Hitman', 1, '0.2', 1, 0), (14, 'Scientist', 1, '0.3', 1, 0), (15, 'Pocket Thief', 1, '0.4', 1, 0), (16, 'Electric Chair', 2, '0.1', 1, 0), (17, '<NAME>', 2, '0.4', 1, 0), (18, '<NAME>', 2, '0.9', 1, 0), (19, '<NAME>', 3, '0.4', 1, 0), (20, 'Mr. Iron', 3, '0.9', 1, 0), (21, 'Scarface', 3, '0.9', 1, 0), (22, 'Muli the Evil Twin', 4, '0.7', 1, 0), (23, 'Blofeld Laser Satellite', 4, '0.4', 1, 0), (24, 'Black Widow', 4, '0.5', 1, 0), (41, 'Stonecutter''s Temple', 4, '1.3', 1, 0), (25, '<NAME>', 1, '0.9', 1, 0), (33, 'Twisted Novice Wizard', 1, '1.0', 1, 0), (34, 'Small Spider', 1, '1.0', 1, 0), (26, 'Scarecrow', 2, '0.6', 1, 0), (27, 'Shadow', 2, '0.7', 1, 0), (36, 'Solara, The Fire Elemental', 2, '1.0', 1, 0), (28, 'Gib, the Frozen Daemon', 2, '0.8', 1, 0), (32, 'Acolyte of Greed', 3, '1.0', 1, 0), (38, 'The Ripper', 3, '1.1', 1, 0), (29, 'Knusperhexe', 4, '0.6', 1, 0), (30, 'The Dark Forge', 4, '0.7', 1, 0), (37, 'Abyss King', 4, '1.0', 1, 0), (35, 'Blood Demon', 5, '1.0', 1, 0), (31, 'Horadric Cube', 4, '0.3', 0, 0); -- Items INSERT INTO Item (id, name, rarity, sinceVersion, isForgeable, isBlackMarketOffer) VALUES (1, 'Wooden Staff', 1, '0.2', 1, 0), (2, 'Leather Boots', 1, '0.2', 1, 0), (3, 'Well done T-Bone Steak', 1, '0.2', 1, 0), (4, 'Baby Sword', 1, '0.2', 1, 0), (5, 'School Book', 1, '0.2', 1, 0), (6, 'Wet Towel', 1, '0.2', 1, 0), (7, 'Pumpkin', 1, '0.6', 1, 0), (8, 'Medium T-Bone Steak', 2, '0.2', 1, 0), (9, 'Handbag', 2, '0.2', 1, 0), (10, 'Gold coins', 1, '0.2', 1, 0), (11, 'Ring of greed', 1, '0.2', 1, 0), (12, 'Longbow', 2, '0.3', 1, 0), (13, 'Monster Teeth', 2, '0.3', 1, 0), (14, 'Magic Mushroom', 2, '0.4', 1, 0), (15, 'Lucky Pants', 2, '0.2', 1, 0), (16, 'Painting of Solea', 2, '0.7', 1, 0), (17, 'Meat Mallet', 2, '0.7', 1, 0), (51, 'Wolfskin Cloak', 2, '0.10', 1, 0), (18, 'Rare T-Bone Steak', 3, '0.2', 1, 0), (19, 'Seven-leagues boots', 3, '0.2', 1, 0), (20, 'Fistful of Steel', 3, '0.4', 1, 0), (21, '<NAME>''s Cauldron', 3, '0.4', 1, 0), (22, 'Key of Wisdom', 3, '0.5', 1, 0), (23, 'Viking Helmet', 3, '0.9', 1, 0), (24, 'Irish Pub''s Barrel', 3, '0.9', 1, 0), (25, 'Excalibur', 4, '0.2', 1, 0), (26, 'Helm of Hades', 4, '0.3', 1, 0), (27, 'Messerschmidt''s Reaver', 4, '0.5', 1, 0), (28, 'Dungeon Door', 4, '0.6', 1, 0), (29, 'Scepter of Time', 4, '0.8', 1, 0), (30, 'Wedding Ring of Yin', 4, '0.9', 1, 0), (31, 'Wedding Ring of Yang', 4, '0.9', 1, 0), (32, 'Norls Steel', 2, '0.7', 1, 0), (33, 'Norls Guardian', 1, '0.7', 1, 0), (34, 'Frozen Water', 1, '0.8', 1, 0), (35, 'Frozen Heart', 3, '0.8', 1, 0), (36, 'Frozen Candle', 3, '0.8', 1, 0), (37, 'Frozen Book', 2, '0.8', 1, 0), (38, 'Dried Cactus', 2, '0.8', 1, 0), (39, 'Rotten Toadstool', 1, '0.8', 1, 0), (40, 'Mummy Bandages', 4, '0.8', 1, 0), (41, 'Stressful Wristwatch', 1, '0.9', 1, 0), (42, 'Last Train of the Day', 2, '0.9', 1, 0), (43, 'Unrelenting Force', 3, '0.9', 1, 0), (59, 'Plasma Blade', 4, '1.3', 1, 0), (60, 'GT1, the little robot', 4, '1.3', 1, 0), (44, 'Dark Baby sword', 1, '0.7', 1, 0), (45, 'Dark gold coins', 1, '0.7', 1, 0), (46, 'Dark ring of greed', 1, '0.7', 1, 0), (47, 'Dark Meat Mallet', 2, '0.7', 1, 0), (48, 'Dark Witch''s Cauldron', 3, '0.7', 1, 0), (49, 'Dark Fistful of Steel', 3, '0.7', 1, 0), (50, 'Blade of Darkness', 4, '0.7', 1, 0), (52, 'Blood Demon''s Blade', 5, '1.0', 0, 0), (53, 'Seelenreisser', 5, '1.0', 1, 0), (54, 'Unlucky Pants', 5, '1.1', 0, 1), (55, 'Skull of Darkness', 5, '1.1', 0, 1), (56, 'Spectral Daggers', 5, '1.1', 0, 1), (57, 'Cape of the Specter', 5, '1.1', 0, 1), (58, 'The Dude', 5, '1.2', 0, 1), (63, 'Mjoelnir', 5, '1.3', 0, 1), (61, 'A Note from the Developer', 4, '1.3', 0, 0), (62, 'A Note from the Developer', 1, '1.3', 0, 0); -- Potions INSERT INTO Potion (id, name, rarity, sinceVersion, isForgeable, isBlackMarketOffer) VALUES (1, 'Small Potion of Strength', 1, '0.3', 1, 0), (2, 'Small Potion of Speed', 1, '0.3', 1, 0), (3, 'Small Potion of Crit', 1, '0.3', 1, 0), (4, 'Mead Bottle', 1, '0.3', 1, 0), (5, 'Potion of Strength', 2, '0.3', 1, 0), (6, 'Potion of Speed', 2, '0.3', 1, 0), (7, 'Potion of Crit', 2, '0.3', 1, 0), (8, 'Water of Life', 2, '0.3', 1, 0), (9, 'Great Potion of Strength', 3, '0.3', 1, 0), (10, 'Great Potion of Speed', 3, '0.3', 1, 0), (11, 'Great Potion of Crit', 3, '0.3', 1, 0), (12, 'Great Water of Life', 3, '0.3', 1, 0), (13, 'Tears of the Gods', 4, '0.4', 1, 0), (14, 'Nillos'' Elixir of Cunning', 4, '0.4', 1, 0), (15, 'Painkiller', 4, '0.5', 1, 0), (16, 'Soul Flask', 4, '0.6', 1, 0), (17, 'Essence of Wisdom', 4, '0.8', 1, 0), (20, 'Card Dust', 4, '1.3', 1, 0), (21, 'Card Dust', 4, '1.3', 1, 0), (22, 'Card Dust', 4, '1.3', 1, 0), (23, 'Card Dust', 4, '1.3', 1, 0), (18, 'Essence of Luck', 5, '1.0', 1, 0), (19, 'Angelic Elixir', 5, '1.0', 0, 0), (24, 'A Drink from the Developer', 4, '1.3', 0, 0); -- Heroes INSERT INTO Hero (id, name, rarity, sinceVersion, isForgeable, isBlackMarketOffer) VALUES (1, '<NAME>', 1, '1.0', 1, 0), (2, '<NAME>', 1, '1.0', 1, 0), (3, '<NAME>', 1, '1.0', 1, 0), (4, '<NAME>', 5, '1.0', 1, 0), (5, 'Cookiemonster', 5, '1.0', 0, 0), (6, 'Innkeeper', 5, '1.0', 0, 0), (7, 'The ''horadric'' Mage', 5, '1.0', 1, 0), (8, 'Osmo, the Jester King', 5, '1.0', 1, 0), (9, 'Kvothe, the Arcane', 2, '1.1', 1, 0), (10, 'Loan Shark', 5, '1.1', 1, 0), (11, '<NAME>', 5, '1.3', 1, 0); -- Version info INSERT INTO `VersionInfo` (`store`, `version`, `url`, `details`) VALUES ('GooglePlay', '1.2.0', 'market://details?id=air.com.mazebert.MazebertTD', 'New wizard skills!\n\nA new black market item!\n\nSeveral bugfixes..'), ('iTunes', '1.2.0', 'https://itunes.apple.com/us/app/mazebert-td/id714699723?mt=8&uo=4', 'New wizard skills!\n\nA new black market item!\n\nSeveral bugfixes..');
CREATE STREAM R(A int, B int) FROM FILE 'examples/data/simple/r.dat' LINE DELIMITED CSV (); SELECT (100000*SUM(1))/B FROM R GROUP BY B;
<reponame>EuPathDB/ApiCommonData DROP TABLE apidb.GeneInteraction; DROP SEQUENCE apidb.GeneInteraction_sq; DELETE FROM core.TableInfo WHERE name = 'GeneInteraction' AND database_id = (SELECT database_id FROM core.DatabaseInfo WHERE name = 'ApiDB'); exit;
/* * Copyright 2020 Huawei Technologies Co., Ltd. * * 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. */ CREATE DATABASE "marketplaceDB"; \c marketplaceDB; DROP TABLE IF EXISTS CSAR_PACKAGE_TABLE; CREATE TABLE CSAR_PACKAGE_TABLE ( CSARID VARCHAR(200) NOT NULL, DOWNLOADURI VARCHAR(200) NULL, REPORT VARCHAR(200) NULL, SIZE VARCHAR(100) NULL, FORMAT VARCHAR(100) NULL, CREATETIME VARCHAR(100) NULL, DELETIONPENDING VARCHAR(100) NULL, MODIFYTIME VARCHAR(100) NULL, SHORTDESC TEXT NULL, NAME VARCHAR(100) NULL, VERSION VARCHAR(20) NULL, PROVIDER VARCHAR(300) NULL, TYPE VARCHAR(300) NULL, DETAILS TEXT NULL, REMARKS TEXT NULL, DOWNLOADCOUNT INT NULL, CONSTRAINT csar_package_table_pkey PRIMARY KEY (CSARID) );
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 21, 2016 at 03:29 PM -- Server version: 5.5.46-0ubuntu0.14.04.2 -- PHP Version: 5.5.9-1ubuntu4.14 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: `yii2` -- -- -------------------------------------------------------- -- -- Table structure for table `auth_item` -- CREATE TABLE IF NOT EXISTS `auth_item` ( `name` varchar(64) NOT NULL, `type` int(11) NOT NULL, `description` text, `rule_name` varchar(64) DEFAULT NULL, `data` text, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL, PRIMARY KEY (`name`), KEY `rule_name` (`rule_name`), KEY `type` (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `auth_rule` -- CREATE TABLE IF NOT EXISTS `auth_rule` ( `name` varchar(64) NOT NULL, `data` text, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `branches` -- CREATE TABLE IF NOT EXISTS `branches` ( `id` int(11) NOT NULL AUTO_INCREMENT, `company_id` int(11) NOT NULL, `branch_name` varchar(100) NOT NULL, `branch_address` varchar(100) NOT NULL, `created_dt` datetime NOT NULL, `status` tinyint(10) NOT NULL, PRIMARY KEY (`id`), KEY `company_id` (`company_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `branches` -- INSERT INTO `branches` (`id`, `company_id`, `branch_name`, `branch_address`, `created_dt`, `status`) VALUES (1, 3, 'Corporate office', 'Stadium Circle', '2015-12-23 01:51:54', 1); -- -------------------------------------------------------- -- -- Table structure for table `companies` -- CREATE TABLE IF NOT EXISTS `companies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `company_name` varchar(100) NOT NULL, `company_address` varchar(100) NOT NULL, `company_email` varchar(100) NOT NULL, `created_dt` datetime NOT NULL, `status` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; -- -- Dumping data for table `companies` -- INSERT INTO `companies` (`id`, `company_name`, `company_address`, `company_email`, `created_dt`, `status`) VALUES (2, 'Cygnet- infotech', '<NAME>', '<EMAIL>', '2015-12-23 12:42:56', 1), (3, 'DRC Systems', 'Ahmedabad', '<EMAIL>', '2015-12-24 09:02:42', 1), (4, 'test', 'test', '<EMAIL>', '2015-12-25 13:13:18', 1), (5, 'DRC Systems1', 'Ahmedabad', '<EMAIL>', '2015-12-25 13:24:10', 1), (6, 'Cygnet infotech', 'Ahmedabad', '<EMAIL>', '2016-02-12 13:27:58', 1), (7, 'DRC Systems236', 'Ahmedabad', '<EMAIL>', '2016-02-12 13:36:27', 1), (8, 'suniltest', 'Ahmedabad', '<EMAIL>', '2016-02-12 13:37:18', 1); -- -------------------------------------------------------- -- -- Table structure for table `country` -- CREATE TABLE IF NOT EXISTS `country` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, `status` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `country` -- INSERT INTO `country` (`id`, `title`, `status`) VALUES (1, 'India', 1); -- -------------------------------------------------------- -- -- Table structure for table `departments` -- CREATE TABLE IF NOT EXISTS `departments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `company_id` int(11) NOT NULL, `branch_id` int(11) NOT NULL, `department_name` varchar(100) NOT NULL, `created_dt` datetime NOT NULL, `status` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `company_id` (`company_id`), KEY `branch_id` (`branch_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `departments` -- INSERT INTO `departments` (`id`, `company_id`, `branch_id`, `department_name`, `created_dt`, `status`) VALUES (1, 3, 1, 'IT', '2015-01-01 00:00:00', 1); -- -------------------------------------------------------- -- -- Table structure for table `migration` -- CREATE TABLE IF NOT EXISTS `migration` ( `version` varchar(180) NOT NULL, `apply_time` int(11) DEFAULT NULL, PRIMARY KEY (`version`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `migration` -- INSERT INTO `migration` (`version`, `apply_time`) VALUES ('m000000_000000_base', 1450855890), ('m130524_201442_init', 1450855936); -- -------------------------------------------------------- -- -- Table structure for table `page` -- CREATE TABLE IF NOT EXISTS `page` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) DEFAULT NULL, `is_url` tinyint(1) DEFAULT NULL, `page_url` text, `page_name` varchar(100) NOT NULL, `page_content` text, `is_seo` tinyint(1) DEFAULT NULL, `page_seo_name` varchar(255) DEFAULT NULL, `meta_key` text, `meta_values` text, `status` tinyint(1) NOT NULL, `created_dt` datetime NOT NULL, PRIMARY KEY (`id`), KEY `parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; -- -- Dumping data for table `page` -- INSERT INTO `page` (`id`, `parent_id`, `is_url`, `page_url`, `page_name`, `page_content`, `is_seo`, `page_seo_name`, `meta_key`, `meta_values`, `status`, `created_dt`) VALUES (6, NULL, 1, 'Privacy-Policy', 'About Us', '<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#39;Content here, content here&#39;, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#39;lorem ipsum&#39; will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>\r\n\r\n<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. <NAME>, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor sit amet..&quot;, comes from a line in section 1.10.32.</p>\r\n\r\n<p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from &quot;de Finibus Bonorum et Malorum&quot; by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by <NAME>.</p>\r\n\r\n<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#39;Content here, content here&#39;, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#39;lorem ipsum&#39; will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>\r\n\r\n<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#39;Content here, content here&#39;, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#39;lorem ipsum&#39; will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>\r\n\r\n<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. <NAME>, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor sit amet..&quot;, comes from a line in section 1.10.32.</p>\r\n\r\n<p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from &quot;de Finibus Bonorum et Malorum&quot; by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by <NAME>.</p>\r\n\r\n<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using &#39;Content here, content here&#39;, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for &#39;lorem ipsum&#39; will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>\r\n', 1, 'about-us', 'metatestkey', 'metatestvalue', 1, '2015-12-31 00:00:00'), (7, NULL, 1, 'Privacy-Policy', 'Privacy Policy', '<h3>The standard Lorem Ipsum passage, used since the 1500s</h3>\r\n\r\n<p>&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&quot;</p>\r\n\r\n<h3>Section 1.10.32 of &quot;de Finibus Bonorum et Malorum&quot;, written by Cicero in 45 BC</h3>\r\n\r\n<p>&quot;Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?&quot;</p>\r\n\r\n<h3>1914 translation by <NAME></h3>\r\n\r\n<p>&quot;But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?&quot;</p>\r\n\r\n<h3>Section 1.10.33 of &quot;de Finibus Bonorum et Malorum&quot;, written by Cicero in 45 BC</h3>\r\n\r\n<p>&quot;At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.&quot;</p>\r\n\r\n<h3>1914 translation by <NAME></h3>\r\n\r\n<p>&quot;On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.&quot;</p>\r\n', 1, 'privacy-policy', 'privacy-policy-key', 'privacy-policy-value', 1, '2016-01-01 00:00:00'), (8, NULL, 1, 'vision', 'Vision', '<h3>1914 translation by <NAME></h3>\r\n\r\n<p>&quot;But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?&quot;</p>\r\n\r\n<h3>Section 1.10.33 of &quot;de Finibus Bonorum et Malorum&quot;, written by Cicero in 45 BC</h3>\r\n\r\n<p>&quot;At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.&quot;</p>\r\n\r\n<h3>1914 translation by <NAME></h3>\r\n\r\n<p>&quot;On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.&quot;</p>\r\n', 1, 'vision', NULL, NULL, 1, '2016-01-01 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `role_action` -- CREATE TABLE IF NOT EXISTS `role_action` ( `id` int(11) NOT NULL AUTO_INCREMENT, `module_name` varchar(100) NOT NULL, `controller_name` varchar(100) NOT NULL, `action_name` varchar(100) NOT NULL, PRIMARY KEY (`id`), KEY `module_id` (`module_name`), KEY `controller_id` (`controller_name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=206 ; -- -- Dumping data for table `role_action` -- INSERT INTO `role_action` (`id`, `module_name`, `controller_name`, `action_name`) VALUES (157, 'TestModule', 'Branches', 'index'), (158, 'TestModule', 'Branches', 'view'), (159, 'TestModule', 'Branches', 'create'), (160, 'TestModule', 'Branches', 'update'), (161, 'TestModule', 'Branches', 'delete'), (162, 'TestModule', 'Companies', 'index'), (163, 'TestModule', 'Companies', 'view'), (164, 'TestModule', 'Companies', 'create'), (165, 'TestModule', 'Companies', 'update'), (166, 'TestModule', 'Companies', 'delete'), (167, 'TestModule', 'Country', 'index'), (168, 'TestModule', 'Country', 'view'), (169, 'TestModule', 'Country', 'create'), (170, 'TestModule', 'Country', 'update'), (171, 'TestModule', 'Country', 'delete'), (172, 'TestModule', 'Departments', 'index'), (173, 'TestModule', 'Departments', 'view'), (174, 'TestModule', 'Departments', 'create'), (175, 'TestModule', 'Departments', 'update'), (176, 'TestModule', 'Departments', 'delete'), (177, 'TestModule', 'Page', 'index'), (178, 'TestModule', 'Page', 'view'), (179, 'TestModule', 'Page', 'create'), (180, 'TestModule', 'Page', 'update'), (181, 'TestModule', 'Page', 'delete'), (182, 'TestModule', 'Roleaction', 'index'), (183, 'TestModule', 'Roleaction', 'view'), (184, 'TestModule', 'Roleaction', 'create'), (185, 'TestModule', 'Roleaction', 'update'), (186, 'TestModule', 'Roleaction', 'delete'), (187, 'TestModule', 'Roleaction', 'getcontrollersandactions'), (188, 'TestModule', 'Rolemaster', 'index'), (189, 'TestModule', 'Rolemaster', 'view'), (190, 'TestModule', 'Rolemaster', 'create'), (191, 'TestModule', 'Rolemaster', 'update'), (192, 'TestModule', 'Rolemaster', 'delete'), (193, 'TestModule', 'Site', 'index'), (194, 'TestModule', 'Site', 'login'), (195, 'TestModule', 'Site', 'logout'), (196, 'TestModule', 'User', 'index'), (197, 'TestModule', 'User', 'view'), (198, 'TestModule', 'User', 'create'), (199, 'TestModule', 'User', 'update'), (200, 'TestModule', 'User', 'delete'), (201, 'TestModule', 'Usertype', 'index'), (202, 'TestModule', 'Usertype', 'view'), (203, 'TestModule', 'Usertype', 'create'), (204, 'TestModule', 'Usertype', 'update'), (205, 'TestModule', 'Usertype', 'delete'); -- -------------------------------------------------------- -- -- Table structure for table `role_controller` -- CREATE TABLE IF NOT EXISTS `role_controller` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; -- -- Dumping data for table `role_controller` -- INSERT INTO `role_controller` (`id`, `title`) VALUES (1, 'Branches'), (2, 'Companies'), (3, 'Departments'), (4, 'Roleaction'), (5, 'Rolemaster'), (6, 'Site'), (7, 'Usertype'), (8, 'Branches'); -- -------------------------------------------------------- -- -- Table structure for table `role_master` -- CREATE TABLE IF NOT EXISTS `role_master` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_action_id` int(11) NOT NULL, `user_type_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `role_action_id` (`role_action_id`), KEY `user_type_id` (`user_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=299 ; -- -- Dumping data for table `role_master` -- INSERT INTO `role_master` (`id`, `role_action_id`, `user_type_id`) VALUES (207, 159, 1), (208, 161, 1), (209, 157, 1), (210, 160, 1), (211, 158, 1), (212, 164, 1), (213, 166, 1), (214, 162, 1), (215, 165, 1), (216, 163, 1), (217, 174, 1), (218, 176, 1), (219, 172, 1), (220, 175, 1), (221, 173, 1), (222, 179, 1), (223, 181, 1), (224, 177, 1), (225, 180, 1), (226, 178, 1), (227, 184, 1), (228, 186, 1), (229, 187, 1), (230, 182, 1), (231, 185, 1), (232, 183, 1), (233, 190, 1), (234, 192, 1), (235, 188, 1), (236, 191, 1), (237, 189, 1), (238, 193, 1), (239, 194, 1), (240, 195, 1), (241, 198, 1), (242, 200, 1), (243, 196, 1), (244, 199, 1), (245, 197, 1), (246, 203, 1), (247, 205, 1), (248, 201, 1), (249, 204, 1), (250, 202, 1), (251, 159, 2), (252, 161, 2), (253, 157, 2), (254, 160, 2), (255, 158, 2), (256, 164, 2), (257, 166, 2), (258, 162, 2), (259, 165, 2), (260, 163, 2), (261, 171, 2), (262, 167, 2), (263, 170, 2), (264, 168, 2), (265, 174, 2), (266, 176, 2), (267, 172, 2), (268, 175, 2), (269, 173, 2), (270, 179, 2), (271, 181, 2), (272, 177, 2), (273, 180, 2), (274, 178, 2), (275, 184, 2), (276, 186, 2), (277, 187, 2), (278, 182, 2), (279, 185, 2), (280, 183, 2), (281, 190, 2), (282, 192, 2), (283, 188, 2), (284, 191, 2), (285, 189, 2), (286, 193, 2), (287, 194, 2), (288, 195, 2), (289, 198, 2), (290, 200, 2), (291, 196, 2), (292, 199, 2), (293, 197, 2), (294, 203, 2), (295, 205, 2), (296, 201, 2), (297, 204, 2), (298, 202, 2); -- -------------------------------------------------------- -- -- Table structure for table `role_module` -- CREATE TABLE IF NOT EXISTS `role_module` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `role_module` -- INSERT INTO `role_module` (`id`, `title`) VALUES (1, 'TestModule'), (2, 'TestModule2\r\n'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `last_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `user_type_id` int(11) NOT NULL, `access_token` text COLLATE utf8_unicode_ci, `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `status` smallint(6) NOT NULL DEFAULT '10', `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`), UNIQUE KEY `email` (`email`), UNIQUE KEY `password_reset_token` (`password_reset_token`), KEY `user_type_id` (`user_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=21 ; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `first_name`, `last_name`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `user_type_id`, `access_token`, `image`, `status`, `created_at`, `updated_at`) VALUES (1, 'Admin', 'User', 'skumar', 'jqHUUxXatwzRaYClXgPsn4Z0MC_uzn_w', '$2y$13$TGnn.srE8pJOlGQiA48cEObaP/JfbSa/EexA/QCBwYbwKjhE5V5Iy', NULL, '<EMAIL>', 1, 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.e30.ZQxdsOIyz1n2y-cdgj4Ul79O4w1Bjrf631lbUxjDvEI', NULL, 1, 1450867114, 1455284267), (5, 'tset', 'test', 'skumar1', 'nc2AvQy6x17nbOLF2IcNGzFGOHvF4Rjk', '$2y$13$I9i/afjpsUMGCoWNGo8QjOTe5hBkpYj4JWdocCi7O.QNHUFRNqnLm', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1451912936, 1451916781), (6, 'Manish2', 'Jangir', 'manish2', '3fY7KLy2V9s_9d8zDnMUsKS5QlOlzCcP', '$2y$13$r/XH6melAxlhqkv4yfOQre3S78GvCQOyua/flccooHjmSnopGVPdG', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1451914043, 1451914043), (7, 'Test', 'User', 'testuser', '-Vby3b3TcAmqX8BpXl1r6ICbYP4gXpYb', '$<PASSWORD>', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1451973459, 1452683550), (9, 'testusr', 'tstusre2', 'testuser2', '_8ZToW0rxIMFc1xbWAVWrdoMT-eHrVUZ', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1452842118, 1452842118), (10, 'testusr', 'tstusre2', 'testuser22', 'Cvemy5s5t_tJh5T4qtQ-pPthGhRjI2aK', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1452842843, 1452842843), (11, 'testusr', 'tstusre2', 'testuser2223hh', 'qCX8ZWoe4GChzD4jkBPoQiyjQ8W1uctR', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1452857167, 1452857167), (12, 'testusr', 'tstusre2', 'testuser22hh23hh', 'AJ5H7X1eldNGlgWBcyBkiHxuHVkG2ums', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1452857185, 1452857185), (13, 'testusr', 'tstusre2', 'testuser22shh23hh', 'RJykRrYAwP6-P9JM-5drwfpODBKBWLkI', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1452858477, 1452858477), (14, 'testusr', 'tstusre2', 'testuser22shhd23hh', 'DOtDCQrr1U6lD-0wz00RxJ-yF8X-LUUs', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1452858482, 1452858482), (15, 'testusr', 'tstusre2', 'testuser22sdhhd23hh', 'T55yyIipDC3YWLERsuwAWAgd-1Pi3Ajf', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1452858524, 1452858524), (16, 'testusr', 'tstusre2', 'sdftestuser22sdhhd23hh', 'GusJlIkz-SQY2MsxVJALMJc8nnQejYp-', '', NULL, '<EMAIL>', 1, NULL, 'avatar5.png', 1, 1452858607, 1452858607), (18, 'testusrsdfds', 'tstusre2sd12', 'sdftestuser22sdhhd23hhssss', '8pzYPqbV28EyhqGUDT-5fnyBAY1f-bEg', '', NULL, '<EMAIL>', 1, NULL, NULL, 1, 1453098450, 1453098450), (19, 'testusrsdfds', 'tstusre2sd12', 'sdfteddstussser22ccsdhhd23hhssss', 'HyQeI-9Uk4cnIcvyb4OnmlYeeRxDHwbR', '$2y$13$aiU.lHOI99rL5E5muDxln.70CUYRqzaz1Xl0x7OcMEN1319LqSjvm', NULL, '<EMAIL>', 2, NULL, 'boxed-bg.jpg', 1, 1453098550, 1453110135), (20, 'testusrsdfds', 'tstusre2sd12', 'sdfteddstuser22ccsdhhd23hhssss', 'nHXdtWG2kx18sCRKY4lcuMUfCD-d3F2T', '$2y$13$KWuHCkS/A7tFLf86KEtyz.kKGEDZVqjx.XoBi23IqozqPTOWpEji2', NULL, '<EMAIL>', 2, NULL, 'avatar04.png', 1, 1453098720, 1453110128); -- -------------------------------------------------------- -- -- Table structure for table `user_type` -- CREATE TABLE IF NOT EXISTS `user_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, `status` tinyint(1) NOT NULL, `created_dt` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `user_type` -- INSERT INTO `user_type` (`id`, `title`, `status`, `created_dt`) VALUES (1, 'Admin', 1, '2015-12-31 06:39:20'), (2, 'Manager', 1, '2015-12-29 06:20:29'); -- -- Constraints for dumped tables -- -- -- Constraints for table `auth_item` -- ALTER TABLE `auth_item` ADD CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `branches` -- ALTER TABLE `branches` ADD CONSTRAINT `branches_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`); -- -- Constraints for table `departments` -- ALTER TABLE `departments` ADD CONSTRAINT `departments_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`), ADD CONSTRAINT `departments_ibfk_2` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`); -- -- Constraints for table `page` -- ALTER TABLE `page` ADD CONSTRAINT `page_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `page` (`id`) ON DELETE CASCADE; -- -- Constraints for table `role_master` -- ALTER TABLE `role_master` ADD CONSTRAINT `role_master_ibfk_1` FOREIGN KEY (`role_action_id`) REFERENCES `role_action` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `role_master_ibfk_2` FOREIGN KEY (`user_type_id`) REFERENCES `user_type` (`id`); -- -- Constraints for table `user` -- ALTER TABLE `user` ADD CONSTRAINT `user_ibfk_1` FOREIGN KEY (`user_type_id`) REFERENCES `user_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; /*!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 */;
<gh_stars>0 SELECT hex(User.name || Course.title || Member.role) AS X FROM User JOIN Member JOIN Course ON User.id = Member.user_id AND Member.course_id = Course.id ORDER BY X
--Problem 1. Employee Address SELECT TOP(5) e.EmployeeID, e.JobTitle, e.AddressID, a.AddressText FROM Employees AS e JOIN Addresses AS a ON a.AddressID = e.AddressID ORDER BY e.AddressID --Problem 2. Addresses with Towns USE SoftUni SELECT TOP(50) e.FirstName, e.LastName, t.Name AS Town, a.AddressText FROM Employees AS e JOIN Addresses AS a ON a.AddressID = e.AddressID JOIN Towns AS t ON t.TownID = a.TownID ORDER BY e.FirstName, e.LastName --Problem 3. Sales Employee SELECT e.EmployeeID, e.FirstName, e.LastName, d.Name FROM Employees AS e JOIN Departments AS d ON d.DepartmentID = e.DepartmentID WHERE d.Name = 'Sales' ORDER BY e.EmployeeID --Problem 4. Employee Departments SELECT TOP(5) e.EmployeeID, e.FirstName, e.Salary, d.Name FROM Employees AS e JOIN Departments AS d ON d.DepartmentID = e.DepartmentID WHERE e.Salary > 15000 ORDER BY e.DepartmentID --Problem 5. Employees Without Project SELECT * FROM EmployeesProjects SELECT TOP(3) e.EmployeeID, e.FirstName FROM Employees AS e FULL JOIN EmployeesProjects AS ep ON ep.EmployeeID = e.EmployeeID WHERE ProjectID IS NULL ORDER BY e.EmployeeID --Problem 6. Employees Hired After SELECT e.FirstName, e.LastName, e.HireDate, d.Name AS DeptName FROM Employees AS e JOIN Departments AS d ON d.DepartmentID = e.DepartmentID WHERE e.HireDate > '1.1.1999' AND d.Name IN ('Finance', 'Sales') ORDER BY HireDate --Problem 7. Employees with Project SELECT TOP(5) e.EmployeeID, e.FirstName, p.Name AS ProjectName FROM EmployeesProjects AS ep JOIN Projects AS p ON p.ProjectID = ep.ProjectID JOIN Employees AS e ON e.EmployeeID = ep.EmployeeID WHERE p.StartDate > '2002-08-13' AND p.EndDate IS NULL ORDER BY EmployeeID --Problem 8. Employee 24 ***************** SELECT ep.EmployeeID, e.FirstName, IIF(p.StartDate > '2005-01-01', NULL, p.Name) AS ProjectName FROM EmployeesProjects AS ep JOIN Projects AS p ON p.ProjectID = ep.ProjectID JOIN Employees AS e ON e.EmployeeID = ep.EmployeeID WHERE ep.EmployeeID = 24 --Problem 9. Employee Manager SELECT e.EmployeeID, e.FirstName, e.ManagerID, e2.FirstName FROM Employees AS e JOIN Employees AS e2 ON e2.EmployeeID = e.ManagerID WHERE e2.EmployeeID = 3 OR e2.EmployeeID = 7 ORDER BY EmployeeID --Problem 10. Employee Summary SELECT TOP(50) e.EmployeeID, e.FirstName + ' ' + e.LastName AS EmployeeName, e2.FirstName + ' ' + e2.LastName AS ManagerName, d.Name AS DepartmentName FROM Employees AS e JOIN Employees AS e2 ON e2.EmployeeID = e.ManagerID JOIN Departments AS d ON d.DepartmentID = e.DepartmentID ORDER BY e.EmployeeID --Problem 11. Min Average Salary SELECT MIN(AverageSalary) FROM (SELECT DepartmentID, AVG(Salary) AS AverageSalary FROM Employees GROUP BY DepartmentID) AS AVGTABLE --Problem 12. Highest Peaks in Bulgaria USE Geography SELECT mc.CountryCode, m.MountainRange, p.PeakName, p.Elevation FROM Peaks AS p JOIN Mountains AS m ON m.Id = p.MountainId JOIN MountainsCountries AS mc ON mc.MountainId = p.MountainId WHERE Elevation >= 2835 AND mc.CountryCode = 'BG' ORDER BY p.Elevation DESC --Problem 13. Count Mountain Ranges SELECT IntMount.CountryCode, COUNT(IntMount.CountryCode) FROM (SELECT * FROM MountainsCountries WHERE CountryCode IN('US', 'RU', 'BG')) AS IntMount GROUP BY IntMount.CountryCode --Problem 14. Countries with Rivers SELECT TOP(5) c.CountryName, r.RiverName FROM Countries AS c LEFT JOIN CountriesRivers AS cr ON cr.CountryCode = c.CountryCode LEFT JOIN Rivers AS r ON r.Id = cr.RiverId WHERE c.ContinentCode = 'AF' ORDER BY c.CountryName --Problem 15. *Continents and Currencies WITH CTE_TopCurrency (ContinentCode, CurrencyCode, CurrencyUsage) AS (SELECT TOP(6) ContinentCode, CurrencyCode , COUNT(CurrencyCode) AS CurrencyUsage FROM Countries AS c GROUP BY CurrencyCode, ContinentCode ORDER BY CurrencyUsage DESC) SELECT * FROM CTE_TopCurrency ORDER BY ContinentCode --??????????????????????????????????????????????????????????????????? --Problem 16. Countries without any Mountains SELECT * FROM MountainsCountries SELECT * FROM Countries --Problem 17. Highest Peak and Longest River by Country --Problem 18. * Highest Peak Name and Elevation by Country --L-----------A-------BBB-------------- --L----------A-A------B--B--------- --L---------A---A-----BBB---------------- --L--------AAAAAAA----B---B-------- --L-------A-------A---B----B--------- --LLLLLL-A---------A--BBBBB----------------- USE SoftUni --INNER JOIN SELECT e.FirstName + ' ' + e.LastName AS [Full Name], d.Name AS [Department Name], e.JobTitle AS [Job Title] FROM Employees AS e JOIN Departments AS d ON d.DepartmentID = e.DepartmentID -- CROSS JOIN USE Diablo SELECT u.Email, u.id, u2.id, u2.Email FROM Users AS u CROSS JOIN Users AS u2 WHERE u.Id > u2.id ------------------------------------------------------- USE SoftUni ------------Subqueries SELECT * FROM Employees WHERE DepartmentID = (SELECT d.DepartmentID FROM Departments AS d WHERE d.Name = 'Finance') SELECT * FROM Employees WHERE DepartmentID IN(SELECT d.DepartmentID FROM Departments AS d WHERE d.Name = 'Finance' OR d.Name = 'Sales') --CTE WITH CTE_EmployeeInfo (FirstName, LastName, Salary) AS (SELECT FirstName, LastName, Salary FROM Employees) SELECT * FROM CTE_EmployeeInfo /*============================================================================ File: ManyIndices.sql Summary: The script demonstrates what is the effect on the DML operations when there are a lot of indexes on the table. THIS SCRIPT IS PART OF THE Lecture: "Performance Tuning" for SoftUni, Sofia; "Joins, Subqueries, CTE and Indices" Date: February 2015, January 2017 SQL Server Version: 2008 / 2012 / 2014 / 2016 ------------------------------------------------------------------------------ Written by <NAME>, SQL Server MVP This script is intended only as a supplement to demos and lectures given by SoftUni Team. THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. ============================================================================*/ USE tempdb GO -- Create Table CREATE TABLE FirstIndex (ID INT, FirstName VARCHAR(100), LastName VARCHAR(100), City VARCHAR(100)) GO INSERT INTO FirstIndex (ID, FirstName, LastName, City) SELECT TOP 100000 ROW_NUMBER() OVER(ORDER BY a.name) RowID,'Muncho', CASE WHEN ROW_NUMBER() OVER(ORDER BY a.name)%2 = 1 THEN 'Smithov' ELSE 'Ivanov' END, CASE WHEN ROW_NUMBER() OVER(ORDER BY a.name)%10 = 1 THEN 'Kaspichan' WHEN ROW_NUMBER() OVER(ORDER BY a.name)%10 = 5 THEN '<NAME>' WHEN ROW_NUMBER() OVER(ORDER BY a.name)%10 = 3 THEN 'Simitli' ELSE 'Buhovo' END FROM sys.all_objects a cross join sys.all_objects b GO TRUNCATE TABLE FirstIndex GO -- Create 10 indexes CREATE NONCLUSTERED INDEX [IX_FirstIndex_ID] ON [dbo].[FirstIndex] ( [ID] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_FirstName] ON [dbo].[FirstIndex] ( [FirstName] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_LastName] ON [dbo].[FirstIndex] ( [LastName] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_City] ON [dbo].[FirstIndex] ( [City] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_ID_FirstName] ON [dbo].[FirstIndex] ( [ID] ASC, [FirstName] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_ID_LastName] ON [dbo].[FirstIndex] ( [ID] ASC, [LastName] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_ID_City] ON [dbo].[FirstIndex] ( [ID] ASC, [City] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_FirstName_LastName] ON [dbo].[FirstIndex] ( [FirstName] ASC, [LastName] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_FirstName_City] ON [dbo].[FirstIndex] ( [FirstName] ASC, [City] ASC ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_FirstIndex_LastName_City] ON [dbo].[FirstIndex] ( [LastName] ASC, [City] ASC ) ON [PRIMARY] GO -- Insert One Hundred Thousand Records -- INSERT 2 INSERT INTO FirstIndex (ID,FirstName,LastName,City) SELECT TOP 100000 ROW_NUMBER() OVER (ORDER BY a.name) RowID, 'Bob', CASE WHEN ROW_NUMBER() OVER (ORDER BY a.name)%2 = 1 THEN 'Smith' ELSE 'Brown' END, CASE WHEN ROW_NUMBER() OVER (ORDER BY a.name)%10 = 1 THEN 'New York' WHEN ROW_NUMBER() OVER (ORDER BY a.name)%10 = 5 THEN 'San Marino' WHEN ROW_NUMBER() OVER (ORDER BY a.name)%10 = 3 THEN 'Los Angeles' ELSE 'Houston' END FROM sys.all_objects a CROSS JOIN sys.all_objects b GO /* Question 1: Which insert took most the time INSERT 1 or INSERT 2 WHY? */ -- Truncate Table TRUNCATE TABLE FirstIndex GO
<filename>ProjectPortfolio (1).sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 24, 2015 at 01:02 PM -- 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"; /*!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: `ProjectPortfolio` -- -- -------------------------------------------------------- -- -- Table structure for table `pictures` -- CREATE TABLE IF NOT EXISTS `pictures` ( `picture_id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) NOT NULL, `picture_name` varchar(200) NOT NULL, PRIMARY KEY (`picture_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=31 ; -- -- Dumping data for table `pictures` -- INSERT INTO `pictures` (`picture_id`, `project_id`, `picture_name`) VALUES (28, 21, 'slide-4.jpg'), (29, 21, 'slide-2.jpg'), (30, 21, 'blackgreyredstripe.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `projects` -- CREATE TABLE IF NOT EXISTS `projects` ( `project_id` int(11) NOT NULL AUTO_INCREMENT, `project_name` varchar(50) NOT NULL, `project_isPublic` tinyint(1) NOT NULL, `project_user_id` int(11) NOT NULL, PRIMARY KEY (`project_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ; -- -- Dumping data for table `projects` -- INSERT INTO `projects` (`project_id`, `project_name`, `project_isPublic`, `project_user_id`) VALUES (21, 'E-Books', 0, 24), (22, 'Pesho', 0, 24), (23, 'Gosho', 0, 24), (24, 'Niki', 0, 24), (25, 'Radul4o', 0, 24); -- -------------------------------------------------------- -- -- Table structure for table `repositories` -- CREATE TABLE IF NOT EXISTS `repositories` ( `repository_id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) NOT NULL, `repository_path` int(11) NOT NULL, `file_type` int(11) NOT NULL, `file_name` int(11) NOT NULL, PRIMARY KEY (`repository_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(50) NOT NULL, `user_email` varchar(50) NOT NULL, `user_password` varchar(200) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=38 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`user_id`, `user_name`, `user_email`, `user_password`) VALUES (24, 'HristoHristov', '<EMAIL>', <PASSWORD>'), (29, 'kaspar', '<EMAIL>', '$2y$10$84Ha3VKEyaXSZ.ia3Z9LyeiuybcngXMtEYWk0uuYdQS2zIH/gg7rS'), (30, 'Administrator', '<EMAIL>', '$2y$10$NAZ1vCO.RDdMtECz5eh.vOLnjkbRj6LDi3pX4nyF106gFTzwy6Am2'), (31, 'PeterPetkov', '<EMAIL>', '$2y$10$WLCNU7p82hA6iK9/KjFXhusHSQJtucDNSa8t6FSc74T3wI2Zkj0ne'), (32, 'GeriNikol', '<EMAIL>', '$2y$10$/MbA/jTYd83mVIZfw7F52.vqOGelSOpts/GksFMU9KQzbRVKl.o9C'), (33, 'RusiVidenliev', '<EMAIL>', '$2y$10$RWwwIbfciEHi2dCzpXR7n.fcTKh7QQ32Ur/uQNVBL3fLeR62hCleO'), (34, 'fasd', '<EMAIL>', '$2y$10$r2m4B1v3kuIRQunyiLjTnOTviLhH8ahgRKf67Myu2j2w53ZsKbDka'), (35, 'fsafsfdsaf', '<EMAIL>', '$2y$10$Qto38kugk..xqn9.Dxj/uuK3lJJDoJqMSXuMdQDLewPslRjopiJDS'), (36, 'fasfdsdfsad', '<EMAIL>', '$2y$10$8cpTK4uEvoCwyf8uk0hrturc66cqf4Oo5dcgfqm3A2NgzNEGCho7a'), (37, 'fasdfadsd<PASSWORD>adas', '<EMAIL>', <PASSWORD>'); /*!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 */;
<filename>Scripts/data.sql /*Users Insert*/ INSERT INTO `tym`.`users` (`name`, `email`, `password`, `created_at`, `updated_at`) VALUES ('<NAME>', '<EMAIL>', <PASSWORD>GlMCAXiyOSWaTv5pGt7P4s.<PASSWORD>A<PASSWORD>59jGgOLQG', now(), now()); INSERT INTO `tym`.`users` (`name`, `email`, `password`, `created_at`, `updated_at`) VALUES ('<NAME>', '<EMAIL>', <PASSWORD>$SAQvSs5RUI6NiGlMCAXiyOSWaTv5pGt7P4s.OptA1rBy59jGgOLQG', now(), now()); INSERT INTO `tym`.`users` (`name`, `email`, `password`, `created_at`, `updated_at`) VALUES ('<NAME>', '<EMAIL>', <PASSWORD>$SAQvSs5RUI6NiGlMCAXiyOSWaTv5pGt7P4s.OptA1rBy59jGgOLQG', now(), now()); /*Monedas Insert*/ INSERT INTO `tym`.`coins` (`name`, `symbol`, `description`, `created_at`, `updated_at`) VALUES ('USD', '$', 'Dólar Estadounidense', now(), now()); INSERT INTO `tym`.`coins` (`name`, `symbol`, `description`, `created_at`, `updated_at`) VALUES ('CRC', '₡', '<NAME>', now(), now()); /*Users_coins Insert*/ INSERT INTO `tym`.`users_coins` (`rate`, `user_id`, `coin_id`, `local`, `created_at`, `updated_at`) VALUES (1, 1, 2, true, now(), now()); INSERT INTO `tym`.`users_coins` (`rate`, `user_id`, `coin_id`, `local`, `created_at`, `updated_at`) VALUES (613, 1, 1, false, now(), now()); INSERT INTO `tym`.`users_coins` (`rate`, `user_id`, `coin_id`, `local`, `created_at`, `updated_at`) VALUES (1, 2, 2, true, now(), now()); INSERT INTO `tym`.`users_coins` (`rate`, `user_id`, `coin_id`, `local`, `created_at`, `updated_at`) VALUES (613, 2, 1, false, now(), now()); /*Categorías Insert*/ INSERT INTO `tym`.`categorias` (`user_id`, `moneda_id`, `tipo`, `descripcion`, `presupuesto`, `rebajo`, `created_at`, `updated_at`) VALUES (1, 2, 'Gasto', 'Vivienda', 112000, 110000, now(), now()); INSERT INTO `tym`.`categorias` (`user_id`, `categoria_id`, `moneda_id`, `tipo`, `descripcion`, `presupuesto`, `rebajo`, `created_at`, `updated_at`) VALUES (1, 1, 2, 'Gasto', 'Comida', 100000, 30000, now(), now()); INSERT INTO `tym`.`categorias` (`user_id`, `moneda_id`, `tipo`, `descripcion`, `presupuesto`, `rebajo`, `created_at`, `updated_at`) VALUES (1, 1, 'Gasto', 'Licencia', 40, 40, now(), now()); INSERT INTO `tym`.`categorias` (`user_id`, `moneda_id`, `tipo`, `descripcion`, `presupuesto`, `rebajo`, `created_at`, `updated_at`) VALUES (2, 2, 'Gasto', 'Viaje', 100000, 100000, now(), now()); INSERT INTO `tym`.`categorias` (`user_id`, `moneda_id`, `tipo`, `descripcion`, `presupuesto`, `rebajo`, `created_at`, `updated_at`) VALUES (2, 2, 'Gasto', 'Medico', 60000, 60000, now(), now()); /*Cuentas insert*/ INSERT INTO `tym`.`cuentas` (`user_id`, `monedas_id`, `nombre`, `descripcion`, `saldo`, `created_at`, `updated_at`) VALUES (1, 1, 'Banco BCR', 'Cuenta ahorros - colones', 100000, now(), now()); INSERT INTO `tym`.`cuentas` (`user_id`, `monedas_id`, `nombre`, `descripcion`, `saldo`, `created_at`, `updated_at`) VALUES (2, 2, 'Banco Scotiabank', 'Cuenta ahorros - dólares', 100, now(), now()); /*Transacciones Insert*/ INSERT INTO `tym`.`transactions` (`user_id`, `cuenta_id`, `categoria_id`, `tipo`, `monto`, `detalle`, `created_at`, `updated_at`) VALUES (1, 1, 1, 'Ingreso', 10000, 'Ingreso de dinero', '2020-11-22 22:12:09', '2020-11-22 22:12:09'); INSERT INTO `tym`.`transactions` (`user_id`, `cuenta_id`, `categoria_id`, `tipo`, `monto`, `detalle`, `created_at`, `updated_at`) VALUES (1, 1, 1, 'Gasto', 20000, 'Limpieza', '2021-03-22 22:12:09', '2021-03-22 22:12:09'); INSERT INTO `tym`.`transactions` (`user_id`, `cuenta_id`, `categoria_id`, `tipo`, `monto`, `detalle`, `created_at`, `updated_at`) VALUES (1, 1, 2, 'Gasto', 70000, 'Canasta', '2021-03-22 22:12:09', '2021-03-22 22:12:09');
<filename>Exareme-Docker/src/mip-algorithms/TTEST_INDEPENDENT/2/local.template.sql requirevars 'defaultDB' 'prv_output_global_tbl' 'y' 'x'; attach database '%{defaultDB}' as defaultDB; -- var 'prv_output_global_tbl' 'defaultDB.globalstatistics'; var 'groupvar1' from select distinct groupval from %{prv_output_global_tbl} limit 1; var 'groupvar2' from select distinct groupval from %{prv_output_global_tbl} limit 2 offset 1; var 'localstats1' from select create_complex_query(""," insert into defaultDB.localstatistics2 select '?' as colname, '%{groupvar1}' as groupval,mean,std, Ntotal, sum((?-mean)*(?-mean)) as sse from defaultDB.localinputtblflat,%{prv_output_global_tbl} where colname = '?' and groupval ='%{groupvar1}' and %{x}='%{groupvar1}' and ? is not null and ? <>'NA' and ? <>'' ;" , "" , "" , '%{y}'); var 'localstats2' from select create_complex_query(""," insert into defaultDB.localstatistics2 select '?' as colname, '%{groupvar2}' as groupval,mean,std, Ntotal, sum((?-mean)*(?-mean)) as sse from defaultDB.localinputtblflat,%{prv_output_global_tbl} where colname = '?' and groupval ='%{groupvar2}' and %{x}='%{groupvar2}' and ? is not null and ? <>'NA' and ? <>'';" , "" , "" , '%{y}'); drop table if exists defaultDB.localstatistics2; create table defaultDB.localstatistics2 (colname text, groupval text, mean real,std real, Ntotal int, sse real); %{localstats1}; %{localstats2}; select * from defaultDB.localstatistics2;
<reponame>mirazib71/BdAuctionInc CREATE TABLE [dbo].[ProductsInAuction] ( [pID] INT NOT NULL, [AuctionID] INT NOT NULL, [Status] VARCHAR(50) NULL )
<gh_stars>0 IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'sal.fn_ingresos_acumulados_xiii') AND type IN ( N'TF', N'FN', N'IF' ) ) /****** Object: UserDefinedFunction [pa].[fn_get_inicio_promedio_vacacion] Script Date: 16-01-2017 3:30:08 PM ******/ DROP FUNCTION [sal].[fn_ingresos_acumulados_xiii] GO SET QUOTED_IDENTIFIER ON SET ANSI_NULLS ON GO CREATE FUNCTION [sal].[fn_ingresos_acumulados_xiii] (@codcia int, @codtpl int, @codppl int, @coduni int, @codemp int, @rubro_salarial varchar(1)) RETURNS @tmp_ingresos_acumulados_xiii TABLE (CODCIA int, CODUNI int, CODEMP int, FECHA_INI_XIII datetime, FECHA_FIN_XIII datetime, MES1 numeric(12,2), MES2 numeric(12,2), MES3 numeric(12,2), MES4 numeric(12,2), MES5 numeric(12,2), MES1_NOMBRE varchar(10), MES2_NOMBRE varchar(10), MES3_NOMBRE varchar(10), MES4_NOMBRE varchar(10), MES5_NOMBRE varchar(10), ACUMULADO numeric(12,2), XIII numeric(12,2), DIAS numeric(12,2)) AS BEGIN -- select * from sal.fn_ingresos_acumulados_xiii (1, 2, 1, null, null, 'S') declare @fecha_ini datetime, @fecha_fin datetime, @agr_ingresos int declare @mes1_ini datetime, @mes1_fin datetime, @mes2_ini datetime, @mes2_fin datetime, @mes3_ini datetime, @mes3_fin datetime, @mes4_ini datetime, @mes4_fin datetime, @mes5_ini datetime, @mes5_fin datetime, @mes5_fin_gasto datetime declare @mes1_nombre varchar(50), @mes2_nombre varchar(50), @mes3_nombre varchar(50), @mes4_nombre varchar(50), @mes5_nombre varchar(50) declare @ppl_estado varchar(1) declare @codtpl_xiii int, @AGR_XIII_PROYECTADO int, @AGR_XIII_GR_PROYECTADO int select @AGR_XIII_PROYECTADO = gen.get_valor_parametro_int('BaseXIII_Salario_CodigoAgrupador', 'pa', null, null, null) select @AGR_XIII_GR_PROYECTADO = gen.get_valor_parametro_int('BaseXIII_GastoRep_CodigoAgrupador', 'pa', null, null, null) -- Tipo de planilla: Decimo Tercero set @codtpl_xiii = isnull(gen.get_valor_parametro_int('CodigoPlanillaDecimo',null,null,@codcia,null), 2) if @codtpl = @codtpl_xiii begin -- Agrupador que contiene los ingresos utilizados para calcular el promedio set @agr_ingresos = (case @rubro_salarial when 'S' then @AGR_XIII_PROYECTADO when 'G' then @AGR_XIII_GR_PROYECTADO else 0 end) -- Toma el rango de fechas para el cual debe acumular los ingresos para el calculo del XII Mes SELECT @fecha_ini = PPL_FECHA_INI, @fecha_fin = PPL_FECHA_FIN, @ppl_estado = PPL_ESTADO FROM sal.ppl_periodos_planilla WHERE ppl_codtpl = @codtpl and ppl_codigo = @codppl set @mes1_ini = @fecha_ini set @mes1_fin = DATEADD(DD, -1, CONVERT(VARCHAR, YEAR(DATEADD(mm, 1, @fecha_ini))) + '-' + CONVERT(VARCHAR, MONTH(DATEADD(mm, 1, @fecha_ini))) + '-01') set @mes2_ini = CONVERT(DATETIME, CONVERT(VARCHAR, YEAR(DATEADD(MM, 1, @fecha_ini))) + '-' + CONVERT(VARCHAR, MONTH(DATEADD(MM, 1, @fecha_ini))) + '-01') set @mes2_fin = DATEADD(DD, -1, CONVERT(VARCHAR, YEAR(DATEADD(MM, 1, @mes2_ini))) + '-' + CONVERT(VARCHAR, MONTH(DATEADD(MM, 1, @mes2_ini))) + '-01') set @mes3_ini = CONVERT(DATETIME, CONVERT(VARCHAR, YEAR(DATEADD(MM, 2, @fecha_ini))) + '-' + CONVERT(VARCHAR, MONTH(DATEADD(MM, 2, @fecha_ini))) + '-01') set @mes3_fin = DATEADD(DD, -1, CONVERT(VARCHAR, YEAR(DATEADD(MM, 1, @mes3_ini))) + '-' + CONVERT(VARCHAR, MONTH(DATEADD(MM, 1, @mes3_ini))) + '-01') set @mes4_ini = CONVERT(DATETIME, CONVERT(VARCHAR, YEAR(DATEADD(MM, 3, @fecha_ini))) + '-' + CONVERT(VARCHAR, MONTH(DATEADD(MM, 3, @fecha_ini))) + '-01') set @mes4_fin = DATEADD(DD, -1, CONVERT(VARCHAR, YEAR(DATEADD(MM, 1, @mes4_ini))) + '-' + CONVERT(VARCHAR, MONTH(DATEADD(MM, 1, @mes4_ini))) + '-01') set @mes5_ini = CONVERT(DATETIME, CONVERT(VARCHAR, YEAR(@fecha_fin)) + '-' + CONVERT(VARCHAR, MONTH(@fecha_fin)) + '-01') set @mes5_fin = @fecha_fin set @mes1_nombre = gen.fn_get_NombreMes(month(@mes1_ini)) set @mes2_nombre = gen.fn_get_NombreMes(month(@mes2_ini)) set @mes3_nombre = gen.fn_get_NombreMes(month(@mes3_ini)) set @mes4_nombre = gen.fn_get_NombreMes(month(@mes4_ini)) set @mes5_nombre = gen.fn_get_NombreMes(month(@mes5_ini)) /* dic-mitad2 ene feb mar abr-mitad1 abr-mitad2 may jun jul ago-mitad1 ago-mitad2 sep oct nov dic-mitad1 */ INSERT INTO @tmp_ingresos_acumulados_xiii SELECT @codcia codcia, CODUNI, CODEMP, @fecha_ini fecha_ini_xiii, @fecha_fin fecha_fin_xiii, mes1, mes2, mes3, mes4, mes5, mes1_nombre, mes2_nombre, mes3_nombre, mes4_nombre, mes5_nombre, mes1 + mes2 + mes3 + mes4 + mes5 ACUMULADO, convert(numeric(12,2), (mes1 + mes2 + mes3 + mes4 + mes5) / 12.00) XIII, DIAS = sal.fn_agrupador_dias_periodo(@codcia, CODEMP, @fecha_ini, @fecha_fin, @agr_ingresos) FROM ( SELECT uni_codigo CODUNI, emp_codigo CODEMP, CONVERT(NUMERIC(12,2), (CASE @rubro_salarial WHEN 'S' THEN mes1 WHEN 'G' THEN mes1 ELSE 0 END)) mes1, CONVERT(NUMERIC(12,2), mes2) mes2, CONVERT(NUMERIC(12,2), mes3) mes3, CONVERT(NUMERIC(12,2), mes4) mes4, CONVERT(NUMERIC(12,2), (CASE @rubro_salarial WHEN 'S' THEN mes5 WHEN 'G' THEN mes5 ELSE 0 END)) mes5, @mes1_nombre mes1_nombre, @mes2_nombre mes2_nombre, @mes3_nombre mes3_nombre, @mes4_nombre mes4_nombre, @mes5_nombre mes5_nombre FROM ( SELECT uni_codigo, emp_codigo, sal.fn_agrupador_valores_periodo(plz_codcia, emp_codigo, @mes1_ini, @mes1_fin, @agr_ingresos) + sal.fn_salario_total_periodo_incap(plz_codcia, emp_codigo, @rubro_salarial, @mes1_ini, @mes1_fin, uni_codpai) mes1, sal.fn_agrupador_valores_periodo(plz_codcia, emp_codigo, @mes2_ini, @mes2_fin, @agr_ingresos) + sal.fn_salario_total_periodo_incap(plz_codcia, emp_codigo, @rubro_salarial, @mes2_ini, @mes2_fin, uni_codpai) mes2, sal.fn_agrupador_valores_periodo(plz_codcia, emp_codigo, @mes3_ini, @mes3_fin, @agr_ingresos) + sal.fn_salario_total_periodo_incap(plz_codcia, emp_codigo, @rubro_salarial, @mes3_ini, @mes3_fin, uni_codpai) mes3, sal.fn_agrupador_valores_periodo(plz_codcia, emp_codigo, @mes4_ini, @mes4_fin, @agr_ingresos) + sal.fn_salario_total_periodo_incap(plz_codcia, emp_codigo, @rubro_salarial, @mes4_ini, @mes4_fin, uni_codpai) mes4, sal.fn_agrupador_valores_periodo(plz_codcia, emp_codigo, @mes5_ini, @mes5_fin, @agr_ingresos) + sal.fn_salario_total_periodo_incap(plz_codcia, emp_codigo, @rubro_salarial, @mes5_ini, @mes5_fin, uni_codpai) mes5 FROM exp.emp_empleos (NOLOCK) JOIN eor.plz_plazas (NOLOCK) ON plz_codigo = emp_codplz JOIN eor.uni_unidades (NOLOCK) ON uni_codcia = plz_codcia AND uni_codigo = plz_coduni WHERE plz_codcia = @codcia AND (emp_estado = 'A' -- Esta condicion permite recuperar los datos de los empleados retirados -- una vez que la planilla ha sido autorizada OR (@ppl_estado = 'Autorizado' AND EXISTS (SELECT * FROM sal.inn_ingresos WHERE inn_codppl = @codppl AND inn_codemp = emp_codigo))) AND uni_codigo = COALESCE(@coduni, uni_codigo) AND emp_codigo = COALESCE(@codemp, emp_codigo) ) V WHERE mes1 + mes2 + mes3 + mes4 + mes5 > 0 ) W end else begin INSERT INTO @tmp_ingresos_acumulados_xiii SELECT 0 codcia, 0 coduni, 0 codemp, null fecha_ini_xiii, null fecha_fin_xiii, 0 mes1, 0 mes2, 0 mes3, 0 mes4, 0 mes5, '' mes1_nombre, '' mes2_nombre, '' mes3_nombre, '' mes4_nombre, '' mes5_nombre, 0 ACUMULADO, 0 XIII, 0 DIAS FROM eor.cia_companias WHERE 1 = 2 end return END GO
------------Clase Numero 3 Consultas avanzadas ------------------- --Creación de Tabla Departamento CREATE TABLE departamento ( codigo INTEGER PRIMARY KEY, nombre VARCHAR2(30) NOT NULL ); --Insertar Datos en Departamentos INSERT INTO departamento VALUES(1,'Ventas'); INSERT INTO departamento VALUES(2,'Diseño'); INSERT INTO departamento VALUES(3,'Publicidad'); INSERT INTO departamento VALUES(4,'Recursos Humanos'); INSERT INTO departamento VALUES(5,'Desarrollo'); --Creación de Tabla Empleado CREATE TABLE empleado ( codigo INTEGER PRIMARY KEY, nombre VARCHAR2(30) NOT NULL, salario FLOAT NOT NULL, departamento REFERENCES departamento NOT NULL, jefe REFERENCES empleado ); --Insertar Empleados. INSERT INTO empleado VALUES(1,'Juan',1000,1,NULL); INSERT INTO empleado VALUES(2,'Daniel',2000,1,1); INSERT INTO empleado VALUES(3,'Miguel',3000,1,1); INSERT INTO empleado VALUES(4,'Cata',800,1,2); INSERT INTO empleado VALUES(5,'Andres',500,2,NULL); INSERT INTO empleado VALUES(6,'James',600,2,5); INSERT INTO empleado VALUES(7,'Camilo',700,3,NULL); INSERT INTO empleado VALUES(8,'Fernando',1500,3,7); INSERT INTO empleado VALUES(9,'Alex',2000,3,8); INSERT INTO empleado VALUES(10,'Jose',300,4,NULL); INSERT INTO empleado VALUES(11,'Pedro',200,4,10); INSERT INTO empleado VALUES(12,'Liliana',1500,4,11); INSERT INTO empleado VALUES(13,'Samuel',200,4,12); ---Contar Empleados por departamentos----- SELECT d.nombre,COUNT(emp.departamento) Nempleados FROM departamento d LEFT OUTER JOIN empleado emp ON d.codigo = emp.departamento GROUP BY d.nombre; ---Sumar Salario por departamentos----- SELECT d.nombre,NVL(SUM(emp.salario),0) Salario_empleados FROM departamento d LEFT OUTER JOIN empleado emp ON d.codigo = emp.departamento GROUP BY d.nombre; --Mostrar los departamentos con más de dos empleados SELECT d.nombre,COUNT(emp.departamento) FROM departamento d LEFT OUTER JOIN empleado emp ON d.codigo = emp.departamento GROUP BY d.nombre HAVING COUNT(emp.departamento) > 2; --Empleado que más gane SELECT emp.nombre FROM empleado emp WHERE emp.salario = (SELECT Max(SALARIO) FROM empleado); --Departamento que gaste menos de 2300 SELECT d.nombre FROM departamento d LEFT OUTER JOIN empleado emp ON d.codigo = emp.departamento GROUP BY d.nombre HAVING NVL(SUM(salario),0) <=2200; --Seleccionar Los empleados que ganan más que Fernando SELECT * FROM empleado WHERE salario> ALL(SELECT salario FROM empleado WHERE nombre = 'Fernando' ) AND salario < ALL(SELECT salario FROM empleado WHERE nombre = 'Fernando' ); --Seleccionar los 5 empleados que más ganan SELECT * FROM (SELECT nombre FROM empleado ORDER BY salario DESC) where ROWNUM<6; --Seleccionar los empleados que ganan mas que Fernando, menos Miguel y trabajan en el departamento 1 SELECT * FROM empleado WHERE salario> ALL( SELECT salario FROM empleado WHERE nombre = 'Fernando' ) AND salario <ALL( SELECT salario FROM empleado WHERE nombre = 'Miguel' ) and departamento = 1; --Seleccionar empleados que ganen mas que el empleado que el empleado que gana menos del departamento 1 SELECT nombre FROM empleado WHERE salario>ALL( SELECT MIN(salario) FROM empleado WHERE departamento = 1 ); --Exist SELECT d.nombre FROM departamento d WHERE EXISTS( SELECT e.departamento FROM empleado e WHERE e.departamento = d.codigo group by e.departamento having count(e.departamento)>2 );
CREATE TABLE EMPLOYEE ( ID int NOT NULL PRIMARY KEY, FIRST_NAME varchar(255), LAST_NAME varchar(255) );
-- indexes on msdtracks CREATE PRIMARY KEY ON msdtracks (trackid); CREATE UNIQUE INDEX ix_msdtracks_entrackid ON msdtracks (entrackid); CREATE INDEX ix_msdtracks_masdgenre ON msdtracks (masdgenre); CREATE INDEX ix_msdtracks_mxmartistname ON msdtracks (mxmartistname); -- index on msdwords CREATE PRIMARY KEY ON msdwords (wordid); -- indexes on matrix CREATE PRIMARY KEY ON matrix (trackid, wordid); CREATE INDEX ix_matrix_wordid_trackid ON matrix (wordid, trackid);
-- CREATING TABLE CREATE TABLE ${sampleTable} (a INTEGER, b VARCHAR(100), c TIMESTAMP WITH TIME ZONE, e NUMERIC(20,10), f NUMERIC )| -- THIS IS ALSO A TEST INSERT INTO ${sampleTable} VALUES (23, 'This is a test|Making sure pipes in statements work.', '2015-05-30 12:00:00-GMT', 1.23456, 789)| -- AND THIS SELECT COUNT(*) AS "count" FROM ${sampleTable}| | -- MORE COMMENTS SELECT * FROM ${sampleTable} -- EVEN MORE
<filename>schema/revert/roles/idle-session-disconnector/create.sql -- Revert seattleflu/id3c-customizations:roles/idle-session-disconnector/create from pg begin; drop role "idle-session-disconnector"; commit;
<reponame>smith750/kc<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/5.1.0/dml/KC_DML_01_KRACOEUS-6241_B000.sql<gh_stars>0 INSERT INTO SUBMISSION_STATUS (SUBMISSION_STATUS_CODE, DESCRIPTION, UPDATE_TIMESTAMP, UPDATE_USER, OBJ_ID, VER_NBR) VALUES ('405', 'Rejected In Routing', SYSDATE, 'admin', SYS_GUID(), 1) / INSERT INTO IACUC_SUBMISSION_STATUS (SUBMISSION_STATUS_CODE, DESCRIPTION, UPDATE_TIMESTAMP, UPDATE_USER, OBJ_ID, VER_NBR) VALUES (401, 'Rejected In Routing', SYSDATE, 'admin', SYS_GUID(), 1) / INSERT INTO PROTOCOL_ACTION_TYPE (PROTOCOL_ACTION_TYPE_CODE, DESCRIPTION, TRIGGER_SUBMISSION, TRIGGER_CORRESPONDENCE, FINAL_ACTION_FOR_BATCH_CORRESP, UPDATE_TIMESTAMP, UPDATE_USER, OBJ_ID) VALUES ('404', 'Rejected In Routing', 'N', 'N', 'N', sysdate, 'admin', SYS_GUID()) / INSERT INTO IACUC_PROTOCOL_ACTION_TYPE (PROTOCOL_ACTION_TYPE_CODE, DESCRIPTION, TRIGGER_SUBMISSION, TRIGGER_CORRESPONDENCE, UPDATE_TIMESTAMP, UPDATE_USER, OBJ_ID) VALUES ('401', 'Rejected In Routing', 'N', 'N', sysdate, 'admin', SYS_GUID()) /
<reponame>bydan/pre select c.codigo, c.nombre_completo, f.fecha_emision, f.numero_pre_impreso, f.numero_documento, (select f.total_sin_iva + f.total_iva + f.iva + f.total_flete + f.total_otro - f.total_descuento) as total, (select sum(valor) from facturacion.deta_forma_pago d where d.id_factura=f.id and (select id_tipo_grupo_forma_pago from facturacion.tipo_forma_pago where id=d.id_tipo_forma_pago)=1) as efectivo, (select sum(valor) from facturacion.deta_forma_pago d where d.id_factura=f.id and (select id_tipo_grupo_forma_pago from facturacion.tipo_forma_pago where id=d.id_tipo_forma_pago)=3) as tarjeta, (select sum(valor) from facturacion.deta_forma_pago d where d.id_factura=f.id and (select id_tipo_grupo_forma_pago from facturacion.tipo_forma_pago where id=d.id_tipo_forma_pago)=4) as credito from cartera.cliente c inner join facturacion.factura f on f.id_cliente=c.id
<gh_stars>0 {% macro simple_cte(tuple_list) %} WITH{% for cte_ref in tuple_list %} {{cte_ref[0]}} AS ( SELECT * FROM {{ ref(cte_ref[1]) }} ) {%- if not loop.last -%} , {%- endif -%} {%- endfor -%} {%- endmacro %}
<gh_stars>0 DROP TABLE IF EXISTS todo; CREATE TABLE todo ( id INT UNSIGNED AUTO_INCREMENT NOT NULL, title VARCHAR(32) NOT NULL, description VARCHAR(128) NOT NULL, dateTime TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), PRIMARY KEY (id) );
<gh_stars>1-10 /* *Active extended map has an mapCategoryId in the supported list * */ insert into qa_result (runid, assertionuuid, concept_id, details) select <RUNID>, '<ASSERTIONUUID>', a.referencedcomponentid, concat('ExtendedMap: id=',a.id,': invalid mapCategory=', a.mapCategoryId) from curr_extendedmaprefset_s a where a.active = 1 and a.mapCategoryId not in (447637006,447638001,447639009,447640006,447641005,447635003); commit; /* * Active extended map with mapRule starting with IFA has mapCategortyId=447639009 * */ insert into qa_result (runid, assertionuuid, concept_id, details) select <RUNID>, '<ASSERTIONUUID>', a.referencedcomponentid, concat('ExtendedMap: id=',a.id,' : IFA rule but with an invalid mapCategory:', a.mapCategoryId) from curr_extendedmaprefset_s a where a.active = 1 and a.mapRule like 'IFA%' and a.maptarget != '' and a.mapCategoryId != 447639009; commit;
ALTER TABLE ApiKey ADD COLUMN reason varchar(255) NULL;
<filename>apollo-backend/src/main/resources/db/migration/V20190619113055__Add_column_to_blocker_definition.sql ALTER TABLE blocker_definition ADD stack_id INT;
<reponame>lf328359263/vicuna /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50728 Source Host : localhost Source Database : vicuna Target Server Type : MySQL Target Server Version : 50728 File Encoding : utf-8 Date: 01/17/2021 21:15:05 PM */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `user` -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(100) DEFAULT NULL, `login` varchar(100) DEFAULT NULL, `nickname` varchar(100) DEFAULT NULL, `email` varchar(120) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Records of `user` -- ---------------------------- BEGIN; INSERT INTO `user` VALUES ('1', 'admin', 'admin', '管理员', '<EMAIL>', 'pbkdf2:sha256:150000$NUONy4j4$4ed10823b4adbbc49cf13e1bea3d611356c70c9f631f9f03d00449bc3e286ff5'); COMMIT; SET FOREIGN_KEY_CHECKS = 1;
<gh_stars>0 autocommit off; create class x (a int); insert into x values (10); insert into x values (5); select * from x, (select w.a from x w where w.a < x.a) as y(b); rollback work; select ssn from (select * from joe.faculty1) f (name, ssn, dept, rank); select ssn1 from (select ssn from joe.faculty1) f (ssn1); select ssn, h.n from joe.faculty1 f, (select ssn from joe.faculty g where f = g) h (n); select * from joe.faculty g where ssn in ( select sn from joe.faculty1 f, (select ssn from joe.faculty g where f = g) h (sn) ); select * from joe.faculty1 f where ssn+1 in ( select sn from joe.faculty1 i, (select ssn from joe.faculty g where f = g) h (sn) ); select * from joe.faculty1 f where ssn+1 in ( select sn from (select ssn from joe.faculty g where f = g) h (sn) ); create class bar1 (a int); create class bar2 (b int); insert into bar1(a) values(1); insert into bar1(a) values(2); insert into bar2(b) values(2); select * from bar1, (select * from bar2 where b = a) as t(g); select * from bar1, (select * from bar2) as t(g) where g=a; rollback work; select * from (select 4*price from joe.inventory_v v union select price+1 from joe.product_v p) as s(prices); select s.code, s.price from (select product_code, 4*price from joe.inventory_v v difference select product_code, 1+price from joe.product_v p) as s(code, price); select * from joe.product_v p where product_code in (select code from (select product_code from joe.inventory_v i where p.product_code=i.product_code) as pc(code)); select p.price, prc from joe.product_v p , (select price from joe.inventory_v i where p.product_code=i.product_code) as baa(prc); select * from joe.product_v p , (select product_code, price from joe.inventory_v i where p.product_code=i.product_code) as baa(code,price); rollback;
-- May fail! SELECT CURRENT_USER, SYSTEM_USER, SESSION_USER FROM (VALUES(1)) AS X
<reponame>m7xedhoward/crankshaft \set ECHO none \set QUIET on SET client_min_messages TO error; -- Create role publicuser if it does not exist DO $$ BEGIN IF NOT EXISTS ( SELECT * FROM pg_catalog.pg_user WHERE usename = 'publicuser') THEN CREATE ROLE publicuser LOGIN; END IF; END $$ LANGUAGE plpgsql; -- Install the extension CREATE EXTENSION crankshaft VERSION 'dev' CASCADE; \set QUIET off
<filename>openGaussBase/testcase/SQL/INNERFUNC/Com_opera/Opengauss_Function_Innerfunc_Less_Case0032.sql -- @testpoint: opengauss比较操作符<,比较类型:inet drop table if exists ts_zhparser; CREATE TABLE ts_zhparser(col inet, col1 inet); INSERT INTO ts_zhparser VALUES('192.168.31/24','192.168.31.32/24'); select * from ts_zhparser where col < col1; drop table if exists ts_zhparser;
<reponame>PierreLetter/sqlwatch<filename>SQLWATCHDB/dbo/Views/vw_sqlwatch_report_dim_time.sql CREATE VIEW [dbo].[vw_sqlwatch_report_dim_time] with schemabinding as with cte_snapshots as ( select distinct report_time --, current_utc_report_time = dateadd(minute,1,convert(datetime,convert(varchar(16),[snapshot_time],121))) --same calc as in snapshot_header from dbo.sqlwatch_logger_snapshot_header ) select distinct report_time , date = convert(date,report_time) , year = datepart(year,report_time) , month = datepart(month, report_time) , day = datepart(day, report_time) , hour = datepart(hour, report_time) , minute = datepart(minute, report_time) , time = convert(time,report_time) , month_name = datename(month, report_time) , week_number = datename (wk, report_time) , week_day = datename (weekday, report_time) , day_of_year = datename (dayofyear, report_time) , year_month = convert(char(4),datepart(year,report_time)) + '-' + right('00' + convert(char(2),datepart(month, report_time)),2) , day_of_week = datepart(dw, report_time) , year_week = convert(char(4),datepart(year,report_time)) + '-' + right('WK' + convert(char(2),datename (wk, report_time)),4) , relative_date_label = case --when snapshot_time > dateadd(hour,-1,current_utc_date) then 'Last 1 hour' --when snapshot_time > dateadd(hour,-4,current_utc_date) then 'Last 4 hours' --when snapshot_time > dateadd(hour,-12,current_utc_date) then 'Last 12 hours' --when snapshot_time > dateadd(hour,-24,current_utc_date) then 'Last 24 hours' when convert(date,report_time) = convert(date,getutcdate()) then 'Today' when convert(date,report_time) = dateadd(day,-1,convert(date,getutcdate())) then 'Yesterday' when convert(date,report_time) = dateadd(week,-1,convert(date,getutcdate())) then 'Same Day Last Week' when convert(date,report_time) = dateadd(month,-1,convert(date,getutcdate())) then 'Same Day Last Month' --when convert(date,snapshot_time) between dateadd(day,-7,convert(date,current_utc_date)) and convert(date,current_utc_date) then 'Last 7 days' --when convert(date,snapshot_time) between dateadd(day,-30,convert(date,current_utc_date)) and convert(date,current_utc_date) then 'Last 30 days' --when datepart(year,snapshot_time) = datepart(year,current_utc_date) and datename (wk, snapshot_time) = datename (wk, current_utc_date) - 1 then 'Previous Week' --when datepart(year,snapshot_time) = datepart(year,current_utc_date) and datepart(month, snapshot_time) = datepart(month, current_utc_date) - 1 then 'Previous Month' else '' end , interval_minutes_5 = convert(smalldatetime,dateadd(minute,(datediff(minute,0, report_time)/ 5) * 5,0)) , interval_minutes_15 = convert(smalldatetime,dateadd(minute,(datediff(minute,0, report_time)/ 15) * 15,0)) , interval_minutes_60 = convert(smalldatetime,dateadd(minute,(datediff(minute,0, report_time)/ 60) * 60,0)) from cte_snapshots
DROP TABLE "public"."customer_comments";
<reponame>jtruon/MoooMoooVie /* -- Query: SELECT * FROM movies2017.movies_stars LIMIT 0, 1000 -- Date: 2018-03-31 12:37 */ INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (1,1,'<NAME>'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (1,2,'Pennywise'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (1,3,'<NAME>'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (2,4,'<NAME>'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (2,5,'<NAME>'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (2,6,'<NAME>mitage'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (3,7,'Diana'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (3,8,'<NAME>'); INSERT INTO `movies_stars` (`Movies_idMovies`,`Stars_idStars`,`character`) VALUES (3,9,'Antiope'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('4', '10', '<NAME>'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('4', '11', '<NAME>'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('4', '12', '<NAME>'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('5', '13', 'Tommy'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('5', '14', 'George'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('5', '15', 'Mr.Dawson'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('6', '16', 'Oliver'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('6', '17', 'Elio'); INSERT INTO `movies2017`.`movies_stars` (`Movies_idMovies`, `Stars_idStars`, `character`) VALUES ('6', '18', 'Mr.Perlman');
<reponame>it-gro/PIT<filename>PIT/core/scripts/create_global_context.sql declare l_context_exists number; begin select count(*) into l_context_exists from dba_context where namespace = upper('PIT_CTX_&INSTALL_USER.'); if l_context_exists = 0 then execute immediate 'create context pit_ctx_&INSTALL_USER. using &INSTALL_USER..utl_context accessed globally'; dbms_output.put_line('... Global context PIT_CTX_&INSTALL_USER. created'); else dbms_output.put_line('... Context PIT_CTX_&INSTALL_USER. already exists'); end if; end; /
<reponame>RaphaelOuzilleau0/heroku INSERT INTO `roles` (`id`, `name`) VALUES (1, 'admin'), (2, 'membre');
<reponame>thiagovars/ThiagoYMariana -- phpMyAdmin SQL Dump -- version 4.4.15.1 -- http://www.phpmyadmin.net -- -- Host: mysql472.umbler.com -- Generation Time: Apr 22, 2018 at 04:59 PM -- Server version: 5.6.30-log -- PHP Version: 5.4.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 utf8mb4 */; -- -- Database: `tym_db` -- -- -------------------------------------------------------- -- -- Table structure for table `guests` -- CREATE TABLE IF NOT EXISTS `guests` ( `guest_id` int(11) NOT NULL, `created` datetime DEFAULT NULL, `modified` datetime NOT NULL, `name` varchar(55) DEFAULT NULL, `surname` varchar(55) DEFAULT NULL, `undertwelve` tinyint(1) NOT NULL DEFAULT '0', `vegan_menu` tinyint(1) NOT NULL DEFAULT '0', `confirmed` double NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=latin1; -- -- Dumping data for table `guests` -- INSERT INTO `guests` (`guest_id`, `created`, `modified`, `name`, `surname`, `undertwelve`, `vegan_menu`, `confirmed`) VALUES (3, '2018-01-28 17:59:52', '2018-04-22 15:53:06', 'Izabel', 'Vargas', 0, 0, 0), (4, '2018-01-28 17:59:52', '0000-00-00 00:00:00', '<NAME>', 'Filho', 0, 0, 0), (5, '2018-01-28 17:59:52', '2018-04-22 16:05:59', 'Aline', 'Machado', 0, 0, 0), (6, '2018-01-28 17:59:52', '2018-04-22 16:07:54', 'Mathaeus', '<NAME>', 0, 0, 0), (7, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Bruna', 'Gauterio', 0, 0, 0), (8, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Ezequiel', '<NAME>', 0, 0, 0), (9, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Clara', '<NAME>', 0, 0, 0), (10, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Patricia', '<NAME>', 0, 0, 0), (12, '2018-01-28 17:59:52', '0000-00-00 00:00:00', '<NAME>', '<NAME>', 0, 0, 0), (13, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Rejane', '<NAME>', 0, 0, 0), (14, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Nadia', 'Vargas', 0, 0, 0), (15, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Vera', 'Pacheco', 0, 0, 0), (16, '2018-01-28 17:59:52', '0000-00-00 00:00:00', '<NAME>', 'Rodríguez', 0, 0, 0), (17, '2018-01-28 17:59:52', '2018-04-22 15:56:07', 'Florencia', 'Gerali', 0, 0, 0), (18, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Carlos', 'Rodríguez', 0, 0, 0), (19, '2018-01-28 17:59:52', '2018-04-22 16:06:00', 'Carmen', 'Cammarano', 0, 0, 0), (20, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Alejandra', 'Rodríguez', 0, 0, 0), (21, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'José', 'Bossano', 0, 0, 0), (22, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Agustín', 'Bossano', 1, 0, 0), (23, '2018-01-28 17:59:52', '2018-04-22 16:14:59', 'Gustavo', 'Gerali', 0, 0, 0), (24, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Wanda', 'Baldassari', 0, 0, 0), (25, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Rodrigo', 'Romero', 0, 0, 0), (28, '2018-01-28 17:59:52', '0000-00-00 00:00:00', '<NAME>', 'Varela', 0, 0, 0), (29, '2018-01-28 17:59:52', '2018-04-22 17:00:33', 'Gabriel', 'Durante', 0, 0, 0), (31, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Leandro', 'Ramos', 0, 0, 0), (32, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Luiz', 'Ribeiro', 0, 0, 0), (33, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Douglas', 'Gubert', 0, 0, 0), (34, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Camila', 'Veiga', 0, 0, 0), (35, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Alan', 'Gubert', 1, 0, 0), (36, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Victor', 'Fleitas', 0, 0, 0), (37, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Ivana', 'Baldassari', 0, 0, 0), (38, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Germán', 'Fleitas', 0, 0, 0), (39, '2018-01-28 17:59:52', '2018-04-22 16:15:07', 'Francina', 'Fleitas', 0, 0, 0), (40, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Lorena', 'Baldassari', 0, 0, 0), (41, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Jorge', 'Díaz', 0, 0, 0), (42, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Adriana', 'Díaz', 0, 0, 0), (43, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Enrique', 'Patrón', 0, 0, 0), (44, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Federico', 'Díaz', 1, 0, 0), (45, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Constanza', 'Díaz', 1, 0, 0), (46, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Scheila', 'Lima', 0, 0, 0), (47, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Rafael', 'Szarblewski', 0, 0, 0), (48, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Estela', 'Morelle', 0, 0, 0), (49, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Bianca', 'Darski', 0, 0, 0), (50, '2018-01-28 17:59:52', '2018-04-22 16:13:16', 'Marden', 'Müller', 0, 0, 0), (51, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Roberta', 'Grudzinski', 0, 0, 0), (54, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Raúl', 'Díaz', 0, 0, 0), (55, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Ingrid', 'Machado', 0, 0, 0), (56, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Hernán', 'García', 0, 0, 0), (57, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Nicolás', 'Licandro', 0, 0, 0), (58, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Sofía', 'Pinto', 0, 0, 0), (60, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Néstor', 'Ferreira', 0, 0, 0), (63, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Nicolás', 'Zuccotti', 0, 0, 0), (66, '2018-01-28 17:59:52', '0000-00-00 00:00:00', 'Brian', 'Flores', 0, 0, 0), (67, '0000-00-00 00:00:00', '2018-04-22 16:17:33', 'Teresita', 'Oliviera', 0, 0, 0), (68, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Mónica', 'Barreto', 0, 0, 0), (69, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Pablo', 'Cibils', 0, 0, 0), (70, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Agustín', 'Cibils', 0, 0, 0), (71, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Flavia', 'Inmediato', 0, 0, 0), (72, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Rasjid', 'César', 0, 0, 0), (73, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Daniel', 'Cuña', 0, 0, 0), (74, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Guacira', 'Cardoso', 0, 0, 0), (75, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Marcelo', 'Saporiti', 0, 0, 0), (76, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Graciela', 'Correa', 0, 0, 0), (77, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Eduardo', 'Corrêa', 0, 0, 0), (78, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'Angélica', 'Corrêa', 0, 0, 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `guests` -- ALTER TABLE `guests` ADD PRIMARY KEY (`guest_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `guests` -- ALTER TABLE `guests` MODIFY `guest_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=79; /*!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 */;
<reponame>Tulonsae/Stars -- Add initial set of stars -- Manually add 2 major reference points (that are not in Hipparcos catalog) INSERT INTO `tulhip1` (`RA`, `DE`, `GLon`, `GLat`, `SpType`, `Plx`, `Dist`, `X`, `Y`, `Z`, `HIP`, `sLoc`, `sType`, `Name`, `sName`) VALUES (286.13, 63.87, 0, 0, "G2V", 206264822.2, 0, 0, 0, 0, null, 'M', 'M', "Sol", 'M'); INSERT INTO `tulhip1` (`RA`, `DE`, `GLon`, `GLat`, `SpType`, `Plx`, `Dist`, `X`, `Y`, `Z`, `HIP`, `sLoc`, `sType`, `Name`, `sName`) VALUES (266.416817, -28.992175, 359.9442, -00.0462, "Blackhole", 0.127, 7874.01575, 7874.00946, -7.66845, -6.34914, null, 'M', 'M', "Sgr A*", 'M'); -- Create temp table for cleaning up data and calculations DROP TABLE IF EXISTS `tt`; CREATE TABLE `tt` ( `HIP` mediumint unsigned NOT NULL, `RA` decimal(9,6) DEFAULT NULL, `DE` decimal(8,6) DEFAULT NULL, `GLon` decimal(7,4) DEFAULT NULL, `GLat` decimal(6,4) DEFAULT NULL, `SpType` varchar(12) DEFAULT NULL, `Plx` decimal(5,2) DEFAULT NULL, `Dist` decimal(11,5) DEFAULT NULL, `X` decimal(11,5) DEFAULT NULL, `Y` decimal(11,5) DEFAULT NULL, `Z` decimal(11,5) DEFAULT NULL ); INSERT INTO `tt` (`HIP`, `RA`, `DE`, `GLon`, `GLat`, `SpType`, `Plx`) SELECT `HIP`, `RA`, `DE`, `GLon`, `GLat`, `SpType`, `Plx` FROM `hip1loc`; -- Cleanup data SELECT "INFO - deleting null Plx values", count(*) from tt where Plx is null; delete from tt where `Plx` is null; SELECT "INFO - deleting zero Plx values", count(*) from tt where Plx = 0; delete from tt where `Plx` = 0; SELECT "INFO - deleting negative Plx values", count(*) from tt where Plx < 0; delete from tt where `Plx` < 0; -- Check amount of data SELECT count(*) from tt; -- Add autoindex to temp table ALTER TABLE tt ADD `TC` mediumint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY; -- Calculate the distance and cartesian coords DROP PROCEDURE IF EXISTS tproc; DELIMITER ;; CREATE PROCEDURE tproc() BEGIN DECLARE n int DEFAULT 0; DECLARE i int DEFAULT 0; SELECT COUNT(*) FROM `tt` INTO n; SET i = 1; WHILE i <= n DO SELECT `GLon`, `GLat`, `Plx` FROM `tt` WHERE `TC` = i INTO @glon, @glat, @plx; SET @dist = 1000 / @plx; SET @x = @dist * COS(RADIANS(@glon)) * COS(RADIANS(@glat)); SET @y = @dist * SIN(RADIANS(@glon)) * COS(RADIANS(@glat)); SET @z = @dist * SIN(RADIANS(@glat)); UPDATE `tt` SET `Dist` = @dist, `X` = @x, `Y` = @y, `Z` = @z WHERE `TC` = i; SET i = i + 1; END WHILE; END; ;; DELIMITER ; CALL tproc(); show warnings; -- Add the data to the real table INSERT INTO `tulhip1` (`RA`, `DE`, `GLon`, `GLat`, `SpType`, `Plx`, `Dist`, `X`, `Y`, `Z`, `HIP`, `sLoc`) SELECT `RA`, `DE`, `GLon`, `GLat`, `SpType`, `Plx`, `Dist`, `X`, `Y`, `Z`, `HIP`, "H1" FROM `tt`; show warnings;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 26, 2018 at 03:58 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 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: `vertisjm` -- -- -------------------------------------------------------- -- -- Table structure for table `addresses` -- CREATE TABLE `addresses` ( `address_id` int(10) UNSIGNED NOT NULL, `address_user_id` int(10) UNSIGNED NOT NULL, `address_line_1` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `address_line_2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address_zip_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `addresses` -- INSERT INTO `addresses` (`address_id`, `address_user_id`, `address_line_1`, `address_line_2`, `address_zip_code`, `country`, `deleted_at`, `created_at`, `updated_at`) VALUES (3, 4, '<NAME>', '', '129hh34', 'Jamaica', NULL, '2018-04-21 22:42:04', '2018-04-21 22:42:04'), (4, 5, '<NAME>', 'Mandeville', '4324ddd', 'Trinidad', NULL, '2018-04-22 01:48:25', '2018-04-25 23:33:16'); -- -------------------------------------------------------- -- -- Table structure for table `approvals` -- CREATE TABLE `approvals` ( `approval_id` int(10) UNSIGNED NOT NULL, `approval_task_id` int(10) UNSIGNED NOT NULL, `approval_approve_by_id` int(10) UNSIGNED NOT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `approvals` -- INSERT INTO `approvals` (`approval_id`, `approval_task_id`, `approval_approve_by_id`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 5, 1, NULL, '2018-04-25 07:46:37', '2018-04-25 07:46:37'), (2, 4, 1, NULL, '2018-04-25 07:46:42', '2018-04-25 07:46:42'), (3, 6, 1, NULL, '2018-04-25 07:47:09', '2018-04-25 07:47:09'), (4, 7, 1, NULL, '2018-04-25 07:47:12', '2018-04-25 07:47:12'), (5, 2, 1, NULL, '2018-04-25 22:12:38', '2018-04-25 22:12:38'), (6, 7, 1, NULL, '2018-04-26 01:02:08', '2018-04-26 01:02:08'), (7, 7, 1, NULL, '2018-04-26 01:02:17', '2018-04-26 01:02:17'), (8, 6, 1, NULL, '2018-04-26 01:02:32', '2018-04-26 01:02:32'), (9, 6, 1, NULL, '2018-04-26 01:03:44', '2018-04-26 01:03:44'), (10, 7, 1, NULL, '2018-04-26 01:05:19', '2018-04-26 01:05:19'), (11, 7, 1, NULL, '2018-04-26 01:05:40', '2018-04-26 01:05:40'), (12, 1, 1, NULL, '2018-04-26 01:07:27', '2018-04-26 01:07:27'), (13, 11, 1, NULL, '2018-04-26 01:09:50', '2018-04-26 01:09:50'), (14, 10, 1, NULL, '2018-04-26 01:09:55', '2018-04-26 01:09:55'), (15, 3, 1, NULL, '2018-04-26 01:31:08', '2018-04-26 01:31:08'), (16, 8, 1, NULL, '2018-04-26 01:34:38', '2018-04-26 01:34:38'), (17, 9, 1, NULL, '2018-04-26 01:34:41', '2018-04-26 01:34:41'); -- -------------------------------------------------------- -- -- Table structure for table `clients` -- CREATE TABLE `clients` ( `client_id` int(10) UNSIGNED NOT NULL, `client_user_id` int(10) UNSIGNED NOT NULL, `client_company` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `client_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `client_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `client_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `client_home_telephone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `client_work_telephone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `client_mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `clients` -- INSERT INTO `clients` (`client_id`, `client_user_id`, `client_company`, `client_name`, `client_email`, `client_image`, `deleted_at`, `client_home_telephone`, `client_work_telephone`, `client_mobile`, `created_at`, `updated_at`) VALUES (4, 1, 'JAagro technologies and harware', '<NAME>', '<EMAIL>', '1524332523avatar1-72.jpg', NULL, '1876456392', '18239343', '876 8363443', '2018-04-21 22:42:04', '2018-04-21 22:42:04'), (5, 1, 'EDU Solutions', 'Ramone', '<EMAIL>', '1524681076avatar4-120.jpg', NULL, '1876456392', '18239343', '876 8363443', '2018-04-22 01:48:25', '2018-04-25 23:31:16'); -- -------------------------------------------------------- -- -- Table structure for table `employees` -- CREATE TABLE `employees` ( `employee_id` int(10) UNSIGNED NOT NULL, `employee_user_id` int(10) UNSIGNED NOT NULL, `employee_added_by_id` int(10) UNSIGNED NOT NULL, `employee_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `employee_department` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `employees` -- INSERT INTO `employees` (`employee_id`, `employee_user_id`, `employee_added_by_id`, `employee_type`, `deleted_at`, `employee_department`, `created_at`, `updated_at`) VALUES (4, 6, 2, 'inoffice', NULL, 'marketing', '2018-04-22 05:10:05', '2018-04-22 05:10:05'), (5, 7, 2, 'conrtactor', NULL, 'marketing', '2018-04-22 13:26:58', '2018-04-22 13:26:58'), (6, 8, 2, 'inoffice', NULL, 'sales', '2018-04-22 13:33:17', '2018-04-22 13:33:17'), (7, 9, 2, 'inoffice', NULL, 'marketing', '2018-04-22 13:33:58', '2018-04-22 13:33:58'), (8, 10, 2, 'inoffice', NULL, 'marketing', '2018-04-24 08:58:39', '2018-04-24 08:58:39'), (11, 13, 2, 'inoffice', NULL, 'sales', '2018-04-24 10:02:32', '2018-04-24 10:02:32'), (12, 14, 2, 'inoffice', NULL, 'marketing', '2018-04-25 06:44:16', '2018-04-25 06:44:16'); -- -------------------------------------------------------- -- -- Table structure for table `managers` -- CREATE TABLE `managers` ( `manager_id` int(10) UNSIGNED NOT NULL, `manager_user_id` int(10) UNSIGNED NOT NULL, `department` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `managers` -- INSERT INTO `managers` (`manager_id`, `manager_user_id`, `department`, `deleted_at`, `created_at`, `updated_at`) VALUES (2, 1, 'HR', NULL, '2018-04-20 05:00:00', '2018-04-26 04:55:23'), (6, 16, 'Marketing', NULL, '2018-04-26 03:53:16', '2018-04-26 03:57:07'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (37, '2014_10_12_000000_create_users_table', 1), (38, '2014_10_12_100000_create_password_resets_table', 1), (40, '2018_04_21_051004_create_clients_table', 1), (41, '2018_04_21_051018_create_employees_table', 1), (43, '2018_04_21_051242_create_approvals_table', 1), (44, '2018_04_21_054248_create_addresses_table', 1), (45, '2018_04_21_054649_create_managers_table', 1), (46, '2018_04_21_051033_create_projects_table', 2), (47, '2018_04_21_213144_create_project_teams_table', 3), (49, '2018_04_21_035701_create_tasks_table', 4); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `projects` -- CREATE TABLE `projects` ( `project_id` int(10) UNSIGNED NOT NULL, `project_created_by_id` int(10) UNSIGNED NOT NULL, `project_client_id` int(10) UNSIGNED NOT NULL, `project_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `deadline` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `projects` -- INSERT INTO `projects` (`project_id`, `project_created_by_id`, `project_client_id`, `project_name`, `status`, `deadline`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 2, 4, 'Apple Prject', NULL, '2018-04-25 16:49:18', NULL, '2018-04-22 01:02:43', '2018-04-25 21:45:36'), (2, 2, 4, 'Mobile Application for Clientbizz', NULL, '2018-04-12 05:00:00', NULL, '2018-04-22 01:03:23', '2018-04-22 01:03:23'), (3, 2, 5, 'UTech Info Desk', NULL, '2018-04-26 05:00:00', NULL, '2018-04-22 01:48:54', '2018-04-22 01:48:54'), (4, 2, 4, 'Facebook Website', NULL, '2018-04-13 05:00:00', NULL, '2018-04-22 13:36:35', '2018-04-22 13:36:35'), (5, 2, 4, 'NCB innovation lab renovation', NULL, '2018-04-25 22:06:33', NULL, '2018-04-24 07:27:59', '2018-04-25 22:06:33'), (6, 2, 5, 'Reverse polish notation calculator', NULL, '2018-04-13 05:00:00', NULL, '2018-04-25 05:59:49', '2018-04-25 05:59:49'), (7, 2, 5, 'VertisJm Company web page', NULL, '2018-04-26 05:00:00', NULL, '2018-04-25 20:40:24', '2018-04-25 20:40:24'), (8, 2, 4, 'Apple Macbook design', NULL, '2018-04-11 05:00:00', NULL, '2018-04-25 20:54:21', '2018-04-25 20:54:21'), (9, 2, 5, 'Microsoft Company renovation ', NULL, '2018-04-13 05:00:00', NULL, '2018-04-25 20:55:00', '2018-04-25 20:55:00'), (10, 2, 5, 'UTech Mobile Application Design', NULL, '2018-04-25 23:36:14', NULL, '2018-04-25 20:59:08', '2018-04-25 23:36:14'), (11, 2, 5, 'Vertisjm is the number one company to work for', NULL, '2018-07-20 05:00:00', NULL, '2018-04-25 21:00:04', '2018-04-25 21:00:04'), (12, 2, 5, 'Clientbizz Crm development', NULL, '2018-04-12 05:00:00', NULL, '2018-04-25 21:24:17', '2018-04-25 21:24:17'), (13, 2, 4, 'HP Monitor repair', NULL, '2018-04-12 05:00:00', NULL, '2018-04-25 21:27:00', '2018-04-25 21:27:00'), (14, 2, 4, 'Configure Spring framework for vertisjm', NULL, '2018-07-21 05:00:00', NULL, '2018-04-26 00:04:21', '2018-04-26 00:04:21'), (15, 6, 4, 'IOS App for farmers', NULL, '2018-04-13 05:00:00', NULL, '2018-04-26 04:24:40', '2018-04-26 04:24:40'); -- -------------------------------------------------------- -- -- Table structure for table `project_teams` -- CREATE TABLE `project_teams` ( `team_id` int(10) UNSIGNED NOT NULL, `project_employee_user_id` int(10) UNSIGNED NOT NULL, `project_manager_user_id` int(10) UNSIGNED NOT NULL, `project_team_project_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `project_teams` -- INSERT INTO `project_teams` (`team_id`, `project_employee_user_id`, `project_manager_user_id`, `project_team_project_id`, `created_at`, `updated_at`) VALUES (5, 4, 2, 2, '2018-04-22 12:38:38', '2018-04-22 12:38:38'), (12, 5, 2, 4, '2018-04-22 13:37:15', '2018-04-22 13:37:15'), (13, 4, 2, 4, '2018-04-22 13:37:18', '2018-04-22 13:37:18'), (14, 6, 2, 4, '2018-04-22 13:37:21', '2018-04-22 13:37:21'), (16, 5, 2, 3, '2018-04-22 13:39:33', '2018-04-22 13:39:33'), (17, 6, 2, 2, '2018-04-22 14:15:36', '2018-04-22 14:15:36'), (18, 6, 2, 1, '2018-04-22 14:15:48', '2018-04-22 14:15:48'), (19, 8, 2, 4, '2018-04-25 00:26:32', '2018-04-25 00:26:32'), (20, 11, 2, 4, '2018-04-25 00:26:37', '2018-04-25 00:26:37'), (21, 6, 2, 6, '2018-04-25 08:41:26', '2018-04-25 08:41:26'), (22, 6, 2, 8, '2018-04-25 20:54:29', '2018-04-25 20:54:29'), (23, 6, 2, 13, '2018-04-25 23:33:45', '2018-04-25 23:33:45'), (24, 4, 6, 15, '2018-04-26 04:24:43', '2018-04-26 04:24:43'), (25, 6, 6, 15, '2018-04-26 04:24:47', '2018-04-26 04:24:47'); -- -------------------------------------------------------- -- -- Table structure for table `tasks` -- CREATE TABLE `tasks` ( `task_id` int(10) UNSIGNED NOT NULL, `task_employee_id` int(10) UNSIGNED NOT NULL, `task_project_id` int(10) UNSIGNED NOT NULL, `task_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `task_start_date` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `task_end_date` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `time_taken` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `datetime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `task_comment` longtext COLLATE utf8_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tasks` -- INSERT INTO `tasks` (`task_id`, `task_employee_id`, `task_project_id`, `task_name`, `deleted_at`, `task_start_date`, `task_end_date`, `time_taken`, `datetime`, `task_comment`, `created_at`, `updated_at`) VALUES (1, 4, 2, 'Making of JAagro', NULL, '12:00 pm', '1:00 am', '', NULL, NULL, NULL, NULL), (2, 6, 4, 'ASas', NULL, '11:15 PM', '9:30 PM', '', NULL, 'ASas', '2018-04-24 08:41:53', '2018-04-24 08:41:53'), (3, 6, 4, 'ASas', NULL, '11:15 PM', '9:30 PM', '', NULL, 'ASas', '2018-04-24 08:43:05', '2018-04-24 08:43:05'), (4, 6, 4, 'ASas', NULL, '11:15 PM', '9:30 PM', '', NULL, 'ASas', '2018-04-24 08:43:21', '2018-04-24 08:43:21'), (5, 6, 4, 'It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', NULL, '10:30 PM', '11:00 AM', '', NULL, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', '2018-04-24 08:54:05', '2018-04-24 08:54:05'), (6, 6, 4, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', NULL, '1:30 AM', '4:00 AM', '', NULL, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', '2018-04-24 11:23:57', '2018-04-24 11:23:57'), (7, 6, 4, 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and ', NULL, '2:00 AM', '2:00 AM', '', NULL, 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish.', '2018-04-24 11:54:24', '2018-04-24 11:54:24'), (8, 6, 6, 'Type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', NULL, '19:00', '16:30', '', NULL, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', '2018-04-25 08:58:29', '2018-04-25 08:58:29'), (9, 6, 6, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ', NULL, '9:15', '18:30', '', '2018-04-25 10:56:18', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,', '2018-04-25 10:56:18', '2018-04-25 10:56:18'), (10, 6, 6, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the ', NULL, '3:00', '9:00', '', '2018-04-14 05:00:00', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,', '2018-04-25 11:03:20', '2018-04-25 11:03:20'), (11, 6, 6, 'The Laravel Schema class provides a database agnostic way of manipulating tables. It works well with all of the \r\n\r\n\r\n', NULL, '1:00', '6:15', '5:15', '2018-04-28 05:00:00', 'The Laravel Schema class provides a database agnostic way of manipulating tables. It works well with all of the databases supported by Laravel, and has a unified API across all of these systems.\r\n\r\n\r\n', '2018-04-25 11:12:41', '2018-04-25 11:12:41'), (12, 6, 4, 'Java Database Connectivity is an application programming interface for the programming language Java', NULL, '3:30', '7:00', '3:30', '2018-04-26 05:08:00', 'Java Database Connectivity is an application programming interface for the programming language Java, which defines how a client may access a database. It is a Java-based data access technology used for Java database connectivity.', '2018-04-26 05:08:00', '2018-04-26 05:08:00'), (13, 6, 4, 'sfddf', NULL, '0:30', '5:00', '4:30', '2018-04-21 05:00:00', 'sdfsdf', '2018-04-26 05:28:01', '2018-04-26 05:28:01'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `u_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `image`, `email`, `password`, `u_type`, `deleted_at`, `remember_token`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '15247004271605048.jpg', '<EMAIL>', <PASSWORD>', 'man', NULL, 'RABDRUvCiDC49PK4Ddm5mDeuiwMLIHu54SIgC2dnXVId3Q0vKGzEkLxoIC9J', '2018-04-21 22:38:42', '2018-04-26 06:53:56'), (6, '<NAME>', '1524355805avatar2-72.jpg', '<EMAIL>', <PASSWORD>', 'emp', NULL, NULL, '2018-04-22 05:10:05', '2018-04-22 05:10:05'), (7, '<NAME>', '1524385618avatar2-200.jpg', '<EMAIL>', <PASSWORD>$10$k4IyZ4vVzxZab3miEdk4EeXoyqj3.KujguRnZxzD.qMzbAErcfhEy', 'emp', NULL, NULL, '2018-04-22 13:26:58', '2018-04-22 13:26:58'), (8, '<NAME>', '1524385997avatar7-72.jpg', '<EMAIL>', <PASSWORD>', 'emp', NULL, 'U652GI1z6X6eD1ca1pUb1EHcqz78IX1FyM0fOGDfHHZEZFHaSlYVi0Q2xetJ', '2018-04-22 13:33:17', '2018-04-26 06:56:22'), (9, '<NAME>', '1524386038avatar3-120.jpg', '<EMAIL>', '$2y$10$bS6BSqoA.4ZVH3pJY3msa.1YSdhN.SiqTYRpVo37yAeOSzJSXiT9e', 'emp', NULL, NULL, '2018-04-22 13:33:58', '2018-04-22 13:33:58'), (10, '<NAME>', '1524542318avatar8-72.jpg', '<EMAIL>', '$2y$10$ulCaoCxfRr/B3aP/JfVi4.jBltcAHlUFCroG1xY6fB0Marxv2.Jce', 'emp', NULL, NULL, '2018-04-24 08:58:38', '2018-04-24 08:58:38'), (13, '<NAME>', '1524546151avatar3-72.jpg', '<EMAIL>', <PASSWORD>', 'emp', NULL, NULL, '2018-04-24 10:02:32', '2018-04-24 10:02:32'), (14, '<NAME>', '1524620656avatar4-120.jpg', '<EMAIL>', '$2y$10$qXlFKoKT68wVJQ6zMcHqoueKTfNSYJFTQnK0P0PQ59cbsslRzmlR2', 'emp', NULL, NULL, '2018-04-25 06:44:16', '2018-04-25 06:44:16'), (15, 'Romar', 'profile.png', '<EMAIL>', '$2y$10$n7ZZ/7Re9ro7mdLweOHYDeQw2f2T1umzivde6i9mwfM9l.KBoF.uS', 'man', NULL, '7Oyr9GNi3cVJfLoDDUfcLGJUY4eAeMa3KBPYQvr6vJMDh7bTOBfWYQEArdUe', '2018-04-26 02:38:18', '2018-04-26 02:39:39'), (16, '<NAME>', '1524697046avatar8-72.jpg', '<EMAIL>', <PASSWORD>', 'man', NULL, 'S4kSyXsJxgtjmT57vrJw8lWcFe1G9TApowwDPjrQC3DKzyWt2bWXP8XDUKdg', '2018-04-26 02:41:41', '2018-04-26 04:51:10'); -- -- Indexes for dumped tables -- -- -- Indexes for table `addresses` -- ALTER TABLE `addresses` ADD PRIMARY KEY (`address_id`), ADD KEY `addresses_address_user_id_foreign` (`address_user_id`); -- -- Indexes for table `approvals` -- ALTER TABLE `approvals` ADD PRIMARY KEY (`approval_id`); -- -- Indexes for table `clients` -- ALTER TABLE `clients` ADD PRIMARY KEY (`client_id`), ADD KEY `clients_client_user_id_foreign` (`client_user_id`); -- -- Indexes for table `employees` -- ALTER TABLE `employees` ADD PRIMARY KEY (`employee_id`), ADD KEY `employees_employee_user_id_foreign` (`employee_user_id`), ADD KEY `employee_added_by_id` (`employee_added_by_id`); -- -- Indexes for table `managers` -- ALTER TABLE `managers` ADD PRIMARY KEY (`manager_id`), ADD KEY `managers_manager_user_id_foreign` (`manager_user_id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`), ADD KEY `password_resets_token_index` (`token`); -- -- Indexes for table `projects` -- ALTER TABLE `projects` ADD PRIMARY KEY (`project_id`), ADD KEY `projects_project_created_by_id_foreign` (`project_created_by_id`), ADD KEY `projects_project_client_id_foreign` (`project_client_id`); -- -- Indexes for table `project_teams` -- ALTER TABLE `project_teams` ADD PRIMARY KEY (`team_id`), ADD KEY `project_teams_project_employee_user_id_foreign` (`project_employee_user_id`), ADD KEY `project_teams_project_manager_user_id_foreign` (`project_manager_user_id`), ADD KEY `project_teams_project_team_project_id_foreign` (`project_team_project_id`); -- -- Indexes for table `tasks` -- ALTER TABLE `tasks` ADD PRIMARY KEY (`task_id`), ADD KEY `tasks_task_employee_id_foreign` (`task_employee_id`), ADD KEY `tasks_task_project_id_foreign` (`task_project_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `addresses` -- ALTER TABLE `addresses` MODIFY `address_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `approvals` -- ALTER TABLE `approvals` MODIFY `approval_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `clients` -- ALTER TABLE `clients` MODIFY `client_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `employees` -- ALTER TABLE `employees` MODIFY `employee_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `managers` -- ALTER TABLE `managers` MODIFY `manager_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50; -- -- AUTO_INCREMENT for table `projects` -- ALTER TABLE `projects` MODIFY `project_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `project_teams` -- ALTER TABLE `project_teams` MODIFY `team_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `tasks` -- ALTER TABLE `tasks` MODIFY `task_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- Constraints for dumped tables -- -- -- Constraints for table `addresses` -- ALTER TABLE `addresses` ADD CONSTRAINT `addresses_address_user_id_foreign` FOREIGN KEY (`address_user_id`) REFERENCES `clients` (`client_id`); -- -- Constraints for table `clients` -- ALTER TABLE `clients` ADD CONSTRAINT `clients_client_user_id_foreign` FOREIGN KEY (`client_user_id`) REFERENCES `users` (`id`); -- -- Constraints for table `employees` -- ALTER TABLE `employees` ADD CONSTRAINT `employees_employee_user_id_foreign` FOREIGN KEY (`employee_user_id`) REFERENCES `users` (`id`), ADD CONSTRAINT `employees_ibfk_1` FOREIGN KEY (`employee_added_by_id`) REFERENCES `managers` (`manager_id`); -- -- Constraints for table `managers` -- ALTER TABLE `managers` ADD CONSTRAINT `managers_manager_user_id_foreign` FOREIGN KEY (`manager_user_id`) REFERENCES `users` (`id`); -- -- Constraints for table `projects` -- ALTER TABLE `projects` ADD CONSTRAINT `projects_project_client_id_foreign` FOREIGN KEY (`project_client_id`) REFERENCES `clients` (`client_id`), ADD CONSTRAINT `projects_project_created_by_id_foreign` FOREIGN KEY (`project_created_by_id`) REFERENCES `managers` (`manager_id`); -- -- Constraints for table `project_teams` -- ALTER TABLE `project_teams` ADD CONSTRAINT `project_teams_project_employee_user_id_foreign` FOREIGN KEY (`project_employee_user_id`) REFERENCES `employees` (`employee_id`), ADD CONSTRAINT `project_teams_project_manager_user_id_foreign` FOREIGN KEY (`project_manager_user_id`) REFERENCES `managers` (`manager_id`), ADD CONSTRAINT `project_teams_project_team_project_id_foreign` FOREIGN KEY (`project_team_project_id`) REFERENCES `projects` (`project_id`); -- -- Constraints for table `tasks` -- ALTER TABLE `tasks` ADD CONSTRAINT `tasks_task_employee_id_foreign` FOREIGN KEY (`task_employee_id`) REFERENCES `employees` (`employee_id`), ADD CONSTRAINT `tasks_task_project_id_foreign` FOREIGN KEY (`task_project_id`) REFERENCES `projects` (`project_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 */;
<filename>SQL/Advanced Select/Binary Tree Nodes.sql SELECT n, CASE WHEN p IS NULL THEN "Root" WHEN n IN (SELECT p FROM bst) THEN "Inner" ELSE "Leaf" END FROM bst ORDER BY n;
<gh_stars>1-10 CREATE USER [demoUser] FOR LOGIN [demoUser] WITH DEFAULT_SCHEMA = dbo GO GRANT CONNECT TO [demoUser] GO GRANT SELECT TO [demoUser] GO GRANT EXECUTE TO [demoUser]
<filename>src/test/resources/sql/create_view/32dd9163.sql -- file:rangefuncs.sql ln:119 expect:true CREATE VIEW vw_getfoo AS SELECT * FROM getfoo3(1) WITH ORDINALITY AS t1(v,o)
create table table1 ( c1 INT, c2 INT, c3 INT, PRIMARY KEY (c1), UNIQUE (c2, c3), FOREIGN KEY (c2, c3) REFERENCES table2 (c2_, c3_) )
-- ALTER SYSTEM SET max_connections = 400; -- Uncomment if you need to view the full postgres logs (SQL statements, ...) via `docker logs -f postgresql-test` ALTER SYSTEM SET log_statement = 'all'; ALTER SYSTEM SET synchronous_commit = 'off'; -- https://postgrespro.ru/docs/postgrespro/9.5/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT -- ALTER SYSTEM SET shared_buffers='512MB'; ALTER SYSTEM SET fsync=FALSE; ALTER SYSTEM SET full_page_writes=FALSE; ALTER SYSTEM SET commit_delay=100000; ALTER SYSTEM SET commit_siblings=10; -- ALTER SYSTEM SET work_mem='50MB'; ALTER SYSTEM SET log_line_prefix = '%a %u@%d '; create user aaa with password '<PASSWORD>'; create database aaa with owner aaa; \connect aaa; -- create extension if not exists "hstore" schema pg_catalog; -- https://www.endpoint.com/blog/2012/10/30/postgresql-autoexplain-module -- ALTER SYSTEM set client_min_messages = notice; -- ALTER SYSTEM set log_min_messages = notice; -- ALTER SYSTEM set log_min_duration_statement = -1; -- ALTER SYSTEM set log_connections = on; -- ALTER SYSTEM set log_disconnections = on; -- ALTER SYSTEM set log_duration = on; -- create user chat with password '<PASSWORD>'; -- superuser only for test! alter role chat superuser; create database chat with owner chat; \connect chat;
SELECT json_build_object( 'id', seqname.seq_id, 'name', name, 'authors', ( SELECT array_to_json(array_agg(row_to_json(author))) FROM (select a.id, a.first_name, a.last_name, a.middle_name from seq inner join book b on seq.book_id = b.id inner join bookauthor b2 on b.id = b2.book_id inner join author a on b2.author_id = a.id where seq.seq_id = seqname.seq_id and b.lang = any ($1::text[]) group by a.id order by (select count(*) from seq inner join book b on seq.book_id = b.id inner join bookauthor b2 on b.id = b2.book_id and b2.author_id = a.id where seq.seq_id = seqname.seq_id) desc ) author )) FROM seqname WHERE (SELECT count(*) FROM seq INNER JOIN book b ON b.id = seq.book_id WHERE b.lang = ANY($1::text[])) <> 0 ORDER BY random() LIMIT 1;
create or replace schema test; set schema 'test'; set path 'test'; create or replace function lurql_query( foreign_server_name varchar(128), lurql varchar(65535)) returns table( class_name varchar(128), obj_name varchar(128), mof_id varchar(128), obj_attrs varchar(65535) ) language java parameter style system defined java no sql external name 'class net.sf.farrago.test.LurqlQueryUdx.queryMedMdr'; create or replace server olap_package foreign data wrapper sys_mdr options( extent_name 'Mondrian', schema_name 'Mondrian', "org.netbeans.mdr.persistence.Dir" 'testcases/mdrcwm/catalog/mdr') description 'Virtual catalog for CWM OLAP metadata imported from Mondrian XML'; select * from olap_package."Mondrian"."Level"; select * from table(lurql_query( 'OLAP_PACKAGE', 'select * from class Level;' )) order by class_name, obj_name;
drop index ACT_IDX_IDENT_LNK_USER on ACT_RU_IDENTITYLINK; drop index ACT_IDX_IDENT_LNK_GROUP on ACT_RU_IDENTITYLINK; drop index ACT_IDX_IDENT_LNK_SCOPE on ACT_RU_IDENTITYLINK; drop index ACT_IDX_IDENT_LNK_SCOPE_DEF on ACT_RU_IDENTITYLINK; drop table if exists ACT_RU_IDENTITYLINK;
<gh_stars>10-100 -- Table: public.newhousebyarea -- DROP TABLE public.newhousebyarea; --新房成交信息,按面积划分的信息 CREATE TABLE public.newhousebyarea ( thedate date NOT NULL, region character varying(255) NOT NULL, area_level character varying(255) NOT NULL, deal_count integer, area double precision, price double precision, total_price integer, CONSTRAINT newhousebyarea_primary_key PRIMARY KEY (thedate, region, area_level) ) WITH ( OIDS=FALSE ); ALTER TABLE public.newhousebyarea OWNER TO postgres; -- Table: public.newhousebytype -- DROP TABLE public.newhousebytype; --新房成交信息,按类型划分 CREATE TABLE public.newhousebytype ( thedate date NOT NULL, region character varying(255) NOT NULL, house_type character varying(255) NOT NULL, deal_count integer, area double precision, price double precision, availableforsalecount integer, availableforsalearea integer, CONSTRAINT newhousebytype_primary_key PRIMARY KEY (thedate, region, house_type) ) WITH ( OIDS=FALSE ); ALTER TABLE public.newhousebytype OWNER TO postgres; -- Table: public.newhousebyuse -- DROP TABLE public.newhousebyuse; --新房成交信息,按用途划分 CREATE TABLE public.newhousebyuse ( thedate date NOT NULL, region character varying(255) NOT NULL, use_type character varying(255) NOT NULL, deal_count integer, area double precision, price double precision, availableforsalecount integer, availableforsalearea integer, CONSTRAINT newhousebyuse_primary_key PRIMARY KEY (thedate, region, use_type) ) WITH ( OIDS=FALSE ); ALTER TABLE public.newhousebyuse OWNER TO postgres; -- Table: public.oldhousebyuse -- DROP TABLE public.oldhousebyuse; --二手房成交信息,按用途划分 CREATE TABLE public.oldhousebyuse ( thedate date NOT NULL, region character varying(255) NOT NULL, use_type character varying(255) NOT NULL, area double precision, deal_count integer, CONSTRAINT oldhousebyuse_primary_key PRIMARY KEY (thedate, region, use_type) ) WITH ( OIDS=FALSE ); ALTER TABLE public.oldhousebyuse OWNER TO postgres; -- Table: public.oldhousebyuse -- DROP TABLE public.oldhousebyuse; --二手房成交数据,按照用途分类 CREATE TABLE public.oldhousebyuse ( thedate date NOT NULL, region character varying(255) NOT NULL, use_type character varying(255) NOT NULL, area double precision, deal_count integer, CONSTRAINT oldhousebyuse_primary_key PRIMARY KEY (thedate, region, use_type) ) WITH ( OIDS=FALSE ); ALTER TABLE public.oldhousebyuse OWNER TO postgres; -- Table: public.oldhousesource -- DROP TABLE public.oldhousesource; --二手房源信息 CREATE TABLE public.oldhousesource ( thedate date NOT NULL, region character varying(255), serial_num character varying(255) NOT NULL, project_name character varying(255) NOT NULL, area double precision, use_type character varying(255), code character varying(30), agency_info character varying(255), CONSTRAINT oldhousesource_primary_key PRIMARY KEY (serial_num) ) WITH ( OIDS=FALSE ); ALTER TABLE public.oldhousesource OWNER TO postgres; -- Table: public.newhousesrc_project -- DROP TABLE public.newhousesrc_project; --新房的预售信息,项目信息 CREATE TABLE public.newhousesrc_project ( id serial NOT NULL, --id thedate date NOT NULL, --预售日期 region character varying(255), --区域 project_name character varying(255) NOT NULL, --项目名称 builder character varying(255) NOT NULL, --开发商 address character varying(255) NOT NULL, --地址 house_useage character varying(255) NOT NULL, --房屋用途 land_usage varchar(255), --土地用途 land_years_limit integer, --使用年限 land_serial_num varchar(255), --土地宗地号 land_contact_num varchar(255), --土地合同文号 presale_license_num character varying(255) NOT NULL, --预售许可证 pre_sale_count integer NOT NULL, -- 预售套数 pre_area float, --预售面积 now_sale_count integer NOT NULL, -- 现售套数 now_area float, --现售面积 CONSTRAINT newhousesrc_project_primary_key PRIMARY KEY (id), CONSTRAINT newhousesrc_project_serial_num UNIQUE (presale_license_num) ) WITH ( OIDS=FALSE ); ALTER TABLE public.newhousesrc_project OWNER TO postgres; -- Table: public.newhousesrc_building -- DROP TABLE public.newhousesrc_building; --新房预售信息,楼栋信息 CREATE TABLE public.newhousesrc_building ( id serial not null, project_id integer NOT NULL, project_name character varying(255) NOT NULL, building_name character varying(255) NOT NULL, plan_license character varying(255) NOT NULL, build_license character varying(255) NOT NULL, is_crawled boolean not null, CONSTRAINT newhousesrc_building_primary_key PRIMARY KEY (id), CONSTRAINT newhousesrc_building_unique UNIQUE (project_id, building_name) ) WITH ( OIDS=FALSE ); ALTER TABLE public.newhousesrc_building OWNER TO postgres; -- Table: public.newhousesrc_house -- DROP TABLE public.newhousesrc_house; -- 新房预售,每一套房屋的信息 CREATE TABLE public.newhousesrc_house ( id serial not null, building_id int not null, building_name character varying(255), --几栋 branch character varying(10), --座号 room_num character varying(50), floor varchar(255), house_type character varying(255), contact_code character varying(255), price double precision, usage character varying(50), build_area double precision, inside_area double precision, share_area double precision, CONSTRAINT newhousesrc_house_primary_key PRIMARY KEY (id), CONSTRAINT newhousesrc_house_unique UNIQUE (building_id, branch, room_num) ) WITH ( OIDS=FALSE ); ALTER TABLE public.newhousesrc_house OWNER TO postgres; --项目的简要信息,判断是否有新项目,以后后续的各种爬虫,都是基于这个来的 CREATE TABLE public.newhousesrc_project_summary ( id serial NOT NULL, --id thedate date NOT NULL, --预售日期 region character varying(255), --区域 presale_license_num varchar(255), --预售证 project_name character varying(255) NOT NULL, --项目名称 builder character varying(255) NOT NULL, --开发商 url varchar(1024) NOT NULL,--项目的url is_crawled boolean not null, CONSTRAINT newhousesrc_project_summary_primary_key PRIMARY KEY (id), CONSTRAINT newhousesrc_project_summary_presale_license_num UNIQUE (presale_license_num) ) WITH ( OIDS=FALSE ); ALTER TABLE public.newhousesrc_project_summary OWNER TO postgres; -- 查询每个项目的楼栋数 select a.id, a.project_name, a.presale_license_num, count(b.id) as build_count from newhousesrc_project a, newhousesrc_building b where a.id = b.project_id group by a.id order by build_count ; --查询每栋建筑的房屋套数 select a.id, a.project_id, a.project_name, a.building_name, count(b.id) as house_count from newhousesrc_building a, newhousesrc_house b where a.id = b.building_id group by a.id order by house_count, project_name, building_name
<gh_stars>0 # SELECT strict_word_similarity('word', 'two words'), similarity('word', 'words'); strict_word_similarity | similarity ------------------------+------------ 0.571429 | 0.571429 (1 row)
<gh_stars>0 DROP PROCEDURE IF EXISTS getPrimaryTerm; DELIMITER // CREATE DEFINER = sageAdmin PROCEDURE getPrimaryTerm (IN context CHAR(255), IN term CHAR(255)) DETERMINISTIC BEGIN DECLARE v_id int; DECLARE v_name char; DECLARE v_synonym_relationship_id int; DECLARE v_abbreviation_relationship_id int; SELECT cv_term.id FROM cv_term,cv WHERE cv.id = cv_term.cv_id AND cv_term.name ='has_synonym' AND cv.name = 'obo' INTO v_synonym_relationship_id; SELECT cv_term.id FROM cv_term,cv WHERE cv.id = cv_term.cv_id AND cv_term.name ='has_abbreviation' AND cv.name = 'obo' INTO v_abbreviation_relationship_id; IF context is NULL THEN SELECT object_id from cv_term_relationship,cv_term where object_id = cv_term.id and cv_term.name = term collate latin1_general_cs and (cv_term_relationship.type_id = v_synonym_relationship_id or cv_term_relationship.type_id = v_abbreviation_relationship_id) LIMIT 1 INTO v_id; IF v_id is NULL THEN SELECT cv.name,cv_term.id,cv_term.name FROM cv_term,cv WHERE cv.id = cv_term.cv_id and cv_term.name = term collate latin1_general_cs; ELSE SELECT cv.name, t.id,t.name FROM cv_term_relationship r JOIN cv_term t on ( r.subject_id = t.id) JOIN cv on (cv.id = t.cv_id) WHERE r.object_id = v_id and (r.type_id = v_synonym_relationship_id or r.type_id = v_abbreviation_relationship_id); END IF; ELSE SELECT object_id from cv_term_relationship,cv_term, cv where object_id = cv_term.id and cv.id = cv_term.cv_id and cv_term.name = term collate latin1_general_cs and (cv_term_relationship.type_id = v_synonym_relationship_id or cv_term_relationship.type_id = v_abbreviation_relationship_id) LIMIT 1 INTO v_id; IF v_id is NULL THEN SELECT cv.name,cv_term.id,cv_term.name FROM cv_term,cv WHERE cv.id = cv_term.cv_id and cv_term.name = term collate latin1_general_cs and cv.name = context; ELSE SELECT cv.name,t.id,t.name FROM cv_term_relationship r JOIN cv_term t on ( r.subject_id = t.id) JOIN cv on (cv.id = t.cv_id and cv.name = context) WHERE r.object_id = v_id and (r.type_id = v_synonym_relationship_id or r.type_id = v_abbreviation_relationship_id); END IF; END IF; END// DELIMITER ;
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [Edit.Module].[CustomEditWebsite.GetData] @NodeID bigint=NULL , @Predicate [varchar](100)=NULL AS BEGIN DECLARE @InternalID INT, @InternalType NVARCHAR(300) SELECT @InternalID = CAST(m.InternalID AS INT), @InternalType = InternalType FROM [RDF.Stage].[InternalNodeMap] m WHERE m.Status = 3 AND m.NodeID = @NodeID IF @InternalType = 'Person' AND @Predicate = 'http://vivoweb.org/ontology/core#webpage' BEGIN SELECT *, null as PublicationDate FROM [Profile.Data].[Person.Websites] WHERE PersonID = @InternalID ORDER BY SortOrder END ELSE IF @InternalType = 'Person' AND @Predicate = 'http://profiles.catalyst.harvard.edu/ontology/prns#mediaLinks' BEGIN SELECT * FROM [Profile.Data].[Person.MediaLinks] WHERE PersonID = @InternalID ORDER BY SortOrder END ELSE IF @InternalType = 'Group' AND @Predicate = 'http://vivoweb.org/ontology/core#webpage' BEGIN SELECT *, null as PublicationDate FROM [Profile.Data].[Group.Websites] WHERE GroupID = @InternalID ORDER BY SortOrder END ELSE IF @InternalType = 'Group' AND @Predicate = 'http://profiles.catalyst.harvard.edu/ontology/prns#mediaLinks' BEGIN SELECT * FROM [Profile.Data].[Group.MediaLinks] WHERE GroupID = @InternalID ORDER BY SortOrder END END GO
-- @testpoint:opengauss关键字sequence(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists explain_test cascade; --关键字不带引号-合理报错 create table explain_test(id int,name sequence); --关键字带双引号-合理报错 create table explain_test(id int,name "sequence"); --关键字带单引号-合理报错 create table explain_test(id int,name 'sequence'); --关键字带反引号-合理报错 create table explain_test(id int,name `sequence`);
<reponame>dineshkumarreddyr/rideoncabservice -- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 20, 2015 at 05:42 AM -- Server version: 5.5.39 -- PHP Version: 5.4.31 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: `roc_api` -- -- -------------------------------------------------------- -- -- Table structure for table `rocbookinginfo` -- CREATE TABLE IF NOT EXISTS `rocbookinginfo` ( `rocbookinginfoid` int(11) NOT NULL, `roctransactionid` varchar(100) NOT NULL, `rocservicetype` varchar(100) NOT NULL, `rocservicename` varchar(200) NOT NULL, `rocservicechargeperkm` int(11) DEFAULT NULL, `rocservicekm` int(11) DEFAULT NULL, `rocservicestimatedrs` int(11) DEFAULT NULL, `rocbookingfromlocation` mediumtext, `rocbookingtolocation` mediumtext, `rocserviceclass` varchar(100) NOT NULL, `rocuserid` int(11) NOT NULL, `createduser` varchar(45) DEFAULT 'Admin', `modifieduser` varchar(45) DEFAULT 'Admin', `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `rocbookingdatetime` datetime NOT NULL, `rocvendorid` int(11) NOT NULL, `rocbookingstatus` varchar(45) NOT NULL DEFAULT 'active' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=135 ; -- -- Dumping data for table `rocbookinginfo` -- INSERT INTO `rocbookinginfo` (`rocbookinginfoid`, `roctransactionid`, `rocservicetype`, `rocservicename`, `rocservicechargeperkm`, `rocservicekm`, `rocservicestimatedrs`, `rocbookingfromlocation`, `rocbookingtolocation`, `rocserviceclass`, `rocuserid`, `createduser`, `modifieduser`, `createddate`, `modifieddate`, `rocbookingdatetime`, `rocvendorid`, `rocbookingstatus`) VALUES (108, 'ROC20150801108', '1', '<NAME>', 15, 15, 225, 'Allwyn Colony, Hyderabad, Telangana, India', 'Gachibowli, Hyderabad, Telangana, India', 'Business', 81, 'Admin', 'Admin', '2015-08-01 11:35:34', '0000-00-00 00:00:00', '2015-08-01 21:00:00', 36, 'book'), (109, 'ROC20150801109', '1', '<NAME>', 15, 10, 150, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 11:51:54', '0000-00-00 00:00:00', '2015-08-01 20:00:00', 36, 'book'), (110, 'ROC20150801110', '1', '<NAME>', 15, 10, 150, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 11:52:17', '0000-00-00 00:00:00', '2015-08-01 20:00:00', 36, 'book'), (111, 'ROC20150801111', '1', '<NAME>', 15, 10, 150, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 11:52:24', '0000-00-00 00:00:00', '2015-08-01 20:00:00', 36, 'book'), (112, 'ROC20150801112', '1', '<NAME>', 15, 10, 150, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 11:52:47', '0000-00-00 00:00:00', '2015-08-01 20:00:00', 36, 'book'), (113, 'ROC20150801113', '1', '<NAME>', 15, 15, 225, '<NAME>, Hyderabad, Telangana, India', 'Gachibowli, Hyderabad, Telangana, India', 'Business', 81, 'Admin', 'Admin', '2015-08-01 11:55:51', '0000-00-00 00:00:00', '2015-08-01 23:30:00', 36, 'book'), (114, 'ROC20150801114', '1', 'Hyderabad Cabs', 14, 10, 140, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 11:59:32', '0000-00-00 00:00:00', '2015-08-01 20:00:00', 37, 'book'), (115, 'ROC20150801115', '1', 'Hyderabad Cabs', 14, 10, 140, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 11:59:40', '0000-00-00 00:00:00', '2015-08-01 20:00:00', 37, 'book'), (117, 'ROC20150801117', '1', '<NAME>', 15, 15, 225, '<NAME>ony, Hyderabad, Telangana, India', 'Gachibowli, Hyderabad, Telangana, India', 'Business', 81, 'Admin', 'Admin', '2015-08-01 12:00:12', '0000-00-00 00:00:00', '2015-08-01 23:00:00', 36, 'book'), (119, 'ROC20150801119', '1', 'Victor Travels', 15, 15, 225, '<NAME>, Hyderabad, Telangana, India', 'Gachibowli, Hyderabad, Telangana, India', 'Business', 81, 'Admin', 'Admin', '2015-08-01 12:01:12', '0000-00-00 00:00:00', '2015-08-01 23:00:00', 36, 'book'), (120, 'ROC20150801120', '1', 'Hyderabad Cabs', 14, 19, 266, 'Collab House, Hyderabad, Telangana, India', 'Gachibowli, Hyderabad, Telangana, India', 'Business', 84, 'Admin', 'Admin', '2015-08-01 12:09:13', '0000-00-00 00:00:00', '2015-08-03 01:30:00', 37, 'book'), (121, 'ROC20150801121', '1', 'Hyderabad Cabs', 12, 7, 84, 'Panjagutta, Hyderabad, Telangana, India', 'Abids, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 12:12:43', '0000-00-00 00:00:00', '2015-08-01 20:00:00', 37, 'book'), (122, 'ROC20150801122', '1', '<NAME>', 15, 3, 45, 'Hyderabad, Telangana, India', 'Kala Dera, Hyderabad, Telangana, India', 'Business', 85, 'Admin', 'Admin', '2015-08-01 12:14:54', '0000-00-00 00:00:00', '2015-08-01 20:30:00', 36, 'book'), (123, 'ROC20150801123', '1', '<NAME>', 15, 17, 255, 'Collab House, Hyderabad, Telangana, India', 'Gachibowli Bus Stop, Gachibowli Miyapur Road, Rajiv gandhi Nagar, Hyderabad, Telangana, India', 'Business', 86, 'Admin', 'Admin', '2015-08-01 12:16:55', '0000-00-00 00:00:00', '2015-08-02 00:30:00', 36, 'book'), (124, 'ROC20150801124', '1', '<NAME>', 15, 9, 120, 'Ameerpet, Hyderabad, Telangana, India', 'Hyderabad, Telangana, India', 'Business', 85, 'Admin', 'Admin', '2015-08-01 13:04:12', '0000-00-00 00:00:00', '2015-08-28 18:36:00', 36, 'book'), (125, 'ROC20150801125', '1', '<NAME>', 15, 10, 150, 'Punjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 87, 'Admin', 'Admin', '2015-08-01 14:02:45', '0000-00-00 00:00:00', '2015-08-20 19:33:00', 36, 'book'), (126, 'ROC20150801126', '1', '<NAME>', 15, 10, 150, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-01 15:04:46', '0000-00-00 00:00:00', '2015-08-01 23:30:00', 36, 'book'), (127, 'ROC20150802127', '2', 'Hyderabad Cabs', 11, 302, 3322, 'Gachibowli, Hyderabad, Telangana, India', 'Bellampalli, Telangana, India', 'Business', 88, 'Admin', 'Admin', '2015-08-02 06:40:48', '0000-00-00 00:00:00', '2015-08-02 14:30:00', 37, 'book'), (128, 'ROC20150804128', '1', '<NAME>', 15, 10, 150, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-04 17:39:32', '0000-00-00 00:00:00', '2015-08-06 02:00:00', 36, 'book'), (129, 'ROC20150808129', '5', 'Hyderabad Cabs', 10, 41, 410, 'Brigade Metropolis, Bengaluru, Karnataka, India', 'Kempegowda International Airport, Bengaluru, Karnataka, India', 'Business', 90, 'Admin', 'Admin', '2015-08-08 18:39:07', '0000-00-00 00:00:00', '2015-08-09 06:00:00', 37, 'book'), (130, 'ROC20150810130', '1', 'Hyderabad Cabs', 12, 10, 120, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 91, 'Admin', 'Admin', '2015-08-10 09:47:31', '0000-00-00 00:00:00', '2015-08-10 18:00:00', 37, 'book'), (131, 'ROC20150811131', '1', 'Hyderabad Cabs', 12, 49, 576, 'Greater Noida, Uttar Pradesh, India', 'Indira Gandhi International Airport, New Delhi, Delhi, India', 'Business', 92, 'Admin', 'Admin', '2015-08-11 09:56:52', '0000-00-00 00:00:00', '2015-08-12 15:27:00', 37, 'book'), (132, 'ROC20150813132', '1', '<NAME>', 100, 9, 800, '<NAME>, Hyderabad, Telangana, India', 'Hyderabad, Telangana, India', 'Business', 94, 'Admin', 'Admin', '2015-08-13 13:22:37', '0000-00-00 00:00:00', '2015-08-14 18:55:00', 36, 'book'), (133, 'ROC20150815133', '1', '<NAME>', 15, 13, 180, 'Film Nagar, Hyderabad, Telangana, India', 'Bhoiguda, Hyderabad, Telangana, India', 'Business', 96, 'Admin', 'Admin', '2015-08-15 12:23:37', '0000-00-00 00:00:00', '2015-08-15 21:00:00', 36, 'book'), (134, 'ROC20150817134', '1', '<NAME>', 15, 10, 150, 'Panjagutta, Hyderabad, Telangana, India', 'Madhapur, Hyderabad, Telangana, India', 'Business', 82, 'Admin', 'Admin', '2015-08-17 12:42:02', '0000-00-00 00:00:00', '2015-08-17 21:00:00', 36, 'book'); -- -------------------------------------------------------- -- -- Table structure for table `roccabservices` -- CREATE TABLE IF NOT EXISTS `roccabservices` ( `roccabservicesid` int(11) NOT NULL, `roccabservices` varchar(200) NOT NULL, `createddate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NULL DEFAULT NULL, `createduser` varchar(45) DEFAULT NULL, `modifieduser` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Dumping data for table `roccabservices` -- INSERT INTO `roccabservices` (`roccabservicesid`, `roccabservices`, `createddate`, `modifieddate`, `createduser`, `modifieduser`) VALUES (1, 'Point to Point', '2015-07-01 11:06:25', NULL, NULL, NULL), (2, 'Outstation', '2015-07-01 11:09:10', NULL, NULL, NULL), (3, 'Hourly Package', '2015-07-01 11:09:10', NULL, NULL, NULL), (5, 'Airport', '2015-07-04 15:25:08', NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `roccabtypes` -- CREATE TABLE IF NOT EXISTS `roccabtypes` ( `roccabtypeid` int(11) NOT NULL, `roccabtype` varchar(60) NOT NULL, `createdtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `createdby` int(11) NOT NULL, `updatedtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updatedby` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `roccabtypes` -- INSERT INTO `roccabtypes` (`roccabtypeid`, `roccabtype`, `createdtime`, `createdby`, `updatedtime`, `updatedby`) VALUES (1, 'Economic', '2015-07-01 21:19:49', 0, '0000-00-00 00:00:00', 0), (2, 'Premium', '2015-07-01 21:19:49', 0, '0000-00-00 00:00:00', 0); -- -------------------------------------------------------- -- -- Table structure for table `roccities` -- CREATE TABLE IF NOT EXISTS `roccities` ( `roccityid` int(11) NOT NULL, `roccityname` varchar(60) NOT NULL, `roccitystatus` enum('0','1') NOT NULL, `createtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updatedtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `roccities` -- INSERT INTO `roccities` (`roccityid`, `roccityname`, `roccitystatus`, `createtime`, `updatedtime`) VALUES (1, 'Hyderabad', '1', '2015-08-19 18:43:35', '0000-00-00 00:00:00'), (2, 'Warangal', '1', '2015-08-19 18:43:35', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `roccontactus` -- CREATE TABLE IF NOT EXISTS `roccontactus` ( `roccontactid` int(11) NOT NULL, `roccontactname` varchar(60) NOT NULL, `roccontactemail` varchar(255) NOT NULL, `roccontactmobile` varchar(20) NOT NULL, `roccontactsubject` text NOT NULL, `roccontactmsg` longtext NOT NULL, `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updateddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `roccontactip` varchar(60) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `roccontactus` -- INSERT INTO `roccontactus` (`roccontactid`, `roccontactname`, `roccontactemail`, `roccontactmobile`, `roccontactsubject`, `roccontactmsg`, `createddate`, `updateddate`, `roccontactip`) VALUES (1, 'uday', '<EMAIL>', '7569508595', 'Hi', 'Hello', '2015-08-19 18:39:38', '0000-00-00 00:00:00', ''), (2, 'uday', '<EMAIL>', '7569508595', 'Hi', 'Hello', '2015-08-19 18:51:21', '0000-00-00 00:00:00', ''); -- -------------------------------------------------------- -- -- Table structure for table `roccoupons` -- CREATE TABLE IF NOT EXISTS `roccoupons` ( `roccouponsid` int(11) NOT NULL, `roccouponcode` varchar(200) NOT NULL, `roccoupondescription` mediumtext, `roccoupontype` varchar(200) NOT NULL, `rocexpirydatetime` datetime NOT NULL, `createduser` varchar(45) DEFAULT 'Admin', `modifieduser` varchar(45) DEFAULT 'Admin', `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` varchar(45) DEFAULT 'Now()' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `rocusercoupons` -- CREATE TABLE IF NOT EXISTS `rocusercoupons` ( `rocusercouponsid` int(11) NOT NULL, `rocuserid` int(11) NOT NULL, `roccouponsid` int(11) NOT NULL, `roccouponstatus` varchar(45) DEFAULT 'active', `createduser` varchar(45) DEFAULT 'Admin', `modifieduser` varchar(45) DEFAULT 'Admin', `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` varchar(45) DEFAULT 'Now()' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `rocuserratings` -- CREATE TABLE IF NOT EXISTS `rocuserratings` ( `rocuserratingid` int(11) NOT NULL, `rocuserrating` int(11) NOT NULL DEFAULT '0', `rocusercomment` mediumtext, `rocvendorid` int(11) NOT NULL, `rocbookinginfoid` int(11) NOT NULL, `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `createduser` varchar(45) DEFAULT 'Admin', `modifieduser` varchar(45) DEFAULT 'Admin' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `rocusers` -- CREATE TABLE IF NOT EXISTS `rocusers` ( `rocuserid` int(11) NOT NULL, `rocuserfirstname` varchar(200) NOT NULL, `rocuserlastname` varchar(200) DEFAULT NULL, `rocuseremail` varchar(200) NOT NULL, `rocusercity` varchar(100) NOT NULL, `rocuserstate` varchar(100) NOT NULL, `rocusermobile` varchar(20) DEFAULT NULL, `createduser` varchar(45) DEFAULT 'Admin', `modifieduser` varchar(45) DEFAULT 'Admin', `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `rocuseraddress1` mediumtext, `rocuseraddress2` mediumtext, `rocuserpincode` int(11) DEFAULT NULL, `rocuserpassword` mediumtext, `rocuserstatus` enum('0','1') NOT NULL, `rocuserhash` varchar(255) NOT NULL DEFAULT '12345' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=99 ; -- -- Dumping data for table `rocusers` -- INSERT INTO `rocusers` (`rocuserid`, `rocuserfirstname`, `rocuserlastname`, `rocuseremail`, `rocusercity`, `rocuserstate`, `rocusermobile`, `createduser`, `modifieduser`, `createddate`, `modifieddate`, `rocuseraddress1`, `rocuseraddress2`, `rocuserpincode`, `rocuserpassword`, `rocuserstatus`, `rocuserhash`) VALUES (81, 'Dinesh', 'R', '<EMAIL>', 'Hyderbad', 'Telangana', '9491358436', 'Admin', 'Admin', '2015-08-01 11:32:02', '0000-00-00 00:00:00', '#406, Allwyn colony Phase 1', 'Kukatpally', 500032, 'ap04n6203', '0', '9ec5d321383209444b7d1f93cc7e805a377ffc15'), (82, 'sai', 'kiran', '<EMAIL>', 'Hyderabad', 'Telangana', '9849603022', 'Admin', 'Admin', '2015-08-01 11:50:03', '0000-00-00 00:00:00', 'panjagutta', 'somajiguda', 500082, 'saikiran', '0', '0fade7f498d15c8ae9344099e45c52125c6a3027'), (84, 'Srikar', 'A', '<EMAIL>', 'hyd', 'AP', '9293151370', 'Admin', 'Admin', '2015-08-01 12:03:54', '0000-00-00 00:00:00', NULL, NULL, NULL, 'srikarsriram', '1', '554db38c3fb9ff873978c4c3b2995b13e5f2e905'), (85, 'uday', 'kumar', '<EMAIL>', 'Hyderabad', 'Andhra Pradesh', '7569508595', 'Admin', 'Admin', '2015-08-01 12:14:47', '0000-00-00 00:00:00', 'hyd', 'hyd2', 533308, '18211', '0', 'f91cf3252db4b17e6ec4105566802863eb422b53'), (86, 'Raghuram', 'Korukonda', '<EMAIL>', 'Hyderbad', 'Telangana', '9030864528', 'Admin', 'Admin', '2015-08-01 12:15:38', '0000-00-00 00:00:00', 'Hyderabad', '47/41,PUNJABI BAGH WEST, New Delhi', 500032, '69834', '0', 'ba00c8c5c166ec9d48c83755152fdababdecdbce'), (87, 'Shravan', 'Kasagoni', '<EMAIL>', 'Hyderabad', 'Telangana', '8008003554', 'Admin', 'Admin', '2015-08-01 14:02:34', '0000-00-00 00:00:00', 'Medipatnam', 'Kukatpally', 500082, '84075', '0', 'da853eac4fc55faca5a7f58cabaa7c2dc8325a39'), (88, 'Abhilash', 'Inumella', '<EMAIL>', 'Hyderabad', 'And<NAME>adesh', '9959337100', 'Admin', 'Admin', '2015-08-02 06:40:41', '0000-00-00 00:00:00', 'IIIT Hyderabad', NULL, 5000032, '63967', '0', 'e8e8b8497484b6996e53e5558fe7bcbbb53e526e'), (89, 'swetha', 'parameshwar', '<EMAIL>', 'hyd', 'AP', '9742149590', 'Admin', 'Admin', '2015-08-05 11:57:01', '0000-00-00 00:00:00', NULL, NULL, NULL, '05c41a0516#', '1', 'cea28390559ff7287cc939b120e15f9bf532d66c'), (90, 'a', 'a', '<EMAIL>', 'Hyderabad', 'Andhra Pradesh', '1', 'Admin', 'Admin', '2015-08-08 18:39:01', '0000-00-00 00:00:00', 'a', 'a', 560048, '28735', '0', '871643fb1b4603ed7a4914952cd6216adc57877c'), (91, 'RJendra', 'Prasad', '<EMAIL>', 'Hyderabad', 'Telangana', '9246896400', 'Admin', 'Admin', '2015-08-10 09:47:20', '0000-00-00 00:00:00', 'Aescfjj', 'Skjsn', 50082, '42322', '0', 'fdf52248e6118442f6d8e8acb3a3db3605ab795e'), (92, 'test', 'more test', '<EMAIL>', 'Hyderabad', 'New Delhi', '9939912121', 'Admin', 'Admin', '2015-08-11 09:56:44', '0000-00-00 00:00:00', 'Delhi', 'Delhi', 110016, '71979', '0', '8f0f0f2f451d7ce33b5d68d483a30882fd7bb533'), (93, '<NAME>', 'Gudala', '<EMAIL>', 'Hyderbad', 'Telangana', '8977326793', 'Admin', 'Admin', '2015-08-11 10:16:18', '0000-00-00 00:00:00', 'goutham nagar', 'mjg', 500081, '47456', '0', 'b593a6011667d46ff9c78f63a0a4ed2db9db829e'), (94, 'Rahul', 'Jain', '<EMAIL>', 'Warangal', 'Telangana', '7794808858', 'Admin', 'Admin', '2015-08-13 13:22:26', '0000-00-00 00:00:00', 'NIT Warangal Gate', NULL, 506004, '41830', '0', '59e6ccab4816f96e7473aab492cbbda0fdfbdacd'), (95, 'Santosh', 'Viswanatham', '<EMAIL>', 'Hyderbad', 'Telangana', '8885430199', 'Admin', 'Admin', '2015-08-15 12:15:54', '0000-00-00 00:00:00', '1-7-131/39', 'Ramnagar', 500020, 'santoshv225', '1', '531158fdebc014cc7cdf9f53304e9ed70279d7d0'), (96, 'Akshay', 'Tiwari', '<EMAIL>', 'Hyderabad', 'Telangana', '8790918151', 'Admin', 'Admin', '2015-08-15 12:22:52', '0000-00-00 00:00:00', 'bhoiguda', NULL, 500003, '23989', '1', 'b629ef67adc021528360a1a3dc263e9cede89f9d'), (97, 's', 'v', '<EMAIL>', 'hyd', 'AP', '7894561234', 'Admin', 'Admin', '2015-08-15 15:22:27', '0000-00-00 00:00:00', NULL, NULL, NULL, '123456789', '1', '65bd68ce1ea49b2f45c3b51225b517402c61bf22'), (98, 'MOTA', 'LOTS', '<EMAIL>', 'Hyderabad', 'Telangana', '9688989898', 'Admin', 'Admin', '2015-08-17 19:34:19', '0000-00-00 00:00:00', 'da', 'adsad', 700189, '99517', '0', 'b4b45b6be6f1b02ea91f697172f0a4d15382179f'); -- -------------------------------------------------------- -- -- Table structure for table `rocvendorcabmodel` -- CREATE TABLE IF NOT EXISTS `rocvendorcabmodel` ( `rocvendorcabmodelid` int(11) NOT NULL, `rocvendorcabtype` varchar(100) NOT NULL, `rocvendorcabmodel` varchar(100) NOT NULL, `rocvendorid` int(11) NOT NULL, `createddate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NULL DEFAULT NULL, `createduser` varchar(100) DEFAULT NULL, `modifieduser` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `rocvendorcharges` -- CREATE TABLE IF NOT EXISTS `rocvendorcharges` ( `rocvendorchargeid` int(11) NOT NULL, `roccabtype` int(11) NOT NULL, `roccabmodelid` varchar(200) NOT NULL, `rocchargeperkm` int(11) NOT NULL, `rocchargeunitsperhour` int(11) NOT NULL, `roccabservicesid` int(11) NOT NULL, `rocvendorid` int(11) NOT NULL, `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `createduser` varchar(45) DEFAULT 'Admin', `modifieduser` varchar(45) DEFAULT 'Admin' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=69 ; -- -- Dumping data for table `rocvendorcharges` -- INSERT INTO `rocvendorcharges` (`rocvendorchargeid`, `roccabtype`, `roccabmodelid`, `rocchargeperkm`, `rocchargeunitsperhour`, `roccabservicesid`, `rocvendorid`, `createddate`, `modifieddate`, `createduser`, `modifieduser`) VALUES (23, 1, 'Indica', 15, 0, 1, 36, '2015-08-01 11:21:50', '0000-00-00 00:00:00', 'Admin', 'Admin'), (24, 1, 'Verito', 20, 0, 1, 36, '2015-08-01 11:22:02', '0000-00-00 00:00:00', 'Admin', 'Admin'), (25, 1, 'Etios', 21, 0, 1, 36, '2015-08-01 11:22:15', '0000-00-00 00:00:00', 'Admin', 'Admin'), (26, 2, 'Audi', 100, 0, 1, 36, '2015-08-01 11:22:44', '0000-00-00 00:00:00', 'Admin', 'Admin'), (27, 2, 'Innova', 30, 0, 1, 36, '2015-08-01 11:22:58', '0000-00-00 00:00:00', 'Admin', 'Admin'), (28, 2, 'Tavera', 28, 0, 1, 36, '2015-08-01 11:23:14', '0000-00-00 00:00:00', 'Admin', 'Admin'), (29, 1, 'Indica', 14, 0, 2, 36, '2015-08-01 11:23:37', '0000-00-00 00:00:00', 'Admin', 'Admin'), (30, 2, 'Innova', 200, 1, 3, 36, '2015-08-01 11:23:58', '0000-00-00 00:00:00', 'Admin', 'Admin'), (31, 1, 'Indica', 12, 0, 1, 37, '2015-08-01 11:39:02', '0000-00-00 00:00:00', 'Admin', 'Admin'), (32, 1, 'Verito', 14, 0, 1, 37, '2015-08-01 11:42:54', '0000-00-00 00:00:00', 'Admin', 'Admin'), (33, 1, 'Indica', 100, 1, 3, 37, '2015-08-01 11:43:37', '0000-00-00 00:00:00', 'Admin', 'Admin'), (34, 1, 'Indica', 400, 4, 3, 37, '2015-08-01 11:44:29', '0000-00-00 00:00:00', 'Admin', 'Admin'), (35, 1, 'Indica', 11, 0, 2, 37, '2015-08-01 11:44:48', '0000-00-00 00:00:00', 'Admin', 'Admin'), (36, 1, 'Indica', 10, 0, 5, 37, '2015-08-01 11:45:07', '0000-00-00 00:00:00', 'Admin', 'Admin'), (37, 2, 'Innova', 16, 0, 1, 37, '2015-08-01 11:45:23', '0000-00-00 00:00:00', 'Admin', 'Admin'), (38, 2, 'Innova', 17, 0, 2, 37, '2015-08-01 11:45:44', '0000-00-00 00:00:00', 'Admin', 'Admin'), (39, 2, 'Innovation', 11, 0, 5, 37, '2015-08-01 11:46:14', '0000-00-00 00:00:00', 'Admin', 'Admin'), (40, 1, 'Indica', 1000, 4, 3, 40, '2015-08-15 14:22:53', '0000-00-00 00:00:00', 'Admin', 'Admin'), (41, 1, '<NAME>', 1100, 4, 3, 40, '2015-08-15 14:25:40', '0000-00-00 00:00:00', 'Admin', 'Admin'), (42, 1, 'Verito', 1100, 4, 3, 40, '2015-08-15 14:26:11', '0000-00-00 00:00:00', 'Admin', 'Admin'), (43, 1, 'Etios', 1100, 4, 3, 40, '2015-08-15 14:26:29', '0000-00-00 00:00:00', 'Admin', 'Admin'), (44, 1, 'Manza', 1100, 4, 3, 40, '2015-08-15 14:27:00', '0000-00-00 00:00:00', 'Admin', 'Admin'), (45, 2, 'Honda City', 1350, 4, 3, 40, '2015-08-15 14:28:02', '0000-00-00 00:00:00', 'Admin', 'Admin'), (46, 2, 'Sunny', 1350, 4, 3, 40, '2015-08-15 14:28:22', '0000-00-00 00:00:00', 'Admin', 'Admin'), (47, 2, 'Innova', 1400, 4, 3, 40, '2015-08-15 14:28:43', '0000-00-00 00:00:00', 'Admin', 'Admin'), (48, 1, 'Indigo', 1600, 8, 3, 40, '2015-08-15 14:31:37', '0000-00-00 00:00:00', 'Admin', 'Admin'), (49, 1, '<NAME>', 1800, 8, 3, 40, '2015-08-15 14:33:23', '0000-00-00 00:00:00', 'Admin', 'Admin'), (50, 1, 'Verito', 1800, 8, 3, 40, '2015-08-15 14:33:52', '0000-00-00 00:00:00', 'Admin', 'Admin'), (51, 1, 'Etios', 1800, 8, 3, 40, '2015-08-15 14:34:12', '0000-00-00 00:00:00', 'Admin', 'Admin'), (52, 1, 'Manza', 1800, 8, 3, 40, '2015-08-15 14:34:36', '0000-00-00 00:00:00', 'Admin', 'Admin'), (53, 2, 'Honda City', 2350, 8, 3, 40, '2015-08-15 14:35:49', '0000-00-00 00:00:00', 'Admin', 'Admin'), (54, 2, 'Sunny', 2350, 8, 3, 40, '2015-08-15 14:36:13', '0000-00-00 00:00:00', 'Admin', 'Admin'), (55, 2, 'Innova', 2500, 8, 3, 40, '2015-08-15 14:36:34', '0000-00-00 00:00:00', 'Admin', 'Admin'), (56, 2, 'Corolla', 3000, 8, 3, 40, '2015-08-15 14:37:01', '0000-00-00 00:00:00', 'Admin', 'Admin'), (57, 2, 'Altis', 3500, 8, 3, 40, '2015-08-15 14:37:26', '0000-00-00 00:00:00', 'Admin', 'Admin'), (58, 2, 'Camry', 6500, 8, 3, 40, '2015-08-15 14:38:00', '0000-00-00 00:00:00', 'Admin', 'Admin'), (59, 2, 'Accord', 6500, 8, 3, 40, '2015-08-15 14:38:35', '0000-00-00 00:00:00', 'Admin', 'Admin'), (60, 2, 'Volvo S60', 8500, 8, 3, 40, '2015-08-15 14:40:38', '0000-00-00 00:00:00', 'Admin', 'Admin'), (61, 2, 'Jaguar XJL', 19000, 8, 3, 40, '2015-08-15 14:41:19', '0000-00-00 00:00:00', 'Admin', 'Admin'), (62, 2, 'BMW 730LD', 16000, 8, 3, 40, '2015-08-15 14:41:52', '0000-00-00 00:00:00', 'Admin', 'Admin'), (63, 2, '<NAME>', 13500, 8, 3, 40, '2015-08-15 14:46:46', '0000-00-00 00:00:00', 'Admin', 'Admin'), (64, 2, '<NAME>', 13500, 8, 3, 40, '2015-08-15 14:47:24', '0000-00-00 00:00:00', 'Admin', 'Admin'), (65, 2, '<NAME>', 12000, 8, 3, 40, '2015-08-15 14:48:25', '0000-00-00 00:00:00', 'Admin', 'Admin'), (66, 2, 'Volvo XC 60', 12000, 8, 3, 40, '2015-08-15 14:48:56', '0000-00-00 00:00:00', 'Admin', 'Admin'), (67, 2, '<NAME>', 10000, 8, 3, 40, '2015-08-15 14:49:46', '0000-00-00 00:00:00', 'Admin', 'Admin'), (68, 2, 'BMW 5 Series', 10000, 8, 3, 40, '2015-08-15 14:50:08', '0000-00-00 00:00:00', 'Admin', 'Admin'); -- -------------------------------------------------------- -- -- Table structure for table `rocvendors` -- CREATE TABLE IF NOT EXISTS `rocvendors` ( `rocvendorid` int(11) NOT NULL, `rocvendorname` varchar(200) NOT NULL, `rocvendoraddress` mediumtext NOT NULL, `rocvendoremail` varchar(200) NOT NULL, `rocvendornumber1` varchar(20) NOT NULL, `rocvendornumber2` varchar(20) DEFAULT NULL, `rocvendorusername` varchar(200) NOT NULL, `rocvendorpassword` mediumtext NOT NULL, `rocvendorcontactperson` varchar(200) NOT NULL, `rocvendorlogo` mediumtext, `rocvendorexp` int(11) NOT NULL, `rocvendornocif` int(11) NOT NULL, `rocvendorfname` varchar(60) NOT NULL, `rocvendorfemail` varchar(225) NOT NULL, `rocvendorslocation` varchar(60) NOT NULL, `rocvendortlproof` varchar(60) NOT NULL, `rocvendortcards` varchar(60) NOT NULL, `rocvendortarrif` varchar(225) NOT NULL, `rocvendorlandline` varchar(20) NOT NULL, `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `createduser` varchar(45) DEFAULT 'Admin', `modifieduser` varchar(45) DEFAULT 'Admin', `rocvendorrating` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=42 ; -- -- Dumping data for table `rocvendors` -- INSERT INTO `rocvendors` (`rocvendorid`, `rocvendorname`, `rocvendoraddress`, `rocvendoremail`, `rocvendornumber1`, `rocvendornumber2`, `rocvendorusername`, `rocvendorpassword`, `rocvendorcontactperson`, `rocvendorlogo`, `rocvendorexp`, `rocvendornocif`, `rocvendorfname`, `rocvendorfemail`, `rocvendorslocation`, `rocvendortlproof`, `rocvendortcards`, `rocvendortarrif`, `rocvendorlandline`, `createddate`, `modifieddate`, `createduser`, `modifieduser`, `rocvendorrating`) VALUES (35, 'uday', '', '<EMAIL>', '', '', '<EMAIL>', '123456', '', '', 0, 0, '', '', '', '', '', '', '7569508595', '2015-08-01 11:15:25', '0000-00-00 00:00:00', 'Admin', 'Admin', NULL), (36, '<NAME>', 'Allwyn Colony Phase II', '<EMAIL>', '0406545434', '8143243040', '<EMAIL>', 'Password', '<NAME>', '', 10, 30, '<NAME>', '<EMAIL>', '<NAME>', '-NA-', '-NA-', '-NA-', '9738134646', '2015-08-01 11:16:50', '0000-00-00 00:00:00', 'Admin', 'Admin', NULL), (37, 'Hyderabad Cabs', 'Panjagutta ,Hyderabad', '<EMAIL>', '8801447543', '9849603022', '<EMAIL>', 'saikiran', 'Gopi', '', 2, 10, 'Gopi', '<EMAIL>', 'Panjagutta', '-NA-', '-NA-', '-NA-', '9849603022', '2015-08-01 11:36:25', '0000-00-00 00:00:00', 'Admin', 'Admin', NULL), (38, '<NAME> Alagundula', '', '<EMAIL>', '', '', '<EMAIL>', 'saikiran', '', '', 0, 0, '', '', '', '', '', '', '9849603022', '2015-08-01 11:47:35', '0000-00-00 00:00:00', 'Admin', 'Admin', NULL), (39, '<NAME>', '', '<EMAIL>', '', '', '<EMAIL>', 'sshhdd', '', '', 0, 0, '', '', '', '', '', '', '9230178888', '2015-08-14 13:52:39', '0000-00-00 00:00:00', 'Admin', 'Admin', NULL), (40, 'MM Travels', 'Somajiguda', '<EMAIL>', '984902477', '9849070405', '<EMAIL>', 'rideoncab', 'Moin', '', 10, 20, 'Moin', '<EMAIL>', 'Somajiguda', '-NA-', '-NA-', '-NA-', '9849070405', '2015-08-15 14:11:13', '0000-00-00 00:00:00', 'Admin', 'Admin', NULL), (41, 'santosh', '', '<EMAIL>', '', '', '<EMAIL>', 'santoshv225', '', '', 0, 0, '', '', '', '', '', '', '8885430199', '2015-08-16 06:02:43', '0000-00-00 00:00:00', 'Admin', 'Admin', NULL); -- -------------------------------------------------------- -- -- Table structure for table `rocvendorterms` -- CREATE TABLE IF NOT EXISTS `rocvendorterms` ( `rocvendortermsid` int(11) NOT NULL, `rocvendorid` int(11) NOT NULL, `roccabmodelid` varchar(255) NOT NULL, `rocvendorterms` text NOT NULL, `createddate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `modifieddate` timestamp NULL DEFAULT NULL, `createduser` varchar(45) DEFAULT NULL, `modifieduser` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ; -- -- Dumping data for table `rocvendorterms` -- INSERT INTO `rocvendorterms` (`rocvendortermsid`, `rocvendorid`, `roccabmodelid`, `rocvendorterms`, `createddate`, `modifieddate`, `createduser`, `modifieduser`) VALUES (20, 36, 'Indica', 'Waiting charges applicable', '2015-08-01 11:25:29', NULL, NULL, NULL), (21, 36, 'Indica', 'No cancellation', '2015-08-01 11:29:07', NULL, NULL, NULL), (22, 36, 'Indica', 'A/C Extra charges', '2015-08-01 11:29:26', NULL, NULL, NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `rocbookinginfo` -- ALTER TABLE `rocbookinginfo` ADD PRIMARY KEY (`rocbookinginfoid`), ADD UNIQUE KEY `roctransactionid_UNIQUE` (`roctransactionid`), ADD KEY `bookinginfo_idx` (`rocuserid`), ADD KEY `vendorinfo_idx` (`rocvendorid`); -- -- Indexes for table `roccabservices` -- ALTER TABLE `roccabservices` ADD PRIMARY KEY (`roccabservicesid`); -- -- Indexes for table `roccabtypes` -- ALTER TABLE `roccabtypes` ADD PRIMARY KEY (`roccabtypeid`); -- -- Indexes for table `roccities` -- ALTER TABLE `roccities` ADD PRIMARY KEY (`roccityid`); -- -- Indexes for table `roccontactus` -- ALTER TABLE `roccontactus` ADD PRIMARY KEY (`roccontactid`); -- -- Indexes for table `roccoupons` -- ALTER TABLE `roccoupons` ADD PRIMARY KEY (`roccouponsid`); -- -- Indexes for table `rocusercoupons` -- ALTER TABLE `rocusercoupons` ADD PRIMARY KEY (`rocusercouponsid`), ADD UNIQUE KEY `rocusercouponsid_UNIQUE` (`rocusercouponsid`), ADD KEY `couponinfo_idx` (`roccouponsid`), ADD KEY `usercouponsinfo_idx` (`rocuserid`); -- -- Indexes for table `rocuserratings` -- ALTER TABLE `rocuserratings` ADD PRIMARY KEY (`rocuserratingid`), ADD UNIQUE KEY `rocuserratingid_UNIQUE` (`rocuserratingid`), ADD KEY `ratingvendor_idx` (`rocvendorid`), ADD KEY `ratingbooking_idx` (`rocbookinginfoid`); -- -- Indexes for table `rocusers` -- ALTER TABLE `rocusers` ADD PRIMARY KEY (`rocuserid`); -- -- Indexes for table `rocvendorcabmodel` -- ALTER TABLE `rocvendorcabmodel` ADD PRIMARY KEY (`rocvendorcabmodelid`), ADD KEY `rocvendorid` (`rocvendorid`); -- -- Indexes for table `rocvendorcharges` -- ALTER TABLE `rocvendorcharges` ADD PRIMARY KEY (`rocvendorchargeid`), ADD KEY `vendorid_idx` (`rocvendorid`); -- -- Indexes for table `rocvendors` -- ALTER TABLE `rocvendors` ADD PRIMARY KEY (`rocvendorid`); -- -- Indexes for table `rocvendorterms` -- ALTER TABLE `rocvendorterms` ADD PRIMARY KEY (`rocvendortermsid`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `rocbookinginfo` -- ALTER TABLE `rocbookinginfo` MODIFY `rocbookinginfoid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=135; -- -- AUTO_INCREMENT for table `roccabservices` -- ALTER TABLE `roccabservices` MODIFY `roccabservicesid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `roccabtypes` -- ALTER TABLE `roccabtypes` MODIFY `roccabtypeid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `roccities` -- ALTER TABLE `roccities` MODIFY `roccityid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `roccontactus` -- ALTER TABLE `roccontactus` MODIFY `roccontactid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `roccoupons` -- ALTER TABLE `roccoupons` MODIFY `roccouponsid` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `rocusercoupons` -- ALTER TABLE `rocusercoupons` MODIFY `rocusercouponsid` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `rocuserratings` -- ALTER TABLE `rocuserratings` MODIFY `rocuserratingid` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `rocusers` -- ALTER TABLE `rocusers` MODIFY `rocuserid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=99; -- -- AUTO_INCREMENT for table `rocvendorcabmodel` -- ALTER TABLE `rocvendorcabmodel` MODIFY `rocvendorcabmodelid` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `rocvendorcharges` -- ALTER TABLE `rocvendorcharges` MODIFY `rocvendorchargeid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=69; -- -- AUTO_INCREMENT for table `rocvendors` -- ALTER TABLE `rocvendors` MODIFY `rocvendorid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=42; -- -- AUTO_INCREMENT for table `rocvendorterms` -- ALTER TABLE `rocvendorterms` MODIFY `rocvendortermsid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=23; -- -- Constraints for dumped tables -- -- -- Constraints for table `rocbookinginfo` -- ALTER TABLE `rocbookinginfo` ADD CONSTRAINT `bookinginfo` FOREIGN KEY (`rocuserid`) REFERENCES `rocusers` (`rocuserid`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `vendorinfo` FOREIGN KEY (`rocvendorid`) REFERENCES `rocvendors` (`rocvendorid`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `rocusercoupons` -- ALTER TABLE `rocusercoupons` ADD CONSTRAINT `couponinfo` FOREIGN KEY (`roccouponsid`) REFERENCES `roccoupons` (`roccouponsid`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `usercouponsinfo` FOREIGN KEY (`rocuserid`) REFERENCES `rocusers` (`rocuserid`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `rocuserratings` -- ALTER TABLE `rocuserratings` ADD CONSTRAINT `ratingbooking` FOREIGN KEY (`rocbookinginfoid`) REFERENCES `rocbookinginfo` (`rocbookinginfoid`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `ratingvendor` FOREIGN KEY (`rocvendorid`) REFERENCES `rocvendors` (`rocvendorid`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `rocvendorcabmodel` -- ALTER TABLE `rocvendorcabmodel` ADD CONSTRAINT `rocvendorid` FOREIGN KEY (`rocvendorid`) REFERENCES `rocvendors` (`rocvendorid`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `rocvendorcharges` -- ALTER TABLE `rocvendorcharges` ADD CONSTRAINT `vendorid` FOREIGN KEY (`rocvendorid`) REFERENCES `rocvendors` (`rocvendorid`) ON DELETE NO ACTION ON UPDATE NO ACTION; /*!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 */;
<reponame>DeineAgenturUG/locale-list<gh_stars>0 CREATE TABLE list (id VARCHAR(64) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES ('af', 'Afrikaans'); INSERT INTO "list" ("id", "value") VALUES ('af_ZA', 'Afrikaans (Afrika Selatan)'); INSERT INTO "list" ("id", "value") VALUES ('af_NA', 'Afrikaans (Namibia)'); INSERT INTO "list" ("id", "value") VALUES ('ak', 'Akan'); INSERT INTO "list" ("id", "value") VALUES ('ak_GH', 'Akan (Ghana)'); INSERT INTO "list" ("id", "value") VALUES ('sq', 'Albania'); INSERT INTO "list" ("id", "value") VALUES ('sq_AL', 'Albania (Albania)'); INSERT INTO "list" ("id", "value") VALUES ('sq_XK', 'Albania (Kosovo)'); INSERT INTO "list" ("id", "value") VALUES ('sq_MK', 'Albania (Makedonia)'); INSERT INTO "list" ("id", "value") VALUES ('am', 'Amharik'); INSERT INTO "list" ("id", "value") VALUES ('am_ET', 'Amharik (Etiopia)'); INSERT INTO "list" ("id", "value") VALUES ('ar', 'Arab'); INSERT INTO "list" ("id", "value") VALUES ('ar_DZ', 'Arab (Aljazair)'); INSERT INTO "list" ("id", "value") VALUES ('ar_SA', 'Arab (Arab Saudi)'); INSERT INTO "list" ("id", "value") VALUES ('ar_BH', 'Arab (Bahrain)'); INSERT INTO "list" ("id", "value") VALUES ('ar_TD', 'Arab (Cad)'); INSERT INTO "list" ("id", "value") VALUES ('ar_ER', 'Arab (Eritrea)'); INSERT INTO "list" ("id", "value") VALUES ('ar_IQ', 'Arab (Irak)'); INSERT INTO "list" ("id", "value") VALUES ('ar_IL', 'Arab (Israel)'); INSERT INTO "list" ("id", "value") VALUES ('ar_DJ', 'Arab (Jibuti)'); INSERT INTO "list" ("id", "value") VALUES ('ar_KM', 'Arab (Komoro)'); INSERT INTO "list" ("id", "value") VALUES ('ar_KW', 'Arab (Kuwait)'); INSERT INTO "list" ("id", "value") VALUES ('ar_LB', 'Arab (Lebanon)'); INSERT INTO "list" ("id", "value") VALUES ('ar_LY', 'Arab (Libia)'); INSERT INTO "list" ("id", "value") VALUES ('ar_MA', 'Arab (Maroko)'); INSERT INTO "list" ("id", "value") VALUES ('ar_MR', 'Arab (Mauritania)'); INSERT INTO "list" ("id", "value") VALUES ('ar_EG', 'Arab (Mesir)'); INSERT INTO "list" ("id", "value") VALUES ('ar_OM', 'Arab (Oman)'); INSERT INTO "list" ("id", "value") VALUES ('ar_QA', 'Arab (Qatar)'); INSERT INTO "list" ("id", "value") VALUES ('ar_EH', 'Arab (Sahara Barat)'); INSERT INTO "list" ("id", "value") VALUES ('ar_SO', 'Arab (Somalia)'); INSERT INTO "list" ("id", "value") VALUES ('ar_SS', 'Arab (Sudan Selatan)'); INSERT INTO "list" ("id", "value") VALUES ('ar_SD', 'Arab (Sudan)'); INSERT INTO "list" ("id", "value") VALUES ('ar_SY', 'Arab (Suriah)'); INSERT INTO "list" ("id", "value") VALUES ('ar_TN', 'Arab (Tunisia)'); INSERT INTO "list" ("id", "value") VALUES ('ar_AE', 'Arab (Uni Emirat Arab)'); INSERT INTO "list" ("id", "value") VALUES ('ar_PS', 'Arab (Wilayah Palestina)'); INSERT INTO "list" ("id", "value") VALUES ('ar_YE', 'Arab (Yaman)'); INSERT INTO "list" ("id", "value") VALUES ('ar_JO', 'Arab (Yordania)'); INSERT INTO "list" ("id", "value") VALUES ('hy', 'Armenia'); INSERT INTO "list" ("id", "value") VALUES ('hy_AM', 'Armenia (Armenia)'); INSERT INTO "list" ("id", "value") VALUES ('as', 'Assam'); INSERT INTO "list" ("id", "value") VALUES ('as_IN', 'Assam (India)'); INSERT INTO "list" ("id", "value") VALUES ('az', 'Azerbaijani'); INSERT INTO "list" ("id", "value") VALUES ('az_AZ', 'Azerbaijani (Azerbaijan)'); INSERT INTO "list" ("id", "value") VALUES ('az_Latn_AZ', 'Azerbaijani (Latin, Azerbaijan)'); INSERT INTO "list" ("id", "value") VALUES ('az_Latn', 'Azerbaijani (Latin)'); INSERT INTO "list" ("id", "value") VALUES ('az_Cyrl_AZ', 'Azerbaijani (Sirilik, Azerbaijan)'); INSERT INTO "list" ("id", "value") VALUES ('az_Cyrl', 'Azerbaijani (Sirilik)'); INSERT INTO "list" ("id", "value") VALUES ('bm', 'Bambara'); INSERT INTO "list" ("id", "value") VALUES ('bm_ML', 'Bambara (Mali)'); INSERT INTO "list" ("id", "value") VALUES ('eu', 'Basque'); INSERT INTO "list" ("id", "value") VALUES ('eu_ES', 'Basque (Spanyol)'); INSERT INTO "list" ("id", "value") VALUES ('nl', 'Belanda'); INSERT INTO "list" ("id", "value") VALUES ('nl_AW', 'Belanda (Aruba)'); INSERT INTO "list" ("id", "value") VALUES ('nl_NL', 'Belanda (Belanda)'); INSERT INTO "list" ("id", "value") VALUES ('nl_BE', 'Belanda (Belgia)'); INSERT INTO "list" ("id", "value") VALUES ('nl_CW', 'Belanda (Curaçao)'); INSERT INTO "list" ("id", "value") VALUES ('nl_BQ', 'Belanda (Karibia Belanda)'); INSERT INTO "list" ("id", "value") VALUES ('nl_SX', 'Belanda (Sint Maarten)'); INSERT INTO "list" ("id", "value") VALUES ('nl_SR', 'Belanda (Suriname)'); INSERT INTO "list" ("id", "value") VALUES ('be', 'Belarusia'); INSERT INTO "list" ("id", "value") VALUES ('be_BY', 'Belarusia (Belarus)'); INSERT INTO "list" ("id", "value") VALUES ('bn', 'Bengali'); INSERT INTO "list" ("id", "value") VALUES ('bn_BD', 'Bengali (Bangladesh)'); INSERT INTO "list" ("id", "value") VALUES ('bn_IN', 'Bengali (India)'); INSERT INTO "list" ("id", "value") VALUES ('nb', 'Bokmål Norwegia'); INSERT INTO "list" ("id", "value") VALUES ('nb_SJ', 'Bokmål Norwegia (Kepulauan Svalbard dan Jan Mayen)'); INSERT INTO "list" ("id", "value") VALUES ('nb_NO', 'Bokmål Norwegia (Norwegia)'); INSERT INTO "list" ("id", "value") VALUES ('bs', 'Bosnia'); INSERT INTO "list" ("id", "value") VALUES ('bs_BA', 'Bosnia (Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('bs_Latn_BA', 'Bosnia (Latin, Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('bs_Latn', 'Bosnia (Latin)'); INSERT INTO "list" ("id", "value") VALUES ('bs_Cyrl_BA', 'Bosnia (Sirilik, Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('bs_Cyrl', 'Bosnia (Sirilik)'); INSERT INTO "list" ("id", "value") VALUES ('br', 'Breton'); INSERT INTO "list" ("id", "value") VALUES ('br_FR', 'Breton (Prancis)'); INSERT INTO "list" ("id", "value") VALUES ('bg', 'Bulgaria'); INSERT INTO "list" ("id", "value") VALUES ('bg_BG', 'Bulgaria (Bulgaria)'); INSERT INTO "list" ("id", "value") VALUES ('my', 'Burma'); INSERT INTO "list" ("id", "value") VALUES ('my_MM', 'Burma (Myanmar (Burma))'); INSERT INTO "list" ("id", "value") VALUES ('ce', 'Chechen'); INSERT INTO "list" ("id", "value") VALUES ('ce_RU', 'Chechen (Rusia)'); INSERT INTO "list" ("id", "value") VALUES ('cs', 'Cheska'); INSERT INTO "list" ("id", "value") VALUES ('cs_CZ', 'Cheska (Cheska)'); INSERT INTO "list" ("id", "value") VALUES ('da', 'Dansk'); INSERT INTO "list" ("id", "value") VALUES ('da_DK', 'Dansk (Denmark)'); INSERT INTO "list" ("id", "value") VALUES ('da_GL', 'Dansk (Grinlandia)'); INSERT INTO "list" ("id", "value") VALUES ('dz', 'Dzongkha'); INSERT INTO "list" ("id", "value") VALUES ('dz_BT', 'Dzongkha (Bhutan)'); INSERT INTO "list" ("id", "value") VALUES ('eo', 'Esperanto'); INSERT INTO "list" ("id", "value") VALUES ('et', 'Esti'); INSERT INTO "list" ("id", "value") VALUES ('et_EE', 'Esti (Estonia)'); INSERT INTO "list" ("id", "value") VALUES ('ee', 'Ewe'); INSERT INTO "list" ("id", "value") VALUES ('ee_GH', 'Ewe (Ghana)'); INSERT INTO "list" ("id", "value") VALUES ('ee_TG', 'Ewe (Togo)'); INSERT INTO "list" ("id", "value") VALUES ('fo', 'Faroe'); INSERT INTO "list" ("id", "value") VALUES ('fo_DK', 'Faroe (Denmark)'); INSERT INTO "list" ("id", "value") VALUES ('fo_FO', 'Faroe (Kepulauan Faroe)'); INSERT INTO "list" ("id", "value") VALUES ('fy', 'Frisia Barat'); INSERT INTO "list" ("id", "value") VALUES ('fy_NL', 'Frisia Barat (Belanda)'); INSERT INTO "list" ("id", "value") VALUES ('ff', 'Fula'); INSERT INTO "list" ("id", "value") VALUES ('ff_GN', 'Fula (Guinea)'); INSERT INTO "list" ("id", "value") VALUES ('ff_CM', 'Fula (Kamerun)'); INSERT INTO "list" ("id", "value") VALUES ('ff_MR', 'Fula (Mauritania)'); INSERT INTO "list" ("id", "value") VALUES ('ff_SN', 'Fula (Senegal)'); INSERT INTO "list" ("id", "value") VALUES ('gd', 'Gaelik Skotlandia'); INSERT INTO "list" ("id", "value") VALUES ('gd_GB', 'Gaelik Skotlandia (Inggris Raya)'); INSERT INTO "list" ("id", "value") VALUES ('gl', 'Galisia'); INSERT INTO "list" ("id", "value") VALUES ('gl_ES', 'Galisia (Spanyol)'); INSERT INTO "list" ("id", "value") VALUES ('lg', 'Ganda'); INSERT INTO "list" ("id", "value") VALUES ('lg_UG', 'Ganda (Uganda)'); INSERT INTO "list" ("id", "value") VALUES ('ka', 'Georgia'); INSERT INTO "list" ("id", "value") VALUES ('ka_GE', 'Georgia (Georgia)'); INSERT INTO "list" ("id", "value") VALUES ('gu', 'Gujarat'); INSERT INTO "list" ("id", "value") VALUES ('gu_IN', 'Gujarat (India)'); INSERT INTO "list" ("id", "value") VALUES ('ha', 'Hausa'); INSERT INTO "list" ("id", "value") VALUES ('ha_GH', 'Hausa (Ghana)'); INSERT INTO "list" ("id", "value") VALUES ('ha_NE', 'Hausa (Niger)'); INSERT INTO "list" ("id", "value") VALUES ('ha_NG', 'Hausa (Nigeria)'); INSERT INTO "list" ("id", "value") VALUES ('hi', 'Hindi'); INSERT INTO "list" ("id", "value") VALUES ('hi_IN', 'Hindi (India)'); INSERT INTO "list" ("id", "value") VALUES ('hu', 'Hungaria'); INSERT INTO "list" ("id", "value") VALUES ('hu_HU', 'Hungaria (Hungaria)'); INSERT INTO "list" ("id", "value") VALUES ('he', 'Ibrani'); INSERT INTO "list" ("id", "value") VALUES ('he_IL', 'Ibrani (Israel)'); INSERT INTO "list" ("id", "value") VALUES ('ig', 'Igbo'); INSERT INTO "list" ("id", "value") VALUES ('ig_NG', 'Igbo (Nigeria)'); INSERT INTO "list" ("id", "value") VALUES ('id', 'Indonesia'); INSERT INTO "list" ("id", "value") VALUES ('id_ID', 'Indonesia (Indonesia)'); INSERT INTO "list" ("id", "value") VALUES ('en', 'Inggris'); INSERT INTO "list" ("id", "value") VALUES ('en_ZA', 'Inggris (Afrika Selatan)'); INSERT INTO "list" ("id", "value") VALUES ('en_US', 'Inggris (Amerika Serikat)'); INSERT INTO "list" ("id", "value") VALUES ('en_AI', 'Inggris (Anguilla)'); INSERT INTO "list" ("id", "value") VALUES ('en_AG', 'Inggris (Antigua dan Barbuda)'); INSERT INTO "list" ("id", "value") VALUES ('en_AU', 'Inggris (Australia)'); INSERT INTO "list" ("id", "value") VALUES ('en_AT', 'Inggris (Austria)'); INSERT INTO "list" ("id", "value") VALUES ('en_BS', 'Inggris (Bahama)'); INSERT INTO "list" ("id", "value") VALUES ('en_BB', 'Inggris (Barbados)'); INSERT INTO "list" ("id", "value") VALUES ('en_NL', 'Inggris (Belanda)'); INSERT INTO "list" ("id", "value") VALUES ('en_BE', 'Inggris (Belgia)'); INSERT INTO "list" ("id", "value") VALUES ('en_BZ', 'Inggris (Belize)'); INSERT INTO "list" ("id", "value") VALUES ('en_BM', 'Inggris (Bermuda)'); INSERT INTO "list" ("id", "value") VALUES ('en_BW', 'Inggris (Botswana)'); INSERT INTO "list" ("id", "value") VALUES ('en_BI', 'Inggris (Burundi)'); INSERT INTO "list" ("id", "value") VALUES ('en_DK', 'Inggris (Denmark)'); INSERT INTO "list" ("id", "value") VALUES ('en_DG', 'Inggris (Diego Garcia)'); INSERT INTO "list" ("id", "value") VALUES ('en_DM', 'Inggris (Dominika)'); INSERT INTO "list" ("id", "value") VALUES ('en_ER', 'Inggris (Eritrea)'); INSERT INTO "list" ("id", "value") VALUES ('en_FJ', 'Inggris (Fiji)'); INSERT INTO "list" ("id", "value") VALUES ('en_PH', 'Inggris (Filipina)'); INSERT INTO "list" ("id", "value") VALUES ('en_FI', 'Inggris (Finlandia)'); INSERT INTO "list" ("id", "value") VALUES ('en_GM', 'Inggris (Gambia)'); INSERT INTO "list" ("id", "value") VALUES ('en_GH', 'Inggris (Ghana)'); INSERT INTO "list" ("id", "value") VALUES ('en_GI', 'Inggris (Gibraltar)'); INSERT INTO "list" ("id", "value") VALUES ('en_GD', 'Inggris (Grenada)'); INSERT INTO "list" ("id", "value") VALUES ('en_GU', 'Inggris (Guam)'); INSERT INTO "list" ("id", "value") VALUES ('en_GG', 'Inggris (Guernsey)'); INSERT INTO "list" ("id", "value") VALUES ('en_GY', 'Inggris (Guyana)'); INSERT INTO "list" ("id", "value") VALUES ('en_HK', 'Inggris (Hong Kong SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('en_IN', 'Inggris (India)'); INSERT INTO "list" ("id", "value") VALUES ('en_GB', 'Inggris (Inggris Raya)'); INSERT INTO "list" ("id", "value") VALUES ('en_IE', 'Inggris (Irlandia)'); INSERT INTO "list" ("id", "value") VALUES ('en_IL', 'Inggris (Israel)'); INSERT INTO "list" ("id", "value") VALUES ('en_JM', 'Inggris (Jamaika)'); INSERT INTO "list" ("id", "value") VALUES ('en_DE', 'Inggris (Jerman)'); INSERT INTO "list" ("id", "value") VALUES ('en_JE', 'Inggris (Jersey)'); INSERT INTO "list" ("id", "value") VALUES ('en_CM', 'Inggris (Kamerun)'); INSERT INTO "list" ("id", "value") VALUES ('en_CA', 'Inggris (Kanada)'); INSERT INTO "list" ("id", "value") VALUES ('en_KE', 'Inggris (Kenya)'); INSERT INTO "list" ("id", "value") VALUES ('en_KY', 'Inggris (Kepulauan Cayman)'); INSERT INTO "list" ("id", "value") VALUES ('en_CC', 'Inggris (Kepulauan Cocos (Keeling))'); INSERT INTO "list" ("id", "value") VALUES ('en_CK', 'Inggris (Kepulauan Cook)'); INSERT INTO "list" ("id", "value") VALUES ('en_FK', 'Inggris (Kepulauan Malvinas)'); INSERT INTO "list" ("id", "value") VALUES ('en_MP', 'Inggris (Kepulauan Mariana Utara)'); INSERT INTO "list" ("id", "value") VALUES ('en_MH', 'Inggris (Kepulauan Marshall)'); INSERT INTO "list" ("id", "value") VALUES ('en_NF', 'Inggris (Kepulauan Norfolk)'); INSERT INTO "list" ("id", "value") VALUES ('en_PN', 'Inggris (Kepulauan Pitcairn)'); INSERT INTO "list" ("id", "value") VALUES ('en_SB', 'Inggris (Kepulauan Solomon)'); INSERT INTO "list" ("id", "value") VALUES ('en_UM', 'Inggris (Kepulauan Terluar A.S.)'); INSERT INTO "list" ("id", "value") VALUES ('en_TC', 'Inggris (Kepulauan Turks dan Caicos)'); INSERT INTO "list" ("id", "value") VALUES ('en_VI', 'Inggris (Kepulauan Virgin A.S.)'); INSERT INTO "list" ("id", "value") VALUES ('en_VG', 'Inggris (Kepulauan Virgin Inggris)'); INSERT INTO "list" ("id", "value") VALUES ('en_KI', 'Inggris (Kiribati)'); INSERT INTO "list" ("id", "value") VALUES ('en_LS', 'Inggris (Lesotho)'); INSERT INTO "list" ("id", "value") VALUES ('en_LR', 'Inggris (Liberia)'); INSERT INTO "list" ("id", "value") VALUES ('en_MG', 'Inggris (Madagaskar)'); INSERT INTO "list" ("id", "value") VALUES ('en_MO', 'Inggris (Makau SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('en_MW', 'Inggris (Malawi)'); INSERT INTO "list" ("id", "value") VALUES ('en_MY', 'Inggris (Malaysia)'); INSERT INTO "list" ("id", "value") VALUES ('en_MT', 'Inggris (Malta)'); INSERT INTO "list" ("id", "value") VALUES ('en_MU', 'Inggris (Mauritius)'); INSERT INTO "list" ("id", "value") VALUES ('en_FM', 'Inggris (Mikronesia)'); INSERT INTO "list" ("id", "value") VALUES ('en_MS', 'Inggris (Montserrat)'); INSERT INTO "list" ("id", "value") VALUES ('en_NA', 'Inggris (Namibia)'); INSERT INTO "list" ("id", "value") VALUES ('en_NR', 'Inggris (Nauru)'); INSERT INTO "list" ("id", "value") VALUES ('en_NG', 'Inggris (Nigeria)'); INSERT INTO "list" ("id", "value") VALUES ('en_NU', 'Inggris (Niue)'); INSERT INTO "list" ("id", "value") VALUES ('en_PK', 'Inggris (Pakistan)'); INSERT INTO "list" ("id", "value") VALUES ('en_PW', 'Inggris (Palau)'); INSERT INTO "list" ("id", "value") VALUES ('en_PG', 'Inggris (Papua Nugini)'); INSERT INTO "list" ("id", "value") VALUES ('en_PR', 'Inggris (Puerto Riko)'); INSERT INTO "list" ("id", "value") VALUES ('en_CX', 'Inggris (Pulau Christmas)'); INSERT INTO "list" ("id", "value") VALUES ('en_IM', 'Inggris (Pulau Man)'); INSERT INTO "list" ("id", "value") VALUES ('en_RW', 'Inggris (Rwanda)'); INSERT INTO "list" ("id", "value") VALUES ('en_SH', 'Inggris (Saint Helena)'); INSERT INTO "list" ("id", "value") VALUES ('en_KN', 'Inggris (Saint Kitts dan Nevis)'); INSERT INTO "list" ("id", "value") VALUES ('en_LC', 'Inggris (Saint Lucia)'); INSERT INTO "list" ("id", "value") VALUES ('en_VC', 'Inggris (Saint Vincent dan Grenadines)'); INSERT INTO "list" ("id", "value") VALUES ('en_AS', 'Inggris (Samoa Amerika)'); INSERT INTO "list" ("id", "value") VALUES ('en_WS', 'Inggris (Samoa)'); INSERT INTO "list" ("id", "value") VALUES ('en_NZ', 'Inggris (Selandia Baru)'); INSERT INTO "list" ("id", "value") VALUES ('en_SC', 'Inggris (Seychelles)'); INSERT INTO "list" ("id", "value") VALUES ('en_SL', 'Inggris (Sierra Leone)'); INSERT INTO "list" ("id", "value") VALUES ('en_SG', 'Inggris (Singapura)'); INSERT INTO "list" ("id", "value") VALUES ('en_SX', 'Inggris (Sint Maarten)'); INSERT INTO "list" ("id", "value") VALUES ('en_CY', 'Inggris (Siprus)'); INSERT INTO "list" ("id", "value") VALUES ('en_SI', 'Inggris (Slovenia)'); INSERT INTO "list" ("id", "value") VALUES ('en_SS', 'Inggris (Sudan Selatan)'); INSERT INTO "list" ("id", "value") VALUES ('en_SD', 'Inggris (Sudan)'); INSERT INTO "list" ("id", "value") VALUES ('en_SZ', 'Inggris (Swaziland)'); INSERT INTO "list" ("id", "value") VALUES ('en_SE', 'Inggris (Swedia)'); INSERT INTO "list" ("id", "value") VALUES ('en_CH', 'Inggris (Swiss)'); INSERT INTO "list" ("id", "value") VALUES ('en_TZ', 'Inggris (Tanzania)'); INSERT INTO "list" ("id", "value") VALUES ('en_TK', 'Inggris (Tokelau)'); INSERT INTO "list" ("id", "value") VALUES ('en_TO', 'Inggris (Tonga)'); INSERT INTO "list" ("id", "value") VALUES ('en_TT', 'Inggris (Trinidad dan Tobago)'); INSERT INTO "list" ("id", "value") VALUES ('en_TV', 'Inggris (Tuvalu)'); INSERT INTO "list" ("id", "value") VALUES ('en_UG', 'Inggris (Uganda)'); INSERT INTO "list" ("id", "value") VALUES ('en_VU', 'Inggris (Vanuatu)'); INSERT INTO "list" ("id", "value") VALUES ('en_IO', 'Inggris (Wilayah Inggris di Samudra Hindia)'); INSERT INTO "list" ("id", "value") VALUES ('en_ZM', 'Inggris (Zambia)'); INSERT INTO "list" ("id", "value") VALUES ('en_ZW', 'Inggris (Zimbabwe)'); INSERT INTO "list" ("id", "value") VALUES ('ga', 'Irlandia'); INSERT INTO "list" ("id", "value") VALUES ('ga_IE', 'Irlandia (Irlandia)'); INSERT INTO "list" ("id", "value") VALUES ('is', 'Islandia'); INSERT INTO "list" ("id", "value") VALUES ('is_IS', 'Islandia (Islandia)'); INSERT INTO "list" ("id", "value") VALUES ('it', 'Italia'); INSERT INTO "list" ("id", "value") VALUES ('it_IT', 'Italia (Italia)'); INSERT INTO "list" ("id", "value") VALUES ('it_SM', 'Italia (San Marino)'); INSERT INTO "list" ("id", "value") VALUES ('it_CH', 'Italia (Swiss)'); INSERT INTO "list" ("id", "value") VALUES ('it_VA', 'Italia (Vatikan)'); INSERT INTO "list" ("id", "value") VALUES ('ja', 'Jepang'); INSERT INTO "list" ("id", "value") VALUES ('ja_JP', 'Jepang (Jepang)'); INSERT INTO "list" ("id", "value") VALUES ('de', 'Jerman'); INSERT INTO "list" ("id", "value") VALUES ('de_AT', 'Jerman (Austria)'); INSERT INTO "list" ("id", "value") VALUES ('de_BE', 'Jerman (Belgia)'); INSERT INTO "list" ("id", "value") VALUES ('de_IT', 'Jerman (Italia)'); INSERT INTO "list" ("id", "value") VALUES ('de_DE', 'Jerman (Jerman)'); INSERT INTO "list" ("id", "value") VALUES ('de_LI', 'Jerman (Liechtenstein)'); INSERT INTO "list" ("id", "value") VALUES ('de_LU', 'Jerman (Luksemburg)'); INSERT INTO "list" ("id", "value") VALUES ('de_CH', 'Jerman (Swiss)'); INSERT INTO "list" ("id", "value") VALUES ('kl', 'Kalaallisut'); INSERT INTO "list" ("id", "value") VALUES ('kl_GL', 'Kalaallisut (Grinlandia)'); INSERT INTO "list" ("id", "value") VALUES ('kn', 'Kannada'); INSERT INTO "list" ("id", "value") VALUES ('kn_IN', 'Kannada (India)'); INSERT INTO "list" ("id", "value") VALUES ('ks', 'Kashmir'); INSERT INTO "list" ("id", "value") VALUES ('ks_IN', 'Kashmir (India)'); INSERT INTO "list" ("id", "value") VALUES ('ca', 'Katalan'); INSERT INTO "list" ("id", "value") VALUES ('ca_AD', 'Katalan (Andorra)'); INSERT INTO "list" ("id", "value") VALUES ('ca_IT', 'Katalan (Italia)'); INSERT INTO "list" ("id", "value") VALUES ('ca_FR', 'Katalan (Prancis)'); INSERT INTO "list" ("id", "value") VALUES ('ca_ES', 'Katalan (Spanyol)'); INSERT INTO "list" ("id", "value") VALUES ('kk', 'Kazakh'); INSERT INTO "list" ("id", "value") VALUES ('kk_KZ', 'Kazakh (Kazakstan)'); INSERT INTO "list" ("id", "value") VALUES ('km', 'Khmer'); INSERT INTO "list" ("id", "value") VALUES ('km_KH', 'Khmer (Kamboja)'); INSERT INTO "list" ("id", "value") VALUES ('ki', 'Kikuyu'); INSERT INTO "list" ("id", "value") VALUES ('ki_KE', 'Kikuyu (Kenya)'); INSERT INTO "list" ("id", "value") VALUES ('rw', 'Kinyarwanda'); INSERT INTO "list" ("id", "value") VALUES ('rw_RW', 'Kinyarwanda (Rwanda)'); INSERT INTO "list" ("id", "value") VALUES ('ky', 'Kirgiz'); INSERT INTO "list" ("id", "value") VALUES ('ky_KG', 'Kirgiz (Kirgistan)'); INSERT INTO "list" ("id", "value") VALUES ('ko', 'Korea'); INSERT INTO "list" ("id", "value") VALUES ('ko_KR', 'Korea (Korea Selatan)'); INSERT INTO "list" ("id", "value") VALUES ('ko_KP', 'Korea (Korea Utara)'); INSERT INTO "list" ("id", "value") VALUES ('kw', 'Kornish'); INSERT INTO "list" ("id", "value") VALUES ('kw_GB', 'Kornish (Inggris Raya)'); INSERT INTO "list" ("id", "value") VALUES ('hr', 'Kroasia'); INSERT INTO "list" ("id", "value") VALUES ('hr_BA', 'Kroasia (Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('hr_HR', 'Kroasia (Kroasia)'); INSERT INTO "list" ("id", "value") VALUES ('lo', 'Lao'); INSERT INTO "list" ("id", "value") VALUES ('lo_LA', 'Lao (Laos)'); INSERT INTO "list" ("id", "value") VALUES ('lv', 'Latvi'); INSERT INTO "list" ("id", "value") VALUES ('lv_LV', 'Latvi (Latvia)'); INSERT INTO "list" ("id", "value") VALUES ('ln', 'Lingala'); INSERT INTO "list" ("id", "value") VALUES ('ln_AO', 'Lingala (Angola)'); INSERT INTO "list" ("id", "value") VALUES ('ln_CG', 'Lingala (Kongo - Brazzaville)'); INSERT INTO "list" ("id", "value") VALUES ('ln_CD', 'Lingala (Kongo - Kinshasa)'); INSERT INTO "list" ("id", "value") VALUES ('ln_CF', 'Lingala (Republik Afrika Tengah)'); INSERT INTO "list" ("id", "value") VALUES ('lt', 'Lituavi'); INSERT INTO "list" ("id", "value") VALUES ('lt_LT', 'Lituavi (Lituania)'); INSERT INTO "list" ("id", "value") VALUES ('lu', 'Luba-Katanga'); INSERT INTO "list" ("id", "value") VALUES ('lu_CD', 'Luba-Katanga (Kongo - Kinshasa)'); INSERT INTO "list" ("id", "value") VALUES ('lb', 'Luksemburg'); INSERT INTO "list" ("id", "value") VALUES ('lb_LU', 'Luksemburg (Luksemburg)'); INSERT INTO "list" ("id", "value") VALUES ('mk', 'Makedonia'); INSERT INTO "list" ("id", "value") VALUES ('mk_MK', 'Makedonia (Makedonia)'); INSERT INTO "list" ("id", "value") VALUES ('mg', 'Malagasi'); INSERT INTO "list" ("id", "value") VALUES ('mg_MG', 'Malagasi (Madagaskar)'); INSERT INTO "list" ("id", "value") VALUES ('ml', 'Malayalam'); INSERT INTO "list" ("id", "value") VALUES ('ml_IN', 'Malayalam (India)'); INSERT INTO "list" ("id", "value") VALUES ('mt', 'Malta'); INSERT INTO "list" ("id", "value") VALUES ('mt_MT', 'Malta (Malta)'); INSERT INTO "list" ("id", "value") VALUES ('gv', 'Manx'); INSERT INTO "list" ("id", "value") VALUES ('gv_IM', 'Manx (Pulau Man)'); INSERT INTO "list" ("id", "value") VALUES ('mr', 'Marathi'); INSERT INTO "list" ("id", "value") VALUES ('mr_IN', 'Marathi (India)'); INSERT INTO "list" ("id", "value") VALUES ('ms', 'Melayu'); INSERT INTO "list" ("id", "value") VALUES ('ms_BN', 'Melayu (Brunei)'); INSERT INTO "list" ("id", "value") VALUES ('ms_MY', 'Melayu (Malaysia)'); INSERT INTO "list" ("id", "value") VALUES ('ms_SG', 'Melayu (Singapura)'); INSERT INTO "list" ("id", "value") VALUES ('mn', 'Mongolia'); INSERT INTO "list" ("id", "value") VALUES ('mn_MN', 'Mongolia (Mongolia)'); INSERT INTO "list" ("id", "value") VALUES ('nd', 'Ndebele Utara'); INSERT INTO "list" ("id", "value") VALUES ('nd_ZW', 'Ndebele Utara (Zimbabwe)'); INSERT INTO "list" ("id", "value") VALUES ('ne', 'Nepali'); INSERT INTO "list" ("id", "value") VALUES ('ne_IN', 'Nepali (India)'); INSERT INTO "list" ("id", "value") VALUES ('ne_NP', 'Nepali (Nepal)'); INSERT INTO "list" ("id", "value") VALUES ('no', 'Norwegia'); INSERT INTO "list" ("id", "value") VALUES ('no_NO', 'Norwegia (Norwegia)'); INSERT INTO "list" ("id", "value") VALUES ('nn', 'Nynorsk Norwegia'); INSERT INTO "list" ("id", "value") VALUES ('nn_NO', 'Nynorsk Norwegia (Norwegia)'); INSERT INTO "list" ("id", "value") VALUES ('or', 'Oriya'); INSERT INTO "list" ("id", "value") VALUES ('or_IN', 'Oriya (India)'); INSERT INTO "list" ("id", "value") VALUES ('om', 'Oromo'); INSERT INTO "list" ("id", "value") VALUES ('om_ET', 'Oromo (Etiopia)'); INSERT INTO "list" ("id", "value") VALUES ('om_KE', 'Oromo (Kenya)'); INSERT INTO "list" ("id", "value") VALUES ('os', 'Ossetia'); INSERT INTO "list" ("id", "value") VALUES ('os_GE', 'Ossetia (Georgia)'); INSERT INTO "list" ("id", "value") VALUES ('os_RU', 'Ossetia (Rusia)'); INSERT INTO "list" ("id", "value") VALUES ('ps', 'Pashto'); INSERT INTO "list" ("id", "value") VALUES ('ps_AF', 'Pashto (Afganistan)'); INSERT INTO "list" ("id", "value") VALUES ('fa', 'Persia'); INSERT INTO "list" ("id", "value") VALUES ('fa_AF', 'Persia (Afganistan)'); INSERT INTO "list" ("id", "value") VALUES ('fa_IR', 'Persia (Iran)'); INSERT INTO "list" ("id", "value") VALUES ('pl', 'Polski'); INSERT INTO "list" ("id", "value") VALUES ('pl_PL', 'Polski (Polandia)'); INSERT INTO "list" ("id", "value") VALUES ('pt', 'Portugis'); INSERT INTO "list" ("id", "value") VALUES ('pt_AO', 'Portugis (Angola)'); INSERT INTO "list" ("id", "value") VALUES ('pt_BR', 'Portugis (Brasil)'); INSERT INTO "list" ("id", "value") VALUES ('pt_GQ', 'Portugis (Guinea Ekuatorial)'); INSERT INTO "list" ("id", "value") VALUES ('pt_GW', 'Portugis (Guinea-Bissau)'); INSERT INTO "list" ("id", "value") VALUES ('pt_LU', 'Portugis (Luksemburg)'); INSERT INTO "list" ("id", "value") VALUES ('pt_MO', 'Portugis (Makau SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('pt_MZ', 'Portugis (Mozambik)'); INSERT INTO "list" ("id", "value") VALUES ('pt_PT', 'Portugis (Portugal)'); INSERT INTO "list" ("id", "value") VALUES ('pt_ST', 'Portugis (Sao Tome dan Principe)'); INSERT INTO "list" ("id", "value") VALUES ('pt_CH', 'Portugis (Swiss)'); INSERT INTO "list" ("id", "value") VALUES ('pt_CV', 'Portugis (Tanjung Verde)'); INSERT INTO "list" ("id", "value") VALUES ('pt_TL', 'Portugis (Timor Leste)'); INSERT INTO "list" ("id", "value") VALUES ('fr', 'Prancis'); INSERT INTO "list" ("id", "value") VALUES ('fr_DZ', 'Prancis (Aljazair)'); INSERT INTO "list" ("id", "value") VALUES ('fr_BE', 'Prancis (Belgia)'); INSERT INTO "list" ("id", "value") VALUES ('fr_BJ', 'Prancis (Benin)'); INSERT INTO "list" ("id", "value") VALUES ('fr_BF', 'Prancis (Burkina Faso)'); INSERT INTO "list" ("id", "value") VALUES ('fr_BI', 'Prancis (Burundi)'); INSERT INTO "list" ("id", "value") VALUES ('fr_TD', 'Prancis (Cad)'); INSERT INTO "list" ("id", "value") VALUES ('fr_CI', 'Prancis (Cote d’Ivoire)'); INSERT INTO "list" ("id", "value") VALUES ('fr_GA', 'Prancis (Gabon)'); INSERT INTO "list" ("id", "value") VALUES ('fr_GP', 'Prancis (Guadeloupe)'); INSERT INTO "list" ("id", "value") VALUES ('fr_GQ', 'Prancis (Guinea Ekuatorial)'); INSERT INTO "list" ("id", "value") VALUES ('fr_GN', 'Prancis (Guinea)'); INSERT INTO "list" ("id", "value") VALUES ('fr_GF', 'Prancis (Guyana Prancis)'); INSERT INTO "list" ("id", "value") VALUES ('fr_HT', 'Prancis (Haiti)'); INSERT INTO "list" ("id", "value") VALUES ('fr_DJ', 'Prancis (Jibuti)'); INSERT INTO "list" ("id", "value") VALUES ('fr_NC', 'Prancis (Kaledonia Baru)'); INSERT INTO "list" ("id", "value") VALUES ('fr_CM', 'Prancis (Kamerun)'); INSERT INTO "list" ("id", "value") VALUES ('fr_CA', 'Prancis (Kanada)'); INSERT INTO "list" ("id", "value") VALUES ('fr_WF', 'Prancis (Kepulauan Wallis dan Futuna)'); INSERT INTO "list" ("id", "value") VALUES ('fr_KM', 'Prancis (Komoro)'); INSERT INTO "list" ("id", "value") VALUES ('fr_CG', 'Prancis (Kongo - Brazzaville)'); INSERT INTO "list" ("id", "value") VALUES ('fr_CD', 'Prancis (Kongo - Kinshasa)'); INSERT INTO "list" ("id", "value") VALUES ('fr_LU', 'Prancis (Luksemburg)'); INSERT INTO "list" ("id", "value") VALUES ('fr_MG', 'Prancis (Madagaskar)'); INSERT INTO "list" ("id", "value") VALUES ('fr_ML', 'Prancis (Mali)'); INSERT INTO "list" ("id", "value") VALUES ('fr_MA', 'Prancis (Maroko)'); INSERT INTO "list" ("id", "value") VALUES ('fr_MQ', 'Prancis (Martinik)'); INSERT INTO "list" ("id", "value") VALUES ('fr_MR', 'Prancis (Mauritania)'); INSERT INTO "list" ("id", "value") VALUES ('fr_MU', 'Prancis (Mauritius)'); INSERT INTO "list" ("id", "value") VALUES ('fr_YT', 'Prancis (Mayotte)'); INSERT INTO "list" ("id", "value") VALUES ('fr_MC', 'Prancis (Monako)'); INSERT INTO "list" ("id", "value") VALUES ('fr_NE', 'Prancis (Niger)'); INSERT INTO "list" ("id", "value") VALUES ('fr_PF', 'Prancis (Polinesia Prancis)'); INSERT INTO "list" ("id", "value") VALUES ('fr_FR', 'Prancis (Prancis)'); INSERT INTO "list" ("id", "value") VALUES ('fr_CF', 'Prancis (Republik Afrika Tengah)'); INSERT INTO "list" ("id", "value") VALUES ('fr_RE', 'Prancis (Réunion)'); INSERT INTO "list" ("id", "value") VALUES ('fr_RW', 'Prancis (Rwanda)'); INSERT INTO "list" ("id", "value") VALUES ('fr_BL', 'Prancis (Saint Barthélemy)'); INSERT INTO "list" ("id", "value") VALUES ('fr_MF', 'Prancis (Saint Martin)'); INSERT INTO "list" ("id", "value") VALUES ('fr_PM', 'Prancis (Saint Pierre dan Miquelon)'); INSERT INTO "list" ("id", "value") VALUES ('fr_SN', 'Prancis (Senegal)'); INSERT INTO "list" ("id", "value") VALUES ('fr_SC', 'Prancis (Seychelles)'); INSERT INTO "list" ("id", "value") VALUES ('fr_SY', 'Prancis (Suriah)'); INSERT INTO "list" ("id", "value") VALUES ('fr_CH', 'Prancis (Swiss)'); INSERT INTO "list" ("id", "value") VALUES ('fr_TG', 'Prancis (Togo)'); INSERT INTO "list" ("id", "value") VALUES ('fr_TN', 'Prancis (Tunisia)'); INSERT INTO "list" ("id", "value") VALUES ('fr_VU', 'Prancis (Vanuatu)'); INSERT INTO "list" ("id", "value") VALUES ('pa', 'Punjabi'); INSERT INTO "list" ("id", "value") VALUES ('pa_Arab_PK', 'Punjabi (Arab, Pakistan)'); INSERT INTO "list" ("id", "value") VALUES ('pa_Arab', 'Punjabi (Arab)'); INSERT INTO "list" ("id", "value") VALUES ('pa_Guru_IN', 'Punjabi (Gurmukhi, India)'); INSERT INTO "list" ("id", "value") VALUES ('pa_Guru', 'Punjabi (Gurmukhi)'); INSERT INTO "list" ("id", "value") VALUES ('pa_IN', 'Punjabi (India)'); INSERT INTO "list" ("id", "value") VALUES ('pa_PK', 'Punjabi (Pakistan)'); INSERT INTO "list" ("id", "value") VALUES ('qu', 'Quechua'); INSERT INTO "list" ("id", "value") VALUES ('qu_BO', 'Quechua (Bolivia)'); INSERT INTO "list" ("id", "value") VALUES ('qu_EC', 'Quechua (Ekuador)'); INSERT INTO "list" ("id", "value") VALUES ('qu_PE', 'Quechua (Peru)'); INSERT INTO "list" ("id", "value") VALUES ('rm', 'Reto-Roman'); INSERT INTO "list" ("id", "value") VALUES ('rm_CH', 'Reto-Roman (Swiss)'); INSERT INTO "list" ("id", "value") VALUES ('ro', 'Rumania'); INSERT INTO "list" ("id", "value") VALUES ('ro_MD', 'Rumania (Moldova)'); INSERT INTO "list" ("id", "value") VALUES ('ro_RO', 'Rumania (Rumania)'); INSERT INTO "list" ("id", "value") VALUES ('rn', 'Rundi'); INSERT INTO "list" ("id", "value") VALUES ('rn_BI', 'Rundi (Burundi)'); INSERT INTO "list" ("id", "value") VALUES ('ru', 'Rusia'); INSERT INTO "list" ("id", "value") VALUES ('ru_BY', 'Rusia (Belarus)'); INSERT INTO "list" ("id", "value") VALUES ('ru_KZ', 'Rusia (Kazakstan)'); INSERT INTO "list" ("id", "value") VALUES ('ru_KG', 'Rusia (Kirgistan)'); INSERT INTO "list" ("id", "value") VALUES ('ru_MD', 'Rusia (Moldova)'); INSERT INTO "list" ("id", "value") VALUES ('ru_RU', 'Rusia (Rusia)'); INSERT INTO "list" ("id", "value") VALUES ('ru_UA', 'Rusia (Ukraina)'); INSERT INTO "list" ("id", "value") VALUES ('se', 'Sami Utara'); INSERT INTO "list" ("id", "value") VALUES ('se_FI', 'Sami Utara (Finlandia)'); INSERT INTO "list" ("id", "value") VALUES ('se_NO', 'Sami Utara (Norwegia)'); INSERT INTO "list" ("id", "value") VALUES ('se_SE', 'Sami Utara (Swedia)'); INSERT INTO "list" ("id", "value") VALUES ('sg', 'Sango'); INSERT INTO "list" ("id", "value") VALUES ('sg_CF', 'Sango (Republik Afrika Tengah)'); INSERT INTO "list" ("id", "value") VALUES ('sr', 'Serb'); INSERT INTO "list" ("id", "value") VALUES ('sr_BA', 'Serb (Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('sr_XK', 'Serb (Kosovo)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Latn_BA', 'Serb (Latin, Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Latn_XK', 'Serb (Latin, Kosovo)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Latn_ME', 'Serb (Latin, Montenegro)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Latn_RS', 'Serb (Latin, Serbia)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Latn', 'Serb (Latin)'); INSERT INTO "list" ("id", "value") VALUES ('sr_ME', 'Serb (Montenegro)'); INSERT INTO "list" ("id", "value") VALUES ('sr_RS', 'Serb (Serbia)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Cyrl_BA', 'Serb (Sirilik, Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Cyrl_XK', 'Serb (Sirilik, Kosovo)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Cyrl_ME', 'Serb (Sirilik, Montenegro)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Cyrl_RS', 'Serb (Sirilik, Serbia)'); INSERT INTO "list" ("id", "value") VALUES ('sr_Cyrl', 'Serb (Sirilik)'); INSERT INTO "list" ("id", "value") VALUES ('sh', 'Serbo-Kroasia'); INSERT INTO "list" ("id", "value") VALUES ('sh_BA', 'Serbo-Kroasia (Bosnia dan Herzegovina)'); INSERT INTO "list" ("id", "value") VALUES ('sn', 'Shona'); INSERT INTO "list" ("id", "value") VALUES ('sn_ZW', 'Shona (Zimbabwe)'); INSERT INTO "list" ("id", "value") VALUES ('ii', 'Sichuan Yi'); INSERT INTO "list" ("id", "value") VALUES ('ii_CN', 'Sichuan Yi (Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('si', 'Sinhala'); INSERT INTO "list" ("id", "value") VALUES ('si_LK', 'Sinhala (Sri Lanka)'); INSERT INTO "list" ("id", "value") VALUES ('sk', 'Slovak'); INSERT INTO "list" ("id", "value") VALUES ('sk_SK', 'Slovak (Slovakia)'); INSERT INTO "list" ("id", "value") VALUES ('sl', 'Sloven'); INSERT INTO "list" ("id", "value") VALUES ('sl_SI', 'Sloven (Slovenia)'); INSERT INTO "list" ("id", "value") VALUES ('so', 'Somali'); INSERT INTO "list" ("id", "value") VALUES ('so_ET', 'Somali (Etiopia)'); INSERT INTO "list" ("id", "value") VALUES ('so_DJ', 'Somali (Jibuti)'); INSERT INTO "list" ("id", "value") VALUES ('so_KE', 'Somali (Kenya)'); INSERT INTO "list" ("id", "value") VALUES ('so_SO', 'Somali (Somalia)'); INSERT INTO "list" ("id", "value") VALUES ('es', 'Spanyol'); INSERT INTO "list" ("id", "value") VALUES ('es_US', 'Spanyol (Amerika Serikat)'); INSERT INTO "list" ("id", "value") VALUES ('es_AR', 'Spanyol (Argentina)'); INSERT INTO "list" ("id", "value") VALUES ('es_BZ', 'Spanyol (Belize)'); INSERT INTO "list" ("id", "value") VALUES ('es_BO', 'Spanyol (Bolivia)'); INSERT INTO "list" ("id", "value") VALUES ('es_BR', 'Spanyol (Brasil)'); INSERT INTO "list" ("id", "value") VALUES ('es_EA', 'Spanyol (Ceuta dan Melilla)'); INSERT INTO "list" ("id", "value") VALUES ('es_CL', 'Spanyol (Cile)'); INSERT INTO "list" ("id", "value") VALUES ('es_EC', 'Spanyol (Ekuador)'); INSERT INTO "list" ("id", "value") VALUES ('es_SV', 'Spanyol (El Salvador)'); INSERT INTO "list" ("id", "value") VALUES ('es_PH', 'Spanyol (Filipina)'); INSERT INTO "list" ("id", "value") VALUES ('es_GT', 'Spanyol (Guatemala)'); INSERT INTO "list" ("id", "value") VALUES ('es_GQ', 'Spanyol (Guinea Ekuatorial)'); INSERT INTO "list" ("id", "value") VALUES ('es_HN', 'Spanyol (Honduras)'); INSERT INTO "list" ("id", "value") VALUES ('es_IC', 'Spanyol (Kepulauan Canary)'); INSERT INTO "list" ("id", "value") VALUES ('es_CO', 'Spanyol (Kolombia)'); INSERT INTO "list" ("id", "value") VALUES ('es_CR', 'Spanyol (Kosta Rika)'); INSERT INTO "list" ("id", "value") VALUES ('es_CU', 'Spanyol (Kuba)'); INSERT INTO "list" ("id", "value") VALUES ('es_MX', 'Spanyol (Meksiko)'); INSERT INTO "list" ("id", "value") VALUES ('es_NI', 'Spanyol (Nikaragua)'); INSERT INTO "list" ("id", "value") VALUES ('es_PA', 'Spanyol (Panama)'); INSERT INTO "list" ("id", "value") VALUES ('es_PY', 'Spanyol (Paraguay)'); INSERT INTO "list" ("id", "value") VALUES ('es_PE', 'Spanyol (Peru)'); INSERT INTO "list" ("id", "value") VALUES ('es_PR', 'Spanyol (Puerto Riko)'); INSERT INTO "list" ("id", "value") VALUES ('es_DO', 'Spanyol (Republik Dominika)'); INSERT INTO "list" ("id", "value") VALUES ('es_ES', 'Spanyol (Spanyol)'); INSERT INTO "list" ("id", "value") VALUES ('es_UY', 'Spanyol (Uruguay)'); INSERT INTO "list" ("id", "value") VALUES ('es_VE', 'Spanyol (Venezuela)'); INSERT INTO "list" ("id", "value") VALUES ('fi', 'Suomi'); INSERT INTO "list" ("id", "value") VALUES ('fi_FI', 'Suomi (Finlandia)'); INSERT INTO "list" ("id", "value") VALUES ('sw', 'Swahili'); INSERT INTO "list" ("id", "value") VALUES ('sw_KE', 'Swahili (Kenya)'); INSERT INTO "list" ("id", "value") VALUES ('sw_CD', 'Swahili (Kongo - Kinshasa)'); INSERT INTO "list" ("id", "value") VALUES ('sw_TZ', 'Swahili (Tanzania)'); INSERT INTO "list" ("id", "value") VALUES ('sw_UG', 'Swahili (Uganda)'); INSERT INTO "list" ("id", "value") VALUES ('sv', 'Swedia'); INSERT INTO "list" ("id", "value") VALUES ('sv_FI', 'Swedia (Finlandia)'); INSERT INTO "list" ("id", "value") VALUES ('sv_AX', 'Swedia (Kepulauan Aland)'); INSERT INTO "list" ("id", "value") VALUES ('sv_SE', 'Swedia (Swedia)'); INSERT INTO "list" ("id", "value") VALUES ('tl', 'Tagalog'); INSERT INTO "list" ("id", "value") VALUES ('tl_PH', 'Tagalog (Filipina)'); INSERT INTO "list" ("id", "value") VALUES ('ta', 'Tamil'); INSERT INTO "list" ("id", "value") VALUES ('ta_IN', 'Tamil (India)'); INSERT INTO "list" ("id", "value") VALUES ('ta_MY', 'Tamil (Malaysia)'); INSERT INTO "list" ("id", "value") VALUES ('ta_SG', 'Tamil (Singapura)'); INSERT INTO "list" ("id", "value") VALUES ('ta_LK', 'Tamil (Sri Lanka)'); INSERT INTO "list" ("id", "value") VALUES ('te', 'Telugu'); INSERT INTO "list" ("id", "value") VALUES ('te_IN', 'Telugu (India)'); INSERT INTO "list" ("id", "value") VALUES ('th', 'Thai'); INSERT INTO "list" ("id", "value") VALUES ('th_TH', 'Thai (Thailand)'); INSERT INTO "list" ("id", "value") VALUES ('bo', 'Tibet'); INSERT INTO "list" ("id", "value") VALUES ('bo_IN', 'Tibet (India)'); INSERT INTO "list" ("id", "value") VALUES ('bo_CN', 'Tibet (Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('ti', 'Tigrinya'); INSERT INTO "list" ("id", "value") VALUES ('ti_ER', 'Tigrinya (Eritrea)'); INSERT INTO "list" ("id", "value") VALUES ('ti_ET', 'Tigrinya (Etiopia)'); INSERT INTO "list" ("id", "value") VALUES ('zh', 'Tionghoa'); INSERT INTO "list" ("id", "value") VALUES ('zh_HK', 'Tionghoa (Hong Kong SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_MO', 'Tionghoa (Makau SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hans_HK', 'Tionghoa (Sederhana, Hong Kong SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hans_MO', 'Tionghoa (Sederhana, Makau SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hans_SG', 'Tionghoa (Sederhana, Singapura)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hans_CN', 'Tionghoa (Sederhana, Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hans', 'Tionghoa (Sederhana)'); INSERT INTO "list" ("id", "value") VALUES ('zh_SG', 'Tionghoa (Singapura)'); INSERT INTO "list" ("id", "value") VALUES ('zh_TW', 'Tionghoa (Taiwan)'); INSERT INTO "list" ("id", "value") VALUES ('zh_CN', 'Tionghoa (Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hant_HK', 'Tionghoa (Tradisional, Hong Kong SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hant_MO', 'Tionghoa (Tradisional, Makau SAR Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hant_TW', 'Tionghoa (Tradisional, Taiwan)'); INSERT INTO "list" ("id", "value") VALUES ('zh_Hant', 'Tionghoa (Tradisional)'); INSERT INTO "list" ("id", "value") VALUES ('to', 'Tonga'); INSERT INTO "list" ("id", "value") VALUES ('to_TO', 'Tonga (Tonga)'); INSERT INTO "list" ("id", "value") VALUES ('tr', 'Turki'); INSERT INTO "list" ("id", "value") VALUES ('tr_CY', 'Turki (Siprus)'); INSERT INTO "list" ("id", "value") VALUES ('tr_TR', 'Turki (Turki)'); INSERT INTO "list" ("id", "value") VALUES ('uk', 'Ukraina'); INSERT INTO "list" ("id", "value") VALUES ('uk_UA', 'Ukraina (Ukraina)'); INSERT INTO "list" ("id", "value") VALUES ('ur', 'Urdu'); INSERT INTO "list" ("id", "value") VALUES ('ur_IN', 'Urdu (India)'); INSERT INTO "list" ("id", "value") VALUES ('ur_PK', 'Urdu (Pakistan)'); INSERT INTO "list" ("id", "value") VALUES ('ug', 'Uyghur'); INSERT INTO "list" ("id", "value") VALUES ('ug_CN', 'Uyghur (Tiongkok)'); INSERT INTO "list" ("id", "value") VALUES ('uz', 'Uzbek'); INSERT INTO "list" ("id", "value") VALUES ('uz_AF', 'Uzbek (Afganistan)'); INSERT INTO "list" ("id", "value") VALUES ('uz_Arab_AF', 'Uzbek (Arab, Afganistan)'); INSERT INTO "list" ("id", "value") VALUES ('uz_Arab', 'Uzbek (Arab)'); INSERT INTO "list" ("id", "value") VALUES ('uz_Latn_UZ', 'Uzbek (Latin, Uzbekistan)'); INSERT INTO "list" ("id", "value") VALUES ('uz_Latn', 'Uzbek (Latin)'); INSERT INTO "list" ("id", "value") VALUES ('uz_Cyrl_UZ', 'Uzbek (Sirilik, Uzbekistan)'); INSERT INTO "list" ("id", "value") VALUES ('uz_Cyrl', 'Uzbek (Sirilik)'); INSERT INTO "list" ("id", "value") VALUES ('uz_UZ', 'Uzbek (Uzbekistan)'); INSERT INTO "list" ("id", "value") VALUES ('vi', 'Vietnam'); INSERT INTO "list" ("id", "value") VALUES ('vi_VN', 'Vietnam (Vietnam)'); INSERT INTO "list" ("id", "value") VALUES ('cy', 'Welsh'); INSERT INTO "list" ("id", "value") VALUES ('cy_GB', 'Welsh (Inggris Raya)'); INSERT INTO "list" ("id", "value") VALUES ('yi', 'Yiddish'); INSERT INTO "list" ("id", "value") VALUES ('yo', 'Yoruba'); INSERT INTO "list" ("id", "value") VALUES ('yo_BJ', 'Yoruba (Benin)'); INSERT INTO "list" ("id", "value") VALUES ('yo_NG', 'Yoruba (Nigeria)'); INSERT INTO "list" ("id", "value") VALUES ('el', 'Yunani'); INSERT INTO "list" ("id", "value") VALUES ('el_CY', 'Yunani (Siprus)'); INSERT INTO "list" ("id", "value") VALUES ('el_GR', 'Yunani (Yunani)'); INSERT INTO "list" ("id", "value") VALUES ('zu', 'Zulu'); INSERT INTO "list" ("id", "value") VALUES ('zu_ZA', 'Zulu (Afrika Selatan)');
use MGP; select Users.Username, UsersSessionsMedievalBattle.SessionMedievalBattleId from dbo.SessionMedievalBattles full join UsersSessionsMedievalBattle on UsersSessionsMedievalBattle.SessionMedievalBattleId = SessionMedievalBattles.SessionMedievalBattleId full join Users on Users.UserId = UsersSessionsMedievalBattle.UserId where SessionMedievalBattles.SessionMedievalBattleId = 1;
<gh_stars>0 /* Description 3 */ CREATE TABLE "Test2" ( "id" SERIAL NOT NULL PRIMARY KEY );
<gh_stars>0 SELECT COUNT(applications.status) FROM applications WHERE applications.religion_id NOT IN (SELECT religion_id FROM religions WHERE reservation_percentage > 0) AND applications.status = 'confirmed'
## Update get users from team functionality ## USE `${DB_MAIN}`; DROP procedure IF EXISTS `User_GetByTeamId`; DELIMITER $$ USE `${DB_MAIN}`$$ CREATE PROCEDURE `User_GetByTeamId`( pTeamId INT ) BEGIN SELECT DISTINCT u.UserId as `userId`, up.FirstName as `firstName`, up.LastName as `lastName`, u.Email as `email`, up.Picture as `picture`, ur.RoleId as `roleId`, udr.DataRoleId as `dataRoleId`, udr.TeamId as `teamId` FROM User u JOIN UserProfile up ON u.UserId = up.UserId JOIN UserRole ur ON u.UserId = ur.UserId LEFT JOIN UserDataRole udr ON u.UserId = udr.UserId WHERE (pTeamId IS NULL OR pTeamId = udr.TeamId) AND udr.Status > 0 ORDER BY udr.DataRoleId ASC; END$$ DELIMITER ;
<gh_stars>0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE DATABASE IF NOT EXISTS `epytodo` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; USE `epytodo`; CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `firstname` varchar(255) NOT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `email`(`email`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `task` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `decription` varchar(255) NOT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `due_time` datetime NOT NULL, `status` enum('not started','todo','in progress','done') NOT NULL DEFAULT 'not started', `user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `user_id`(`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ALTER TABLE `task` ADD CONSTRAINT `user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`); COMMIT;
<reponame>axs1088/EMRMS<filename>Scripts/MySql/StoredProcedures/emrms_getencounterlocations.sql<gh_stars>0 CREATE PROCEDURE emrms_getencounterlocations() BEGIN Select HealthcareOrganizationID as objectId, Name as name, Abbreviation as abbreviation from healthcare_organization ORDER BY Name; END;
<gh_stars>0 CREATE TABLE "user" ( id uuid primary key, email text not null unique, password text not null, first_name text not null, last_name text not null, phone text not null default '', created_at timestamp not null default now(), updated_at timestamp not null default now() )
<reponame>VictorCruz95/zerodengue<gh_stars>0 /* -- Query: select * from denuncia LIMIT 0, 500 -- Date: 2020-05-12 21:05 */ INSERT INTO `denuncia` (`id_denuncia`,`id_cidadao`,`descricao`,`acao_tomada`,`status`,`rua`,`numero`,`complemento`,`bairro`,`cidade`,`cep`,`uf`,`imagem`,`data`) VALUES (1,1,'foco de dengue no vizinho',NULL,'F','7 DE SETEMBRO','123','Apto 1000','Centro','SAPIRANGA',93800,'RS','http://localhost/zerodengue/imagens_denuncia/1.jpeg','2020-05-03'); INSERT INTO `denuncia` (`id_denuncia`,`id_cidadao`,`descricao`,`acao_tomada`,`status`,`rua`,`numero`,`complemento`,`bairro`,`cidade`,`cep`,`uf`,`imagem`,`data`) VALUES (2,1,'foco de dengue em caixa d\'água',NULL,'V','Assis Brasil','219','Apto 101','Centro','SAPIRANGA',93800,'RS','http://localhost/zerodengue/imagens_denuncia/2.jpeg','2020-05-04'); INSERT INTO `denuncia` (`id_denuncia`,`id_cidadao`,`descricao`,`acao_tomada`,`status`,`rua`,`numero`,`complemento`,`bairro`,`cidade`,`cep`,`uf`,`imagem`,`data`) VALUES (3,1,'grande foco de dengue em esgoto',NULL,'A','rua 20 de setembro','500','fundos','centro','SAPIRANGA',93800,'RS','http://localhost/zerodengue/imagens_denuncia/3.jpg','2020-05-05'); INSERT INTO `denuncia` (`id_denuncia`,`id_cidadao`,`descricao`,`acao_tomada`,`status`,`rua`,`numero`,`complemento`,`bairro`,`cidade`,`cep`,`uf`,`imagem`,`data`) VALUES (4,1,'foco de dengue em água parada',NULL,'A','rua rolante','1000','','AMARAL ','SAPIRANGA',93800,'RS','http://localhost/zerodengue/imagens_denuncia/4.jpeg','2020-05-06');
SET @query = REPLACE( 'ALTER DATABASE [{sourceDbName}] SET ONLINE;', '{sourceDbName}', @sourceDbName); EXEC(@query);
<filename>everly.sql<gh_stars>1-10 -- ====================================================================================================================================== -- Author: <Author - <NAME>> -- Name: <Name - Everly> -- Type: <Type - Stored Procedure> -- Create date: <Create Date - 10th July, 2017> -- Description: <Description - This Stored Procedure (Everly) enables a DBA or developer to do all CRUD operations on any table in the Database. It also makes accomodation for custom queries. -- It also helps to reverse actions done in SQL. -- Dependencies: <Dependencies - 1. dbo.Fetch_ReturnCommaSeparatedString() Function, 2. dbo.IsValueValid() Function, 3. dbo.IsValuesValid() Function, -- 4. dbo.IsValuesValid() Function - This function can be found in everly-prerequisites.sql -- ====================================================================================================================================== CREATE PROCEDURE Everly @Action varchar(10), --Actions to be performed on SQL by Everly - FETCH, INSERT, UPDATE, DELETE, CUSTOM, REVERSE (NEW ACTION), REVERSE-ID (NEW ACTION) @ColumnValues varchar(max) = NULL, --All Column Values arranged in order they were created in the table excluding Identity Columns @TableName varchar(100) = NULL, --The name of the table to perform the action on @Conditions varchar(max) = '', --The where clauses for the UPDATE, FETCH AND DELETE actions. @Optional varchar(max) = NULL AS BEGIN --Declare Variables to be used in Everly DECLARE @ColumnsList varchar(max), @ColumnsListExIdentity varchar(max), @ColumnsCount int, @ColumnsCountExIdentity int, @ColumnName varchar(100), @ColumnValue varchar(max), @IdentityColumn varchar(100), @ColumnDataType varchar(50), @ColumnsDataTypeExIdentity varchar(max), @ColumnsDataType varchar(max) DECLARE @Fetch nvarchar(max), @Insert nvarchar(max), @Update nvarchar(max), @Delete nvarchar(max), @Custom nvarchar(max), @Reverse nvarchar(max) DECLARE @ReturnValue varchar(max), @TableUpdateCount int, @IsTableValid int, @TableID int, @Count int, @OldColumnValues varchar(max) DECLARE @EverlyID int DECLARE @sColumns varchar(max), @xColumns varchar(max), @DSQL nvarchar(max), @ReturnExecValue varchar(max), @Param nvarchar(500), @xDataType varchar(50) --Initialize some varaibles to be used in Everly IF (@TableName = '' OR @TableName IS NULL) AND @Action = 'REVERSE' BEGIN SET @TableName = (Select Top 1 TableName from Everly_AuditTrail order by Id desc) END ELSE IF @TableName = '' AND @Action = 'REVERSE-ID' BEGIN SET @TableName = (Select Top 1 TableName from Everly_AuditTrail order by Id desc) END IF SUBSTRING(@ColumnValues,len(@ColumnValues),1) = ',' BEGIN Set @ColumnValues = SUBSTRING(@ColumnValues,1,len(@ColumnValues)-1) END SET @IsTableValid = (Select Count(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName) SELECT @ColumnsList = COALESCE(@ColumnsList + ',', '') + COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName ORDER BY ORDINAL_POSITION SELECT @ColumnsListExIdentity = COALESCE(@ColumnsListExIdentity + ',', '') + COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName AND COLUMNPROPERTY(object_id(TABLE_SCHEMA+'.'+TABLE_NAME), COLUMN_NAME, 'IsIdentity') <> 1 ORDER BY ORDINAL_POSITION SELECT @ColumnsDataType = COALESCE(@ColumnsDataType + ',', '') + DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName ORDER BY ORDINAL_POSITION SELECT @ColumnsDataTypeExIdentity = COALESCE(@ColumnsDataTypeExIdentity + ',', '') + DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName AND COLUMNPROPERTY(object_id(TABLE_SCHEMA+'.'+TABLE_NAME), COLUMN_NAME, 'IsIdentity') <> 1 ORDER BY ORDINAL_POSITION SET @ColumnsCount = (SELECT Count(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName) SET @ColumnsCountExIdentity = (SELECT Count(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName AND COLUMNPROPERTY(object_id(TABLE_SCHEMA+'.'+TABLE_NAME), COLUMN_NAME, 'IsIdentity') <> 1) SET @IdentityColumn = (SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMNPROPERTY(object_id(TABLE_SCHEMA+'.'+TABLE_NAME), COLUMN_NAME, 'IsIdentity') = 1 AND TABLE_NAME = @TableName) SET @Count = 1 --Install Everly_AuditTrail if it does not exists - This helps to track Everly actions and also to reverse everly actions IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'Everly_AuditTrail') BEGIN CREATE TABLE Everly_AuditTrail ( Id int NOT NULL PRIMARY KEY IDENTITY(1,1), [Action] varchar(50) NOT NULL, TableName varchar(50) NOT NULL, TableID varchar(50) NULL, ColumnValues varchar(max) NOT NULL, OldColumnValues varchar(max) NULL, TSQLStatement varchar(max) NOT NULL, Conditions varchar(max) NULL, RunStatus bit DEFAULT ((0)) NOT NULL, IsReversal bit DEFAULT ((0)) NOT NULL, DateEffected datetime NOT NULL DEFAULT GETDATE() ) END --This is to check if @TableName parameter is not empty IF @TableName = '' BEGIN SET @TableUpdateCount = 0 SET @ReturnValue = 'Table name parameter is empty' END --This is to check if the Table (@TableName) is valid or exists and has a column inside ELSE IF @IsTableValid = 0 BEGIN SET @TableUpdateCount = 0 SET @ReturnValue = 'Table name not valid' END --This is to check that @TableName parameter is existing ELSE IF @ColumnsCount = 0 AND @ColumnsList = '' BEGIN SET @TableUpdateCount = 0 SET @ReturnValue = 'Table does not exist' END --This is to check that condition is specified or Update or Delete action ELSE IF (@Action = 'UPDATE' OR @Action = 'DELETE') AND (@Conditions IS NULL OR @Conditions = '') BEGIN SET @TableUpdateCount = 0 SET @ReturnValue = 'Condition not specified for ' + @Action + ' action.' END --This runs if @TableName parameter is not empty and it is an existing table ELSE BEGIN --This is to run Select Statements IF @Action = 'FETCH' BEGIN IF @Conditions = '' BEGIN SET @Fetch = 'SELECT ' + @ColumnsList + ' FROM ' + @TableName --This is to insert into Everly_AuditTrail INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[TSQLStatement],[RunStatus],[DateEffected]) VALUES(@Action,@TableName,@ColumnsList,@Fetch,0,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC (@Fetch) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Fetch action ran successfully on ' + @TableName + ' !' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1 WHERE Id = @EverlyID END ELSE BEGIN SET @Fetch = 'SELECT ' + @ColumnsList + ' FROM ' + @TableName + ' WHERE ' + @Conditions --This is to insert into Everly_AuditTrail INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[TSQLStatement],[RunStatus],[DateEffected]) VALUES(@Action,@TableName,@ColumnsList,@Fetch,0,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC (@Fetch) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Fetch action with condition ran successfully on ' + @TableName + ' !' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1,Conditions = @Conditions WHERE Id = @EverlyID END END --This is to run Insert Statements ELSE IF @Action = 'INSERT' BEGIN --Check that all values are valid IF dbo.IsValuesValid(@ColumnValues,@ColumnsDataTypeExIdentity,@ColumnsCountExIdentity) = 1 BEGIN SET @Insert = 'INSERT INTO ' + @TableName + '(' + @ColumnsListExIdentity + ') VALUES (' + REPLACE(@ColumnValues,'"','''') + ') SELECT @TableID = SCOPE_IDENTITY()' --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[TSQLStatement],[RunStatus],[DateEffected]) VALUES(@Action,@TableName,@ColumnValues,@Insert,0,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC sp_executesql @Insert, N'@TableID int OUTPUT', @TableID OUTPUT SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Insert action ran successfully on ' + @TableName + ' !' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1, TableID = @TableID WHERE Id = @EverlyID END ELSE BEGIN SET @TableUpdateCount = 1 SET @ReturnValue = dbo.IsValuesValid_Description(@ColumnValues,@ColumnsDataTypeExIdentity,@ColumnsCountExIdentity) END END --This is to run Update statements ELSE IF @Action = 'UPDATE' BEGIN --Check that all values are valid IF dbo.IsValuesValid(@ColumnValues,@ColumnsDataTypeExIdentity,@ColumnsCountExIdentity) = 1 BEGIN SET @Update = 'UPDATE ' + @TableName + ' SET ' WHILE @Count <> @ColumnsCount BEGIN SET @ColumnValue = dbo.Fetch_ReturnCommaSeparatedString(@ColumnValues,@Count) SET @ColumnName = dbo.Fetch_ReturnCommaSeparatedString(@ColumnsListExIdentity,@Count) SET @Update = @Update + @ColumnName + ' = ' + @ColumnValue + ', ' Set @Count = @Count + 1 END SET @Update = SUBSTRING(@Update,0,len(@Update)) SET @Update = REPLACE(@Update,'"','''') SET @Update = @Update + ' WHERE ' + @Conditions SET @Count = 1 SET @sColumns = '' --This is used to get the existing values in the row about to be updated. It is be used during Everly REVERSE action WHILE @Count <= @ColumnsCountExIdentity BEGIN SET @xColumns = dbo.Fetch_ReturnCommaSeparatedString(@ColumnsListExIdentity,@Count) SET @xDataType = (Select DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName AND COLUMN_NAME = @xColumns) IF @xDataType = 'int' OR @xDataType = 'float' OR @xDataType = 'bit' BEGIN SET @sColumns = @sColumns + 'isnull(cast(' + @xColumns + ' as varchar),'''')+'',''+' END ELSE IF @xDataType = 'datetime' BEGIN SET @sColumns = @sColumns + '''"''+isnull(cast(' + @xColumns + ' as varchar),'''')+''",''+' END ELSE BEGIN SET @sColumns = @sColumns + '''"''+isnull(' + @xColumns + ','''')+''",''+' END Set @Count = @Count + 1 END IF SUBSTRING(@sColumns,len(@sColumns)-2,len(@sColumns)) = '+,+' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-3) END ELSE BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END IF SUBSTRING(@sColumns,len(@sColumns),1) = ',' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END SET @DSQL = 'SELECT @ReturnExecValueOUT = ' + @sColumns + ' FROM ' + @TableName + ' WHERE ' + @Conditions SET @Param = N'@ReturnExecValueOUT varchar(max) OUTPUT' EXEC sp_executesql @DSQL, @Param, @ReturnExecValueOUT=@ReturnExecValue OUTPUT --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[OldColumnValues],[TSQLStatement],[Conditions],[RunStatus],[DateEffected]) VALUES(@Action,@TableName,@ColumnValues,@ReturnExecValue,@Update,@Conditions,0,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC (@Update) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Update action ran successfully on ' + @TableName + ' !' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1, Conditions = @Conditions WHERE Id = @EverlyID END ELSE BEGIN SET @TableUpdateCount = 1 SET @ReturnValue = dbo.IsValuesValid_Description(@ColumnValues,@ColumnsDataTypeExIdentity,@ColumnsCountExIdentity) END END --This is to run Delete statements ELSE IF @Action = 'DELETE' BEGIN IF @Conditions = '' BEGIN SET @TableUpdateCount = 0 SET @ReturnValue = '@Conditions parameter cannot be empty for a delete statement!' END ELSE BEGIN IF @Conditions = 'ALL' BEGIN Set @Delete = 'DELETE FROM ' + @TableName END ELSE IF @Conditions <> '' BEGIN Set @Delete = 'DELETE FROM ' + @TableName + ' WHERE ' + @Conditions END SET @Count = 1 SET @sColumns = '' --This is used to get the existing values in the row about to be updated/deleted. It is be used during Everly REVERSE action WHILE @Count <= @ColumnsCountExIdentity BEGIN SET @xColumns = dbo.Fetch_ReturnCommaSeparatedString(@ColumnsListExIdentity,@Count) SET @xDataType = (Select DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @TableName AND COLUMN_NAME = @xColumns) IF @xDataType = 'int' OR @xDataType = 'float' OR @xDataType = 'bit' BEGIN SET @sColumns = @sColumns + 'isnull(cast(' + @xColumns + ' as varchar),'''')+'',''+' END ELSE IF @xDataType = 'datetime' BEGIN SET @sColumns = @sColumns + '''"''+isnull(cast(' + @xColumns + ' as varchar),'''')+''",''+' END ELSE BEGIN SET @sColumns = @sColumns + '''"''+isnull(' + @xColumns + ','''')+''",''+' END Set @Count = @Count + 1 END IF SUBSTRING(@sColumns,len(@sColumns)-2,len(@sColumns)) = '+,+' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-3) END ELSE BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END IF SUBSTRING(@sColumns,len(@sColumns),1) = ',' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END SET @DSQL = 'SELECT @ReturnExecValueOUT = ' + @sColumns + ' FROM ' + @TableName + ' WHERE ' + @Conditions SET @Param = N'@ReturnExecValueOUT varchar(max) OUTPUT' EXEC sp_executesql @DSQL, @Param, @ReturnExecValueOUT=@ReturnExecValue OUTPUT --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[OldColumnValues],[TSQLStatement],[RunStatus],[DateEffected]) VALUES(@Action,@TableName,@ColumnsList,@ReturnExecValue,@Delete,0,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC (@Delete) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Delete action with condition ran successfully on ' + @TableName + ' !' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1, Conditions = @Conditions WHERE Id = @EverlyID END END --This is to run custom queries ELSE IF @Action = 'CUSTOM' BEGIN IF @Conditions = '' BEGIN Set @Custom = @ColumnValues --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[TSQLStatement],[RunStatus],[DateEffected]) VALUES(@Action,@TableName,@ColumnsList,@Fetch,0,getdate()) SET @EverlyID = SCOPE_IDENTITY() PRINT (@Custom) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Custom action ran successfully!' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1 WHERE Id = @EverlyID END ELSE BEGIN Set @Custom = @ColumnValues + ' WHERE ' + @Conditions --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[TSQLStatement],[RunStatus],[DateEffected]) VALUES(@Action,@TableName,@ColumnsList,@Fetch,0,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC (@Custom) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Custom action with condition ran successfully!' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1 WHERE Id = @EverlyID END END ELSE IF @Action = 'REVERSE' BEGIN --Declare and gets the values of the last action run to use to reverse DECLARE @LastEverlyID int, @LastEverlyAction varchar(10), @LastEverlyTable varchar(50), @LastEverlyColumnValues varchar(max), @LastEverlyConditions varchar(max) SET @LastEverlyID = (Select Top 1 TableID from Everly_AuditTrail order by Id desc) SET @LastEverlyAction = (Select Top 1 [Action] from Everly_AuditTrail order by Id desc) SET @LastEverlyTable = (Select Top 1 TableName from Everly_AuditTrail order by Id desc) SET @IdentityColumn = (SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMNPROPERTY(object_id(TABLE_SCHEMA+'.'+TABLE_NAME), COLUMN_NAME, 'IsIdentity') = 1 AND TABLE_NAME = @LastEverlyTable) SET @LastEverlyColumnValues = (Select Top 1 OldColumnValues from Everly_AuditTrail order by Id desc) SET @LastEverlyConditions = (Select Top 1 Conditions from Everly_AuditTrail order by Id desc) IF SUBSTRING(@LastEverlyColumnValues,len(@LastEverlyColumnValues),1) = ',' BEGIN Set @LastEverlyColumnValues = SUBSTRING(@LastEverlyColumnValues,1,len(@LastEverlyColumnValues)-1) END IF @LastEverlyAction = 'INSERT' BEGIN SET @Reverse = 'DELETE FROM ' + @LastEverlyTable + ' WHERE ' + @IdentityColumn + ' = ' + cast(@LastEverlyID as varchar) SET @Count = 1 SET @sColumns = '' --This is used to get the existing values in the row about to be updated/deleted. It is be used during Everly REVERSE action WHILE @Count <= @ColumnsCountExIdentity BEGIN SET @xColumns = dbo.Fetch_ReturnCommaSeparatedString(@ColumnsListExIdentity,@Count) SET @xDataType = (Select DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @LastEverlyTable AND COLUMN_NAME = @xColumns) IF @xDataType = 'int' OR @xDataType = 'float' OR @xDataType = 'bit' BEGIN SET @sColumns = @sColumns + 'isnull(cast(' + @xColumns + ' as varchar),'''')+'',''+' END ELSE IF @xDataType = 'datetime' BEGIN SET @sColumns = @sColumns + '''"''+isnull(cast(' + @xColumns + ' as varchar),'''')+''",''+' END ELSE BEGIN SET @sColumns = @sColumns + '''"''+isnull(' + @xColumns + ','''')+''",''+' END Set @Count = @Count + 1 END IF SUBSTRING(@sColumns,len(@sColumns)-2,len(@sColumns)) = '+,+' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-3) END ELSE BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END IF SUBSTRING(@sColumns,len(@sColumns),1) = ',' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END SET @DSQL = 'SELECT @ReturnExecValueOUT = ' + @sColumns + ' FROM ' + @TableName + ' WHERE ' + @IdentityColumn + ' = ' + cast(@LastEverlyID as varchar) SET @Param = N'@ReturnExecValueOUT varchar(max) OUTPUT' EXEC sp_executesql @DSQL, @Param, @ReturnExecValueOUT=@ReturnExecValue OUTPUT --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[TableID],[ColumnValues],[TSQLStatement],[RunStatus],[IsReverse],[DateEffected]) VALUES('DELETE',@LastEverlyTable,@LastEverlyID,@ReturnExecValue,@Reverse,0,1,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC (@Reverse) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Everly reverse performed successfully on ' + @LastEverlyTable + ' !' UPDATE Everly_AuditTrail SET RunStatus = 1 WHERE Id = @EverlyID END ELSE IF @LastEverlyAction = 'DELETE' BEGIN SET @Reverse = 'INSERT INTO ' + @LastEverlyTable + '(' + @ColumnsListExIdentity + ') VALUES (' + REPLACE(@LastEverlyColumnValues,'"','''') + ') SELECT @TableID = SCOPE_IDENTITY()' --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[TSQLStatement],[RunStatus],[IsReverse],[DateEffected]) VALUES('INSERT',@TableName,@LastEverlyColumnValues,@Reverse,0,1,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC sp_executesql @Reverse, N'@TableID int OUTPUT', @TableID OUTPUT SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Everly reverse performed successfully on ' + @LastEverlyTable + ' !' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1, TableID = @TableID WHERE Id = @EverlyID END ELSE IF @LastEverlyAction = 'UPDATE' BEGIN SET @Reverse = 'UPDATE ' + @LastEverlyTable + ' SET ' WHILE @Count <= @ColumnsCountExIdentity BEGIN SET @ColumnValue = dbo.Fetch_ReturnCommaSeparatedString(@LastEverlyColumnValues,@Count) SET @ColumnName = dbo.Fetch_ReturnCommaSeparatedString(@ColumnsListExIdentity,@Count) SET @Reverse = @Reverse + @ColumnName + ' = ' + @ColumnValue + ', ' Set @Count = @Count + 1 END SET @Reverse = SUBSTRING(@Reverse,0,len(@Reverse)) SET @Reverse = REPLACE(@Reverse,'"','''') SET @Reverse = @Reverse + ' WHERE ' + @LastEverlyConditions SET @Count = 1 SET @sColumns = '' --This is used to get the existing values in the row about to be updated/deleted. It is be used during Everly REVERSE action WHILE @Count <= @ColumnsCountExIdentity BEGIN SET @xColumns = dbo.Fetch_ReturnCommaSeparatedString(@ColumnsListExIdentity,@Count) SET @xDataType = (Select DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @LastEverlyTable AND COLUMN_NAME = @xColumns) IF @xDataType = 'int' OR @xDataType = 'float' OR @xDataType = 'bit' BEGIN SET @sColumns = @sColumns + 'isnull(cast(' + @xColumns + ' as varchar),'''')+'',''+' END ELSE IF @xDataType = 'datetime' BEGIN SET @sColumns = @sColumns + '''"''+isnull(cast(' + @xColumns + ' as varchar),'''')+''",''+' END ELSE BEGIN SET @sColumns = @sColumns + '''"''+isnull(' + @xColumns + ','''')+''",''+' END Set @Count = @Count + 1 END IF SUBSTRING(@sColumns,len(@sColumns)-2,len(@sColumns)) = '+,+' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-3) END ELSE BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END IF SUBSTRING(@sColumns,len(@sColumns),1) = ',' BEGIN Set @sColumns = SUBSTRING(@sColumns,1,len(@sColumns)-1) END SET @DSQL = 'SELECT @ReturnExecValueOUT = ' + @sColumns + ' FROM ' + @LastEverlyTable + ' WHERE ' + @LastEverlyConditions SET @Param = N'@ReturnExecValueOUT varchar(max) OUTPUT' EXEC sp_executesql @DSQL, @Param, @ReturnExecValueOUT=@ReturnExecValue OUTPUT SET @LastEverlyColumnValues = (Select Top 1 ColumnValues from Everly_AuditTrail order by Id desc) --This is to insert into Everly_AuditTrail--- INSERT INTO [dbo].[Everly_AuditTrail]([Action],[TableName],[ColumnValues],[OldColumnValues],[TSQLStatement],[Conditions],[RunStatus],[IsReverse],[DateEffected]) VALUES('UPDATE',@LastEverlyTable,@LastEverlyColumnValues,@ReturnExecValue,@Reverse,@LastEverlyConditions,0,1,getdate()) SET @EverlyID = SCOPE_IDENTITY() EXEC (@Reverse) SET @TableUpdateCount = @@ROWCOUNT SET @ReturnValue = 'Everly reverse performed successfully on ' + @LastEverlyTable + ' !' --This is to update the Audit Trail after successful run of the Everly action UPDATE Everly_AuditTrail SET RunStatus = 1 WHERE Id = @EverlyID END END ELSE IF @Action = '' BEGIN SET @TableUpdateCount = 0 SET @ReturnValue = '@Action parameter is empty' END ELSE BEGIN SET @TableUpdateCount = 0 SET @ReturnValue = '@Action parameter is not valid - Valid values are INSERT or UPDATE or FETCH or DELETE or CUSTOM.' END END END SELECT @ReturnValue EverlyMessage, @TableUpdateCount EverlyActionCount
<reponame>fossabot/bbs CREATE TABLE threads ( id SERIAL PRIMARY KEY, last_reply_no INTEGER NOT NULL, bump TIMESTAMP NOT NULL ); CREATE TABLE messages ( thread_id INTEGER NOT NULL, no INTEGER NOT NULL, name VARCHAR, trip VARCHAR, sender TEXT NOT NULL, -- IP address or telegram id text TEXT NOT NULL, ts TIMESTAMP NOT NULL, PRIMARY KEY (thread_id, no), FOREIGN KEY (thread_id) REFERENCES threads(id) ); -- vim: sw=4 ts=4 et:
/* Write your T-SQL query statement below */ SELECT t2.*, COALESCE(t1.attended_exams, 0) AS attended_exams FROM ( SELECT DISTINCT students.student_id, student_name, subject_name, COUNT(*) OVER (PARTITION BY students.student_id, subject_name) AS attended_exams FROM students LEFT JOIN examinations ON students.student_id = examinations.student_id ) AS t1 RIGHT JOIN ( SELECT students.student_id, students.student_name, subjects.subject_name FROM students, subjects ) AS t2 ON t1.student_id = t2.student_id and t1.subject_name = t2.subject_name ORDER BY student_id, subject_name
<gh_stars>10-100 # Write your MySQL query statement below select d.Name as 'Department', e1.Name as 'Employee', e1.Salary FROM Employee e1 JOIN Department d ON e1.DepartmentId = d.Id WHERE Salary IN (SELECT Salary FROM Employee e2 WHERE e1.DepartmentId = e2.DepartmentId order by Salary LIMIT 3);
use payroll execute p_add_time_entry @employee_id=62, @entry_date='2020-01-22 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=38, @entry_date='2020-01-22 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=29, @entry_date='2020-01-22 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=18, @entry_date='2020-01-22 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=58, @entry_date='2020-01-22 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=26, @entry_date='2020-01-22 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=55, @entry_date='2020-01-22 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=34, @entry_date='2020-01-22 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=31, @entry_date='2020-01-22 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=61, @entry_date='2020-01-22 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=28, @entry_date='2020-01-22 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=66, @entry_date='2020-01-22 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=20, @entry_date='2020-01-22 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=39, @entry_date='2020-01-22 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=50, @entry_date='2020-01-22 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=47, @entry_date='2020-01-22 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=44, @entry_date='2020-01-22 00:00:00', @hours_worked=8 execute p_add_time_entry @employee_id=33, @entry_date='2020-01-22 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=36, @entry_date='2020-01-22 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=23, @entry_date='2020-01-22 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=22, @entry_date='2020-01-22 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=59, @entry_date='2020-01-22 00:00:00', @hours_worked=6
-- 1. Listing details of each employee: -- employee number, last_name, first_name, sex, salary -- joing employees and salaries on employee number select e.emp_no, e.last_name, e.first_name, e.sex, s.salary from employees as e join salaries as s on e.emp_no = s.emp_no; -- 2. listing first name, last name, and hire date for employees who were hired in 1986 SELECT first_name,last_name,hire_date FROM employees WHERE EXTRACT(year FROM "hire_date") = 1986; -- 3. list the manager of each department with the following information: -- department number, department name, manager's employee number, last name, first name -- join department manager and department on department number, department manager and employees on employee number select dm.dept_no, d.dept_name, e.emp_no, e.last_name, e.first_name from dept_manager dm join department d on dm.dept_no = d.dept_no join employees e on dm.emp_no = e.emp_no; -- 4. listing the department of each with the folowing information: employee number, last name, first name, and department -- join employees and department employee on emp number, employees and department on department number select e.emp_no, e.last_name, e.first_name, d.dept_name from employees e join dept_emp de on e.emp_no = de.emp_no join department d on de.dep_no = d.dept_no; -- 5. list first name, last name, sex for employees whose first name is "Hercules" and last name begins with "B" select e.first_name, e.last_name, e.sex from employees e where e.first_name = 'Hercules' and e.last_name like 'B%'; -- 6. list all employees in the sales department, including their employee number, last name, first name, and department name select e.emp_no, e.last_name, e.first_name, e.emp_no, d.dept_name from employees e join dept_emp de on e.emp_no = de.emp_no join department d on de.dep_no = d.dept_no where d.dept_name = 'Sales'; -- 7. List all employees in the sales and development departments, including their employee number, last name, first name, and department name select e.emp_no, e.last_name, e.first_name, e.emp_no, d.dept_name from employees e join dept_emp de on e.emp_no = de.emp_no join department d on de.dep_no = d.dept_no where d.dept_name = 'Sales' or d.dept_name = 'Development' order by d.dept_name desc; -- 8. in descending order, list the frequency count of employee last names select e.last_name, count(e.last_name) as "LastNameCount" from employees e group by e.last_name order by "LastNameCount" desc;
<reponame>Ambal/mangos ALTER TABLE db_version CHANGE COLUMN required_11679_01_mangos_spell_proc_event required_11680_01_mangos_spell_proc_event bit; DELETE FROM spell_proc_event WHERE entry = 64824; INSERT INTO spell_proc_event VALUES (64824, 0x00, 7, 0x00200000, 0x00200000, 0x00200000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0);
<filename>Basic Queries Qustions/4.sql USE SOCCER_DB GO -- 4. Write a query in SQL to find the number of matches ended with a result. (match_mast) SELECT COUNT(match_no) AS 'number of matches ended with a result' FROM match_mast --WHERE results <>'DRAW'; WHERE results='WIN'; --SELECT * FROM match_mast --GO
USE recd; truncate table feature_code_to_license; insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010087361,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010087361,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010611649,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010611649,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005039010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005039010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016575426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016575426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001907554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001907554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013437154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013437154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000338978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000338978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005579778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005579778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009250882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009250882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015546754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015546754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004018658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004018658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006119682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006119682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011360610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011360610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004549314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004549314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009789986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009789986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013461090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013461090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016085602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016085602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000363426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000363426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008228738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008228738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006659042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006659042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014516002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014516002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002472770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002472770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003528706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003528706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007199810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007199810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012440994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012440994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010871170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010871170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012971650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012971650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001443554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001443554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004068066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004068066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008785506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008785506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003553154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003553154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006169570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006169570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015081218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015081218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000414882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000414882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008280194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008280194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011951298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011951298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015622146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015622146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014052802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014052802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000954626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000954626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006195554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006195554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004625730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004625730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016161506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016161506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008304130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008304130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003063682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003063682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005164834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005164834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000980098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000980098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015132674,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015132674,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002034754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002034754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007275938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007275938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005706114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005706114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010947042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010947042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009377218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009377218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001519970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001519970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008861410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008861410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016726722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016726722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007814658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007814658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002059202,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002059202,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000489250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000489250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013073538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013073538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003115138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003115138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002600354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002600354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006271458,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006271458,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012566818,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012566818,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003655010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003655010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000514722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000514722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007325346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007325346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012566146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012566146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014667298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014667298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001569378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001569378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010481538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010481538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008911842,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008911842,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000792323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000792323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014946435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014946435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007089187,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007089187,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010760291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010760291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001333731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001333731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008144355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008144355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005004579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005004579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011815203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011815203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003958083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003958083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011299523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011299523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009729571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009729571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005543811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005543811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012354435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012354435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016025539,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016025539,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000302851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000302851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002927363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002927363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011840675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011840675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013941955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013941955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016566691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016566691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014481059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014481059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002952835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002952835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006623939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006623939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012911203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012911203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008725443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008725443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011349955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011349955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016590627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016590627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001922883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001922883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014507043,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014507043,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000354307,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000354307,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001409123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001409123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011891107,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011891107,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015562211,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015562211,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002464035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002464035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007704835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007704835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015046275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015046275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000893667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000893667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000378755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000378755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008244195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008244195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006674371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006674371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010345219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010345219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015586147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015586147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002489507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002489507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016642083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016642083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003544163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003544163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004591011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004591011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007215523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007215523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010886627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010886627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016127427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016127427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003029251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003029251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014556803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014556803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001458883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001458883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005129731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005129731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015096707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015096707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003568611,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003568611,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007239459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007239459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002000035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002000035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008295651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008295651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011966499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011966499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013013091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013013091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000970083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000970083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016176835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016176835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008319587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008319587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014607235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014607235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015662051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015662051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006749987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006749987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005180163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005180163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008851267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008851267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012531715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012531715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003105155,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003105155,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005721571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005721571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001535299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001535299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007830147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007830147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008876739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008876739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003644003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003644003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013602755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013602755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005745507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005745507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008370019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008370019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009417891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009417891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003130595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003130595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006801443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006801443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010472547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010472547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015713347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015713347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014143907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014143907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002615683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002615683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006286787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006286787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012582147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012582147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013628739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013628739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016253251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016253251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007078532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007078532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015990308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015990308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014420484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014420484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006563748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006563748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008665028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008665028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013905700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013905700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011290788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011290788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003433668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003433668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010775620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010775620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009206180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009206180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012877284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012877284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001349060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001349060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003973572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003973572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003972772,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003972772,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009744900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009744900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014985828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014985828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001888164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001888164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012369892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012369892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016040740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016040740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012901220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012901220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015527108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015527108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000859236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000859236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009771396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009771396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013442500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013442500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000344324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000344324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010826052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010826052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002968292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002968292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010310244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010310244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007694308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007694308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008740644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008740644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016605956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016605956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003508036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003508036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001939620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001939620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005095812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005095812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011906436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011906436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004049188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004049188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006150468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006150468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011390628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011390628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004579844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004579844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005634660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005634660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016116644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016116644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006689572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006689572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010360676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010360676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005121252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005121252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006175940,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006175940,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009846788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009846788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010901956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010901956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003044708,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003044708,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001474884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001474884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001474084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001474084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002013988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002013988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007254788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007254788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009871204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009871204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000445668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000445668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008310980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008310980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009357316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009357316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004125092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004125092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007796196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007796196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014083332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014083332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015138148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015138148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004655748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004655748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008334916,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008334916,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006765476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006765476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012006276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012006276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014622692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014622692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005195620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005195620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012547172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012547172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010977348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010977348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002065796,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002065796,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005736900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005736900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009407748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009407748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014648676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014648676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001549988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001549988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004174500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004174500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011516452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011516452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016757252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016757252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007330692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007330692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009947108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009947108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002089732,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002089732,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000520036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000520036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013104324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013104324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015728836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015728836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011280805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011280805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002368997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002368997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016005797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016005797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011819525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011819525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001338277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001338277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006579077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006579077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005009381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005009381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010250181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010250181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008680229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008680229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012360933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012360933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001879045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001879045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009221509,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009221509,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012892613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012892613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005035365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005035365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007659877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007659877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008705701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008705701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016571013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016571013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002418405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002418405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006089253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006089253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015001157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015001157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013431717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013431717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008199109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008199109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012916549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012916549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002958149,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002958149,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011871461,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011871461,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000874565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000874565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004545925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004545925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009786853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009786853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013457701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013457701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007170405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007170405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010840741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010840741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014511845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014511845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010325573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010325573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000899013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000899013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007709637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007709637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004569861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004569861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001954949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001954949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005626053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005626053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010866725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010866725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012968005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012968005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005111269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005111269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015592741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015592741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002494821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002494821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006165157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006165157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005649989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005649989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009321349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009321349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016131973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016131973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008274725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008274725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014048389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014048389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002520293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002520293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006191141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006191141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004621797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004621797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007246309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007246309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016157957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016157957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009346789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009346789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010401477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010401477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013017637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013017637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005160517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005160517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015127493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015127493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003599141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003599141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005700421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005700421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008326181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008326181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009372773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009372773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013044133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013044133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015668645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015668645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004140421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004140421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007811525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007811525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006241573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006241573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001000101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001000101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002054789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002054789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003109445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003109445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002594661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002594661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014124261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014124261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016748773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016748773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001026085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001026085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004697189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004697189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012562501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012562501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010993061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010993061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014664165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014664165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001565317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001565317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004189829,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004189829,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007860933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007860933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003412902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003412902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007084006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007084006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001843046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001843046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000273222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000273222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008139942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008139942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015481894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015481894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011296134,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011296134,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013912550,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013912550,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014967238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014967238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006055174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006055174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016021126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016021126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000298694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000298694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002923206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002923206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001353606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001353606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003464358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003464358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012376262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012376262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016047110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016047110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001894502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001894502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010806662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010806662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009236966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009236966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001379590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001379590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004004102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004004102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008721030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008721030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016586470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016586470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002433734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002433734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011345510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011345510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009775686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009775686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001918950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001918950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005589798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005589798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011885414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011885414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000890278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000890278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009802182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009802182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012426694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012426694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000375110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000375110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010856070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010856070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014527174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014527174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006669926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006669926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000914214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000914214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004585318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004585318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003540102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003540102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010882054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010882054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009312358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009312358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011937222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011937222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015608070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015608070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016662886,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016662886,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007750310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007750310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011421414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011421414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005665702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005665702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012476326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012476326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013007654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013007654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010392742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010392742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014063846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014063846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002535622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002535622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000965670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000965670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006206470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006206470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012502310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012502310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010932486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010932486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001504902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001504902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005176006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005176006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000990118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000990118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011471846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011471846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015142694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015142694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002044774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002044774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000476198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000476198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013059462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013059462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015683974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015683974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004155878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004155878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007826726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007826726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006256902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006256902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009928006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009928006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001015430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001015430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005741094,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005741094,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013598310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013598310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008365958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008365958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015707910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015707910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009953478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009953478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016764102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016764102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003665926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003665926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004712518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004712518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002888999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002888999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009176391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009176391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011285095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011285095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016525895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016525895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014956455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014956455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003428231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003428231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007099335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007099335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009715495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009715495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000289959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000289959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005530759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005530759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015497223,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015497223,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004500807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004500807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013412071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013412071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000313895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000313895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011850311,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011850311,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005039911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005039911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008711015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008711015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000855175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000855175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012391463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012391463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010821639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010821639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016062567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016062567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002964903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002964903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009252295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009252295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012923143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012923143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005065383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005065383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007689895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007689895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008736487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008736487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006120039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006120039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009791399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009791399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013462503,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013462503,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001934279,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001934279,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005605127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005605127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008229639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008229639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012948615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012948615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015573127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015573127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011386983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011386983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006146535,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006146535,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012441895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012441895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010871527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010871527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011926215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011926215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003014151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003014151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010356615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010356615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008786919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008786919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016652231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016652231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003554055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003554055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011411271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011411271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014568871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014568871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001470951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001470951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015623527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015623527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016678215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016678215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006195943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006195943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015107591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015107591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000440231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000440231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016162759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016162759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010408071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010408071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015648999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015648999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014079175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014079175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002550823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002550823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000466215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000466215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016188743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016188743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003090055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003090055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001520359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001520359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014103111,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014103111,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001005447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001005447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004676551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004676551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002060103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002060103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010973415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010973415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008356967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008356967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005217703,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005217703,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015183495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015183495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002085575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002085575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005756423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005756423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009427527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009427527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003140487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003140487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006811591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006811591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012052263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012052263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010482439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010482439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000794760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000794760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008651976,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008651976,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009706536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009706536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016517160,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016517160,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003419240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003419240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002904328,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002904328,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006575432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006575432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009191080,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009191080,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010245768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010245768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008675912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008675912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011300424,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011300424,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016541608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016541608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007114536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007114536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005544712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005544712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013401928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013401928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014458024,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014458024,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002415016,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002415016,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006086120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006086120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009756968,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009756968,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014997768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014997768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004515496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004515496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013427400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013427400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005055240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005055240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000870632,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000870632,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003495144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003495144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007165992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007165992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012406792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012406792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010837096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010837096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016077896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016077896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014508456,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014508456,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006651336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006651336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004034888,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004034888,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007705224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007705224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008751816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008751816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015047176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015047176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007190440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007190440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010861544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010861544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011917480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011917480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012964072,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012964072,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015588584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015588584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002490408,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002490408,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012457224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012457224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013503816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013503816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003029640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003029640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011941416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011941416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015612520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015612520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006700968,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006700968,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008802248,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008802248,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016667432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016667432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007241896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007241896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012482696,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012482696,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016153800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016153800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002000936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002000936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005672040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005672040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010912840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010912840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014584200,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014584200,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013014504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013014504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005157128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005157128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007781640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007781640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003594984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003594984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011451944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011451944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008321000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008321000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009367336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009367336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004134728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004134728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014094376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014094376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000481544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000481544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008346984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008346984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005206536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005206536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010447464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010447464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004691752,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004691752,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015173480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015173480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002076840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002076840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007317640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007317640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010988744,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010988744,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004186184,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004186184,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012043656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012043656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015714760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015714760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007857512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007857512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006287688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006287688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015198952,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015198952,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005509737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005509737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015991721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015991721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008134601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008134601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006564649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006564649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015476553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015476553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000810217,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000810217,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016532489,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016532489,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000295305,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000295305,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006590121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006590121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005020297,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005020297,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010261225,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010261225,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003973673,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003973673,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007644777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007644777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008691625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008691625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014987241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014987241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009232553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009232553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001375433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001375433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005046281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005046281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012903497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012903497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015528009,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015528009,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002430345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002430345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011342121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011342121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001914537,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001914537,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004530825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004530825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013442601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013442601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000344681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000344681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008209993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008209993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011881353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011881353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013982505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013982505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005070697,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005070697,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009797769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009797769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000885961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000885961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003510473,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003510473,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007181321,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007181321,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010852425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010852425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014523785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014523785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006666537,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006666537,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012953929,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012953929,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015062633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015062633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001964969,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001964969,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005635913,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005635913,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008260425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008260425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002505737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002505737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007746665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007746665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014034313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014034313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001990953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001990953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011956745,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011956745,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001475497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001475497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016682761,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016682761,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000960329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000960329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003584841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003584841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012498153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012498153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016169001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016169001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002016265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002016265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005687369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005687369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006742441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006742441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005172585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005172585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011467433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011467433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006226473,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006226473,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000471017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000471017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013053769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013053769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004151465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004151465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006767753,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006767753,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014109705,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014109705,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001011785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001011785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009924073,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009924073,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012548585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012548585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000497001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000497001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003121513,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003121513,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010977961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010977961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003120841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003120841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008893353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008893353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014134153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014134153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016244905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016244905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002092169,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002092169,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014675049,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014675049,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013105225,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013105225,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004986346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004986346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007610858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007610858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016522506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016522506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013382186,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013382186,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001853962,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001853962,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000284266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000284266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005525066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005525066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016007050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016007050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011820906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011820906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015493290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015493290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002395370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002395370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000825546,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000825546,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012361834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012361834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008176074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008176074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014463338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014463338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002935114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002935114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006605450,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006605450,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016572394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016572394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015002570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015002570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007145322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007145322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005575498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005575498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009247882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009247882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014488810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014488810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001390634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001390634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005061738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005061738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015543722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015543722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002445802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002445802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007686602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007686602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015028554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015028554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001929866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001929866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012411594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012411594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002984522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002984522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008225706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008225706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013997834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013997834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008758410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008758410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013484074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013484074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003011018,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003011018,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006681866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006681866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014023306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014023306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005111498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005111498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007736010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007736010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007221226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007221226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013508362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013508362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011948266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011948266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004090890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004090890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007761994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007761994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000951594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000951594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002006282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002006282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004622698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004622698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012488010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012488010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000435914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000435914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006731274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006731274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010402378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010402378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015643562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015643562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002545642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002545642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012513482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012513482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005703082,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005703082,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010428874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010428874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013045034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013045034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007812426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007812426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016723690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016723690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015153866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015153866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010967978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010967978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013584266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013584266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012022634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012022634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014125162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014125162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012563914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012563914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016234762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016234762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012048106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012048106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010478506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010478506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014149610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014149610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016774122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016774122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014943403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014943403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015998091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015998091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002900171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002900171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005516331,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005516331,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014428235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014428235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003955083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003955083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008672523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008672523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016537963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016537963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003439275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003439275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009726667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009726667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014967339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014967339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001869419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001869419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000299595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000299595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009211883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009211883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011836395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011836395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006595435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006595435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007650123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007650123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015508619,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015508619,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002410699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002410699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000840747,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000840747,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012377163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012377163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013424011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013424011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010807563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010807563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005051083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005051083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010291755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010291755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013962859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013962859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015017771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015017771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003489547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003489547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005592235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005592235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009263339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009263339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014504139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014504139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004030475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004030475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005077067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005077067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002461131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002461131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006131979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006131979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011372907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011372907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000375499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000375499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016097899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016097899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012958635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012958635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003000235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003000235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004587755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004587755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009828555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009828555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016124395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016124395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003026219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003026219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006697323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006697323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014038763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014038763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008797803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008797803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001995755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001995755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005666603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005666603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010907403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010907403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009337707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009337707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014578507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014578507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013009931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013009931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004106347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004106347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011448811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011448811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013549835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013549835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004638027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004638027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005692075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005692075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000451115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000451115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003075627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003075627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010418091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010418091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003616907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003616907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016199787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016199787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014629963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014629963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001532299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001532299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005202603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005202603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015169067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015169067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002071147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002071147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010983307,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010983307,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005742347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005742347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009413451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009413451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012037963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012037963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013085835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013085835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002612427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002612427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011524203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011524203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015195563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015195563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002097643,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002097643,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008130188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008130188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001319532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001319532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004990892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004990892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010231692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010231692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016527308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016527308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007100236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007100236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005531660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005531660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014443948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014443948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012874124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012874124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005016876,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005016876,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007641388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007641388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008687980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008687980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016553292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016553292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013412972,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013412972,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000315308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000315308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005556108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005556108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015522572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015522572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003994476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003994476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006610764,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006610764,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007666860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007666860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000856076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000856076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004527180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004527180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016063980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016063980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001395436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001395436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010307084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010307084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013978188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013978188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003505036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003505036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012416812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012416812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015033100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015033100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004045932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004045932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005092780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005092780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008763884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008763884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015574508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015574508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006147436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006147436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011388236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011388236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000390700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000390700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008256012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008256012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002501804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002501804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009843756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009843756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003556460,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003556460,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007227820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007227820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016139724,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016139724,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014569772,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014569772,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003041548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003041548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004095692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004095692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004627020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004627020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015109004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015109004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010922860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010922860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009353036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009353036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001497324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001497324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015649900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015649900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004121676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004121676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002552236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002552236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009894188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009894188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013565292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013565292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009378508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009378508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000466444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000466444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006762060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006762060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012003244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012003244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014104524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014104524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002576172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002576172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006247276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006247276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016730284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016730284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003632364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003632364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007303212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007303212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014645676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014645676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001547756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001547756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006788556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006788556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010459404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010459404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014130508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014130508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007842444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007842444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002086476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002086476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007327660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007327660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008382316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008382316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009430188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009430188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003935437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003935437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002365485,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002365485,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011277389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011277389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014948749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014948749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000796141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000796141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005521677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005521677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000280205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000280205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002904717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002904717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008145645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008145645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005006221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005006221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008677325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008677325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014458925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014458925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005547117,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005547117,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006601805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006601805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012889581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012889581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005032205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005032205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016567981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016567981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003470061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003470061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006086349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006086349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009242413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009242413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011866925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011866925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015538029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015538029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004009805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004009805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002441389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002441389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015024141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015024141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009783693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009783693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012408205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012408205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016079309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016079309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008222061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008222061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014508685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014508685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016618413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016618413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007191341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007191341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015048557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015048557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009293869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009293869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012964973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012964973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001436749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001436749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011403725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011403725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002491661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002491661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003546477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003546477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015074029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015074029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000406029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000406029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008271469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008271469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003031021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003031021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004085709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004085709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007756557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007756557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002517133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002517133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006188237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006188237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013530189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013530189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016154701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016154701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011968813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011968813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008828621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008828621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014069293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014069293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016693805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016693805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004642733,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004642733,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007267085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007267085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009369773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009369773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014610573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014610573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011994125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011994125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008854605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008854605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015665229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015665229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002567565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002567565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002051757,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002051757,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005722861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005722861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003106413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003106413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006777773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006777773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010448877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010448877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002591501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002591501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006262605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006262605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004694189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004694189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013606093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013606093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003647693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003647693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000507917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000507917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007318541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007318541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006803757,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006803757,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005233933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005233933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010474861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010474861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014145197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014145197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001047277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001047277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016769549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016769549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003409486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003409486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009181998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009181998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001324878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001324878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012854478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012854478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003950638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003950638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006051918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006051918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011293102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011293102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008160974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008160974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013933486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013933486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008692526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008692526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016557838,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016557838,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000835406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000835406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004507790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004507790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007132302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007132302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014474254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014474254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001376334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001376334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012904910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012904910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008717998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008717998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011342510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011342510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003485390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003485390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009772654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009772654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009257742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009257742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011882254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011882254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002456718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002456718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006127822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006127822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011368494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011368494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015039598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015039598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013469998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013469998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016094510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016094510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006666926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006666926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014524142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014524142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015578830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015578830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010337870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010337870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016633742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016633742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003535822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003535822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010877774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010877774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016119982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016119982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003022062,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003022062,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014550126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014550126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001452462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001452462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004076974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004076974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011418926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011418926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006177454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006177454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007232142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007232142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000421486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000421486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008286798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008286798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004100910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004100910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007772014,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007772014,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010388302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010388302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002532590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002532590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004633614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004633614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003072494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003072494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010929454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010929454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000986702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000986702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003611214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003611214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010954926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010954926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009385102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009385102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008870318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008870318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016735630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016735630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002583022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002583022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011494670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011494670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002067086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002067086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000497390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000497390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008362702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008362702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009409038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009409038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003121742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003121742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002606958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002606958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006279342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006279342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004709518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004709518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013621294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013621294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007333998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007333998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008388686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008388686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016246158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016246158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001316143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001316143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006556943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006556943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013898383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013898383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016522863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016522863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007096303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007096303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008152239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008152239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005012719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005012719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008683567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008683567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003965967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003965967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006067631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006067631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011308431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011308431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009738735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009738735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005552463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005552463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000310991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000310991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002935503,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002935503,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011847279,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011847279,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013948815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013948815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006091567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006091567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008707855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008707855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009762671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009762671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013435055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013435055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010818607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010818607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001392047,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001392047,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000876879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000876879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011357839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011357839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014514159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014514159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000361423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000361423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001415983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001415983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002472175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002472175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007712975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007712975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006143023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006143023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011383823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011383823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004573679,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004573679,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013485327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013485327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008252079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008252079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006682255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006682255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001441295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001441295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014024687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014024687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016649199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016649199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003037391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003037391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009324655,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009324655,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008809743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008809743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015105359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015105359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003576495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003576495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007247599,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007247599,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010918447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010918447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008302511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008302511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009349103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009349103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015644463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015644463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010405039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010405039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014076143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014076143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000977967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000977967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006218767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006218767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003087823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003087823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008328495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008328495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006758127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006758127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005188303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005188303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016724591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016724591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003626927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003626927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004673519,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004673519,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012538831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012538831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005729455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005729455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004167695,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004167695,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008885647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008885647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002598351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002598351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007324015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007324015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003137455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003137455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006808559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006808559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015720207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015720207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002360144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002360144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006032528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006032528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004462832,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004462832,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012328144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012328144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008142256,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008142256,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011813360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011813360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014429648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014429648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005002576,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005002576,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008672912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008672912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003440528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003440528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001870832,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001870832,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010782480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010782480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012885168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012885168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008698896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008698896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016564336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016564336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006082960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006082960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009754064,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009754064,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001896816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001896816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008191504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008191504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000866096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000866096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009778000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009778000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016588624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016588624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000352464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000352464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007163088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007163088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014505040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014505040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002977200,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002977200,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006648304,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006648304,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007702192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007702192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008748784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008748784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011373296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011373296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001946224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001946224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000376624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000376624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005102416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005102416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011913040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011913040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004057328,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004057328,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002487504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002487504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007728176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007728176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004589008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004589008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000402096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000402096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005128112,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005128112,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006182800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006182800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016664528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016664528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003566352,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003566352,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004612944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004612944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016150768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016150768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003052592,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003052592,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009339984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009339984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004107760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004107760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011449712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011449712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015120048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015120048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003591824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003591824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009879088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009879088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009364432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009364432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011988944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011988944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007804080,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007804080,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000993296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000993296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009905584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009905584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013576688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013576688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008343824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008343824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015685264,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015685264,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008874608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008874608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016739920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016739920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001017744,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001017744,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002072400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002072400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003128496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003128496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014656560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014656560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001558640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001558640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004183152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004183152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007854512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007854512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011525616,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011525616,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007339344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007339344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013626096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013626096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012849041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012849041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015473553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015473553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006047985,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006047985,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012343345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012343345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016014449,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016014449,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000292273,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000292273,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001346929,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001346929,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006587729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006587729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013929169,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013929169,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016038897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016038897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012900497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012900497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001372401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001372401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007667761,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007667761,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016579665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016579665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002427313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002427313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015010065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015010065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013440369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013440369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008206993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008206993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002966033,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002966033,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009794737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009794737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012419249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012419249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013465841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013465841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000367665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000367665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016090193,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016090193,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002992529,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002992529,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006663633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006663633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008764785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008764785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016630097,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016630097,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000906897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000906897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007717521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007717521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011388625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011388625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009304017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009304017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014544689,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014544689,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015600881,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015600881,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007743505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007743505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011414609,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011414609,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015085969,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015085969,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012469521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012469521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009330001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009330001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000417425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000417425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008282865,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008282865,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006713041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006713041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014054993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014054993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000957329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000957329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009869105,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009869105,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016679729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016679729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004629681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004629681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012494993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012494993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005169585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005169585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010410385,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010410385,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015135377,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015135377,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003607281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003607281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002037457,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002037457,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005708305,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005708305,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009379633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009379633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012004145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012004145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009920561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009920561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015161361,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015161361,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002063441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002063441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004680113,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004680113,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005734801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005734801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013592017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013592017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015700721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015700721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002602545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002602545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008889937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008889937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014131121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014131121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016755633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016755633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006814929,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006814929,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010485777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010485777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003936338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003936338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016519474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016519474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007091890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007091890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009708178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009708178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001850930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001850930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000281106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000281106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009193394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009193394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012864498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012864498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002390834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002390834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007631634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007631634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013920434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013920434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004493362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004493362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008173042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008173042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011843890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011843890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005032594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005032594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010273522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010273522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014999538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014999538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016054226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016054226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001901362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001901362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009244850,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009244850,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001387730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001387730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007683090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007683090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008729682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008729682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002442642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002442642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009784594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009784594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015025522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015025522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008222450,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008222450,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011893298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011893298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007707538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007707538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015564754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015564754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000896882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000896882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006137682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006137682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009810066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009810066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013481170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013481170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007193618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007193618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010864722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010864722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003007986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003007986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010349938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010349938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008780114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008780114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016644786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016644786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007732978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007732978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003546706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003546706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005648370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005648370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009319218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009319218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012990322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012990322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011945106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011945106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016670770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016670770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002518034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002518034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006189138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006189138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000433426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000433426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005674354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005674354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009344690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009344690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013015794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013015794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008298194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008298194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015640146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015640146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009884434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009884434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003597138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003597138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007269522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007269522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016181298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016181298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001513554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001513554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004138290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004138290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000998770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000998770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015150834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015150834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002052658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002052658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000483314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000483314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005208850,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005208850,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015690578,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015690578,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007834866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007834866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015176818,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015176818,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013606994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013606994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004695442,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004695442,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016231730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016231730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006804146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006804146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003410899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003410899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004457235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004457235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012322675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012322675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014425235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014425235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002897139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002897139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006567987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006567987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009184275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009184275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010239091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010239091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008669491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008669491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003436883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003436883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007107219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007107219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013394483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013394483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000296563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000296563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008161875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008161875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009208723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009208723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007647091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007647091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006077267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006077267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011319475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011319475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013935763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013935763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016045491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016045491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000323059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000323059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008188371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008188371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011859219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011859219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005048051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005048051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010828755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010828755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001916691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001916691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002971507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002971507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006643891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006643891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001402931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001402931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005074035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005074035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006128947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006128947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007183635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007183635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013470387,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013470387,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001942163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001942163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008237779,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008237779,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011908627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011908627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015579731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015579731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004051891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004051891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009825523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009825523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012450035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012450035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000398451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000398451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011935123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011935123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001453363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001453363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010365267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010365267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016660115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016660115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001992595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001992595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005663699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005663699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013005651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013005651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001478835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001478835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015631411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015631411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016686099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016686099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003588179,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003588179,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006204851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006204851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009360019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009360019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006743571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006743571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002557939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002557939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000988115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000988115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012524403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012524403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003613875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003613875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000474355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000474355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001529267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001529267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010441171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010441171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014112019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014112019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001014099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001014099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004684435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004684435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015166163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015166163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007308915,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007308915,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014651379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014651379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012034931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012034931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004179091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004179091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009951347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009951347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005765587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005765587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002886996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002886996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011798260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011798260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000801364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000801364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008658836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008658836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004472692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004472692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012338004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012338004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014440692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014440692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001342516,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001342516,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013925780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013925780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014980436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014980436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007122676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007122676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005552852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005552852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013409812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013409812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014464628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014464628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000311892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000311892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001366964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001366964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012895028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012895028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015519540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015519540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007662420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007662420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006094004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006094004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009765108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009765108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013436308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013436308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000338388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000338388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002962900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002962900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008203572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008203572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002447092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002447092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008734228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008734228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000877492,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000877492,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007173108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007173108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006659220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006659220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009275636,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009275636,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001418260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001418260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016626164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016626164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009815380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009815380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010869428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010869428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013485716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013485716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001957620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001957620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012970932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012970932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015595444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015595444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004067220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004067220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007738324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007738324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014025588,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014025588,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006169748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006169748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004600052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004600052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014566868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014566868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015621428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015621428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004623988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004623988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007248500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007248500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016160660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016160660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002008052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002008052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013022388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013022388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001494164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001494164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016701556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016701556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003603892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003603892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013562132,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013562132,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005704372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005704372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008328884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008328884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009375476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009375476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010430388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010430388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007300308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007300308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010971156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010971156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012025972,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012025972,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003114420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003114420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008886548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008886548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014127476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014127476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015181364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015181364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007324244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007324244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013096756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013096756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016777460,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016777460,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007603253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007603253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006033429,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006033429,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016000373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016000373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006572789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006572789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015484437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015484437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009728981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009728981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016539605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016539605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013399829,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013399829,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010784917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010784917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014456021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014456021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013941237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013941237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016565589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016565589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014995125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014995125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005568053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005568053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009239157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009239157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014479957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014479957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008192917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008192917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005053397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005053397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015534869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015534869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002436949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002436949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011350261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011350261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009780437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009780437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004539477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004539477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002978101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002978101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011890005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011890005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005078581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005078581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000892821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000892821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010859285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010859285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016100213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016100213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003003573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003003573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006674677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006674677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009290965,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009290965,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012961813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012961813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014016629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014016629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004058229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004058229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007214421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007214421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009830069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009830069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012986261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012986261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004082677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004082677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002512853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002512853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007753525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007753525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011424629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011424629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004615381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004615381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009856053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009856053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000429493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000429493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010395957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010395957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010395285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010395285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003592725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003592725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004639317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004639317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012505013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012505013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002023381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002023381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005694229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005694229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006749045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006749045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014607541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014607541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001509621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001509621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005180469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005180469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011476085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011476085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016716885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016716885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006235637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006235637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007290325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007290325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000478901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000478901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013061653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013061653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006774357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006774357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010445717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010445717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011500533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011500533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006259573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006259573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012556469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012556469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008370197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008370197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010986613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010986613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015712661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015712661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005230901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005230901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010471701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010471701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014142805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014142805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001836630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001836630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005507990,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005507990,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014419766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014419766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003946358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003946358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004994230,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004994230,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008665334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008665334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003432470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003432470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013391350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013391350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006588118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006588118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011828790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011828790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000832406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000832406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000318646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000318646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010800374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010800374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001373302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001373302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006614102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006614102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010285462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010285462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016581078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016581078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004529494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004529494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016580278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016580278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005583382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005583382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014495670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014495670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001397750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001397750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008208374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008208374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008739702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008739702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007694486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007694486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015036438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015036438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012420502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012420502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016091606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016091606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002993430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002993430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014005974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014005974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006148726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006148726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009820086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009820086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003532790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003532790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014547126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014547126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003018902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003018902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006690006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006690006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005120054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005120054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012977270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012977270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000934294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000934294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007744918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007744918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016656694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016656694,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001988950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001988950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005659286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005659286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013516502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013516502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001473142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001473142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008283766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008283766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002528054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002528054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011439958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011439958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009871542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009871542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004630582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004630582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005685270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005685270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013542486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013542486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003069334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003069334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011981110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011981110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002553526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002553526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016706102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016706102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007279542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007279542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012520342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012520342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014621494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014621494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006764374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006764374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010436758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010436758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001524950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001524950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1015162774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1015162774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003634678,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003634678,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013592918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013592918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009406006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009406006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002603958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002603958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011515862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011515862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001034102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001034102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009947286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009947286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000520214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000520214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003144726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003144726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001313239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001313239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004984087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004984087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016519863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016519863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004468279,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004468279,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016004695,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016004695,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1001852343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1001852343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002907031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002907031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005523447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005523447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012865399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012865399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003961687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003961687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005009559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005009559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011305175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011305175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016545847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016545847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002932471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002932471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003987159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003987159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006603319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006603319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007658007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007658007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010274423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010274423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002417559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002417559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009759511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009759511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013430615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013430615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000333975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000333975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014486551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014486551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002958455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002958455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1006629815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1006629815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010300919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010300919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013971767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013971767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003498359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003498359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011354807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011354807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004037591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004037591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1002469015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1002469015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1007709943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1007709943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1011380791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1011380791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1009810967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1009810967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1000384407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1000384407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1008249847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1008249847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1016106807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1016106807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1003008887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1003008887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1004063575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1004063575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1014021175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1014021175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1013506519,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1013506519,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1012459895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1012459895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1010890071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1010890071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005135383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005135383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (5,1005039010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (6,1005039010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005381473,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005905761,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002437794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008725474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001397154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006116674,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009259554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013979586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007693346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006651266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012937922,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003506754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010329506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013473026,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001422882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007184994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006142914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015049954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016625698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000382242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012439106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011398466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016117346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002492354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004068098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006170594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009314114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010891394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001985794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011424706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012992354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004096386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010383042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015102946,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003054722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007774626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005155682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009876482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013020642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014596386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011452386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015130722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011986466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014088034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009902722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008336514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008862082,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016199938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013580962,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004149794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005717570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009396418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006252162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010972066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015691586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013073922,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014649922,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010465762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012041506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016761954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000518498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006813250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011533154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014678210,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003408899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002366947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008653347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013373379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004468803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006045059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013907459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012341251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003435139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008155043,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013401155,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002394499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001352035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007113379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014976803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007648739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005030147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005031075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006607075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011326851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014470499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016045731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007140131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013428835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010818499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012920739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003489571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008210627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010311939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006126755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011888867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010846275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000364163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012948515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014524515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000899523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011380259,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016100291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004052195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007195715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016634371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001433507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001967843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006687619,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008263619,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008790211,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016128067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004078947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015085379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003037283,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006181315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007757059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016662051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015619971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003571875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013003075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000952931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005672707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004106499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007249635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011969411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000446883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010927747,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015647651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014605059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001514275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003091075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010954499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013057091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003626435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008345315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009912835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014632739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015167075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007838755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009406531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005220323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011517123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014661027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007330403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001569859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009432771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011008515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014152675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007604420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012324324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012848868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003417700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000799620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008137476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008664068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002377060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001333956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007095812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011815716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002911652,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000293316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012350052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001869988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000827396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016028164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007124100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016563524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001361636,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006081412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009225060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010802340,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006615748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000855076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008193444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008717988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015013764,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002965668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006109188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007685092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009787428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000881316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005600836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010320740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004034628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011897540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000375012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015575780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001950276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006670180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011390980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008773028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001444228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003020228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010882628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000402564,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003554308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014560868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000935876,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007232548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004088548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004614116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014054820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000429316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005148196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008302020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016164420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013546468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009361668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013039908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003608228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000989892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014616708,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002567588,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005711108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015150020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003101924,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009389348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012540580,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002059236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002593316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008355428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007313348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008880996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001552676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006806788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012568900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013093444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001044324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005765124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008909284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013628036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002358981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011799685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014943333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007612965,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004994629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012859589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001852421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014435237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016011237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011826437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016545317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015504677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011318085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000838021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003989765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005556901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008700421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010276421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010811013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000329669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009770373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014489253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005583653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011345765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010304709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015024613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004017445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004541989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016599877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013982949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010838693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001933093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003509093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011374053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005611461,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010332389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009289797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001426789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007721541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012441445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012968037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012967813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005639237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007215493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010359141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004596549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009317477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016655845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001987109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009852069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003564933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008283813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008809381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009343717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014063493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003056581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010921029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000972709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008310565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008837157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010412933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011988933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003084357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014091173,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013048581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002041669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009906629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004152261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007297189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013584869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010974021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014118949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002069957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003645701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006788837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011508613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013076261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005748197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008891717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012044389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012578981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000792902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006554246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005511782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014417670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002369574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003945574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004471142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005005734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010767846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015486598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011301926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016021958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008683494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010259238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014980294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007649926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003465254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005033030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012371398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012895942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007143622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010287526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016049638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009245862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015541030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006636966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011356486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008737510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004026118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001409190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009272614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015034726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006128614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010849414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012425414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003519814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005086950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008764262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000902150,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007198054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014019302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005113702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006690982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014554406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008266246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008791814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004082086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014046054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001997830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015622854,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008294534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005676070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007251846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011972774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015116294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003067174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007786182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000983430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006745542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014607942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004661670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013567302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016718534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001517158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004661190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006771270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012533638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001011110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005730630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001545446,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012027334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016746214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000502758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014662982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010477798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016239654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002614662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007333542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004715206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009435110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014155910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004988167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013893159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006565095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016003751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013386855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014963111,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002913607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006056487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003448199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009734855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011845959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014988839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003981927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002939847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011846887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009228295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001898183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005042087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003475879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006111527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013974439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006111047,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015551751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009789287,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014510087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005603975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015043399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016620679,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002995303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007715079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014001735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001952615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009817575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011393319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014536327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008775911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013495687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001445543,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004589063,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009308967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010884967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001980903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007742759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003556167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008802663,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002514503,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016675111,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003049095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007768999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013015111,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002008455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006727335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011446855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016166759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000458919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009364551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003610183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006754087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013042791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008330887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010432455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003104135,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000485191,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007824583,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005206119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012544487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010460231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007315975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012035879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009417543,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005232359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009952135,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002090151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008910471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003937064,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014945544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001319656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008149512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012861192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000813096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005533128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011827752,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003964872,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002923688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004491464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013930120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001881000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005024520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006600520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011321448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016042152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003992648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001374696,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004518216,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001908776,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007670888,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010814920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003484552,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000866088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005587144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008731048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016603240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000359784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009264648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012416904,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001936584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009800008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001427976,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014012840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015588840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007724680,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006682216,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012444584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011401992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012971176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008260040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015080232,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007218376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006176168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016657032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007751432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012472360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011429672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014574728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016150728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004101608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010923368,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014066376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003593000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011457960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016177480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004127336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010416296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015135816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007805448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010949608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015670408,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000469032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005189064,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012526920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013051464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014627720,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005723144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007299144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007299048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012019848,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010977160,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009934696,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006792488,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013612808,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006284136,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011004936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009700105,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008659177,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010234441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016531625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004474281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007626025,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016531145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006584361,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011304393,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003440361,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007117673,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008686729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003975465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009220041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002933801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010796713,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012372713,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003467113,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005569961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002425449,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010290409,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012399465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013968521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012926057,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006638921,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011357801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014501833,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004029481,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001411049,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009275497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013995273,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001945129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003521129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012427017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016105865,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008767401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010343401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001438825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006158601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010877481,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003014601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005116937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009836841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000930729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005650249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011413641,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016133545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004084041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004608585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016667881,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006186281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008296873,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008821417,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013542889,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015118633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012509321,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015652969,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005170857,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013034281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003095369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009384329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006773609,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009918665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015680521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006774409,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011494313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008875977,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013596905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004165737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014129961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007843849,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013088297,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014666121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010479401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015200457,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016776201,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009175594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013895626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004991050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006567306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014429706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016005706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008142698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011821546,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006058954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009203882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015499050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012880714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008695530,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010271274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001367210,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007129322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014992746,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009764970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012909002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001901834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000858858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011340746,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007156074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011874826,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016594730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001393482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010834186,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006649002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012936682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016088426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008224266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010860426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016622538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007717962,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005100010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009818762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012962410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000913162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005634090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016115978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004065834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007209866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016650314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000406858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010888106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003559530,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006703562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013523754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010381802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001475178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003585770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008305546,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000969130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005688650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007263882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007799242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014085642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011477482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002570858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011476746,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001530218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004673226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006248970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015154986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002064810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012545674,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013071242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003640074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008361002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015183274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009420682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013099018,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002092106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011530762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002364555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003940555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003939947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001321867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015482219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000815563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014975147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007111755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002925547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012890795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000841291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006603659,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003994987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007137995,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011857899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009239307,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000335243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010816235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001910635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006631435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011351339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000868971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004021227,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008733931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010309675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001403563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002979563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016606379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015563787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003514667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012419787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009801323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002473003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005617035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004048779,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014014795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000388651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005108683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008261355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011404875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013507723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001458603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004602123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015083115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001458123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012474827,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012999371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003568203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014577067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007246443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010390475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011966219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002020491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005164139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007274731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016180619,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004130475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009375563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002047243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013053803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001005579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008343947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005725483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008868491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010445931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015165707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007835595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014124043,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002074923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005217931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014657355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016234635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008896171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015726283,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011279468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012847500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000797356,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001332716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016533484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000291052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012348684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000824108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005545164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011307020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010265068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003976908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011840332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016561260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000317804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006614508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000851916,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005572844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004530252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015011500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007681900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005064236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012929196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014505196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005599596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007174828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010318348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015038252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013996588,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001947596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005092524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003524268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006667788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008243788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011387692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001441036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010346028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003017964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000932684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008797644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000933612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007229388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015093836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016670092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006722828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009865964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014585740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016161740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008825324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011977068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006214476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010935404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008326508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013570828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007284844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012004620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003098508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000480044,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007819436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006776748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014641196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004167948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016751788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001550540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009413964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003659596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006804524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008380524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001041932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005761836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001315149,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006034029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016515917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015474733,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004993389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012330733,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012856301,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002384077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011290093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016008845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004486317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009205837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016544205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000299725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005019629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015502541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008697741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016035597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014993933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001369069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010809773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012385773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003479149,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008198925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009768109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000862509,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010301421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011877165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015022221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013979533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001931437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008753197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013473229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004042061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006142861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014007309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010863309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015583213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012964621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005635949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007213229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011932749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015076653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016652653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012467341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005128877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006704877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011424653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002520077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008807757,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010918349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007774093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012495021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005689965,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010409741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013554925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011986669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016706445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003081069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012521773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002039405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006759181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016200141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002573997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007293517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016734221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000490765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014115789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015691533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011506349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010465709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013609229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015185229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006279117,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007855789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009957357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013100877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007086414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010229294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015991406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003942158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000282542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005002062,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003435854,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008154734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008680302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003970446,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004494990,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010257102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001351502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002928782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006072430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007648686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008183022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009750542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008708590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000844430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005564334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015004782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002955534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013962094,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005058030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014496686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002447182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008736142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016073998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010846126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000899470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014523982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002474862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001433806,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010339822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011915566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000391118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005112046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001967790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014552270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016128014,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007221902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013509582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014043662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015619662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012477454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013003022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003571342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008291246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001488238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007249582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016689006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000446574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007784942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013029262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006743278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011463054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004132430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007276334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011997390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000472814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005192590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010954702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003626382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008870830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016208686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010448142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015167022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010982478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015702382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000500366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012558126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014660718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016236494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004188398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009705935,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015467791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003953007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001333903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006055375,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010774255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012349999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003445935,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008691023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014452367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002403247,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005546767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011843695,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012378287,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000320943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001896943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009759343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016055119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002431023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007151055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013437455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004006799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009253295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006642447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003500495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002458831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001416623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006136143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015041135,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000374959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007712815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005094479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000908271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014535087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016111087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007204463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013493423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000401711,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006163823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009306831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014026735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008274415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000935823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001470159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011951919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013011823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014589103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000963599,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004115247,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007260303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004641839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011980207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006217615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009895951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006751951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008327695,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013574191,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013573711,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015149967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003635183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009923631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010456943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004170831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003128623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012033743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016753647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006806991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009949871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003662735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008909231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013628751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001316464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004460496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007613168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010756688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008148272,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005529936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002385680,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007106608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010250640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014969520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009208976,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006598256,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014463216,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003989968,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011852368,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007667472,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012388400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003482288,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008201808,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008727376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010304656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015024560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015024080,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002975984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000357392,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009796304,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001933296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007187408,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004568944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016628112,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006145744,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001961072,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006680848,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012967504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000918384,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008783344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010893424,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009850736,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000946672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002522416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010385328,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016147440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004624784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011962640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016681520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015640880,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002014864,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003590864,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008837360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010412624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001508560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003084304,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010947216,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012523216,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015667120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014625456,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010440912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014119152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000493648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006788784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011508304,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014652208,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007324144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016229008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001561552,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011002256,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007857744,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012577648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015722704,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000792849,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001327185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007089553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002902833,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013911313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005005201,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009726129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002396529,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011835185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006074641,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010793521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013937553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012895889,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003464721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008711217,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013431249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015006993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007142961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011862993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007678321,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009779121,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014499569,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016075313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000366193,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010848081,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015569009,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001944017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000902353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004054097,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013484657,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015595249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014554609,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000929105,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007224241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015088689,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004081777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016664465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014046001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006717937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003573681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009354385,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015116497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014074289,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006210897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015649553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003601457,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008321489,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014607889,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002558769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005703825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007279825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011999729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014101585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000476465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016212177,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007306577,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016211569,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004162321,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010984817,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014127825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002078705,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006799505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012561617,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001037041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005756817,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013621265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002614353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010477265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015197169,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013893362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012850770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003954194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007098354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004479762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013386802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013920114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015497394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000829202,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008168594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008694162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010270162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013413042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001363538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007660242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012380146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014482482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000857490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002433490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016592594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000349138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010831922,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006645330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016086034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013468082,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004561458,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010323570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001419506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006139282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012434162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015577682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005097618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014537042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015071634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003021490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014029970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000404594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008277042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011421074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008802610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001472498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009336946,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003049810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006192690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012488466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000965938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008303282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002542738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007262642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003076050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007796978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014084402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000458386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005178290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009897810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016194994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004145490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012008402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004671986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006247730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010966738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015686642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011501842,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001019474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005739378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010460178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007316178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015179602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016756882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000513426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002088818,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001047762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005767666,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014672530,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002361267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011801715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009183027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015479827,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003430707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011293619,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000813299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014971475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001346355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016549171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000304691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014465427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005558803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016040819,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007136755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016575411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013957075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001908979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015533747,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008204147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002978195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006121843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010840595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012942163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003512531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008232435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009799955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012943091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010334291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003003923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007723827,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014012531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001963283,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006682163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009826195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007217523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008784531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016122387,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013504435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003031603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001989523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010896563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015616083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005667763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016683987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000441555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007779411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012499315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005160723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009881651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008838963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011992243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001510899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004654419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010949555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015669075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003620979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006765011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013586771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015162003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006256403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003114451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005214739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013079699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006792691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004708435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009428339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006284083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005243027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003412628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006556276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011276052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008659124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001330324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016531092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012346420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009728084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002397716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007117620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010262676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009219988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000315412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005035316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009754324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014474228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008188116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016051540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004526964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002960756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010823668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000877012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000876404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011893108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002986996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013995476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001945332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014529556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002480436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008767092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013486868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009301684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012454996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003548884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000930420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005650196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008795380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010371124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013515156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010370644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011946900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003042324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000424372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005143892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009864596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014583476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016159476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002533972,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016694580,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006212212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014077172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003603924,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008324116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005706164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013568564,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010960276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005197812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012535668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009918612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013062260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010451924,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016213780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002589940,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007309716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009410260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000504660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006268052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008903700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016242068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006032661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007608661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015471573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000270197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014429909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000804789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014965013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002914869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013923349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005017237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006593237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009737141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008695477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007662581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012383381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015527029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003477781,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014484341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013443285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016594933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007690357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001927765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002462357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007182261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008750037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015580021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012437813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003531701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013497717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002490037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001447445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016650261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000406805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000941141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002516789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004092789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009339157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001475125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000433045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010916085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014059605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003585717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008305237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016170197,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000968821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010407477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007799189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015661589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009901173,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005714837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004148629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007292277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012011029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016730933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014112597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002064501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005208533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010970389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016224629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013605525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006276853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010996629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012572629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015717557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003668053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014674869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000787222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010228182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004465462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000280918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011295574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014440502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002391510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008677910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013397814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003968182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004493750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009213270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013932150,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007645014,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010789942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012891510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003459830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014468310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010281590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016577366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000334934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007673302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012917750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006631638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002444918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004021174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011885622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001404278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004547286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009267190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012945302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000897206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008760630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015055382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001430518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006151318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003007830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009829558,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004076758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007220662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001458070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001992406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008288054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000951766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004103510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008814166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015111350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006205750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010924758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005164086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013026998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000977494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002553750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010418198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007274198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016714902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010952438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015672214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003624118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013588086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004684022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009403798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003115766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013082038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003650870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008369878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009937526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014657302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005753238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007329238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015191638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004711574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009431478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014150998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004982743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006558487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008135415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015998839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013381783,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006052183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009195063,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013915095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007628855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015491767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008162167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002401623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011840279,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014985463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000317751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012374615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012900183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000852087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004003607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007148791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001386199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013970551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012402295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016081143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005599543,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1013462455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006133879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011896247,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005091191,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009811991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006667991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010345303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007203095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004584119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011921975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009303639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006161431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010881335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014024343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003551223,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1006694743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007763671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010907575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012483575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015627095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000427255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008298775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000960311,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005681367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1010401271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1004638679,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1011976535,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1016697463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1000454007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1005172759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015654775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003606551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015147703,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012538903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015683063,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1003632791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001014327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1014641399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002592151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1007311031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1012030551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1015174455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009413911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009948247,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002617879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1008379991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1001315096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1009768162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (3,1002437794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003812385,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000142337,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008215138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002976034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006646338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011887458,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015560066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000891810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006132546,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016615682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000892418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010860898,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016100866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003004578,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005620770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006675906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014532194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012962786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004060194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008777282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009833410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013505634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001977602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000407170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006703906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011946178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010376258,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002518914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009862466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016672482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004622338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010917570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014588770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005678466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009348642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007788066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011459394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016701538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002549218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009892002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002034402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009378210,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003090018,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015674050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008865026,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016729666,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001007426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003633378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004680162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007304450,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016215874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006789634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014648482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001550786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016759234,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002606402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015190306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013619874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013106082,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008127715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010228355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013899555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002372803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000802883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006044003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016525091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003428419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012340099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010770179,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002914627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012874115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005016515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008688739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003455939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006072131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011314275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009744867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001887011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009230051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016040451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011855587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010285667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013958275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002430371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000860451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009771875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003485987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014500099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004027299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005075107,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008746435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002458499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015042147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013472739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001945731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008241475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008242467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006672035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011912771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014015587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005103235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008774435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009830595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004589443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007213859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006701091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014558531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012988099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004084483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005132291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008802979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006188419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009858595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015099843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013529923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000433635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005673603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009344803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008299139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011970339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015642691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008833155,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009888163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000975555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012513699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002031171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005703907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006758787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015671203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009916291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002060739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012541827,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009403523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013074723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003116355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006787043,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006274275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001033123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003657667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016241571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005761091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006816099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001313828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015466244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003424580,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006040260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011281380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013384068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000285220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012336996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009198692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016009604,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000286340,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008152004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010254820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015494788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013924868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005014692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013926116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016550404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004500900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010795620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016036612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009226820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001371524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008713028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015525092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002427140,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007667236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006097828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001912324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016066916,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000343652,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008210596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010312004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013982692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002455684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000887012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007181988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016095460,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002997508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010854308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012956740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005099396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016637284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009827748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015068484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001970148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005642244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012453284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015609796,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014039876,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006183556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016665412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000944196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010911908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016152644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005670500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013014308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004109924,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015639844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016693956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007782244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000458948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009370116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016181156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011995652,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016724004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001001764,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003626308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010969092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002056868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003111492,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014641412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001543076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007839844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008886628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002598692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002085924,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000516516,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005757252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012567268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003142052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006036421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008652613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016519557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003420709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007092037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012334181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016004741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001851909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009195973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014436069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005010853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007635397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016546565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002395269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014977893,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013409509,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009222981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000312805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013951333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013952453,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003478405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004526213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007150629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012391877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010821957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014493253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004021253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015549381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002452581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011364261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009794341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015036613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001938789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004554469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012419877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000369989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002993893,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010337701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002480101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005096293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014008997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007208325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015064613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016119749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003022949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009309701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012982437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004079077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016662597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011421445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009853061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015094181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012478597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016149797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000426533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006723813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015634981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005155013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008826213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016691109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016178341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003080645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005696837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014609541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011993061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008854757,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016720165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015151365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013580933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005725381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003108645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008350917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006780997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015692677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008882885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014124005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003652005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002083205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007323301,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010994629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009424709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014666853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001568389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004192805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015722981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003931782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013376102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000279398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011816646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010246726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015487846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002391430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010247718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008678310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016544998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016031206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001878374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005548934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001363558,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005036166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003989094,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002419686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006091782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013433798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013434790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016059334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000338118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008203526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001393734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002448742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005064422,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003503846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005606246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014518950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001421254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004045670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008764038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015574566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007719014,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006149606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015060774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001964102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004580806,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013491974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016117926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008260326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011931398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001451302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007233766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016144934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001992614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010906086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013006726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004104390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008821350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011446886,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015119494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005691974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000452870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003076774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001507974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005179174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010421446,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014092646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000994182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016202630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002049798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010963270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004161958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012018374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008879046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015689574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004162566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002078342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004694534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016232934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003133958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015718118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005237894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008909094,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016773734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014942791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010757671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009188263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014428999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001332711,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003956999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011813799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015486151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007628295,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011301031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001873511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013403431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011842855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014458535,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001360839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002416871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000848071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011329159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009245447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014487591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012918183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001389895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005060583,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011870983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002444999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007686119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000876071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006659559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015570727,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002474055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014001927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011386471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015059079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007201479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014545287,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012975367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001446439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005117767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015600903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002502567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011416039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009846119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015086087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012471655,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016142215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003045415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008286663,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011956839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014573543,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002531623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005147303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000962823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012500199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002017927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013032167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001504135,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005176359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004129671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002559751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006232487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009902791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000991079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008343207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012014535,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005204487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010445607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016742887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004690695,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015174087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005747847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008373383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005234055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012044583,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013090343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015201095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009698824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013371560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015996104,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011810984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015482312,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006569576,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016537928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004487400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001870792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007112936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012885896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003983560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007654760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011325320,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000845224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004515528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009756648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012380936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002954952,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006626152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011868168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014484872,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001386024,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000872232,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004544584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011355624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012409480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010840808,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009270888,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014511880,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005085896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011896424,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015569032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004041128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004573096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012439784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016110856,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000387592,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006684872,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015596040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011412808,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007227688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005657256,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009328584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014570728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013000808,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001472776,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008282792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013001928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006199080,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009871432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015112552,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004630280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013543752,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000445416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001501032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006743048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005173640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008843816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002044392,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007284360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009387176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001529576,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005200648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013059496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002585192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006257800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001016392,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002071400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009930120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012554536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016224840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000502600,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008369544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006799624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015711048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001559752,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014143656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001045960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001839433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007079529,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014423337,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011807753,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014964649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001867977,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002923593,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008164713,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006595913,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008696681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016563625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000840361,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004511689,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001895977,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005567305,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009240041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001382185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008192841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012911337,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007680073,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013966953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001925545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004541737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013453161,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002981161,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014510313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006652457,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004570281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011380937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012435945,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001953673,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005625897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010867145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000385001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015593449,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007737641,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011407945,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015080681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000927849,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004598409,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013511881,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008278953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010895145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015622505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006710153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010382377,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014053705,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007765769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011438505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003580905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007253001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005683593,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009353769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000442185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008309129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013026089,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002554345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004655721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012522665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012008873,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014625065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008870153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014110249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007824617,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016735785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001555913,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012037001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006282217,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011524233,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014140425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006282825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009955561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012579849,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016250537,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000266154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002891690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004994122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016530218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014961418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010776554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014448650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000296330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011832170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015504778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007647178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006077258,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014989962,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000837130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004509866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013421290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010806730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011860714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013963114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016588938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016588650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015020266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007162410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005593002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014506474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015562090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004033034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002463626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007705770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013993290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009808170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013478474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000382186,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003006474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014534602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010349482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016646250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000924010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004594570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014563658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000410314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009323530,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011948458,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015618762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004090858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007762954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011433642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000952138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004624874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009864842,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000439370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008304266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014593194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005165674,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010406666,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007791210,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015135018,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007277418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009381354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013051402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007820778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011490826,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014107530,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013594762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003121482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001552042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010465514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014136586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011521130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016762122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015191690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002093866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011007338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000262923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008129611,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009176395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012847083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006046379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016014731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008157131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010773323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001347083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010260555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008691147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004506027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011316683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005561643,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011857483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010289067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013961419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009776299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008215723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011887051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014503243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008747691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013988427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000892139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007702539,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016613963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001947755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010859435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014531787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001433963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011915051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012962859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004059499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002489067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011402283,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014018987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004591467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009833483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013504171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000406475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007217003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014559787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003032011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008804875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011430411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016671531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003574859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000436523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005676747,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011973771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015644971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004116171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010405099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011459979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004650187,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012515595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013561355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010946923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001520683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006761931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005192011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015160331,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003632427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005734315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009406667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013077867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007846091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002604939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012572395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016243467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000522251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007333291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008387915,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006556332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010227660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000801420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011283276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014956012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003426956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010770508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013387212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008155308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013928012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009742892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012367436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016040172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002943468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008716332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003999084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008717452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003484268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007156876,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005586956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010828076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000346060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009259276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012929964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004027628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006130028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016097356,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007185132,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008240012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014528940,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005101420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007726956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016639660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015069740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007214188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005644780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010884748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014555948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015613100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002515404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007755500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000946476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006186700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004616780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009857900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007242316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010915052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001487788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007785676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016696844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003600556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005701964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014614668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000461836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010429388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011485420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002573580,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001003148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012541036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013587820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010972236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014642924,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008889004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003657740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009944620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013615948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005759628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008384044,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009430828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010225837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002368237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004470925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000284525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007096461,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016007885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005012749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010252845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012869549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007638285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011308973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007123469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010796205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000314701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005554797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011851821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012898605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003994221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010283021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013953709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000856013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012393133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003481549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000343245,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008208653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016065453,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001398861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004024397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000885069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001940173,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007181293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001941165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000371245,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009284717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012955277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015579693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007724141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002482989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000914605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006155341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007211469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010881645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004081965,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007752269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008799053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015096077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007238477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001998349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005671085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008295629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015638125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014068717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000971789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006212909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004642477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000457997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016181485,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014611565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001513101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010426573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004138637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002054925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013584077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000486253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015694701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006784397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007838381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001029613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004699661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009940781,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000514797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010997933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014669261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005243021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010484141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014154445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008653198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016517838,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007092622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009708814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005523950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006579566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007633422,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010250126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002394574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013408558,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007120878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012362894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001365966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006608110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005038190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012894862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016575406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003478734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013436686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000340398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008205038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012923918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004020558,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006636238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015549454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013980046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002451118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000881198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000367406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007178062,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012420206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016090766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002992942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010335982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014007054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011391598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003536302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010877806,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001967502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008262222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009309006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006181038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003564430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010907982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014578670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003051662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006722862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009338542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004107278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007777966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015121518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010936526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013552718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005695374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011992142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015664462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014094030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004668814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016719566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013580238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000483438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003108974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001539566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013068462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004165102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005210862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016748622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006266478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009939086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000511566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005752686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009425294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004192110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007864718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010480910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000792783,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016514991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013376687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010760079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014432303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010247311,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013918511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003960143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008678639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014973615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013404815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000306991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015516559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013946639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004521647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007146191,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006632399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010304623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012921327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005063471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016600719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015030799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006120623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007175247,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013462127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012948335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004046255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006662447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015573871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000907535,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006147631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009818959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003533071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004578831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016117231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010362319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005122191,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006177807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007232815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015089231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001992943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008287919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009334703,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011959247,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011960239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002534767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000964335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009877551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003589871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012503087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010933679,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016174415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003076079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013035055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007804303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007289487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013578415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004160239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006776431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012017423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004694255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009935247,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016745775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013605423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010990863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003133263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010476047,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013092751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007861615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003414480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006030672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009188592,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002900656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002386864,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004489296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009730416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013400976,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004490288,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014456592,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002929712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009216720,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003985840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007656144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011327344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016569360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013431280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001902224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012916464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002957840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010301904,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013972080,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002444048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006116784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003501200,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014515440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006657584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012946640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005088784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013488464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000390128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009303344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012973648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004071568,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006687760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010358448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006173968,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009844656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016655312,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007229072,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010900272,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001475920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004099824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008818704,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002531024,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015114928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002017232,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008314256,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016170544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004128880,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006230768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007286384,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016200112,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014630192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006772592,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009390320,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004157008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005203792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008876528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009932144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015172112,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013602704,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008371568,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006802768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015715472,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014145552,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006287952,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008904656,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009960688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010754161,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006569169,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011295473,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016536465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006056369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009726673,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014967793,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005541553,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009212881,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002926993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010268497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000842257,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008701105,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009755729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003467793,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002954001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005571729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001385329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011352657,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003497361,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011353649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001928689,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009271473,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006654865,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010327089,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015568337,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016623953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000900689,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012438833,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016109137,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014539729,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005629041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009299601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005115249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011410225,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015083569,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013514161,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008282097,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010384785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014054961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002527185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003582801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004630609,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016166705,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001501617,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002557233,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003611345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009900273,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002042417,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000473009,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013056529,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003098545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010442097,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001015857,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016225425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014655505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003127601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006797905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001558801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005229489,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008901841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002613905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006285105,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011527377,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009957457,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013628145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002893586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008135730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000811410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009722834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000812146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004482706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014451186,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002922130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006593330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014451794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012882386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007650482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011321810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003463954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006081682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014993106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001895282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002952434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008193426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008725394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009781426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016592082,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003494258,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002979442,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005596146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007707666,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008754450,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016619090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002466770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003522802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011379986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009295762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012967986,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006680306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011921298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010351378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004597714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012464146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001982002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014566034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005140562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007765490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016676658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002525362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011436786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015107858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000441650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005681874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016165010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006737490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006223698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009896434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007280850,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012521970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013053938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001526930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004151346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015679474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003637554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009924562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015166706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000498322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016222322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013082994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010467410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014138098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009953618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001041394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007338418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012579154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016249842,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002890771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009177651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012848979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004992659,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016530547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002378227,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006048275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009721011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005534483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016017875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002919027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006591635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013933139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006077843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008694035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016558675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010804147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016044883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002948595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010804755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014477491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005049971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007675507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009778195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013448883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005593331,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016074419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010319507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015560627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008750835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016616243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010861331,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003005779,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009292659,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001436339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008779891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015590803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002491955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009836019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000409779,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014049427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002521523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006191827,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016674963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000952723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004622899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007247443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012488563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010919763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001493523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005166259,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015648115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002549651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006221875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011463123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005708083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012518739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009378387,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016189427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014106739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002578707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006249395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014107859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007305011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013079251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004175635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005223443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008894131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007848979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011519667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012575283,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009435955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002888180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008128148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010230964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013902292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004989556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006044436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016013012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001860180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010773908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001346388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007643412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016554836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006074740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012370836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016043060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006616052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011858068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005047252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006103284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013960468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016584372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002973908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012931860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008746996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015557396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006131412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009802612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015044628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016100756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008243156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011915380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015585940,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002488116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008777172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000919316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012456692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005647668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014559092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011943508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007758388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013532532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005676212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003059604,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006731828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002546836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006218036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016699380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003602452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016186612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013047892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005190548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012001076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015673428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016728436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002575092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007816084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015159636,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013589204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005733396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012544436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016214740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015700948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002604148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005220852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010460820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004706036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015189172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007331572,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009434260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008658325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015468853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007611253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001856341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016010165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000288949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002913493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008154613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002399701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005015893,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010255989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013928597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003455317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012368021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014984213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003996629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005044437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015011733,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013441813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005586261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012396277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006641365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011882485,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010313685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013985909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007183189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016095893,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001943061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007184181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004055221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013500661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004588821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005642805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013500245,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006698933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011939669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008802357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000944757,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015099221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014584405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001488117,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004112405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009885493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004645621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013558837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011998261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010428853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015669589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008860053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016724693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016210901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014641973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013073589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012026389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015699125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004170837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006271605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011512597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013615413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004702805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013616533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016240949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006814965,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004984022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013895190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007094646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007095766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012868630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001340726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005011030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008683766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015494166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002395830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007636566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006067158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013411702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016035478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002424886,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010282326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008711894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013953014,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000856086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015008630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016064534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010823638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008207926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004022934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009797078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015037174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001939222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012422614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016092790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000370550,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008237494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011907798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015578998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005098774,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010338870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016636150,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000913910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015067350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010882230,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012983638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008265622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005127318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004080246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006182934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001998070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004614262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013525942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003053686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008294678,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011965366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016693334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003594998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012508214,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002026198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007267318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010939414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001512406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015665718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004671958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009912054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003111382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006782678,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008885494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003652182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004698966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012565910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002083766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010997238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014667286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012052854,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003934391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007605719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006035799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014948503,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009707095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000281879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014435447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001336983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005008183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003447607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012361079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003448727,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005551543,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008177079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005036727,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012894167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015518583,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002422167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011333591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009763671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001907351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012389207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016061943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002962967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011876439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014493143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008738103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000880503,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003506327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015033943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003506039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007178647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009279415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001423863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012952759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006150039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000910679,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001964663,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012447799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000395863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008262807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011934007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008794775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014035895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011420311,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007235959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013009335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005151735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015634871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007777271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015120055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000967223,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016175671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003077975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014606871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006751319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014093079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016719031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000996791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003621335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015150231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002052407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007292631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009395447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014636439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001024919,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1002080951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004697143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009938391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012562807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000512151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012047991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015720599,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006808887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016776215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000791832,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004462520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1012329208,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1003417368,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005518136,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009190488,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1006061496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1004492696,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1009732792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1013404120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1016028536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010788408,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014459736,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001363448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1005033496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1010274616,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007659032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1007145240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1014488280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1000335448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1015543896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1011345634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1001920418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (4,1008215138,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015345537,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015869825,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004036226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005611650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010852802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016620514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006140226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011380610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013483362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001954722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014011170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002484322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008251906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004585410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009827330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015595042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003539842,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005115266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016125154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012985954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001986562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007227714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007754274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009857762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015098658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015627394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005672898,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013016034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000960322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011970466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014073090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007257890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008833314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014601154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010944898,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004129698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000991426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005705122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013047874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007288994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002047810,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008344258,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004159266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016217250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001021602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006262754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006789954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012032386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016745826,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006792610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014135362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003134050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004709474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005237282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005764994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001319139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006032451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007615299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009190723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002904259,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004477635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009718531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010247395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015488291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005007491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010775203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000822755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001349955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012360099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007647523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014463075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003461635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014990883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015518595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003991747,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000324995,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011334883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001908867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006622307,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002437443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002964003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008725539,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009780579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014493379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004540675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010837123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011365699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013468931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014522947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007709795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009810883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005626915,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010340739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015580867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000914851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013497987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001442403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002498723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008785411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014555171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003553987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004600675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003555107,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004083843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001472483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007242115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011955555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013528931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002002339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007769667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003057603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004633027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009872899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010400739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016170371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000447011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006216899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000977123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006744707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012514467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007801891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008848707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014616419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005190403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015672963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000479363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005720515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012545283,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004692771,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015702531,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005222883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010462755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016232643,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016760227,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005750691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007334563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014678339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002359844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014944004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000277220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005518116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000278468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012343140,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002389924,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007103236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008159300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014446372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003447236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005020612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010262532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014976484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016030244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005022756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011318180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016560356,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012893604,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006078020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012893828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013421156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007662916,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009764900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015006052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010292964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000340260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011877860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016591172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001395524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006637956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007165284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002979396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015036356,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003509252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005082628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015566212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000370564,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005612740,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001954436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012437508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002483012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008252772,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009826148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003539684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010356004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000930244,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012986692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001458052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007227812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008801188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009328388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004099108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000432612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011442372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000960420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006202596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014072932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002544292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008833028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003601604,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005174980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004129412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000989988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010945988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012001124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002047908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002575108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015160420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001022340,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006262468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006790052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001549892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007319652,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012560036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003134788,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004708164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015190724,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003662596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005764836,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011273701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011800901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012847077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013374277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012328709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015488005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016015845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005006309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010775941,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016543653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000822469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006590181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007117381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001877605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007120037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014461765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014990373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005035877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009750725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005565733,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006092421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001907685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011863429,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008724229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004540517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010835941,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016077861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016605573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000882213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005596037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007179909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013468773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008237093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009810469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004052229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004570821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005625605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011395365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016108165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000914565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011923429,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012450629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007210853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014026661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014553861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004600389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004082661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005658085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010897957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016667845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006185893,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011955269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013528645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009345189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008298341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004632613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009873765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005160677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010930309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011985349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001504421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012513157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002032997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007800581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009376005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010959877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004144677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000478181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011487941,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006775365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007831685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013591173,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009933637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014648357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004693861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016759941,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001037605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005750405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012575205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007862629,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008908677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002360582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015471558,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003944454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005517830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010231782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011287590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000278054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000805766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012342854,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013391078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014446086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016030982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010791206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011317894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016559046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001365446,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007133158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011846470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013421894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015005766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002950438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004523814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000339974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006107686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000868038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001395622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007164998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014508134,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014509382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015035942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003508070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005083494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000370406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005611302,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006140038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002482502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004585734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015595622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000399974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005113798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016123430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016651142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006697670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011411366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001457894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007227526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007754854,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014570662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015097862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005143366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015099238,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000432326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012498246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002545030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003072358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009888166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003600166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005175590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016185350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016713414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001519814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008862950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007817382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008344582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004678182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010448070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015688966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000493318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006263078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006791142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007318342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014134150,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009421574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015191334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003662438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004190150,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005237862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011273415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011800999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002374727,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012328551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008143687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010245671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016015559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005006023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001349767,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013934055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001878343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007118727,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008694151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009221479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014989063,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003989799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010805351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003990023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011333159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001907399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002437255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002964583,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008724071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009780391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010308967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016605415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001939623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007180775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007707975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008754151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014523783,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002468199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009811207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015051335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010339271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001443239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012452999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014026375,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004600487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004082375,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005657799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016666407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007240647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011955367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013002183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002000871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008297831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014057319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008298055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004631303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009873479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000975303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010929127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016698759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000975399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006745287,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007272871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014088423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002032711,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014616231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005190983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015673543,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012015239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013061927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002062791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013592039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014119239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003117927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004693351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014647047,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001037319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006805031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002092967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007335143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009435719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003414696,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009703432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000277544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000805608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006046504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006575240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011816392,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013919624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004493736,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010261064,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014974760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010790920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016558632,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001365032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013421992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007662728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002950152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004005192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011876136,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013451560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006636488,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012406248,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014506824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007693672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004553608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009267048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004035368,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005610792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010850920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015564744,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000371144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001955016,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007722728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012436040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009298152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009825960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010353160,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015594312,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010354536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010883272,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016650984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000928520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007753544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009328968,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015096680,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003570088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009856776,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004097640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012498344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008312456,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008831560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014601320,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003072680,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003599880,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004648104,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005175304,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016184168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011473128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013046504,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001518376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012000936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014631400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007816072,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004678920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005732936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010446632,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016216520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007318440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012560616,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014661192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004707976,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010477736,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003663176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005765160,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011533000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006031081,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011271977,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012847401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013374089,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002374825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007615977,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009189353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013902665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008143785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004476777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000292937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006060649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007118217,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012358345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007118569,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014988905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005564265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011333897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012390569,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013437385,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009779081,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003493129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005066505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010308681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016076393,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011364329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012939753,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001938313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008753865,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013467561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007708297,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015051433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000385033,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011393897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016108745,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006153993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012450441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007210665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014027241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016138313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004082985,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005128777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011426249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012999625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001472521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011954057,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008297545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015113353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008298153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009873577,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010400777,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016168489,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006216041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000976137,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001502953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012513737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014087113,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003087849,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008847337,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015144297,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004142857,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010958409,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016728169,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000478505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006246345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012016105,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013589481,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007830217,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014119337,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003647497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005220873,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006805769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011518697,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007862441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008909257,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002359114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009174922,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012861546,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006574058,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007103914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008157930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008677290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002918026,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004493450,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005020778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014974474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016029514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016559370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001892586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013421706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009764170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009764778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015534154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016061738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006635978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016589802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006636074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007163786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013979338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014506922,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007693386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014509194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005610506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010851658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012954890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013481706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009296842,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014011562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008251274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004584266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015594410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016651722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000928362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001456074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006697994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012985322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008801482,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014569194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003569802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008283242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015626250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011441514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000960714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002015498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011969322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003073418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003600746,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010416554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010943754,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004128554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000990282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010944106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016713738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002045930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007815562,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008861226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007815914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009391338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015686250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010446346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015687498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006790346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001550570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012559306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010476426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003663274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011006026,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016773738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000261931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001845803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008143275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004476491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015486635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000293035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016543947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000821611,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001348299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007118059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013932331,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007645867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009221291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014462443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003461003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011333739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006621675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013436971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013964683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004538795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015548555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003492971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016077131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016603691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012939467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002468011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015579499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000383851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000386123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013496843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002497579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007211403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003552843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004601067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010368651,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015082091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005128875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011425835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001471339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007240971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013000459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002527883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007769035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009344459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014057131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004112779,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004631883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016169227,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000446379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006215755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011983467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016697291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007271403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012513323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007801259,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004142699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005190795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010958507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012015819,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013062507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006776043,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012543627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013590315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003117739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008358891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003646315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005221739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010462123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001563435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013092811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001565707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002093547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009701964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014944396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012860236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006047084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011814668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002388780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013918156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005019468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010789228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016029612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003973900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000836012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001363564,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007133196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001893420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008188844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009764268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015004396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009764492,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010291820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000865804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008739052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004554188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009266860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015035212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016619084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011907020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013482444,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007723052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002483404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008251116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004584364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009826540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003538540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010354348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016122700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000929100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007226668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015096492,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008281932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005144044,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015625068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006199052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006729164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013544460,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014072300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008313036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008832396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009886412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003073260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004128268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005703692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006758732,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002045644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007286540,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007815404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008861964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008343212,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009918636,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004677452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006788908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013604460,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002605068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008892396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003133132,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003660716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011533324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016774476,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001316685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006031405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013374669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001846541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013902477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002903213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016014925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006589037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008692173,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001876973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008692269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009219981,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014462157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015517293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005564077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011861037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007676173,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012389101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002436397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014492333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015547373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003491661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010834797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016604429,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016604781,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001411181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007706605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008754189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002466701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003522765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009282253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015579213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000383565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010339437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000913421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006681133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011922285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013497709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002496269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008784621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005128365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010369517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011424525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016666701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007240813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011954637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002000909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007768621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008296333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015111885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009872109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010399309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015641741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016696877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001503277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009374349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015144109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003616237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005716813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016726957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011486797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013062221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013589805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008358605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004691853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010461613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015701741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003646029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016231597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006804301,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011519021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013092397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007334157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009436397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015470414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006044526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016000270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012342222,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013917646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002388494,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014445454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003446190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004491982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016029326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005549166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011316750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001890862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007132014,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008707438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007661870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009235246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004003822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004524206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000339342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001394478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006636654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007164366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013979662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014507726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004035662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005081838,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000369262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001425582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006138894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011906606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009297166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002481966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010353838,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016122190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005112654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016122798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000929198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001456398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012466286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012985646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014039662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001984462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003568334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008282030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005143758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015097582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004098190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011441326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013014702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012496590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002543886,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009887022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003071950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005173934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010415086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007286382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002574318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009917326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015687086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004158190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005733614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010446926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001021038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006788622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001548846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014133006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014661870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004707118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015189678,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016774574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013107566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011799855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013373231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001846383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007613967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008144079,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004477327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016014415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005004879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006061199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000821423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007116335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008691759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007646447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008693007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014460719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005034959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010804719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015518031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006092143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013435151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001906255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013963215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002963951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015547087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004539599,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005067183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016076943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005594735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001938479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007706319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004051439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000383663,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011921999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012449583,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014025231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003025967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003553679,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010369231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005129455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005656655,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011424367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016666799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006184463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007769359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009342735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009871599,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004111311,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010399407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015640559,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000446959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010927983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011984303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006744143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003085839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014615087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015672399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016726671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005719183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011486895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013589519,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002061647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006774319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002589455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009932591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010461327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000506831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010989903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001036687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001564015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006804399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012573775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007861711,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015204847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003943664,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006044240,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013388624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013917232,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002389360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003445904,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004492592,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005019280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010260432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005547856,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016558000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007131728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011845424,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002419664,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015004720,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015532432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006106768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016589840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013978480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007692016,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004552464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010322224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003507152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011377488,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016619920,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006137712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013480720,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002481456,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012435408,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009297008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010352528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015594704,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016122512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016649840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007223824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012985360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014040400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007225200,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015097072,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015624880,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005672432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011967344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002014128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014600688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003599248,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010414800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016184560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000988912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005702224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011471984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007287120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008860496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013575216,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008343792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009917168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000492528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001019728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012029872,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001549584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014132848,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003133456,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009420784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015190416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005236944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007086257,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008141521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014957841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002901745,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009718065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010244753,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005004977,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006060017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011829649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008690449,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013932625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001877297,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009220561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009748369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003989233,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000322481,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011332241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011859569,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012907665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013962801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009777937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016602961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000882161,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011363185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012938609,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001409969,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008752721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014522481,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008234993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015578001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010338225,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016107601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000384753,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006681713,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008264561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008784945,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004600081,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004081329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010897905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016665489,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007239601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001999441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009870289,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003057137,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004110897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000974257,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006214385,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000974481,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006744241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007271441,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008844817,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014614577,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014615825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004143249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005718001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006245201,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009404497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003117009,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004692433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009932305,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010990001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016230129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006804113,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008908113,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009702642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014943538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000276626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011285490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015998802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011815346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012342546,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002916658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014446034,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010790130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011317330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016557714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001364114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008707250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014475602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007660402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009762514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015532274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004004146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004522738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010292370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016588658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013450642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014505778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004552306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010321938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003506738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011377586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016619762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001424114,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011379858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011907186,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002481170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012434994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015065458,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003009234,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009825554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015593266,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016650578,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000927730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007752498,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008800338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009327922,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015095762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004096722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000429970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006727282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011969714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013543090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014070290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002542418,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008312178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010415410,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016183250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005702322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006757362,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011470674,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007814770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009390194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015685618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011501778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006262002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006789202,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013605010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001549426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012558162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014133586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003661010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004707698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015190258,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005764242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007084947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012846483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008142131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009187923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016013203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000291891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000819603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016542803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006589587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008690291,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013932723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007644723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014987987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003459859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015517843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000322195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012906483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001907091,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012388115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013436339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002434643,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008204403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014491603,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003492339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010307635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000881875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001409459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011362899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012938323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008752819,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002466867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008234707,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009810131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000384243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011392979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016107699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000912051,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014023539,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002496947,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008264275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014025811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003024499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010367507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010897619,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012998579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001998931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008814739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002526739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003056851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004111635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016167571,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000973971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001502547,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012512691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014613267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004659795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003614227,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004142067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005717491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000477587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012014675,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004692019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009933171,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015700755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005220083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010460979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016230867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016757427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001035219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014147987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008908211,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014675539,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008127956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009701332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015471092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003941940,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012860628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000805300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006045428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006572628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008675860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009730900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002917748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004491124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003974292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007659892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013419380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014475700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007660116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015003252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004003860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000865172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006107348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016588372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013450484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007162484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008737908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014505492,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002977620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010850612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011377300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001424852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012954100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002479988,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009295796,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003009844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005113332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010880916,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001455028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006697204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001984628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007225012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008800436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009327636,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004097332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011967156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011968404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012495732,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003069716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004645140,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009885268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010942964,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000989236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006757076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016712948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001517300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007814260,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014630068,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009388884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000491732,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011500340,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006789300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002604436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014660884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004707412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004189684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005763060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001317077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007084789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013373525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002372213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014956373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016013045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006060341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010773141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016542901,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000820693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001347253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006588405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013931413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001875829,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008691637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009218837,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014988597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016572469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005562933,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006090645,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011332821,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007674517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013963381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008203093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014491189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016076085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016602773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006650325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007178133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002465557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003521621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008235317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009281109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005624853,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006152693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011392565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012967989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006680501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013496053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014023253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005127221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010368373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001470421,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001999029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008813557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013526869,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009870613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015110741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015640597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000444949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016696245,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006742773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007269973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012512405,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009373205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006245013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012014773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013061589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002060277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014116725,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002590133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003645397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010460693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001562517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007332501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008907925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009435253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000275158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015998614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001860054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002387862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002915190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008157622,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003445046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005018422,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010788406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007132406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007659606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002419830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008187414,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009235638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015530550,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004002678,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010290902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016060662,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006105910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006634646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001394870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014506358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004553142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004035030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016618038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011905974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012953814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001952502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007722134,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008249462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014008950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015065270,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003009558,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006167830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010880758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014039030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003039638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007753078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008799126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014568886,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009856310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010910326,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005670422,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000958358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013543670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004644982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009885366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015653718,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005172790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010942678,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016183574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000987926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006757686,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016711638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002044598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007285750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009388374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014628758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009916182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005732470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016214006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001020406,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006260278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013603542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007317590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003132086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003659286,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010475862,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004189398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005236086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011003670,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013373623,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002372951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009188759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002900759,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003956823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009716311,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000290423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016541591,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007645303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008691351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003986999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005563671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011860119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006620343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007675383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013434871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002962807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009778615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015545943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010833879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000880151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006649911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011363735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001410263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008753399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003521719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015578167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000382519,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006152407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006680215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013496791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002495479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008784215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005125911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010368087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016135799,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004080599,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005656023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016665655,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012999159,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007239895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013526967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002527319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008295031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015110839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003055127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016168151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006213399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006742263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001502359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006743511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012511223,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014613847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004660631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003614807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011485655,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006245879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011485751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013588887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007829751,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009403127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002589847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003644983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000505687,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016758007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012573143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007860567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014676375,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008126232,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1014941784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005515896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006043608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006573464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012341176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002914904,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009730712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004490936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005018136,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010259288,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010787896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005548248,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011315960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016556856,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001889944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007131096,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010291512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015531640,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016059352,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000338040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000865752,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011875384,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002449624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012403448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1013978872,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009266296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010320568,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003506008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1005081432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010849144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000368344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006138104,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003008376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1016121144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1000397912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1006167672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1010881496,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001455608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1007223192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1008798616,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1001983416,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1003039480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1015095928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004095864,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011438872,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1011967736,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012495544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1012405570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1002979682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1009267906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (2,1004036226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015873601,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016397889,2); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012425442,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015569154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003519234,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009807554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012951394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002478786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005622626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004057282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003015010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011920226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009303074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016641378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000397122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001974306,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010879522,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001975618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000934914,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005654018,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008799394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010375170,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016672770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003047074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000428642,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012487330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000964226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006726242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014590594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004118626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004643394,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013550658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001500738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015662146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007798338,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006757602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012519490,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000996770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008860866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001532098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012013474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007829698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002068866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006787970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009932834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011509122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014651938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003645314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011509282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004180514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004707330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009426434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011004930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012581346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008133123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009701315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010236515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014957667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004475683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009196835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016534115,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013915939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000291907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010773283,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015494435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006589507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008165667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016029763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010268931,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001364387,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006083491,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002940835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000322403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007661987,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005043555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012907907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005579139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011341155,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007155587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004537155,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013444419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016595843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001394499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009258979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015555907,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012939427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002468003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001425859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010331075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016627363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012442563,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014011523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000386339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006682755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002497827,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008259203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011403043,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013505251,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001457379,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010362595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009320195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006177539,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007754979,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008289027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013002083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014577347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002529475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005673315,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010392419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004632611,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009351715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016690019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014072867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006209059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005166915,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009888067,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006745411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011464515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016185667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010423811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013569187,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001519267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010959523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000479331,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005198435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012538019,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016217187,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013599299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004694755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010991683,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014135011,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002087139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007849027,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012568131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008909507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005504708,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007080868,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002897092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009184132,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012337348,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005000228,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003433860,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011297828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008679908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016016932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001351140,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010256356,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014977508,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001351172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002927588,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006072324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010791428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012894660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003462660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005030852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009752004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000846948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002423236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010287204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003999684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007144548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013966628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005061700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001919044,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003495204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008214308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011359300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008741124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008741796,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002988804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006134180,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010853284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000373092,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005092196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012431780,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009813892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016110948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007206276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011925380,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016646532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006164292,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014028772,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006700004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000940196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008278500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008803268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013524420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002516644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007772100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009341060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000434980,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006731396,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009875236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008309892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011453732,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013555940,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010413284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015132388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007803620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010947332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015668484,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014628036,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005721956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007299268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007300452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010978852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014122820,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015700004,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008371236,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013082116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016234308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008898724,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013617828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003145732,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006289060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016772100,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012851333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001844325,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000801413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006563429,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016003685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004483301,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006059077,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010778181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015499333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007635525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006594789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015500005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012881829,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005553061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008698053,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005555397,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007131557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014995653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016571813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016572101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013953925,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009770021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014489125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013449701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009263621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002978277,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006120965,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007697381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010842117,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012418533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012945509,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002471877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016098245,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004050373,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011914341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009296165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016633445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000391237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006153509,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010872613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001967685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003543845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012975877,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008265285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005647109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013511589,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011944709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016665861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003040165,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007761317,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009861989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002000229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006719333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002535813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011976069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013543749,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004112261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010934085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015655237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002029541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012512581,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003608037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005709989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014615205,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002567333,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003101637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007822789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009389701,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000485669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015687301,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014645029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002597157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004173605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001556709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009419525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007854309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010998021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012573413,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003669253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014676677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000789350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011271878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004469798,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011808102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016527206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013910054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000284998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005004102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010767398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003438630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006582598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005541894,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006077606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002934950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000316518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007654054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012375206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012899974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001892966,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006614118,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007149702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008717382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013436486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009253094,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013972198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010829542,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012405318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012932518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005603750,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005604038,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007180198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010325190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015044294,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009283462,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016622790,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014004614,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015581062,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013498342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004593158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009314310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015076838,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006171654,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007748070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015611910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000411078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012469254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012994150,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014570438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005665382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011427782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002522726,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007243878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009344806,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003594534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011458630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013026566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008315974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010416902,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015138054,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006233510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007809958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012531110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001008006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014634374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016210278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013592390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001544518,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004687846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009408998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014128102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015706598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013087398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008377830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002615974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007337126,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010481094,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012056230,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015200198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000272167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001849479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015475847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003425927,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016010023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005529319,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010250471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014969575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012361959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012363015,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009744071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012887911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000840039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002415303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011322567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016041671,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007137639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011856743,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000333639,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013960007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011352391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012919303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000871431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008209735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001407143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011888135,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013991527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012950663,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001943655,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005086855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009808007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011383911,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004055143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007198343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001437255,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012456007,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003551463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008270567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000933575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011949991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016671143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007766215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000429095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002005383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005148199,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009869351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003581831,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008302983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016166951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013549031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004117031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015125479,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003077607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007796711,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010941447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015660551,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000459719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012517895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009899975,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005716071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002573415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004674343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006252839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009395783,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014116935,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006788167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008364327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013075207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001027335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005746439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015189415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003139495,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014147431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013106567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006556520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014420872,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003948904,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013380936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010771272,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013916648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002909512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001866728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008164328,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000827336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005548488,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007123624,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002938824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007659976,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016565192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006619272,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014482216,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008722664,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016060712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006114056,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010835208,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015554312,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003506440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009794760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014513864,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000888680,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002465992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016092360,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004042440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007186280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004569128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009288232,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014010696,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001960776,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003537960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006681928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008258376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005641224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008784552,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001455784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007217672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011938824,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015082152,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001992296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006713448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011432552,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014577800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008289896,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016154248,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007785544,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003600104,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000981928,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009889192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008846024,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014608296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000984264,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002560424,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010424520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004663688,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009382792,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016722120,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002054024,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009917992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014639144,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013597672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004167720,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005735912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010455016,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000510408,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007847432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009950664,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001045608,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005764712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010485864,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003936201,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004462889,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001320233,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000277065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009184329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010760489,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015479593,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001855561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006574665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012336937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003432009,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000813833,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013399465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001349545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000309609,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007647145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012893065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011326313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004000137,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004525033,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007679305,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010822633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008215017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014503081,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002453161,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005597129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010318281,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004556425,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009277577,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013996681,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005092649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010854025,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014532905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011390249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013492457,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004586249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010349801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001443593,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007740137,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000403145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012462345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010379625,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016141001,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002515817,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004617769,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009338921,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016677225,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006196265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003586601,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011451721,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003587913,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008309065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005689865,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010411017,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001506473,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015132841,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016708617,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007804073,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012523177,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013049993,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005186185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011483241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016202345,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007297673,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016204937,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013586505,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001536585,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006257737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015162953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006258409,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012555337,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014658985,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002609065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003144393,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004712329,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001842570,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004985386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015468938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006563882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013386250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002914794,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000296906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007635978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005018058,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012882026,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000832106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006594506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011315658,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014458474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011850858,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001368874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010809130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012387626,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008201802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008729002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010304778,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007162122,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011881226,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002976682,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000358250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012416938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013984618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001936746,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009801098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008234346,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007191434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009294826,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015056714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010873322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012449098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003544554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005111466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008790474,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011944106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015088074,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004080298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003038154,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009326218,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005141290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009862442,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001998634,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003575946,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008821994,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004636938,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015119594,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001494282,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006213386,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013037930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014613194,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005709162,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011470538,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016191690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002566506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007285610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012006762,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001525802,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006244906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009388874,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002060106,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006781258,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013069322,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005740554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008883882,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007317002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016757258,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007852714,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009955978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014677130,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007086219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015991435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013373003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013908715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007622731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005005227,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012869323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000821451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011837867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014980811,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003974059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004500875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016559307,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001891211,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010798475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009755179,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001893419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008715787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002963435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010827275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016589803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005066699,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012930667,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014506955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014509163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016085451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013467435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015578923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012963083,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000913163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013498795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015075243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003027371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000408939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001985387,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005130635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009849739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011425643,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002520971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008809803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004099467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004624363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009345515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003057483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006202859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010921963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012497739,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003593195,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005162155,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014602411,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000977355,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005696459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010417611,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016178859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004655755,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011994059,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002048139,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003624587,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006768427,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011489579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010449131,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013592843,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003120363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012025579,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010983179,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000502475,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007840523,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014663883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006800075,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005757803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004192459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013624363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016776555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001312300,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012331052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011288908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013391532,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001343660,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010248876,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002920108,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012360364,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006599276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011320428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014463628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003456620,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002415756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003992204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004519148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013959404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007671372,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012392524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015535852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008207084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009775020,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002446252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009270668,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005084716,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010847116,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015568268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016103468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010342892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015061996,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006156812,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003014156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007735308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005117388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012454412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014557644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005652588,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014557804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002509932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004613196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015629612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007765804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006724684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013011724,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005682956,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007261452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015125932,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016701708,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007797164,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009364844,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012516268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000460172,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003612524,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008333676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011476876,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001529676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004675052,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006250828,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009394156,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007827276,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012548428,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005210796,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007322284,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015187404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007323596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009425548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000521516,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006282892,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008659181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015997229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003947309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005516525,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014956781,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001331469,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016533229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000291021,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014451565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007122797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013410861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001362989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009226061,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010803245,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013947213,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012906509,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008194893,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014482957,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010299565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011875341,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002970797,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013978733,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000352909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001928813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011369069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003507309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016090765,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004042893,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010329677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009288941,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003000909,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006146285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010865389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012968365,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005104557,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009825709,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002496941,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007216045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010361037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015080141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007218381,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009319309,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010897805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014040621,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008815085,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016152109,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008815117,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010391533,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001486349,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006207501,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011970029,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003064845,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012505101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009887181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013029997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016184781,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004134861,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010959149,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015678253,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002054221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012535597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003630669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008876973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013598125,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002590989,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007845805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009413485,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014134637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000508813,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002084717,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014670221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011527565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008909133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013628237,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004461550,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014944590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000278190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009718446,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014439598,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016016046,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003968174,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007112142,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013933198,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006071438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005029166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001886510,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008182926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012893934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005565166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008708878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013430030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006101262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010820366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007677710,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005060814,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000875886,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004029646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007173486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008740398,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016613742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013995854,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007709230,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006667086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000907278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008245582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005626382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014533646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015069358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003019438,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014027374,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001979502,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006698606,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014562958,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002515086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008277102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016141454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013523022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004091534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001473102,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006194926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007770702,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010916078,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015635182,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003587310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013019342,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000969422,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016171950,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007267022,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016707278,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000464942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010946446,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014091310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008865806,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003113454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016739822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000495566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007834638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012553742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009935822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006793166,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011514318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004185550,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004185710,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001567534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009431630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015728942,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003419215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000801039,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014427407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002377487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005522863,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010241967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007634351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009202031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001873263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006592367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009737615,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002408847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008695631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013416783,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010274127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009231343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001369583,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010809839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015528943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000328879,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009769135,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002440367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005584335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004016815,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004543631,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000358703,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005077807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010841231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001935151,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008231567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005615855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010334959,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007728399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005109455,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014550895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016128207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004079471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004606287,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006181423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014046543,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006717775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012479023,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013005839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003575119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005677071,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010398895,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015117999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016693775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007789231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014078063,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000452239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005173391,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015654511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014613647,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011470991,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004667119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001524463,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000484783,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003635951,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012543215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013067983,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002596271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005739215,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011501487,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007317711,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016757967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014139791,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005234735,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015716239,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006811183,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008387471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011532335,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016251439,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010228720,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007086064,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007621136,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009724368,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002395760,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003972048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007116912,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006075184,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009220176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010796336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013939280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012372784,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003467856,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008714160,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014476048,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007147280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002963888,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004531568,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009786256,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003500400,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004035984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010322768,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009282032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001418224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006139376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000377520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003529712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009817776,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002489008,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011396272,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016115376,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002490320,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001449616,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000407344,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001985840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003561104,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012993264,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000945392,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008283440,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008808208,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007242992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000438992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012498192,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002017488,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009880432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001510960,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006232112,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014095184,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002047312,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010952528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012529712,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013054480,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008871088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001007280,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002583056,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012023312,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016744464,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005222032,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006797936,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014662288,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008376432,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004190864,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004717808,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015198800,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002888785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010753265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012856529,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016009137,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007104209,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004486033,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016544465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001343377,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010783633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013928497,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001878577,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000839153,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008176177,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005558257,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014998513,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016577009,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007671825,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005053905,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012917873,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001911249,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005054065,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004022737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004022897,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007702321,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010847313,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012948241,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000900369,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008237649,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000901041,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005622193,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011917073,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004580209,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014020465,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001972593,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005115793,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015598961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016134545,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013516113,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013516785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007763793,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015628273,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003580401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013012433,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005683665,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004116145,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004642961,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011981265,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010940561,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014084401,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006755633,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011474737,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013043953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000994033,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005715185,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001530129,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012012785,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012546833,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014116049,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002602353,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008890417,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013609521,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004178801,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003138097,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002095953,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015722321,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000795826,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003948050,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002907314,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009194098,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000289426,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001865330,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014450834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003443826,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008689746,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005547090,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015523058,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000321970,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007659250,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012380402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000857298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005576402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010297554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004009906,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004536722,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011874002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009255826,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001394066,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003505554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006648370,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005608946,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013472786,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001422866,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006144018,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000383442,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007720466,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012441618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012966514,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001959890,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011400146,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016121298,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007216242,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008784178,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004073586,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004598354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007753010,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010895954,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014575378,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000951730,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002527506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007246610,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011968434,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009350002,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015647602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014606738,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006742930,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008318834,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011464082,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016183186,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001517554,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006238706,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016719698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015678962,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000476850,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010453458,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002589650,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004691602,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000506674,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014133042,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015710354,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006804274,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012567698,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003661618,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008382770,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010484978,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013628690,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007080179,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016520435,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012860275,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004998515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016014035,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002388851,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006069299,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009213267,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014974515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007645747,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015510867,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000843795,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008182099,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014470163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007141395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010284723,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004523635,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009244787,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005059219,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009780371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003492467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006637715,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011356819,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016077971,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005595731,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010316883,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001412339,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010852595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016614483,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000370611,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005091763,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000905939,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011389363,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016108467,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004060595,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009306515,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000401459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006163859,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010882963,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012461459,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011418163,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003556403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008275507,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008802323,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001473555,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003050003,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005153235,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014058451,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005153395,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011450835,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008832819,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016172147,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006225203,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015130419,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012522803,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003617875,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009904915,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001000371,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010440627,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012016403,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004154643,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009400691,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002071923,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013615443,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004183955,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004710899,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015191891,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001568243,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006287347,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007863123,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011008499,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012322804,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000799700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005520852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016003252,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003953332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004480148,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011818452,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009200436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010777748,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013921588,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015496852,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000831220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008169268,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008696084,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013415188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011849972,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001903316,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006624468,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009768308,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014487412,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007158644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016065908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015025204,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013983060,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007696436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010840404,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012942356,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005078548,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009799700,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012943028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003006644,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004574324,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016633012,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005109908,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015591028,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006686356,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008789076,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015086676,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003036756,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016663124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015622388,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009861556,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013004500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000956628,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006718900,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011973332,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006212500,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002028596,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003604884,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013037044,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000987124,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008326196,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007284724,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015148564,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003100692,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007819796,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012540948,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002059220,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009923188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002594420,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013602612,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004697684,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003131188,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015716436,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009955604,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000788917,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011804949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003941141,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016526773,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000282517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010765685,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015484789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011301269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010259285,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001354741,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002930517,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007651669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010794997,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016556885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015516149,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012373493,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009754293,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000850389,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006611637,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011332789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011867093,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016588245,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001386133,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004529973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001922357,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012404885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003498805,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005601013,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010323221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011898613,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002994453,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000376693,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011394261,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014538101,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003530453,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002488181,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004066677,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001447477,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004591445,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009312597,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003025973,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010889045,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012466229,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002519573,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005664949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016681653,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014063221,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005158549,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010920565,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008312949,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011456149,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008840437,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013559541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011992661,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003088117,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000469941,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007809269,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006767541,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001542037,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006263189,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009406005,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014127157,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012560789,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015703605,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010478069,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001572885,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016775669,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000271478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004990582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006566870,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013391158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006062390,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013926486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015502934,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012884758,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003455062,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014463254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002413334,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007135158,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000333206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001909110,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015535478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003485558,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006630806,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008731478,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016071062,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005588822,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010309974,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001405430,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002981206,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016607574,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009804982,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000899030,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016102582,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011917782,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006155926,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009299766,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014020918,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001970998,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007734422,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012453526,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015597366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012980470,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001466646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007228150,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012483350,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000427382,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002002646,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005146486,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009867638,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008300246,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011444086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004115318,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015124534,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010939734,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005177878,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008330070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013042358,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002570262,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007289366,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010434742,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015153846,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007292086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012011190,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014113910,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000488086,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010971254,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014114454,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008361590,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004178070,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010464854,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015186006,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001560310,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011000566,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000520630,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013103830,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001834935,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009699031,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015996343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002370263,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007091415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010770839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015489943,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006584887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012874231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003442231,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008163383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013409303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011843063,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001896407,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005041271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003474903,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004010103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010297143,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002968375,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006113367,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010832471,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012935447,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008224855,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012936119,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007183127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015047607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007185847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004567415,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016626103,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005102999,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001960343,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008782167,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000918359,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005639511,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003029847,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010894327,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003032567,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005134519,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006710967,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009854935,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014576087,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016151223,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004103351,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011966423,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013535383,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004629303,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010925719,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015646871,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007783063,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015648055,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013029111,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014607607,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005701399,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007278839,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016719095,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003093783,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007812887,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014101207,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005197175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014637431,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008875575,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001546807,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004690775,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015173175,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006269271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010988375,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015709527,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014668823,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001043127,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016245271,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011799736,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006038648,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013903000,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003428984,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011293336,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008150680,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005532248,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002924632,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011829848,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000307128,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012365560,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000842456,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006604728,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009749720,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011325880,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1003997112,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008707992,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011861208,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001379224,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004524088,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005594104,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008738840,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014501368,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013457944,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002451448,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010315288,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002986520,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007707672,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016612888,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1006666200,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009811064,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014530168,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1002482296,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011387512,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1013490488,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1001440568,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000401176,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014562584,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000936888,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1005658040,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007233816,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004091160,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004616056,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1009337208,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1014056312,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1000432536,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015634808,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016170392,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1008833528,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1010409304,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1011985752,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1016073506,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1004550402,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1015033058,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1007704290,1); insert into feature_code_to_license (license_code_id,license_key,license_type) values (1,1012425442,1);
<gh_stars>0 select c_timestamp, COUNT(DISTINCT c_integer) from alltypes group by c_timestamp order by c_timestamp;
SELECT id_dep, den_dep, nume, functie FROM angajati NATURAL JOIN departamente WHERE id_dep = 10 ORDER BY 3;
/* https://www.hackerrank.com/challenges/weather-observation-station-17/problem */ SELECT ROUND(LONG_W,4) FROM STATION WHERE LAT_N>38.7780 ORDER BY LAT_N ASC LIMIT 1;
DROP TABLE IF EXISTS src; DROP TABLE IF EXISTS src1; DROP TABLE IF EXISTS src_json; DROP TABLE IF EXISTS src_sequencefile; DROP TABLE IF EXISTS src_thrift; DROP TABLE IF EXISTS srcbucket; DROP TABLE IF EXISTS srcbucket2; DROP TABLE IF EXISTS srcpart; DROP TABLE IF EXISTS primitives; -- -- Table src -- DROP TABLE IF EXISTS src; CREATE TABLE src (key STRING, value STRING) STORED AS TEXTFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt" INTO TABLE src; -- -- Table src1 -- DROP TABLE IF EXISTS src1; CREATE TABLE src1 (key STRING, value STRING) STORED AS TEXTFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv3.txt" INTO TABLE src1; -- -- Table src_json -- DROP TABLE IF EXISTS src_json; CREATE TABLE src_json (json STRING) STORED AS TEXTFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/json.txt" INTO TABLE src_json; -- -- Table src_sequencefile -- DROP TABLE IF EXISTS src_sequencefile; CREATE TABLE src_sequencefile (key STRING, value STRING) STORED AS SEQUENCEFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.seq" INTO TABLE src_sequencefile; -- -- Table src_thrift -- DROP TABLE IF EXISTS src_thrift; CREATE TABLE src_thrift ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.thrift.ThriftDeserializer' WITH SERDEPROPERTIES ( 'serialization.class' = 'org.apache.hadoop.hive.serde2.thrift.test.Complex', 'serialization.format' = 'com.facebook.thrift.protocol.TBinaryProtocol') STORED AS SEQUENCEFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/complex.seq" INTO TABLE src_thrift; -- -- Table srcbucket -- DROP TABLE IF EXISTS srcbucket; CREATE TABLE srcbucket (key INT, value STRING) CLUSTERED BY (key) INTO 2 BUCKETS STORED AS TEXTFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket0.txt" INTO TABLE srcbucket; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket1.txt" INTO TABLE srcbucket; -- -- Table srcbucket2 -- DROP TABLE IF EXISTS srcbucket2; CREATE TABLE srcbucket2 (key INT, value STRING) CLUSTERED BY (key) INTO 4 BUCKETS STORED AS TEXTFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket20.txt" INTO TABLE srcbucket2; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/srcbucket21.txt" INTO TABLE srcbucket2; -- -- Table srcpart -- DROP TABLE IF EXISTS srcpart; CREATE TABLE srcpart (key STRING, value STRING) PARTITIONED BY (ds STRING, hr STRING) STORED AS TEXTFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt" OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-08", hr="11"); LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt" OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-08", hr="12"); LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt" OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-09", hr="11"); LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/kv1.txt" OVERWRITE INTO TABLE srcpart PARTITION (ds="2008-04-09", hr="12"); DROP TABLE IF EXISTS primitives; CREATE TABLE primitives ( id INT, bool_col BOOLEAN, tinyint_col TINYINT, smallint_col SMALLINT, int_col INT, bigint_col BIGINT, float_col FLOAT, double_col DOUBLE, date_string_col STRING, string_col STRING, timestamp_col TIMESTAMP) PARTITIONED BY (year INT, month INT) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' ESCAPED BY '\\' STORED AS TEXTFILE; LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090101.txt" OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=1); LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090201.txt" OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=2); LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090301.txt" OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=3); LOAD DATA LOCAL INPATH "${hiveconf:test.data.dir}/types/primitives/090401.txt" OVERWRITE INTO TABLE primitives PARTITION(year=2009, month=4); create table tbl_created_by_init(i int); WITH ss AS (SELECT s_store_sk, sum(ss_ext_sales_price) AS sales, sum(ss_net_profit) AS profit FROM store_sales, date_dim, store WHERE ss_sold_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-03' AS DATE) AND (cast('2000-08-03' AS DATE) + INTERVAL 30 days) AND ss_store_sk = s_store_sk GROUP BY s_store_sk), sr AS (SELECT s_store_sk, sum(sr_return_amt) AS returns, sum(sr_net_loss) AS profit_loss FROM store_returns, date_dim, store WHERE sr_returned_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-03' AS DATE) AND (cast('2000-08-03' AS DATE) + INTERVAL 30 days) AND sr_store_sk = s_store_sk GROUP BY s_store_sk), cs AS (SELECT cs_call_center_sk, sum(cs_ext_sales_price) AS sales, sum(cs_net_profit) AS profit FROM catalog_sales, date_dim WHERE cs_sold_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-03' AS DATE) AND (cast('2000-08-03' AS DATE) + INTERVAL 30 days) GROUP BY cs_call_center_sk), cr AS (SELECT sum(cr_return_amount) AS returns, sum(cr_net_loss) AS profit_loss FROM catalog_returns, date_dim WHERE cr_returned_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-03' AS DATE) AND (cast('2000-08-03' AS DATE) + INTERVAL 30 days)), ws AS (SELECT wp_web_page_sk, sum(ws_ext_sales_price) AS sales, sum(ws_net_profit) AS profit FROM web_sales, date_dim, web_page WHERE ws_sold_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-03' AS DATE) AND (cast('2000-08-03' AS DATE) + INTERVAL 30 days) AND ws_web_page_sk = wp_web_page_sk GROUP BY wp_web_page_sk), wr AS (SELECT wp_web_page_sk, sum(wr_return_amt) AS returns, sum(wr_net_loss) AS profit_loss FROM web_returns, date_dim, web_page WHERE wr_returned_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-03' AS DATE) AND (cast('2000-08-03' AS DATE) + INTERVAL 30 days) AND wr_web_page_sk = wp_web_page_sk GROUP BY wp_web_page_sk) SELECT channel, id, sum(sales) AS sales, sum(returns) AS returns, sum(profit) AS profit FROM (SELECT 'store channel' AS channel, ss.s_store_sk AS id, sales, coalesce(returns, 0) AS returns, (profit - coalesce(profit_loss, 0)) AS profit FROM ss LEFT JOIN sr ON ss.s_store_sk = sr.s_store_sk UNION ALL SELECT 'catalog channel' AS channel, cs_call_center_sk AS id, sales, returns, (profit - profit_loss) AS profit FROM cs, cr UNION ALL SELECT 'web channel' AS channel, ws.wp_web_page_sk AS id, sales, coalesce(returns, 0) returns, (profit - coalesce(profit_loss, 0)) AS profit FROM ws LEFT JOIN wr ON ws.wp_web_page_sk = wr.wp_web_page_sk ) x GROUP BY ROLLUP (channel, id) ORDER BY channel, id LIMIT 100 SELECT cd_gender, cd_marital_status, cd_education_status, count(*) cnt1, cd_purchase_estimate, count(*) cnt2, cd_credit_rating, count(*) cnt3, cd_dep_count, count(*) cnt4, cd_dep_employed_count, count(*) cnt5, cd_dep_college_count, count(*) cnt6 FROM customer c, customer_address ca, customer_demographics WHERE c.c_current_addr_sk = ca.ca_address_sk AND ca_county IN ('Rush County', 'Toole County', 'Jefferson County', 'Dona Ana County', 'La Porte County') AND cd_demo_sk = c.c_current_cdemo_sk AND exists(SELECT * FROM store_sales, date_dim WHERE c.c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year = 2002 AND d_moy BETWEEN 1 AND 1 + 3) AND (exists(SELECT * FROM web_sales, date_dim WHERE c.c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year = 2002 AND d_moy BETWEEN 1 AND 1 + 3) OR exists(SELECT * FROM catalog_sales, date_dim WHERE c.c_customer_sk = cs_ship_customer_sk AND cs_sold_date_sk = d_date_sk AND d_year = 2002 AND d_moy BETWEEN 1 AND 1 + 3)) GROUP BY cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count ORDER BY cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count LIMIT 100 WITH cross_items AS (SELECT i_item_sk ss_item_sk FROM item, (SELECT iss.i_brand_id brand_id, iss.i_class_id class_id, iss.i_category_id category_id FROM store_sales, item iss, date_dim d1 WHERE ss_item_sk = iss.i_item_sk AND ss_sold_date_sk = d1.d_date_sk AND d1.d_year BETWEEN 1999 AND 1999 + 2 INTERSECT SELECT ics.i_brand_id, ics.i_class_id, ics.i_category_id FROM catalog_sales, item ics, date_dim d2 WHERE cs_item_sk = ics.i_item_sk AND cs_sold_date_sk = d2.d_date_sk AND d2.d_year BETWEEN 1999 AND 1999 + 2 INTERSECT SELECT iws.i_brand_id, iws.i_class_id, iws.i_category_id FROM web_sales, item iws, date_dim d3 WHERE ws_item_sk = iws.i_item_sk AND ws_sold_date_sk = d3.d_date_sk AND d3.d_year BETWEEN 1999 AND 1999 + 2) x WHERE i_brand_id = brand_id AND i_class_id = class_id AND i_category_id = category_id ), avg_sales AS (SELECT avg(quantity * list_price) average_sales FROM (SELECT ss_quantity quantity, ss_list_price list_price FROM store_sales, date_dim WHERE ss_sold_date_sk = d_date_sk AND d_year BETWEEN 1999 AND 1999 + 2 UNION ALL SELECT cs_quantity quantity, cs_list_price list_price FROM catalog_sales, date_dim WHERE cs_sold_date_sk = d_date_sk AND d_year BETWEEN 1999 AND 1999 + 2 UNION ALL SELECT ws_quantity quantity, ws_list_price list_price FROM web_sales, date_dim WHERE ws_sold_date_sk = d_date_sk AND d_year BETWEEN 1999 AND 1999 + 2) x) SELECT * FROM (SELECT 'store' channel, i_brand_id, i_class_id, i_category_id, sum(ss_quantity * ss_list_price) sales, count(*) number_sales FROM store_sales, item, date_dim WHERE ss_item_sk IN (SELECT ss_item_sk FROM cross_items) AND ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND d_week_seq = (SELECT d_week_seq FROM date_dim WHERE d_year = 1999 + 1 AND d_moy = 12 AND d_dom = 11) GROUP BY i_brand_id, i_class_id, i_category_id HAVING sum(ss_quantity * ss_list_price) > (SELECT average_sales FROM avg_sales)) this_year, (SELECT 'store' channel, i_brand_id, i_class_id, i_category_id, sum(ss_quantity * ss_list_price) sales, count(*) number_sales FROM store_sales, item, date_dim WHERE ss_item_sk IN (SELECT ss_item_sk FROM cross_items) AND ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND d_week_seq = (SELECT d_week_seq FROM date_dim WHERE d_year = 1999 AND d_moy = 12 AND d_dom = 11) GROUP BY i_brand_id, i_class_id, i_category_id HAVING sum(ss_quantity * ss_list_price) > (SELECT average_sales FROM avg_sales)) last_year WHERE this_year.i_brand_id = last_year.i_brand_id AND this_year.i_class_id = last_year.i_class_id AND this_year.i_category_id = last_year.i_category_id ORDER BY this_year.channel, this_year.i_brand_id, this_year.i_class_id, this_year.i_category_id LIMIT 100 SELECT avg(ss_quantity), avg(ss_ext_sales_price), avg(ss_ext_wholesale_cost), sum(ss_ext_wholesale_cost) FROM store_sales , store , customer_demographics , household_demographics , customer_address , date_dim WHERE s_store_sk = ss_store_sk AND ss_sold_date_sk = d_date_sk AND d_year = 2001 AND ((ss_hdemo_sk = hd_demo_sk AND cd_demo_sk = ss_cdemo_sk AND cd_marital_status = 'M' AND cd_education_status = 'Advanced Degree' AND ss_sales_price BETWEEN 100.00 AND 150.00 AND hd_dep_count = 3 ) OR (ss_hdemo_sk = hd_demo_sk AND cd_demo_sk = ss_cdemo_sk AND cd_marital_status = 'S' AND cd_education_status = 'College' AND ss_sales_price BETWEEN 50.00 AND 100.00 AND hd_dep_count = 1 ) OR (ss_hdemo_sk = hd_demo_sk AND cd_demo_sk = ss_cdemo_sk AND cd_marital_status = 'W' AND cd_education_status = '2 yr Degree' AND ss_sales_price BETWEEN 150.00 AND 200.00 AND hd_dep_count = 1 )) AND ((ss_addr_sk = ca_address_sk AND ca_country = 'United States' AND ca_state IN ('TX', 'OH', 'TX') AND ss_net_profit BETWEEN 100 AND 200 ) OR (ss_addr_sk = ca_address_sk AND ca_country = 'United States' AND ca_state IN ('OR', 'NM', 'KY') AND ss_net_profit BETWEEN 150 AND 300 ) OR (ss_addr_sk = ca_address_sk AND ca_country = 'United States' AND ca_state IN ('VA', 'TX', 'MS') AND ss_net_profit BETWEEN 50 AND 250 )) SELECT substr(r_reason_desc, 1, 20), avg(ws_quantity), avg(wr_refunded_cash), avg(wr_fee) FROM web_sales, web_returns, web_page, customer_demographics cd1, customer_demographics cd2, customer_address, date_dim, reason WHERE ws_web_page_sk = wp_web_page_sk AND ws_item_sk = wr_item_sk AND ws_order_number = wr_order_number AND ws_sold_date_sk = d_date_sk AND d_year = 2000 AND cd1.cd_demo_sk = wr_refunded_cdemo_sk AND cd2.cd_demo_sk = wr_returning_cdemo_sk AND ca_address_sk = wr_refunded_addr_sk AND r_reason_sk = wr_reason_sk AND ( ( cd1.cd_marital_status = 'M' AND cd1.cd_marital_status = cd2.cd_marital_status AND cd1.cd_education_status = 'Advanced Degree' AND cd1.cd_education_status = cd2.cd_education_status AND ws_sales_price BETWEEN 100.00 AND 150.00 ) OR ( cd1.cd_marital_status = 'S' AND cd1.cd_marital_status = cd2.cd_marital_status AND cd1.cd_education_status = 'College' AND cd1.cd_education_status = cd2.cd_education_status AND ws_sales_price BETWEEN 50.00 AND 100.00 ) OR ( cd1.cd_marital_status = 'W' AND cd1.cd_marital_status = cd2.cd_marital_status AND cd1.cd_education_status = '2 yr Degree' AND cd1.cd_education_status = cd2.cd_education_status AND ws_sales_price BETWEEN 150.00 AND 200.00 ) ) AND ( ( ca_country = 'United States' AND ca_state IN ('IN', 'OH', 'NJ') AND ws_net_profit BETWEEN 100 AND 200 ) OR ( ca_country = 'United States' AND ca_state IN ('WI', 'CT', 'KY') AND ws_net_profit BETWEEN 150 AND 300 ) OR ( ca_country = 'United States' AND ca_state IN ('LA', 'IA', 'AR') AND ws_net_profit BETWEEN 50 AND 250 ) ) GROUP BY r_reason_desc ORDER BY substr(r_reason_desc, 1, 20) , avg(ws_quantity) , avg(wr_refunded_cash) , avg(wr_fee) LIMIT 100 WITH ss AS ( SELECT i_manufact_id, sum(ss_ext_sales_price) total_sales FROM store_sales, date_dim, customer_address, item WHERE i_manufact_id IN (SELECT i_manufact_id FROM item WHERE i_category IN ('Electronics')) AND ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND d_year = 1998 AND d_moy = 5 AND ss_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_manufact_id), cs AS (SELECT i_manufact_id, sum(cs_ext_sales_price) total_sales FROM catalog_sales, date_dim, customer_address, item WHERE i_manufact_id IN ( SELECT i_manufact_id FROM item WHERE i_category IN ('Electronics')) AND cs_item_sk = i_item_sk AND cs_sold_date_sk = d_date_sk AND d_year = 1998 AND d_moy = 5 AND cs_bill_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_manufact_id), ws AS ( SELECT i_manufact_id, sum(ws_ext_sales_price) total_sales FROM web_sales, date_dim, customer_address, item WHERE i_manufact_id IN (SELECT i_manufact_id FROM item WHERE i_category IN ('Electronics')) AND ws_item_sk = i_item_sk AND ws_sold_date_sk = d_date_sk AND d_year = 1998 AND d_moy = 5 AND ws_bill_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_manufact_id) SELECT i_manufact_id, sum(total_sales) total_sales FROM (SELECT * FROM ss UNION ALL SELECT * FROM cs UNION ALL SELECT * FROM ws) tmp1 GROUP BY i_manufact_id ORDER BY total_sales LIMIT 100 WITH ssr AS ( SELECT s_store_id, sum(sales_price) AS sales, sum(profit) AS profit, sum(return_amt) AS RETURNS, sum(net_loss) AS profit_loss FROM (SELECT ss_store_sk AS store_sk, ss_sold_date_sk AS date_sk, ss_ext_sales_price AS sales_price, ss_net_profit AS profit, cast(0 AS DECIMAL(7, 2)) AS return_amt, cast(0 AS DECIMAL(7, 2)) AS net_loss FROM store_sales UNION ALL SELECT sr_store_sk AS store_sk, sr_returned_date_sk AS date_sk, cast(0 AS DECIMAL(7, 2)) AS sales_price, cast(0 AS DECIMAL(7, 2)) AS profit, sr_return_amt AS return_amt, sr_net_loss AS net_loss FROM store_returns) salesreturns, date_dim, store WHERE date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-23' AS DATE) AND ((cast('2000-08-23' AS DATE) + INTERVAL 14 days)) AND store_sk = s_store_sk GROUP BY s_store_id), csr AS ( SELECT cp_catalog_page_id, sum(sales_price) AS sales, sum(profit) AS profit, sum(return_amt) AS RETURNS, sum(net_loss) AS profit_loss FROM (SELECT cs_catalog_page_sk AS page_sk, cs_sold_date_sk AS date_sk, cs_ext_sales_price AS sales_price, cs_net_profit AS profit, cast(0 AS DECIMAL(7, 2)) AS return_amt, cast(0 AS DECIMAL(7, 2)) AS net_loss FROM catalog_sales UNION ALL SELECT cr_catalog_page_sk AS page_sk, cr_returned_date_sk AS date_sk, cast(0 AS DECIMAL(7, 2)) AS sales_price, cast(0 AS DECIMAL(7, 2)) AS profit, cr_return_amount AS return_amt, cr_net_loss AS net_loss FROM catalog_returns ) salesreturns, date_dim, catalog_page WHERE date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-23' AS DATE) AND ((cast('2000-08-23' AS DATE) + INTERVAL 14 days)) AND page_sk = cp_catalog_page_sk GROUP BY cp_catalog_page_id) , wsr AS ( SELECT web_site_id, sum(sales_price) AS sales, sum(profit) AS profit, sum(return_amt) AS RETURNS, sum(net_loss) AS profit_loss FROM (SELECT ws_web_site_sk AS wsr_web_site_sk, ws_sold_date_sk AS date_sk, ws_ext_sales_price AS sales_price, ws_net_profit AS profit, cast(0 AS DECIMAL(7, 2)) AS return_amt, cast(0 AS DECIMAL(7, 2)) AS net_loss FROM web_sales UNION ALL SELECT ws_web_site_sk AS wsr_web_site_sk, wr_returned_date_sk AS date_sk, cast(0 AS DECIMAL(7, 2)) AS sales_price, cast(0 AS DECIMAL(7, 2)) AS profit, wr_return_amt AS return_amt, wr_net_loss AS net_loss FROM web_returns LEFT OUTER JOIN web_sales ON (wr_item_sk = ws_item_sk AND wr_order_number = ws_order_number) ) salesreturns, date_dim, web_site WHERE date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-23' AS DATE) AND ((cast('2000-08-23' AS DATE) + INTERVAL 14 days)) AND wsr_web_site_sk = web_site_sk GROUP BY web_site_id) SELECT channel, id, sum(sales) AS sales, sum(returns) AS returns, sum(profit) AS profit FROM (SELECT 'store channel' AS channel, concat('store', s_store_id) AS id, sales, returns, (profit - profit_loss) AS profit FROM ssr UNION ALL SELECT 'catalog channel' AS channel, concat('catalog_page', cp_catalog_page_id) AS id, sales, returns, (profit - profit_loss) AS profit FROM csr UNION ALL SELECT 'web channel' AS channel, concat('web_site', web_site_id) AS id, sales, returns, (profit - profit_loss) AS profit FROM wsr ) x GROUP BY ROLLUP (channel, id) ORDER BY channel, id LIMIT 100 SELECT * FROM ( SELECT w_warehouse_name, i_item_id, sum(CASE WHEN (cast(d_date AS DATE) < cast('2000-03-11' AS DATE)) THEN inv_quantity_on_hand ELSE 0 END) AS inv_before, sum(CASE WHEN (cast(d_date AS DATE) >= cast('2000-03-11' AS DATE)) THEN inv_quantity_on_hand ELSE 0 END) AS inv_after FROM inventory, warehouse, item, date_dim WHERE i_current_price BETWEEN 0.99 AND 1.49 AND i_item_sk = inv_item_sk AND inv_warehouse_sk = w_warehouse_sk AND inv_date_sk = d_date_sk AND d_date BETWEEN (cast('2000-03-11' AS DATE) - INTERVAL 30 days) AND (cast('2000-03-11' AS DATE) + INTERVAL 30 days) GROUP BY w_warehouse_name, i_item_id) x WHERE (CASE WHEN inv_before > 0 THEN inv_after / inv_before ELSE NULL END) BETWEEN 2.0 / 3.0 AND 3.0 / 2.0 ORDER BY w_warehouse_name, i_item_id LIMIT 100 WITH ss AS ( SELECT i_item_id, sum(ss_ext_sales_price) total_sales FROM store_sales, date_dim, customer_address, item WHERE i_item_id IN (SELECT i_item_id FROM item WHERE i_category IN ('Music')) AND ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND d_year = 1998 AND d_moy = 9 AND ss_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_item_id), cs AS ( SELECT i_item_id, sum(cs_ext_sales_price) total_sales FROM catalog_sales, date_dim, customer_address, item WHERE i_item_id IN (SELECT i_item_id FROM item WHERE i_category IN ('Music')) AND cs_item_sk = i_item_sk AND cs_sold_date_sk = d_date_sk AND d_year = 1998 AND d_moy = 9 AND cs_bill_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_item_id), ws AS ( SELECT i_item_id, sum(ws_ext_sales_price) total_sales FROM web_sales, date_dim, customer_address, item WHERE i_item_id IN (SELECT i_item_id FROM item WHERE i_category IN ('Music')) AND ws_item_sk = i_item_sk AND ws_sold_date_sk = d_date_sk AND d_year = 1998 AND d_moy = 9 AND ws_bill_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_item_id) SELECT i_item_id, sum(total_sales) total_sales FROM (SELECT * FROM ss UNION ALL SELECT * FROM cs UNION ALL SELECT * FROM ws) tmp1 GROUP BY i_item_id ORDER BY i_item_id, total_sales LIMIT 100 SELECT promotions, total, cast(promotions AS DECIMAL(15, 4)) / cast(total AS DECIMAL(15, 4)) * 100 FROM (SELECT sum(ss_ext_sales_price) promotions FROM store_sales, store, promotion, date_dim, customer, customer_address, item WHERE ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND ss_promo_sk = p_promo_sk AND ss_customer_sk = c_customer_sk AND ca_address_sk = c_current_addr_sk AND ss_item_sk = i_item_sk AND ca_gmt_offset = -5 AND i_category = 'Jewelry' AND (p_channel_dmail = 'Y' OR p_channel_email = 'Y' OR p_channel_tv = 'Y') AND s_gmt_offset = -5 AND d_year = 1998 AND d_moy = 11) promotional_sales, (SELECT sum(ss_ext_sales_price) total FROM store_sales, store, date_dim, customer, customer_address, item WHERE ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND ss_customer_sk = c_customer_sk AND ca_address_sk = c_current_addr_sk AND ss_item_sk = i_item_sk AND ca_gmt_offset = -5 AND i_category = 'Jewelry' AND s_gmt_offset = -5 AND d_year = 1998 AND d_moy = 11) all_sales ORDER BY promotions, total LIMIT 100 WITH ss AS ( SELECT i_item_id, sum(ss_ext_sales_price) total_sales FROM store_sales, date_dim, customer_address, item WHERE i_item_id IN (SELECT i_item_id FROM item WHERE i_color IN ('slate', 'blanched', 'burnished')) AND ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 2 AND ss_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_item_id), cs AS ( SELECT i_item_id, sum(cs_ext_sales_price) total_sales FROM catalog_sales, date_dim, customer_address, item WHERE i_item_id IN (SELECT i_item_id FROM item WHERE i_color IN ('slate', 'blanched', 'burnished')) AND cs_item_sk = i_item_sk AND cs_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 2 AND cs_bill_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_item_id), ws AS ( SELECT i_item_id, sum(ws_ext_sales_price) total_sales FROM web_sales, date_dim, customer_address, item WHERE i_item_id IN (SELECT i_item_id FROM item WHERE i_color IN ('slate', 'blanched', 'burnished')) AND ws_item_sk = i_item_sk AND ws_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 2 AND ws_bill_addr_sk = ca_address_sk AND ca_gmt_offset = -5 GROUP BY i_item_id) SELECT i_item_id, sum(total_sales) total_sales FROM (SELECT * FROM ss UNION ALL SELECT * FROM cs UNION ALL SELECT * FROM ws) tmp1 GROUP BY i_item_id ORDER BY total_sales LIMIT 100 WITH customer_total_return AS ( SELECT sr_customer_sk AS ctr_customer_sk, sr_store_sk AS ctr_store_sk, sum(sr_return_amt) AS ctr_total_return FROM store_returns, date_dim WHERE sr_returned_date_sk = d_date_sk AND d_year = 2000 GROUP BY sr_customer_sk, sr_store_sk) SELECT c_customer_id FROM customer_total_return ctr1, store, customer WHERE ctr1.ctr_total_return > (SELECT avg(ctr_total_return) * 1.2 FROM customer_total_return ctr2 WHERE ctr1.ctr_store_sk = ctr2.ctr_store_sk) AND s_store_sk = ctr1.ctr_store_sk AND s_state = 'TN' AND ctr1.ctr_customer_sk = c_customer_sk ORDER BY c_customer_id LIMIT 100 SELECT i_brand_id brand_id, i_brand brand, sum(ss_ext_sales_price) ext_price FROM date_dim, store_sales, item WHERE d_date_sk = ss_sold_date_sk AND ss_item_sk = i_item_sk AND i_manager_id = 28 AND d_moy = 11 AND d_year = 1999 GROUP BY i_brand, i_brand_id ORDER BY ext_price DESC, brand_id LIMIT 100 SELECT cc_call_center_id Call_Center, cc_name Call_Center_Name, cc_manager Manager, sum(cr_net_loss) Returns_Loss FROM call_center, catalog_returns, date_dim, customer, customer_address, customer_demographics, household_demographics WHERE cr_call_center_sk = cc_call_center_sk AND cr_returned_date_sk = d_date_sk AND cr_returning_customer_sk = c_customer_sk AND cd_demo_sk = c_current_cdemo_sk AND hd_demo_sk = c_current_hdemo_sk AND ca_address_sk = c_current_addr_sk AND d_year = 1998 AND d_moy = 11 AND ((cd_marital_status = 'M' AND cd_education_status = 'Unknown') OR (cd_marital_status = 'W' AND cd_education_status = 'Advanced Degree')) AND hd_buy_potential LIKE 'Unknown%' AND ca_gmt_offset = -7 GROUP BY cc_call_center_id, cc_name, cc_manager, cd_marital_status, cd_education_status ORDER BY sum(cr_net_loss) DESC SELECT i_item_id, avg(ss_quantity) agg1, avg(ss_list_price) agg2, avg(ss_coupon_amt) agg3, avg(ss_sales_price) agg4 FROM store_sales, customer_demographics, date_dim, item, promotion WHERE ss_sold_date_sk = d_date_sk AND ss_item_sk = i_item_sk AND ss_cdemo_sk = cd_demo_sk AND ss_promo_sk = p_promo_sk AND cd_gender = 'M' AND cd_marital_status = 'S' AND cd_education_status = 'College' AND (p_channel_email = 'N' OR p_channel_event = 'N') AND d_year = 2000 GROUP BY i_item_id ORDER BY i_item_id LIMIT 100 SELECT i_item_id, s_state, grouping(s_state) g_state, avg(ss_quantity) agg1, avg(ss_list_price) agg2, avg(ss_coupon_amt) agg3, avg(ss_sales_price) agg4 FROM store_sales, customer_demographics, date_dim, store, item WHERE ss_sold_date_sk = d_date_sk AND ss_item_sk = i_item_sk AND ss_store_sk = s_store_sk AND ss_cdemo_sk = cd_demo_sk AND cd_gender = 'M' AND cd_marital_status = 'S' AND cd_education_status = 'College' AND d_year = 2002 AND s_state IN ('TN', 'TN', 'TN', 'TN', 'TN', 'TN') GROUP BY ROLLUP (i_item_id, s_state) ORDER BY i_item_id, s_state LIMIT 100 WITH cs_ui AS (SELECT cs_item_sk, sum(cs_ext_list_price) AS sale, sum(cr_refunded_cash + cr_reversed_charge + cr_store_credit) AS refund FROM catalog_sales , catalog_returns WHERE cs_item_sk = cr_item_sk AND cs_order_number = cr_order_number GROUP BY cs_item_sk HAVING sum(cs_ext_list_price) > 2 * sum(cr_refunded_cash + cr_reversed_charge + cr_store_credit)), cross_sales AS (SELECT i_product_name product_name, i_item_sk item_sk, s_store_name store_name, s_zip store_zip, ad1.ca_street_number b_street_number, ad1.ca_street_name b_streen_name, ad1.ca_city b_city, ad1.ca_zip b_zip, ad2.ca_street_number c_street_number, ad2.ca_street_name c_street_name, ad2.ca_city c_city, ad2.ca_zip c_zip, d1.d_year AS syear, d2.d_year AS fsyear, d3.d_year s2year, count(*) cnt, sum(ss_wholesale_cost) s1, sum(ss_list_price) s2, sum(ss_coupon_amt) s3 FROM store_sales, store_returns, cs_ui, date_dim d1, date_dim d2, date_dim d3, store, customer, customer_demographics cd1, customer_demographics cd2, promotion, household_demographics hd1, household_demographics hd2, customer_address ad1, customer_address ad2, income_band ib1, income_band ib2, item WHERE ss_store_sk = s_store_sk AND ss_sold_date_sk = d1.d_date_sk AND ss_customer_sk = c_customer_sk AND ss_cdemo_sk = cd1.cd_demo_sk AND ss_hdemo_sk = hd1.hd_demo_sk AND ss_addr_sk = ad1.ca_address_sk AND ss_item_sk = i_item_sk AND ss_item_sk = sr_item_sk AND ss_ticket_number = sr_ticket_number AND ss_item_sk = cs_ui.cs_item_sk AND c_current_cdemo_sk = cd2.cd_demo_sk AND c_current_hdemo_sk = hd2.hd_demo_sk AND c_current_addr_sk = ad2.ca_address_sk AND c_first_sales_date_sk = d2.d_date_sk AND c_first_shipto_date_sk = d3.d_date_sk AND ss_promo_sk = p_promo_sk AND hd1.hd_income_band_sk = ib1.ib_income_band_sk AND hd2.hd_income_band_sk = ib2.ib_income_band_sk AND cd1.cd_marital_status <> cd2.cd_marital_status AND i_color IN ('purple', 'burlywood', 'indian', 'spring', 'floral', 'medium') AND i_current_price BETWEEN 64 AND 64 + 10 AND i_current_price BETWEEN 64 + 1 AND 64 + 15 GROUP BY i_product_name, i_item_sk, s_store_name, s_zip, ad1.ca_street_number, ad1.ca_street_name, ad1.ca_city, ad1.ca_zip, ad2.ca_street_number, ad2.ca_street_name, ad2.ca_city, ad2.ca_zip, d1.d_year, d2.d_year, d3.d_year ) SELECT cs1.product_name, cs1.store_name, cs1.store_zip, cs1.b_street_number, cs1.b_streen_name, cs1.b_city, cs1.b_zip, cs1.c_street_number, cs1.c_street_name, cs1.c_city, cs1.c_zip, cs1.syear, cs1.cnt, cs1.s1, cs1.s2, cs1.s3, cs2.s1, cs2.s2, cs2.s3, cs2.syear, cs2.cnt FROM cross_sales cs1, cross_sales cs2 WHERE cs1.item_sk = cs2.item_sk AND cs1.syear = 1999 AND cs2.syear = 1999 + 1 AND cs2.cnt <= cs1.cnt AND cs1.store_name = cs2.store_name AND cs1.store_zip = cs2.store_zip ORDER BY cs1.product_name, cs1.store_name, cs2.cnt SELECT CASE WHEN (SELECT count(*) FROM store_sales WHERE ss_quantity BETWEEN 1 AND 20) > 62316685 THEN (SELECT avg(ss_ext_discount_amt) FROM store_sales WHERE ss_quantity BETWEEN 1 AND 20) ELSE (SELECT avg(ss_net_paid) FROM store_sales WHERE ss_quantity BETWEEN 1 AND 20) END bucket1, CASE WHEN (SELECT count(*) FROM store_sales WHERE ss_quantity BETWEEN 21 AND 40) > 19045798 THEN (SELECT avg(ss_ext_discount_amt) FROM store_sales WHERE ss_quantity BETWEEN 21 AND 40) ELSE (SELECT avg(ss_net_paid) FROM store_sales WHERE ss_quantity BETWEEN 21 AND 40) END bucket2, CASE WHEN (SELECT count(*) FROM store_sales WHERE ss_quantity BETWEEN 41 AND 60) > 365541424 THEN (SELECT avg(ss_ext_discount_amt) FROM store_sales WHERE ss_quantity BETWEEN 41 AND 60) ELSE (SELECT avg(ss_net_paid) FROM store_sales WHERE ss_quantity BETWEEN 41 AND 60) END bucket3, CASE WHEN (SELECT count(*) FROM store_sales WHERE ss_quantity BETWEEN 61 AND 80) > 216357808 THEN (SELECT avg(ss_ext_discount_amt) FROM store_sales WHERE ss_quantity BETWEEN 61 AND 80) ELSE (SELECT avg(ss_net_paid) FROM store_sales WHERE ss_quantity BETWEEN 61 AND 80) END bucket4, CASE WHEN (SELECT count(*) FROM store_sales WHERE ss_quantity BETWEEN 81 AND 100) > 184483884 THEN (SELECT avg(ss_ext_discount_amt) FROM store_sales WHERE ss_quantity BETWEEN 81 AND 100) ELSE (SELECT avg(ss_net_paid) FROM store_sales WHERE ss_quantity BETWEEN 81 AND 100) END bucket5 FROM reason WHERE r_reason_sk = 1 SELECT dt.d_year, item.i_category_id, item.i_category, sum(ss_ext_sales_price) FROM date_dim dt, store_sales, item WHERE dt.d_date_sk = store_sales.ss_sold_date_sk AND store_sales.ss_item_sk = item.i_item_sk AND item.i_manager_id = 1 AND dt.d_moy = 11 AND dt.d_year = 2000 GROUP BY dt.d_year , item.i_category_id , item.i_category ORDER BY sum(ss_ext_sales_price) DESC, dt.d_year , item.i_category_id , item.i_category LIMIT 100 SELECT i_item_desc, w_warehouse_name, d1.d_week_seq, count(CASE WHEN p_promo_sk IS NULL THEN 1 ELSE 0 END) no_promo, count(CASE WHEN p_promo_sk IS NOT NULL THEN 1 ELSE 0 END) promo, count(*) total_cnt FROM catalog_sales JOIN inventory ON (cs_item_sk = inv_item_sk) JOIN warehouse ON (w_warehouse_sk = inv_warehouse_sk) JOIN item ON (i_item_sk = cs_item_sk) JOIN customer_demographics ON (cs_bill_cdemo_sk = cd_demo_sk) JOIN household_demographics ON (cs_bill_hdemo_sk = hd_demo_sk) JOIN date_dim d1 ON (cs_sold_date_sk = d1.d_date_sk) JOIN date_dim d2 ON (inv_date_sk = d2.d_date_sk) JOIN date_dim d3 ON (cs_ship_date_sk = d3.d_date_sk) LEFT OUTER JOIN promotion ON (cs_promo_sk = p_promo_sk) LEFT OUTER JOIN catalog_returns ON (cr_item_sk = cs_item_sk AND cr_order_number = cs_order_number) WHERE d1.d_week_seq = d2.d_week_seq AND inv_quantity_on_hand < cs_quantity AND d3.d_date > (cast(d1.d_date AS DATE) + interval 5 days) AND hd_buy_potential = '>10000' AND d1.d_year = 1999 AND hd_buy_potential = '>10000' AND cd_marital_status = 'D' AND d1.d_year = 1999 GROUP BY i_item_desc, w_warehouse_name, d1.d_week_seq ORDER BY total_cnt DESC, i_item_desc, w_warehouse_name, d_week_seq LIMIT 100 WITH wss AS (SELECT d_week_seq, ss_store_sk, sum(CASE WHEN (d_day_name = 'Sunday') THEN ss_sales_price ELSE NULL END) sun_sales, sum(CASE WHEN (d_day_name = 'Monday') THEN ss_sales_price ELSE NULL END) mon_sales, sum(CASE WHEN (d_day_name = 'Tuesday') THEN ss_sales_price ELSE NULL END) tue_sales, sum(CASE WHEN (d_day_name = 'Wednesday') THEN ss_sales_price ELSE NULL END) wed_sales, sum(CASE WHEN (d_day_name = 'Thursday') THEN ss_sales_price ELSE NULL END) thu_sales, sum(CASE WHEN (d_day_name = 'Friday') THEN ss_sales_price ELSE NULL END) fri_sales, sum(CASE WHEN (d_day_name = 'Saturday') THEN ss_sales_price ELSE NULL END) sat_sales FROM store_sales, date_dim WHERE d_date_sk = ss_sold_date_sk GROUP BY d_week_seq, ss_store_sk ) SELECT s_store_name1, s_store_id1, d_week_seq1, sun_sales1 / sun_sales2, mon_sales1 / mon_sales2, tue_sales1 / tue_sales2, wed_sales1 / wed_sales2, thu_sales1 / thu_sales2, fri_sales1 / fri_sales2, sat_sales1 / sat_sales2 FROM (SELECT s_store_name s_store_name1, wss.d_week_seq d_week_seq1, s_store_id s_store_id1, sun_sales sun_sales1, mon_sales mon_sales1, tue_sales tue_sales1, wed_sales wed_sales1, thu_sales thu_sales1, fri_sales fri_sales1, sat_sales sat_sales1 FROM wss, store, date_dim d WHERE d.d_week_seq = wss.d_week_seq AND ss_store_sk = s_store_sk AND d_month_seq BETWEEN 1212 AND 1212 + 11) y, (SELECT s_store_name s_store_name2, wss.d_week_seq d_week_seq2, s_store_id s_store_id2, sun_sales sun_sales2, mon_sales mon_sales2, tue_sales tue_sales2, wed_sales wed_sales2, thu_sales thu_sales2, fri_sales fri_sales2, sat_sales sat_sales2 FROM wss, store, date_dim d WHERE d.d_week_seq = wss.d_week_seq AND ss_store_sk = s_store_sk AND d_month_seq BETWEEN 1212 + 12 AND 1212 + 23) x WHERE s_store_id1 = s_store_id2 AND d_week_seq1 = d_week_seq2 - 52 ORDER BY s_store_name1, s_store_id1, d_week_seq1 LIMIT 100 WITH wscs AS ( SELECT sold_date_sk, sales_price FROM (SELECT ws_sold_date_sk sold_date_sk, ws_ext_sales_price sales_price FROM web_sales) x UNION ALL (SELECT cs_sold_date_sk sold_date_sk, cs_ext_sales_price sales_price FROM catalog_sales)), wswscs AS ( SELECT d_week_seq, sum(CASE WHEN (d_day_name = 'Sunday') THEN sales_price ELSE NULL END) sun_sales, sum(CASE WHEN (d_day_name = 'Monday') THEN sales_price ELSE NULL END) mon_sales, sum(CASE WHEN (d_day_name = 'Tuesday') THEN sales_price ELSE NULL END) tue_sales, sum(CASE WHEN (d_day_name = 'Wednesday') THEN sales_price ELSE NULL END) wed_sales, sum(CASE WHEN (d_day_name = 'Thursday') THEN sales_price ELSE NULL END) thu_sales, sum(CASE WHEN (d_day_name = 'Friday') THEN sales_price ELSE NULL END) fri_sales, sum(CASE WHEN (d_day_name = 'Saturday') THEN sales_price ELSE NULL END) sat_sales FROM wscs, date_dim WHERE d_date_sk = sold_date_sk GROUP BY d_week_seq) SELECT d_week_seq1, round(sun_sales1 / sun_sales2, 2), round(mon_sales1 / mon_sales2, 2), round(tue_sales1 / tue_sales2, 2), round(wed_sales1 / wed_sales2, 2), round(thu_sales1 / thu_sales2, 2), round(fri_sales1 / fri_sales2, 2), round(sat_sales1 / sat_sales2, 2) FROM (SELECT wswscs.d_week_seq d_week_seq1, sun_sales sun_sales1, mon_sales mon_sales1, tue_sales tue_sales1, wed_sales wed_sales1, thu_sales thu_sales1, fri_sales fri_sales1, sat_sales sat_sales1 FROM wswscs, date_dim WHERE date_dim.d_week_seq = wswscs.d_week_seq AND d_year = 2001) y, (SELECT wswscs.d_week_seq d_week_seq2, sun_sales sun_sales2, mon_sales mon_sales2, tue_sales tue_sales2, wed_sales wed_sales2, thu_sales thu_sales2, fri_sales fri_sales2, sat_sales sat_sales2 FROM wswscs, date_dim WHERE date_dim.d_week_seq = wswscs.d_week_seq AND d_year = 2001 + 1) z WHERE d_week_seq1 = d_week_seq2 - 53 ORDER BY d_week_seq1 SELECT s_store_name, s_store_id, sum(CASE WHEN (d_day_name = 'Sunday') THEN ss_sales_price ELSE NULL END) sun_sales, sum(CASE WHEN (d_day_name = 'Monday') THEN ss_sales_price ELSE NULL END) mon_sales, sum(CASE WHEN (d_day_name = 'Tuesday') THEN ss_sales_price ELSE NULL END) tue_sales, sum(CASE WHEN (d_day_name = 'Wednesday') THEN ss_sales_price ELSE NULL END) wed_sales, sum(CASE WHEN (d_day_name = 'Thursday') THEN ss_sales_price ELSE NULL END) thu_sales, sum(CASE WHEN (d_day_name = 'Friday') THEN ss_sales_price ELSE NULL END) fri_sales, sum(CASE WHEN (d_day_name = 'Saturday') THEN ss_sales_price ELSE NULL END) sat_sales FROM date_dim, store_sales, store WHERE d_date_sk = ss_sold_date_sk AND s_store_sk = ss_store_sk AND s_gmt_offset = -5 AND d_year = 2000 GROUP BY s_store_name, s_store_id ORDER BY s_store_name, s_store_id, sun_sales, mon_sales, tue_sales, wed_sales, thu_sales, fri_sales, sat_sales LIMIT 100 SELECT ss_customer_sk, sum(act_sales) sumsales FROM (SELECT ss_item_sk, ss_ticket_number, ss_customer_sk, CASE WHEN sr_return_quantity IS NOT NULL THEN (ss_quantity - sr_return_quantity) * ss_sales_price ELSE (ss_quantity * ss_sales_price) END act_sales FROM store_sales LEFT OUTER JOIN store_returns ON (sr_item_sk = ss_item_sk AND sr_ticket_number = ss_ticket_number) , reason WHERE sr_reason_sk = r_reason_sk AND r_reason_desc = 'reason 28') t GROUP BY ss_customer_sk ORDER BY sumsales, ss_customer_sk LIMIT 100 SELECT count(*) FROM ((SELECT DISTINCT c_last_name, c_first_name, d_date FROM store_sales, date_dim, customer WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_customer_sk = customer.c_customer_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11) EXCEPT (SELECT DISTINCT c_last_name, c_first_name, d_date FROM catalog_sales, date_dim, customer WHERE catalog_sales.cs_sold_date_sk = date_dim.d_date_sk AND catalog_sales.cs_bill_customer_sk = customer.c_customer_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11) EXCEPT (SELECT DISTINCT c_last_name, c_first_name, d_date FROM web_sales, date_dim, customer WHERE web_sales.ws_sold_date_sk = date_dim.d_date_sk AND web_sales.ws_bill_customer_sk = customer.c_customer_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11) ) cool_cust SELECT c_last_name, c_first_name, ca_city, bought_city, ss_ticket_number, amt, profit FROM (SELECT ss_ticket_number, ss_customer_sk, ca_city bought_city, sum(ss_coupon_amt) amt, sum(ss_net_profit) profit FROM store_sales, date_dim, store, household_demographics, customer_address WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_store_sk = store.s_store_sk AND store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk AND store_sales.ss_addr_sk = customer_address.ca_address_sk AND (household_demographics.hd_dep_count = 4 OR household_demographics.hd_vehicle_count = 3) AND date_dim.d_dow IN (6, 0) AND date_dim.d_year IN (1999, 1999 + 1, 1999 + 2) AND store.s_city IN ('Fairview', 'Midway', 'Fairview', 'Fairview', 'Fairview') GROUP BY ss_ticket_number, ss_customer_sk, ss_addr_sk, ca_city) dn, customer, customer_address current_addr WHERE ss_customer_sk = c_customer_sk AND customer.c_current_addr_sk = current_addr.ca_address_sk AND current_addr.ca_city <> bought_city ORDER BY c_last_name, c_first_name, ca_city, bought_city, ss_ticket_number LIMIT 100 SELECT s_store_name, sum(ss_net_profit) FROM store_sales, date_dim, store, (SELECT ca_zip FROM ( (SELECT substr(ca_zip, 1, 5) ca_zip FROM customer_address WHERE substr(ca_zip, 1, 5) IN ( '24128','76232','65084','87816','83926','77556','20548', '26231','43848','15126','91137','61265','98294','25782', '17920','18426','98235','40081','84093','28577','55565', '17183','54601','67897','22752','86284','18376','38607', '45200','21756','29741','96765','23932','89360','29839', '25989','28898','91068','72550','10390','18845','47770', '82636','41367','76638','86198','81312','37126','39192', '88424','72175','81426','53672','10445','42666','66864', '66708','41248','48583','82276','18842','78890','49448', '14089','38122','34425','79077','19849','43285','39861', '66162','77610','13695','99543','83444','83041','12305', '57665','68341','25003','57834','62878','49130','81096', '18840','27700','23470','50412','21195','16021','76107', '71954','68309','18119','98359','64544','10336','86379', '27068','39736','98569','28915','24206','56529','57647', '54917','42961','91110','63981','14922','36420','23006', '67467','32754','30903','20260','31671','51798','72325', '85816','68621','13955','36446','41766','68806','16725', '15146','22744','35850','88086','51649','18270','52867', '39972','96976','63792','11376','94898','13595','10516', '90225','58943','39371','94945','28587','96576','57855', '28488','26105','83933','25858','34322','44438','73171', '30122','34102','22685','71256','78451','54364','13354', '45375','40558','56458','28286','45266','47305','69399', '83921','26233','11101','15371','69913','35942','15882', '25631','24610','44165','99076','33786','70738','26653', '14328','72305','62496','22152','10144','64147','48425', '14663','21076','18799','30450','63089','81019','68893', '24996','51200','51211','45692','92712','70466','79994', '22437','25280','38935','71791','73134','56571','14060', '19505','72425','56575','74351','68786','51650','20004', '18383','76614','11634','18906','15765','41368','73241', '76698','78567','97189','28545','76231','75691','22246', '51061','90578','56691','68014','51103','94167','57047', '14867','73520','15734','63435','25733','35474','24676', '94627','53535','17879','15559','53268','59166','11928', '59402','33282','45721','43933','68101','33515','36634', '71286','19736','58058','55253','67473','41918','19515', '36495','19430','22351','77191','91393','49156','50298', '87501','18652','53179','18767','63193','23968','65164', '68880','21286','72823','58470','67301','13394','31016', '70372','67030','40604','24317','45748','39127','26065', '77721','31029','31880','60576','24671','45549','13376', '50016','33123','19769','22927','97789','46081','72151', '15723','46136','51949','68100','96888','64528','14171', '79777','28709','11489','25103','32213','78668','22245', '15798','27156','37930','62971','21337','51622','67853', '10567','38415','15455','58263','42029','60279','37125', '56240','88190','50308','26859','64457','89091','82136', '62377','36233','63837','58078','17043','30010','60099', '28810','98025','29178','87343','73273','30469','64034', '39516','86057','21309','90257','67875','40162','11356', '73650','61810','72013','30431','22461','19512','13375', '55307','30625','83849','68908','26689','96451','38193', '46820','88885','84935','69035','83144','47537','56616', '94983','48033','69952','25486','61547','27385','61860', '58048','56910','16807','17871','35258','31387','35458', '35576')) INTERSECT (SELECT ca_zip FROM (SELECT substr(ca_zip, 1, 5) ca_zip, count(*) cnt FROM customer_address, customer WHERE ca_address_sk = c_current_addr_sk AND c_preferred_cust_flag = 'Y' GROUP BY ca_zip HAVING count(*) > 10) A1) ) A2 ) V1 WHERE ss_store_sk = s_store_sk AND ss_sold_date_sk = d_date_sk AND d_qoy = 2 AND d_year = 1998 AND (substr(s_zip, 1, 2) = substr(V1.ca_zip, 1, 2)) GROUP BY s_store_name ORDER BY s_store_name LIMIT 100 SELECT i_item_desc, i_category, i_class, i_current_price, sum(cs_ext_sales_price) AS itemrevenue, sum(cs_ext_sales_price) * 100 / sum(sum(cs_ext_sales_price)) OVER (PARTITION BY i_class) AS revenueratio FROM catalog_sales, item, date_dim WHERE cs_item_sk = i_item_sk AND i_category IN ('Sports', 'Books', 'Home') AND cs_sold_date_sk = d_date_sk AND d_date BETWEEN cast('1999-02-22' AS DATE) AND (cast('1999-02-22' AS DATE) + INTERVAL 30 days) GROUP BY i_item_id, i_item_desc, i_category, i_class, i_current_price ORDER BY i_category, i_class, i_item_id, i_item_desc, revenueratio LIMIT 100 SELECT * FROM (SELECT i_manufact_id, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_manufact_id) avg_quarterly_sales FROM item, store_sales, date_dim, store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND d_month_seq IN (1200, 1200 + 1, 1200 + 2, 1200 + 3, 1200 + 4, 1200 + 5, 1200 + 6, 1200 + 7, 1200 + 8, 1200 + 9, 1200 + 10, 1200 + 11) AND ((i_category IN ('Books', 'Children', 'Electronics') AND i_class IN ('personal', 'portable', 'reference', 'self-help') AND i_brand IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')) OR (i_category IN ('Women', 'Music', 'Men') AND i_class IN ('accessories', 'classical', 'fragrances', 'pants') AND i_brand IN ('amalgimporto #1', 'edu packscholar #1', 'exportiimporto #1', 'importoamalg #1'))) GROUP BY i_manufact_id, d_qoy) tmp1 WHERE CASE WHEN avg_quarterly_sales > 0 THEN abs(sum_sales - avg_quarterly_sales) / avg_quarterly_sales ELSE NULL END > 0.1 ORDER BY avg_quarterly_sales, sum_sales, i_manufact_id LIMIT 100 SELECT * FROM (SELECT count(*) h8_30_to_9 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 8 AND time_dim.t_minute >= 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s1, (SELECT count(*) h9_to_9_30 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 9 AND time_dim.t_minute < 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s2, (SELECT count(*) h9_30_to_10 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 9 AND time_dim.t_minute >= 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s3, (SELECT count(*) h10_to_10_30 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 10 AND time_dim.t_minute < 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s4, (SELECT count(*) h10_30_to_11 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 10 AND time_dim.t_minute >= 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s5, (SELECT count(*) h11_to_11_30 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 11 AND time_dim.t_minute < 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s6, (SELECT count(*) h11_30_to_12 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 11 AND time_dim.t_minute >= 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s7, (SELECT count(*) h12_to_12_30 FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 12 AND time_dim.t_minute < 30 AND ( (household_demographics.hd_dep_count = 4 AND household_demographics.hd_vehicle_count <= 4 + 2) OR (household_demographics.hd_dep_count = 2 AND household_demographics.hd_vehicle_count <= 2 + 2) OR (household_demographics.hd_dep_count = 0 AND household_demographics.hd_vehicle_count <= 0 + 2)) AND store.s_store_name = 'ese') s8 SELECT * FROM (SELECT i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sumsales, rank() OVER (PARTITION BY i_category ORDER BY sumsales DESC) rk FROM (SELECT i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sum(coalesce(ss_sales_price * ss_quantity, 0)) sumsales FROM store_sales, date_dim, store, item WHERE ss_sold_date_sk = d_date_sk AND ss_item_sk = i_item_sk AND ss_store_sk = s_store_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 GROUP BY ROLLUP (i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id)) dw1) dw2 WHERE rk <= 100 ORDER BY i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sumsales, rk LIMIT 100 SELECT ca_state, cd_gender, cd_marital_status, count(*) cnt1, min(cd_dep_count), max(cd_dep_count), avg(cd_dep_count), cd_dep_employed_count, count(*) cnt2, min(cd_dep_employed_count), max(cd_dep_employed_count), avg(cd_dep_employed_count), cd_dep_college_count, count(*) cnt3, min(cd_dep_college_count), max(cd_dep_college_count), avg(cd_dep_college_count) FROM customer c, customer_address ca, customer_demographics WHERE c.c_current_addr_sk = ca.ca_address_sk AND cd_demo_sk = c.c_current_cdemo_sk AND exists(SELECT * FROM store_sales, date_dim WHERE c.c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year = 2002 AND d_qoy < 4) AND (exists(SELECT * FROM web_sales, date_dim WHERE c.c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year = 2002 AND d_qoy < 4) OR exists(SELECT * FROM catalog_sales, date_dim WHERE c.c_customer_sk = cs_ship_customer_sk AND cs_sold_date_sk = d_date_sk AND d_year = 2002 AND d_qoy < 4)) GROUP BY ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count ORDER BY ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count LIMIT 100 SELECT i_item_id, i_item_desc, i_current_price FROM item, inventory, date_dim, catalog_sales WHERE i_current_price BETWEEN 68 AND 68 + 30 AND inv_item_sk = i_item_sk AND d_date_sk = inv_date_sk AND d_date BETWEEN cast('2000-02-01' AS DATE) AND (cast('2000-02-01' AS DATE) + INTERVAL 60 days) AND i_manufact_id IN (677, 940, 694, 808) AND inv_quantity_on_hand BETWEEN 100 AND 500 AND cs_item_sk = i_item_sk GROUP BY i_item_id, i_item_desc, i_current_price ORDER BY i_item_id LIMIT 100 SELECT i_product_name, i_brand, i_class, i_category, avg(inv_quantity_on_hand) qoh FROM inventory, date_dim, item, warehouse WHERE inv_date_sk = d_date_sk AND inv_item_sk = i_item_sk AND inv_warehouse_sk = w_warehouse_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 GROUP BY ROLLUP (i_product_name, i_brand, i_class, i_category) ORDER BY qoh, i_product_name, i_brand, i_class, i_category LIMIT 100 WITH ssr AS (SELECT s_store_id AS store_id, sum(ss_ext_sales_price) AS sales, sum(coalesce(sr_return_amt, 0)) AS returns, sum(ss_net_profit - coalesce(sr_net_loss, 0)) AS profit FROM store_sales LEFT OUTER JOIN store_returns ON (ss_item_sk = sr_item_sk AND ss_ticket_number = sr_ticket_number) , date_dim, store, item, promotion WHERE ss_sold_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-23' AS DATE) AND (cast('2000-08-23' AS DATE) + INTERVAL 30 days) AND ss_store_sk = s_store_sk AND ss_item_sk = i_item_sk AND i_current_price > 50 AND ss_promo_sk = p_promo_sk AND p_channel_tv = 'N' GROUP BY s_store_id), csr AS (SELECT cp_catalog_page_id AS catalog_page_id, sum(cs_ext_sales_price) AS sales, sum(coalesce(cr_return_amount, 0)) AS returns, sum(cs_net_profit - coalesce(cr_net_loss, 0)) AS profit FROM catalog_sales LEFT OUTER JOIN catalog_returns ON (cs_item_sk = cr_item_sk AND cs_order_number = cr_order_number) , date_dim, catalog_page, item, promotion WHERE cs_sold_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-23' AS DATE) AND (cast('2000-08-23' AS DATE) + INTERVAL 30 days) AND cs_catalog_page_sk = cp_catalog_page_sk AND cs_item_sk = i_item_sk AND i_current_price > 50 AND cs_promo_sk = p_promo_sk AND p_channel_tv = 'N' GROUP BY cp_catalog_page_id), wsr AS (SELECT web_site_id, sum(ws_ext_sales_price) AS sales, sum(coalesce(wr_return_amt, 0)) AS returns, sum(ws_net_profit - coalesce(wr_net_loss, 0)) AS profit FROM web_sales LEFT OUTER JOIN web_returns ON (ws_item_sk = wr_item_sk AND ws_order_number = wr_order_number) , date_dim, web_site, item, promotion WHERE ws_sold_date_sk = d_date_sk AND d_date BETWEEN cast('2000-08-23' AS DATE) AND (cast('2000-08-23' AS DATE) + INTERVAL 30 days) AND ws_web_site_sk = web_site_sk AND ws_item_sk = i_item_sk AND i_current_price > 50 AND ws_promo_sk = p_promo_sk AND p_channel_tv = 'N' GROUP BY web_site_id) SELECT channel, id, sum(sales) AS sales, sum(returns) AS returns, sum(profit) AS profit FROM (SELECT 'store channel' AS channel, concat('store', store_id) AS id, sales, returns, profit FROM ssr UNION ALL SELECT 'catalog channel' AS channel, concat('catalog_page', catalog_page_id) AS id, sales, returns, profit FROM csr UNION ALL SELECT 'web channel' AS channel, concat('web_site', web_site_id) AS id, sales, returns, profit FROM wsr) x GROUP BY ROLLUP (channel, id) ORDER BY channel, id LIMIT 100 SELECT s_store_name, i_item_desc, sc.revenue, i_current_price, i_wholesale_cost, i_brand FROM store, item, (SELECT ss_store_sk, avg(revenue) AS ave FROM (SELECT ss_store_sk, ss_item_sk, sum(ss_sales_price) AS revenue FROM store_sales, date_dim WHERE ss_sold_date_sk = d_date_sk AND d_month_seq BETWEEN 1176 AND 1176 + 11 GROUP BY ss_store_sk, ss_item_sk) sa GROUP BY ss_store_sk) sb, (SELECT ss_store_sk, ss_item_sk, sum(ss_sales_price) AS revenue FROM store_sales, date_dim WHERE ss_sold_date_sk = d_date_sk AND d_month_seq BETWEEN 1176 AND 1176 + 11 GROUP BY ss_store_sk, ss_item_sk) sc WHERE sb.ss_store_sk = sc.ss_store_sk AND sc.revenue <= 0.1 * sb.ave AND s_store_sk = sc.ss_store_sk AND i_item_sk = sc.ss_item_sk ORDER BY s_store_name, i_item_desc LIMIT 100 SELECT i_item_id, i_item_desc, s_store_id, s_store_name, sum(ss_net_profit) AS store_sales_profit, sum(sr_net_loss) AS store_returns_loss, sum(cs_net_profit) AS catalog_sales_profit FROM store_sales, store_returns, catalog_sales, date_dim d1, date_dim d2, date_dim d3, store, item WHERE d1.d_moy = 4 AND d1.d_year = 2001 AND d1.d_date_sk = ss_sold_date_sk AND i_item_sk = ss_item_sk AND s_store_sk = ss_store_sk AND ss_customer_sk = sr_customer_sk AND ss_item_sk = sr_item_sk AND ss_ticket_number = sr_ticket_number AND sr_returned_date_sk = d2.d_date_sk AND d2.d_moy BETWEEN 4 AND 10 AND d2.d_year = 2001 AND sr_customer_sk = cs_bill_customer_sk AND sr_item_sk = cs_item_sk AND cs_sold_date_sk = d3.d_date_sk AND d3.d_moy BETWEEN 4 AND 10 AND d3.d_year = 2001 GROUP BY i_item_id, i_item_desc, s_store_id, s_store_name ORDER BY i_item_id, i_item_desc, s_store_id, s_store_name LIMIT 100WITH year_total AS ( SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, c_preferred_cust_flag customer_preferred_cust_flag, c_birth_country customer_birth_country, c_login customer_login, c_email_address customer_email_address, d_year dyear, sum(((ss_ext_list_price - ss_ext_wholesale_cost - ss_ext_discount_amt) + ss_ext_sales_price) / 2) year_total, 's' sale_type FROM customer, store_sales, date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk GROUP BY c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year UNION ALL SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, c_preferred_cust_flag customer_preferred_cust_flag, c_birth_country customer_birth_country, c_login customer_login, c_email_address customer_email_address, d_year dyear, sum((((cs_ext_list_price - cs_ext_wholesale_cost - cs_ext_discount_amt) + cs_ext_sales_price) / 2)) year_total, 'c' sale_type FROM customer, catalog_sales, date_dim WHERE c_customer_sk = cs_bill_customer_sk AND cs_sold_date_sk = d_date_sk GROUP BY c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year UNION ALL SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, c_preferred_cust_flag customer_preferred_cust_flag, c_birth_country customer_birth_country, c_login customer_login, c_email_address customer_email_address, d_year dyear, sum((((ws_ext_list_price - ws_ext_wholesale_cost - ws_ext_discount_amt) + ws_ext_sales_price) / 2)) year_total, 'w' sale_type FROM customer, web_sales, date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk GROUP BY c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year) SELECT t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name, t_s_secyear.customer_preferred_cust_flag, t_s_secyear.customer_birth_country, t_s_secyear.customer_login, t_s_secyear.customer_email_address FROM year_total t_s_firstyear, year_total t_s_secyear, year_total t_c_firstyear, year_total t_c_secyear, year_total t_w_firstyear, year_total t_w_secyear WHERE t_s_secyear.customer_id = t_s_firstyear.customer_id AND t_s_firstyear.customer_id = t_c_secyear.customer_id AND t_s_firstyear.customer_id = t_c_firstyear.customer_id AND t_s_firstyear.customer_id = t_w_firstyear.customer_id AND t_s_firstyear.customer_id = t_w_secyear.customer_id AND t_s_firstyear.sale_type = 's' AND t_c_firstyear.sale_type = 'c' AND t_w_firstyear.sale_type = 'w' AND t_s_secyear.sale_type = 's' AND t_c_secyear.sale_type = 'c' AND t_w_secyear.sale_type = 'w' AND t_s_firstyear.dyear = 2001 AND t_s_secyear.dyear = 2001 + 1 AND t_c_firstyear.dyear = 2001 AND t_c_secyear.dyear = 2001 + 1 AND t_w_firstyear.dyear = 2001 AND t_w_secyear.dyear = 2001 + 1 AND t_s_firstyear.year_total > 0 AND t_c_firstyear.year_total > 0 AND t_w_firstyear.year_total > 0 AND CASE WHEN t_c_firstyear.year_total > 0 THEN t_c_secyear.year_total / t_c_firstyear.year_total ELSE NULL END > CASE WHEN t_s_firstyear.year_total > 0 THEN t_s_secyear.year_total / t_s_firstyear.year_total ELSE NULL END AND CASE WHEN t_c_firstyear.year_total > 0 THEN t_c_secyear.year_total / t_c_firstyear.year_total ELSE NULL END > CASE WHEN t_w_firstyear.year_total > 0 THEN t_w_secyear.year_total / t_w_firstyear.year_total ELSE NULL END ORDER BY t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name, t_s_secyear.customer_preferred_cust_flag, t_s_secyear.customer_birth_country, t_s_secyear.customer_login, t_s_secyear.customer_email_address LIMIT 100 SELECT ca_zip, sum(cs_sales_price) FROM catalog_sales, customer, customer_address, date_dim WHERE cs_bill_customer_sk = c_customer_sk AND c_current_addr_sk = ca_address_sk AND (substr(ca_zip, 1, 5) IN ('85669', '86197', '88274', '83405', '86475', '85392', '85460', '80348', '81792') OR ca_state IN ('CA', 'WA', 'GA') OR cs_sales_price > 500) AND cs_sold_date_sk = d_date_sk AND d_qoy = 2 AND d_year = 2001 GROUP BY ca_zip ORDER BY ca_zip LIMIT 100 SELECT a.ca_state state, count(*) cnt FROM customer_address a, customer c, store_sales s, date_dim d, item i WHERE a.ca_address_sk = c.c_current_addr_sk AND c.c_customer_sk = s.ss_customer_sk AND s.ss_sold_date_sk = d.d_date_sk AND s.ss_item_sk = i.i_item_sk AND d.d_month_seq = (SELECT DISTINCT (d_month_seq) FROM date_dim WHERE d_year = 2000 AND d_moy = 1) AND i.i_current_price > 1.2 * (SELECT avg(j.i_current_price) FROM item j WHERE j.i_category = i.i_category) GROUP BY a.ca_state HAVING count(*) >= 10 ORDER BY cnt LIMIT 100 WITH cross_items AS (SELECT i_item_sk ss_item_sk FROM item, (SELECT iss.i_brand_id brand_id, iss.i_class_id class_id, iss.i_category_id category_id FROM store_sales, item iss, date_dim d1 WHERE ss_item_sk = iss.i_item_sk AND ss_sold_date_sk = d1.d_date_sk AND d1.d_year BETWEEN 1999 AND 1999 + 2 INTERSECT SELECT ics.i_brand_id, ics.i_class_id, ics.i_category_id FROM catalog_sales, item ics, date_dim d2 WHERE cs_item_sk = ics.i_item_sk AND cs_sold_date_sk = d2.d_date_sk AND d2.d_year BETWEEN 1999 AND 1999 + 2 INTERSECT SELECT iws.i_brand_id, iws.i_class_id, iws.i_category_id FROM web_sales, item iws, date_dim d3 WHERE ws_item_sk = iws.i_item_sk AND ws_sold_date_sk = d3.d_date_sk AND d3.d_year BETWEEN 1999 AND 1999 + 2) x WHERE i_brand_id = brand_id AND i_class_id = class_id AND i_category_id = category_id ), avg_sales AS (SELECT avg(quantity * list_price) average_sales FROM ( SELECT ss_quantity quantity, ss_list_price list_price FROM store_sales, date_dim WHERE ss_sold_date_sk = d_date_sk AND d_year BETWEEN 1999 AND 2001 UNION ALL SELECT cs_quantity quantity, cs_list_price list_price FROM catalog_sales, date_dim WHERE cs_sold_date_sk = d_date_sk AND d_year BETWEEN 1999 AND 1999 + 2 UNION ALL SELECT ws_quantity quantity, ws_list_price list_price FROM web_sales, date_dim WHERE ws_sold_date_sk = d_date_sk AND d_year BETWEEN 1999 AND 1999 + 2) x) SELECT channel, i_brand_id, i_class_id, i_category_id, sum(sales), sum(number_sales) FROM ( SELECT 'store' channel, i_brand_id, i_class_id, i_category_id, sum(ss_quantity * ss_list_price) sales, count(*) number_sales FROM store_sales, item, date_dim WHERE ss_item_sk IN (SELECT ss_item_sk FROM cross_items) AND ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND d_year = 1999 + 2 AND d_moy = 11 GROUP BY i_brand_id, i_class_id, i_category_id HAVING sum(ss_quantity * ss_list_price) > (SELECT average_sales FROM avg_sales) UNION ALL SELECT 'catalog' channel, i_brand_id, i_class_id, i_category_id, sum(cs_quantity * cs_list_price) sales, count(*) number_sales FROM catalog_sales, item, date_dim WHERE cs_item_sk IN (SELECT ss_item_sk FROM cross_items) AND cs_item_sk = i_item_sk AND cs_sold_date_sk = d_date_sk AND d_year = 1999 + 2 AND d_moy = 11 GROUP BY i_brand_id, i_class_id, i_category_id HAVING sum(cs_quantity * cs_list_price) > (SELECT average_sales FROM avg_sales) UNION ALL SELECT 'web' channel, i_brand_id, i_class_id, i_category_id, sum(ws_quantity * ws_list_price) sales, count(*) number_sales FROM web_sales, item, date_dim WHERE ws_item_sk IN (SELECT ss_item_sk FROM cross_items) AND ws_item_sk = i_item_sk AND ws_sold_date_sk = d_date_sk AND d_year = 1999 + 2 AND d_moy = 11 GROUP BY i_brand_id, i_class_id, i_category_id HAVING sum(ws_quantity * ws_list_price) > (SELECT average_sales FROM avg_sales) ) y GROUP BY ROLLUP (channel, i_brand_id, i_class_id, i_category_id) ORDER BY channel, i_brand_id, i_class_id, i_category_id LIMIT 100 WITH ws_wh AS (SELECT ws1.ws_order_number, ws1.ws_warehouse_sk wh1, ws2.ws_warehouse_sk wh2 FROM web_sales ws1, web_sales ws2 WHERE ws1.ws_order_number = ws2.ws_order_number AND ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) SELECT count(DISTINCT ws_order_number) AS `order count `, sum(ws_ext_ship_cost) AS `total shipping cost `, sum(ws_net_profit) AS `total net profit ` FROM web_sales ws1, date_dim, customer_address, web_site WHERE d_date BETWEEN '1999-02-01' AND (CAST('1999-02-01' AS DATE) + INTERVAL 60 DAY) AND ws1.ws_ship_date_sk = d_date_sk AND ws1.ws_ship_addr_sk = ca_address_sk AND ca_state = 'IL' AND ws1.ws_web_site_sk = web_site_sk AND web_company_name = 'pri' AND ws1.ws_order_number IN (SELECT ws_order_number FROM ws_wh) AND ws1.ws_order_number IN (SELECT wr_order_number FROM web_returns, ws_wh WHERE wr_order_number = ws_wh.ws_order_number) ORDER BY count(DISTINCT ws_order_number) LIMIT 100 SELECT ca_zip, ca_city, sum(ws_sales_price) FROM web_sales, customer, customer_address, date_dim, item WHERE ws_bill_customer_sk = c_customer_sk AND c_current_addr_sk = ca_address_sk AND ws_item_sk = i_item_sk AND (substr(ca_zip, 1, 5) IN ('85669', '86197', '88274', '83405', '86475', '85392', '85460', '80348', '81792') OR i_item_id IN (SELECT i_item_id FROM item WHERE i_item_sk IN (2, 3, 5, 7, 11, 13, 17, 19, 23, 29) ) ) AND ws_sold_date_sk = d_date_sk AND d_qoy = 2 AND d_year = 2001 GROUP BY ca_zip, ca_city ORDER BY ca_zip, ca_city LIMIT 100 SELECT i_item_id, i_item_desc, s_store_id, s_store_name, sum(ss_quantity) AS store_sales_quantity, sum(sr_return_quantity) AS store_returns_quantity, sum(cs_quantity) AS catalog_sales_quantity FROM store_sales, store_returns, catalog_sales, date_dim d1, date_dim d2, date_dim d3, store, item WHERE d1.d_moy = 9 AND d1.d_year = 1999 AND d1.d_date_sk = ss_sold_date_sk AND i_item_sk = ss_item_sk AND s_store_sk = ss_store_sk AND ss_customer_sk = sr_customer_sk AND ss_item_sk = sr_item_sk AND ss_ticket_number = sr_ticket_number AND sr_returned_date_sk = d2.d_date_sk AND d2.d_moy BETWEEN 9 AND 9 + 3 AND d2.d_year = 1999 AND sr_customer_sk = cs_bill_customer_sk AND sr_item_sk = cs_item_sk AND cs_sold_date_sk = d3.d_date_sk AND d3.d_year IN (1999, 1999 + 1, 1999 + 2) GROUP BY i_item_id, i_item_desc, s_store_id, s_store_name ORDER BY i_item_id, i_item_desc, s_store_id, s_store_name LIMIT 100 WITH customer_total_return AS (SELECT cr_returning_customer_sk AS ctr_customer_sk, ca_state AS ctr_state, sum(cr_return_amt_inc_tax) AS ctr_total_return FROM catalog_returns, date_dim, customer_address WHERE cr_returned_date_sk = d_date_sk AND d_year = 2000 AND cr_returning_addr_sk = ca_address_sk GROUP BY cr_returning_customer_sk, ca_state ) SELECT c_customer_id, c_salutation, c_first_name, c_last_name, ca_street_number, ca_street_name, ca_street_type, ca_suite_number, ca_city, ca_county, ca_state, ca_zip, ca_country, ca_gmt_offset, ca_location_type, ctr_total_return FROM customer_total_return ctr1, customer_address, customer WHERE ctr1.ctr_total_return > (SELECT avg(ctr_total_return) * 1.2 FROM customer_total_return ctr2 WHERE ctr1.ctr_state = ctr2.ctr_state) AND ca_address_sk = c_current_addr_sk AND ca_state = 'GA' AND ctr1.ctr_customer_sk = c_customer_sk ORDER BY c_customer_id, c_salutation, c_first_name, c_last_name, ca_street_number, ca_street_name , ca_street_type, ca_suite_number, ca_city, ca_county, ca_state, ca_zip, ca_country, ca_gmt_offset , ca_location_type, ctr_total_return LIMIT 100 SELECT i_item_desc, i_category, i_class, i_current_price, sum(ws_ext_sales_price) AS itemrevenue, sum(ws_ext_sales_price) * 100 / sum(sum(ws_ext_sales_price)) OVER (PARTITION BY i_class) AS revenueratio FROM web_sales, item, date_dim WHERE ws_item_sk = i_item_sk AND i_category IN ('Sports', 'Books', 'Home') AND ws_sold_date_sk = d_date_sk AND d_date BETWEEN cast('1999-02-22' AS DATE) AND (cast('1999-02-22' AS DATE) + INTERVAL 30 days) GROUP BY i_item_id, i_item_desc, i_category, i_class, i_current_price ORDER BY i_category, i_class, i_item_id, i_item_desc, revenueratio LIMIT 100 SELECT DISTINCT (i_product_name) FROM item i1 WHERE i_manufact_id BETWEEN 738 AND 738 + 40 AND (SELECT count(*) AS item_cnt FROM item WHERE (i_manufact = i1.i_manufact AND ((i_category = 'Women' AND (i_color = 'powder' OR i_color = 'khaki') AND (i_units = 'Ounce' OR i_units = 'Oz') AND (i_size = 'medium' OR i_size = 'extra large') ) OR (i_category = 'Women' AND (i_color = 'brown' OR i_color = 'honeydew') AND (i_units = 'Bunch' OR i_units = 'Ton') AND (i_size = 'N/A' OR i_size = 'small') ) OR (i_category = 'Men' AND (i_color = 'floral' OR i_color = 'deep') AND (i_units = 'N/A' OR i_units = 'Dozen') AND (i_size = 'petite' OR i_size = 'large') ) OR (i_category = 'Men' AND (i_color = 'light' OR i_color = 'cornflower') AND (i_units = 'Box' OR i_units = 'Pound') AND (i_size = 'medium' OR i_size = 'extra large') ))) OR (i_manufact = i1.i_manufact AND ((i_category = 'Women' AND (i_color = 'midnight' OR i_color = 'snow') AND (i_units = 'Pallet' OR i_units = 'Gross') AND (i_size = 'medium' OR i_size = 'extra large') ) OR (i_category = 'Women' AND (i_color = 'cyan' OR i_color = 'papaya') AND (i_units = 'Cup' OR i_units = 'Dram') AND (i_size = 'N/A' OR i_size = 'small') ) OR (i_category = 'Men' AND (i_color = 'orange' OR i_color = 'frosted') AND (i_units = 'Each' OR i_units = 'Tbl') AND (i_size = 'petite' OR i_size = 'large') ) OR (i_category = 'Men' AND (i_color = 'forest' OR i_color = 'ghost') AND (i_units = 'Lb' OR i_units = 'Bundle') AND (i_size = 'medium' OR i_size = 'extra large') )))) > 0 ORDER BY i_product_name LIMIT 100 WITH ssales AS (SELECT c_last_name, c_first_name, s_store_name, ca_state, s_state, i_color, i_current_price, i_manager_id, i_units, i_size, sum(ss_net_paid) netpaid FROM store_sales, store_returns, store, item, customer, customer_address WHERE ss_ticket_number = sr_ticket_number AND ss_item_sk = sr_item_sk AND ss_customer_sk = c_customer_sk AND ss_item_sk = i_item_sk AND ss_store_sk = s_store_sk AND c_birth_country = upper(ca_country) AND s_zip = ca_zip AND s_market_id = 8 GROUP BY c_last_name, c_first_name, s_store_name, ca_state, s_state, i_color, i_current_price, i_manager_id, i_units, i_size) SELECT c_last_name, c_first_name, s_store_name, sum(netpaid) paid FROM ssales WHERE i_color = 'chiffon' GROUP BY c_last_name, c_first_name, s_store_name HAVING sum(netpaid) > (SELECT 0.05 * avg(netpaid) FROM ssales) WITH customer_total_return AS (SELECT wr_returning_customer_sk AS ctr_customer_sk, ca_state AS ctr_state, sum(wr_return_amt) AS ctr_total_return FROM web_returns, date_dim, customer_address WHERE wr_returned_date_sk = d_date_sk AND d_year = 2002 AND wr_returning_addr_sk = ca_address_sk GROUP BY wr_returning_customer_sk, ca_state) SELECT c_customer_id, c_salutation, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_day, c_birth_month, c_birth_year, c_birth_country, c_login, c_email_address, c_last_review_date, ctr_total_return FROM customer_total_return ctr1, customer_address, customer WHERE ctr1.ctr_total_return > (SELECT avg(ctr_total_return) * 1.2 FROM customer_total_return ctr2 WHERE ctr1.ctr_state = ctr2.ctr_state) AND ca_address_sk = c_current_addr_sk AND ca_state = 'GA' AND ctr1.ctr_customer_sk = c_customer_sk ORDER BY c_customer_id, c_salutation, c_first_name, c_last_name, c_preferred_cust_flag , c_birth_day, c_birth_month, c_birth_year, c_birth_country, c_login, c_email_address , c_last_review_date, ctr_total_return LIMIT 100 WITH inv AS (SELECT w_warehouse_name, w_warehouse_sk, i_item_sk, d_moy, stdev, mean, CASE mean WHEN 0 THEN NULL ELSE stdev / mean END cov FROM (SELECT w_warehouse_name, w_warehouse_sk, i_item_sk, d_moy, stddev_samp(inv_quantity_on_hand) stdev, avg(inv_quantity_on_hand) mean FROM inventory, item, warehouse, date_dim WHERE inv_item_sk = i_item_sk AND inv_warehouse_sk = w_warehouse_sk AND inv_date_sk = d_date_sk AND d_year = 2001 GROUP BY w_warehouse_name, w_warehouse_sk, i_item_sk, d_moy) foo WHERE CASE mean WHEN 0 THEN 0 ELSE stdev / mean END > 1) SELECT inv1.w_warehouse_sk, inv1.i_item_sk, inv1.d_moy, inv1.mean, inv1.cov, inv2.w_warehouse_sk, inv2.i_item_sk, inv2.d_moy, inv2.mean, inv2.cov FROM inv inv1, inv inv2 WHERE inv1.i_item_sk = inv2.i_item_sk AND inv1.w_warehouse_sk = inv2.w_warehouse_sk AND inv1.d_moy = 1 AND inv2.d_moy = 1 + 1 ORDER BY inv1.w_warehouse_sk, inv1.i_item_sk, inv1.d_moy, inv1.mean, inv1.cov , inv2.d_moy, inv2.mean, inv2.cov SELECT dt.d_year, item.i_brand_id brand_id, item.i_brand brand, SUM(ss_ext_sales_price) sum_agg FROM date_dim dt, store_sales, item WHERE dt.d_date_sk = store_sales.ss_sold_date_sk AND store_sales.ss_item_sk = item.i_item_sk AND item.i_manufact_id = 128 AND dt.d_moy = 11 GROUP BY dt.d_year, item.i_brand, item.i_brand_id ORDER BY dt.d_year, sum_agg DESC, brand_id LIMIT 100 SELECT sum(ss_net_profit) AS total_sum, s_state, s_county, grouping(s_state) + grouping(s_county) AS lochierarchy, rank() OVER ( PARTITION BY grouping(s_state) + grouping(s_county), CASE WHEN grouping(s_county) = 0 THEN s_state END ORDER BY sum(ss_net_profit) DESC) AS rank_within_parent FROM store_sales, date_dim d1, store WHERE d1.d_month_seq BETWEEN 1200 AND 1200 + 11 AND d1.d_date_sk = ss_sold_date_sk AND s_store_sk = ss_store_sk AND s_state IN (SELECT s_state FROM (SELECT s_state AS s_state, rank() OVER (PARTITION BY s_state ORDER BY sum(ss_net_profit) DESC) AS ranking FROM store_sales, store, date_dim WHERE d_month_seq BETWEEN 1200 AND 1200 + 11 AND d_date_sk = ss_sold_date_sk AND s_store_sk = ss_store_sk GROUP BY s_state) tmp1 WHERE ranking <= 5) GROUP BY ROLLUP (s_state, s_county) ORDER BY lochierarchy DESC , CASE WHEN lochierarchy = 0 THEN s_state END , rank_within_parent LIMIT 100 SELECT c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt FROM (SELECT ss_ticket_number, ss_customer_sk, count(*) cnt FROM store_sales, date_dim, store, household_demographics WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_store_sk = store.s_store_sk AND store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk AND date_dim.d_dom BETWEEN 1 AND 2 AND (household_demographics.hd_buy_potential = '>10000' OR household_demographics.hd_buy_potential = 'unknown') AND household_demographics.hd_vehicle_count > 0 AND CASE WHEN household_demographics.hd_vehicle_count > 0 THEN household_demographics.hd_dep_count / household_demographics.hd_vehicle_count ELSE NULL END > 1 AND date_dim.d_year IN (1999, 1999 + 1, 1999 + 2) AND store.s_county IN ('Williamson County', 'Franklin Parish', 'Bronx County', 'Orange County') GROUP BY ss_ticket_number, ss_customer_sk) dj, customer WHERE ss_customer_sk = c_customer_sk AND cnt BETWEEN 1 AND 5 ORDER BY cnt DESC SELECT i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, sum(ss_ext_sales_price) ext_price FROM date_dim, store_sales, item, customer, customer_address, store WHERE d_date_sk = ss_sold_date_sk AND ss_item_sk = i_item_sk AND i_manager_id = 8 AND d_moy = 11 AND d_year = 1998 AND ss_customer_sk = c_customer_sk AND c_current_addr_sk = ca_address_sk AND substr(ca_zip, 1, 5) <> substr(s_zip, 1, 5) AND ss_store_sk = s_store_sk GROUP BY i_brand, i_brand_id, i_manufact_id, i_manufact ORDER BY ext_price DESC, brand, brand_id, i_manufact_id, i_manufact LIMIT 100 SELECT i_brand_id brand_id, i_brand brand, t_hour, t_minute, sum(ext_price) ext_price FROM item, (SELECT ws_ext_sales_price AS ext_price, ws_sold_date_sk AS sold_date_sk, ws_item_sk AS sold_item_sk, ws_sold_time_sk AS time_sk FROM web_sales, date_dim WHERE d_date_sk = ws_sold_date_sk AND d_moy = 11 AND d_year = 1999 UNION ALL SELECT cs_ext_sales_price AS ext_price, cs_sold_date_sk AS sold_date_sk, cs_item_sk AS sold_item_sk, cs_sold_time_sk AS time_sk FROM catalog_sales, date_dim WHERE d_date_sk = cs_sold_date_sk AND d_moy = 11 AND d_year = 1999 UNION ALL SELECT ss_ext_sales_price AS ext_price, ss_sold_date_sk AS sold_date_sk, ss_item_sk AS sold_item_sk, ss_sold_time_sk AS time_sk FROM store_sales, date_dim WHERE d_date_sk = ss_sold_date_sk AND d_moy = 11 AND d_year = 1999 ) AS tmp, time_dim WHERE sold_item_sk = i_item_sk AND i_manager_id = 1 AND time_sk = t_time_sk AND (t_meal_time = 'breakfast' OR t_meal_time = 'dinner') GROUP BY i_brand, i_brand_id, t_hour, t_minute ORDER BY ext_price DESC, brand_id WITH all_sales AS ( SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, SUM(sales_cnt) AS sales_cnt, SUM(sales_amt) AS sales_amt FROM ( SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, cs_quantity - COALESCE(cr_return_quantity, 0) AS sales_cnt, cs_ext_sales_price - COALESCE(cr_return_amount, 0.0) AS sales_amt FROM catalog_sales JOIN item ON i_item_sk = cs_item_sk JOIN date_dim ON d_date_sk = cs_sold_date_sk LEFT JOIN catalog_returns ON (cs_order_number = cr_order_number AND cs_item_sk = cr_item_sk) WHERE i_category = 'Books' UNION SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, ss_quantity - COALESCE(sr_return_quantity, 0) AS sales_cnt, ss_ext_sales_price - COALESCE(sr_return_amt, 0.0) AS sales_amt FROM store_sales JOIN item ON i_item_sk = ss_item_sk JOIN date_dim ON d_date_sk = ss_sold_date_sk LEFT JOIN store_returns ON (ss_ticket_number = sr_ticket_number AND ss_item_sk = sr_item_sk) WHERE i_category = 'Books' UNION SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, ws_quantity - COALESCE(wr_return_quantity, 0) AS sales_cnt, ws_ext_sales_price - COALESCE(wr_return_amt, 0.0) AS sales_amt FROM web_sales JOIN item ON i_item_sk = ws_item_sk JOIN date_dim ON d_date_sk = ws_sold_date_sk LEFT JOIN web_returns ON (ws_order_number = wr_order_number AND ws_item_sk = wr_item_sk) WHERE i_category = 'Books') sales_detail GROUP BY d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id) SELECT prev_yr.d_year AS prev_year, curr_yr.d_year AS year, curr_yr.i_brand_id, curr_yr.i_class_id, curr_yr.i_category_id, curr_yr.i_manufact_id, prev_yr.sales_cnt AS prev_yr_cnt, curr_yr.sales_cnt AS curr_yr_cnt, curr_yr.sales_cnt - prev_yr.sales_cnt AS sales_cnt_diff, curr_yr.sales_amt - prev_yr.sales_amt AS sales_amt_diff FROM all_sales curr_yr, all_sales prev_yr WHERE curr_yr.i_brand_id = prev_yr.i_brand_id AND curr_yr.i_class_id = prev_yr.i_class_id AND curr_yr.i_category_id = prev_yr.i_category_id AND curr_yr.i_manufact_id = prev_yr.i_manufact_id AND curr_yr.d_year = 2002 AND prev_yr.d_year = 2002 - 1 AND CAST(curr_yr.sales_cnt AS DECIMAL(17, 2)) / CAST(prev_yr.sales_cnt AS DECIMAL(17, 2)) < 0.9 ORDER BY sales_cnt_diff LIMIT 100 SELECT * FROM (SELECT avg(ss_list_price) B1_LP, count(ss_list_price) B1_CNT, count(DISTINCT ss_list_price) B1_CNTD FROM store_sales WHERE ss_quantity BETWEEN 0 AND 5 AND (ss_list_price BETWEEN 8 AND 8 + 10 OR ss_coupon_amt BETWEEN 459 AND 459 + 1000 OR ss_wholesale_cost BETWEEN 57 AND 57 + 20)) B1, (SELECT avg(ss_list_price) B2_LP, count(ss_list_price) B2_CNT, count(DISTINCT ss_list_price) B2_CNTD FROM store_sales WHERE ss_quantity BETWEEN 6 AND 10 AND (ss_list_price BETWEEN 90 AND 90 + 10 OR ss_coupon_amt BETWEEN 2323 AND 2323 + 1000 OR ss_wholesale_cost BETWEEN 31 AND 31 + 20)) B2, (SELECT avg(ss_list_price) B3_LP, count(ss_list_price) B3_CNT, count(DISTINCT ss_list_price) B3_CNTD FROM store_sales WHERE ss_quantity BETWEEN 11 AND 15 AND (ss_list_price BETWEEN 142 AND 142 + 10 OR ss_coupon_amt BETWEEN 12214 AND 12214 + 1000 OR ss_wholesale_cost BETWEEN 79 AND 79 + 20)) B3, (SELECT avg(ss_list_price) B4_LP, count(ss_list_price) B4_CNT, count(DISTINCT ss_list_price) B4_CNTD FROM store_sales WHERE ss_quantity BETWEEN 16 AND 20 AND (ss_list_price BETWEEN 135 AND 135 + 10 OR ss_coupon_amt BETWEEN 6071 AND 6071 + 1000 OR ss_wholesale_cost BETWEEN 38 AND 38 + 20)) B4, (SELECT avg(ss_list_price) B5_LP, count(ss_list_price) B5_CNT, count(DISTINCT ss_list_price) B5_CNTD FROM store_sales WHERE ss_quantity BETWEEN 21 AND 25 AND (ss_list_price BETWEEN 122 AND 122 + 10 OR ss_coupon_amt BETWEEN 836 AND 836 + 1000 OR ss_wholesale_cost BETWEEN 17 AND 17 + 20)) B5, (SELECT avg(ss_list_price) B6_LP, count(ss_list_price) B6_CNT, count(DISTINCT ss_list_price) B6_CNTD FROM store_sales WHERE ss_quantity BETWEEN 26 AND 30 AND (ss_list_price BETWEEN 154 AND 154 + 10 OR ss_coupon_amt BETWEEN 7326 AND 7326 + 1000 OR ss_wholesale_cost BETWEEN 7 AND 7 + 20)) B6 LIMIT 100 WITH frequent_ss_items AS (SELECT substr(i_item_desc, 1, 30) itemdesc, i_item_sk item_sk, d_date solddate, count(*) cnt FROM store_sales, date_dim, item WHERE ss_sold_date_sk = d_date_sk AND ss_item_sk = i_item_sk AND d_year IN (2000, 2000 + 1, 2000 + 2, 2000 + 3) GROUP BY substr(i_item_desc, 1, 30), i_item_sk, d_date HAVING count(*) > 4), max_store_sales AS (SELECT max(csales) tpcds_cmax FROM (SELECT c_customer_sk, sum(ss_quantity * ss_sales_price) csales FROM store_sales, customer, date_dim WHERE ss_customer_sk = c_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN (2000, 2000 + 1, 2000 + 2, 2000 + 3) GROUP BY c_customer_sk) x), best_ss_customer AS (SELECT c_customer_sk, sum(ss_quantity * ss_sales_price) ssales FROM store_sales , customer WHERE ss_customer_sk = c_customer_sk GROUP BY c_customer_sk HAVING sum(ss_quantity * ss_sales_price) > (50 / 100.0) * (SELECT * FROM max_store_sales)) SELECT c_last_name, c_first_name, sales FROM ((SELECT c_last_name, c_first_name, sum(cs_quantity * cs_list_price) sales FROM catalog_sales, customer, date_dim WHERE d_year = 2000 AND d_moy = 2 AND cs_sold_date_sk = d_date_sk AND cs_item_sk IN (SELECT item_sk FROM frequent_ss_items) AND cs_bill_customer_sk IN (SELECT c_customer_sk FROM best_ss_customer) AND cs_bill_customer_sk = c_customer_sk GROUP BY c_last_name, c_first_name) UNION ALL (SELECT c_last_name, c_first_name, sum(ws_quantity * ws_list_price) sales FROM web_sales, customer, date_dim WHERE d_year = 2000 AND d_moy = 2 AND ws_sold_date_sk = d_date_sk AND ws_item_sk IN (SELECT item_sk FROM frequent_ss_items) AND ws_bill_customer_sk IN (SELECT c_customer_sk FROM best_ss_customer) AND ws_bill_customer_sk = c_customer_sk GROUP BY c_last_name, c_first_name)) y ORDER BY c_last_name, c_first_name, sales LIMIT 100 SELECT cd_gender, cd_marital_status, cd_education_status, count(*) cnt1, cd_purchase_estimate, count(*) cnt2, cd_credit_rating, count(*) cnt3 FROM customer c, customer_address ca, customer_demographics WHERE c.c_current_addr_sk = ca.ca_address_sk AND ca_state IN ('KY', 'GA', 'NM') AND cd_demo_sk = c.c_current_cdemo_sk AND exists(SELECT * FROM store_sales, date_dim WHERE c.c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy BETWEEN 4 AND 4 + 2) AND (NOT exists(SELECT * FROM web_sales, date_dim WHERE c.c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy BETWEEN 4 AND 4 + 2) AND NOT exists(SELECT * FROM catalog_sales, date_dim WHERE c.c_customer_sk = cs_ship_customer_sk AND cs_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy BETWEEN 4 AND 4 + 2)) GROUP BY cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating ORDER BY cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating LIMIT 100 SELECT sum(ss_net_profit) / sum(ss_ext_sales_price) AS gross_margin, i_category, i_class, grouping(i_category) + grouping(i_class) AS lochierarchy, rank() OVER ( PARTITION BY grouping(i_category) + grouping(i_class), CASE WHEN grouping(i_class) = 0 THEN i_category END ORDER BY sum(ss_net_profit) / sum(ss_ext_sales_price) ASC) AS rank_within_parent FROM store_sales, date_dim d1, item, store WHERE d1.d_year = 2001 AND d1.d_date_sk = ss_sold_date_sk AND i_item_sk = ss_item_sk AND s_store_sk = ss_store_sk AND s_state IN ('TN', 'TN', 'TN', 'TN', 'TN', 'TN', 'TN', 'TN') GROUP BY ROLLUP (i_category, i_class) ORDER BY lochierarchy DESC , CASE WHEN lochierarchy = 0 THEN i_category END , rank_within_parent LIMIT 100 SELECT i_item_id, avg(cs_quantity) agg1, avg(cs_list_price) agg2, avg(cs_coupon_amt) agg3, avg(cs_sales_price) agg4 FROM catalog_sales, customer_demographics, date_dim, item, promotion WHERE cs_sold_date_sk = d_date_sk AND cs_item_sk = i_item_sk AND cs_bill_cdemo_sk = cd_demo_sk AND cs_promo_sk = p_promo_sk AND cd_gender = 'M' AND cd_marital_status = 'S' AND cd_education_status = 'College' AND (p_channel_email = 'N' OR p_channel_event = 'N') AND d_year = 2000 GROUP BY i_item_id ORDER BY i_item_id LIMIT 100 SELECT count(*) FROM store_sales, household_demographics, time_dim, store WHERE ss_sold_time_sk = time_dim.t_time_sk AND ss_hdemo_sk = household_demographics.hd_demo_sk AND ss_store_sk = s_store_sk AND time_dim.t_hour = 20 AND time_dim.t_minute >= 30 AND household_demographics.hd_dep_count = 7 AND store.s_store_name = 'ese' ORDER BY count(*) LIMIT 100 WITH frequent_ss_items AS (SELECT substr(i_item_desc, 1, 30) itemdesc, i_item_sk item_sk, d_date solddate, count(*) cnt FROM store_sales, date_dim, item WHERE ss_sold_date_sk = d_date_sk AND ss_item_sk = i_item_sk AND d_year IN (2000, 2000 + 1, 2000 + 2, 2000 + 3) GROUP BY substr(i_item_desc, 1, 30), i_item_sk, d_date HAVING count(*) > 4), max_store_sales AS (SELECT max(csales) tpcds_cmax FROM (SELECT c_customer_sk, sum(ss_quantity * ss_sales_price) csales FROM store_sales, customer, date_dim WHERE ss_customer_sk = c_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN (2000, 2000 + 1, 2000 + 2, 2000 + 3) GROUP BY c_customer_sk) x), best_ss_customer AS (SELECT c_customer_sk, sum(ss_quantity * ss_sales_price) ssales FROM store_sales, customer WHERE ss_customer_sk = c_customer_sk GROUP BY c_customer_sk HAVING sum(ss_quantity * ss_sales_price) > (50 / 100.0) * (SELECT * FROM max_store_sales)) SELECT sum(sales) FROM ((SELECT cs_quantity * cs_list_price sales FROM catalog_sales, date_dim WHERE d_year = 2000 AND d_moy = 2 AND cs_sold_date_sk = d_date_sk AND cs_item_sk IN (SELECT item_sk FROM frequent_ss_items) AND cs_bill_customer_sk IN (SELECT c_customer_sk FROM best_ss_customer)) UNION ALL (SELECT ws_quantity * ws_list_price sales FROM web_sales, date_dim WHERE d_year = 2000 AND d_moy = 2 AND ws_sold_date_sk = d_date_sk AND ws_item_sk IN (SELECT item_sk FROM frequent_ss_items) AND ws_bill_customer_sk IN (SELECT c_customer_sk FROM best_ss_customer))) y LIMIT 100 SELECT sum(ws_net_paid) AS total_sum, i_category, i_class, grouping(i_category) + grouping(i_class) AS lochierarchy, rank() OVER ( PARTITION BY grouping(i_category) + grouping(i_class), CASE WHEN grouping(i_class) = 0 THEN i_category END ORDER BY sum(ws_net_paid) DESC) AS rank_within_parent FROM web_sales, date_dim d1, item WHERE d1.d_month_seq BETWEEN 1200 AND 1200 + 11 AND d1.d_date_sk = ws_sold_date_sk AND i_item_sk = ws_item_sk GROUP BY ROLLUP (i_category, i_class) ORDER BY lochierarchy DESC, CASE WHEN lochierarchy = 0 THEN i_category END, rank_within_parent LIMIT 100 SELECT 'web' AS channel, web.item, web.return_ratio, web.return_rank, web.currency_rank FROM ( SELECT item, return_ratio, currency_ratio, rank() OVER ( ORDER BY return_ratio) AS return_rank, rank() OVER ( ORDER BY currency_ratio) AS currency_rank FROM (SELECT ws.ws_item_sk AS item, (cast(sum(coalesce(wr.wr_return_quantity, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(ws.ws_quantity, 0)) AS DECIMAL(15, 4))) AS return_ratio, (cast(sum(coalesce(wr.wr_return_amt, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(ws.ws_net_paid, 0)) AS DECIMAL(15, 4))) AS currency_ratio FROM web_sales ws LEFT OUTER JOIN web_returns wr ON (ws.ws_order_number = wr.wr_order_number AND ws.ws_item_sk = wr.wr_item_sk) , date_dim WHERE wr.wr_return_amt > 10000 AND ws.ws_net_profit > 1 AND ws.ws_net_paid > 0 AND ws.ws_quantity > 0 AND ws_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 12 GROUP BY ws.ws_item_sk ) in_web ) web WHERE (web.return_rank <= 10 OR web.currency_rank <= 10) UNION SELECT 'catalog' AS channel, catalog.item, catalog.return_ratio, catalog.return_rank, catalog.currency_rank FROM ( SELECT item, return_ratio, currency_ratio, rank() OVER ( ORDER BY return_ratio) AS return_rank, rank() OVER ( ORDER BY currency_ratio) AS currency_rank FROM (SELECT cs.cs_item_sk AS item, (cast(sum(coalesce(cr.cr_return_quantity, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(cs.cs_quantity, 0)) AS DECIMAL(15, 4))) AS return_ratio, (cast(sum(coalesce(cr.cr_return_amount, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(cs.cs_net_paid, 0)) AS DECIMAL(15, 4))) AS currency_ratio FROM catalog_sales cs LEFT OUTER JOIN catalog_returns cr ON (cs.cs_order_number = cr.cr_order_number AND cs.cs_item_sk = cr.cr_item_sk) , date_dim WHERE cr.cr_return_amount > 10000 AND cs.cs_net_profit > 1 AND cs.cs_net_paid > 0 AND cs.cs_quantity > 0 AND cs_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 12 GROUP BY cs.cs_item_sk ) in_cat ) catalog WHERE (catalog.return_rank <= 10 OR catalog.currency_rank <= 10) UNION SELECT 'store' AS channel, store.item, store.return_ratio, store.return_rank, store.currency_rank FROM ( SELECT item, return_ratio, currency_ratio, rank() OVER ( ORDER BY return_ratio) AS return_rank, rank() OVER ( ORDER BY currency_ratio) AS currency_rank FROM (SELECT sts.ss_item_sk AS item, (cast(sum(coalesce(sr.sr_return_quantity, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(sts.ss_quantity, 0)) AS DECIMAL(15, 4))) AS return_ratio, (cast(sum(coalesce(sr.sr_return_amt, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(sts.ss_net_paid, 0)) AS DECIMAL(15, 4))) AS currency_ratio FROM store_sales sts LEFT OUTER JOIN store_returns sr ON (sts.ss_ticket_number = sr.sr_ticket_number AND sts.ss_item_sk = sr.sr_item_sk) , date_dim WHERE sr.sr_return_amt > 10000 AND sts.ss_net_profit > 1 AND sts.ss_net_paid > 0 AND sts.ss_quantity > 0 AND ss_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 12 GROUP BY sts.ss_item_sk ) in_store ) store WHERE (store.return_rank <= 10 OR store.currency_rank <= 10) ORDER BY 1, 4, 5 LIMIT 100 SELECT asceding.rnk, i1.i_product_name best_performing, i2.i_product_name worst_performing FROM (SELECT * FROM (SELECT item_sk, rank() OVER ( ORDER BY rank_col ASC) rnk FROM (SELECT ss_item_sk item_sk, avg(ss_net_profit) rank_col FROM store_sales ss1 WHERE ss_store_sk = 4 GROUP BY ss_item_sk HAVING avg(ss_net_profit) > 0.9 * (SELECT avg(ss_net_profit) rank_col FROM store_sales WHERE ss_store_sk = 4 AND ss_addr_sk IS NULL GROUP BY ss_store_sk)) V1) V11 WHERE rnk < 11) asceding, (SELECT * FROM (SELECT item_sk, rank() OVER ( ORDER BY rank_col DESC) rnk FROM (SELECT ss_item_sk item_sk, avg(ss_net_profit) rank_col FROM store_sales ss1 WHERE ss_store_sk = 4 GROUP BY ss_item_sk HAVING avg(ss_net_profit) > 0.9 * (SELECT avg(ss_net_profit) rank_col FROM store_sales WHERE ss_store_sk = 4 AND ss_addr_sk IS NULL GROUP BY ss_store_sk)) V2) V21 WHERE rnk < 11) descending, item i1, item i2 WHERE asceding.rnk = descending.rnk AND i1.i_item_sk = asceding.item_sk AND i2.i_item_sk = descending.item_sk ORDER BY asceding.rnk LIMIT 100 SELECT s_store_name, s_company_id, s_street_number, s_street_name, s_street_type, s_suite_number, s_city, s_county, s_state, s_zip, sum(CASE WHEN (sr_returned_date_sk - ss_sold_date_sk <= 30) THEN 1 ELSE 0 END) AS `30 days `, sum(CASE WHEN (sr_returned_date_sk - ss_sold_date_sk > 30) AND (sr_returned_date_sk - ss_sold_date_sk <= 60) THEN 1 ELSE 0 END) AS `31 - 60 days `, sum(CASE WHEN (sr_returned_date_sk - ss_sold_date_sk > 60) AND (sr_returned_date_sk - ss_sold_date_sk <= 90) THEN 1 ELSE 0 END) AS `61 - 90 days `, sum(CASE WHEN (sr_returned_date_sk - ss_sold_date_sk > 90) AND (sr_returned_date_sk - ss_sold_date_sk <= 120) THEN 1 ELSE 0 END) AS `91 - 120 days `, sum(CASE WHEN (sr_returned_date_sk - ss_sold_date_sk > 120) THEN 1 ELSE 0 END) AS `>120 days ` FROM store_sales, store_returns, store, date_dim d1, date_dim d2 WHERE d2.d_year = 2001 AND d2.d_moy = 8 AND ss_ticket_number = sr_ticket_number AND ss_item_sk = sr_item_sk AND ss_sold_date_sk = d1.d_date_sk AND sr_returned_date_sk = d2.d_date_sk AND ss_customer_sk = sr_customer_sk AND ss_store_sk = s_store_sk GROUP BY s_store_name, s_company_id, s_street_number, s_street_name, s_street_type, s_suite_number, s_city, s_county, s_state, s_zip ORDER BY s_store_name, s_company_id, s_street_number, s_street_name, s_street_type, s_suite_number, s_city, s_county, s_state, s_zip LIMIT 100 SELECT * FROM (SELECT i_manager_id, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_manager_id) avg_monthly_sales FROM item , store_sales , date_dim , store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND d_month_seq IN (1200, 1200 + 1, 1200 + 2, 1200 + 3, 1200 + 4, 1200 + 5, 1200 + 6, 1200 + 7, 1200 + 8, 1200 + 9, 1200 + 10, 1200 + 11) AND ((i_category IN ('Books', 'Children', 'Electronics') AND i_class IN ('personal', 'portable', 'refernece', 'self-help') AND i_brand IN ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')) OR (i_category IN ('Women', 'Music', 'Men') AND i_class IN ('accessories', 'classical', 'fragrances', 'pants') AND i_brand IN ('amalgimporto #1', 'edu packscholar #1', 'exportiimporto #1', 'importoamalg #1'))) GROUP BY i_manager_id, d_moy) tmp1 WHERE CASE WHEN avg_monthly_sales > 0 THEN abs(sum_sales - avg_monthly_sales) / avg_monthly_sales ELSE NULL END > 0.1 ORDER BY i_manager_id , avg_monthly_sales , sum_sales LIMIT 100 WITH v1 AS ( SELECT i_category, i_brand, cc_name, d_year, d_moy, sum(cs_sales_price) sum_sales, avg(sum(cs_sales_price)) OVER (PARTITION BY i_category, i_brand, cc_name, d_year) avg_monthly_sales, rank() OVER (PARTITION BY i_category, i_brand, cc_name ORDER BY d_year, d_moy) rn FROM item, catalog_sales, date_dim, call_center WHERE cs_item_sk = i_item_sk AND cs_sold_date_sk = d_date_sk AND cc_call_center_sk = cs_call_center_sk AND ( d_year = 1999 OR (d_year = 1999 - 1 AND d_moy = 12) OR (d_year = 1999 + 1 AND d_moy = 1) ) GROUP BY i_category, i_brand, cc_name, d_year, d_moy), v2 AS ( SELECT v1.i_category, v1.i_brand, v1.cc_name, v1.d_year, v1.d_moy, v1.avg_monthly_sales, v1.sum_sales, v1_lag.sum_sales psum, v1_lead.sum_sales nsum FROM v1, v1 v1_lag, v1 v1_lead WHERE v1.i_category = v1_lag.i_category AND v1.i_category = v1_lead.i_category AND v1.i_brand = v1_lag.i_brand AND v1.i_brand = v1_lead.i_brand AND v1.cc_name = v1_lag.cc_name AND v1.cc_name = v1_lead.cc_name AND v1.rn = v1_lag.rn + 1 AND v1.rn = v1_lead.rn - 1) SELECT * FROM v2 WHERE d_year = 1999 AND avg_monthly_sales > 0 AND CASE WHEN avg_monthly_sales > 0 THEN abs(sum_sales - avg_monthly_sales) / avg_monthly_sales ELSE NULL END > 0.1 ORDER BY sum_sales - avg_monthly_sales, 3 LIMIT 100 WITH my_customers AS ( SELECT DISTINCT c_customer_sk, c_current_addr_sk FROM (SELECT cs_sold_date_sk sold_date_sk, cs_bill_customer_sk customer_sk, cs_item_sk item_sk FROM catalog_sales UNION ALL SELECT ws_sold_date_sk sold_date_sk, ws_bill_customer_sk customer_sk, ws_item_sk item_sk FROM web_sales ) cs_or_ws_sales, item, date_dim, customer WHERE sold_date_sk = d_date_sk AND item_sk = i_item_sk AND i_category = 'Women' AND i_class = 'maternity' AND c_customer_sk = cs_or_ws_sales.customer_sk AND d_moy = 12 AND d_year = 1998 ) , my_revenue AS ( SELECT c_customer_sk, sum(ss_ext_sales_price) AS revenue FROM my_customers, store_sales, customer_address, store, date_dim WHERE c_current_addr_sk = ca_address_sk AND ca_county = s_county AND ca_state = s_state AND ss_sold_date_sk = d_date_sk AND c_customer_sk = ss_customer_sk AND d_month_seq BETWEEN (SELECT DISTINCT d_month_seq + 1 FROM date_dim WHERE d_year = 1998 AND d_moy = 12) AND (SELECT DISTINCT d_month_seq + 3 FROM date_dim WHERE d_year = 1998 AND d_moy = 12) GROUP BY c_customer_sk ) , segments AS (SELECT cast((revenue / 50) AS INT) AS segment FROM my_revenue) SELECT segment, count(*) AS num_customers, segment * 50 AS segment_base FROM segments GROUP BY segment ORDER BY segment, num_customers LIMIT 100 SELECT i_item_id, i_item_desc, s_state, count(ss_quantity) AS store_sales_quantitycount, avg(ss_quantity) AS store_sales_quantityave, stddev_samp(ss_quantity) AS store_sales_quantitystdev, stddev_samp(ss_quantity) / avg(ss_quantity) AS store_sales_quantitycov, count(sr_return_quantity) as_store_returns_quantitycount, avg(sr_return_quantity) as_store_returns_quantityave, stddev_samp(sr_return_quantity) as_store_returns_quantitystdev, stddev_samp(sr_return_quantity) / avg(sr_return_quantity) AS store_returns_quantitycov, count(cs_quantity) AS catalog_sales_quantitycount, avg(cs_quantity) AS catalog_sales_quantityave, stddev_samp(cs_quantity) / avg(cs_quantity) AS catalog_sales_quantitystdev, stddev_samp(cs_quantity) / avg(cs_quantity) AS catalog_sales_quantitycov FROM store_sales, store_returns, catalog_sales, date_dim d1, date_dim d2, date_dim d3, store, item WHERE d1.d_quarter_name = '2001Q1' AND d1.d_date_sk = ss_sold_date_sk AND i_item_sk = ss_item_sk AND s_store_sk = ss_store_sk AND ss_customer_sk = sr_customer_sk AND ss_item_sk = sr_item_sk AND ss_ticket_number = sr_ticket_number AND sr_returned_date_sk = d2.d_date_sk AND d2.d_quarter_name IN ('2001Q1', '2001Q2', '2001Q3') AND sr_customer_sk = cs_bill_customer_sk AND sr_item_sk = cs_item_sk AND cs_sold_date_sk = d3.d_date_sk AND d3.d_quarter_name IN ('2001Q1', '2001Q2', '2001Q3') GROUP BY i_item_id, i_item_desc, s_state ORDER BY i_item_id, i_item_desc, s_state LIMIT 100 SELECT * FROM ( SELECT i_category, i_class, i_brand, s_store_name, s_company_name, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name) avg_monthly_sales FROM item, store_sales, date_dim, store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND d_year IN (1999) AND ((i_category IN ('Books', 'Electronics', 'Sports') AND i_class IN ('computers', 'stereo', 'football')) OR (i_category IN ('Men', 'Jewelry', 'Women') AND i_class IN ('shirts', 'birdal', 'dresses'))) GROUP BY i_category, i_class, i_brand, s_store_name, s_company_name, d_moy) tmp1 WHERE CASE WHEN (avg_monthly_sales <> 0) THEN (abs(sum_sales - avg_monthly_sales) / avg_monthly_sales) ELSE NULL END > 0.1 ORDER BY sum_sales - avg_monthly_sales, s_store_name LIMIT 100 WITH v1 AS ( SELECT i_category, i_brand, s_store_name, s_company_name, d_year, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name, d_year) avg_monthly_sales, rank() OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name ORDER BY d_year, d_moy) rn FROM item, store_sales, date_dim, store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND ( d_year = 1999 OR (d_year = 1999 - 1 AND d_moy = 12) OR (d_year = 1999 + 1 AND d_moy = 1) ) GROUP BY i_category, i_brand, s_store_name, s_company_name, d_year, d_moy), v2 AS ( SELECT v1.i_category, v1.i_brand, v1.s_store_name, v1.s_company_name, v1.d_year, v1.d_moy, v1.avg_monthly_sales, v1.sum_sales, v1_lag.sum_sales psum, v1_lead.sum_sales nsum FROM v1, v1 v1_lag, v1 v1_lead WHERE v1.i_category = v1_lag.i_category AND v1.i_category = v1_lead.i_category AND v1.i_brand = v1_lag.i_brand AND v1.i_brand = v1_lead.i_brand AND v1.s_store_name = v1_lag.s_store_name AND v1.s_store_name = v1_lead.s_store_name AND v1.s_company_name = v1_lag.s_company_name AND v1.s_company_name = v1_lead.s_company_name AND v1.rn = v1_lag.rn + 1 AND v1.rn = v1_lead.rn - 1) SELECT * FROM v2 WHERE d_year = 1999 AND avg_monthly_sales > 0 AND CASE WHEN avg_monthly_sales > 0 THEN abs(sum_sales - avg_monthly_sales) / avg_monthly_sales ELSE NULL END > 0.1 ORDER BY sum_sales - avg_monthly_sales, 3 LIMIT 100 SELECT i_item_id, i_item_desc, i_current_price FROM item, inventory, date_dim, store_sales WHERE i_current_price BETWEEN 62 AND 62 + 30 AND inv_item_sk = i_item_sk AND d_date_sk = inv_date_sk AND d_date BETWEEN cast('2000-05-25' AS DATE) AND (cast('2000-05-25' AS DATE) + INTERVAL 60 days) AND i_manufact_id IN (129, 270, 821, 423) AND inv_quantity_on_hand BETWEEN 100 AND 500 AND ss_item_sk = i_item_sk GROUP BY i_item_id, i_item_desc, i_current_price ORDER BY i_item_id LIMIT 100 SELECT cast(amc AS DECIMAL(15, 4)) / cast(pmc AS DECIMAL(15, 4)) am_pm_ratio FROM (SELECT count(*) amc FROM web_sales, household_demographics, time_dim, web_page WHERE ws_sold_time_sk = time_dim.t_time_sk AND ws_ship_hdemo_sk = household_demographics.hd_demo_sk AND ws_web_page_sk = web_page.wp_web_page_sk AND time_dim.t_hour BETWEEN 8 AND 8 + 1 AND household_demographics.hd_dep_count = 6 AND web_page.wp_char_count BETWEEN 5000 AND 5200) at, (SELECT count(*) pmc FROM web_sales, household_demographics, time_dim, web_page WHERE ws_sold_time_sk = time_dim.t_time_sk AND ws_ship_hdemo_sk = household_demographics.hd_demo_sk AND ws_web_page_sk = web_page.wp_web_page_sk AND time_dim.t_hour BETWEEN 19 AND 19 + 1 AND household_demographics.hd_dep_count = 6 AND web_page.wp_char_count BETWEEN 5000 AND 5200) pt ORDER BY am_pm_ratio LIMIT 100 SELECT 1 AS `excess discount amount ` FROM catalog_sales, item, date_dim WHERE i_manufact_id = 977 AND i_item_sk = cs_item_sk AND d_date BETWEEN '2000-01-27' AND (cast('2000-01-27' AS DATE) + interval 90 days) AND d_date_sk = cs_sold_date_sk AND cs_ext_discount_amt > ( SELECT 1.3 * avg(cs_ext_discount_amt) FROM catalog_sales, date_dim WHERE cs_item_sk = i_item_sk AND d_date BETWEEN '2000-01-27]' AND (cast('2000-01-27' AS DATE) + interval 90 days) AND d_date_sk = cs_sold_date_sk) LIMIT 100 SELECT w_state, i_item_id, sum(CASE WHEN (cast(d_date AS DATE) < cast('2000-03-11' AS DATE)) THEN cs_sales_price - coalesce(cr_refunded_cash, 0) ELSE 0 END) AS sales_before, sum(CASE WHEN (cast(d_date AS DATE) >= cast('2000-03-11' AS DATE)) THEN cs_sales_price - coalesce(cr_refunded_cash, 0) ELSE 0 END) AS sales_after FROM catalog_sales LEFT OUTER JOIN catalog_returns ON (cs_order_number = cr_order_number AND cs_item_sk = cr_item_sk) , warehouse, item, date_dim WHERE i_current_price BETWEEN 0.99 AND 1.49 AND i_item_sk = cs_item_sk AND cs_warehouse_sk = w_warehouse_sk AND cs_sold_date_sk = d_date_sk AND d_date BETWEEN (cast('2000-03-11' AS DATE) - INTERVAL 30 days) AND (cast('2000-03-11' AS DATE) + INTERVAL 30 days) GROUP BY w_state, i_item_id ORDER BY w_state, i_item_id LIMIT 100 SELECT substr(w_warehouse_name, 1, 20), sm_type, web_name, sum(CASE WHEN (ws_ship_date_sk - ws_sold_date_sk <= 30) THEN 1 ELSE 0 END) AS `30 days `, sum(CASE WHEN (ws_ship_date_sk - ws_sold_date_sk > 30) AND (ws_ship_date_sk - ws_sold_date_sk <= 60) THEN 1 ELSE 0 END) AS `31 - 60 days `, sum(CASE WHEN (ws_ship_date_sk - ws_sold_date_sk > 60) AND (ws_ship_date_sk - ws_sold_date_sk <= 90) THEN 1 ELSE 0 END) AS `61 - 90 days `, sum(CASE WHEN (ws_ship_date_sk - ws_sold_date_sk > 90) AND (ws_ship_date_sk - ws_sold_date_sk <= 120) THEN 1 ELSE 0 END) AS `91 - 120 days `, sum(CASE WHEN (ws_ship_date_sk - ws_sold_date_sk > 120) THEN 1 ELSE 0 END) AS `>120 days ` FROM web_sales, warehouse, ship_mode, web_site, date_dim WHERE d_month_seq BETWEEN 1200 AND 1200 + 11 AND ws_ship_date_sk = d_date_sk AND ws_warehouse_sk = w_warehouse_sk AND ws_ship_mode_sk = sm_ship_mode_sk AND ws_web_site_sk = web_site_sk GROUP BY substr(w_warehouse_name, 1, 20), sm_type, web_name ORDER BY substr(w_warehouse_name, 1, 20), sm_type, web_name LIMIT 100 SELECT channel, col_name, d_year, d_qoy, i_category, COUNT(*) sales_cnt, SUM(ext_sales_price) sales_amt FROM ( SELECT 'store' AS channel, ss_store_sk col_name, d_year, d_qoy, i_category, ss_ext_sales_price ext_sales_price FROM store_sales, item, date_dim WHERE ss_store_sk IS NULL AND ss_sold_date_sk = d_date_sk AND ss_item_sk = i_item_sk UNION ALL SELECT 'web' AS channel, ws_ship_customer_sk col_name, d_year, d_qoy, i_category, ws_ext_sales_price ext_sales_price FROM web_sales, item, date_dim WHERE ws_ship_customer_sk IS NULL AND ws_sold_date_sk = d_date_sk AND ws_item_sk = i_item_sk UNION ALL SELECT 'catalog' AS channel, cs_ship_addr_sk col_name, d_year, d_qoy, i_category, cs_ext_sales_price ext_sales_price FROM catalog_sales, item, date_dim WHERE cs_ship_addr_sk IS NULL AND cs_sold_date_sk = d_date_sk AND cs_item_sk = i_item_sk) foo GROUP BY channel, col_name, d_year, d_qoy, i_category ORDER BY channel, col_name, d_year, d_qoy, i_category LIMIT 100 SELECT sum(ws_ext_discount_amt) AS `Excess Discount Amount ` FROM web_sales, item, date_dim WHERE i_manufact_id = 350 AND i_item_sk = ws_item_sk AND d_date BETWEEN '2000-01-27' AND (cast('2000-01-27' AS DATE) + INTERVAL 90 days) AND d_date_sk = ws_sold_date_sk AND ws_ext_discount_amt > ( SELECT 1.3 * avg(ws_ext_discount_amt) FROM web_sales, date_dim WHERE ws_item_sk = i_item_sk AND d_date BETWEEN '2000-01-27' AND (cast('2000-01-27' AS DATE) + INTERVAL 90 days) AND d_date_sk = ws_sold_date_sk ) ORDER BY sum(ws_ext_discount_amt) LIMIT 100 SELECT i_item_desc, i_category, i_class, i_current_price, sum(ss_ext_sales_price) AS itemrevenue, sum(ss_ext_sales_price) * 100 / sum(sum(ss_ext_sales_price)) OVER (PARTITION BY i_class) AS revenueratio FROM store_sales, item, date_dim WHERE ss_item_sk = i_item_sk AND i_category IN ('Sports', 'Books', 'Home') AND ss_sold_date_sk = d_date_sk AND d_date BETWEEN cast('1999-02-22' AS DATE) AND (cast('1999-02-22' AS DATE) + INTERVAL 30 days) GROUP BY i_item_id, i_item_desc, i_category, i_class, i_current_price ORDER BY i_category, i_class, i_item_id, i_item_desc, revenueratio WITH ss_items AS (SELECT i_item_id item_id, sum(ss_ext_sales_price) ss_item_rev FROM store_sales, item, date_dim WHERE ss_item_sk = i_item_sk AND d_date IN (SELECT d_date FROM date_dim WHERE d_week_seq = (SELECT d_week_seq FROM date_dim WHERE d_date = '2000-01-03')) AND ss_sold_date_sk = d_date_sk GROUP BY i_item_id), cs_items AS (SELECT i_item_id item_id, sum(cs_ext_sales_price) cs_item_rev FROM catalog_sales, item, date_dim WHERE cs_item_sk = i_item_sk AND d_date IN (SELECT d_date FROM date_dim WHERE d_week_seq = (SELECT d_week_seq FROM date_dim WHERE d_date = '2000-01-03')) AND cs_sold_date_sk = d_date_sk GROUP BY i_item_id), ws_items AS (SELECT i_item_id item_id, sum(ws_ext_sales_price) ws_item_rev FROM web_sales, item, date_dim WHERE ws_item_sk = i_item_sk AND d_date IN (SELECT d_date FROM date_dim WHERE d_week_seq = (SELECT d_week_seq FROM date_dim WHERE d_date = '2000-01-03')) AND ws_sold_date_sk = d_date_sk GROUP BY i_item_id) SELECT ss_items.item_id, ss_item_rev, ss_item_rev / (ss_item_rev + cs_item_rev + ws_item_rev) / 3 * 100 ss_dev, cs_item_rev, cs_item_rev / (ss_item_rev + cs_item_rev + ws_item_rev) / 3 * 100 cs_dev, ws_item_rev, ws_item_rev / (ss_item_rev + cs_item_rev + ws_item_rev) / 3 * 100 ws_dev, (ss_item_rev + cs_item_rev + ws_item_rev) / 3 average FROM ss_items, cs_items, ws_items WHERE ss_items.item_id = cs_items.item_id AND ss_items.item_id = ws_items.item_id AND ss_item_rev BETWEEN 0.9 * cs_item_rev AND 1.1 * cs_item_rev AND ss_item_rev BETWEEN 0.9 * ws_item_rev AND 1.1 * ws_item_rev AND cs_item_rev BETWEEN 0.9 * ss_item_rev AND 1.1 * ss_item_rev AND cs_item_rev BETWEEN 0.9 * ws_item_rev AND 1.1 * ws_item_rev AND ws_item_rev BETWEEN 0.9 * ss_item_rev AND 1.1 * ss_item_rev AND ws_item_rev BETWEEN 0.9 * cs_item_rev AND 1.1 * cs_item_rev ORDER BY item_id, ss_item_rev LIMIT 100 WITH web_v1 AS ( SELECT ws_item_sk item_sk, d_date, sum(sum(ws_sales_price)) OVER (PARTITION BY ws_item_sk ORDER BY d_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) cume_sales FROM web_sales, date_dim WHERE ws_sold_date_sk = d_date_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 AND ws_item_sk IS NOT NULL GROUP BY ws_item_sk, d_date), store_v1 AS ( SELECT ss_item_sk item_sk, d_date, sum(sum(ss_sales_price)) OVER (PARTITION BY ss_item_sk ORDER BY d_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) cume_sales FROM store_sales, date_dim WHERE ss_sold_date_sk = d_date_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 AND ss_item_sk IS NOT NULL GROUP BY ss_item_sk, d_date) SELECT * FROM (SELECT item_sk, d_date, web_sales, store_sales, max(web_sales) OVER (PARTITION BY item_sk ORDER BY d_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) web_cumulative, max(store_sales) OVER (PARTITION BY item_sk ORDER BY d_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) store_cumulative FROM (SELECT CASE WHEN web.item_sk IS NOT NULL THEN web.item_sk ELSE store.item_sk END item_sk, CASE WHEN web.d_date IS NOT NULL THEN web.d_date ELSE store.d_date END d_date, web.cume_sales web_sales, store.cume_sales store_sales FROM web_v1 web FULL OUTER JOIN store_v1 store ON (web.item_sk = store.item_sk AND web.d_date = store.d_date) ) x) y WHERE web_cumulative > store_cumulative ORDER BY item_sk, d_date LIMIT 100 SELECT substr(w_warehouse_name, 1, 20), sm_type, cc_name, sum(CASE WHEN (cs_ship_date_sk - cs_sold_date_sk <= 30) THEN 1 ELSE 0 END) AS `30 days `, sum(CASE WHEN (cs_ship_date_sk - cs_sold_date_sk > 30) AND (cs_ship_date_sk - cs_sold_date_sk <= 60) THEN 1 ELSE 0 END) AS `31 - 60 days `, sum(CASE WHEN (cs_ship_date_sk - cs_sold_date_sk > 60) AND (cs_ship_date_sk - cs_sold_date_sk <= 90) THEN 1 ELSE 0 END) AS `61 - 90 days `, sum(CASE WHEN (cs_ship_date_sk - cs_sold_date_sk > 90) AND (cs_ship_date_sk - cs_sold_date_sk <= 120) THEN 1 ELSE 0 END) AS `91 - 120 days `, sum(CASE WHEN (cs_ship_date_sk - cs_sold_date_sk > 120) THEN 1 ELSE 0 END) AS `>120 days ` FROM catalog_sales, warehouse, ship_mode, call_center, date_dim WHERE d_month_seq BETWEEN 1200 AND 1200 + 11 AND cs_ship_date_sk = d_date_sk AND cs_warehouse_sk = w_warehouse_sk AND cs_ship_mode_sk = sm_ship_mode_sk AND cs_call_center_sk = cc_call_center_sk GROUP BY substr(w_warehouse_name, 1, 20), sm_type, cc_name ORDER BY substr(w_warehouse_name, 1, 20), sm_type, cc_name LIMIT 100 SELECT c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt FROM (SELECT ss_ticket_number, ss_customer_sk, count(*) cnt FROM store_sales, date_dim, store, household_demographics WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_store_sk = store.s_store_sk AND store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk AND (date_dim.d_dom BETWEEN 1 AND 3 OR date_dim.d_dom BETWEEN 25 AND 28) AND (household_demographics.hd_buy_potential = '>10000' OR household_demographics.hd_buy_potential = 'unknown') AND household_demographics.hd_vehicle_count > 0 AND (CASE WHEN household_demographics.hd_vehicle_count > 0 THEN household_demographics.hd_dep_count / household_demographics.hd_vehicle_count ELSE NULL END) > 1.2 AND date_dim.d_year IN (1999, 1999 + 1, 1999 + 2) AND store.s_county IN ('Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County') GROUP BY ss_ticket_number, ss_customer_sk) dn, customer WHERE ss_customer_sk = c_customer_sk AND cnt BETWEEN 15 AND 20 ORDER BY c_last_name, c_first_name, c_salutation, c_preferred_cust_flag DESC SELECT w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, ship_carriers, year, sum(jan_sales) AS jan_sales, sum(feb_sales) AS feb_sales, sum(mar_sales) AS mar_sales, sum(apr_sales) AS apr_sales, sum(may_sales) AS may_sales, sum(jun_sales) AS jun_sales, sum(jul_sales) AS jul_sales, sum(aug_sales) AS aug_sales, sum(sep_sales) AS sep_sales, sum(oct_sales) AS oct_sales, sum(nov_sales) AS nov_sales, sum(dec_sales) AS dec_sales, sum(jan_sales / w_warehouse_sq_ft) AS jan_sales_per_sq_foot, sum(feb_sales / w_warehouse_sq_ft) AS feb_sales_per_sq_foot, sum(mar_sales / w_warehouse_sq_ft) AS mar_sales_per_sq_foot, sum(apr_sales / w_warehouse_sq_ft) AS apr_sales_per_sq_foot, sum(may_sales / w_warehouse_sq_ft) AS may_sales_per_sq_foot, sum(jun_sales / w_warehouse_sq_ft) AS jun_sales_per_sq_foot, sum(jul_sales / w_warehouse_sq_ft) AS jul_sales_per_sq_foot, sum(aug_sales / w_warehouse_sq_ft) AS aug_sales_per_sq_foot, sum(sep_sales / w_warehouse_sq_ft) AS sep_sales_per_sq_foot, sum(oct_sales / w_warehouse_sq_ft) AS oct_sales_per_sq_foot, sum(nov_sales / w_warehouse_sq_ft) AS nov_sales_per_sq_foot, sum(dec_sales / w_warehouse_sq_ft) AS dec_sales_per_sq_foot, sum(jan_net) AS jan_net, sum(feb_net) AS feb_net, sum(mar_net) AS mar_net, sum(apr_net) AS apr_net, sum(may_net) AS may_net, sum(jun_net) AS jun_net, sum(jul_net) AS jul_net, sum(aug_net) AS aug_net, sum(sep_net) AS sep_net, sum(oct_net) AS oct_net, sum(nov_net) AS nov_net, sum(dec_net) AS dec_net FROM ( (SELECT w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, concat('DHL', ',', 'BARIAN') AS ship_carriers, d_year AS year, sum(CASE WHEN d_moy = 1 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS jan_sales, sum(CASE WHEN d_moy = 2 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS feb_sales, sum(CASE WHEN d_moy = 3 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS mar_sales, sum(CASE WHEN d_moy = 4 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS apr_sales, sum(CASE WHEN d_moy = 5 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS may_sales, sum(CASE WHEN d_moy = 6 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS jun_sales, sum(CASE WHEN d_moy = 7 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS jul_sales, sum(CASE WHEN d_moy = 8 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS aug_sales, sum(CASE WHEN d_moy = 9 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS sep_sales, sum(CASE WHEN d_moy = 10 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS oct_sales, sum(CASE WHEN d_moy = 11 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS nov_sales, sum(CASE WHEN d_moy = 12 THEN ws_ext_sales_price * ws_quantity ELSE 0 END) AS dec_sales, sum(CASE WHEN d_moy = 1 THEN ws_net_paid * ws_quantity ELSE 0 END) AS jan_net, sum(CASE WHEN d_moy = 2 THEN ws_net_paid * ws_quantity ELSE 0 END) AS feb_net, sum(CASE WHEN d_moy = 3 THEN ws_net_paid * ws_quantity ELSE 0 END) AS mar_net, sum(CASE WHEN d_moy = 4 THEN ws_net_paid * ws_quantity ELSE 0 END) AS apr_net, sum(CASE WHEN d_moy = 5 THEN ws_net_paid * ws_quantity ELSE 0 END) AS may_net, sum(CASE WHEN d_moy = 6 THEN ws_net_paid * ws_quantity ELSE 0 END) AS jun_net, sum(CASE WHEN d_moy = 7 THEN ws_net_paid * ws_quantity ELSE 0 END) AS jul_net, sum(CASE WHEN d_moy = 8 THEN ws_net_paid * ws_quantity ELSE 0 END) AS aug_net, sum(CASE WHEN d_moy = 9 THEN ws_net_paid * ws_quantity ELSE 0 END) AS sep_net, sum(CASE WHEN d_moy = 10 THEN ws_net_paid * ws_quantity ELSE 0 END) AS oct_net, sum(CASE WHEN d_moy = 11 THEN ws_net_paid * ws_quantity ELSE 0 END) AS nov_net, sum(CASE WHEN d_moy = 12 THEN ws_net_paid * ws_quantity ELSE 0 END) AS dec_net FROM web_sales, warehouse, date_dim, time_dim, ship_mode WHERE ws_warehouse_sk = w_warehouse_sk AND ws_sold_date_sk = d_date_sk AND ws_sold_time_sk = t_time_sk AND ws_ship_mode_sk = sm_ship_mode_sk AND d_year = 2001 AND t_time BETWEEN 30838 AND 30838 + 28800 AND sm_carrier IN ('DHL', 'BARIAN') GROUP BY w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, d_year) UNION ALL (SELECT w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, concat('DHL', ',', 'BARIAN') AS ship_carriers, d_year AS year, sum(CASE WHEN d_moy = 1 THEN cs_sales_price * cs_quantity ELSE 0 END) AS jan_sales, sum(CASE WHEN d_moy = 2 THEN cs_sales_price * cs_quantity ELSE 0 END) AS feb_sales, sum(CASE WHEN d_moy = 3 THEN cs_sales_price * cs_quantity ELSE 0 END) AS mar_sales, sum(CASE WHEN d_moy = 4 THEN cs_sales_price * cs_quantity ELSE 0 END) AS apr_sales, sum(CASE WHEN d_moy = 5 THEN cs_sales_price * cs_quantity ELSE 0 END) AS may_sales, sum(CASE WHEN d_moy = 6 THEN cs_sales_price * cs_quantity ELSE 0 END) AS jun_sales, sum(CASE WHEN d_moy = 7 THEN cs_sales_price * cs_quantity ELSE 0 END) AS jul_sales, sum(CASE WHEN d_moy = 8 THEN cs_sales_price * cs_quantity ELSE 0 END) AS aug_sales, sum(CASE WHEN d_moy = 9 THEN cs_sales_price * cs_quantity ELSE 0 END) AS sep_sales, sum(CASE WHEN d_moy = 10 THEN cs_sales_price * cs_quantity ELSE 0 END) AS oct_sales, sum(CASE WHEN d_moy = 11 THEN cs_sales_price * cs_quantity ELSE 0 END) AS nov_sales, sum(CASE WHEN d_moy = 12 THEN cs_sales_price * cs_quantity ELSE 0 END) AS dec_sales, sum(CASE WHEN d_moy = 1 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS jan_net, sum(CASE WHEN d_moy = 2 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS feb_net, sum(CASE WHEN d_moy = 3 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS mar_net, sum(CASE WHEN d_moy = 4 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS apr_net, sum(CASE WHEN d_moy = 5 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS may_net, sum(CASE WHEN d_moy = 6 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS jun_net, sum(CASE WHEN d_moy = 7 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS jul_net, sum(CASE WHEN d_moy = 8 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS aug_net, sum(CASE WHEN d_moy = 9 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS sep_net, sum(CASE WHEN d_moy = 10 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS oct_net, sum(CASE WHEN d_moy = 11 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS nov_net, sum(CASE WHEN d_moy = 12 THEN cs_net_paid_inc_tax * cs_quantity ELSE 0 END) AS dec_net FROM catalog_sales, warehouse, date_dim, time_dim, ship_mode WHERE cs_warehouse_sk = w_warehouse_sk AND cs_sold_date_sk = d_date_sk AND cs_sold_time_sk = t_time_sk AND cs_ship_mode_sk = sm_ship_mode_sk AND d_year = 2001 AND t_time BETWEEN 30838 AND 30838 + 28800 AND sm_carrier IN ('DHL', 'BARIAN') GROUP BY w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, d_year ) ) x GROUP BY w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, ship_carriers, year ORDER BY w_warehouse_name LIMIT 100 WITH ws AS (SELECT d_year AS ws_sold_year, ws_item_sk, ws_bill_customer_sk ws_customer_sk, sum(ws_quantity) ws_qty, sum(ws_wholesale_cost) ws_wc, sum(ws_sales_price) ws_sp FROM web_sales LEFT JOIN web_returns ON wr_order_number = ws_order_number AND ws_item_sk = wr_item_sk JOIN date_dim ON ws_sold_date_sk = d_date_sk WHERE wr_order_number IS NULL GROUP BY d_year, ws_item_sk, ws_bill_customer_sk ), cs AS (SELECT d_year AS cs_sold_year, cs_item_sk, cs_bill_customer_sk cs_customer_sk, sum(cs_quantity) cs_qty, sum(cs_wholesale_cost) cs_wc, sum(cs_sales_price) cs_sp FROM catalog_sales LEFT JOIN catalog_returns ON cr_order_number = cs_order_number AND cs_item_sk = cr_item_sk JOIN date_dim ON cs_sold_date_sk = d_date_sk WHERE cr_order_number IS NULL GROUP BY d_year, cs_item_sk, cs_bill_customer_sk ), ss AS (SELECT d_year AS ss_sold_year, ss_item_sk, ss_customer_sk, sum(ss_quantity) ss_qty, sum(ss_wholesale_cost) ss_wc, sum(ss_sales_price) ss_sp FROM store_sales LEFT JOIN store_returns ON sr_ticket_number = ss_ticket_number AND ss_item_sk = sr_item_sk JOIN date_dim ON ss_sold_date_sk = d_date_sk WHERE sr_ticket_number IS NULL GROUP BY d_year, ss_item_sk, ss_customer_sk ) SELECT round(ss_qty / (coalesce(ws_qty + cs_qty, 1)), 2) ratio, ss_qty store_qty, ss_wc store_wholesale_cost, ss_sp store_sales_price, coalesce(ws_qty, 0) + coalesce(cs_qty, 0) other_chan_qty, coalesce(ws_wc, 0) + coalesce(cs_wc, 0) other_chan_wholesale_cost, coalesce(ws_sp, 0) + coalesce(cs_sp, 0) other_chan_sales_price FROM ss LEFT JOIN ws ON (ws_sold_year = ss_sold_year AND ws_item_sk = ss_item_sk AND ws_customer_sk = ss_customer_sk) LEFT JOIN cs ON (cs_sold_year = ss_sold_year AND cs_item_sk = ss_item_sk AND cs_customer_sk = ss_customer_sk) WHERE coalesce(ws_qty, 0) > 0 AND coalesce(cs_qty, 0) > 0 AND ss_sold_year = 2000 ORDER BY ratio, ss_qty DESC, ss_wc DESC, ss_sp DESC, other_chan_qty, other_chan_wholesale_cost, other_chan_sales_price, round(ss_qty / (coalesce(ws_qty + cs_qty, 1)), 2) LIMIT 100 SELECT dt.d_year, item.i_brand_id brand_id, item.i_brand brand, sum(ss_ext_sales_price) ext_price FROM date_dim dt, store_sales, item WHERE dt.d_date_sk = store_sales.ss_sold_date_sk AND store_sales.ss_item_sk = item.i_item_sk AND item.i_manager_id = 1 AND dt.d_moy = 11 AND dt.d_year = 2000 GROUP BY dt.d_year, item.i_brand, item.i_brand_id ORDER BY dt.d_year, ext_price DESC, brand_id LIMIT 100 SELECT c_last_name, c_first_name, substr(s_city, 1, 30), ss_ticket_number, amt, profit FROM (SELECT ss_ticket_number, ss_customer_sk, store.s_city, sum(ss_coupon_amt) amt, sum(ss_net_profit) profit FROM store_sales, date_dim, store, household_demographics WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_store_sk = store.s_store_sk AND store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk AND (household_demographics.hd_dep_count = 6 OR household_demographics.hd_vehicle_count > 2) AND date_dim.d_dow = 1 AND date_dim.d_year IN (1999, 1999 + 1, 1999 + 2) AND store.s_number_employees BETWEEN 200 AND 295 GROUP BY ss_ticket_number, ss_customer_sk, ss_addr_sk, store.s_city) ms, customer WHERE ss_customer_sk = c_customer_sk ORDER BY c_last_name, c_first_name, substr(s_city, 1, 30), profit LIMIT 100 SELECT sum(ss_quantity) FROM store_sales, store, customer_demographics, customer_address, date_dim WHERE s_store_sk = ss_store_sk AND ss_sold_date_sk = d_date_sk AND d_year = 2001 AND ( ( cd_demo_sk = ss_cdemo_sk AND cd_marital_status = 'M' AND cd_education_status = '4 yr Degree' AND ss_sales_price BETWEEN 100.00 AND 150.00 ) OR ( cd_demo_sk = ss_cdemo_sk AND cd_marital_status = 'D' AND cd_education_status = '2 yr Degree' AND ss_sales_price BETWEEN 50.00 AND 100.00 ) OR ( cd_demo_sk = ss_cdemo_sk AND cd_marital_status = 'S' AND cd_education_status = 'College' AND ss_sales_price BETWEEN 150.00 AND 200.00 ) ) AND ( ( ss_addr_sk = ca_address_sk AND ca_country = 'United States' AND ca_state IN ('CO', 'OH', 'TX') AND ss_net_profit BETWEEN 0 AND 2000 ) OR (ss_addr_sk = ca_address_sk AND ca_country = 'United States' AND ca_state IN ('OR', 'MN', 'KY') AND ss_net_profit BETWEEN 150 AND 3000 ) OR (ss_addr_sk = ca_address_sk AND ca_country = 'United States' AND ca_state IN ('VA', 'CA', 'MS') AND ss_net_profit BETWEEN 50 AND 25000 ) ) SELECT i_item_id, ca_country, ca_state, ca_county, avg(cast(cs_quantity AS DECIMAL(12, 2))) agg1, avg(cast(cs_list_price AS DECIMAL(12, 2))) agg2, avg(cast(cs_coupon_amt AS DECIMAL(12, 2))) agg3, avg(cast(cs_sales_price AS DECIMAL(12, 2))) agg4, avg(cast(cs_net_profit AS DECIMAL(12, 2))) agg5, avg(cast(c_birth_year AS DECIMAL(12, 2))) agg6, avg(cast(cd1.cd_dep_count AS DECIMAL(12, 2))) agg7 FROM catalog_sales, customer_demographics cd1, customer_demographics cd2, customer, customer_address, date_dim, item WHERE cs_sold_date_sk = d_date_sk AND cs_item_sk = i_item_sk AND cs_bill_cdemo_sk = cd1.cd_demo_sk AND cs_bill_customer_sk = c_customer_sk AND cd1.cd_gender = 'F' AND cd1.cd_education_status = 'Unknown' AND c_current_cdemo_sk = cd2.cd_demo_sk AND c_current_addr_sk = ca_address_sk AND c_birth_month IN (1, 6, 8, 9, 12, 2) AND d_year = 1998 AND ca_state IN ('MS', 'IN', 'ND', 'OK', 'NM', 'VA', 'MS') GROUP BY ROLLUP (i_item_id, ca_country, ca_state, ca_county) ORDER BY ca_country, ca_state, ca_county, i_item_id LIMIT 100 SELECT count(DISTINCT cs_order_number) AS `order count `, sum(cs_ext_ship_cost) AS `total shipping cost `, sum(cs_net_profit) AS `total net profit ` FROM catalog_sales cs1, date_dim, customer_address, call_center WHERE d_date BETWEEN '2002-02-01' AND (CAST('2002-02-01' AS DATE) + INTERVAL 60 days) AND cs1.cs_ship_date_sk = d_date_sk AND cs1.cs_ship_addr_sk = ca_address_sk AND ca_state = 'GA' AND cs1.cs_call_center_sk = cc_call_center_sk AND cc_county IN ('Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County') AND EXISTS(SELECT * FROM catalog_sales cs2 WHERE cs1.cs_order_number = cs2.cs_order_number AND cs1.cs_warehouse_sk <> cs2.cs_warehouse_sk) AND NOT EXISTS(SELECT * FROM catalog_returns cr1 WHERE cs1.cs_order_number = cr1.cr_order_number) ORDER BY count(DISTINCT cs_order_number) LIMIT 100 SELECT c_last_name, c_first_name, ca_city, bought_city, ss_ticket_number, extended_price, extended_tax, list_price FROM (SELECT ss_ticket_number, ss_customer_sk, ca_city bought_city, sum(ss_ext_sales_price) extended_price, sum(ss_ext_list_price) list_price, sum(ss_ext_tax) extended_tax FROM store_sales, date_dim, store, household_demographics, customer_address WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_store_sk = store.s_store_sk AND store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk AND store_sales.ss_addr_sk = customer_address.ca_address_sk AND date_dim.d_dom BETWEEN 1 AND 2 AND (household_demographics.hd_dep_count = 4 OR household_demographics.hd_vehicle_count = 3) AND date_dim.d_year IN (1999, 1999 + 1, 1999 + 2) AND store.s_city IN ('Midway', 'Fairview') GROUP BY ss_ticket_number, ss_customer_sk, ss_addr_sk, ca_city) dn, customer, customer_address current_addr WHERE ss_customer_sk = c_customer_sk AND customer.c_current_addr_sk = current_addr.ca_address_sk AND current_addr.ca_city <> bought_city ORDER BY c_last_name, ss_ticket_number LIMIT 100 SELECT count(*) FROM ( SELECT DISTINCT c_last_name, c_first_name, d_date FROM store_sales, date_dim, customer WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_customer_sk = customer.c_customer_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 INTERSECT SELECT DISTINCT c_last_name, c_first_name, d_date FROM catalog_sales, date_dim, customer WHERE catalog_sales.cs_sold_date_sk = date_dim.d_date_sk AND catalog_sales.cs_bill_customer_sk = customer.c_customer_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 INTERSECT SELECT DISTINCT c_last_name, c_first_name, d_date FROM web_sales, date_dim, customer WHERE web_sales.ws_sold_date_sk = date_dim.d_date_sk AND web_sales.ws_bill_customer_sk = customer.c_customer_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 ) hot_cust LIMIT 100 WITH year_total AS ( SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, d_year AS year, sum(ss_net_paid) year_total, 's' sale_type FROM customer, store_sales, date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN (2001, 2001 + 1) GROUP BY c_customer_id, c_first_name, c_last_name, d_year UNION ALL SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, d_year AS year, sum(ws_net_paid) year_total, 'w' sale_type FROM customer, web_sales, date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year IN (2001, 2001 + 1) GROUP BY c_customer_id, c_first_name, c_last_name, d_year) SELECT t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name FROM year_total t_s_firstyear, year_total t_s_secyear, year_total t_w_firstyear, year_total t_w_secyear WHERE t_s_secyear.customer_id = t_s_firstyear.customer_id AND t_s_firstyear.customer_id = t_w_secyear.customer_id AND t_s_firstyear.customer_id = t_w_firstyear.customer_id AND t_s_firstyear.sale_type = 's' AND t_w_firstyear.sale_type = 'w' AND t_s_secyear.sale_type = 's' AND t_w_secyear.sale_type = 'w' AND t_s_firstyear.year = 2001 AND t_s_secyear.year = 2001 + 1 AND t_w_firstyear.year = 2001 AND t_w_secyear.year = 2001 + 1 AND t_s_firstyear.year_total > 0 AND t_w_firstyear.year_total > 0 AND CASE WHEN t_w_firstyear.year_total > 0 THEN t_w_secyear.year_total / t_w_firstyear.year_total ELSE NULL END > CASE WHEN t_s_firstyear.year_total > 0 THEN t_s_secyear.year_total / t_s_firstyear.year_total ELSE NULL END ORDER BY 1, 1, 1 LIMIT 100 WITH year_total AS ( SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, c_preferred_cust_flag customer_preferred_cust_flag, c_birth_country customer_birth_country, c_login customer_login, c_email_address customer_email_address, d_year dyear, sum(ss_ext_list_price - ss_ext_discount_amt) year_total, 's' sale_type FROM customer, store_sales, date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk GROUP BY c_customer_id , c_first_name , c_last_name , d_year , c_preferred_cust_flag , c_birth_country , c_login , c_email_address , d_year UNION ALL SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, c_preferred_cust_flag customer_preferred_cust_flag, c_birth_country customer_birth_country, c_login customer_login, c_email_address customer_email_address, d_year dyear, sum(ws_ext_list_price - ws_ext_discount_amt) year_total, 'w' sale_type FROM customer, web_sales, date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk GROUP BY c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year) SELECT t_s_secyear.customer_preferred_cust_flag FROM year_total t_s_firstyear , year_total t_s_secyear , year_total t_w_firstyear , year_total t_w_secyear WHERE t_s_secyear.customer_id = t_s_firstyear.customer_id AND t_s_firstyear.customer_id = t_w_secyear.customer_id AND t_s_firstyear.customer_id = t_w_firstyear.customer_id AND t_s_firstyear.sale_type = 's' AND t_w_firstyear.sale_type = 'w' AND t_s_secyear.sale_type = 's' AND t_w_secyear.sale_type = 'w' AND t_s_firstyear.dyear = 2001 AND t_s_secyear.dyear = 2001 + 1 AND t_w_firstyear.dyear = 2001 AND t_w_secyear.dyear = 2001 + 1 AND t_s_firstyear.year_total > 0 AND t_w_firstyear.year_total > 0 AND CASE WHEN t_w_firstyear.year_total > 0 THEN t_w_secyear.year_total / t_w_firstyear.year_total ELSE NULL END > CASE WHEN t_s_firstyear.year_total > 0 THEN t_s_secyear.year_total / t_s_firstyear.year_total ELSE NULL END ORDER BY t_s_secyear.customer_preferred_cust_flag LIMIT 100 WITH sr_items AS (SELECT i_item_id item_id, sum(sr_return_quantity) sr_item_qty FROM store_returns, item, date_dim WHERE sr_item_sk = i_item_sk AND d_date IN (SELECT d_date FROM date_dim WHERE d_week_seq IN (SELECT d_week_seq FROM date_dim WHERE d_date IN ('2000-06-30', '2000-09-27', '2000-11-17'))) AND sr_returned_date_sk = d_date_sk GROUP BY i_item_id), cr_items AS (SELECT i_item_id item_id, sum(cr_return_quantity) cr_item_qty FROM catalog_returns, item, date_dim WHERE cr_item_sk = i_item_sk AND d_date IN (SELECT d_date FROM date_dim WHERE d_week_seq IN (SELECT d_week_seq FROM date_dim WHERE d_date IN ('2000-06-30', '2000-09-27', '2000-11-17'))) AND cr_returned_date_sk = d_date_sk GROUP BY i_item_id), wr_items AS (SELECT i_item_id item_id, sum(wr_return_quantity) wr_item_qty FROM web_returns, item, date_dim WHERE wr_item_sk = i_item_sk AND d_date IN (SELECT d_date FROM date_dim WHERE d_week_seq IN (SELECT d_week_seq FROM date_dim WHERE d_date IN ('2000-06-30', '2000-09-27', '2000-11-17'))) AND wr_returned_date_sk = d_date_sk GROUP BY i_item_id) SELECT sr_items.item_id, sr_item_qty, sr_item_qty / (sr_item_qty + cr_item_qty + wr_item_qty) / 3.0 * 100 sr_dev, cr_item_qty, cr_item_qty / (sr_item_qty + cr_item_qty + wr_item_qty) / 3.0 * 100 cr_dev, wr_item_qty, wr_item_qty / (sr_item_qty + cr_item_qty + wr_item_qty) / 3.0 * 100 wr_dev, (sr_item_qty + cr_item_qty + wr_item_qty) / 3.0 average FROM sr_items, cr_items, wr_items WHERE sr_items.item_id = cr_items.item_id AND sr_items.item_id = wr_items.item_id ORDER BY sr_items.item_id, sr_item_qty LIMIT 100 WITH ssci AS ( SELECT ss_customer_sk customer_sk, ss_item_sk item_sk FROM store_sales, date_dim WHERE ss_sold_date_sk = d_date_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 GROUP BY ss_customer_sk, ss_item_sk), csci AS ( SELECT cs_bill_customer_sk customer_sk, cs_item_sk item_sk FROM catalog_sales, date_dim WHERE cs_sold_date_sk = d_date_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 GROUP BY cs_bill_customer_sk, cs_item_sk) SELECT sum(CASE WHEN ssci.customer_sk IS NOT NULL AND csci.customer_sk IS NULL THEN 1 ELSE 0 END) store_only, sum(CASE WHEN ssci.customer_sk IS NULL AND csci.customer_sk IS NOT NULL THEN 1 ELSE 0 END) catalog_only, sum(CASE WHEN ssci.customer_sk IS NOT NULL AND csci.customer_sk IS NOT NULL THEN 1 ELSE 0 END) store_and_catalog FROM ssci FULL OUTER JOIN csci ON (ssci.customer_sk = csci.customer_sk AND ssci.item_sk = csci.item_sk) LIMIT 100 WITH ssales AS (SELECT c_last_name, c_first_name, s_store_name, ca_state, s_state, i_color, i_current_price, i_manager_id, i_units, i_size, sum(ss_net_paid) netpaid FROM store_sales, store_returns, store, item, customer, customer_address WHERE ss_ticket_number = sr_ticket_number AND ss_item_sk = sr_item_sk AND ss_customer_sk = c_customer_sk AND ss_item_sk = i_item_sk AND ss_store_sk = s_store_sk AND c_birth_country = upper(ca_country) AND s_zip = ca_zip AND s_market_id = 8 GROUP BY c_last_name, c_first_name, s_store_name, ca_state, s_state, i_color, i_current_price, i_manager_id, i_units, i_size) SELECT c_last_name, c_first_name, s_store_name, sum(netpaid) paid FROM ssales WHERE i_color = 'pale' GROUP BY c_last_name, c_first_name, s_store_name HAVING sum(netpaid) > (SELECT 0.05 * avg(netpaid) FROM ssales) SELECT count(DISTINCT ws_order_number) AS `order count `, sum(ws_ext_ship_cost) AS `total shipping cost `, sum(ws_net_profit) AS `total net profit ` FROM web_sales ws1, date_dim, customer_address, web_site WHERE d_date BETWEEN '1999-02-01' AND (CAST('1999-02-01' AS DATE) + INTERVAL 60 days) AND ws1.ws_ship_date_sk = d_date_sk AND ws1.ws_ship_addr_sk = ca_address_sk AND ca_state = 'IL' AND ws1.ws_web_site_sk = web_site_sk AND web_company_name = 'pri' AND EXISTS(SELECT * FROM web_sales ws2 WHERE ws1.ws_order_number = ws2.ws_order_number AND ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) AND NOT EXISTS(SELECT * FROM web_returns wr1 WHERE ws1.ws_order_number = wr1.wr_order_number) ORDER BY count(DISTINCT ws_order_number) LIMIT 100 WITH ss AS (SELECT ca_county, d_qoy, d_year, sum(ss_ext_sales_price) AS store_sales FROM store_sales, date_dim, customer_address WHERE ss_sold_date_sk = d_date_sk AND ss_addr_sk = ca_address_sk GROUP BY ca_county, d_qoy, d_year), ws AS (SELECT ca_county, d_qoy, d_year, sum(ws_ext_sales_price) AS web_sales FROM web_sales, date_dim, customer_address WHERE ws_sold_date_sk = d_date_sk AND ws_bill_addr_sk = ca_address_sk GROUP BY ca_county, d_qoy, d_year) SELECT ss1.ca_county, ss1.d_year, ws2.web_sales / ws1.web_sales web_q1_q2_increase, ss2.store_sales / ss1.store_sales store_q1_q2_increase, ws3.web_sales / ws2.web_sales web_q2_q3_increase, ss3.store_sales / ss2.store_sales store_q2_q3_increase FROM ss ss1, ss ss2, ss ss3, ws ws1, ws ws2, ws ws3 WHERE ss1.d_qoy = 1 AND ss1.d_year = 2000 AND ss1.ca_county = ss2.ca_county AND ss2.d_qoy = 2 AND ss2.d_year = 2000 AND ss2.ca_county = ss3.ca_county AND ss3.d_qoy = 3 AND ss3.d_year = 2000 AND ss1.ca_county = ws1.ca_county AND ws1.d_qoy = 1 AND ws1.d_year = 2000 AND ws1.ca_county = ws2.ca_county AND ws2.d_qoy = 2 AND ws2.d_year = 2000 AND ws1.ca_county = ws3.ca_county AND ws3.d_qoy = 3 AND ws3.d_year = 2000 AND CASE WHEN ws1.web_sales > 0 THEN ws2.web_sales / ws1.web_sales ELSE NULL END > CASE WHEN ss1.store_sales > 0 THEN ss2.store_sales / ss1.store_sales ELSE NULL END AND CASE WHEN ws2.web_sales > 0 THEN ws3.web_sales / ws2.web_sales ELSE NULL END > CASE WHEN ss2.store_sales > 0 THEN ss3.store_sales / ss2.store_sales ELSE NULL END ORDER BY ss1.ca_county WITH inv AS (SELECT w_warehouse_name, w_warehouse_sk, i_item_sk, d_moy, stdev, mean, CASE mean WHEN 0 THEN NULL ELSE stdev / mean END cov FROM (SELECT w_warehouse_name, w_warehouse_sk, i_item_sk, d_moy, stddev_samp(inv_quantity_on_hand) stdev, avg(inv_quantity_on_hand) mean FROM inventory, item, warehouse, date_dim WHERE inv_item_sk = i_item_sk AND inv_warehouse_sk = w_warehouse_sk AND inv_date_sk = d_date_sk AND d_year = 2001 GROUP BY w_warehouse_name, w_warehouse_sk, i_item_sk, d_moy) foo WHERE CASE mean WHEN 0 THEN 0 ELSE stdev / mean END > 1) SELECT inv1.w_warehouse_sk, inv1.i_item_sk, inv1.d_moy, inv1.mean, inv1.cov, inv2.w_warehouse_sk, inv2.i_item_sk, inv2.d_moy, inv2.mean, inv2.cov FROM inv inv1, inv inv2 WHERE inv1.i_item_sk = inv2.i_item_sk AND inv1.w_warehouse_sk = inv2.w_warehouse_sk AND inv1.d_moy = 1 AND inv2.d_moy = 1 + 1 AND inv1.cov > 1.5 ORDER BY inv1.w_warehouse_sk, inv1.i_item_sk, inv1.d_moy, inv1.mean, inv1.cov , inv2.d_moy, inv2.mean, inv2.cov SELECT c_customer_id AS customer_id, concat(c_last_name, ', ', c_first_name) AS customername FROM customer , customer_address , customer_demographics , household_demographics , income_band , store_returns WHERE ca_city = 'Edgewood' AND c_current_addr_sk = ca_address_sk AND ib_lower_bound >= 38128 AND ib_upper_bound <= 38128 + 50000 AND ib_income_band_sk = hd_income_band_sk AND cd_demo_sk = c_current_cdemo_sk AND hd_demo_sk = c_current_hdemo_sk AND sr_cdemo_sk = cd_demo_sk ORDER BY c_customer_id LIMIT 100 -- This is a new query in TPCDS v2.7 with results as ( select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sum(coalesce(ss_sales_price * ss_quantity, 0)) sumsales from store_sales, date_dim, store, item where ss_sold_date_sk=d_date_sk and ss_item_sk=i_item_sk and ss_store_sk = s_store_sk and d_month_seq between 1212 and 1212 + 11 group by i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id), results_rollup as ( select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sumsales from results union all select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy union all select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name, d_year, d_qoy union all select i_category, i_class, i_brand, i_product_name, d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name, d_year union all select i_category, i_class, i_brand, i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name union all select i_category, i_class, i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand union all select i_category, i_class, null i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class union all select i_category, null i_class, null i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category union all select null i_category, null i_class, null i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results) select * from ( select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sumsales, rank() over (partition by i_category order by sumsales desc) rk from results_rollup) dw2 where rk <= 100 order by i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sumsales, rk limit 100 -- This is a new query in TPCDS v2.7 with ssr as( select s_store_id, sum(sales_price) as sales, sum(profit) as profit, sum(return_amt) as returns, sum(net_loss) as profit_loss from ( select ss_store_sk as store_sk, ss_sold_date_sk as date_sk, ss_ext_sales_price as sales_price, ss_net_profit as profit, cast(0 as decimal(7,2)) as return_amt, cast(0 as decimal(7,2)) as net_loss from store_sales union all select sr_store_sk as store_sk, sr_returned_date_sk as date_sk, cast(0 as decimal(7,2)) as sales_price, cast(0 as decimal(7,2)) as profit, sr_return_amt as return_amt, sr_net_loss as net_loss from store_returns) salesreturns, date_dim, store where date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + INTERVAL 14 days) and store_sk = s_store_sk group by s_store_id), csr as ( select cp_catalog_page_id, sum(sales_price) as sales, sum(profit) as profit, sum(return_amt) as returns, sum(net_loss) as profit_loss from ( select cs_catalog_page_sk as page_sk, cs_sold_date_sk as date_sk, cs_ext_sales_price as sales_price, cs_net_profit as profit, cast(0 as decimal(7,2)) as return_amt, cast(0 as decimal(7,2)) as net_loss from catalog_sales union all select cr_catalog_page_sk as page_sk, cr_returned_date_sk as date_sk, cast(0 as decimal(7,2)) as sales_price, cast(0 as decimal(7,2)) as profit, cr_return_amount as return_amt, cr_net_loss as net_loss from catalog_returns) salesreturns, date_dim, catalog_page where date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + INTERVAL 14 days) and page_sk = cp_catalog_page_sk group by cp_catalog_page_id), wsr as ( select web_site_id, sum(sales_price) as sales, sum(profit) as profit, sum(return_amt) as returns, sum(net_loss) as profit_loss from ( select ws_web_site_sk as wsr_web_site_sk, ws_sold_date_sk as date_sk, ws_ext_sales_price as sales_price, ws_net_profit as profit, cast(0 as decimal(7,2)) as return_amt, cast(0 as decimal(7,2)) as net_loss from web_sales union all select ws_web_site_sk as wsr_web_site_sk, wr_returned_date_sk as date_sk, cast(0 as decimal(7,2)) as sales_price, cast(0 as decimal(7,2)) as profit, wr_return_amt as return_amt, wr_net_loss as net_loss from web_returns left outer join web_sales on ( wr_item_sk = ws_item_sk and wr_order_number = ws_order_number) ) salesreturns, date_dim, web_site where date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + INTERVAL 14 days) and wsr_web_site_sk = web_site_sk group by web_site_id), results as ( select channel, id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from ( select 'store channel' as channel, 'store' || s_store_id as id, sales, returns, (profit - profit_loss) as profit from ssr union all select 'catalog channel' as channel, 'catalog_page' || cp_catalog_page_id as id, sales, returns, (profit - profit_loss) as profit from csr union all select 'web channel' as channel, 'web_site' || web_site_id as id, sales, returns, (profit - profit_loss) as profit from wsr) x group by channel, id) select channel, id, sales, returns, profit from ( select channel, id, sales, returns, profit from results union select channel, null as id, sum(sales), sum(returns), sum(profit) from results group by channel union select null as channel, null as id, sum(sales), sum(returns), sum(profit) from results) foo order by channel, id limit 100 -- This is a new query in TPCDS v2.7 with results as ( select sum(ss_net_profit) as ss_net_profit, sum(ss_ext_sales_price) as ss_ext_sales_price, sum(ss_net_profit)/sum(ss_ext_sales_price) as gross_margin, i_category, i_class, 0 as g_category, 0 as g_class from store_sales, date_dim d1, item, store where d1.d_year = 2001 and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and s_state in ('TN', 'TN', 'TN', 'TN', 'TN', 'TN', 'TN', 'TN') group by i_category, i_class), results_rollup as ( select gross_margin, i_category, i_class, 0 as t_category, 0 as t_class, 0 as lochierarchy from results union select sum(ss_net_profit) / sum(ss_ext_sales_price) as gross_margin, i_category, NULL AS i_class, 0 as t_category, 1 as t_class, 1 as lochierarchy from results group by i_category union select sum(ss_net_profit) / sum(ss_ext_sales_price) as gross_margin, NULL AS i_category, NULL AS i_class, 1 as t_category, 1 as t_class, 2 as lochierarchy from results) select gross_margin, i_category, i_class, lochierarchy, rank() over ( partition by lochierarchy, case when t_class = 0 then i_category end order by gross_margin asc) as rank_within_parent from results_rollup order by lochierarchy desc, case when lochierarchy = 0 then i_category end, rank_within_parent limit 100 -- This is a new query in TPCDS v2.7 with results as ( select sum(ss_net_profit) as total_sum, s_state ,s_county, 0 as gstate, 0 as g_county from store_sales, date_dim d1, store where d1.d_month_seq between 1212 and 1212 + 11 and d1.d_date_sk = ss_sold_date_sk and s_store_sk = ss_store_sk and s_state in ( select s_state from ( select s_state as s_state, rank() over (partition by s_state order by sum(ss_net_profit) desc) as ranking from store_sales, store, date_dim where d_month_seq between 1212 and 1212 + 11 and d_date_sk = ss_sold_date_sk and s_store_sk = ss_store_sk group by s_state) tmp1 where ranking <= 5) group by s_state, s_county), results_rollup as ( select total_sum, s_state, s_county, 0 as g_state, 0 as g_county, 0 as lochierarchy from results union select sum(total_sum) as total_sum,s_state, NULL as s_county, 0 as g_state, 1 as g_county, 1 as lochierarchy from results group by s_state union select sum(total_sum) as total_sum, NULL as s_state, NULL as s_county, 1 as g_state, 1 as g_county, 2 as lochierarchy from results) select total_sum, s_state, s_county, lochierarchy, rank() over ( partition by lochierarchy, case when g_county = 0 then s_state end order by total_sum desc) as rank_within_parent from results_rollup order by lochierarchy desc, case when lochierarchy = 0 then s_state end, rank_within_parent limit 100 WITH cs_ui AS (SELECT cs_item_sk, sum(cs_ext_list_price) AS sale, sum(cr_refunded_cash + cr_reversed_charge + cr_store_credit) AS refund FROM catalog_sales , catalog_returns WHERE cs_item_sk = cr_item_sk AND cs_order_number = cr_order_number GROUP BY cs_item_sk HAVING sum(cs_ext_list_price) > 2 * sum(cr_refunded_cash + cr_reversed_charge + cr_store_credit)), cross_sales AS (SELECT i_product_name product_name, i_item_sk item_sk, s_store_name store_name, s_zip store_zip, ad1.ca_street_number b_street_number, ad1.ca_street_name b_streen_name, ad1.ca_city b_city, ad1.ca_zip b_zip, ad2.ca_street_number c_street_number, ad2.ca_street_name c_street_name, ad2.ca_city c_city, ad2.ca_zip c_zip, d1.d_year AS syear, d2.d_year AS fsyear, d3.d_year s2year, count(*) cnt, sum(ss_wholesale_cost) s1, sum(ss_list_price) s2, sum(ss_coupon_amt) s3 FROM store_sales, store_returns, cs_ui, date_dim d1, date_dim d2, date_dim d3, store, customer, customer_demographics cd1, customer_demographics cd2, promotion, household_demographics hd1, household_demographics hd2, customer_address ad1, customer_address ad2, income_band ib1, income_band ib2, item WHERE ss_store_sk = s_store_sk AND ss_sold_date_sk = d1.d_date_sk AND ss_customer_sk = c_customer_sk AND ss_cdemo_sk = cd1.cd_demo_sk AND ss_hdemo_sk = hd1.hd_demo_sk AND ss_addr_sk = ad1.ca_address_sk AND ss_item_sk = i_item_sk AND ss_item_sk = sr_item_sk AND ss_ticket_number = sr_ticket_number AND ss_item_sk = cs_ui.cs_item_sk AND c_current_cdemo_sk = cd2.cd_demo_sk AND c_current_hdemo_sk = hd2.hd_demo_sk AND c_current_addr_sk = ad2.ca_address_sk AND c_first_sales_date_sk = d2.d_date_sk AND c_first_shipto_date_sk = d3.d_date_sk AND ss_promo_sk = p_promo_sk AND hd1.hd_income_band_sk = ib1.ib_income_band_sk AND hd2.hd_income_band_sk = ib2.ib_income_band_sk AND cd1.cd_marital_status <> cd2.cd_marital_status AND i_color IN ('purple', 'burlywood', 'indian', 'spring', 'floral', 'medium') AND i_current_price BETWEEN 64 AND 64 + 10 AND i_current_price BETWEEN 64 + 1 AND 64 + 15 GROUP BY i_product_name, i_item_sk, s_store_name, s_zip, ad1.ca_street_number, ad1.ca_street_name, ad1.ca_city, ad1.ca_zip, ad2.ca_street_number, ad2.ca_street_name, ad2.ca_city, ad2.ca_zip, d1.d_year, d2.d_year, d3.d_year ) SELECT cs1.product_name, cs1.store_name, cs1.store_zip, cs1.b_street_number, cs1.b_streen_name, cs1.b_city, cs1.b_zip, cs1.c_street_number, cs1.c_street_name, cs1.c_city, cs1.c_zip, cs1.syear, cs1.cnt, cs1.s1, cs1.s2, cs1.s3, cs2.s1, cs2.s2, cs2.s3, cs2.syear, cs2.cnt FROM cross_sales cs1, cross_sales cs2 WHERE cs1.item_sk = cs2.item_sk AND cs1.syear = 1999 AND cs2.syear = 1999 + 1 AND cs2.cnt <= cs1.cnt AND cs1.store_name = cs2.store_name AND cs1.store_zip = cs2.store_zip ORDER BY cs1.product_name, cs1.store_name, cs2.cnt, -- The two columns below are newly added in TPCDS v2.7 cs1.s1, cs2.s1 -- This is a new query in TPCDS v2.7 with results as ( select i_product_name, i_brand, i_class, i_category, avg(inv_quantity_on_hand) qoh from inventory, date_dim, item, warehouse where inv_date_sk = d_date_sk and inv_item_sk = i_item_sk and inv_warehouse_sk = w_warehouse_sk and d_month_seq between 1212 and 1212 + 11 group by i_product_name, i_brand, i_class, i_category), results_rollup as ( select i_product_name, i_brand, i_class, i_category, avg(qoh) qoh from results group by i_product_name, i_brand, i_class, i_category union all select i_product_name, i_brand, i_class, null i_category, avg(qoh) qoh from results group by i_product_name, i_brand, i_class union all select i_product_name, i_brand, null i_class, null i_category, avg(qoh) qoh from results group by i_product_name, i_brand union all select i_product_name, null i_brand, null i_class, null i_category, avg(qoh) qoh from results group by i_product_name union all select null i_product_name, null i_brand, null i_class, null i_category, avg(qoh) qoh from results) select i_product_name, i_brand, i_class, i_category, qoh from results_rollup order by qoh, i_product_name, i_brand, i_class, i_category limit 100 SELECT i_item_desc, w_warehouse_name, d1.d_week_seq, count(CASE WHEN p_promo_sk IS NULL THEN 1 ELSE 0 END) no_promo, count(CASE WHEN p_promo_sk IS NOT NULL THEN 1 ELSE 0 END) promo, count(*) total_cnt FROM catalog_sales JOIN inventory ON (cs_item_sk = inv_item_sk) JOIN warehouse ON (w_warehouse_sk = inv_warehouse_sk) JOIN item ON (i_item_sk = cs_item_sk) JOIN customer_demographics ON (cs_bill_cdemo_sk = cd_demo_sk) JOIN household_demographics ON (cs_bill_hdemo_sk = hd_demo_sk) JOIN date_dim d1 ON (cs_sold_date_sk = d1.d_date_sk) JOIN date_dim d2 ON (inv_date_sk = d2.d_date_sk) JOIN date_dim d3 ON (cs_ship_date_sk = d3.d_date_sk) LEFT OUTER JOIN promotion ON (cs_promo_sk = p_promo_sk) LEFT OUTER JOIN catalog_returns ON (cr_item_sk = cs_item_sk AND cr_order_number = cs_order_number) -- q72 in TPCDS v1.4 had conditions below: -- WHERE d1.d_week_seq = d2.d_week_seq -- AND inv_quantity_on_hand < cs_quantity -- AND d3.d_date > (cast(d1.d_date AS DATE) + interval 5 days) -- AND hd_buy_potential = '>10000' -- AND d1.d_year = 1999 -- AND hd_buy_potential = '>10000' -- AND cd_marital_status = 'D' -- AND d1.d_year = 1999 WHERE d1.d_week_seq = d2.d_week_seq AND inv_quantity_on_hand < cs_quantity AND d3.d_date > d1.d_date + INTERVAL 5 days AND hd_buy_potential = '1001-5000' AND d1.d_year = 2001 AND cd_marital_status = 'M' GROUP BY i_item_desc, w_warehouse_name, d1.d_week_seq ORDER BY total_cnt DESC, i_item_desc, w_warehouse_name, d_week_seq LIMIT 100 -- This is a new query in TPCDS v2.7 with ss as ( select s_store_sk, sum(ss_ext_sales_price) as sales, sum(ss_net_profit) as profit from store_sales, date_dim, store where ss_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) and ss_store_sk = s_store_sk group by s_store_sk), sr as ( select s_store_sk, sum(sr_return_amt) as returns, sum(sr_net_loss) as profit_loss from store_returns, date_dim, store where sr_returned_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) and sr_store_sk = s_store_sk group by s_store_sk), cs as ( select cs_call_center_sk, sum(cs_ext_sales_price) as sales, sum(cs_net_profit) as profit from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) group by cs_call_center_sk), cr as ( select sum(cr_return_amount) as returns, sum(cr_net_loss) as profit_loss from catalog_returns, date_dim where cr_returned_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days)), ws as ( select wp_web_page_sk, sum(ws_ext_sales_price) as sales, sum(ws_net_profit) as profit from web_sales, date_dim, web_page where ws_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) and ws_web_page_sk = wp_web_page_sk group by wp_web_page_sk), wr as (select wp_web_page_sk, sum(wr_return_amt) as returns, sum(wr_net_loss) as profit_loss from web_returns, date_dim, web_page where wr_returned_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) and wr_web_page_sk = wp_web_page_sk group by wp_web_page_sk) , results as (select channel , id , sum(sales) as sales , sum(returns) as returns , sum(profit) as profit from (select 'store channel' as channel , ss.s_store_sk as id , sales , coalesce(returns, 0) as returns , (profit - coalesce(profit_loss,0)) as profit from ss left join sr on ss.s_store_sk = sr.s_store_sk union all select 'catalog channel' as channel , cs_call_center_sk as id , sales , returns , (profit - profit_loss) as profit from cs , cr union all select 'web channel' as channel , ws.wp_web_page_sk as id , sales , coalesce(returns, 0) returns , (profit - coalesce(profit_loss,0)) as profit from ws left join wr on ws.wp_web_page_sk = wr.wp_web_page_sk ) x group by channel, id ) select * from ( select channel, id, sales, returns, profit from results union select channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results group by channel union select NULL AS channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results ) foo order by channel, id limit 100 SELECT i_item_id, -- This column did not exist in TPCDS v1.4 i_item_desc, i_category, i_class, i_current_price, sum(cs_ext_sales_price) AS itemrevenue, sum(cs_ext_sales_price) * 100 / sum(sum(cs_ext_sales_price)) OVER (PARTITION BY i_class) AS revenueratio FROM catalog_sales, item, date_dim WHERE cs_item_sk = i_item_sk AND i_category IN ('Sports', 'Books', 'Home') AND cs_sold_date_sk = d_date_sk AND d_date BETWEEN cast('1999-02-22' AS DATE) AND (cast('1999-02-22' AS DATE) + INTERVAL 30 days) GROUP BY i_item_id, i_item_desc, i_category, i_class, i_current_price ORDER BY i_category, i_class, i_item_id, i_item_desc, revenueratio LIMIT 100 SELECT -- select list of q35 in TPCDS v1.4 is below: -- ca_state, -- cd_gender, -- cd_marital_status, -- count(*) cnt1, -- min(cd_dep_count), -- max(cd_dep_count), -- avg(cd_dep_count), -- cd_dep_employed_count, -- count(*) cnt2, -- min(cd_dep_employed_count), -- max(cd_dep_employed_count), -- avg(cd_dep_employed_count), -- cd_dep_college_count, -- count(*) cnt3, -- min(cd_dep_college_count), -- max(cd_dep_college_count), -- avg(cd_dep_college_count) ca_state, cd_gender, cd_marital_status, cd_dep_count, count(*) cnt1, avg(cd_dep_count), max(cd_dep_count), sum(cd_dep_count), cd_dep_employed_count, count(*) cnt2, avg(cd_dep_employed_count), max(cd_dep_employed_count), sum(cd_dep_employed_count), cd_dep_college_count, count(*) cnt3, avg(cd_dep_college_count), max(cd_dep_college_count), sum(cd_dep_college_count) FROM customer c, customer_address ca, customer_demographics WHERE c.c_current_addr_sk = ca.ca_address_sk AND cd_demo_sk = c.c_current_cdemo_sk AND exists(SELECT * FROM store_sales, date_dim WHERE c.c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year = 2002 AND d_qoy < 4) AND (exists(SELECT * FROM web_sales, date_dim WHERE c.c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year = 2002 AND d_qoy < 4) OR exists(SELECT * FROM catalog_sales, date_dim WHERE c.c_customer_sk = cs_ship_customer_sk AND cs_sold_date_sk = d_date_sk AND d_year = 2002 AND d_qoy < 4)) GROUP BY ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count ORDER BY ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count LIMIT 100 SELECT i_product_name, i_brand, i_class, i_category, avg(inv_quantity_on_hand) qoh FROM inventory, date_dim, item, warehouse WHERE inv_date_sk = d_date_sk AND inv_item_sk = i_item_sk -- q22 in TPCDS v1.4 had a condition below: -- AND inv_warehouse_sk = w_warehouse_sk AND d_month_seq BETWEEN 1200 AND 1200 + 11 GROUP BY ROLLUP (i_product_name, i_brand, i_class, i_category) ORDER BY qoh, i_product_name, i_brand, i_class, i_category LIMIT 100 SELECT a.ca_state state, count(*) cnt FROM customer_address a, customer c, store_sales s, date_dim d, item i WHERE a.ca_address_sk = c.c_current_addr_sk AND c.c_customer_sk = s.ss_customer_sk AND s.ss_sold_date_sk = d.d_date_sk AND s.ss_item_sk = i.i_item_sk AND d.d_month_seq = (SELECT DISTINCT (d_month_seq) FROM date_dim WHERE d_year = 2000 AND d_moy = 1) AND i.i_current_price > 1.2 * (SELECT avg(j.i_current_price) FROM item j WHERE j.i_category = i.i_category) GROUP BY a.ca_state HAVING count(*) >= 10 -- order-by list of q6 in TPCDS v1.4 is below: -- order by cnt order by cnt, a.ca_state LIMIT 100 -- This query is the alternative form of sql/core/src/test/resources/tpcds/q14b.sql with cross_items as ( select i_item_sk ss_item_sk from item, ( select iss.i_brand_id brand_id, iss.i_class_id class_id, iss.i_category_id category_id from store_sales, item iss, date_dim d1 where ss_item_sk = iss.i_item_sk and ss_sold_date_sk = d1.d_date_sk and d1.d_year between 1999 AND 1999 + 2 intersect select ics.i_brand_id, ics.i_class_id, ics.i_category_id from catalog_sales, item ics, date_dim d2 where cs_item_sk = ics.i_item_sk and cs_sold_date_sk = d2.d_date_sk and d2.d_year between 1999 AND 1999 + 2 intersect select iws.i_brand_id, iws.i_class_id, iws.i_category_id from web_sales, item iws, date_dim d3 where ws_item_sk = iws.i_item_sk and ws_sold_date_sk = d3.d_date_sk and d3.d_year between 1999 AND 1999 + 2) x where i_brand_id = brand_id and i_class_id = class_id and i_category_id = category_id), avg_sales as ( select avg(quantity*list_price) average_sales from ( select ss_quantity quantity, ss_list_price list_price from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_year between 1999 and 2001 union all select cs_quantity quantity, cs_list_price list_price from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_year between 1998 and 1998 + 2 union all select ws_quantity quantity, ws_list_price list_price from web_sales, date_dim where ws_sold_date_sk = d_date_sk and d_year between 1998 and 1998 + 2) x), results AS ( select channel, i_brand_id, i_class_id, i_category_id, sum(sales) sum_sales, sum(number_sales) number_sales from ( select 'store' channel, i_brand_id,i_class_id, i_category_id, sum(ss_quantity*ss_list_price) sales, count(*) number_sales from store_sales, item, date_dim where ss_item_sk in (select ss_item_sk from cross_items) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_year = 1998 + 2 and d_moy = 11 group by i_brand_id, i_class_id, i_category_id having sum(ss_quantity * ss_list_price) > (select average_sales from avg_sales) union all select 'catalog' channel, i_brand_id, i_class_id, i_category_id, sum(cs_quantity*cs_list_price) sales, count(*) number_sales from catalog_sales, item, date_dim where cs_item_sk in (select ss_item_sk from cross_items) and cs_item_sk = i_item_sk and cs_sold_date_sk = d_date_sk and d_year = 1998+2 and d_moy = 11 group by i_brand_id,i_class_id,i_category_id having sum(cs_quantity*cs_list_price) > (select average_sales from avg_sales) union all select 'web' channel, i_brand_id, i_class_id, i_category_id, sum(ws_quantity*ws_list_price) sales, count(*) number_sales from web_sales, item, date_dim where ws_item_sk in (select ss_item_sk from cross_items) and ws_item_sk = i_item_sk and ws_sold_date_sk = d_date_sk and d_year = 1998 + 2 and d_moy = 11 group by i_brand_id, i_class_id, i_category_id having sum(ws_quantity*ws_list_price) > (select average_sales from avg_sales)) y group by channel, i_brand_id, i_class_id, i_category_id) select channel, i_brand_id, i_class_id, i_category_id, sum_sales, number_sales from ( select channel, i_brand_id, i_class_id, i_category_id, sum_sales, number_sales from results union select channel, i_brand_id, i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results group by channel, i_brand_id, i_class_id union select channel, i_brand_id, null as i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results group by channel, i_brand_id union select channel, null as i_brand_id, null as i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results group by channel union select null as channel, null as i_brand_id, null as i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results) z order by channel, i_brand_id, i_class_id, i_category_id limit 100 SELECT i_item_id, -- This column did not exist in TPCDS v1.4 i_item_desc, i_category, i_class, i_current_price, sum(ws_ext_sales_price) AS itemrevenue, sum(ws_ext_sales_price) * 100 / sum(sum(ws_ext_sales_price)) OVER (PARTITION BY i_class) AS revenueratio FROM web_sales, item, date_dim WHERE ws_item_sk = i_item_sk AND i_category IN ('Sports', 'Books', 'Home') AND ws_sold_date_sk = d_date_sk AND d_date BETWEEN cast('1999-02-22' AS DATE) AND (cast('1999-02-22' AS DATE) + INTERVAL 30 days) GROUP BY i_item_id, i_item_desc, i_category, i_class, i_current_price ORDER BY i_category, i_class, i_item_id, i_item_desc, revenueratio LIMIT 100 -- This is a new query in TPCDS v2.7 with results as ( select sum(ws_net_paid) as total_sum, i_category, i_class, 0 as g_category, 0 as g_class from web_sales, date_dim d1, item where d1.d_month_seq between 1212 and 1212 + 11 and d1.d_date_sk = ws_sold_date_sk and i_item_sk = ws_item_sk group by i_category, i_class), results_rollup as( select total_sum, i_category, i_class, g_category, g_class, 0 as lochierarchy from results union select sum(total_sum) as total_sum, i_category, NULL as i_class, 0 as g_category, 1 as g_class, 1 as lochierarchy from results group by i_category union select sum(total_sum) as total_sum, NULL as i_category, NULL as i_class, 1 as g_category, 1 as g_class, 2 as lochierarchy from results) select total_sum, i_category ,i_class, lochierarchy, rank() over ( partition by lochierarchy, case when g_class = 0 then i_category end order by total_sum desc) as rank_within_parent from results_rollup order by lochierarchy desc, case when lochierarchy = 0 then i_category end, rank_within_parent limit 100 WITH ssales AS (SELECT c_last_name, c_first_name, s_store_name, ca_state, s_state, i_color, i_current_price, i_manager_id, i_units, i_size, sum(ss_net_paid) netpaid FROM store_sales, store_returns, store, item, customer, customer_address WHERE ss_ticket_number = sr_ticket_number AND ss_item_sk = sr_item_sk AND ss_customer_sk = c_customer_sk AND ss_item_sk = i_item_sk AND ss_store_sk = s_store_sk AND c_current_addr_sk = ca_address_sk -- This condition did not exist in TPCDS v1.4 AND c_birth_country = upper(ca_country) AND s_zip = ca_zip AND s_market_id = 8 GROUP BY c_last_name, c_first_name, s_store_name, ca_state, s_state, i_color, i_current_price, i_manager_id, i_units, i_size) SELECT c_last_name, c_first_name, s_store_name, sum(netpaid) paid FROM ssales WHERE i_color = 'pale' GROUP BY c_last_name, c_first_name, s_store_name HAVING sum(netpaid) > (SELECT 0.05 * avg(netpaid) FROM ssales) -- no order-by exists in q24a of TPCDS v1.4 ORDER BY c_last_name, c_first_name, s_store_name -- This query is the alternative form of sql/core/src/test/resources/tpcds/q14a.sql with cross_items as ( select i_item_sk ss_item_sk from item, ( select iss.i_brand_id brand_id, iss.i_class_id class_id, iss.i_category_id category_id from store_sales, item iss, date_dim d1 where ss_item_sk = iss.i_item_sk and ss_sold_date_sk = d1.d_date_sk and d1.d_year between 1998 AND 1998 + 2 intersect select ics.i_brand_id, ics.i_class_id, ics.i_category_id from catalog_sales, item ics, date_dim d2 where cs_item_sk = ics.i_item_sk and cs_sold_date_sk = d2.d_date_sk and d2.d_year between 1998 AND 1998 + 2 intersect select iws.i_brand_id, iws.i_class_id, iws.i_category_id from web_sales, item iws, date_dim d3 where ws_item_sk = iws.i_item_sk and ws_sold_date_sk = d3.d_date_sk and d3.d_year between 1998 AND 1998 + 2) x where i_brand_id = brand_id and i_class_id = class_id and i_category_id = category_id), avg_sales as ( select avg(quantity*list_price) average_sales from ( select ss_quantity quantity, ss_list_price list_price from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_year between 1998 and 1998 + 2 union all select cs_quantity quantity, cs_list_price list_price from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_year between 1998 and 1998 + 2 union all select ws_quantity quantity, ws_list_price list_price from web_sales, date_dim where ws_sold_date_sk = d_date_sk and d_year between 1998 and 1998 + 2) x) select * from ( select 'store' channel, i_brand_id, i_class_id, i_category_id, sum(ss_quantity * ss_list_price) sales, count(*) number_sales from store_sales, item, date_dim where ss_item_sk in (select ss_item_sk from cross_items) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_week_seq = ( select d_week_seq from date_dim where d_year = 1998 + 1 and d_moy = 12 and d_dom = 16) group by i_brand_id, i_class_id, i_category_id having sum(ss_quantity*ss_list_price) > (select average_sales from avg_sales)) this_year, ( select 'store' channel, i_brand_id, i_class_id, i_category_id, sum(ss_quantity * ss_list_price) sales, count(*) number_sales from store_sales, item, date_dim where ss_item_sk in (select ss_item_sk from cross_items) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_week_seq = ( select d_week_seq from date_dim where d_year = 1998 and d_moy = 12 and d_dom = 16) group by i_brand_id, i_class_id, i_category_id having sum(ss_quantity * ss_list_price) > (select average_sales from avg_sales)) last_year where this_year.i_brand_id = last_year.i_brand_id and this_year.i_class_id = last_year.i_class_id and this_year.i_category_id = last_year.i_category_id order by this_year.channel, this_year.i_brand_id, this_year.i_class_id, this_year.i_category_id limit 100 WITH all_sales AS ( SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, SUM(sales_cnt) AS sales_cnt, SUM(sales_amt) AS sales_amt FROM ( SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, cs_quantity - COALESCE(cr_return_quantity, 0) AS sales_cnt, cs_ext_sales_price - COALESCE(cr_return_amount, 0.0) AS sales_amt FROM catalog_sales JOIN item ON i_item_sk = cs_item_sk JOIN date_dim ON d_date_sk = cs_sold_date_sk LEFT JOIN catalog_returns ON (cs_order_number = cr_order_number AND cs_item_sk = cr_item_sk) WHERE i_category = 'Books' UNION SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, ss_quantity - COALESCE(sr_return_quantity, 0) AS sales_cnt, ss_ext_sales_price - COALESCE(sr_return_amt, 0.0) AS sales_amt FROM store_sales JOIN item ON i_item_sk = ss_item_sk JOIN date_dim ON d_date_sk = ss_sold_date_sk LEFT JOIN store_returns ON (ss_ticket_number = sr_ticket_number AND ss_item_sk = sr_item_sk) WHERE i_category = 'Books' UNION SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, ws_quantity - COALESCE(wr_return_quantity, 0) AS sales_cnt, ws_ext_sales_price - COALESCE(wr_return_amt, 0.0) AS sales_amt FROM web_sales JOIN item ON i_item_sk = ws_item_sk JOIN date_dim ON d_date_sk = ws_sold_date_sk LEFT JOIN web_returns ON (ws_order_number = wr_order_number AND ws_item_sk = wr_item_sk) WHERE i_category = 'Books') sales_detail GROUP BY d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id) SELECT prev_yr.d_year AS prev_year, curr_yr.d_year AS year, curr_yr.i_brand_id, curr_yr.i_class_id, curr_yr.i_category_id, curr_yr.i_manufact_id, prev_yr.sales_cnt AS prev_yr_cnt, curr_yr.sales_cnt AS curr_yr_cnt, curr_yr.sales_cnt - prev_yr.sales_cnt AS sales_cnt_diff, curr_yr.sales_amt - prev_yr.sales_amt AS sales_amt_diff FROM all_sales curr_yr, all_sales prev_yr WHERE curr_yr.i_brand_id = prev_yr.i_brand_id AND curr_yr.i_class_id = prev_yr.i_class_id AND curr_yr.i_category_id = prev_yr.i_category_id AND curr_yr.i_manufact_id = prev_yr.i_manufact_id AND curr_yr.d_year = 2002 AND prev_yr.d_year = 2002 - 1 AND CAST(curr_yr.sales_cnt AS DECIMAL(17, 2)) / CAST(prev_yr.sales_cnt AS DECIMAL(17, 2)) < 0.9 ORDER BY sales_cnt_diff, sales_amt_diff -- This order-by condition did not exist in TPCDS v1.4 LIMIT 100 -- This is a new query in TPCDS v2.7 with ssr as ( select s_store_id as store_id, sum(ss_ext_sales_price) as sales, sum(coalesce(sr_return_amt, 0)) as returns, sum(ss_net_profit - coalesce(sr_net_loss, 0)) as profit from store_sales left outer join store_returns on ( ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number), date_dim, store, item, promotion where ss_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) and ss_store_sk = s_store_sk and ss_item_sk = i_item_sk and i_current_price > 50 and ss_promo_sk = p_promo_sk and p_channel_tv = 'N' group by s_store_id), csr as ( select cp_catalog_page_id as catalog_page_id, sum(cs_ext_sales_price) as sales, sum(coalesce(cr_return_amount, 0)) as returns, sum(cs_net_profit - coalesce(cr_net_loss, 0)) as profit from catalog_sales left outer join catalog_returns on (cs_item_sk = cr_item_sk and cs_order_number = cr_order_number), date_dim, catalog_page, item, promotion where cs_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) and cs_catalog_page_sk = cp_catalog_page_sk and cs_item_sk = i_item_sk and i_current_price > 50 and cs_promo_sk = p_promo_sk and p_channel_tv = 'N' group by cp_catalog_page_id), wsr as ( select web_site_id, sum(ws_ext_sales_price) as sales, sum(coalesce(wr_return_amt, 0)) as returns, sum(ws_net_profit - coalesce(wr_net_loss, 0)) as profit from web_sales left outer join web_returns on ( ws_item_sk = wr_item_sk and ws_order_number = wr_order_number), date_dim, web_site, item, promotion where ws_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-08-04' as date) + interval 30 days) and ws_web_site_sk = web_site_sk and ws_item_sk = i_item_sk and i_current_price > 50 and ws_promo_sk = p_promo_sk and p_channel_tv = 'N' group by web_site_id), results as ( select channel, id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from ( select 'store channel' as channel, 'store' || store_id as id, sales, returns, profit from ssr union all select 'catalog channel' as channel, 'catalog_page' || catalog_page_id as id, sales, returns, profit from csr union all select 'web channel' as channel, 'web_site' || web_site_id as id, sales, returns, profit from wsr) x group by channel, id) select channel, id, sales, returns, profit from ( select channel, id, sales, returns, profit from results union select channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results group by channel union select NULL AS channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results) foo order by channel, id limit 100 -- The first SELECT query below is different from q49 of TPCDS v1.4 SELECT channel, item, return_ratio, return_rank, currency_rank FROM ( SELECT 'web' as channel, in_web.item, in_web.return_ratio, in_web.return_rank, in_web.currency_rank FROM (SELECT item, return_ratio, currency_ratio, rank() over (ORDER BY return_ratio) AS return_rank, rank() over (ORDER BY currency_ratio) AS currency_rank FROM ( SELECT ws.ws_item_sk AS item, CAST(SUM(COALESCE(wr.wr_return_quantity, 0)) AS DECIMAL(15, 4)) / CAST(SUM(COALESCE(ws.ws_quantity, 0)) AS DECIMAL(15, 4)) AS return_ratio, CAST(SUM(COALESCE(wr.wr_return_amt, 0)) AS DECIMAL(15, 4)) / CAST(SUM(COALESCE(ws.ws_net_paid, 0)) AS DECIMAL(15, 4)) AS currency_ratio FROM web_sales ws LEFT OUTER JOIN web_returns wr ON (ws.ws_order_number = wr.wr_order_number AND ws.ws_item_sk = wr.wr_item_sk), date_dim WHERE wr.wr_return_amt > 10000 AND ws.ws_net_profit > 1 AND ws.ws_net_paid > 0 AND ws.ws_quantity > 0 AND ws_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 12 GROUP BY ws.ws_item_sk) ) in_web ) web WHERE (web.return_rank <= 10 OR web.currency_rank <= 10) UNION SELECT 'catalog' AS channel, catalog.item, catalog.return_ratio, catalog.return_rank, catalog.currency_rank FROM ( SELECT item, return_ratio, currency_ratio, rank() OVER ( ORDER BY return_ratio) AS return_rank, rank() OVER ( ORDER BY currency_ratio) AS currency_rank FROM (SELECT cs.cs_item_sk AS item, (cast(sum(coalesce(cr.cr_return_quantity, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(cs.cs_quantity, 0)) AS DECIMAL(15, 4))) AS return_ratio, (cast(sum(coalesce(cr.cr_return_amount, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(cs.cs_net_paid, 0)) AS DECIMAL(15, 4))) AS currency_ratio FROM catalog_sales cs LEFT OUTER JOIN catalog_returns cr ON (cs.cs_order_number = cr.cr_order_number AND cs.cs_item_sk = cr.cr_item_sk) , date_dim WHERE cr.cr_return_amount > 10000 AND cs.cs_net_profit > 1 AND cs.cs_net_paid > 0 AND cs.cs_quantity > 0 AND cs_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 12 GROUP BY cs.cs_item_sk ) in_cat ) catalog WHERE (catalog.return_rank <= 10 OR catalog.currency_rank <= 10) UNION SELECT 'store' AS channel, store.item, store.return_ratio, store.return_rank, store.currency_rank FROM ( SELECT item, return_ratio, currency_ratio, rank() OVER ( ORDER BY return_ratio) AS return_rank, rank() OVER ( ORDER BY currency_ratio) AS currency_rank FROM (SELECT sts.ss_item_sk AS item, (cast(sum(coalesce(sr.sr_return_quantity, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(sts.ss_quantity, 0)) AS DECIMAL(15, 4))) AS return_ratio, (cast(sum(coalesce(sr.sr_return_amt, 0)) AS DECIMAL(15, 4)) / cast(sum(coalesce(sts.ss_net_paid, 0)) AS DECIMAL(15, 4))) AS currency_ratio FROM store_sales sts LEFT OUTER JOIN store_returns sr ON (sts.ss_ticket_number = sr.sr_ticket_number AND sts.ss_item_sk = sr.sr_item_sk) , date_dim WHERE sr.sr_return_amt > 10000 AND sts.ss_net_profit > 1 AND sts.ss_net_paid > 0 AND sts.ss_quantity > 0 AND ss_sold_date_sk = d_date_sk AND d_year = 2001 AND d_moy = 12 GROUP BY sts.ss_item_sk ) in_store ) store WHERE (store.return_rank <= 10 OR store.currency_rank <= 10) ORDER BY -- order-by list of q49 in TPCDS v1.4 is below: -- 1, 4, 5 1, 4, 5, 2 LIMIT 100 WITH v1 AS ( SELECT i_category, i_brand, cc_name, d_year, d_moy, sum(cs_sales_price) sum_sales, avg(sum(cs_sales_price)) OVER (PARTITION BY i_category, i_brand, cc_name, d_year) avg_monthly_sales, rank() OVER (PARTITION BY i_category, i_brand, cc_name ORDER BY d_year, d_moy) rn FROM item, catalog_sales, date_dim, call_center WHERE cs_item_sk = i_item_sk AND cs_sold_date_sk = d_date_sk AND cc_call_center_sk = cs_call_center_sk AND ( d_year = 1999 OR (d_year = 1999 - 1 AND d_moy = 12) OR (d_year = 1999 + 1 AND d_moy = 1) ) GROUP BY i_category, i_brand, cc_name, d_year, d_moy), v2 AS ( SELECT v1.i_category, v1.i_brand, -- q57 in TPCDS v1.4 had a column below: -- v1.cc_name, v1.d_year, v1.d_moy, v1.avg_monthly_sales, v1.sum_sales, v1_lag.sum_sales psum, v1_lead.sum_sales nsum FROM v1, v1 v1_lag, v1 v1_lead WHERE v1.i_category = v1_lag.i_category AND v1.i_category = v1_lead.i_category AND v1.i_brand = v1_lag.i_brand AND v1.i_brand = v1_lead.i_brand AND v1.cc_name = v1_lag.cc_name AND v1.cc_name = v1_lead.cc_name AND v1.rn = v1_lag.rn + 1 AND v1.rn = v1_lead.rn - 1) SELECT * FROM v2 WHERE d_year = 1999 AND avg_monthly_sales > 0 AND CASE WHEN avg_monthly_sales > 0 THEN abs(sum_sales - avg_monthly_sales) / avg_monthly_sales ELSE NULL END > 0.1 ORDER BY sum_sales - avg_monthly_sales, 3 LIMIT 100 WITH v1 AS ( SELECT i_category, i_brand, s_store_name, s_company_name, d_year, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name, d_year) avg_monthly_sales, rank() OVER (PARTITION BY i_category, i_brand, s_store_name, s_company_name ORDER BY d_year, d_moy) rn FROM item, store_sales, date_dim, store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk AND ( d_year = 1999 OR (d_year = 1999 - 1 AND d_moy = 12) OR (d_year = 1999 + 1 AND d_moy = 1) ) GROUP BY i_category, i_brand, s_store_name, s_company_name, d_year, d_moy), v2 AS ( SELECT v1.i_category, -- q47 in TPCDS v1.4 had more columns below: -- v1.i_brand, -- v1.s_store_name, -- v1.s_company_name, v1.d_year, v1.d_moy, v1.avg_monthly_sales, v1.sum_sales, v1_lag.sum_sales psum, v1_lead.sum_sales nsum FROM v1, v1 v1_lag, v1 v1_lead WHERE v1.i_category = v1_lag.i_category AND v1.i_category = v1_lead.i_category AND v1.i_brand = v1_lag.i_brand AND v1.i_brand = v1_lead.i_brand AND v1.s_store_name = v1_lag.s_store_name AND v1.s_store_name = v1_lead.s_store_name AND v1.s_company_name = v1_lag.s_company_name AND v1.s_company_name = v1_lead.s_company_name AND v1.rn = v1_lag.rn + 1 AND v1.rn = v1_lead.rn - 1) SELECT * FROM v2 WHERE d_year = 1999 AND avg_monthly_sales > 0 AND CASE WHEN avg_monthly_sales > 0 THEN abs(sum_sales - avg_monthly_sales) / avg_monthly_sales ELSE NULL END > 0.1 ORDER BY sum_sales - avg_monthly_sales, 3 LIMIT 100 SELECT i_item_id, -- This column did not exist in TPCDS v1.4 i_item_desc, i_category, i_class, i_current_price, sum(ss_ext_sales_price) AS itemrevenue, sum(ss_ext_sales_price) * 100 / sum(sum(ss_ext_sales_price)) OVER (PARTITION BY i_class) AS revenueratio FROM store_sales, item, date_dim WHERE ss_item_sk = i_item_sk AND i_category IN ('Sports', 'Books', 'Home') AND ss_sold_date_sk = d_date_sk AND d_date BETWEEN cast('1999-02-22' AS DATE) AND (cast('1999-02-22' AS DATE) + INTERVAL 30 days) GROUP BY i_item_id, i_item_desc, i_category, i_class, i_current_price ORDER BY i_category, i_class, i_item_id, i_item_desc, revenueratio SELECT c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt FROM (SELECT ss_ticket_number, ss_customer_sk, count(*) cnt FROM store_sales, date_dim, store, household_demographics WHERE store_sales.ss_sold_date_sk = date_dim.d_date_sk AND store_sales.ss_store_sk = store.s_store_sk AND store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk AND (date_dim.d_dom BETWEEN 1 AND 3 OR date_dim.d_dom BETWEEN 25 AND 28) AND (household_demographics.hd_buy_potential = '>10000' OR household_demographics.hd_buy_potential = 'unknown') AND household_demographics.hd_vehicle_count > 0 AND (CASE WHEN household_demographics.hd_vehicle_count > 0 THEN household_demographics.hd_dep_count / household_demographics.hd_vehicle_count ELSE NULL END) > 1.2 AND date_dim.d_year IN (1999, 1999 + 1, 1999 + 2) AND store.s_county IN ('Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County', 'Williamson County') GROUP BY ss_ticket_number, ss_customer_sk) dn, customer WHERE ss_customer_sk = c_customer_sk AND cnt BETWEEN 15 AND 20 ORDER BY c_last_name, c_first_name, c_salutation, c_preferred_cust_flag DESC, ss_ticket_number -- This order-by condition did not exist in TPCDS v1.4 WITH ws AS (SELECT d_year AS ws_sold_year, ws_item_sk, ws_bill_customer_sk ws_customer_sk, sum(ws_quantity) ws_qty, sum(ws_wholesale_cost) ws_wc, sum(ws_sales_price) ws_sp FROM web_sales LEFT JOIN web_returns ON wr_order_number = ws_order_number AND ws_item_sk = wr_item_sk JOIN date_dim ON ws_sold_date_sk = d_date_sk WHERE wr_order_number IS NULL GROUP BY d_year, ws_item_sk, ws_bill_customer_sk ), cs AS (SELECT d_year AS cs_sold_year, cs_item_sk, cs_bill_customer_sk cs_customer_sk, sum(cs_quantity) cs_qty, sum(cs_wholesale_cost) cs_wc, sum(cs_sales_price) cs_sp FROM catalog_sales LEFT JOIN catalog_returns ON cr_order_number = cs_order_number AND cs_item_sk = cr_item_sk JOIN date_dim ON cs_sold_date_sk = d_date_sk WHERE cr_order_number IS NULL GROUP BY d_year, cs_item_sk, cs_bill_customer_sk ), ss AS (SELECT d_year AS ss_sold_year, ss_item_sk, ss_customer_sk, sum(ss_quantity) ss_qty, sum(ss_wholesale_cost) ss_wc, sum(ss_sales_price) ss_sp FROM store_sales LEFT JOIN store_returns ON sr_ticket_number = ss_ticket_number AND ss_item_sk = sr_item_sk JOIN date_dim ON ss_sold_date_sk = d_date_sk WHERE sr_ticket_number IS NULL GROUP BY d_year, ss_item_sk, ss_customer_sk ) SELECT round(ss_qty / (coalesce(ws_qty + cs_qty, 1)), 2) ratio, ss_qty store_qty, ss_wc store_wholesale_cost, ss_sp store_sales_price, coalesce(ws_qty, 0) + coalesce(cs_qty, 0) other_chan_qty, coalesce(ws_wc, 0) + coalesce(cs_wc, 0) other_chan_wholesale_cost, coalesce(ws_sp, 0) + coalesce(cs_sp, 0) other_chan_sales_price FROM ss LEFT JOIN ws ON (ws_sold_year = ss_sold_year AND ws_item_sk = ss_item_sk AND ws_customer_sk = ss_customer_sk) LEFT JOIN cs ON (cs_sold_year = ss_sold_year AND cs_item_sk = ss_item_sk AND cs_customer_sk = ss_customer_sk) WHERE coalesce(ws_qty, 0) > 0 AND coalesce(cs_qty, 0) > 0 AND ss_sold_year = 2000 ORDER BY -- order-by list of q78 in TPCDS v1.4 is below: -- ratio, -- ss_qty DESC, ss_wc DESC, ss_sp DESC, -- other_chan_qty, -- other_chan_wholesale_cost, -- other_chan_sales_price, -- round(ss_qty / (coalesce(ws_qty + cs_qty, 1)), 2) ss_sold_year, ss_item_sk, ss_customer_sk, ss_qty desc, ss_wc desc, ss_sp desc, other_chan_qty, other_chan_wholesale_cost, other_chan_sales_price, ratio LIMIT 100 -- This is a new query in TPCDS v2.7 with results as ( select i_item_id, s_state, 0 as g_state, ss_quantity agg1, ss_list_price agg2, ss_coupon_amt agg3, ss_sales_price agg4 from store_sales, customer_demographics, date_dim, store, item where ss_sold_date_sk = d_date_sk and ss_item_sk = i_item_sk and ss_store_sk = s_store_sk and ss_cdemo_sk = cd_demo_sk and cd_gender = 'F' and cd_marital_status = 'W' and cd_education_status = 'Primary' and d_year = 1998 and s_state in ('TN','TN', 'TN', 'TN', 'TN', 'TN')) select i_item_id, s_state, g_state, agg1, agg2, agg3, agg4 from ( select i_item_id, s_state, 0 as g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results group by i_item_id, s_state union all select i_item_id, NULL AS s_state, 1 AS g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results group by i_item_id union all select NULL AS i_item_id, NULL as s_state, 1 as g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results) foo order by i_item_id, s_state limit 100 -- This is a new query in TPCDS v2.7 select ca_state, cd_gender, cd_marital_status, cd_dep_count, count(*) cnt1, avg(cd_dep_count), max(cd_dep_count), sum(cd_dep_count), cd_dep_employed_count, count(*) cnt2, avg(cd_dep_employed_count), max(cd_dep_employed_count), sum(cd_dep_employed_count), cd_dep_college_count, count(*) cnt3, avg(cd_dep_college_count), max(cd_dep_college_count), sum(cd_dep_college_count) from customer c, customer_address ca, customer_demographics where c.c_current_addr_sk = ca.ca_address_sk and cd_demo_sk = c.c_current_cdemo_sk and exists ( select * from store_sales, date_dim where c.c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk and d_year = 1999 and d_qoy < 4) and exists ( select * from ( select ws_bill_customer_sk customsk from web_sales, date_dim where ws_sold_date_sk = d_date_sk and d_year = 1999 and d_qoy < 4 union all select cs_ship_customer_sk customsk from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_year = 1999 and d_qoy < 4) x where x.customsk = c.c_customer_sk) group by ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count order by ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count limit 100 -- This is a new query in TPCDS v2.7 with results as ( select i_item_id, ca_country, ca_state, ca_county, cast(cs_quantity as decimal(12,2)) agg1, cast(cs_list_price as decimal(12,2)) agg2, cast(cs_coupon_amt as decimal(12,2)) agg3, cast(cs_sales_price as decimal(12,2)) agg4, cast(cs_net_profit as decimal(12,2)) agg5, cast(c_birth_year as decimal(12,2)) agg6, cast(cd1.cd_dep_count as decimal(12,2)) agg7 from catalog_sales, customer_demographics cd1, customer_demographics cd2, customer, customer_address, date_dim, item where cs_sold_date_sk = d_date_sk and cs_item_sk = i_item_sk and cs_bill_cdemo_sk = cd1.cd_demo_sk and cs_bill_customer_sk = c_customer_sk and cd1.cd_gender = 'M' and cd1.cd_education_status = 'College' and c_current_cdemo_sk = cd2.cd_demo_sk and c_current_addr_sk = ca_address_sk and c_birth_month in (9,5,12,4,1,10) and d_year = 2001 and ca_state in ('ND','WI','AL','NC','OK','MS','TN')) select i_item_id, ca_country, ca_state, ca_county, agg1, agg2, agg3, agg4, agg5, agg6, agg7 from ( select i_item_id, ca_country, ca_state, ca_county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id, ca_country, ca_state, ca_county union all select i_item_id, ca_country, ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id, ca_country, ca_state union all select i_item_id, ca_country, NULL as ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id, ca_country union all select i_item_id, NULL as ca_country, NULL as ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id union all select NULL AS i_item_id, NULL as ca_country, NULL as ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results) foo order by ca_country, ca_state, ca_county, i_item_id limit 100 -- This is a new query in TPCDS v2.7 WITH web_tv as ( select ws_item_sk item_sk, d_date, sum(ws_sales_price) sumws, row_number() over (partition by ws_item_sk order by d_date) rk from web_sales, date_dim where ws_sold_date_sk=d_date_sk and d_month_seq between 1212 and 1212 + 11 and ws_item_sk is not NULL group by ws_item_sk, d_date), web_v1 as ( select v1.item_sk, v1.d_date, v1.sumws, sum(v2.sumws) cume_sales from web_tv v1, web_tv v2 where v1.item_sk = v2.item_sk and v1.rk >= v2.rk group by v1.item_sk, v1.d_date, v1.sumws), store_tv as ( select ss_item_sk item_sk, d_date, sum(ss_sales_price) sumss, row_number() over (partition by ss_item_sk order by d_date) rk from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_month_seq between 1212 and 1212 + 11 and ss_item_sk is not NULL group by ss_item_sk, d_date), store_v1 as ( select v1.item_sk, v1.d_date, v1.sumss, sum(v2.sumss) cume_sales from store_tv v1, store_tv v2 where v1.item_sk = v2.item_sk and v1.rk >= v2.rk group by v1.item_sk, v1.d_date, v1.sumss), v as ( select item_sk, d_date, web_sales, store_sales, row_number() over (partition by item_sk order by d_date) rk from ( select case when web.item_sk is not null then web.item_sk else store.item_sk end item_sk, case when web.d_date is not null then web.d_date else store.d_date end d_date, web.cume_sales web_sales, store.cume_sales store_sales from web_v1 web full outer join store_v1 store on (web.item_sk = store.item_sk and web.d_date = store.d_date))) select * from ( select v1.item_sk, v1.d_date, v1.web_sales, v1.store_sales, max(v2.web_sales) web_cumulative, max(v2.store_sales) store_cumulative from v v1, v v2 where v1.item_sk = v2.item_sk and v1.rk >= v2.rk group by v1.item_sk, v1.d_date, v1.web_sales, v1.store_sales) x where web_cumulative > store_cumulative order by item_sk, d_date limit 100 WITH year_total AS ( SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, d_year AS year, sum(ss_net_paid) year_total, 's' sale_type FROM customer, store_sales, date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND d_year IN (2001, 2001 + 1) GROUP BY c_customer_id, c_first_name, c_last_name, d_year UNION ALL SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, d_year AS year, sum(ws_net_paid) year_total, 'w' sale_type FROM customer, web_sales, date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk AND d_year IN (2001, 2001 + 1) GROUP BY c_customer_id, c_first_name, c_last_name, d_year) SELECT t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name FROM year_total t_s_firstyear, year_total t_s_secyear, year_total t_w_firstyear, year_total t_w_secyear WHERE t_s_secyear.customer_id = t_s_firstyear.customer_id AND t_s_firstyear.customer_id = t_w_secyear.customer_id AND t_s_firstyear.customer_id = t_w_firstyear.customer_id AND t_s_firstyear.sale_type = 's' AND t_w_firstyear.sale_type = 'w' AND t_s_secyear.sale_type = 's' AND t_w_secyear.sale_type = 'w' AND t_s_firstyear.year = 2001 AND t_s_secyear.year = 2001 + 1 AND t_w_firstyear.year = 2001 AND t_w_secyear.year = 2001 + 1 AND t_s_firstyear.year_total > 0 AND t_w_firstyear.year_total > 0 AND CASE WHEN t_w_firstyear.year_total > 0 THEN t_w_secyear.year_total / t_w_firstyear.year_total ELSE NULL END > CASE WHEN t_s_firstyear.year_total > 0 THEN t_s_secyear.year_total / t_s_firstyear.year_total ELSE NULL END -- order-by list of q74 in TPCDS v1.4 is below: -- ORDER BY 1, 1, 1 ORDER BY 2, 1, 3 LIMIT 100 WITH year_total AS ( SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, c_preferred_cust_flag customer_preferred_cust_flag, c_birth_country customer_birth_country, c_login customer_login, c_email_address customer_email_address, d_year dyear, sum(ss_ext_list_price - ss_ext_discount_amt) year_total, 's' sale_type FROM customer, store_sales, date_dim WHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk GROUP BY c_customer_id , c_first_name , c_last_name , d_year , c_preferred_cust_flag , c_birth_country , c_login , c_email_address , d_year UNION ALL SELECT c_customer_id customer_id, c_first_name customer_first_name, c_last_name customer_last_name, c_preferred_cust_flag customer_preferred_cust_flag, c_birth_country customer_birth_country, c_login customer_login, c_email_address customer_email_address, d_year dyear, sum(ws_ext_list_price - ws_ext_discount_amt) year_total, 'w' sale_type FROM customer, web_sales, date_dim WHERE c_customer_sk = ws_bill_customer_sk AND ws_sold_date_sk = d_date_sk GROUP BY c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year) SELECT -- select list of q11 in TPCDS v1.4 is below: -- t_s_secyear.customer_preferred_cust_flag t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name, t_s_secyear.customer_email_address FROM year_total t_s_firstyear , year_total t_s_secyear , year_total t_w_firstyear , year_total t_w_secyear WHERE t_s_secyear.customer_id = t_s_firstyear.customer_id AND t_s_firstyear.customer_id = t_w_secyear.customer_id AND t_s_firstyear.customer_id = t_w_firstyear.customer_id AND t_s_firstyear.sale_type = 's' AND t_w_firstyear.sale_type = 'w' AND t_s_secyear.sale_type = 's' AND t_w_secyear.sale_type = 'w' AND t_s_firstyear.dyear = 2001 AND t_s_secyear.dyear = 2001 + 1 AND t_w_firstyear.dyear = 2001 AND t_w_secyear.dyear = 2001 + 1 AND t_s_firstyear.year_total > 0 AND t_w_firstyear.year_total > 0 AND CASE WHEN t_w_firstyear.year_total > 0 THEN t_w_secyear.year_total / t_w_firstyear.year_total -- q11 in TPCDS v1.4 used NULL -- ELSE NULL END ELSE 0.0 END > CASE WHEN t_s_firstyear.year_total > 0 THEN t_s_secyear.year_total / t_s_firstyear.year_total -- q11 in TPCDS v1.4 used NULL -- ELSE NULL END ELSE 0.0 END ORDER BY -- order-by list of q11 in TPCDS v1.4 is below: -- t_s_secyear.customer_preferred_cust_flag t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name, t_s_secyear.customer_email_address LIMIT 100 -- This is a new query in TPCDS v2.7 select cd_gender, cd_marital_status, cd_education_status, count(*) cnt1, cd_purchase_estimate, count(*) cnt2, cd_credit_rating, count(*) cnt3, cd_dep_count, count(*) cnt4, cd_dep_employed_count, count(*) cnt5, cd_dep_college_count, count(*) cnt6 from customer c,customer_address ca,customer_demographics where c.c_current_addr_sk = ca.ca_address_sk and ca_county in ('Walker County', 'Richland County', 'Gaines County', 'Douglas County', 'Dona Ana County') and cd_demo_sk = c.c_current_cdemo_sk and exists ( select * from store_sales,date_dim where c.c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4 + 3) and exists ( select * from ( select ws_bill_customer_sk as customer_sk, d_year, d_moy from web_sales, date_dim where ws_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4 + 3 union all select cs_ship_customer_sk as customer_sk, d_year, d_moy from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4 + 3) x where c.c_customer_sk = customer_sk) group by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count order by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count limit 100 -- start query 10 in stream 0 using template query10.tpl with v1 as ( select ws_bill_customer_sk as customer_sk from web_sales, date_dim where ws_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4+3 union all select cs_ship_customer_sk as customer_sk from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4+3 ), v2 as ( select ss_customer_sk as customer_sk from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 4 and 4+3 ) select cd_gender, cd_marital_status, cd_education_status, count(*) cnt1, cd_purchase_estimate, count(*) cnt2, cd_credit_rating, count(*) cnt3, cd_dep_count, count(*) cnt4, cd_dep_employed_count, count(*) cnt5, cd_dep_college_count, count(*) cnt6 from customer c join customer_address ca on (c.c_current_addr_sk = ca.ca_address_sk) join customer_demographics on (cd_demo_sk = c.c_current_cdemo_sk) left semi join v1 on (v1.customer_sk = c.c_customer_sk) left semi join v2 on (v2.customer_sk = c.c_customer_sk) where ca_county in ('Walker County','Richland County','Gaines County','Douglas County','Dona Ana County') group by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count order by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count limit 100 -- end query 10 in stream 0 using template query10.tpl -- start query 55 in stream 0 using template query55.tpl select i_brand_id brand_id, i_brand brand, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item where d_date_sk = ss_sold_date_sk and ss_item_sk = i_item_sk and i_manager_id = 48 and d_moy = 11 and d_year = 2001 and ss_sold_date_sk between 2452215 and 2452244 group by i_brand, i_brand_id order by ext_price desc, i_brand_id limit 100 -- end query 55 in stream 0 using template query55.tpl -- start query 7 in stream 0 using template query7.tpl select i_item_id, avg(ss_quantity) agg1, avg(ss_list_price) agg2, avg(ss_coupon_amt) agg3, avg(ss_sales_price) agg4 from store_sales, customer_demographics, date_dim, item, promotion where ss_sold_date_sk = d_date_sk and ss_item_sk = i_item_sk and ss_cdemo_sk = cd_demo_sk and ss_promo_sk = p_promo_sk and cd_gender = 'F' and cd_marital_status = 'W' and cd_education_status = 'Primary' and (p_channel_email = 'N' or p_channel_event = 'N') and d_year = 1998 and ss_sold_date_sk between 2450815 and 2451179 -- partition key filter group by i_item_id order by i_item_id limit 100 -- end query 7 in stream 0 using template query7.tpl -- start query 27 in stream 0 using template query27.tpl with results as (select i_item_id, s_state, ss_quantity agg1, ss_list_price agg2, ss_coupon_amt agg3, ss_sales_price agg4 --0 as g_state, --avg(ss_quantity) agg1, --avg(ss_list_price) agg2, --avg(ss_coupon_amt) agg3, --avg(ss_sales_price) agg4 from store_sales, customer_demographics, date_dim, store, item where ss_sold_date_sk = d_date_sk and ss_sold_date_sk between 2451545 and 2451910 and ss_item_sk = i_item_sk and ss_store_sk = s_store_sk and ss_cdemo_sk = cd_demo_sk and cd_gender = 'F' and cd_marital_status = 'D' and cd_education_status = 'Primary' and d_year = 2000 and s_state in ('TN','AL', 'SD', 'SD', 'SD', 'SD') --group by i_item_id, s_state ) select i_item_id, s_state, g_state, agg1, agg2, agg3, agg4 from ( select i_item_id, s_state, 0 as g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results group by i_item_id, s_state union all select i_item_id, NULL AS s_state, 1 AS g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results group by i_item_id union all select NULL AS i_item_id, NULL as s_state, 1 as g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results ) foo order by i_item_id, s_state limit 100 -- end query 27 in stream 0 using template query27.tpl -- start query 42 in stream 0 using template query42.tpl select dt.d_year, item.i_category_id, item.i_category, sum(ss_ext_sales_price) from date_dim dt, store_sales, item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manager_id = 1 and dt.d_moy = 12 and dt.d_year = 1998 and ss_sold_date_sk between 2451149 and 2451179 -- partition key filter group by dt.d_year, item.i_category_id, item.i_category order by sum(ss_ext_sales_price) desc, dt.d_year, item.i_category_id, item.i_category limit 100 -- end query 42 in stream 0 using template query42.tpl -- start query 59 in stream 0 using template query59.tpl with wss as (select d_week_seq, ss_store_sk, sum(case when (d_day_name = 'Sunday') then ss_sales_price else null end) sun_sales, sum(case when (d_day_name = 'Monday') then ss_sales_price else null end) mon_sales, sum(case when (d_day_name = 'Tuesday') then ss_sales_price else null end) tue_sales, sum(case when (d_day_name = 'Wednesday') then ss_sales_price else null end) wed_sales, sum(case when (d_day_name = 'Thursday') then ss_sales_price else null end) thu_sales, sum(case when (d_day_name = 'Friday') then ss_sales_price else null end) fri_sales, sum(case when (d_day_name = 'Saturday') then ss_sales_price else null end) sat_sales from store_sales, date_dim where d_date_sk = ss_sold_date_sk group by d_week_seq, ss_store_sk ) select s_store_name1, s_store_id1, d_week_seq1, sun_sales1 / sun_sales2, mon_sales1 / mon_sales2, tue_sales1 / tue_sales1, wed_sales1 / wed_sales2, thu_sales1 / thu_sales2, fri_sales1 / fri_sales2, sat_sales1 / sat_sales2 from (select s_store_name s_store_name1, wss.d_week_seq d_week_seq1, s_store_id s_store_id1, sun_sales sun_sales1, mon_sales mon_sales1, tue_sales tue_sales1, wed_sales wed_sales1, thu_sales thu_sales1, fri_sales fri_sales1, sat_sales sat_sales1 from wss, store, date_dim d where d.d_week_seq = wss.d_week_seq and ss_store_sk = s_store_sk and d_month_seq between 1185 and 1185 + 11 ) y, (select s_store_name s_store_name2, wss.d_week_seq d_week_seq2, s_store_id s_store_id2, sun_sales sun_sales2, mon_sales mon_sales2, tue_sales tue_sales2, wed_sales wed_sales2, thu_sales thu_sales2, fri_sales fri_sales2, sat_sales sat_sales2 from wss, store, date_dim d where d.d_week_seq = wss.d_week_seq and ss_store_sk = s_store_sk and d_month_seq between 1185 + 12 and 1185 + 23 ) x where s_store_id1 = s_store_id2 and d_week_seq1 = d_week_seq2 - 52 order by s_store_name1, s_store_id1, d_week_seq1 limit 100 -- end query 59 in stream 0 using template query59.tpl -- start query 43 in stream 0 using template query43.tpl select s_store_name, s_store_id, sum(case when (d_day_name = 'Sunday') then ss_sales_price else null end) sun_sales, sum(case when (d_day_name = 'Monday') then ss_sales_price else null end) mon_sales, sum(case when (d_day_name = 'Tuesday') then ss_sales_price else null end) tue_sales, sum(case when (d_day_name = 'Wednesday') then ss_sales_price else null end) wed_sales, sum(case when (d_day_name = 'Thursday') then ss_sales_price else null end) thu_sales, sum(case when (d_day_name = 'Friday') then ss_sales_price else null end) fri_sales, sum(case when (d_day_name = 'Saturday') then ss_sales_price else null end) sat_sales from date_dim, store_sales, store where d_date_sk = ss_sold_date_sk and s_store_sk = ss_store_sk and s_gmt_offset = -5 and d_year = 1998 and ss_sold_date_sk between 2450816 and 2451179 -- partition key filter group by s_store_name, s_store_id order by s_store_name, s_store_id, sun_sales, mon_sales, tue_sales, wed_sales, thu_sales, fri_sales, sat_sales limit 100 -- end query 43 in stream 0 using template query43.tpl -- start query 46 in stream 0 using template query46.tpl select c_last_name, c_first_name, ca_city, bought_city, ss_ticket_number, amt, profit from (select ss_ticket_number, ss_customer_sk, ca_city bought_city, sum(ss_coupon_amt) amt, sum(ss_net_profit) profit from store_sales, date_dim, store, household_demographics, customer_address where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and store_sales.ss_addr_sk = customer_address.ca_address_sk and (household_demographics.hd_dep_count = 5 or household_demographics.hd_vehicle_count = 3) and date_dim.d_dow in (6, 0) and date_dim.d_year in (1999, 1999 + 1, 1999 + 2) and store.s_city in ('Midway', 'Concord', 'Spring Hill', 'Brownsville', 'Greenville') -- partition key filter and ss_sold_date_sk in (2451181, 2451182, 2451188, 2451189, 2451195, 2451196, 2451202, 2451203, 2451209, 2451210, 2451216, 2451217, 2451223, 2451224, 2451230, 2451231, 2451237, 2451238, 2451244, 2451245, 2451251, 2451252, 2451258, 2451259, 2451265, 2451266, 2451272, 2451273, 2451279, 2451280, 2451286, 2451287, 2451293, 2451294, 2451300, 2451301, 2451307, 2451308, 2451314, 2451315, 2451321, 2451322, 2451328, 2451329, 2451335, 2451336, 2451342, 2451343, 2451349, 2451350, 2451356, 2451357, 2451363, 2451364, 2451370, 2451371, 2451377, 2451378, 2451384, 2451385, 2451391, 2451392, 2451398, 2451399, 2451405, 2451406, 2451412, 2451413, 2451419, 2451420, 2451426, 2451427, 2451433, 2451434, 2451440, 2451441, 2451447, 2451448, 2451454, 2451455, 2451461, 2451462, 2451468, 2451469, 2451475, 2451476, 2451482, 2451483, 2451489, 2451490, 2451496, 2451497, 2451503, 2451504, 2451510, 2451511, 2451517, 2451518, 2451524, 2451525, 2451531, 2451532, 2451538, 2451539, 2451545, 2451546, 2451552, 2451553, 2451559, 2451560, 2451566, 2451567, 2451573, 2451574, 2451580, 2451581, 2451587, 2451588, 2451594, 2451595, 2451601, 2451602, 2451608, 2451609, 2451615, 2451616, 2451622, 2451623, 2451629, 2451630, 2451636, 2451637, 2451643, 2451644, 2451650, 2451651, 2451657, 2451658, 2451664, 2451665, 2451671, 2451672, 2451678, 2451679, 2451685, 2451686, 2451692, 2451693, 2451699, 2451700, 2451706, 2451707, 2451713, 2451714, 2451720, 2451721, 2451727, 2451728, 2451734, 2451735, 2451741, 2451742, 2451748, 2451749, 2451755, 2451756, 2451762, 2451763, 2451769, 2451770, 2451776, 2451777, 2451783, 2451784, 2451790, 2451791, 2451797, 2451798, 2451804, 2451805, 2451811, 2451812, 2451818, 2451819, 2451825, 2451826, 2451832, 2451833, 2451839, 2451840, 2451846, 2451847, 2451853, 2451854, 2451860, 2451861, 2451867, 2451868, 2451874, 2451875, 2451881, 2451882, 2451888, 2451889, 2451895, 2451896, 2451902, 2451903, 2451909, 2451910, 2451916, 2451917, 2451923, 2451924, 2451930, 2451931, 2451937, 2451938, 2451944, 2451945, 2451951, 2451952, 2451958, 2451959, 2451965, 2451966, 2451972, 2451973, 2451979, 2451980, 2451986, 2451987, 2451993, 2451994, 2452000, 2452001, 2452007, 2452008, 2452014, 2452015, 2452021, 2452022, 2452028, 2452029, 2452035, 2452036, 2452042, 2452043, 2452049, 2452050, 2452056, 2452057, 2452063, 2452064, 2452070, 2452071, 2452077, 2452078, 2452084, 2452085, 2452091, 2452092, 2452098, 2452099, 2452105, 2452106, 2452112, 2452113, 2452119, 2452120, 2452126, 2452127, 2452133, 2452134, 2452140, 2452141, 2452147, 2452148, 2452154, 2452155, 2452161, 2452162, 2452168, 2452169, 2452175, 2452176, 2452182, 2452183, 2452189, 2452190, 2452196, 2452197, 2452203, 2452204, 2452210, 2452211, 2452217, 2452218, 2452224, 2452225, 2452231, 2452232, 2452238, 2452239, 2452245, 2452246, 2452252, 2452253, 2452259, 2452260, 2452266, 2452267, 2452273, 2452274) group by ss_ticket_number, ss_customer_sk, ss_addr_sk, ca_city ) dn, customer, customer_address current_addr where ss_customer_sk = c_customer_sk and customer.c_current_addr_sk = current_addr.ca_address_sk and current_addr.ca_city <> bought_city order by c_last_name, c_first_name, ca_city, bought_city, ss_ticket_number limit 100 -- end query 46 in stream 0 using template query46.tpl -- start query 53 in stream 0 using template query53.tpl select * from (select i_manufact_id, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) over (partition by i_manufact_id) avg_quarterly_sales from item, store_sales, date_dim, store where ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and d_month_seq in (1212, 1212 + 1, 1212 + 2, 1212 + 3, 1212 + 4, 1212 + 5, 1212 + 6, 1212 + 7, 1212 + 8, 1212 + 9, 1212 + 10, 1212 + 11) and ((i_category in ('Books', 'Children', 'Electronics') and i_class in ('personal', 'portable', 'reference', 'self-help') and i_brand in ('scholaramalgamalg #14', 'scholaramalgamalg #7', 'exportiunivamalg #9', 'scholaramalgamalg #9')) or (i_category in ('Women', 'Music', 'Men') and i_class in ('accessories', 'classical', 'fragrances', 'pants') and i_brand in ('amalgimporto #1', 'edu packscholar #1', 'exportiimporto #1', 'importoamalg #1'))) and ss_sold_date_sk between 2451911 and 2452275 -- partition key filter group by i_manufact_id, d_qoy ) tmp1 where case when avg_quarterly_sales > 0 then abs (sum_sales - avg_quarterly_sales) / avg_quarterly_sales else null end > 0.1 order by avg_quarterly_sales, sum_sales, i_manufact_id limit 100 -- end query 53 in stream 0 using template query53.tpl -- start query 65 in stream 0 using template query65.tpl select s_store_name, i_item_desc, sc.revenue, i_current_price, i_wholesale_cost, i_brand from store, item, (select ss_store_sk, avg(revenue) as ave from (select ss_store_sk, ss_item_sk, sum(ss_sales_price) as revenue from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_month_seq between 1212 and 1212 + 11 and ss_sold_date_sk between 2451911 and 2452275 -- partition key filter group by ss_store_sk, ss_item_sk ) sa group by ss_store_sk ) sb, (select ss_store_sk, ss_item_sk, sum(ss_sales_price) as revenue from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_month_seq between 1212 and 1212 + 11 and ss_sold_date_sk between 2451911 and 2452275 -- partition key filter group by ss_store_sk, ss_item_sk ) sc where sb.ss_store_sk = sc.ss_store_sk and sc.revenue <= 0.1 * sb.ave and s_store_sk = sc.ss_store_sk and i_item_sk = sc.ss_item_sk order by s_store_name, i_item_desc limit 100 -- end query 65 in stream 0 using template query65.tpl -- start query 3 in stream 0 using template query3.tpl select dt.d_year, item.i_brand_id brand_id, item.i_brand brand, sum(ss_net_profit) sum_agg from date_dim dt, store_sales, item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manufact_id = 436 and dt.d_moy = 12 -- partition key filters and ( ss_sold_date_sk between 2415355 and 2415385 or ss_sold_date_sk between 2415720 and 2415750 or ss_sold_date_sk between 2416085 and 2416115 or ss_sold_date_sk between 2416450 and 2416480 or ss_sold_date_sk between 2416816 and 2416846 or ss_sold_date_sk between 2417181 and 2417211 or ss_sold_date_sk between 2417546 and 2417576 or ss_sold_date_sk between 2417911 and 2417941 or ss_sold_date_sk between 2418277 and 2418307 or ss_sold_date_sk between 2418642 and 2418672 or ss_sold_date_sk between 2419007 and 2419037 or ss_sold_date_sk between 2419372 and 2419402 or ss_sold_date_sk between 2419738 and 2419768 or ss_sold_date_sk between 2420103 and 2420133 or ss_sold_date_sk between 2420468 and 2420498 or ss_sold_date_sk between 2420833 and 2420863 or ss_sold_date_sk between 2421199 and 2421229 or ss_sold_date_sk between 2421564 and 2421594 or ss_sold_date_sk between 2421929 and 2421959 or ss_sold_date_sk between 2422294 and 2422324 or ss_sold_date_sk between 2422660 and 2422690 or ss_sold_date_sk between 2423025 and 2423055 or ss_sold_date_sk between 2423390 and 2423420 or ss_sold_date_sk between 2423755 and 2423785 or ss_sold_date_sk between 2424121 and 2424151 or ss_sold_date_sk between 2424486 and 2424516 or ss_sold_date_sk between 2424851 and 2424881 or ss_sold_date_sk between 2425216 and 2425246 or ss_sold_date_sk between 2425582 and 2425612 or ss_sold_date_sk between 2425947 and 2425977 or ss_sold_date_sk between 2426312 and 2426342 or ss_sold_date_sk between 2426677 and 2426707 or ss_sold_date_sk between 2427043 and 2427073 or ss_sold_date_sk between 2427408 and 2427438 or ss_sold_date_sk between 2427773 and 2427803 or ss_sold_date_sk between 2428138 and 2428168 or ss_sold_date_sk between 2428504 and 2428534 or ss_sold_date_sk between 2428869 and 2428899 or ss_sold_date_sk between 2429234 and 2429264 or ss_sold_date_sk between 2429599 and 2429629 or ss_sold_date_sk between 2429965 and 2429995 or ss_sold_date_sk between 2430330 and 2430360 or ss_sold_date_sk between 2430695 and 2430725 or ss_sold_date_sk between 2431060 and 2431090 or ss_sold_date_sk between 2431426 and 2431456 or ss_sold_date_sk between 2431791 and 2431821 or ss_sold_date_sk between 2432156 and 2432186 or ss_sold_date_sk between 2432521 and 2432551 or ss_sold_date_sk between 2432887 and 2432917 or ss_sold_date_sk between 2433252 and 2433282 or ss_sold_date_sk between 2433617 and 2433647 or ss_sold_date_sk between 2433982 and 2434012 or ss_sold_date_sk between 2434348 and 2434378 or ss_sold_date_sk between 2434713 and 2434743 or ss_sold_date_sk between 2435078 and 2435108 or ss_sold_date_sk between 2435443 and 2435473 or ss_sold_date_sk between 2435809 and 2435839 or ss_sold_date_sk between 2436174 and 2436204 or ss_sold_date_sk between 2436539 and 2436569 or ss_sold_date_sk between 2436904 and 2436934 or ss_sold_date_sk between 2437270 and 2437300 or ss_sold_date_sk between 2437635 and 2437665 or ss_sold_date_sk between 2438000 and 2438030 or ss_sold_date_sk between 2438365 and 2438395 or ss_sold_date_sk between 2438731 and 2438761 or ss_sold_date_sk between 2439096 and 2439126 or ss_sold_date_sk between 2439461 and 2439491 or ss_sold_date_sk between 2439826 and 2439856 or ss_sold_date_sk between 2440192 and 2440222 or ss_sold_date_sk between 2440557 and 2440587 or ss_sold_date_sk between 2440922 and 2440952 or ss_sold_date_sk between 2441287 and 2441317 or ss_sold_date_sk between 2441653 and 2441683 or ss_sold_date_sk between 2442018 and 2442048 or ss_sold_date_sk between 2442383 and 2442413 or ss_sold_date_sk between 2442748 and 2442778 or ss_sold_date_sk between 2443114 and 2443144 or ss_sold_date_sk between 2443479 and 2443509 or ss_sold_date_sk between 2443844 and 2443874 or ss_sold_date_sk between 2444209 and 2444239 or ss_sold_date_sk between 2444575 and 2444605 or ss_sold_date_sk between 2444940 and 2444970 or ss_sold_date_sk between 2445305 and 2445335 or ss_sold_date_sk between 2445670 and 2445700 or ss_sold_date_sk between 2446036 and 2446066 or ss_sold_date_sk between 2446401 and 2446431 or ss_sold_date_sk between 2446766 and 2446796 or ss_sold_date_sk between 2447131 and 2447161 or ss_sold_date_sk between 2447497 and 2447527 or ss_sold_date_sk between 2447862 and 2447892 or ss_sold_date_sk between 2448227 and 2448257 or ss_sold_date_sk between 2448592 and 2448622 or ss_sold_date_sk between 2448958 and 2448988 or ss_sold_date_sk between 2449323 and 2449353 or ss_sold_date_sk between 2449688 and 2449718 or ss_sold_date_sk between 2450053 and 2450083 or ss_sold_date_sk between 2450419 and 2450449 or ss_sold_date_sk between 2450784 and 2450814 or ss_sold_date_sk between 2451149 and 2451179 or ss_sold_date_sk between 2451514 and 2451544 or ss_sold_date_sk between 2451880 and 2451910 or ss_sold_date_sk between 2452245 and 2452275 or ss_sold_date_sk between 2452610 and 2452640 or ss_sold_date_sk between 2452975 and 2453005 or ss_sold_date_sk between 2453341 and 2453371 or ss_sold_date_sk between 2453706 and 2453736 or ss_sold_date_sk between 2454071 and 2454101 or ss_sold_date_sk between 2454436 and 2454466 or ss_sold_date_sk between 2454802 and 2454832 or ss_sold_date_sk between 2455167 and 2455197 or ss_sold_date_sk between 2455532 and 2455562 or ss_sold_date_sk between 2455897 and 2455927 or ss_sold_date_sk between 2456263 and 2456293 or ss_sold_date_sk between 2456628 and 2456658 or ss_sold_date_sk between 2456993 and 2457023 or ss_sold_date_sk between 2457358 and 2457388 or ss_sold_date_sk between 2457724 and 2457754 or ss_sold_date_sk between 2458089 and 2458119 or ss_sold_date_sk between 2458454 and 2458484 or ss_sold_date_sk between 2458819 and 2458849 or ss_sold_date_sk between 2459185 and 2459215 or ss_sold_date_sk between 2459550 and 2459580 or ss_sold_date_sk between 2459915 and 2459945 or ss_sold_date_sk between 2460280 and 2460310 or ss_sold_date_sk between 2460646 and 2460676 or ss_sold_date_sk between 2461011 and 2461041 or ss_sold_date_sk between 2461376 and 2461406 or ss_sold_date_sk between 2461741 and 2461771 or ss_sold_date_sk between 2462107 and 2462137 or ss_sold_date_sk between 2462472 and 2462502 or ss_sold_date_sk between 2462837 and 2462867 or ss_sold_date_sk between 2463202 and 2463232 or ss_sold_date_sk between 2463568 and 2463598 or ss_sold_date_sk between 2463933 and 2463963 or ss_sold_date_sk between 2464298 and 2464328 or ss_sold_date_sk between 2464663 and 2464693 or ss_sold_date_sk between 2465029 and 2465059 or ss_sold_date_sk between 2465394 and 2465424 or ss_sold_date_sk between 2465759 and 2465789 or ss_sold_date_sk between 2466124 and 2466154 or ss_sold_date_sk between 2466490 and 2466520 or ss_sold_date_sk between 2466855 and 2466885 or ss_sold_date_sk between 2467220 and 2467250 or ss_sold_date_sk between 2467585 and 2467615 or ss_sold_date_sk between 2467951 and 2467981 or ss_sold_date_sk between 2468316 and 2468346 or ss_sold_date_sk between 2468681 and 2468711 or ss_sold_date_sk between 2469046 and 2469076 or ss_sold_date_sk between 2469412 and 2469442 or ss_sold_date_sk between 2469777 and 2469807 or ss_sold_date_sk between 2470142 and 2470172 or ss_sold_date_sk between 2470507 and 2470537 or ss_sold_date_sk between 2470873 and 2470903 or ss_sold_date_sk between 2471238 and 2471268 or ss_sold_date_sk between 2471603 and 2471633 or ss_sold_date_sk between 2471968 and 2471998 or ss_sold_date_sk between 2472334 and 2472364 or ss_sold_date_sk between 2472699 and 2472729 or ss_sold_date_sk between 2473064 and 2473094 or ss_sold_date_sk between 2473429 and 2473459 or ss_sold_date_sk between 2473795 and 2473825 or ss_sold_date_sk between 2474160 and 2474190 or ss_sold_date_sk between 2474525 and 2474555 or ss_sold_date_sk between 2474890 and 2474920 or ss_sold_date_sk between 2475256 and 2475286 or ss_sold_date_sk between 2475621 and 2475651 or ss_sold_date_sk between 2475986 and 2476016 or ss_sold_date_sk between 2476351 and 2476381 or ss_sold_date_sk between 2476717 and 2476747 or ss_sold_date_sk between 2477082 and 2477112 or ss_sold_date_sk between 2477447 and 2477477 or ss_sold_date_sk between 2477812 and 2477842 or ss_sold_date_sk between 2478178 and 2478208 or ss_sold_date_sk between 2478543 and 2478573 or ss_sold_date_sk between 2478908 and 2478938 or ss_sold_date_sk between 2479273 and 2479303 or ss_sold_date_sk between 2479639 and 2479669 or ss_sold_date_sk between 2480004 and 2480034 or ss_sold_date_sk between 2480369 and 2480399 or ss_sold_date_sk between 2480734 and 2480764 or ss_sold_date_sk between 2481100 and 2481130 or ss_sold_date_sk between 2481465 and 2481495 or ss_sold_date_sk between 2481830 and 2481860 or ss_sold_date_sk between 2482195 and 2482225 or ss_sold_date_sk between 2482561 and 2482591 or ss_sold_date_sk between 2482926 and 2482956 or ss_sold_date_sk between 2483291 and 2483321 or ss_sold_date_sk between 2483656 and 2483686 or ss_sold_date_sk between 2484022 and 2484052 or ss_sold_date_sk between 2484387 and 2484417 or ss_sold_date_sk between 2484752 and 2484782 or ss_sold_date_sk between 2485117 and 2485147 or ss_sold_date_sk between 2485483 and 2485513 or ss_sold_date_sk between 2485848 and 2485878 or ss_sold_date_sk between 2486213 and 2486243 or ss_sold_date_sk between 2486578 and 2486608 or ss_sold_date_sk between 2486944 and 2486974 or ss_sold_date_sk between 2487309 and 2487339 or ss_sold_date_sk between 2487674 and 2487704 or ss_sold_date_sk between 2488039 and 2488069 ) group by dt.d_year, item.i_brand, item.i_brand_id order by dt.d_year, sum_agg desc, brand_id limit 100 -- end query 3 in stream 0 using template query3.tpl -- start query 73 in stream 0 using template query73.tpl select c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt from (select ss_ticket_number, ss_customer_sk, count(*) cnt from store_sales, date_dim, store, household_demographics where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and date_dim.d_dom between 1 and 2 and (household_demographics.hd_buy_potential = '>10000' or household_demographics.hd_buy_potential = 'Unknown') and household_demographics.hd_vehicle_count > 0 and case when household_demographics.hd_vehicle_count > 0 then household_demographics.hd_dep_count / household_demographics.hd_vehicle_count else null end > 1 and date_dim.d_year in (1998, 1998 + 1, 1998 + 2) and store.s_county in ('Fairfield County','Ziebach County','Bronx County','Barrow County') -- partition key filter and ss_sold_date_sk in (2450815, 2450816, 2450846, 2450847, 2450874, 2450875, 2450905, 2450906, 2450935, 2450936, 2450966, 2450967, 2450996, 2450997, 2451027, 2451028, 2451058, 2451059, 2451088, 2451089, 2451119, 2451120, 2451149, 2451150, 2451180, 2451181, 2451211, 2451212, 2451239, 2451240, 2451270, 2451271, 2451300, 2451301, 2451331, 2451332, 2451361, 2451362, 2451392, 2451393, 2451423, 2451424, 2451453, 2451454, 2451484, 2451485, 2451514, 2451515, 2451545, 2451546, 2451576, 2451577, 2451605, 2451606, 2451636, 2451637, 2451666, 2451667, 2451697, 2451698, 2451727, 2451728, 2451758, 2451759, 2451789, 2451790, 2451819, 2451820, 2451850, 2451851, 2451880, 2451881) --and ss_sold_date_sk between 2451180 and 2451269 -- partition key filter (3 months) group by ss_ticket_number, ss_customer_sk ) dj, customer where ss_customer_sk = c_customer_sk and cnt between 1 and 5 order by cnt desc -- end query 73 in stream 0 using template query73.tpl -- start query 19 in stream 0 using template query19.tpl select i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item, customer, customer_address, store where d_date_sk = ss_sold_date_sk and ss_item_sk = i_item_sk and i_manager_id = 7 and d_moy = 11 and d_year = 1999 and ss_customer_sk = c_customer_sk and c_current_addr_sk = ca_address_sk and substr(ca_zip, 1, 5) <> substr(s_zip, 1, 5) and ss_store_sk = s_store_sk and ss_sold_date_sk between 2451484 and 2451513 -- partition key filter group by i_brand, i_brand_id, i_manufact_id, i_manufact order by ext_price desc, i_brand, i_brand_id, i_manufact_id, i_manufact limit 100 -- end query 19 in stream 0 using template query19.tpl -- start query 63 in stream 0 using template query63.tpl select * from (select i_manager_id ,sum(ss_sales_price) sum_sales ,avg(sum(ss_sales_price)) over (partition by i_manager_id) avg_monthly_sales from item ,store_sales ,date_dim ,store where ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and ss_sold_date_sk between 2452123 and 2452487 and ss_store_sk = s_store_sk and d_month_seq in (1219,1219+1,1219+2,1219+3,1219+4,1219+5,1219+6,1219+7,1219+8,1219+9,1219+10,1219+11) and (( i_category in ('Books','Children','Electronics') and i_class in ('personal','portable','reference','self-help') and i_brand in ('scholaramalgamalg #14','scholaramalgamalg #7', 'exportiunivamalg #9','scholaramalgamalg #9')) or( i_category in ('Women','Music','Men') and i_class in ('accessories','classical','fragrances','pants') and i_brand in ('amalgimporto #1','edu packscholar #1','exportiimporto #1', 'importoamalg #1'))) group by i_manager_id, d_moy) tmp1 where case when avg_monthly_sales > 0 then abs (sum_sales - avg_monthly_sales) / avg_monthly_sales else null end > 0.1 order by i_manager_id ,avg_monthly_sales ,sum_sales limit 100 -- end query 63 in stream 0 using template query63.tpl select count(*) as total, count(ss_sold_date_sk) as not_null_total, count(distinct ss_sold_date_sk) as unique_days, max(ss_sold_date_sk) as max_ss_sold_date_sk, max(ss_sold_time_sk) as max_ss_sold_time_sk, max(ss_item_sk) as max_ss_item_sk, max(ss_customer_sk) as max_ss_customer_sk, max(ss_cdemo_sk) as max_ss_cdemo_sk, max(ss_hdemo_sk) as max_ss_hdemo_sk, max(ss_addr_sk) as max_ss_addr_sk, max(ss_store_sk) as max_ss_store_sk, max(ss_promo_sk) as max_ss_promo_sk from store_sales -- start query 89 in stream 0 using template query89.tpl select * from (select i_category, i_class, i_brand, s_store_name, s_company_name, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) over (partition by i_category, i_brand, s_store_name, s_company_name) avg_monthly_sales from item, store_sales, date_dim, store where ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and d_year in (2000) and ((i_category in ('Home', 'Books', 'Electronics') and i_class in ('wallpaper', 'parenting', 'musical')) or (i_category in ('Shoes', 'Jewelry', 'Men') and i_class in ('womens', 'birdal', 'pants'))) and ss_sold_date_sk between 2451545 and 2451910 -- partition key filter group by i_category, i_class, i_brand, s_store_name, s_company_name, d_moy ) tmp1 where case when (avg_monthly_sales <> 0) then (abs(sum_sales - avg_monthly_sales) / avg_monthly_sales) else null end > 0.1 order by sum_sales - avg_monthly_sales, s_store_name limit 100 -- end query 89 in stream 0 using template query89.tpl -- start query 98 in stream 0 using template query98.tpl select i_item_desc, i_category, i_class, i_current_price, sum(ss_ext_sales_price) as itemrevenue, sum(ss_ext_sales_price) * 100 / sum(sum(ss_ext_sales_price)) over (partition by i_class) as revenueratio from store_sales, item, date_dim where ss_item_sk = i_item_sk and i_category in ('Jewelry', 'Sports', 'Books') and ss_sold_date_sk = d_date_sk and ss_sold_date_sk between 2451911 and 2451941 -- partition key filter (1 calendar month) and d_date between '2001-01-01' and '2001-01-31' group by i_item_id, i_item_desc, i_category, i_class, i_current_price order by i_category, i_class, i_item_id, i_item_desc, revenueratio --limit 1000; -- added limit -- end query 98 in stream 0 using template query98.tpl -- start query 34 in stream 0 using template query34.tpl select c_last_name, c_first_name, c_salutation, c_preferred_cust_flag, ss_ticket_number, cnt from (select ss_ticket_number, ss_customer_sk, count(*) cnt from store_sales, date_dim, store, household_demographics where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and (date_dim.d_dom between 1 and 3 or date_dim.d_dom between 25 and 28) and (household_demographics.hd_buy_potential = '>10000' or household_demographics.hd_buy_potential = 'Unknown') and household_demographics.hd_vehicle_count > 0 and (case when household_demographics.hd_vehicle_count > 0 then household_demographics.hd_dep_count / household_demographics.hd_vehicle_count else null end) > 1.2 and date_dim.d_year in (1998, 1998 + 1, 1998 + 2) and store.s_county in ('Saginaw County', 'Sumner County', 'Appanoose County', 'Daviess County', 'Fairfield County', 'Raleigh County', 'Ziebach County', 'Williamson County') and ss_sold_date_sk between 2450816 and 2451910 -- partition key filter group by ss_ticket_number, ss_customer_sk ) dn, customer where ss_customer_sk = c_customer_sk and cnt between 15 and 20 order by c_last_name, c_first_name, c_salutation, c_preferred_cust_flag desc -- end query 34 in stream 0 using template query34.tpl -- start query 52 in stream 0 using template query52.tpl select dt.d_year, item.i_brand_id brand_id, item.i_brand brand, sum(ss_ext_sales_price) ext_price from date_dim dt, store_sales, item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manager_id = 1 and dt.d_moy = 12 and dt.d_year = 1998 and ss_sold_date_sk between 2451149 and 2451179 -- added for partition pruning group by dt.d_year, item.i_brand, item.i_brand_id order by dt.d_year, ext_price desc, brand_id limit 100 -- end query 52 in stream 0 using template query52.tpl -- start query 79 in stream 0 using template query79.tpl select c_last_name, c_first_name, substr(s_city, 1, 30), ss_ticket_number, amt, profit from (select ss_ticket_number, ss_customer_sk, store.s_city, sum(ss_coupon_amt) amt, sum(ss_net_profit) profit from store_sales, date_dim, store, household_demographics where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and (household_demographics.hd_dep_count = 8 or household_demographics.hd_vehicle_count > 0) and date_dim.d_dow = 1 and date_dim.d_year in (1998, 1998 + 1, 1998 + 2) and store.s_number_employees between 200 and 295 and ss_sold_date_sk between 2450819 and 2451904 -- partition key filter --and ss_sold_date_sk in (2450819, 2450826, 2450833, 2450840, 2450847, 2450854, 2450861, 2450868, 2450875, 2450882, 2450889, -- 2450896, 2450903, 2450910, 2450917, 2450924, 2450931, 2450938, 2450945, 2450952, 2450959, 2450966, 2450973, 2450980, 2450987, -- 2450994, 2451001, 2451008, 2451015, 2451022, 2451029, 2451036, 2451043, 2451050, 2451057, 2451064, 2451071, 2451078, 2451085, -- 2451092, 2451099, 2451106, 2451113, 2451120, 2451127, 2451134, 2451141, 2451148, 2451155, 2451162, 2451169, 2451176, 2451183, -- 2451190, 2451197, 2451204, 2451211, 2451218, 2451225, 2451232, 2451239, 2451246, 2451253, 2451260, 2451267, 2451274, 2451281, -- 2451288, 2451295, 2451302, 2451309, 2451316, 2451323, 2451330, 2451337, 2451344, 2451351, 2451358, 2451365, 2451372, 2451379, -- 2451386, 2451393, 2451400, 2451407, 2451414, 2451421, 2451428, 2451435, 2451442, 2451449, 2451456, 2451463, 2451470, 2451477, -- 2451484, 2451491, 2451498, 2451505, 2451512, 2451519, 2451526, 2451533, 2451540, 2451547, 2451554, 2451561, 2451568, 2451575, -- 2451582, 2451589, 2451596, 2451603, 2451610, 2451617, 2451624, 2451631, 2451638, 2451645, 2451652, 2451659, 2451666, 2451673, -- 2451680, 2451687, 2451694, 2451701, 2451708, 2451715, 2451722, 2451729, 2451736, 2451743, 2451750, 2451757, 2451764, 2451771, -- 2451778, 2451785, 2451792, 2451799, 2451806, 2451813, 2451820, 2451827, 2451834, 2451841, 2451848, 2451855, 2451862, 2451869, -- 2451876, 2451883, 2451890, 2451897, 2451904) group by ss_ticket_number, ss_customer_sk, ss_addr_sk, store.s_city ) ms, customer where ss_customer_sk = c_customer_sk order by c_last_name, c_first_name, substr(s_city, 1, 30), profit limit 100 -- end query 79 in stream 0 using template query79.tpl -- start query 68 in stream 0 using template query68.tpl -- changed to match exact same partitions in original query select c_last_name, c_first_name, ca_city, bought_city, ss_ticket_number, extended_price, extended_tax, list_price from (select ss_ticket_number, ss_customer_sk, ca_city bought_city, sum(ss_ext_sales_price) extended_price, sum(ss_ext_list_price) list_price, sum(ss_ext_tax) extended_tax from store_sales, date_dim, store, household_demographics, customer_address where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and store_sales.ss_addr_sk = customer_address.ca_address_sk and date_dim.d_dom between 1 and 2 and (household_demographics.hd_dep_count = 5 or household_demographics.hd_vehicle_count = 3) and date_dim.d_year in (1999, 1999 + 1, 1999 + 2) and store.s_city in ('Midway', 'Fairview') -- partition key filter and ss_sold_date_sk in (2451180, 2451181, 2451211, 2451212, 2451239, 2451240, 2451270, 2451271, 2451300, 2451301, 2451331, 2451332, 2451361, 2451362, 2451392, 2451393, 2451423, 2451424, 2451453, 2451454, 2451484, 2451485, 2451514, 2451515, 2451545, 2451546, 2451576, 2451577, 2451605, 2451606, 2451636, 2451637, 2451666, 2451667, 2451697, 2451698, 2451727, 2451728, 2451758, 2451759, 2451789, 2451790, 2451819, 2451820, 2451850, 2451851, 2451880, 2451881, 2451911, 2451912, 2451942, 2451943, 2451970, 2451971, 2452001, 2452002, 2452031, 2452032, 2452062, 2452063, 2452092, 2452093, 2452123, 2452124, 2452154, 2452155, 2452184, 2452185, 2452215, 2452216, 2452245, 2452246) --and ss_sold_date_sk between 2451180 and 2451269 -- partition key filter (3 months) --and d_date between '1999-01-01' and '1999-03-31' group by ss_ticket_number, ss_customer_sk, ss_addr_sk, ca_city ) dn, customer, customer_address current_addr where ss_customer_sk = c_customer_sk and customer.c_current_addr_sk = current_addr.ca_address_sk and current_addr.ca_city <> bought_city order by c_last_name, ss_ticket_number limit 100 -- end query 68 in stream 0 using template query68.tpl -- date time functions -- [SPARK-16836] current_date and current_timestamp literals select current_date = current_date(), current_timestamp = current_timestamp(); select to_date(null), to_date('2016-12-31'), to_date('2016-12-31', 'yyyy-MM-dd'); select to_timestamp(null), to_timestamp('2016-12-31 00:12:00'), to_timestamp('2016-12-31', 'yyyy-MM-dd'); select dayofweek('2007-02-03'), dayofweek('2009-07-30'), dayofweek('2017-05-27'), dayofweek(null), dayofweek('1582-10-15 13:10:15'); -- [SPARK-22333]: timeFunctionCall has conflicts with columnReference create temporary view ttf1 as select * from values (1, 2), (2, 3) as ttf1(current_date, current_timestamp); select current_date, current_timestamp from ttf1; create temporary view ttf2 as select * from values (1, 2), (2, 3) as ttf2(a, b); select current_date = current_date(), current_timestamp = current_timestamp(), a, b from ttf2; select a, b from ttf2 order by a, current_date; select weekday('2007-02-03'), weekday('2009-07-30'), weekday('2017-05-27'), weekday(null), weekday('1582-10-15 13:10:15'); select year('1500-01-01'), month('1500-01-01'), dayOfYear('1500-01-01');-- EqualTo select 1 = 1; select 1 = '1'; select 1.0 = '1'; select 1.5 = '1.51'; -- GreaterThan select 1 > '1'; select 2 > '1.0'; select 2 > '2.0'; select 2 > '2.2'; select '1.5' > 0.5; select to_date('2009-07-30 04:17:52') > to_date('2009-07-30 04:17:52'); select to_date('2009-07-30 04:17:52') > '2009-07-30 04:17:52'; -- GreaterThanOrEqual select 1 >= '1'; select 2 >= '1.0'; select 2 >= '2.0'; select 2.0 >= '2.2'; select '1.5' >= 0.5; select to_date('2009-07-30 04:17:52') >= to_date('2009-07-30 04:17:52'); select to_date('2009-07-30 04:17:52') >= '2009-07-30 04:17:52'; -- LessThan select 1 < '1'; select 2 < '1.0'; select 2 < '2.0'; select 2.0 < '2.2'; select 0.5 < '1.5'; select to_date('2009-07-30 04:17:52') < to_date('2009-07-30 04:17:52'); select to_date('2009-07-30 04:17:52') < '2009-07-30 04:17:52'; -- LessThanOrEqual select 1 <= '1'; select 2 <= '1.0'; select 2 <= '2.0'; select 2.0 <= '2.2'; select 0.5 <= '1.5'; select to_date('2009-07-30 04:17:52') <= to_date('2009-07-30 04:17:52'); select to_date('2009-07-30 04:17:52') <= '2009-07-30 04:17:52'; -- SPARK-23549: Cast to timestamp when comparing timestamp with date select to_date('2017-03-01') = to_timestamp('2017-03-01 00:00:00'); select to_timestamp('2017-03-01 00:00:01') > to_date('2017-03-01'); select to_timestamp('2017-03-01 00:00:01') >= to_date('2017-03-01'); select to_date('2017-03-01') < to_timestamp('2017-03-01 00:00:01'); select to_date('2017-03-01') <= to_timestamp('2017-03-01 00:00:01'); CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES (1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2) AS testData(a, b); -- CUBE on overlapping columns SELECT a + b, b, SUM(a - b) FROM testData GROUP BY a + b, b WITH CUBE; SELECT a, b, SUM(b) FROM testData GROUP BY a, b WITH CUBE; -- ROLLUP on overlapping columns SELECT a + b, b, SUM(a - b) FROM testData GROUP BY a + b, b WITH ROLLUP; SELECT a, b, SUM(b) FROM testData GROUP BY a, b WITH ROLLUP; CREATE OR REPLACE TEMPORARY VIEW courseSales AS SELECT * FROM VALUES ("dotNET", 2012, 10000), ("Java", 2012, 20000), ("dotNET", 2012, 5000), ("dotNET", 2013, 48000), ("Java", 2013, 30000) AS courseSales(course, year, earnings); -- ROLLUP SELECT course, year, SUM(earnings) FROM courseSales GROUP BY ROLLUP(course, year) ORDER BY course, year; -- CUBE SELECT course, year, SUM(earnings) FROM courseSales GROUP BY CUBE(course, year) ORDER BY course, year; -- GROUPING SETS SELECT course, year, SUM(earnings) FROM courseSales GROUP BY course, year GROUPING SETS(course, year); SELECT course, year, SUM(earnings) FROM courseSales GROUP BY course, year GROUPING SETS(course); SELECT course, year, SUM(earnings) FROM courseSales GROUP BY course, year GROUPING SETS(year); -- GROUPING SETS with aggregate functions containing groupBy columns SELECT course, SUM(earnings) AS sum FROM courseSales GROUP BY course, earnings GROUPING SETS((), (course), (course, earnings)) ORDER BY course, sum; SELECT course, SUM(earnings) AS sum, GROUPING_ID(course, earnings) FROM courseSales GROUP BY course, earnings GROUPING SETS((), (course), (course, earnings)) ORDER BY course, sum; -- GROUPING/GROUPING_ID SELECT course, year, GROUPING(course), GROUPING(year), GROUPING_ID(course, year) FROM courseSales GROUP BY CUBE(course, year); SELECT course, year, GROUPING(course) FROM courseSales GROUP BY course, year; SELECT course, year, GROUPING_ID(course, year) FROM courseSales GROUP BY course, year; SELECT course, year, grouping__id FROM courseSales GROUP BY CUBE(course, year) ORDER BY grouping__id, course, year; -- GROUPING/GROUPING_ID in having clause SELECT course, year FROM courseSales GROUP BY CUBE(course, year) HAVING GROUPING(year) = 1 AND GROUPING_ID(course, year) > 0 ORDER BY course, year; SELECT course, year FROM courseSales GROUP BY course, year HAVING GROUPING(course) > 0; SELECT course, year FROM courseSales GROUP BY course, year HAVING GROUPING_ID(course) > 0; SELECT course, year FROM courseSales GROUP BY CUBE(course, year) HAVING grouping__id > 0; -- GROUPING/GROUPING_ID in orderBy clause SELECT course, year, GROUPING(course), GROUPING(year) FROM courseSales GROUP BY CUBE(course, year) ORDER BY GROUPING(course), GROUPING(year), course, year; SELECT course, year, GROUPING_ID(course, year) FROM courseSales GROUP BY CUBE(course, year) ORDER BY GROUPING(course), GROUPING(year), course, year; SELECT course, year FROM courseSales GROUP BY course, year ORDER BY GROUPING(course); SELECT course, year FROM courseSales GROUP BY course, year ORDER BY GROUPING_ID(course); SELECT course, year FROM courseSales GROUP BY CUBE(course, year) ORDER BY grouping__id, course, year; -- Aliases in SELECT could be used in ROLLUP/CUBE/GROUPING SETS SELECT a + b AS k1, b AS k2, SUM(a - b) FROM testData GROUP BY CUBE(k1, k2); SELECT a + b AS k, b, SUM(a - b) FROM testData GROUP BY ROLLUP(k, b); SELECT a + b, b AS k, SUM(a - b) FROM testData GROUP BY a + b, k GROUPING SETS(k) CREATE OR REPLACE TEMPORARY VIEW tbl_a AS VALUES (1, 1), (2, 1), (3, 6) AS T(c1, c2); CREATE OR REPLACE TEMPORARY VIEW tbl_b AS VALUES 1 AS T(c1); -- SPARK-18597: Do not push down predicates to left hand side in an anti-join SELECT * FROM tbl_a LEFT ANTI JOIN tbl_b ON ((tbl_a.c1 = tbl_a.c2) IS NULL OR tbl_a.c1 = tbl_a.c2); -- SPARK-18614: Do not push down predicates on left table below ExistenceJoin SELECT l.c1, l.c2 FROM tbl_a l WHERE EXISTS (SELECT 1 FROM tbl_b r WHERE l.c1 = l.c2) OR l.c2 < 2; CREATE TABLE table_with_comment (a STRING, b INT, c STRING, d STRING) USING parquet COMMENT 'added'; DESC FORMATTED table_with_comment; -- ALTER TABLE BY MODIFYING COMMENT ALTER TABLE table_with_comment SET TBLPROPERTIES("comment"= "modified comment", "type"= "parquet"); DESC FORMATTED table_with_comment; -- DROP TEST TABLE DROP TABLE table_with_comment; -- CREATE TABLE WITHOUT COMMENT CREATE TABLE table_comment (a STRING, b INT) USING parquet; DESC FORMATTED table_comment; -- ALTER TABLE BY ADDING COMMENT ALTER TABLE table_comment SET TBLPROPERTIES(comment = "added comment"); DESC formatted table_comment; -- ALTER UNSET PROPERTIES COMMENT ALTER TABLE table_comment UNSET TBLPROPERTIES IF EXISTS ('comment'); DESC FORMATTED table_comment; -- DROP TEST TABLE DROP TABLE table_comment; -- single row, without table and column alias select * from values ("one", 1); -- single row, without column alias select * from values ("one", 1) as data; -- single row select * from values ("one", 1) as data(a, b); -- single column multiple rows select * from values 1, 2, 3 as data(a); -- three rows select * from values ("one", 1), ("two", 2), ("three", null) as data(a, b); -- null type select * from values ("one", null), ("two", null) as data(a, b); -- int and long coercion select * from values ("one", 1), ("two", 2L) as data(a, b); -- foldable expressions select * from values ("one", 1 + 0), ("two", 1 + 3L) as data(a, b); -- complex types select * from values ("one", array(0, 1)), ("two", array(2, 3)) as data(a, b); -- decimal and double coercion select * from values ("one", 2.0), ("two", 3.0D) as data(a, b); -- error reporting: nondeterministic function rand select * from values ("one", rand(5)), ("two", 3.0D) as data(a, b); -- error reporting: different number of columns select * from values ("one", 2.0), ("two") as data(a, b); -- error reporting: types that are incompatible select * from values ("one", array(0, 1)), ("two", struct(1, 2)) as data(a, b); -- error reporting: number aliases different from number data values select * from values ("one"), ("two") as data(a, b); -- error reporting: unresolved expression select * from values ("one", random_not_exist_func(1)), ("two", 2) as data(a, b); -- error reporting: aggregate expression select * from values ("one", count(1)), ("two", 2) as data(a, b); -- string to timestamp select * from values (timestamp('1991-12-06 00:00:00.0'), array(timestamp('1991-12-06 01:00:00.0'), timestamp('1991-12-06 12:00:00.0'))) as data(a, b); -- List of configuration the test suite is run against: --SET spark.sql.autoBroadcastJoinThreshold=10485760 --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=true --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=false create temporary view nt1 as select * from values ("one", 1), ("two", 2), ("three", 3) as nt1(k, v1); create temporary view nt2 as select * from values ("one", 1), ("two", 22), ("one", 5) as nt2(k, v2); SELECT * FROM nt1 natural join nt2 where k = "one"; SELECT * FROM nt1 natural left join nt2 order by v1, v2; SELECT * FROM nt1 natural right join nt2 order by v1, v2; SELECT count(*) FROM nt1 natural full outer join nt2; -- binary type select x'00' < x'0f'; select x'00' < x'ff'; -- limit on various data types SELECT * FROM testdata LIMIT 2; SELECT * FROM arraydata LIMIT 2; SELECT * FROM mapdata LIMIT 2; -- foldable non-literal in limit SELECT * FROM testdata LIMIT 2 + 1; SELECT * FROM testdata LIMIT CAST(1 AS int); -- limit must be non-negative SELECT * FROM testdata LIMIT -1; SELECT * FROM testData TABLESAMPLE (-1 ROWS); SELECT * FROM testdata LIMIT CAST(1 AS INT); -- evaluated limit must not be null SELECT * FROM testdata LIMIT CAST(NULL AS INT); -- limit must be foldable SELECT * FROM testdata LIMIT key > 3; -- limit must be integer SELECT * FROM testdata LIMIT true; SELECT * FROM testdata LIMIT 'a'; -- limit within a subquery SELECT * FROM (SELECT * FROM range(10) LIMIT 5) WHERE id > 3; -- limit ALL SELECT * FROM testdata WHERE key < 3 LIMIT ALL; -- Test data. CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES (1, 1), (1, 2), (2, 1) AS testData(a, b); -- Table column aliases in FROM clause SELECT * FROM testData AS t(col1, col2) WHERE col1 = 1; SELECT * FROM testData AS t(col1, col2) WHERE col1 = 2; SELECT col1 AS k, SUM(col2) FROM testData AS t(col1, col2) GROUP BY k; -- Aliasing the wrong number of columns in the FROM clause SELECT * FROM testData AS t(col1, col2, col3); SELECT * FROM testData AS t(col1); -- Check alias duplication SELECT a AS col1, b AS col2 FROM testData AS t(c, d); -- Subquery aliases in FROM clause SELECT * FROM (SELECT 1 AS a, 1 AS b) t(col1, col2); -- Aliases for join relations in FROM clause CREATE OR REPLACE TEMPORARY VIEW src1 AS SELECT * FROM VALUES (1, "a"), (2, "b"), (3, "c") AS src1(id, v1); CREATE OR REPLACE TEMPORARY VIEW src2 AS SELECT * FROM VALUES (2, 1.0), (3, 3.2), (1, 8.5) AS src2(id, v2); SELECT * FROM (src1 s1 INNER JOIN src2 s2 ON s1.id = s2.id) dst(a, b, c, d); CREATE TEMPORARY VIEW t AS select '2011-05-06 07:08:09.1234567' as c; select extract(year from c) from t; select extract(quarter from c) from t; select extract(month from c) from t; select extract(week from c) from t; select extract(day from c) from t; select extract(dayofweek from c) from t; select extract(hour from c) from t; select extract(minute from c) from t; select extract(second from c) from t; select extract(not_supported from c) from t; CREATE DATABASE showdb; USE showdb; CREATE TABLE showcolumn1 (col1 int, `col 2` int) USING json; CREATE TABLE showcolumn2 (price int, qty int, year int, month int) USING parquet partitioned by (year, month); CREATE TEMPORARY VIEW showColumn3 (col3 int, `col 4` int) USING json; CREATE GLOBAL TEMP VIEW showColumn4 AS SELECT 1 as col1, 'abc' as `col 5`; -- only table name SHOW COLUMNS IN showcolumn1; -- qualified table name SHOW COLUMNS IN showdb.showcolumn1; -- table name and database name SHOW COLUMNS IN showcolumn1 FROM showdb; -- partitioned table SHOW COLUMNS IN showcolumn2 IN showdb; -- Non-existent table. Raise an error in this case SHOW COLUMNS IN badtable FROM showdb; -- database in table identifier and database name in different case SHOW COLUMNS IN showdb.showcolumn1 from SHOWDB; -- different database name in table identifier and database name. -- Raise an error in this case. SHOW COLUMNS IN showdb.showcolumn1 FROM baddb; -- show column on temporary view SHOW COLUMNS IN showcolumn3; -- error temp view can't be qualified with a database SHOW COLUMNS IN showdb.showcolumn3; -- error temp view can't be qualified with a database SHOW COLUMNS IN showcolumn3 FROM showdb; -- error global temp view needs to be qualified SHOW COLUMNS IN showcolumn4; -- global temp view qualified with database SHOW COLUMNS IN global_temp.showcolumn4; -- global temp view qualified with database SHOW COLUMNS IN showcolumn4 FROM global_temp; DROP TABLE showcolumn1; DROP TABLE showColumn2; DROP VIEW showcolumn3; DROP VIEW global_temp.showcolumn4; use default; DROP DATABASE showdb; -- List of configuration the test suite is run against: --SET spark.sql.autoBroadcastJoinThreshold=10485760 --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=true --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=false -- SPARK-17099: Incorrect result when HAVING clause is added to group by query CREATE OR REPLACE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (-234), (145), (367), (975), (298) as t1(int_col1); CREATE OR REPLACE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (-769, -244), (-800, -409), (940, 86), (-507, 304), (-367, 158) as t2(int_col0, int_col1); SELECT (SUM(COALESCE(t1.int_col1, t2.int_col0))), ((COALESCE(t1.int_col1, t2.int_col0)) * 2) FROM t1 RIGHT JOIN t2 ON (t2.int_col0) = (t1.int_col1) GROUP BY GREATEST(COALESCE(t2.int_col1, 109), COALESCE(t1.int_col1, -449)), COALESCE(t1.int_col1, t2.int_col0) HAVING (SUM(COALESCE(t1.int_col1, t2.int_col0))) > ((COALESCE(t1.int_col1, t2.int_col0)) * 2); -- SPARK-17120: Analyzer incorrectly optimizes plan to empty LocalRelation CREATE OR REPLACE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (97) as t1(int_col1); CREATE OR REPLACE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (0) as t2(int_col1); -- Set the cross join enabled flag for the LEFT JOIN test since there's no join condition. -- Ultimately the join should be optimized away. set spark.sql.crossJoin.enabled = true; SELECT * FROM ( SELECT COALESCE(t2.int_col1, t1.int_col1) AS int_col FROM t1 LEFT JOIN t2 ON false ) t where (t.int_col) is not null; set spark.sql.crossJoin.enabled = false; -- Cross join detection and error checking is done in JoinSuite since explain output is -- used in the error message and the ids are not stable. Only positive cases are checked here. create temporary view nt1 as select * from values ("one", 1), ("two", 2), ("three", 3) as nt1(k, v1); create temporary view nt2 as select * from values ("one", 1), ("two", 22), ("one", 5) as nt2(k, v2); -- Cross joins with and without predicates SELECT * FROM nt1 cross join nt2; SELECT * FROM nt1 cross join nt2 where nt1.k = nt2.k; SELECT * FROM nt1 cross join nt2 on (nt1.k = nt2.k); SELECT * FROM nt1 cross join nt2 where nt1.v1 = 1 and nt2.v2 = 22; SELECT a.key, b.key FROM (SELECT k key FROM nt1 WHERE v1 < 2) a CROSS JOIN (SELECT k key FROM nt2 WHERE v2 = 22) b; -- Join reordering create temporary view A(a, va) as select * from nt1; create temporary view B(b, vb) as select * from nt1; create temporary view C(c, vc) as select * from nt1; create temporary view D(d, vd) as select * from nt1; -- Allowed since cross join with C is explicit select * from ((A join B on (a = b)) cross join C) join D on (a = d); -- Cross joins with non-equal predicates SELECT * FROM nt1 CROSS JOIN nt2 ON (nt1.k > nt2.k); -- order by and sort by ordinal positions create temporary view data as select * from values (1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2) as data(a, b); select * from data order by 1 desc; -- mix ordinal and column name select * from data order by 1 desc, b desc; -- order by multiple ordinals select * from data order by 1 desc, 2 desc; -- 1 + 0 is considered a constant (not an ordinal) and thus ignored select * from data order by 1 + 0 desc, b desc; -- negative cases: ordinal position out of range select * from data order by 0; select * from data order by -1; select * from data order by 3; -- sort by ordinal select * from data sort by 1 desc; -- turn off order by ordinal set spark.sql.orderByOrdinal=false; -- 0 is now a valid literal select * from data order by 0; select * from data sort by 0; CREATE TABLE t (key STRING, value STRING, ds STRING, hr INT) USING parquet PARTITIONED BY (ds, hr); INSERT INTO TABLE t PARTITION (ds='2017-08-01', hr=10) VALUES ('k1', 100), ('k2', 200), ('k3', 300); INSERT INTO TABLE t PARTITION (ds='2017-08-01', hr=11) VALUES ('k1', 101), ('k2', 201), ('k3', 301), ('k4', 401); INSERT INTO TABLE t PARTITION (ds='2017-09-01', hr=5) VALUES ('k1', 102), ('k2', 202); DESC EXTENDED t PARTITION (ds='2017-08-01', hr=10); -- Collect stats for a single partition ANALYZE TABLE t PARTITION (ds='2017-08-01', hr=10) COMPUTE STATISTICS; DESC EXTENDED t PARTITION (ds='2017-08-01', hr=10); -- Collect stats for 2 partitions ANALYZE TABLE t PARTITION (ds='2017-08-01') COMPUTE STATISTICS; DESC EXTENDED t PARTITION (ds='2017-08-01', hr=10); DESC EXTENDED t PARTITION (ds='2017-08-01', hr=11); -- Collect stats for all partitions ANALYZE TABLE t PARTITION (ds, hr) COMPUTE STATISTICS; DESC EXTENDED t PARTITION (ds='2017-08-01', hr=10); DESC EXTENDED t PARTITION (ds='2017-08-01', hr=11); DESC EXTENDED t PARTITION (ds='2017-09-01', hr=5); -- DROP TEST TABLES/VIEWS DROP TABLE t; CREATE TEMPORARY VIEW tbl_x AS VALUES (1, NAMED_STRUCT('C', 'gamma', 'D', 'delta')), (2, NAMED_STRUCT('C', 'epsilon', 'D', 'eta')), (3, NAMED_STRUCT('C', 'theta', 'D', 'iota')) AS T(ID, ST); -- Create a struct SELECT STRUCT('alpha', 'beta') ST; -- Create a struct with aliases SELECT STRUCT('alpha' AS A, 'beta' AS B) ST; -- Star expansion in a struct. SELECT ID, STRUCT(ST.*) NST FROM tbl_x; -- Append a column to a struct SELECT ID, STRUCT(ST.*,CAST(ID AS STRING) AS E) NST FROM tbl_x; -- Prepend a column to a struct SELECT ID, STRUCT(CAST(ID AS STRING) AS AA, ST.*) NST FROM tbl_x; -- Select a column from a struct SELECT ID, STRUCT(ST.*).C NST FROM tbl_x; SELECT ID, STRUCT(ST.C, ST.D).D NST FROM tbl_x; -- Select an alias from a struct SELECT ID, STRUCT(ST.C as STC, ST.D as STD).STD FROM tbl_x;CREATE TEMPORARY VIEW tab1 AS SELECT * FROM VALUES (1, 2), (1, 2), (1, 3), (1, 3), (2, 3), (null, null), (null, null) AS tab1(k, v); CREATE TEMPORARY VIEW tab2 AS SELECT * FROM VALUES (1, 2), (1, 2), (2, 3), (3, 4), (null, null), (null, null) AS tab2(k, v); -- Basic INTERSECT ALL SELECT * FROM tab1 INTERSECT ALL SELECT * FROM tab2; -- INTERSECT ALL same table in both branches SELECT * FROM tab1 INTERSECT ALL SELECT * FROM tab1 WHERE k = 1; -- Empty left relation SELECT * FROM tab1 WHERE k > 2 INTERSECT ALL SELECT * FROM tab2; -- Empty right relation SELECT * FROM tab1 INTERSECT ALL SELECT * FROM tab2 WHERE k > 3; -- Type Coerced INTERSECT ALL SELECT * FROM tab1 INTERSECT ALL SELECT CAST(1 AS BIGINT), CAST(2 AS BIGINT); -- Error as types of two side are not compatible SELECT * FROM tab1 INTERSECT ALL SELECT array(1), 2; -- Mismatch on number of columns across both branches SELECT k FROM tab1 INTERSECT ALL SELECT k, v FROM tab2; -- Basic SELECT * FROM tab2 INTERSECT ALL SELECT * FROM tab1 INTERSECT ALL SELECT * FROM tab2; -- Chain of different `set operations SELECT * FROM tab1 EXCEPT SELECT * FROM tab2 UNION ALL SELECT * FROM tab1 INTERSECT ALL SELECT * FROM tab2 ; -- Chain of different `set operations SELECT * FROM tab1 EXCEPT SELECT * FROM tab2 EXCEPT SELECT * FROM tab1 INTERSECT ALL SELECT * FROM tab2 ; -- test use parenthesis to control order of evaluation ( ( ( SELECT * FROM tab1 EXCEPT SELECT * FROM tab2 ) EXCEPT SELECT * FROM tab1 ) INTERSECT ALL SELECT * FROM tab2 ) ; -- Join under intersect all SELECT * FROM (SELECT tab1.k, tab2.v FROM tab1 JOIN tab2 ON tab1.k = tab2.k) INTERSECT ALL SELECT * FROM (SELECT tab1.k, tab2.v FROM tab1 JOIN tab2 ON tab1.k = tab2.k); -- Join under intersect all (2) SELECT * FROM (SELECT tab1.k, tab2.v FROM tab1 JOIN tab2 ON tab1.k = tab2.k) INTERSECT ALL SELECT * FROM (SELECT tab2.v AS k, tab1.k AS v FROM tab1 JOIN tab2 ON tab1.k = tab2.k); -- Group by under intersect all SELECT v FROM tab1 GROUP BY v INTERSECT ALL SELECT k FROM tab2 GROUP BY k; -- Test pre spark2.4 behaviour of set operation precedence -- All the set operators are given equal precedence and are evaluated -- from left to right as they appear in the query. -- Set the property SET spark.sql.legacy.setopsPrecedence.enabled= true; SELECT * FROM tab1 EXCEPT SELECT * FROM tab2 UNION ALL SELECT * FROM tab1 INTERSECT ALL SELECT * FROM tab2; SELECT * FROM tab1 EXCEPT SELECT * FROM tab2 UNION ALL SELECT * FROM tab1 INTERSECT SELECT * FROM tab2; -- Restore the property SET spark.sql.legacy.setopsPrecedence.enabled = false; -- Clean-up DROP VIEW IF EXISTS tab1; DROP VIEW IF EXISTS tab2; -- List of configuration the test suite is run against: --SET spark.sql.autoBroadcastJoinThreshold=10485760 --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=true --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=false CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1) AS GROUPING(a); CREATE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (1) AS GROUPING(a); CREATE TEMPORARY VIEW empty_table as SELECT a FROM t2 WHERE false; SELECT * FROM t1 INNER JOIN empty_table; SELECT * FROM t1 CROSS JOIN empty_table; SELECT * FROM t1 LEFT OUTER JOIN empty_table; SELECT * FROM t1 RIGHT OUTER JOIN empty_table; SELECT * FROM t1 FULL OUTER JOIN empty_table; SELECT * FROM t1 LEFT SEMI JOIN empty_table; SELECT * FROM t1 LEFT ANTI JOIN empty_table; SELECT * FROM empty_table INNER JOIN t1; SELECT * FROM empty_table CROSS JOIN t1; SELECT * FROM empty_table LEFT OUTER JOIN t1; SELECT * FROM empty_table RIGHT OUTER JOIN t1; SELECT * FROM empty_table FULL OUTER JOIN t1; SELECT * FROM empty_table LEFT SEMI JOIN t1; SELECT * FROM empty_table LEFT ANTI JOIN t1; SELECT * FROM empty_table INNER JOIN empty_table; SELECT * FROM empty_table CROSS JOIN empty_table; SELECT * FROM empty_table LEFT OUTER JOIN empty_table; SELECT * FROM empty_table RIGHT OUTER JOIN empty_table; SELECT * FROM empty_table FULL OUTER JOIN empty_table; SELECT * FROM empty_table LEFT SEMI JOIN empty_table; SELECT * FROM empty_table LEFT ANTI JOIN empty_table; create temporary view t as select * from values 0, 1, 2 as t(id); create temporary view t2 as select * from values 0, 1 as t(id); -- WITH clause should not fall into infinite loop by referencing self WITH s AS (SELECT 1 FROM s) SELECT * FROM s; -- WITH clause should reference the base table WITH t AS (SELECT 1 FROM t) SELECT * FROM t; -- WITH clause should not allow cross reference WITH s1 AS (SELECT 1 FROM s2), s2 AS (SELECT 1 FROM s1) SELECT * FROM s1, s2; -- WITH clause should reference the previous CTE WITH t1 AS (SELECT * FROM t2), t2 AS (SELECT 2 FROM t1) SELECT * FROM t1 cross join t2; -- SPARK-18609 CTE with self-join WITH CTE1 AS ( SELECT b.id AS id FROM T2 a CROSS JOIN (SELECT id AS id FROM T2) b ) SELECT t1.id AS c1, t2.id AS c2 FROM CTE1 t1 CROSS JOIN CTE1 t2; -- Clean up DROP VIEW IF EXISTS t; DROP VIEW IF EXISTS t2; -- Test temp table CREATE TEMPORARY VIEW desc_col_temp_view (key int COMMENT 'column_comment') USING PARQUET; DESC desc_col_temp_view key; DESC EXTENDED desc_col_temp_view key; DESC FORMATTED desc_col_temp_view key; -- Describe a column with qualified name DESC FORMATTED desc_col_temp_view desc_col_temp_view.key; -- Describe a non-existent column DESC desc_col_temp_view key1; -- Test persistent table CREATE TABLE desc_col_table (key int COMMENT 'column_comment') USING PARQUET; ANALYZE TABLE desc_col_table COMPUTE STATISTICS FOR COLUMNS key; DESC desc_col_table key; DESC EXTENDED desc_col_table key; DESC FORMATTED desc_col_table key; -- Test complex columns CREATE TABLE desc_complex_col_table (`a.b` int, col struct<x:int, y:string>) USING PARQUET; DESC FORMATTED desc_complex_col_table `a.b`; DESC FORMATTED desc_complex_col_table col; -- Describe a nested column DESC FORMATTED desc_complex_col_table col.x; -- Test output for histogram statistics SET spark.sql.statistics.histogram.enabled=true; SET spark.sql.statistics.histogram.numBins=2; INSERT INTO desc_col_table values 1, 2, 3, 4; ANALYZE TABLE desc_col_table COMPUTE STATISTICS FOR COLUMNS key; DESC EXTENDED desc_col_table key; DROP VIEW desc_col_temp_view; DROP TABLE desc_col_table; DROP TABLE desc_complex_col_table; -- Tests for qualified column names for the view code-path -- Test scenario with Temporary view CREATE OR REPLACE TEMPORARY VIEW view1 AS SELECT 2 AS i1; SELECT view1.* FROM view1; SELECT * FROM view1; SELECT view1.i1 FROM view1; SELECT i1 FROM view1; SELECT a.i1 FROM view1 AS a; SELECT i1 FROM view1 AS a; -- cleanup DROP VIEW view1; -- Test scenario with Global Temp view CREATE OR REPLACE GLOBAL TEMPORARY VIEW view1 as SELECT 1 as i1; SELECT * FROM global_temp.view1; SELECT global_temp.view1.* FROM global_temp.view1; SELECT i1 FROM global_temp.view1; SELECT global_temp.view1.i1 FROM global_temp.view1; SELECT view1.i1 FROM global_temp.view1; SELECT a.i1 FROM global_temp.view1 AS a; SELECT i1 FROM global_temp.view1 AS a; -- cleanup DROP VIEW global_temp.view1; -- cast string representing a valid fractional number to integral should truncate the number SELECT CAST('1.23' AS int); SELECT CAST('1.23' AS long); SELECT CAST('-4.56' AS int); SELECT CAST('-4.56' AS long); -- cast string which are not numbers to integral should return null SELECT CAST('abc' AS int); SELECT CAST('abc' AS long); -- cast string representing a very large number to integral should return null SELECT CAST('1234567890123' AS int); SELECT CAST('12345678901234567890123' AS long); -- cast empty string to integral should return null SELECT CAST('' AS int); SELECT CAST('' AS long); -- cast null to integral should return null SELECT CAST(NULL AS int); SELECT CAST(NULL AS long); -- cast invalid decimal string to integral should return null SELECT CAST('123.a' AS int); SELECT CAST('123.a' AS long); -- '-2147483648' is the smallest int value SELECT CAST('-2147483648' AS int); SELECT CAST('-2147483649' AS int); -- '2147483647' is the largest int value SELECT CAST('2147483647' AS int); SELECT CAST('2147483648' AS int); -- '-9223372036854775808' is the smallest long value SELECT CAST('-9223372036854775808' AS long); SELECT CAST('-9223372036854775809' AS long); -- '9223372036854775807' is the largest long value SELECT CAST('9223372036854775807' AS long); SELECT CAST('9223372036854775808' AS long); -- cast string to its binary representation SELECT HEX(CAST('abc' AS binary)); -- cast integral values to their corresponding binary representation SELECT HEX(CAST(CAST(123 AS byte) AS binary)); SELECT HEX(CAST(CAST(-123 AS byte) AS binary)); SELECT HEX(CAST(123S AS binary)); SELECT HEX(CAST(-123S AS binary)); SELECT HEX(CAST(123 AS binary)); SELECT HEX(CAST(-123 AS binary)); SELECT HEX(CAST(123L AS binary)); SELECT HEX(CAST(-123L AS binary)); DESC FUNCTION boolean; DESC FUNCTION EXTENDED boolean; -- TODO: migrate all cast tests here. -- Turns on ANSI mode SET spark.sql.parser.ansi.enabled=true; select '1' second, 2 seconds, '1' minute, 2 minutes, '1' hour, 2 hours, '1' day, 2 days, '1' month, 2 months, '1' year, 2 years; select interval '10-11' year to month, interval '10' year, interval '11' month; select '10-11' year to month, '10' year, '11' month; select interval '10 9:8:7.987654321' day to second, interval '10' day, interval '11' hour, interval '12' minute, interval '13' second, interval '13.123456789' second; select '10 9:8:7.987654321' day to second, '10' day, '11' hour, '12' minute, '13' second, '13.123456789' second; select map(1, interval 1 day, 2, interval 3 week); select map(1, 1 day, 2, 3 week); -- Interval year-month arithmetic create temporary view interval_arithmetic as select CAST(dateval AS date), CAST(tsval AS timestamp) from values ('2012-01-01', '2012-01-01') as interval_arithmetic(dateval, tsval); select dateval, dateval - interval '2-2' year to month, dateval - interval '-2-2' year to month, dateval + interval '2-2' year to month, dateval + interval '-2-2' year to month, - interval '2-2' year to month + dateval, interval '2-2' year to month + dateval from interval_arithmetic; select dateval, dateval - '2-2' year to month, dateval - '-2-2' year to month, dateval + '2-2' year to month, dateval + '-2-2' year to month, - '2-2' year to month + dateval, '2-2' year to month + dateval from interval_arithmetic; select tsval, tsval - interval '2-2' year to month, tsval - interval '-2-2' year to month, tsval + interval '2-2' year to month, tsval + interval '-2-2' year to month, - interval '2-2' year to month + tsval, interval '2-2' year to month + tsval from interval_arithmetic; select tsval, tsval - '2-2' year to month, tsval - '-2-2' year to month, tsval + '2-2' year to month, tsval + '-2-2' year to month, - '2-2' year to month + tsval, '2-2' year to month + tsval from interval_arithmetic; select interval '2-2' year to month + interval '3-3' year to month, interval '2-2' year to month - interval '3-3' year to month from interval_arithmetic; select '2-2' year to month + '3-3' year to month, '2-2' year to month - '3-3' year to month from interval_arithmetic; -- Interval day-time arithmetic select dateval, dateval - interval '99 11:22:33.123456789' day to second, dateval - interval '-99 11:22:33.123456789' day to second, dateval + interval '99 11:22:33.123456789' day to second, dateval + interval '-99 11:22:33.123456789' day to second, -interval '99 11:22:33.123456789' day to second + dateval, interval '99 11:22:33.123456789' day to second + dateval from interval_arithmetic; select dateval, dateval - '99 11:22:33.123456789' day to second, dateval - '-99 11:22:33.123456789' day to second, dateval + '99 11:22:33.123456789' day to second, dateval + '-99 11:22:33.123456789' day to second, - '99 11:22:33.123456789' day to second + dateval, '99 11:22:33.123456789' day to second + dateval from interval_arithmetic; select tsval, tsval - interval '99 11:22:33.123456789' day to second, tsval - interval '-99 11:22:33.123456789' day to second, tsval + interval '99 11:22:33.123456789' day to second, tsval + interval '-99 11:22:33.123456789' day to second, -interval '99 11:22:33.123456789' day to second + tsval, interval '99 11:22:33.123456789' day to second + tsval from interval_arithmetic; select tsval, tsval - '99 11:22:33.123456789' day to second, tsval - '-99 11:22:33.123456789' day to second, tsval + '99 11:22:33.123456789' day to second, tsval + '-99 11:22:33.123456789' day to second, - '99 11:22:33.123456789' day to second + tsval, '99 11:22:33.123456789' day to second + tsval from interval_arithmetic; select interval '99 11:22:33.123456789' day to second + interval '10 9:8:7.123456789' day to second, interval '99 11:22:33.123456789' day to second - interval '10 9:8:7.123456789' day to second from interval_arithmetic; select '99 11:22:33.123456789' day to second + '10 9:8:7.123456789' day to second, '99 11:22:33.123456789' day to second - '10 9:8:7.123456789' day to second from interval_arithmetic; -- More tests for interval syntax alternatives select 30 day; select 30 day day; select 30 day day day; select date '2012-01-01' - 30 day; select date '2012-01-01' - 30 day day; select date '2012-01-01' - 30 day day day; select date '2012-01-01' + '-30' day; select date '2012-01-01' + interval '-30' day; -- Unsupported syntax for intervals select date '2012-01-01' + interval (-30) day; select date '2012-01-01' + (-30) day; create temporary view t as select * from values (1), (2) as t(a); select date '2012-01-01' + interval (a + 1) day from t; select date '2012-01-01' + (a + 1) day from t; -- Turns off ANSI mode SET spark.sql.parser.ansi.enabled=false; -- Q1. testing window functions with order by create table spark_10747(col1 int, col2 int, col3 int) using parquet; -- Q2. insert to tables INSERT INTO spark_10747 VALUES (6, 12, 10), (6, 11, 4), (6, 9, 10), (6, 15, 8), (6, 15, 8), (6, 7, 4), (6, 7, 8), (6, 13, null), (6, 10, null); -- Q3. windowing with order by DESC NULLS LAST select col1, col2, col3, sum(col2) over (partition by col1 order by col3 desc nulls last, col2 rows between 2 preceding and 2 following ) as sum_col2 from spark_10747 where col1 = 6 order by sum_col2; -- Q4. windowing with order by DESC NULLS FIRST select col1, col2, col3, sum(col2) over (partition by col1 order by col3 desc nulls first, col2 rows between 2 preceding and 2 following ) as sum_col2 from spark_10747 where col1 = 6 order by sum_col2; -- Q5. windowing with order by ASC NULLS LAST select col1, col2, col3, sum(col2) over (partition by col1 order by col3 asc nulls last, col2 rows between 2 preceding and 2 following ) as sum_col2 from spark_10747 where col1 = 6 order by sum_col2; -- Q6. windowing with order by ASC NULLS FIRST select col1, col2, col3, sum(col2) over (partition by col1 order by col3 asc nulls first, col2 rows between 2 preceding and 2 following ) as sum_col2 from spark_10747 where col1 = 6 order by sum_col2; -- Q7. Regular query with ORDER BY ASC NULLS FIRST SELECT COL1, COL2, COL3 FROM spark_10747 ORDER BY COL3 ASC NULLS FIRST, COL2; -- Q8. Regular query with ORDER BY ASC NULLS LAST SELECT COL1, COL2, COL3 FROM spark_10747 ORDER BY COL3 NULLS LAST, COL2; -- Q9. Regular query with ORDER BY DESC NULLS FIRST SELECT COL1, COL2, COL3 FROM spark_10747 ORDER BY COL3 DESC NULLS FIRST, COL2; -- Q10. Regular query with ORDER BY DESC NULLS LAST SELECT COL1, COL2, COL3 FROM spark_10747 ORDER BY COL3 DESC NULLS LAST, COL2; -- drop the test table drop table spark_10747; -- Q11. mix datatype for ORDER BY NULLS FIRST|LAST create table spark_10747_mix( col1 string, col2 int, col3 double, col4 decimal(10,2), col5 decimal(20,1)) using parquet; -- Q12. Insert to the table INSERT INTO spark_10747_mix VALUES ('b', 2, 1.0, 1.00, 10.0), ('d', 3, 2.0, 3.00, 0.0), ('c', 3, 2.0, 2.00, 15.1), ('d', 3, 0.0, 3.00, 1.0), (null, 3, 0.0, 3.00, 1.0), ('d', 3, null, 4.00, 1.0), ('a', 1, 1.0, 1.00, null), ('c', 3, 2.0, 2.00, null); -- Q13. Regular query with 2 NULLS LAST columns select * from spark_10747_mix order by col1 nulls last, col5 nulls last; -- Q14. Regular query with 2 NULLS FIRST columns select * from spark_10747_mix order by col1 desc nulls first, col5 desc nulls first; -- Q15. Regular query with mixed NULLS FIRST|LAST select * from spark_10747_mix order by col5 desc nulls first, col3 desc nulls last; -- drop the test table drop table spark_10747_mix; CREATE OR REPLACE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1), (2), (3), (4) as t1(int_col1); CREATE FUNCTION myDoubleAvg AS 'test.org.apache.spark.sql.MyDoubleAvg'; SELECT default.myDoubleAvg(int_col1) as my_avg from t1; SELECT default.myDoubleAvg(int_col1, 3) as my_avg from t1; CREATE FUNCTION udaf1 AS 'test.non.existent.udaf'; SELECT default.udaf1(int_col1) as udaf1 from t1; DROP FUNCTION myDoubleAvg; DROP FUNCTION udaf1; -- A test suite for functions added for compatibility with other databases such as Oracle, MSSQL. -- These functions are typically implemented using the trait RuntimeReplaceable. SELECT ifnull(null, 'x'), ifnull('y', 'x'), ifnull(null, null); SELECT nullif('x', 'x'), nullif('x', 'y'); SELECT nvl(null, 'x'), nvl('y', 'x'), nvl(null, null); SELECT nvl2(null, 'x', 'y'), nvl2('n', 'x', 'y'), nvl2(null, null, null); -- type coercion SELECT ifnull(1, 2.1d), ifnull(null, 2.1d); SELECT nullif(1, 2.1d), nullif(1, 1.0d); SELECT nvl(1, 2.1d), nvl(null, 2.1d); SELECT nvl2(null, 1, 2.1d), nvl2('n', 1, 2.1d); -- SPARK-16730 cast alias functions for Hive compatibility SELECT boolean(1), tinyint(1), smallint(1), int(1), bigint(1); SELECT float(1), double(1), decimal(1); SELECT date("2014-04-04"), timestamp(date("2014-04-04")); -- error handling: only one argument SELECT string(1, 2); -- SPARK-21555: RuntimeReplaceable used in group by CREATE TEMPORARY VIEW tempView1 AS VALUES (1, NAMED_STRUCT('col1', 'gamma', 'col2', 'delta')) AS T(id, st); SELECT nvl(st.col1, "value"), count(*) FROM from tempView1 GROUP BY nvl(st.col1, "value"); -- to_json select to_json(named_struct('a', 1, 'b', 2)); select to_json(named_struct('time', to_timestamp('2015-08-26', 'yyyy-MM-dd')), map('timestampFormat', 'dd/MM/yyyy')); select to_json(array(named_struct('a', 1, 'b', 2))); select to_json(map(named_struct('a', 1, 'b', 2), named_struct('a', 1, 'b', 2))); select to_json(map('a', named_struct('a', 1, 'b', 2))); select to_json(map('a', 1)); select to_json(array(map('a',1))); select to_json(array(map('a',1), map('b',2))); -- Check if errors handled select to_json(named_struct('a', 1, 'b', 2), named_struct('mode', 'PERMISSIVE')); select to_json(named_struct('a', 1, 'b', 2), map('mode', 1)); select to_json(); -- from_json select from_json('{"a":1}', 'a INT'); select from_json('{"time":"26/08/2015"}', 'time Timestamp', map('timestampFormat', 'dd/MM/yyyy')); -- Check if errors handled select from_json('{"a":1}', 1); select from_json('{"a":1}', 'a InvalidType'); select from_json('{"a":1}', 'a INT', named_struct('mode', 'PERMISSIVE')); select from_json('{"a":1}', 'a INT', map('mode', 1)); select from_json(); -- json_tuple SELECT json_tuple('{"a" : 1, "b" : 2}', CAST(NULL AS STRING), 'b', CAST(NULL AS STRING), 'a'); CREATE TEMPORARY VIEW jsonTable(jsonField, a) AS SELECT * FROM VALUES ('{"a": 1, "b": 2}', 'a'); SELECT json_tuple(jsonField, 'b', CAST(NULL AS STRING), a) FROM jsonTable; -- Clean up DROP VIEW IF EXISTS jsonTable; -- from_json - complex types select from_json('{"a":1, "b":2}', 'map<string, int>'); select from_json('{"a":1, "b":"2"}', 'struct<a:int,b:string>'); -- infer schema of json literal select schema_of_json('{"c1":0, "c2":[1]}'); select from_json('{"c1":[1, 2, 3]}', schema_of_json('{"c1":[0]}')); -- from_json - array type select from_json('[1, 2, 3]', 'array<int>'); select from_json('[1, "2", 3]', 'array<int>'); select from_json('[1, 2, null]', 'array<int>'); select from_json('[{"a": 1}, {"a":2}]', 'array<struct<a:int>>'); select from_json('{"a": 1}', 'array<struct<a:int>>'); select from_json('[null, {"a":2}]', 'array<struct<a:int>>'); select from_json('[{"a": 1}, {"b":2}]', 'array<map<string,int>>'); select from_json('[{"a": 1}, 2]', 'array<map<string,int>>'); -- to_json - array type select to_json(array('1', '2', '3')); select to_json(array(array(1, 2, 3), array(4))); -- infer schema of json literal using options select schema_of_json('{"c1":1}', map('primitivesAsString', 'true')); select schema_of_json('{"c1":01, "c2":0.1}', map('allowNumericLeadingZeros', 'true', 'prefersDecimal', 'true')); select schema_of_json(null); CREATE TEMPORARY VIEW jsonTable(jsonField, a) AS SELECT * FROM VALUES ('{"a": 1, "b": 2}', 'a'); SELECT schema_of_json(jsonField) FROM jsonTable; -- Clean up DROP VIEW IF EXISTS jsonTable; -- Test tables CREATE table desc_temp1 (key int COMMENT 'column_comment', val string) USING PARQUET; CREATE table desc_temp2 (key int, val string) USING PARQUET; -- Simple Describe query DESC SELECT key, key + 1 as plusone FROM desc_temp1; DESC QUERY SELECT * FROM desc_temp2; DESC SELECT key, COUNT(*) as count FROM desc_temp1 group by key; DESC SELECT 10.00D as col1; DESC QUERY SELECT key FROM desc_temp1 UNION ALL select CAST(1 AS DOUBLE); DESC QUERY VALUES(1.00D, 'hello') as tab1(col1, col2); DESC QUERY FROM desc_temp1 a SELECT *; DESC WITH s AS (SELECT 'hello' as col1) SELECT * FROM s; DESCRIBE QUERY WITH s AS (SELECT * from desc_temp1) SELECT * FROM s; DESCRIBE SELECT * FROM (FROM desc_temp2 select * select *); -- Error cases. DESCRIBE INSERT INTO desc_temp1 values (1, 'val1'); DESCRIBE INSERT INTO desc_temp1 SELECT * FROM desc_temp2; DESCRIBE FROM desc_temp1 a insert into desc_temp1 select * insert into desc_temp2 select *; -- Explain EXPLAIN DESC QUERY SELECT * FROM desc_temp2 WHERE key > 0; EXPLAIN EXTENDED DESC WITH s AS (SELECT 'hello' as col1) SELECT * FROM s; -- cleanup DROP TABLE desc_temp1; DROP TABLE desc_temp2; set spark.sql.parser.quotedRegexColumnNames=false; CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES (1, "1", "11"), (2, "2", "22"), (3, "3", "33"), (4, "4", "44"), (5, "5", "55"), (6, "6", "66") AS testData(key, value1, value2); CREATE OR REPLACE TEMPORARY VIEW testData2 AS SELECT * FROM VALUES (1, 1, 1, 2), (1, 2, 1, 2), (2, 1, 2, 3), (2, 2, 2, 3), (3, 1, 3, 4), (3, 2, 3, 4) AS testData2(A, B, c, d); -- AnalysisException SELECT `(a)?+.+` FROM testData2 WHERE a = 1; SELECT t.`(a)?+.+` FROM testData2 t WHERE a = 1; SELECT `(a|b)` FROM testData2 WHERE a = 2; SELECT `(a|b)?+.+` FROM testData2 WHERE a = 2; SELECT SUM(`(a|b)?+.+`) FROM testData2; SELECT SUM(`(a)`) FROM testData2; set spark.sql.parser.quotedRegexColumnNames=true; -- Regex columns SELECT `(a)?+.+` FROM testData2 WHERE a = 1; SELECT `(A)?+.+` FROM testData2 WHERE a = 1; SELECT t.`(a)?+.+` FROM testData2 t WHERE a = 1; SELECT t.`(A)?+.+` FROM testData2 t WHERE a = 1; SELECT `(a|B)` FROM testData2 WHERE a = 2; SELECT `(A|b)` FROM testData2 WHERE a = 2; SELECT `(a|B)?+.+` FROM testData2 WHERE a = 2; SELECT `(A|b)?+.+` FROM testData2 WHERE a = 2; SELECT `(e|f)` FROM testData2; SELECT t.`(e|f)` FROM testData2 t; SELECT p.`(KEY)?+.+`, b, testdata2.`(b)?+.+` FROM testData p join testData2 ON p.key = testData2.a WHERE key < 3; SELECT p.`(key)?+.+`, b, testdata2.`(b)?+.+` FROM testData p join testData2 ON p.key = testData2.a WHERE key < 3; set spark.sql.caseSensitive=true; CREATE OR REPLACE TEMPORARY VIEW testdata3 AS SELECT * FROM VALUES (0, 1), (1, 2), (2, 3), (3, 4) AS testdata3(a, b); -- Regex columns SELECT `(A)?+.+` FROM testdata3; SELECT `(a)?+.+` FROM testdata3; SELECT `(A)?+.+` FROM testdata3 WHERE a > 1; SELECT `(a)?+.+` FROM testdata3 where `a` > 1; SELECT SUM(`a`) FROM testdata3; SELECT SUM(`(a)`) FROM testdata3; SELECT SUM(`(a)?+.+`) FROM testdata3; SELECT SUM(a) FROM testdata3 GROUP BY `a`; -- AnalysisException SELECT SUM(a) FROM testdata3 GROUP BY `(a)`; SELECT SUM(a) FROM testdata3 GROUP BY `(a)?+.+`; -- Test data. CREATE DATABASE showdb; USE showdb; CREATE TABLE show_t1(a String, b Int, c String, d String) USING parquet PARTITIONED BY (c, d); ALTER TABLE show_t1 ADD PARTITION (c='Us', d=1); CREATE TABLE show_t2(b String, d Int) USING parquet; CREATE TEMPORARY VIEW show_t3(e int) USING parquet; CREATE GLOBAL TEMP VIEW show_t4 AS SELECT 1 as col1; -- SHOW TABLES SHOW TABLES; SHOW TABLES IN showdb; -- SHOW TABLES WITH wildcard match SHOW TABLES 'show_t*'; SHOW TABLES LIKE 'show_t1*|show_t2*'; SHOW TABLES IN showdb 'show_t*'; -- SHOW TABLE EXTENDED SHOW TABLE EXTENDED LIKE 'show_t*'; SHOW TABLE EXTENDED; -- SHOW TABLE EXTENDED ... PARTITION SHOW TABLE EXTENDED LIKE 'show_t1' PARTITION(c='Us', d=1); -- Throw a ParseException if table name is not specified. SHOW TABLE EXTENDED PARTITION(c='Us', d=1); -- Don't support regular expression for table name if a partition specification is present. SHOW TABLE EXTENDED LIKE 'show_t*' PARTITION(c='Us', d=1); -- Partition specification is not complete. SHOW TABLE EXTENDED LIKE 'show_t1' PARTITION(c='Us'); -- Partition specification is invalid. SHOW TABLE EXTENDED LIKE 'show_t1' PARTITION(a='Us', d=1); -- Partition specification doesn't exist. SHOW TABLE EXTENDED LIKE 'show_t1' PARTITION(c='Ch', d=1); -- Clean Up DROP TABLE show_t1; DROP TABLE show_t2; DROP VIEW show_t3; DROP VIEW global_temp.show_t4; USE default; DROP DATABASE showdb; -- The test file contains negative test cases -- of invalid queries where error messages are expected. CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1, 2, 3) AS t1(t1a, t1b, t1c); CREATE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (1, 0, 1) AS t2(t2a, t2b, t2c); CREATE TEMPORARY VIEW t3 AS SELECT * FROM VALUES (3, 1, 2) AS t3(t3a, t3b, t3c); -- TC 01.01 -- The column t2b in the SELECT of the subquery is invalid -- because it is neither an aggregate function nor a GROUP BY column. SELECT t1a, t2b FROM t1, t2 WHERE t1b = t2c AND t2b = (SELECT max(avg) FROM (SELECT t2b, avg(t2b) avg FROM t2 WHERE t2a = t1.t1b ) ) ; -- TC 01.02 -- Invalid due to the column t2b not part of the output from table t2. SELECT * FROM t1 WHERE t1a IN (SELECT min(t2a) FROM t2 GROUP BY t2c HAVING t2c IN (SELECT max(t3c) FROM t3 GROUP BY t3b HAVING t3b > t2b )) ; -- TC 01.03 -- Invalid due to mixure of outer and local references under an AggegatedExpression -- in a correlated predicate SELECT t1a FROM t1 GROUP BY 1 HAVING EXISTS (SELECT t2a FROM t2 GROUP BY 1 HAVING t2a < min(t1a + t2a)); -- TC 01.04 -- Invalid due to mixure of outer and local references under an AggegatedExpression SELECT t1a FROM t1 WHERE t1a IN (SELECT t2a FROM t2 WHERE EXISTS (SELECT 1 FROM t3 GROUP BY 1 HAVING min(t2a + t3a) > 1)); -- TC 01.05 -- Invalid due to outer reference appearing in projection list SELECT t1a FROM t1 WHERE t1a IN (SELECT t2a FROM t2 WHERE EXISTS (SELECT min(t2a) FROM t3)); -- The test file contains negative test cases -- of invalid queries where error messages are expected. CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1, 2, 3) AS t1(t1a, t1b, t1c); CREATE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (1, 0, 1) AS t2(t2a, t2b, t2c); CREATE TEMPORARY VIEW t3 AS SELECT * FROM VALUES (3, 1, 2) AS t3(t3a, t3b, t3c); CREATE TEMPORARY VIEW t4 AS SELECT * FROM VALUES (CAST(1 AS DOUBLE), CAST(2 AS STRING), CAST(3 AS STRING)) AS t1(t4a, t4b, t4c); CREATE TEMPORARY VIEW t5 AS SELECT * FROM VALUES (CAST(1 AS DECIMAL(18, 0)), CAST(2 AS STRING), CAST(3 AS BIGINT)) AS t1(t5a, t5b, t5c); -- TC 01.01 SELECT ( SELECT max(t2b), min(t2b) FROM t2 WHERE t2.t2b = t1.t1b GROUP BY t2.t2b ) FROM t1; -- TC 01.01 SELECT ( SELECT max(t2b), min(t2b) FROM t2 WHERE t2.t2b > 0 GROUP BY t2.t2b ) FROM t1; -- TC 01.03 SELECT * FROM t1 WHERE t1a IN (SELECT t2a, t2b FROM t2 WHERE t1a = t2a); -- TC 01.04 SELECT * FROM T1 WHERE (t1a, t1b) IN (SELECT t2a FROM t2 WHERE t1a = t2a); -- TC 01.05 SELECT * FROM t4 WHERE (t4a, t4b, t4c) IN (SELECT t5a, t5b, t5c FROM t5); -- Unit tests for simple NOT IN predicate subquery across multiple columns. -- -- See not-in-single-column-unit-tests.sql for an introduction. -- -- Test cases for multi-column ``WHERE a NOT IN (SELECT c FROM r ...)'': -- | # | does subquery include null? | do filter columns contain null? | a = c? | b = d? | row included in result? | -- | 1 | empty | * | * | * | yes | -- | 2 | 1+ row has null for all columns | * | * | * | no | -- | 3 | no row has null for all columns | (yes, yes) | * | * | no | -- | 4 | no row has null for all columns | (no, yes) | yes | * | no | -- | 5 | no row has null for all columns | (no, yes) | no | * | yes | -- | 6 | no | (no, no) | yes | yes | no | -- | 7 | no | (no, no) | _ | _ | yes | -- -- This can be generalized to include more tests for more columns, but it covers the main cases -- when there is more than one column. CREATE TEMPORARY VIEW m AS SELECT * FROM VALUES (null, null), (null, 1.0), (2, 3.0), (4, 5.0) AS m(a, b); CREATE TEMPORARY VIEW s AS SELECT * FROM VALUES (null, null), (0, 1.0), (2, 3.0), (4, null) AS s(c, d); -- Case 1 -- (subquery is empty -> row is returned) SELECT * FROM m WHERE (a, b) NOT IN (SELECT * FROM s WHERE d > 5.0) -- Matches no rows ; -- Case 2 -- (subquery contains a row with null in all columns -> row not returned) SELECT * FROM m WHERE (a, b) NOT IN (SELECT * FROM s WHERE c IS NULL AND d IS NULL) -- Matches only (null, null) ; -- Case 3 -- (probe-side columns are all null -> row not returned) SELECT * FROM m WHERE a IS NULL AND b IS NULL -- Matches only (null, null) AND (a, b) NOT IN (SELECT * FROM s WHERE c IS NOT NULL) -- Matches (0, 1.0), (2, 3.0), (4, null) ; -- Case 4 -- (one column null, other column matches a row in the subquery result -> row not returned) SELECT * FROM m WHERE b = 1.0 -- Matches (null, 1.0) AND (a, b) NOT IN (SELECT * FROM s WHERE c IS NOT NULL) -- Matches (0, 1.0), (2, 3.0), (4, null) ; -- Case 5 -- (one null column with no match -> row is returned) SELECT * FROM m WHERE b = 1.0 -- Matches (null, 1.0) AND (a, b) NOT IN (SELECT * FROM s WHERE c = 2) -- Matches (2, 3.0) ; -- Case 6 -- (no null columns with match -> row not returned) SELECT * FROM m WHERE b = 3.0 -- Matches (2, 3.0) AND (a, b) NOT IN (SELECT * FROM s WHERE c = 2) -- Matches (2, 3.0) ; -- Case 7 -- (no null columns with no match -> row is returned) SELECT * FROM m WHERE b = 5.0 -- Matches (4, 5.0) AND (a, b) NOT IN (SELECT * FROM s WHERE c = 2) -- Matches (2, 3.0) ; -- A test suite for multiple columns in predicate in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- TC 01.01 SELECT t1a, t1b, t1h FROM t1 WHERE ( t1a, t1h ) NOT IN (SELECT t2a, t2h FROM t2 WHERE t2a = t1a ORDER BY t2a) AND t1a = 'val1a'; -- TC 01.02 SELECT t1a, t1b, t1d FROM t1 WHERE ( t1b, t1d ) IN (SELECT t2b, t2d FROM t2 WHERE t2i IN (SELECT t3i FROM t3 WHERE t2b > t3b)); -- TC 01.03 SELECT t1a, t1b, t1d FROM t1 WHERE ( t1b, t1d ) NOT IN (SELECT t2b, t2d FROM t2 WHERE t2h IN (SELECT t3h FROM t3 WHERE t2b > t3b)) AND t1a = 'val1a'; -- TC 01.04 SELECT t2a FROM (SELECT t2a FROM t2 WHERE ( t2a, t2b ) IN (SELECT t1a, t1b FROM t1) UNION ALL SELECT t2a FROM t2 WHERE ( t2a, t2b ) IN (SELECT t1a, t1b FROM t1) UNION DISTINCT SELECT t2a FROM t2 WHERE ( t2a, t2b ) IN (SELECT t3a, t3b FROM t3)) AS t4; -- TC 01.05 WITH cte1 AS ( SELECT t1a, t1b FROM t1 WHERE ( t1b, t1d) IN ( SELECT t2b, t2d FROM t2 WHERE t1c = t2c)) SELECT * FROM ( SELECT * FROM cte1 JOIN cte1 cte2 on cte1.t1b = cte2.t1b) s; -- A test suite for NOT IN GROUP BY in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- GROUP BY in parent side -- TC 01.01 SELECT t1a, Avg(t1b) FROM t1 WHERE t1a NOT IN (SELECT t2a FROM t2) GROUP BY t1a; -- TC 01.02 SELECT t1a, Sum(DISTINCT( t1b )) FROM t1 WHERE t1d NOT IN (SELECT t2d FROM t2 WHERE t1h < t2h) GROUP BY t1a; -- TC 01.03 SELECT Count(*) FROM (SELECT * FROM t2 WHERE t2a NOT IN (SELECT t3a FROM t3 WHERE t3h != t2h)) t2 WHERE t2b NOT IN (SELECT Min(t2b) FROM t2 WHERE t2b = t2b GROUP BY t2c); -- TC 01.04 SELECT t1a, max(t1b) FROM t1 WHERE t1c NOT IN (SELECT Max(t2b) FROM t2 WHERE t1a = t2a GROUP BY t2a) GROUP BY t1a; -- TC 01.05 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2b FROM t2 WHERE t2a NOT IN (SELECT Min(t3a) FROM t3 WHERE t3a = t2a GROUP BY t3b) order by t2a); -- A test suite for not-in-joins in parent side, subquery, and both predicate subquery -- It includes correlated cases. -- List of configuration the test suite is run against: --SET spark.sql.autoBroadcastJoinThreshold=10485760 --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=true --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=false create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- different not JOIN in parent side -- TC 01.01 SELECT t1a, t1b, t1c, t3a, t3b, t3c FROM t1 JOIN t3 WHERE t1a NOT IN (SELECT t2a FROM t2) AND t1b = t3b; -- TC 01.02 SELECT t1a, t1b, t1c, count(distinct(t3a)), t3b, t3c FROM t1 FULL OUTER JOIN t3 on t1b != t3b RIGHT JOIN t2 on t1c = t2c where t1a NOT IN ( SELECT t2a FROM t2 WHERE t2c NOT IN ( SELECT t1c FROM t1 WHERE t1a = t2a)) AND t1b != t3b AND t1d = t2d GROUP BY t1a, t1b, t1c, t3a, t3b, t3c HAVING count(distinct(t3a)) >= 1 ORDER BY t1a, t3b; -- TC 01.03 SELECT t1a, t1b, t1c, t1d, t1h FROM t1 WHERE t1a NOT IN ( SELECT t2a FROM t2 LEFT JOIN t3 on t2b = t3b WHERE t1d = t2d ) AND t1d NOT IN ( SELECT t2d FROM t2 RIGHT JOIN t1 on t2e = t1e WHERE t1a = t2a); -- TC 01.04 SELECT Count(DISTINCT( t1a )), t1b, t1c, t1d FROM t1 WHERE t1a NOT IN (SELECT t2a FROM t2 JOIN t1 WHERE t2b <> t1b) GROUP BY t1b, t1c, t1d HAVING t1d NOT IN (SELECT t2d FROM t2 WHERE t1d = t2d) ORDER BY t1b DESC; -- TC 01.05 SELECT COUNT(DISTINCT(t1a)), t1b, t1c, t1d FROM t1 WHERE t1a NOT IN ( SELECT t2a FROM t2 INNER JOIN t1 ON t1a = t2a) GROUP BY t1b, t1c, t1d HAVING t1b < sum(t1c); -- TC 01.06 SELECT COUNT(DISTINCT(t1a)), t1b, t1c, t1d FROM t1 WHERE t1a NOT IN ( SELECT t2a FROM t2 INNER JOIN t1 ON t1a = t2a) AND t1d NOT IN ( SELECT t2d FROM t2 INNER JOIN t3 ON t2b = t3b ) GROUP BY t1b, t1c, t1d HAVING t1b < sum(t1c); -- A test suite for GROUP BY in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("t1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("t1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("t1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("t1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("t1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("t1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("t1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("t1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("t1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("t1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("t1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("t1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("t2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("t1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("t1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("t1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("t1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("t2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("t1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("t1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("t1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("t1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("t1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("t1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("t1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("t3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("t3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("t1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("t3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("t3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("t1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("t1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("t3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- GROUP BY in parent side -- TC 01.01 SELECT t1a, Avg(t1b) FROM t1 WHERE t1a IN (SELECT t2a FROM t2) GROUP BY t1a; -- TC 01.02 SELECT t1a, Max(t1b) FROM t1 WHERE t1b IN (SELECT t2b FROM t2 WHERE t1a = t2a) GROUP BY t1a, t1d; -- TC 01.03 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t1a = t2a) GROUP BY t1a, t1b; -- TC 01.04 SELECT t1a, Sum(DISTINCT( t1b )) FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t1a = t2a) OR t1c IN (SELECT t3c FROM t3 WHERE t1a = t3a) GROUP BY t1a, t1c; -- TC 01.05 SELECT t1a, Sum(DISTINCT( t1b )) FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t1a = t2a) AND t1c IN (SELECT t3c FROM t3 WHERE t1a = t3a) GROUP BY t1a, t1c; -- TC 01.06 SELECT t1a, Count(DISTINCT( t1b )) FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t1a = t2a) GROUP BY t1a, t1c HAVING t1a = "t1b"; -- GROUP BY in subquery -- TC 01.07 SELECT * FROM t1 WHERE t1b IN (SELECT Max(t2b) FROM t2 GROUP BY t2a); -- TC 01.08 SELECT * FROM (SELECT t2a, t2b FROM t2 WHERE t2a IN (SELECT t1a FROM t1 WHERE t1b = t2b) GROUP BY t2a, t2b) t2; -- TC 01.09 SELECT Count(DISTINCT( * )) FROM t1 WHERE t1b IN (SELECT Min(t2b) FROM t2 WHERE t1a = t2a AND t1c = t2c GROUP BY t2a); -- TC 01.10 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT Max(t2c) FROM t2 WHERE t1a = t2a GROUP BY t2a, t2c HAVING t2c > 8); -- TC 01.11 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t2a IN (SELECT Min(t3a) FROM t3 WHERE t3a = t2a GROUP BY t3b) GROUP BY t2c); -- GROUP BY in both -- TC 01.12 SELECT t1a, Min(t1b) FROM t1 WHERE t1c IN (SELECT Min(t2c) FROM t2 WHERE t2b = t1b GROUP BY t2a) GROUP BY t1a; -- TC 01.13 SELECT t1a, Min(t1b) FROM t1 WHERE t1c IN (SELECT Min(t2c) FROM t2 WHERE t2b IN (SELECT Min(t3b) FROM t3 WHERE t2a = t3a GROUP BY t3a) GROUP BY t2c) GROUP BY t1a, t1d; -- TC 01.14 SELECT t1a, Min(t1b) FROM t1 WHERE t1c IN (SELECT Min(t2c) FROM t2 WHERE t2b = t1b GROUP BY t2a) AND t1d IN (SELECT t3d FROM t3 WHERE t1c = t3c GROUP BY t3d) GROUP BY t1a; -- TC 01.15 SELECT t1a, Min(t1b) FROM t1 WHERE t1c IN (SELECT Min(t2c) FROM t2 WHERE t2b = t1b GROUP BY t2a) OR t1d IN (SELECT t3d FROM t3 WHERE t1c = t3c GROUP BY t3d) GROUP BY t1a; -- TC 01.16 SELECT t1a, Min(t1b) FROM t1 WHERE t1c IN (SELECT Min(t2c) FROM t2 WHERE t2b = t1b GROUP BY t2a HAVING t2a > t1a) OR t1d IN (SELECT t3d FROM t3 WHERE t1c = t3c GROUP BY t3d HAVING t3d = t1d) GROUP BY t1a HAVING Min(t1b) IS NOT NULL; -- A test suite for simple IN predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("t1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("t1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("t1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("t1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("t1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("t1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("t1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("t1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("t1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("t1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("t1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("t1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("t2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("t1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("t1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("t1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("t1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("t2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("t1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("t1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("t1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("t1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("t1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("t1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("t1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("t3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("t3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("t1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("t3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("t3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("t1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("t1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("t3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("t3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- simple select -- TC 01.01 SELECT * FROM t1 WHERE t1a IN (SELECT t2a FROM t2); -- TC 01.02 SELECT * FROM t1 WHERE t1b IN (SELECT t2b FROM t2 WHERE t1a = t2a); -- TC 01.03 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2b FROM t2 WHERE t1a != t2a); -- TC 01.04 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2b FROM t2 WHERE t1a = t2a OR t1b > t2b); -- TC 01.05 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2b FROM t2 WHERE t2i IN (SELECT t3i FROM t3 WHERE t2c = t3c)); -- TC 01.06 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2b FROM t2 WHERE t2a IN (SELECT t3a FROM t3 WHERE t2c = t3c AND t2b IS NOT NULL)); -- simple select for NOT IN -- TC 01.07 SELECT DISTINCT( t1a ), t1b, t1h FROM t1 WHERE t1a NOT IN (SELECT t2a FROM t2); -- DDLs create temporary view a as select * from values (1, 1), (2, 1), (null, 1), (1, 3), (null, 3), (1, null), (null, 2) as a(a1, a2); create temporary view b as select * from values (1, 1, 2), (null, 3, 2), (1, null, 2), (1, 2, null) as b(b1, b2, b3); -- TC 02.01 SELECT a1, a2 FROM a WHERE a1 NOT IN (SELECT b.b1 FROM b WHERE a.a2 = b.b2) ; -- TC 02.02 SELECT a1, a2 FROM a WHERE a1 NOT IN (SELECT b.b1 FROM b WHERE a.a2 = b.b2 AND b.b3 > 1) ; -- A test suite for in with cte in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- outside CTE -- TC 01.01 WITH cte1 AS (SELECT t1a, t1b FROM t1 WHERE t1a = "val1a") SELECT t1a, t1b, t1c, t1d, t1h FROM t1 WHERE t1b IN (SELECT cte1.t1b FROM cte1 WHERE cte1.t1b > 0); -- TC 01.02 WITH cte1 AS ( SELECT t1a, t1b FROM t1) SELECT count(distinct(t1a)), t1b, t1c FROM t1 WHERE t1b IN ( SELECT cte1.t1b FROM cte1 WHERE cte1.t1b > 0 UNION SELECT cte1.t1b FROM cte1 WHERE cte1.t1b > 5 UNION ALL SELECT cte1.t1b FROM cte1 INTERSECT SELECT cte1.t1b FROM cte1 UNION SELECT cte1.t1b FROM cte1 ) GROUP BY t1a, t1b, t1c HAVING t1c IS NOT NULL; -- TC 01.03 WITH cte1 AS ( SELECT t1a, t1b, t1c, t1d, t1e FROM t1) SELECT t1a, t1b, t1c, t1h FROM t1 WHERE t1c IN ( SELECT cte1.t1c FROM cte1 JOIN cte1 cte2 on cte1.t1b > cte2.t1b FULL OUTER JOIN cte1 cte3 ON cte1.t1c = cte3.t1c LEFT JOIN cte1 cte4 ON cte1.t1d = cte4.t1d INNER JOIN cte1 cte5 ON cte1.t1b < cte5.t1b LEFT OUTER JOIN cte1 cte6 ON cte1.t1d > cte6.t1d); -- CTE inside and outside -- TC 01.04 WITH cte1 AS (SELECT t1a, t1b FROM t1 WHERE t1b IN (SELECT t2b FROM t2 RIGHT JOIN t1 ON t1c = t2c LEFT JOIN t3 ON t2d = t3d) AND t1a = "val1b") SELECT * FROM (SELECT * FROM cte1 JOIN cte1 cte2 ON cte1.t1b > 5 AND cte1.t1a = cte2.t1a FULL OUTER JOIN cte1 cte3 ON cte1.t1a = cte3.t1a INNER JOIN cte1 cte4 ON cte1.t1b = cte4.t1b) s; -- TC 01.05 WITH cte1 AS ( SELECT t1a, t1b, t1h FROM t1 WHERE t1a IN ( SELECT t2a FROM t2 WHERE t1b < t2b)) SELECT Count(DISTINCT t1a), t1b FROM ( SELECT cte1.t1a, cte1.t1b FROM cte1 JOIN cte1 cte2 on cte1.t1h >= cte2.t1h) s WHERE t1b IN ( SELECT t1b FROM t1) GROUP BY t1b; -- TC 01.06 WITH cte1 AS ( SELECT t1a, t1b, t1c FROM t1 WHERE t1b IN ( SELECT t2b FROM t2 FULL OUTER JOIN T3 on t2a = t3a WHERE t1c = t2c) AND t1a = "val1b") SELECT * FROM ( SELECT * FROM cte1 INNER JOIN cte1 cte2 ON cte1.t1a = cte2.t1a RIGHT OUTER JOIN cte1 cte3 ON cte1.t1b = cte3.t1b LEFT OUTER JOIN cte1 cte4 ON cte1.t1c = cte4.t1c ) s ; -- TC 01.07 WITH cte1 AS (SELECT t1a, t1b FROM t1 WHERE t1b IN (SELECT t2b FROM t2 WHERE t1c = t2c)) SELECT Count(DISTINCT( s.t1a )), s.t1b FROM (SELECT cte1.t1a, cte1.t1b FROM cte1 RIGHT OUTER JOIN cte1 cte2 ON cte1.t1a = cte2.t1a) s GROUP BY s.t1b; -- TC 01.08 WITH cte1 AS ( SELECT t1a, t1b FROM t1 WHERE t1b IN ( SELECT t2b FROM t2 WHERE t1c = t2c)) SELECT DISTINCT(s.t1b) FROM ( SELECT cte1.t1b FROM cte1 LEFT OUTER JOIN cte1 cte2 ON cte1.t1b = cte2.t1b) s WHERE s.t1b IN ( SELECT t1.t1b FROM t1 INNER JOIN cte1 ON t1.t1a = cte1.t1a); -- CTE with NOT IN -- TC 01.09 WITH cte1 AS (SELECT t1a, t1b FROM t1 WHERE t1a = "val1d") SELECT t1a, t1b, t1c, t1h FROM t1 WHERE t1b NOT IN (SELECT cte1.t1b FROM cte1 WHERE cte1.t1b < 0) AND t1c > 10; -- TC 01.10 WITH cte1 AS ( SELECT t1a, t1b, t1c, t1d, t1h FROM t1 WHERE t1d NOT IN ( SELECT t2d FROM t2 FULL OUTER JOIN t3 ON t2a = t3a JOIN t1 on t1b = t2b)) SELECT t1a, t1b, t1c, t1d, t1h FROM t1 WHERE t1b NOT IN ( SELECT cte1.t1b FROM cte1 INNER JOIN cte1 cte2 ON cte1.t1a = cte2.t1a RIGHT JOIN cte1 cte3 ON cte1.t1b = cte3.t1b JOIN cte1 cte4 ON cte1.t1c = cte4.t1c) AND t1c IS NOT NULL ORDER BY t1c DESC; -- A test suite for set-operations in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- UNION, UNION ALL, UNION DISTINCT, INTERSECT and EXCEPT in the parent -- TC 01.01 SELECT t2a, t2b, t2c, t2h, t2i FROM (SELECT * FROM t2 WHERE t2a IN (SELECT t1a FROM t1) UNION ALL SELECT * FROM t3 WHERE t3a IN (SELECT t1a FROM t1)) AS t3 WHERE t2i IS NOT NULL AND 2 * t2b = t2c ORDER BY t2c DESC nulls first; -- TC 01.02 SELECT t2a, t2b, t2d, Count(DISTINCT( t2h )), t2i FROM (SELECT * FROM t2 WHERE t2a IN (SELECT t1a FROM t1 WHERE t2b = t1b) UNION SELECT * FROM t1 WHERE t1a IN (SELECT t3a FROM t3 WHERE t1c = t3c)) AS t3 GROUP BY t2a, t2b, t2d, t2i ORDER BY t2d DESC; -- TC 01.03 SELECT t2a, t2b, t2c, Min(t2d) FROM t2 WHERE t2a IN (SELECT t1a FROM t1 WHERE t1b = t2b) GROUP BY t2a, t2b, t2c UNION ALL SELECT t2a, t2b, t2c, Max(t2d) FROM t2 WHERE t2a IN (SELECT t1a FROM t1 WHERE t2c = t1c) GROUP BY t2a, t2b, t2c UNION SELECT t3a, t3b, t3c, Min(t3d) FROM t3 WHERE t3a IN (SELECT t2a FROM t2 WHERE t3c = t2c) GROUP BY t3a, t3b, t3c UNION DISTINCT SELECT t1a, t1b, t1c, Max(t1d) FROM t1 WHERE t1a IN (SELECT t3a FROM t3 WHERE t3d = t1d) GROUP BY t1a, t1b, t1c; -- TC 01.04 SELECT DISTINCT( t2a ), t2b, Count(t2c), t2d, t2h, t2i FROM t2 WHERE t2a IN (SELECT t1a FROM t1 WHERE t1b = t2b) GROUP BY t2a, t2b, t2c, t2d, t2h, t2i UNION SELECT DISTINCT( t2a ), t2b, Count(t2c), t2d, t2h, t2i FROM t2 WHERE t2a IN (SELECT t1a FROM t1 WHERE t2c = t1c) GROUP BY t2a, t2b, t2c, t2d, t2h, t2i HAVING t2b IS NOT NULL; -- TC 01.05 SELECT t2a, t2b, Count(t2c), t2d, t2h, t2i FROM t2 WHERE t2a IN (SELECT DISTINCT(t1a) FROM t1 WHERE t1b = t2b) GROUP BY t2a, t2b, t2c, t2d, t2h, t2i UNION SELECT DISTINCT( t2a ), t2b, Count(t2c), t2d, t2h, t2i FROM t2 WHERE t2b IN (SELECT Max(t1b) FROM t1 WHERE t2c = t1c) GROUP BY t2a, t2b, t2c, t2d, t2h, t2i HAVING t2b IS NOT NULL UNION DISTINCT SELECT t2a, t2b, t2c, t2d, t2h, t2i FROM t2 WHERE t2d IN (SELECT min(t1d) FROM t1 WHERE t2c = t1c); -- TC 01.06 SELECT t2a, t2b, t2c, t2d FROM t2 WHERE t2a IN (SELECT t1a FROM t1 WHERE t1b = t2b AND t1d < t2d) INTERSECT SELECT t2a, t2b, t2c, t2d FROM t2 WHERE t2b IN (SELECT Max(t1b) FROM t1 WHERE t2c = t1c) EXCEPT SELECT t2a, t2b, t2c, t2d FROM t2 WHERE t2d IN (SELECT Min(t3d) FROM t3 WHERE t2c = t3c) UNION ALL SELECT t2a, t2b, t2c, t2d FROM t2 WHERE t2c IN (SELECT Max(t1c) FROM t1 WHERE t1d = t2d); -- UNION, UNION ALL, UNION DISTINCT, INTERSECT and EXCEPT in the subquery -- TC 01.07 SELECT DISTINCT(t1a), t1b, t1c, t1d FROM t1 WHERE t1a IN (SELECT t3a FROM (SELECT t2a t3a FROM t2 UNION ALL SELECT t2a t3a FROM t2) AS t3 UNION SELECT t2a FROM (SELECT t2a FROM t2 WHERE t2b > 6 UNION SELECT t2a FROM t2 WHERE t2b > 6) AS t4 UNION DISTINCT SELECT t2a FROM (SELECT t2a FROM t2 WHERE t2b > 6 UNION DISTINCT SELECT t1a FROM t1 WHERE t1b > 6) AS t5) GROUP BY t1a, t1b, t1c, t1d HAVING t1c IS NOT NULL AND t1b IS NOT NULL ORDER BY t1c DESC, t1a DESC; -- TC 01.08 SELECT t1a, t1b, t1c FROM t1 WHERE t1b IN (SELECT t2b FROM (SELECT t2b FROM t2 WHERE t2b > 6 INTERSECT SELECT t1b FROM t1 WHERE t1b > 6) AS t3 WHERE t2b = t1b); -- TC 01.09 SELECT t1a, t1b, t1c FROM t1 WHERE t1h IN (SELECT t2h FROM (SELECT t2h FROM t2 EXCEPT SELECT t3h FROM t3) AS t3) ORDER BY t1b DESC NULLs first, t1c DESC NULLs last; -- UNION, UNION ALL, UNION DISTINCT, INTERSECT and EXCEPT in the parent and subquery -- TC 01.10 SELECT t1a, t1b, t1c FROM t1 WHERE t1b IN ( SELECT t2b FROM ( SELECT t2b FROM t2 WHERE t2b > 6 INTERSECT SELECT t1b FROM t1 WHERE t1b > 6) AS t3) UNION DISTINCT SELECT t1a, t1b, t1c FROM t1 WHERE t1b IN ( SELECT t2b FROM ( SELECT t2b FROM t2 WHERE t2b > 6 EXCEPT SELECT t1b FROM t1 WHERE t1b > 6) AS t4 WHERE t2b = t1b) ORDER BY t1c DESC NULLS last, t1a DESC; -- TC 01.11 SELECT * FROM (SELECT * FROM (SELECT * FROM t2 WHERE t2h IN (SELECT t1h FROM t1 WHERE t1a = t2a) UNION DISTINCT SELECT * FROM t1 WHERE t1h IN (SELECT t3h FROM t3 UNION SELECT t1h FROM t1) UNION SELECT * FROM t3 WHERE t3a IN (SELECT t2a FROM t2 UNION ALL SELECT t1a FROM t1 WHERE t1b > 0) INTERSECT SELECT * FROM T1 WHERE t1b IN (SELECT t3b FROM t3 UNION DISTINCT SELECT t2b FROM t2 ) EXCEPT SELECT * FROM t2 WHERE t2h IN (SELECT t1i FROM t1)) t4 WHERE t4.t2b IN (SELECT Min(t3b) FROM t3 WHERE t4.t2a = t3a)); -- UNION, UNION ALL, UNION DISTINCT, INTERSECT and EXCEPT for NOT IN -- TC 01.12 SELECT t2a, t2b, t2c, t2i FROM (SELECT * FROM t2 WHERE t2a NOT IN (SELECT t1a FROM t1 UNION SELECT t3a FROM t3) UNION ALL SELECT * FROM t2 WHERE t2a NOT IN (SELECT t1a FROM t1 INTERSECT SELECT t2a FROM t2)) AS t3 WHERE t3.t2a NOT IN (SELECT t1a FROM t1 INTERSECT SELECT t2a FROM t2) AND t2c IS NOT NULL ORDER BY t2a; -- TC 01.13 SELECT Count(DISTINCT(t1a)), t1b, t1c, t1i FROM t1 WHERE t1b NOT IN ( SELECT t2b FROM ( SELECT t2b FROM t2 WHERE t2b NOT IN ( SELECT t1b FROM t1) UNION SELECT t1b FROM t1 WHERE t1b NOT IN ( SELECT t3b FROM t3) UNION distinct SELECT t3b FROM t3 WHERE t3b NOT IN ( SELECT t2b FROM t2)) AS t3 WHERE t2b = t1b) GROUP BY t1a, t1b, t1c, t1i HAVING t1b NOT IN ( SELECT t2b FROM t2 WHERE t2c IS NULL EXCEPT SELECT t3b FROM t3) ORDER BY t1c DESC NULLS LAST, t1i; -- Unit tests for simple NOT IN with a literal expression of a single column -- -- More information can be found in not-in-unit-tests-single-column.sql. -- This file has the same test cases as not-in-unit-tests-single-column.sql with literals instead of -- subqueries. CREATE TEMPORARY VIEW m AS SELECT * FROM VALUES (null, 1.0), (2, 3.0), (4, 5.0) AS m(a, b); -- Uncorrelated NOT IN Subquery test cases -- Case 1 (not possible to write a literal with no rows, so we ignore it.) -- (empty subquery -> all rows returned) -- Case 2 -- (subquery includes null -> no rows returned) SELECT * FROM m WHERE a NOT IN (null); -- Case 3 -- (probe column is null -> row not returned) SELECT * FROM m WHERE b = 1.0 -- Only matches (null, 1.0) AND a NOT IN (2); -- Case 4 -- (probe column matches subquery row -> row not returned) SELECT * FROM m WHERE b = 3.0 -- Only matches (2, 3.0) AND a NOT IN (2); -- Case 5 -- (probe column does not match subquery row -> row is returned) SELECT * FROM m WHERE b = 3.0 -- Only matches (2, 3.0) AND a NOT IN (6); -- Unit tests for simple NOT IN predicate subquery across a single column. -- -- ``col NOT IN expr'' is quite difficult to reason about. There are many edge cases, some of the -- rules are confusing to the uninitiated, and precedence and treatment of null values is plain -- unintuitive. To make this simpler to understand, I've come up with a plain English way of -- describing the expected behavior of this query. -- -- - If the subquery is empty (i.e. returns no rows), the row should be returned, regardless of -- whether the filtered columns include nulls. -- - If the subquery contains a result with all columns null, then the row should not be returned. -- - If for all non-null filter columns there exists a row in the subquery in which each column -- either -- 1. is equal to the corresponding filter column or -- 2. is null -- then the row should not be returned. (This includes the case where all filter columns are -- null.) -- - Otherwise, the row should be returned. -- -- Using these rules, we can come up with a set of test cases for single-column and multi-column -- NOT IN test cases. -- -- Test cases for single-column ``WHERE a NOT IN (SELECT c FROM r ...)'': -- | # | does subquery include null? | is a null? | a = c? | row with a included in result? | -- | 1 | empty | | | yes | -- | 2 | yes | | | no | -- | 3 | no | yes | | no | -- | 4 | no | no | yes | no | -- | 5 | no | no | no | yes | -- -- There are also some considerations around correlated subqueries. Correlated subqueries can -- cause cases 2, 3, or 4 to be reduced to case 1 by limiting the number of rows returned by the -- subquery, so the row from the parent table should always be included in the output. CREATE TEMPORARY VIEW m AS SELECT * FROM VALUES (null, 1.0), (2, 3.0), (4, 5.0) AS m(a, b); CREATE TEMPORARY VIEW s AS SELECT * FROM VALUES (null, 1.0), (2, 3.0), (6, 7.0) AS s(c, d); -- Uncorrelated NOT IN Subquery test cases -- Case 1 -- (empty subquery -> all rows returned) SELECT * FROM m WHERE a NOT IN (SELECT c FROM s WHERE d > 10.0) -- (empty subquery) ; -- Case 2 -- (subquery includes null -> no rows returned) SELECT * FROM m WHERE a NOT IN (SELECT c FROM s WHERE d = 1.0) -- Only matches (null, 1.0) ; -- Case 3 -- (probe column is null -> row not returned) SELECT * FROM m WHERE b = 1.0 -- Only matches (null, 1.0) AND a NOT IN (SELECT c FROM s WHERE d = 3.0) -- Matches (2, 3.0) ; -- Case 4 -- (probe column matches subquery row -> row not returned) SELECT * FROM m WHERE b = 3.0 -- Only matches (2, 3.0) AND a NOT IN (SELECT c FROM s WHERE d = 3.0) -- Matches (2, 3.0) ; -- Case 5 -- (probe column does not match subquery row -> row is returned) SELECT * FROM m WHERE b = 3.0 -- Only matches (2, 3.0) AND a NOT IN (SELECT c FROM s WHERE d = 7.0) -- Matches (6, 7.0) ; -- Correlated NOT IN subquery test cases -- Case 2->1 -- (subquery had nulls but they are removed by correlated subquery -> all rows returned) SELECT * FROM m WHERE a NOT IN (SELECT c FROM s WHERE d = b + 10) -- Matches no row ; -- Case 3->1 -- (probe column is null but subquery returns no rows -> row is returned) SELECT * FROM m WHERE b = 1.0 -- Only matches (null, 1.0) AND a NOT IN (SELECT c FROM s WHERE d = b + 10) -- Matches no row ; -- Case 4->1 -- (probe column matches row which is filtered out by correlated subquery -> row is returned) SELECT * FROM m WHERE b = 3.0 -- Only matches (2, 3.0) AND a NOT IN (SELECT c FROM s WHERE d = b + 10) -- Matches no row ; -- Unit tests for simple NOT IN predicate subquery across multiple columns. -- -- See not-in-single-column-unit-tests.sql for an introduction. -- This file has the same test cases as not-in-unit-tests-multi-column.sql with literals instead of -- subqueries. Small changes have been made to the literals to make them typecheck. CREATE TEMPORARY VIEW m AS SELECT * FROM VALUES (null, null), (null, 1.0), (2, 3.0), (4, 5.0) AS m(a, b); -- Case 1 (not possible to write a literal with no rows, so we ignore it.) -- (subquery is empty -> row is returned) -- Cases 2, 3 and 4 are currently broken, so I have commented them out here. -- Filed https://issues.apache.org/jira/browse/SPARK-24395 to fix and restore these test cases. -- Case 5 -- (one null column with no match -> row is returned) SELECT * FROM m WHERE b = 1.0 -- Matches (null, 1.0) AND (a, b) NOT IN ((2, 3.0)); -- Case 6 -- (no null columns with match -> row not returned) SELECT * FROM m WHERE b = 3.0 -- Matches (2, 3.0) AND (a, b) NOT IN ((2, 3.0)); -- Case 7 -- (no null columns with no match -> row is returned) SELECT * FROM m WHERE b = 5.0 -- Matches (4, 5.0) AND (a, b) NOT IN ((2, 3.0)); -- A test suite for IN JOINS in parent side, subquery, and both predicate subquery -- It includes correlated cases. -- List of configuration the test suite is run against: --SET spark.sql.autoBroadcastJoinThreshold=10485760 --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=true --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=false create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- different JOIN in parent side -- TC 01.01 SELECT t1a, t1b, t1c, t3a, t3b, t3c FROM t1 natural JOIN t3 WHERE t1a IN (SELECT t2a FROM t2 WHERE t1a = t2a) AND t1b = t3b AND t1a = t3a ORDER BY t1a, t1b, t1c DESC nulls first; -- TC 01.02 SELECT Count(DISTINCT(t1a)), t1b, t3a, t3b, t3c FROM t1 natural left JOIN t3 WHERE t1a IN ( SELECT t2a FROM t2 WHERE t1d = t2d) AND t1b > t3b GROUP BY t1a, t1b, t3a, t3b, t3c ORDER BY t1a DESC, t3b DESC; -- TC 01.03 SELECT Count(DISTINCT(t1a)) FROM t1 natural right JOIN t3 WHERE t1a IN ( SELECT t2a FROM t2 WHERE t1b = t2b) AND t1d IN ( SELECT t2d FROM t2 WHERE t1c > t2c) AND t1a = t3a GROUP BY t1a ORDER BY t1a; -- TC 01.04 SELECT t1a, t1b, t1c, t3a, t3b, t3c FROM t1 FULL OUTER JOIN t3 where t1a IN ( SELECT t2a FROM t2 WHERE t2c IS NOT NULL) AND t1b != t3b AND t1a = 'val1b' ORDER BY t1a; -- TC 01.05 SELECT Count(DISTINCT(t1a)), t1b FROM t1 RIGHT JOIN t3 where t1a IN ( SELECT t2a FROM t2 WHERE t2h > t3h) AND t3a IN ( SELECT t2a FROM t2 WHERE t2c > t3c) AND t1h >= t3h GROUP BY t1a, t1b HAVING t1b > 8 ORDER BY t1a; -- TC 01.06 SELECT Count(DISTINCT(t1a)) FROM t1 LEFT OUTER JOIN t3 ON t1a = t3a WHERE t1a IN ( SELECT t2a FROM t2 WHERE t1h < t2h ) GROUP BY t1a ORDER BY t1a; -- TC 01.07 SELECT Count(DISTINCT(t1a)), t1b FROM t1 INNER JOIN t2 ON t1a > t2a WHERE t1b IN ( SELECT t2b FROM t2 WHERE t2h > t1h) OR t1a IN ( SELECT t2a FROM t2 WHERE t2h < t1h) GROUP BY t1b HAVING t1b > 6; -- different JOIN in the subquery -- TC 01.08 SELECT Count(DISTINCT(t1a)), t1b FROM t1 WHERE t1a IN ( SELECT t2a FROM t2 JOIN t1 WHERE t2b <> t1b) AND t1h IN ( SELECT t2h FROM t2 RIGHT JOIN t3 where t2b = t3b) GROUP BY t1b HAVING t1b > 8; -- TC 01.09 SELECT Count(DISTINCT(t1a)), t1b FROM t1 WHERE t1a IN ( SELECT t2a FROM t2 JOIN t1 WHERE t2b <> t1b) AND t1h IN ( SELECT t2h FROM t2 RIGHT JOIN t3 where t2b = t3b) AND t1b IN ( SELECT t2b FROM t2 FULL OUTER JOIN t3 where t2b = t3b) GROUP BY t1b HAVING t1b > 8; -- JOIN in the parent and subquery -- TC 01.10 SELECT Count(DISTINCT(t1a)), t1b FROM t1 INNER JOIN t2 on t1b = t2b RIGHT JOIN t3 ON t1a = t3a where t1a IN ( SELECT t2a FROM t2 FULL OUTER JOIN t3 WHERE t2b > t3b) AND t1c IN ( SELECT t3c FROM t3 LEFT OUTER JOIN t2 ON t3a = t2a ) AND t1b IN ( SELECT t3b FROM t3 LEFT OUTER JOIN t1 WHERE t3c = t1c) AND t1a = t2a GROUP BY t1b ORDER BY t1b DESC; -- TC 01.11 SELECT t1a, t1b, t1c, count(distinct(t2a)), t2b, t2c FROM t1 FULL JOIN t2 on t1a = t2a RIGHT JOIN t3 on t1a = t3a where t1a IN ( SELECT t2a FROM t2 INNER JOIN t3 ON t2b < t3b WHERE t2c IN ( SELECT t1c FROM t1 WHERE t1a = t2a)) and t1a = t2a Group By t1a, t1b, t1c, t2a, t2b, t2c HAVING t2c IS NOT NULL ORDER By t2b DESC nulls last; -- A test suite for IN LIMIT in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- LIMIT in parent side -- TC 01.01 SELECT * FROM t1 WHERE t1a IN (SELECT t2a FROM t2 WHERE t1d = t2d) LIMIT 2; -- TC 01.02 SELECT * FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t2b >= 8 LIMIT 2) LIMIT 4; -- TC 01.03 SELECT Count(DISTINCT( t1a )), t1b FROM t1 WHERE t1d IN (SELECT t2d FROM t2 ORDER BY t2c LIMIT 2) GROUP BY t1b ORDER BY t1b DESC NULLS FIRST LIMIT 1; -- LIMIT with NOT IN -- TC 01.04 SELECT * FROM t1 WHERE t1b NOT IN (SELECT t2b FROM t2 WHERE t2b > 6 LIMIT 2); -- TC 01.05 SELECT Count(DISTINCT( t1a )), t1b FROM t1 WHERE t1d NOT IN (SELECT t2d FROM t2 ORDER BY t2b DESC nulls first LIMIT 1) GROUP BY t1b ORDER BY t1b NULLS last LIMIT 1;create temporary view tab_a as select * from values (1, 1) as tab_a(a1, b1); create temporary view tab_b as select * from values (1, 1) as tab_b(a2, b2); create temporary view struct_tab as select struct(col1 as a, col2 as b) as record from values (1, 1), (1, 2), (2, 1), (2, 2); select 1 from tab_a where (a1, b1) not in (select a2, b2 from tab_b); -- Invalid query, see SPARK-24341 select 1 from tab_a where (a1, b1) not in (select (a2, b2) from tab_b); -- Aliasing is needed as a workaround for SPARK-24443 select count(*) from struct_tab where record in (select (a2 as a, b2 as b) from tab_b); select count(*) from struct_tab where record not in (select (a2 as a, b2 as b) from tab_b); -- A test suite for ORDER BY in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- ORDER BY in parent side -- TC 01.01 SELECT * FROM t1 WHERE t1a IN (SELECT t2a FROM t2) ORDER BY t1a; -- TC 01.02 SELECT t1a FROM t1 WHERE t1b IN (SELECT t2b FROM t2 WHERE t1a = t2a) ORDER BY t1b DESC; -- TC 01.03 SELECT t1a, t1b FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t1a = t2a) ORDER BY 2 DESC nulls last; -- TC 01.04 SELECT Count(DISTINCT( t1a )) FROM t1 WHERE t1b IN (SELECT t2b FROM t2 WHERE t1a = t2a) ORDER BY Count(DISTINCT( t1a )); -- ORDER BY in subquery -- TC 01.05 SELECT * FROM t1 WHERE t1b IN (SELECT t2c FROM t2 ORDER BY t2d); -- ORDER BY in BOTH -- TC 01.06 SELECT * FROM t1 WHERE t1b IN (SELECT Min(t2b) FROM t2 WHERE t1b = t2b ORDER BY Min(t2b)) ORDER BY t1c DESC nulls first; -- TC 01.07 SELECT t1a, t1b, t1h FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t1a = t2a ORDER BY t2b DESC nulls first) OR t1h IN (SELECT t2h FROM t2 WHERE t1h > t2h) ORDER BY t1h DESC nulls last; -- ORDER BY with NOT IN -- TC 01.08 SELECT * FROM t1 WHERE t1a NOT IN (SELECT t2a FROM t2) ORDER BY t1a; -- TC 01.09 SELECT t1a, t1b FROM t1 WHERE t1a NOT IN (SELECT t2a FROM t2 WHERE t1a = t2a) ORDER BY t1b DESC nulls last; -- TC 01.10 SELECT * FROM t1 WHERE t1a NOT IN (SELECT t2a FROM t2 ORDER BY t2a DESC nulls first) and t1c IN (SELECT t2c FROM t2 ORDER BY t2b DESC nulls last) ORDER BY t1c DESC nulls last; -- GROUP BY and ORDER BY -- TC 01.11 SELECT * FROM t1 WHERE t1b IN (SELECT Min(t2b) FROM t2 GROUP BY t2a ORDER BY t2a DESC); -- TC 01.12 SELECT t1a, Count(DISTINCT( t1b )) FROM t1 WHERE t1b IN (SELECT Min(t2b) FROM t2 WHERE t1a = t2a GROUP BY t2a ORDER BY t2a) GROUP BY t1a, t1h ORDER BY t1a; -- GROUP BY and ORDER BY with NOT IN -- TC 01.13 SELECT * FROM t1 WHERE t1b NOT IN (SELECT Min(t2b) FROM t2 GROUP BY t2a ORDER BY t2a); -- TC 01.14 SELECT t1a, Sum(DISTINCT( t1b )) FROM t1 WHERE t1b NOT IN (SELECT Min(t2b) FROM t2 WHERE t1a = t2a GROUP BY t2c ORDER BY t2c DESC nulls last) GROUP BY t1a; -- TC 01.15 SELECT Count(DISTINCT( t1a )), t1b FROM t1 WHERE t1h NOT IN (SELECT t2h FROM t2 where t1a = t2a order by t2d DESC nulls first ) GROUP BY t1a, t1b ORDER BY t1b DESC nulls last; -- A test suite for IN HAVING in parent side, subquery, and both predicate subquery -- It includes correlated cases. create temporary view t1 as select * from values ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'), ("val1b", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1a", 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ("val1a", 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ("val1d", null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ("val1d", null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ("val1e", 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ("val1d", 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ("val1e", 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ("val2a", 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ("val1c", 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ("val1b", null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ("val2e", 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1f", 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ("val1c", 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ("val1e", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ("val1f", 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ("val3a", 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ("val3a", 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val1b", 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ("val1b", 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ("val3c", 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ("val3c", 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ("val1b", null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ("val1b", null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ("val3b", 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ("val3b", 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- correlated IN subquery -- HAVING in the subquery -- TC 01.01 SELECT t1a, t1b, t1h FROM t1 WHERE t1b IN (SELECT t2b FROM t2 GROUP BY t2b HAVING t2b < 10); -- TC 01.02 SELECT t1a, t1b, t1c FROM t1 WHERE t1b IN (SELECT Min(t2b) FROM t2 WHERE t1a = t2a GROUP BY t2b HAVING t2b > 1); -- HAVING in the parent -- TC 01.03 SELECT t1a, t1b, t1c FROM t1 WHERE t1b IN (SELECT t2b FROM t2 WHERE t1c < t2c) GROUP BY t1a, t1b, t1c HAVING t1b < 10; -- TC 01.04 SELECT t1a, t1b, t1c FROM t1 WHERE t1b IN (SELECT t2b FROM t2 WHERE t1c = t2c) GROUP BY t1a, t1b, t1c HAVING COUNT (DISTINCT t1b) < 10; -- BOTH -- TC 01.05 SELECT Count(DISTINCT( t1a )), t1b FROM t1 WHERE t1c IN (SELECT t2c FROM t2 WHERE t1a = t2a GROUP BY t2c HAVING t2c > 10) GROUP BY t1b HAVING t1b >= 8; -- TC 01.06 SELECT t1a, Max(t1b) FROM t1 WHERE t1b > 0 GROUP BY t1a HAVING t1a IN (SELECT t2a FROM t2 WHERE t2b IN (SELECT t3b FROM t3 WHERE t2c = t3c) ); -- HAVING clause with NOT IN -- TC 01.07 SELECT t1a, t1c, Min(t1d) FROM t1 WHERE t1a NOT IN (SELECT t2a FROM t2 GROUP BY t2a HAVING t2a > 'val2a') GROUP BY t1a, t1c HAVING Min(t1d) > t1c; -- TC 01.08 SELECT t1a, t1b FROM t1 WHERE t1d NOT IN (SELECT t2d FROM t2 WHERE t1a = t2a GROUP BY t2c, t2d HAVING t2c > 8) GROUP BY t1a, t1b HAVING t1b < 10; -- TC 01.09 SELECT t1a, Max(t1b) FROM t1 WHERE t1b > 0 GROUP BY t1a HAVING t1a NOT IN (SELECT t2a FROM t2 WHERE t2b > 3); -- A test suite for scalar subquery in predicate context CREATE OR REPLACE TEMPORARY VIEW p AS VALUES (1, 1) AS T(pk, pv); CREATE OR REPLACE TEMPORARY VIEW c AS VALUES (1, 1) AS T(ck, cv); -- SPARK-18814.1: Simplified version of TPCDS-Q32 SELECT pk, cv FROM p, c WHERE p.pk = c.ck AND c.cv = (SELECT avg(c1.cv) FROM c c1 WHERE c1.ck = p.pk); -- SPARK-18814.2: Adding stack of aggregates SELECT pk, cv FROM p, c WHERE p.pk = c.ck AND c.cv = (SELECT max(avg) FROM (SELECT c1.cv, avg(c1.cv) avg FROM c c1 WHERE c1.ck = p.pk GROUP BY c1.cv)); create temporary view t1 as select * from values ('val1a', 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 00:00:00.000', date '2014-04-04'), ('val1b', 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ('val1a', 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ('val1a', 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ('val1c', 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ('val1d', null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ('val1d', null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ('val1e', 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ('val1e', 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ('val1d', 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ('val1a', 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ('val1e', 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ('val2a', 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ('val1b', 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ('val1b', 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ('val1c', 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ('val1b', null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ('val2e', 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ('val1f', 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ('val1b', 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ('val1b', 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ('val1c', 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ('val1e', 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ('val1f', 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ('val1b', null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ('val3a', 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ('val3a', 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val1b', 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val1b', 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val1b', 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ('val1b', 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ('val3c', 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ('val3c', 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ('val1b', null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ('val1b', null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ('val3b', 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val3b', 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- Group 1: scalar subquery in predicate context -- no correlation -- TC 01.01 SELECT t1a, t1b FROM t1 WHERE t1c = (SELECT max(t2c) FROM t2); -- TC 01.02 SELECT t1a, t1d, t1f FROM t1 WHERE t1c = (SELECT max(t2c) FROM t2) AND t1b > (SELECT min(t3b) FROM t3); -- TC 01.03 SELECT t1a, t1h FROM t1 WHERE t1c = (SELECT max(t2c) FROM t2) OR t1b = (SELECT min(t3b) FROM t3 WHERE t3b > 10); -- TC 01.04 -- scalar subquery over outer join SELECT t1a, t1b, t2d FROM t1 LEFT JOIN t2 ON t1a = t2a WHERE t1b = (SELECT min(t3b) FROM t3); -- TC 01.05 -- test casting SELECT t1a, t1b, t1g FROM t1 WHERE t1c + 5 = (SELECT max(t2e) FROM t2); -- TC 01.06 -- test casting SELECT t1a, t1h FROM t1 WHERE date(t1h) = (SELECT min(t2i) FROM t2); -- TC 01.07 -- same table, expressions in scalar subquery SELECT t2d, t1a FROM t1, t2 WHERE t1b = t2b AND t2c + 1 = (SELECT max(t2c) + 1 FROM t2, t1 WHERE t2b = t1b); -- TC 01.08 -- same table SELECT DISTINCT t2a, max_t1g FROM t2, (SELECT max(t1g) max_t1g, t1a FROM t1 GROUP BY t1a) t1 WHERE t2a = t1a AND max_t1g = (SELECT max(t1g) FROM t1); -- TC 01.09 -- more than one scalar subquery SELECT t3b, t3c FROM t3 WHERE (SELECT max(t3c) FROM t3 WHERE t3b > 10) >= (SELECT min(t3b) FROM t3 WHERE t3c > 0) AND (t3b is null or t3c is null); -- Group 2: scalar subquery in predicate context -- with correlation -- TC 02.01 SELECT t1a FROM t1 WHERE t1a < (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- TC 02.02 SELECT t1a, t1c FROM t1 WHERE (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c) IS NULL; -- TC 02.03 SELECT t1a FROM t1 WHERE t1a = (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c HAVING count(*) >= 0) OR t1i > '2014-12-31'; -- TC 02.03.01 SELECT t1a FROM t1 WHERE t1a = (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c HAVING count(*) >= 1) OR t1i > '2014-12-31'; -- TC 02.04 -- t1 on the right of an outer join -- can be reduced to inner join SELECT count(t1a) FROM t1 RIGHT JOIN t2 ON t1d = t2d WHERE t1a < (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- TC 02.05 SELECT t1a FROM t1 WHERE t1b <= (SELECT max(t2b) FROM t2 WHERE t2c = t1c GROUP BY t2c) AND t1b >= (SELECT min(t2b) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- TC 02.06 -- set op SELECT t1a FROM t1 WHERE t1a <= (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c) INTERSECT SELECT t1a FROM t1 WHERE t1a >= (SELECT min(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- TC 02.07.01 -- set op SELECT t1a FROM t1 WHERE t1a <= (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c) UNION ALL SELECT t1a FROM t1 WHERE t1a >= (SELECT min(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- TC 02.07.02 -- set op SELECT t1a FROM t1 WHERE t1a <= (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c) UNION DISTINCT SELECT t1a FROM t1 WHERE t1a >= (SELECT min(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- TC 02.08 -- set op SELECT t1a FROM t1 WHERE t1a <= (SELECT max(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c) MINUS SELECT t1a FROM t1 WHERE t1a >= (SELECT min(t2a) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- TC 02.09 -- in HAVING clause SELECT t1a FROM t1 GROUP BY t1a, t1c HAVING max(t1b) <= (SELECT max(t2b) FROM t2 WHERE t2c = t1c GROUP BY t2c); -- A test suite for scalar subquery in SELECT clause create temporary view t1 as select * from values ('val1a', 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 00:00:00.000', date '2014-04-04'), ('val1b', 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ('val1a', 16S, 12, 21L, float(15.0), 20D, 20E2, timestamp '2014-06-04 01:02:00.001', date '2014-06-04'), ('val1a', 16S, 12, 10L, float(15.0), 20D, 20E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ('val1c', 8S, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:02:00.001', date '2014-05-05'), ('val1d', null, 16, 22L, float(17.0), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', null), ('val1d', null, 16, 19L, float(17.0), 25D, 26E2, timestamp '2014-07-04 01:02:00.001', null), ('val1e', 10S, null, 25L, float(17.0), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-04'), ('val1e', 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-09-04 01:02:00.001', date '2014-09-04'), ('val1d', 10S, null, 12L, float(17.0), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ('val1a', 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:02:00.001', date '2014-04-04'), ('val1e', 10S, null, 19L, float(17.0), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04') as t1(t1a, t1b, t1c, t1d, t1e, t1f, t1g, t1h, t1i); create temporary view t2 as select * from values ('val2a', 6S, 12, 14L, float(15), 20D, 20E2, timestamp '2014-04-04 01:01:00.000', date '2014-04-04'), ('val1b', 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ('val1b', 8S, 16, 119L, float(17), 25D, 26E2, timestamp '2015-05-04 01:01:00.000', date '2015-05-04'), ('val1c', 12S, 16, 219L, float(17), 25D, 26E2, timestamp '2016-05-04 01:01:00.000', date '2016-05-04'), ('val1b', null, 16, 319L, float(17), 25D, 26E2, timestamp '2017-05-04 01:01:00.000', null), ('val2e', 8S, null, 419L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ('val1f', 19S, null, 519L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', date '2014-05-04'), ('val1b', 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-06-04 01:01:00.000', date '2014-06-04'), ('val1b', 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:01:00.000', date '2014-07-04'), ('val1c', 12S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-08-04 01:01:00.000', date '2014-08-05'), ('val1e', 8S, null, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:01:00.000', date '2014-09-04'), ('val1f', 19S, null, 19L, float(17), 25D, 26E2, timestamp '2014-10-04 01:01:00.000', date '2014-10-04'), ('val1b', null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:01:00.000', null) as t2(t2a, t2b, t2c, t2d, t2e, t2f, t2g, t2h, t2i); create temporary view t3 as select * from values ('val3a', 6S, 12, 110L, float(15), 20D, 20E2, timestamp '2014-04-04 01:02:00.000', date '2014-04-04'), ('val3a', 6S, 12, 10L, float(15), 20D, 20E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val1b', 10S, 12, 219L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val1b', 10S, 12, 19L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val1b', 8S, 16, 319L, float(17), 25D, 26E2, timestamp '2014-06-04 01:02:00.000', date '2014-06-04'), ('val1b', 8S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-07-04 01:02:00.000', date '2014-07-04'), ('val3c', 17S, 16, 519L, float(17), 25D, 26E2, timestamp '2014-08-04 01:02:00.000', date '2014-08-04'), ('val3c', 17S, 16, 19L, float(17), 25D, 26E2, timestamp '2014-09-04 01:02:00.000', date '2014-09-05'), ('val1b', null, 16, 419L, float(17), 25D, 26E2, timestamp '2014-10-04 01:02:00.000', null), ('val1b', null, 16, 19L, float(17), 25D, 26E2, timestamp '2014-11-04 01:02:00.000', null), ('val3b', 8S, null, 719L, float(17), 25D, 26E2, timestamp '2014-05-04 01:02:00.000', date '2014-05-04'), ('val3b', 8S, null, 19L, float(17), 25D, 26E2, timestamp '2015-05-04 01:02:00.000', date '2015-05-04') as t3(t3a, t3b, t3c, t3d, t3e, t3f, t3g, t3h, t3i); -- Group 1: scalar subquery in SELECT clause -- no correlation -- TC 01.01 -- more than one scalar subquery SELECT (SELECT min(t3d) FROM t3) min_t3d, (SELECT max(t2h) FROM t2) max_t2h FROM t1 WHERE t1a = 'val1c'; -- TC 01.02 -- scalar subquery in an IN subquery SELECT t1a, count(*) FROM t1 WHERE t1c IN (SELECT (SELECT min(t3c) FROM t3) FROM t2 GROUP BY t2g HAVING count(*) > 1) GROUP BY t1a; -- TC 01.03 -- under a set op SELECT (SELECT min(t3d) FROM t3) min_t3d, null FROM t1 WHERE t1a = 'val1c' UNION SELECT null, (SELECT max(t2h) FROM t2) max_t2h FROM t1 WHERE t1a = 'val1c'; -- TC 01.04 SELECT (SELECT min(t3c) FROM t3) min_t3d FROM t1 WHERE t1a = 'val1a' INTERSECT SELECT (SELECT min(t2c) FROM t2) min_t2d FROM t1 WHERE t1a = 'val1d'; -- TC 01.05 SELECT q1.t1a, q2.t2a, q1.min_t3d, q2.avg_t3d FROM (SELECT t1a, (SELECT min(t3d) FROM t3) min_t3d FROM t1 WHERE t1a IN ('val1e', 'val1c')) q1 FULL OUTER JOIN (SELECT t2a, (SELECT avg(t3d) FROM t3) avg_t3d FROM t2 WHERE t2a IN ('val1c', 'val2a')) q2 ON q1.t1a = q2.t2a AND q1.min_t3d < q2.avg_t3d; -- Group 2: scalar subquery in SELECT clause -- with correlation -- TC 02.01 SELECT (SELECT min(t3d) FROM t3 WHERE t3.t3a = t1.t1a) min_t3d, (SELECT max(t2h) FROM t2 WHERE t2.t2a = t1.t1a) max_t2h FROM t1 WHERE t1a = 'val1b'; -- TC 02.02 SELECT (SELECT min(t3d) FROM t3 WHERE t3a = t1a) min_t3d FROM t1 WHERE t1a = 'val1b' MINUS SELECT (SELECT min(t3d) FROM t3) abs_min_t3d FROM t1 WHERE t1a = 'val1b'; -- TC 02.03 SELECT t1a, t1b FROM t1 WHERE NOT EXISTS (SELECT (SELECT max(t2b) FROM t2 LEFT JOIN t1 ON t2a = t1a WHERE t2c = t3c) dummy FROM t3 WHERE t3b < (SELECT max(t2b) FROM t2 LEFT JOIN t1 ON t2a = t1a WHERE t2c = t3c) AND t3a = t1a); -- Aliased subqueries in FROM clause SELECT * FROM (SELECT * FROM testData) AS t WHERE key = 1; FROM (SELECT * FROM testData WHERE key = 1) AS t SELECT *; -- Optional `AS` keyword SELECT * FROM (SELECT * FROM testData) t WHERE key = 1; FROM (SELECT * FROM testData WHERE key = 1) t SELECT *; -- Disallow unaliased subqueries in FROM clause SELECT * FROM (SELECT * FROM testData) WHERE key = 1; FROM (SELECT * FROM testData WHERE key = 1) SELECT *; -- Tests EXISTS subquery support with ORDER BY and LIMIT clauses. CREATE TEMPORARY VIEW EMP AS SELECT * FROM VALUES (100, "emp 1", date "2005-01-01", 100.00D, 10), (100, "emp 1", date "2005-01-01", 100.00D, 10), (200, "emp 2", date "2003-01-01", 200.00D, 10), (300, "emp 3", date "2002-01-01", 300.00D, 20), (400, "emp 4", date "2005-01-01", 400.00D, 30), (500, "emp 5", date "2001-01-01", 400.00D, NULL), (600, "emp 6 - no dept", date "2001-01-01", 400.00D, 100), (700, "emp 7", date "2010-01-01", 400.00D, 100), (800, "emp 8", date "2016-01-01", 150.00D, 70) AS EMP(id, emp_name, hiredate, salary, dept_id); CREATE TEMPORARY VIEW DEPT AS SELECT * FROM VALUES (10, "dept 1", "CA"), (20, "dept 2", "NY"), (30, "dept 3", "TX"), (40, "dept 4 - unassigned", "OR"), (50, "dept 5 - unassigned", "NJ"), (70, "dept 7", "FL") AS DEPT(dept_id, dept_name, state); CREATE TEMPORARY VIEW BONUS AS SELECT * FROM VALUES ("emp 1", 10.00D), ("emp 1", 20.00D), ("emp 2", 300.00D), ("emp 2", 100.00D), ("emp 3", 300.00D), ("emp 4", 100.00D), ("emp 5", 1000.00D), ("emp 6 - no dept", 500.00D) AS BONUS(emp_name, bonus_amt); -- order by in both outer and/or inner query block -- TC.01.01 SELECT * FROM emp WHERE EXISTS (SELECT dept.dept_id FROM dept WHERE emp.dept_id = dept.dept_id ORDER BY state) ORDER BY hiredate; -- TC.01.02 SELECT id, hiredate FROM emp WHERE EXISTS (SELECT dept.dept_id FROM dept WHERE emp.dept_id = dept.dept_id ORDER BY state) ORDER BY hiredate DESC; -- order by with not exists -- TC.01.03 SELECT * FROM emp WHERE NOT EXISTS (SELECT dept.dept_id FROM dept WHERE emp.dept_id = dept.dept_id ORDER BY state) ORDER BY hiredate; -- group by + order by with not exists -- TC.01.04 SELECT emp_name FROM emp WHERE NOT EXISTS (SELECT max(dept.dept_id) a FROM dept WHERE dept.dept_id = emp.dept_id GROUP BY state ORDER BY state); -- TC.01.05 SELECT count(*) FROM emp WHERE NOT EXISTS (SELECT max(dept.dept_id) a FROM dept WHERE dept.dept_id = emp.dept_id GROUP BY dept_id ORDER BY dept_id); -- limit in the exists subquery block. -- TC.02.01 SELECT * FROM emp WHERE EXISTS (SELECT dept.dept_name FROM dept WHERE dept.dept_id > 10 LIMIT 1); -- limit in the exists subquery block with aggregate. -- TC.02.02 SELECT * FROM emp WHERE EXISTS (SELECT max(dept.dept_id) FROM dept GROUP BY state LIMIT 1); -- limit in the not exists subquery block. -- TC.02.03 SELECT * FROM emp WHERE NOT EXISTS (SELECT dept.dept_name FROM dept WHERE dept.dept_id > 100 LIMIT 1); -- limit in the not exists subquery block with aggregates. -- TC.02.04 SELECT * FROM emp WHERE NOT EXISTS (SELECT max(dept.dept_id) FROM dept WHERE dept.dept_id > 100 GROUP BY state LIMIT 1); -- Tests HAVING clause in subquery. CREATE TEMPORARY VIEW EMP AS SELECT * FROM VALUES (100, "emp 1", date "2005-01-01", 100.00D, 10), (100, "emp 1", date "2005-01-01", 100.00D, 10), (200, "emp 2", date "2003-01-01", 200.00D, 10), (300, "emp 3", date "2002-01-01", 300.00D, 20), (400, "emp 4", date "2005-01-01", 400.00D, 30), (500, "emp 5", date "2001-01-01", 400.00D, NULL), (600, "emp 6 - no dept", date "2001-01-01", 400.00D, 100), (700, "emp 7", date "2010-01-01", 400.00D, 100), (800, "emp 8", date "2016-01-01", 150.00D, 70) AS EMP(id, emp_name, hiredate, salary, dept_id); CREATE TEMPORARY VIEW DEPT AS SELECT * FROM VALUES (10, "dept 1", "CA"), (20, "dept 2", "NY"), (30, "dept 3", "TX"), (40, "dept 4 - unassigned", "OR"), (50, "dept 5 - unassigned", "NJ"), (70, "dept 7", "FL") AS DEPT(dept_id, dept_name, state); CREATE TEMPORARY VIEW BONUS AS SELECT * FROM VALUES ("emp 1", 10.00D), ("emp 1", 20.00D), ("emp 2", 300.00D), ("emp 2", 100.00D), ("emp 3", 300.00D), ("emp 4", 100.00D), ("emp 5", 1000.00D), ("emp 6 - no dept", 500.00D) AS BONUS(emp_name, bonus_amt); -- simple having in subquery. -- TC.01.01 SELECT dept_id, count(*) FROM emp GROUP BY dept_id HAVING EXISTS (SELECT 1 FROM bonus WHERE bonus_amt < min(emp.salary)); -- nested having in subquery -- TC.01.02 SELECT * FROM dept WHERE EXISTS (SELECT dept_id, Count(*) FROM emp GROUP BY dept_id HAVING EXISTS (SELECT 1 FROM bonus WHERE bonus_amt < Min(emp.salary))); -- aggregation in outer and inner query block with having -- TC.01.03 SELECT dept_id, Max(salary) FROM emp gp WHERE EXISTS (SELECT dept_id, Count(*) FROM emp p GROUP BY dept_id HAVING EXISTS (SELECT 1 FROM bonus WHERE bonus_amt < Min(p.salary))) GROUP BY gp.dept_id; -- more aggregate expressions in projection list of subquery -- TC.01.04 SELECT * FROM dept WHERE EXISTS (SELECT dept_id, Count(*) FROM emp GROUP BY dept_id HAVING EXISTS (SELECT 1 FROM bonus WHERE bonus_amt > Min(emp.salary))); -- multiple aggregations in nested subquery -- TC.01.05 SELECT * FROM dept WHERE EXISTS (SELECT dept_id, count(emp.dept_id) FROM emp WHERE dept.dept_id = dept_id GROUP BY dept_id HAVING EXISTS (SELECT 1 FROM bonus WHERE ( bonus_amt > min(emp.salary) AND count(emp.dept_id) > 1 ))); -- Tests aggregate expressions in outer query and EXISTS subquery. CREATE TEMPORARY VIEW EMP AS SELECT * FROM VALUES (100, "emp 1", date "2005-01-01", 100.00D, 10), (100, "emp 1", date "2005-01-01", 100.00D, 10), (200, "emp 2", date "2003-01-01", 200.00D, 10), (300, "emp 3", date "2002-01-01", 300.00D, 20), (400, "emp 4", date "2005-01-01", 400.00D, 30), (500, "emp 5", date "2001-01-01", 400.00D, NULL), (600, "emp 6 - no dept", date "2001-01-01", 400.00D, 100), (700, "emp 7", date "2010-01-01", 400.00D, 100), (800, "emp 8", date "2016-01-01", 150.00D, 70) AS EMP(id, emp_name, hiredate, salary, dept_id); CREATE TEMPORARY VIEW DEPT AS SELECT * FROM VALUES (10, "dept 1", "CA"), (20, "dept 2", "NY"), (30, "dept 3", "TX"), (40, "dept 4 - unassigned", "OR"), (50, "dept 5 - unassigned", "NJ"), (70, "dept 7", "FL") AS DEPT(dept_id, dept_name, state); CREATE TEMPORARY VIEW BONUS AS SELECT * FROM VALUES ("emp 1", 10.00D), ("emp 1", 20.00D), ("emp 2", 300.00D), ("emp 2", 100.00D), ("emp 3", 300.00D), ("emp 4", 100.00D), ("emp 5", 1000.00D), ("emp 6 - no dept", 500.00D) AS BONUS(emp_name, bonus_amt); -- Aggregate in outer query block. -- TC.01.01 SELECT emp.dept_id, avg(salary), sum(salary) FROM emp WHERE EXISTS (SELECT state FROM dept WHERE dept.dept_id = emp.dept_id) GROUP BY dept_id; -- Aggregate in inner/subquery block -- TC.01.02 SELECT emp_name FROM emp WHERE EXISTS (SELECT max(dept.dept_id) a FROM dept WHERE dept.dept_id = emp.dept_id GROUP BY dept.dept_id); -- Aggregate expression in both outer and inner query block. -- TC.01.03 SELECT count(*) FROM emp WHERE EXISTS (SELECT max(dept.dept_id) a FROM dept WHERE dept.dept_id = emp.dept_id GROUP BY dept.dept_id); -- Nested exists with aggregate expression in inner most query block. -- TC.01.04 SELECT * FROM bonus WHERE EXISTS (SELECT 1 FROM emp WHERE emp.emp_name = bonus.emp_name AND EXISTS (SELECT max(dept.dept_id) FROM dept WHERE emp.dept_id = dept.dept_id GROUP BY dept.dept_id)); -- Not exists with Aggregate expression in outer -- TC.01.05 SELECT emp.dept_id, Avg(salary), Sum(salary) FROM emp WHERE NOT EXISTS (SELECT state FROM dept WHERE dept.dept_id = emp.dept_id) GROUP BY dept_id; -- Not exists with Aggregate expression in subquery block -- TC.01.06 SELECT emp_name FROM emp WHERE NOT EXISTS (SELECT max(dept.dept_id) a FROM dept WHERE dept.dept_id = emp.dept_id GROUP BY dept.dept_id); -- Not exists with Aggregate expression in outer and subquery block -- TC.01.07 SELECT count(*) FROM emp WHERE NOT EXISTS (SELECT max(dept.dept_id) a FROM dept WHERE dept.dept_id = emp.dept_id GROUP BY dept.dept_id); -- Nested not exists and exists with aggregate expression in inner most query block. -- TC.01.08 SELECT * FROM bonus WHERE NOT EXISTS (SELECT 1 FROM emp WHERE emp.emp_name = bonus.emp_name AND EXISTS (SELECT Max(dept.dept_id) FROM dept WHERE emp.dept_id = dept.dept_id GROUP BY dept.dept_id)); -- Tests EXISTS subquery support. Tests Exists subquery -- used in Joins (Both when joins occurs in outer and suquery blocks) -- List of configuration the test suite is run against: --SET spark.sql.autoBroadcastJoinThreshold=10485760 --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=true --SET spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.preferSortMergeJoin=false CREATE TEMPORARY VIEW EMP AS SELECT * FROM VALUES (100, "emp 1", date "2005-01-01", 100.00D, 10), (100, "emp 1", date "2005-01-01", 100.00D, 10), (200, "emp 2", date "2003-01-01", 200.00D, 10), (300, "emp 3", date "2002-01-01", 300.00D, 20), (400, "emp 4", date "2005-01-01", 400.00D, 30), (500, "emp 5", date "2001-01-01", 400.00D, NULL), (600, "emp 6 - no dept", date "2001-01-01", 400.00D, 100), (700, "emp 7", date "2010-01-01", 400.00D, 100), (800, "emp 8", date "2016-01-01", 150.00D, 70) AS EMP(id, emp_name, hiredate, salary, dept_id); CREATE TEMPORARY VIEW DEPT AS SELECT * FROM VALUES (10, "dept 1", "CA"), (20, "dept 2", "NY"), (30, "dept 3", "TX"), (40, "dept 4 - unassigned", "OR"), (50, "dept 5 - unassigned", "NJ"), (70, "dept 7", "FL") AS DEPT(dept_id, dept_name, state); CREATE TEMPORARY VIEW BONUS AS SELECT * FROM VALUES ("emp 1", 10.00D), ("emp 1", 20.00D), ("emp 2", 300.00D), ("emp 2", 100.00D), ("emp 3", 300.00D), ("emp 4", 100.00D), ("emp 5", 1000.00D), ("emp 6 - no dept", 500.00D) AS BONUS(emp_name, bonus_amt); -- Join in outer query block -- TC.01.01 SELECT * FROM emp, dept WHERE emp.dept_id = dept.dept_id AND EXISTS (SELECT * FROM bonus WHERE bonus.emp_name = emp.emp_name); -- Join in outer query block with ON condition -- TC.01.02 SELECT * FROM emp JOIN dept ON emp.dept_id = dept.dept_id WHERE EXISTS (SELECT * FROM bonus WHERE bonus.emp_name = emp.emp_name); -- Left join in outer query block with ON condition -- TC.01.03 SELECT * FROM emp LEFT JOIN dept ON emp.dept_id = dept.dept_id WHERE EXISTS (SELECT * FROM bonus WHERE bonus.emp_name = emp.emp_name); -- Join in outer query block + NOT EXISTS -- TC.01.04 SELECT * FROM emp, dept WHERE emp.dept_id = dept.dept_id AND NOT EXISTS (SELECT * FROM bonus WHERE bonus.emp_name = emp.emp_name); -- inner join in subquery. -- TC.01.05 SELECT * FROM bonus WHERE EXISTS (SELECT * FROM emp JOIN dept ON dept.dept_id = emp.dept_id WHERE bonus.emp_name = emp.emp_name); -- right join in subquery -- TC.01.06 SELECT * FROM bonus WHERE EXISTS (SELECT * FROM emp RIGHT JOIN dept ON dept.dept_id = emp.dept_id WHERE bonus.emp_name = emp.emp_name); -- Aggregation and join in subquery -- TC.01.07 SELECT * FROM bonus WHERE EXISTS (SELECT dept.dept_id, emp.emp_name, Max(salary), Count(*) FROM emp JOIN dept ON dept.dept_id = emp.dept_id WHERE bonus.emp_name = emp.emp_name GROUP BY dept.dept_id, emp.emp_name ORDER BY emp.emp_name); -- Aggregations in outer and subquery + join in subquery -- TC.01.08 SELECT emp_name, Sum(bonus_amt) FROM bonus WHERE EXISTS (SELECT emp_name, Max(salary) FROM emp JOIN dept ON dept.dept_id = emp.dept_id WHERE bonus.emp_name = emp.emp_name GROUP BY emp_name HAVING Count(*) > 1 ORDER BY emp_name) GROUP BY emp_name; -- TC.01.09 SELECT emp_name, Sum(bonus_amt) FROM bonus WHERE NOT EXISTS (SELECT emp_name, Max(salary) FROM emp JOIN dept ON dept.dept_id = emp.dept_id WHERE bonus.emp_name = emp.emp_name GROUP BY emp_name HAVING Count(*) > 1 ORDER BY emp_name) GROUP BY emp_name; -- Set operations along with EXISTS subquery -- union -- TC.02.01 SELECT * FROM emp WHERE EXISTS (SELECT * FROM dept WHERE dept_id < 30 UNION SELECT * FROM dept WHERE dept_id >= 30 AND dept_id <= 50); -- intersect -- TC.02.02 SELECT * FROM emp WHERE EXISTS (SELECT * FROM dept WHERE dept_id < 30 INTERSECT SELECT * FROM dept WHERE dept_id >= 30 AND dept_id <= 50); -- intersect + not exists -- TC.02.03 SELECT * FROM emp WHERE NOT EXISTS (SELECT * FROM dept WHERE dept_id < 30 INTERSECT SELECT * FROM dept WHERE dept_id >= 30 AND dept_id <= 50); -- Union all in outer query and except,intersect in subqueries. -- TC.02.04 SELECT * FROM emp WHERE EXISTS (SELECT * FROM dept EXCEPT SELECT * FROM dept WHERE dept_id > 50) UNION ALL SELECT * FROM emp WHERE EXISTS (SELECT * FROM dept WHERE dept_id < 30 INTERSECT SELECT * FROM dept WHERE dept_id >= 30 AND dept_id <= 50); -- Union in outer query and except,intersect in subqueries. -- TC.02.05 SELECT * FROM emp WHERE EXISTS (SELECT * FROM dept EXCEPT SELECT * FROM dept WHERE dept_id > 50) UNION SELECT * FROM emp WHERE EXISTS (SELECT * FROM dept WHERE dept_id < 30 INTERSECT SELECT * FROM dept WHERE dept_id >= 30 AND dept_id <= 50); -- Tests EXISTS subquery support. Tests basic form -- of EXISTS subquery (both EXISTS and NOT EXISTS) CREATE TEMPORARY VIEW EMP AS SELECT * FROM VALUES (100, "emp 1", date "2005-01-01", 100.00D, 10), (100, "emp 1", date "2005-01-01", 100.00D, 10), (200, "emp 2", date "2003-01-01", 200.00D, 10), (300, "emp 3", date "2002-01-01", 300.00D, 20), (400, "emp 4", date "2005-01-01", 400.00D, 30), (500, "emp 5", date "2001-01-01", 400.00D, NULL), (600, "emp 6 - no dept", date "2001-01-01", 400.00D, 100), (700, "emp 7", date "2010-01-01", 400.00D, 100), (800, "emp 8", date "2016-01-01", 150.00D, 70) AS EMP(id, emp_name, hiredate, salary, dept_id); CREATE TEMPORARY VIEW DEPT AS SELECT * FROM VALUES (10, "dept 1", "CA"), (20, "dept 2", "NY"), (30, "dept 3", "TX"), (40, "dept 4 - unassigned", "OR"), (50, "dept 5 - unassigned", "NJ"), (70, "dept 7", "FL") AS DEPT(dept_id, dept_name, state); CREATE TEMPORARY VIEW BONUS AS SELECT * FROM VALUES ("emp 1", 10.00D), ("emp 1", 20.00D), ("emp 2", 300.00D), ("emp 2", 100.00D), ("emp 3", 300.00D), ("emp 4", 100.00D), ("emp 5", 1000.00D), ("emp 6 - no dept", 500.00D) AS BONUS(emp_name, bonus_amt); -- uncorrelated exist query -- TC.01.01 SELECT * FROM emp WHERE EXISTS (SELECT 1 FROM dept WHERE dept.dept_id > 10 AND dept.dept_id < 30); -- simple correlated predicate in exist subquery -- TC.01.02 SELECT * FROM emp WHERE EXISTS (SELECT dept.dept_name FROM dept WHERE emp.dept_id = dept.dept_id); -- correlated outer isnull predicate -- TC.01.03 SELECT * FROM emp WHERE EXISTS (SELECT dept.dept_name FROM dept WHERE emp.dept_id = dept.dept_id OR emp.dept_id IS NULL); -- Simple correlation with a local predicate in outer query -- TC.01.04 SELECT * FROM emp WHERE EXISTS (SELECT dept.dept_name FROM dept WHERE emp.dept_id = dept.dept_id) AND emp.id > 200; -- Outer references (emp.id) should not be pruned from outer plan -- TC.01.05 SELECT emp.emp_name FROM emp WHERE EXISTS (SELECT dept.state FROM dept WHERE emp.dept_id = dept.dept_id) AND emp.id > 200; -- not exists with correlated predicate -- TC.01.06 SELECT * FROM dept WHERE NOT EXISTS (SELECT emp_name FROM emp WHERE emp.dept_id = dept.dept_id); -- not exists with correlated predicate + local predicate -- TC.01.07 SELECT * FROM dept WHERE NOT EXISTS (SELECT emp_name FROM emp WHERE emp.dept_id = dept.dept_id OR state = 'NJ'); -- not exist both equal and greaterthan predicate -- TC.01.08 SELECT * FROM bonus WHERE NOT EXISTS (SELECT * FROM emp WHERE emp.emp_name = emp_name AND bonus_amt > emp.salary); -- select employees who have not received any bonus -- TC 01.09 SELECT emp.* FROM emp WHERE NOT EXISTS (SELECT NULL FROM bonus WHERE bonus.emp_name = emp.emp_name); -- Nested exists -- TC.01.10 SELECT * FROM bonus WHERE EXISTS (SELECT emp_name FROM emp WHERE bonus.emp_name = emp.emp_name AND EXISTS (SELECT state FROM dept WHERE dept.dept_id = emp.dept_id)); -- Tests EXISTS subquery support. Tests EXISTS -- subquery within a AND or OR expression. CREATE TEMPORARY VIEW EMP AS SELECT * FROM VALUES (100, "emp 1", date "2005-01-01", 100.00D, 10), (100, "emp 1", date "2005-01-01", 100.00D, 10), (200, "emp 2", date "2003-01-01", 200.00D, 10), (300, "emp 3", date "2002-01-01", 300.00D, 20), (400, "emp 4", date "2005-01-01", 400.00D, 30), (500, "emp 5", date "2001-01-01", 400.00D, NULL), (600, "emp 6 - no dept", date "2001-01-01", 400.00D, 100), (700, "emp 7", date "2010-01-01", 400.00D, 100), (800, "emp 8", date "2016-01-01", 150.00D, 70) AS EMP(id, emp_name, hiredate, salary, dept_id); CREATE TEMPORARY VIEW DEPT AS SELECT * FROM VALUES (10, "dept 1", "CA"), (20, "dept 2", "NY"), (30, "dept 3", "TX"), (40, "dept 4 - unassigned", "OR"), (50, "dept 5 - unassigned", "NJ"), (70, "dept 7", "FL") AS DEPT(dept_id, dept_name, state); CREATE TEMPORARY VIEW BONUS AS SELECT * FROM VALUES ("emp 1", 10.00D), ("emp 1", 20.00D), ("emp 2", 300.00D), ("emp 2", 100.00D), ("emp 3", 300.00D), ("emp 4", 100.00D), ("emp 5", 1000.00D), ("emp 6 - no dept", 500.00D) AS BONUS(emp_name, bonus_amt); -- Or used in conjunction with exists - ExistenceJoin -- TC.02.01 SELECT emp.emp_name FROM emp WHERE EXISTS (SELECT dept.state FROM dept WHERE emp.dept_id = dept.dept_id) OR emp.id > 200; -- all records from emp including the null dept_id -- TC.02.02 SELECT * FROM emp WHERE EXISTS (SELECT dept.dept_name FROM dept WHERE emp.dept_id = dept.dept_id) OR emp.dept_id IS NULL; -- EXISTS subquery in both LHS and RHS of OR. -- TC.02.03 SELECT emp.emp_name FROM emp WHERE EXISTS (SELECT dept.state FROM dept WHERE emp.dept_id = dept.dept_id AND dept.dept_id = 20) OR EXISTS (SELECT dept.state FROM dept WHERE emp.dept_id = dept.dept_id AND dept.dept_id = 30); ; -- not exists and exists predicate within OR -- TC.02.04 SELECT * FROM bonus WHERE ( NOT EXISTS (SELECT * FROM emp WHERE emp.emp_name = emp_name AND bonus_amt > emp.salary) OR EXISTS (SELECT * FROM emp WHERE emp.emp_name = emp_name OR bonus_amt < emp.salary) ); -- not exists and in predicate within AND -- TC.02.05 SELECT * FROM bonus WHERE NOT EXISTS ( SELECT * FROM emp WHERE emp.emp_name = emp_name AND bonus_amt > emp.salary) AND emp_name IN ( SELECT emp_name FROM emp WHERE bonus_amt < emp.salary); -- Tests EXISTS subquery used along with -- Common Table Expressions(CTE) CREATE TEMPORARY VIEW EMP AS SELECT * FROM VALUES (100, "emp 1", date "2005-01-01", 100.00D, 10), (100, "emp 1", date "2005-01-01", 100.00D, 10), (200, "emp 2", date "2003-01-01", 200.00D, 10), (300, "emp 3", date "2002-01-01", 300.00D, 20), (400, "emp 4", date "2005-01-01", 400.00D, 30), (500, "emp 5", date "2001-01-01", 400.00D, NULL), (600, "emp 6 - no dept", date "2001-01-01", 400.00D, 100), (700, "emp 7", date "2010-01-01", 400.00D, 100), (800, "emp 8", date "2016-01-01", 150.00D, 70) AS EMP(id, emp_name, hiredate, salary, dept_id); CREATE TEMPORARY VIEW DEPT AS SELECT * FROM VALUES (10, "dept 1", "CA"), (20, "dept 2", "NY"), (30, "dept 3", "TX"), (40, "dept 4 - unassigned", "OR"), (50, "dept 5 - unassigned", "NJ"), (70, "dept 7", "FL") AS DEPT(dept_id, dept_name, state); CREATE TEMPORARY VIEW BONUS AS SELECT * FROM VALUES ("emp 1", 10.00D), ("emp 1", 20.00D), ("emp 2", 300.00D), ("emp 2", 100.00D), ("emp 3", 300.00D), ("emp 4", 100.00D), ("emp 5", 1000.00D), ("emp 6 - no dept", 500.00D) AS BONUS(emp_name, bonus_amt); -- CTE used inside subquery with correlated condition -- TC.01.01 WITH bonus_cte AS (SELECT * FROM bonus WHERE EXISTS (SELECT dept.dept_id, emp.emp_name, Max(salary), Count(*) FROM emp JOIN dept ON dept.dept_id = emp.dept_id WHERE bonus.emp_name = emp.emp_name GROUP BY dept.dept_id, emp.emp_name ORDER BY emp.emp_name)) SELECT * FROM bonus a WHERE a.bonus_amt > 30 AND EXISTS (SELECT 1 FROM bonus_cte b WHERE a.emp_name = b.emp_name); -- Inner join between two CTEs with correlated condition -- TC.01.02 WITH emp_cte AS (SELECT * FROM emp WHERE id >= 100 AND id <= 300), dept_cte AS (SELECT * FROM dept WHERE dept_id = 10) SELECT * FROM bonus WHERE EXISTS (SELECT * FROM emp_cte a JOIN dept_cte b ON a.dept_id = b.dept_id WHERE bonus.emp_name = a.emp_name); -- Left outer join between two CTEs with correlated condition -- TC.01.03 WITH emp_cte AS (SELECT * FROM emp WHERE id >= 100 AND id <= 300), dept_cte AS (SELECT * FROM dept WHERE dept_id = 10) SELECT DISTINCT b.emp_name, b.bonus_amt FROM bonus b, emp_cte e, dept d WHERE e.dept_id = d.dept_id AND e.emp_name = b.emp_name AND EXISTS (SELECT * FROM emp_cte a LEFT JOIN dept_cte b ON a.dept_id = b.dept_id WHERE e.emp_name = a.emp_name); -- Joins inside cte and aggregation on cte referenced subquery with correlated condition -- TC.01.04 WITH empdept AS (SELECT id, salary, emp_name, dept.dept_id FROM emp LEFT JOIN dept ON emp.dept_id = dept.dept_id WHERE emp.id IN ( 100, 200 )) SELECT emp_name, Sum(bonus_amt) FROM bonus WHERE EXISTS (SELECT dept_id, max(salary) FROM empdept GROUP BY dept_id HAVING count(*) > 1) GROUP BY emp_name; -- Using not exists -- TC.01.05 WITH empdept AS (SELECT id, salary, emp_name, dept.dept_id FROM emp LEFT JOIN dept ON emp.dept_id = dept.dept_id WHERE emp.id IN ( 100, 200 )) SELECT emp_name, Sum(bonus_amt) FROM bonus WHERE NOT EXISTS (SELECT dept_id, Max(salary) FROM empdept GROUP BY dept_id HAVING count(*) < 1) GROUP BY emp_name; CREATE OR REPLACE TEMPORARY VIEW t1 AS VALUES (1, 'a'), (2, 'b') tbl(c1, c2); CREATE OR REPLACE TEMPORARY VIEW t2 AS VALUES (1.0, 1), (2.0, 4) tbl(c1, c2); -- Simple Union SELECT * FROM (SELECT * FROM t1 UNION ALL SELECT * FROM t1); -- Type Coerced Union SELECT * FROM (SELECT * FROM t1 UNION ALL SELECT * FROM t2 UNION ALL SELECT * FROM t2); -- Regression test for SPARK-18622 SELECT a FROM (SELECT 0 a, 0 b UNION ALL SELECT SUM(1) a, CAST(0 AS BIGINT) b UNION ALL SELECT 0 a, 0 b) T; -- Regression test for SPARK-18841 Push project through union should not be broken by redundant alias removal. CREATE OR REPLACE TEMPORARY VIEW p1 AS VALUES 1 T(col); CREATE OR REPLACE TEMPORARY VIEW p2 AS VALUES 1 T(col); CREATE OR REPLACE TEMPORARY VIEW p3 AS VALUES 1 T(col); SELECT 1 AS x, col FROM (SELECT col AS col FROM (SELECT p1.col AS col FROM p1 CROSS JOIN p2 UNION ALL SELECT col FROM p3) T1) T2; -- SPARK-24012 Union of map and other compatible columns. SELECT map(1, 2), 'str' UNION ALL SELECT map(1, 2, 3, NULL), 1; -- SPARK-24012 Union of array and other compatible columns. SELECT array(1, 2), 'str' UNION ALL SELECT array(1, 2, 3, NULL), 1; -- Clean-up DROP VIEW IF EXISTS t1; DROP VIEW IF EXISTS t2; DROP VIEW IF EXISTS p1; DROP VIEW IF EXISTS p2; DROP VIEW IF EXISTS p3; -- Argument number exception select concat_ws(); select format_string(); -- A pipe operator for string concatenation select 'a' || 'b' || 'c'; -- replace function select replace('abc', 'b', '123'); select replace('abc', 'b'); -- uuid select length(uuid()), (uuid() <> uuid()); -- position select position('bar' in 'foobarbar'), position(null, 'foobarbar'), position('aaads', null); -- left && right select left("abcd", 2), left("abcd", 5), left("abcd", '2'), left("abcd", null); select left(null, -2), left("abcd", -2), left("abcd", 0), left("abcd", 'a'); select right("abcd", 2), right("abcd", 5), right("abcd", '2'), right("abcd", null); select right(null, -2), right("abcd", -2), right("abcd", 0), right("abcd", 'a'); -- split function SELECT split('aa1cc2ee3', '[1-9]+'); SELECT split('aa1cc2ee3', '[1-9]+', 2); CREATE TEMPORARY VIEW grouping AS SELECT * FROM VALUES ("1", "2", "3", 1), ("4", "5", "6", 1), ("7", "8", "9", 1) as grouping(a, b, c, d); -- SPARK-17849: grouping set throws NPE #1 SELECT a, b, c, count(d) FROM grouping GROUP BY a, b, c GROUPING SETS (()); -- SPARK-17849: grouping set throws NPE #2 SELECT a, b, c, count(d) FROM grouping GROUP BY a, b, c GROUPING SETS ((a)); -- SPARK-17849: grouping set throws NPE #3 SELECT a, b, c, count(d) FROM grouping GROUP BY a, b, c GROUPING SETS ((c)); -- Group sets without explicit group by SELECT c1, sum(c2) FROM (VALUES ('x', 10, 0), ('y', 20, 0)) AS t (c1, c2, c3) GROUP BY GROUPING SETS (c1); -- Group sets without group by and with grouping SELECT c1, sum(c2), grouping(c1) FROM (VALUES ('x', 10, 0), ('y', 20, 0)) AS t (c1, c2, c3) GROUP BY GROUPING SETS (c1); -- Mutiple grouping within a grouping set SELECT c1, c2, Sum(c3), grouping__id FROM (VALUES ('x', 'a', 10), ('y', 'b', 20) ) AS t (c1, c2, c3) GROUP BY GROUPING SETS ( ( c1 ), ( c2 ) ) HAVING GROUPING__ID > 1; -- Group sets without explicit group by SELECT grouping(c1) FROM (VALUES ('x', 'a', 10), ('y', 'b', 20)) AS t (c1, c2, c3) GROUP BY GROUPING SETS (c1,c2); -- Mutiple grouping within a grouping set SELECT -c1 AS c1 FROM (values (1,2), (3,2)) t(c1, c2) GROUP BY GROUPING SETS ((c1), (c1, c2)); -- complex expression in grouping sets SELECT a + b, b, sum(c) FROM (VALUES (1,1,1),(2,2,2)) AS t(a,b,c) GROUP BY GROUPING SETS ( (a + b), (b)); -- complex expression in grouping sets SELECT a + b, b, sum(c) FROM (VALUES (1,1,1),(2,2,2)) AS t(a,b,c) GROUP BY GROUPING SETS ( (a + b), (b + a), (b)); -- more query constructs with grouping sets SELECT c1 AS col1, c2 AS col2 FROM (VALUES (1, 2), (3, 2)) t(c1, c2) GROUP BY GROUPING SETS ( ( c1 ), ( c1, c2 ) ) HAVING col2 IS NOT NULL ORDER BY -col1; -- negative tests - must have at least one grouping expression SELECT a, b, c, count(d) FROM grouping GROUP BY WITH ROLLUP; SELECT a, b, c, count(d) FROM grouping GROUP BY WITH CUBE; SELECT c1 FROM (values (1,2), (3,2)) t(c1, c2) GROUP BY GROUPING SETS (()); CREATE TABLE t (a STRING, b INT, c STRING, d STRING) USING parquet OPTIONS (a '1', b '2') PARTITIONED BY (c, d) CLUSTERED BY (a) SORTED BY (b ASC) INTO 2 BUCKETS COMMENT 'table_comment' TBLPROPERTIES (t 'test'); CREATE TEMPORARY VIEW temp_v AS SELECT * FROM t; CREATE TEMPORARY VIEW temp_Data_Source_View USING org.apache.spark.sql.sources.DDLScanSource OPTIONS ( From '1', To '10', Table 'test1'); CREATE VIEW v AS SELECT * FROM t; ALTER TABLE t SET TBLPROPERTIES (e = '3'); ALTER TABLE t ADD PARTITION (c='Us', d=1); DESCRIBE t; DESC default.t; DESC TABLE t; DESC FORMATTED t; DESC EXTENDED t; ALTER TABLE t UNSET TBLPROPERTIES (e); DESC EXTENDED t; ALTER TABLE t UNSET TBLPROPERTIES (comment); DESC EXTENDED t; DESC t PARTITION (c='Us', d=1); DESC EXTENDED t PARTITION (c='Us', d=1); DESC FORMATTED t PARTITION (c='Us', d=1); -- NoSuchPartitionException: Partition not found in table DESC t PARTITION (c='Us', d=2); -- AnalysisException: Partition spec is invalid DESC t PARTITION (c='Us'); -- ParseException: PARTITION specification is incomplete DESC t PARTITION (c='Us', d); -- DESC Temp View DESC temp_v; DESC TABLE temp_v; DESC FORMATTED temp_v; DESC EXTENDED temp_v; DESC temp_Data_Source_View; -- AnalysisException DESC PARTITION is not allowed on a temporary view DESC temp_v PARTITION (c='Us', d=1); -- DESC Persistent View DESC v; DESC TABLE v; DESC FORMATTED v; DESC EXTENDED v; -- AnalysisException DESC PARTITION is not allowed on a view DESC v PARTITION (c='Us', d=1); -- Explain Describe Table EXPLAIN DESC t; EXPLAIN DESC EXTENDED t; EXPLAIN EXTENDED DESC t; EXPLAIN DESCRIBE t b; EXPLAIN DESCRIBE t PARTITION (c='Us', d=2); -- DROP TEST TABLES/VIEWS DROP TABLE t; DROP VIEW temp_v; DROP VIEW temp_Data_Source_View; DROP VIEW v; -- simple CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet; SHOW CREATE TABLE tbl; DROP TABLE tbl; -- options CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet OPTIONS ('a' 1); SHOW CREATE TABLE tbl; DROP TABLE tbl; -- path option CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet OPTIONS ('path' '/path/to/table'); SHOW CREATE TABLE tbl; DROP TABLE tbl; -- location CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet LOCATION '/path/to/table'; SHOW CREATE TABLE tbl; DROP TABLE tbl; -- partition by CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet PARTITIONED BY (a); SHOW CREATE TABLE tbl; DROP TABLE tbl; -- clustered by CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet CLUSTERED BY (a) SORTED BY (b ASC) INTO 2 BUCKETS; SHOW CREATE TABLE tbl; DROP TABLE tbl; -- comment CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet COMMENT 'This is a comment'; SHOW CREATE TABLE tbl; DROP TABLE tbl; -- tblproperties CREATE TABLE tbl (a INT, b STRING, c INT) USING parquet TBLPROPERTIES ('a' = '1'); SHOW CREATE TABLE tbl; DROP TABLE tbl; -- Create the origin table CREATE TABLE test_change(a INT, b STRING, c INT) using parquet; DESC test_change; -- Change column name (not supported yet) ALTER TABLE test_change CHANGE a a1 INT; DESC test_change; -- Change column dataType (not supported yet) ALTER TABLE test_change CHANGE a a STRING; DESC test_change; -- Change column position (not supported yet) ALTER TABLE test_change CHANGE a a INT AFTER b; ALTER TABLE test_change CHANGE b b STRING FIRST; DESC test_change; -- Change column comment ALTER TABLE test_change CHANGE a a INT COMMENT 'this is column a'; ALTER TABLE test_change CHANGE b b STRING COMMENT '#*02?`'; ALTER TABLE test_change CHANGE c c INT COMMENT ''; DESC test_change; -- Don't change anything. ALTER TABLE test_change CHANGE a a INT COMMENT 'this is column a'; DESC test_change; -- Change a invalid column ALTER TABLE test_change CHANGE invalid_col invalid_col INT; DESC test_change; -- Change column name/dataType/position/comment together (not supported yet) ALTER TABLE test_change CHANGE a a1 STRING COMMENT 'this is column a1' AFTER b; DESC test_change; -- Check the behavior with different values of CASE_SENSITIVE SET spark.sql.caseSensitive=false; ALTER TABLE test_change CHANGE a A INT COMMENT 'this is column A'; SET spark.sql.caseSensitive=true; ALTER TABLE test_change CHANGE a A INT COMMENT 'this is column A1'; DESC test_change; -- Change column can't apply to a temporary/global_temporary view CREATE TEMPORARY VIEW temp_view(a, b) AS SELECT 1, "one"; ALTER TABLE temp_view CHANGE a a INT COMMENT 'this is column a'; CREATE GLOBAL TEMPORARY VIEW global_temp_view(a, b) AS SELECT 1, "one"; ALTER TABLE global_temp.global_temp_view CHANGE a a INT COMMENT 'this is column a'; -- Change column in partition spec (not supported yet) CREATE TABLE partition_table(a INT, b STRING, c INT, d STRING) USING parquet PARTITIONED BY (c, d); ALTER TABLE partition_table PARTITION (c = 1) CHANGE COLUMN a new_a INT; ALTER TABLE partition_table CHANGE COLUMN c c INT COMMENT 'this is column C'; -- DROP TEST TABLE DROP TABLE test_change; DROP TABLE partition_table; DROP VIEW global_temp.global_temp_view; -- Literal parsing -- null select null, Null, nUll; -- boolean select true, tRue, false, fALse; -- byte (tinyint) select 1Y; select 127Y, -128Y; -- out of range byte select 128Y; -- short (smallint) select 1S; select 32767S, -32768S; -- out of range short select 32768S; -- long (bigint) select 1L, 2147483648L; select 9223372036854775807L, -9223372036854775808L; -- out of range long select 9223372036854775808L; -- integral parsing -- parse int select 1, -1; -- parse int max and min value as int select 2147483647, -2147483648; -- parse long max and min value as long select 9223372036854775807, -9223372036854775808; -- parse as decimals (Long.MaxValue + 1, and Long.MinValue - 1) select 9223372036854775808, -9223372036854775809; -- out of range decimal numbers select 1234567890123456789012345678901234567890; select 1234567890123456789012345678901234567890.0; -- double select 1D, 1.2D, 1e10, 1.5e5, .10D, 0.10D, .1e5, .9e+2, 0.9e+2, 900e-1, 9.e+1; select -1D, -1.2D, -1e10, -1.5e5, -.10D, -0.10D, -.1e5; -- negative double select .e3; -- very large decimals (overflowing double). select 1E309, -1E309; -- decimal parsing select 0.3, -0.8, .5, -.18, 0.1111, .1111; -- super large scientific notation double literals should still be valid doubles select 123456789012345678901234567890123456789e10d, 123456789012345678901234567890123456789.1e10d; -- string select "Hello Peter!", 'hello lee!'; -- multi string select 'hello' 'world', 'hello' " " 'lee'; -- single quote within double quotes select "hello 'peter'"; select 'pattern%', 'no-pattern\%', 'pattern\\%', 'pattern\\\%'; select '\'', '"', '\n', '\r', '\t', 'Z'; -- "Hello!" in octals select '\110\145\154\154\157\041'; -- "World :)" in unicode select '\u0057\u006F\u0072\u006C\u0064\u0020\u003A\u0029'; -- date select dAte '2016-03-12'; -- invalid date select date 'mar 11 2016'; -- timestamp select tImEstAmp '2016-03-11 20:54:00.000'; -- invalid timestamp select timestamp '2016-33-11 20:54:00.000'; -- interval select interval 13.123456789 seconds, interval -13.123456789 second; select interval 1 year 2 month 3 week 4 day 5 hour 6 minute 7 seconds 8 millisecond, 9 microsecond; -- ns is not supported select interval 10 nanoseconds; -- unsupported data type select GEO '(10,-6)'; -- big decimal parsing select 90912830918230182310293801923652346786BD, 123.0E-28BD, 123.08BD; -- out of range big decimal select 1.20E-38BD; -- hexadecimal binary literal select x'2379ACFe'; -- invalid hexadecimal binary literal select X'XuZ'; -- Hive literal_double test. SELECT 3.14, -3.14, 3.14e8, 3.14e-8, -3.14e8, -3.14e-8, 3.14e+8, 3.14E8, 3.14E-8; -- map + interval test select map(1, interval 1 day, 2, interval 3 week); -- group by ordinal positions create temporary view data as select * from values (1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2) as data(a, b); -- basic case select a, sum(b) from data group by 1; -- constant case select 1, 2, sum(b) from data group by 1, 2; -- duplicate group by column select a, 1, sum(b) from data group by a, 1; select a, 1, sum(b) from data group by 1, 2; -- group by a non-aggregate expression's ordinal select a, b + 2, count(2) from data group by a, 2; -- with alias select a as aa, b + 2 as bb, count(2) from data group by 1, 2; -- foldable non-literal: this should be the same as no grouping. select sum(b) from data group by 1 + 0; -- negative cases: ordinal out of range select a, b from data group by -1; select a, b from data group by 0; select a, b from data group by 3; -- negative case: position is an aggregate expression select a, b, sum(b) from data group by 3; select a, b, sum(b) + 2 from data group by 3; -- negative case: nondeterministic expression select a, rand(0), sum(b) from (select /*+ REPARTITION(1) */ a, b from data) group by a, 2; -- negative case: star select * from data group by a, b, 1; -- group by ordinal followed by order by select a, count(a) from (select 1 as a) tmp group by 1 order by 1; -- group by ordinal followed by having select count(a), a from (select 1 as a) tmp group by 2 having a > 0; -- mixed cases: group-by ordinals and aliases select a, a AS k, count(b) from data group by k, 1; -- turn off group by ordinal set spark.sql.groupByOrdinal=false; -- can now group by negative literal select sum(b) from data group by -1; -- count(null) should be 0 SELECT COUNT(NULL) FROM VALUES 1, 2, 3; SELECT COUNT(1 + NULL) FROM VALUES 1, 2, 3; -- count(null) on window should be 0 SELECT COUNT(NULL) OVER () FROM VALUES 1, 2, 3; SELECT COUNT(1 + NULL) OVER () FROM VALUES 1, 2, 3; -- unresolved function select * from dummy(3); -- range call with end select * from range(6 + cos(3)); -- range call with start and end select * from range(5, 10); -- range call with step select * from range(0, 10, 2); -- range call with numPartitions select * from range(0, 10, 1, 200); -- range call error select * from range(1, 1, 1, 1, 1); -- range call with null select * from range(1, null); -- range call with a mixed-case function name select * from RaNgE(2); -- Tests covering different scenarios with qualified column names -- Scenario: column resolution scenarios with datasource table CREATE DATABASE mydb1; USE mydb1; CREATE TABLE t1 USING parquet AS SELECT 1 AS i1; CREATE DATABASE mydb2; USE mydb2; CREATE TABLE t1 USING parquet AS SELECT 20 AS i1; USE mydb1; SELECT i1 FROM t1; SELECT i1 FROM mydb1.t1; SELECT t1.i1 FROM t1; SELECT t1.i1 FROM mydb1.t1; SELECT mydb1.t1.i1 FROM t1; SELECT mydb1.t1.i1 FROM mydb1.t1; USE mydb2; SELECT i1 FROM t1; SELECT i1 FROM mydb1.t1; SELECT t1.i1 FROM t1; SELECT t1.i1 FROM mydb1.t1; SELECT mydb1.t1.i1 FROM mydb1.t1; -- Scenario: resolve fully qualified table name in star expansion USE mydb1; SELECT t1.* FROM t1; SELECT mydb1.t1.* FROM mydb1.t1; SELECT t1.* FROM mydb1.t1; USE mydb2; SELECT t1.* FROM t1; SELECT mydb1.t1.* FROM mydb1.t1; SELECT t1.* FROM mydb1.t1; SELECT a.* FROM mydb1.t1 AS a; -- Scenario: resolve in case of subquery USE mydb1; CREATE TABLE t3 USING parquet AS SELECT * FROM VALUES (4,1), (3,1) AS t3(c1, c2); CREATE TABLE t4 USING parquet AS SELECT * FROM VALUES (4,1), (2,1) AS t4(c2, c3); SELECT * FROM t3 WHERE c1 IN (SELECT c2 FROM t4 WHERE t4.c3 = t3.c2); SELECT * FROM mydb1.t3 WHERE c1 IN (SELECT mydb1.t4.c2 FROM mydb1.t4 WHERE mydb1.t4.c3 = mydb1.t3.c2); -- Scenario: column resolution scenarios in join queries SET spark.sql.crossJoin.enabled = true; SELECT mydb1.t1.i1 FROM t1, mydb2.t1; SELECT mydb1.t1.i1 FROM mydb1.t1, mydb2.t1; USE mydb2; SELECT mydb1.t1.i1 FROM t1, mydb1.t1; SET spark.sql.crossJoin.enabled = false; -- Scenario: Table with struct column USE mydb1; CREATE TABLE t5(i1 INT, t5 STRUCT<i1:INT, i2:INT>) USING parquet; INSERT INTO t5 VALUES(1, (2, 3)); SELECT t5.i1 FROM t5; SELECT t5.t5.i1 FROM t5; SELECT t5.t5.i1 FROM mydb1.t5; SELECT t5.i1 FROM mydb1.t5; SELECT t5.* FROM mydb1.t5; SELECT t5.t5.* FROM mydb1.t5; SELECT mydb1.t5.t5.i1 FROM mydb1.t5; SELECT mydb1.t5.t5.i2 FROM mydb1.t5; SELECT mydb1.t5.* FROM mydb1.t5; SELECT mydb1.t5.* FROM t5; -- Cleanup and Reset USE default; DROP DATABASE mydb1 CASCADE; DROP DATABASE mydb2 CASCADE; set spark.sql.legacy.integralDivide.returnBigint=true; select 5 div 2; select 5 div 0; select 5 div null; select null div 5; set spark.sql.legacy.integralDivide.returnBigint=false; select 5 div 2; select 5 div 0; select 5 div null; select null div 5; create temporary view courseSales as select * from values ("dotNET", 2012, 10000), ("Java", 2012, 20000), ("dotNET", 2012, 5000), ("dotNET", 2013, 48000), ("Java", 2013, 30000) as courseSales(course, year, earnings); create temporary view years as select * from values (2012, 1), (2013, 2) as years(y, s); create temporary view yearsWithComplexTypes as select * from values (2012, array(1, 1), map('1', 1), struct(1, 'a')), (2013, array(2, 2), map('2', 2), struct(2, 'b')) as yearsWithComplexTypes(y, a, m, s); -- pivot courses SELECT * FROM ( SELECT year, course, earnings FROM courseSales ) PIVOT ( sum(earnings) FOR course IN ('dotNET', 'Java') ); -- pivot years with no subquery SELECT * FROM courseSales PIVOT ( sum(earnings) FOR year IN (2012, 2013) ); -- pivot courses with multiple aggregations SELECT * FROM ( SELECT year, course, earnings FROM courseSales ) PIVOT ( sum(earnings), avg(earnings) FOR course IN ('dotNET', 'Java') ); -- pivot with no group by column SELECT * FROM ( SELECT course, earnings FROM courseSales ) PIVOT ( sum(earnings) FOR course IN ('dotNET', 'Java') ); -- pivot with no group by column and with multiple aggregations on different columns SELECT * FROM ( SELECT year, course, earnings FROM courseSales ) PIVOT ( sum(earnings), min(year) FOR course IN ('dotNET', 'Java') ); -- pivot on join query with multiple group by columns SELECT * FROM ( SELECT course, year, earnings, s FROM courseSales JOIN years ON year = y ) PIVOT ( sum(earnings) FOR s IN (1, 2) ); -- pivot on join query with multiple aggregations on different columns SELECT * FROM ( SELECT course, year, earnings, s FROM courseSales JOIN years ON year = y ) PIVOT ( sum(earnings), min(s) FOR course IN ('dotNET', 'Java') ); -- pivot on join query with multiple columns in one aggregation SELECT * FROM ( SELECT course, year, earnings, s FROM courseSales JOIN years ON year = y ) PIVOT ( sum(earnings * s) FOR course IN ('dotNET', 'Java') ); -- pivot with aliases and projection SELECT 2012_s, 2013_s, 2012_a, 2013_a, c FROM ( SELECT year y, course c, earnings e FROM courseSales ) PIVOT ( sum(e) s, avg(e) a FOR y IN (2012, 2013) ); -- pivot with projection and value aliases SELECT firstYear_s, secondYear_s, firstYear_a, secondYear_a, c FROM ( SELECT year y, course c, earnings e FROM courseSales ) PIVOT ( sum(e) s, avg(e) a FOR y IN (2012 as firstYear, 2013 secondYear) ); -- pivot years with non-aggregate function SELECT * FROM courseSales PIVOT ( abs(earnings) FOR year IN (2012, 2013) ); -- pivot with one of the expressions as non-aggregate function SELECT * FROM ( SELECT year, course, earnings FROM courseSales ) PIVOT ( sum(earnings), year FOR course IN ('dotNET', 'Java') ); -- pivot with unresolvable columns SELECT * FROM ( SELECT course, earnings FROM courseSales ) PIVOT ( sum(earnings) FOR year IN (2012, 2013) ); -- pivot with complex aggregate expressions SELECT * FROM ( SELECT year, course, earnings FROM courseSales ) PIVOT ( ceil(sum(earnings)), avg(earnings) + 1 as a1 FOR course IN ('dotNET', 'Java') ); -- pivot with invalid arguments in aggregate expressions SELECT * FROM ( SELECT year, course, earnings FROM courseSales ) PIVOT ( sum(avg(earnings)) FOR course IN ('dotNET', 'Java') ); -- pivot on multiple pivot columns SELECT * FROM ( SELECT course, year, earnings, s FROM courseSales JOIN years ON year = y ) PIVOT ( sum(earnings) FOR (course, year) IN (('dotNET', 2012), ('Java', 2013)) ); -- pivot on multiple pivot columns with aliased values SELECT * FROM ( SELECT course, year, earnings, s FROM courseSales JOIN years ON year = y ) PIVOT ( sum(earnings) FOR (course, s) IN (('dotNET', 2) as c1, ('Java', 1) as c2) ); -- pivot on multiple pivot columns with values of wrong data types SELECT * FROM ( SELECT course, year, earnings, s FROM courseSales JOIN years ON year = y ) PIVOT ( sum(earnings) FOR (course, year) IN ('dotNET', 'Java') ); -- pivot with unresolvable values SELECT * FROM courseSales PIVOT ( sum(earnings) FOR year IN (s, 2013) ); -- pivot with non-literal values SELECT * FROM courseSales PIVOT ( sum(earnings) FOR year IN (course, 2013) ); -- pivot on join query with columns of complex data types SELECT * FROM ( SELECT course, year, a FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( min(a) FOR course IN ('dotNET', 'Java') ); -- pivot on multiple pivot columns with agg columns of complex data types SELECT * FROM ( SELECT course, year, y, a FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( max(a) FOR (y, course) IN ((2012, 'dotNET'), (2013, 'Java')) ); -- pivot on pivot column of array type SELECT * FROM ( SELECT earnings, year, a FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( sum(earnings) FOR a IN (array(1, 1), array(2, 2)) ); -- pivot on multiple pivot columns containing array type SELECT * FROM ( SELECT course, earnings, year, a FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( sum(earnings) FOR (course, a) IN (('dotNET', array(1, 1)), ('Java', array(2, 2))) ); -- pivot on pivot column of struct type SELECT * FROM ( SELECT earnings, year, s FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( sum(earnings) FOR s IN ((1, 'a'), (2, 'b')) ); -- pivot on multiple pivot columns containing struct type SELECT * FROM ( SELECT course, earnings, year, s FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( sum(earnings) FOR (course, s) IN (('dotNET', (1, 'a')), ('Java', (2, 'b'))) ); -- pivot on pivot column of map type SELECT * FROM ( SELECT earnings, year, m FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( sum(earnings) FOR m IN (map('1', 1), map('2', 2)) ); -- pivot on multiple pivot columns containing map type SELECT * FROM ( SELECT course, earnings, year, m FROM courseSales JOIN yearsWithComplexTypes ON year = y ) PIVOT ( sum(earnings) FOR (course, m) IN (('dotNET', map('1', 1)), ('Java', map('2', 2))) ); -- grouping columns output in the same order as input -- correctly handle pivot columns with different cases SELECT * FROM ( SELECT course, earnings, "a" as a, "z" as z, "b" as b, "y" as y, "c" as c, "x" as x, "d" as d, "w" as w FROM courseSales ) PIVOT ( sum(Earnings) FOR Course IN ('dotNET', 'Java') ); CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1) AS GROUPING(a); CREATE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (1) AS GROUPING(a); CREATE TEMPORARY VIEW t3 AS SELECT * FROM VALUES (1), (1) AS GROUPING(a); CREATE TEMPORARY VIEW t4 AS SELECT * FROM VALUES (1), (1) AS GROUPING(a); CREATE TEMPORARY VIEW ta AS SELECT a, 'a' AS tag FROM t1 UNION ALL SELECT a, 'b' AS tag FROM t2; CREATE TEMPORARY VIEW tb AS SELECT a, 'a' AS tag FROM t3 UNION ALL SELECT a, 'b' AS tag FROM t4; -- SPARK-19766 Constant alias columns in INNER JOIN should not be folded by FoldablePropagation rule SELECT tb.* FROM ta INNER JOIN tb ON ta.a = tb.a AND ta.tag = tb.tag; -- Tests different scenarios of except operation create temporary view t1 as select * from values ("one", 1), ("two", 2), ("three", 3), ("one", NULL) as t1(k, v); create temporary view t2 as select * from values ("one", 1), ("two", 22), ("one", 5), ("one", NULL), (NULL, 5) as t2(k, v); -- Except operation that will be replaced by left anti join SELECT * FROM t1 EXCEPT SELECT * FROM t2; -- Except operation that will be replaced by Filter: SPARK-22181 SELECT * FROM t1 EXCEPT SELECT * FROM t1 where v <> 1 and v <> 2; -- Except operation that will be replaced by Filter: SPARK-22181 SELECT * FROM t1 where v <> 1 and v <> 22 EXCEPT SELECT * FROM t1 where v <> 2 and v >= 3; -- Except operation that will be replaced by Filter: SPARK-22181 SELECT t1.* FROM t1, t2 where t1.k = t2.k EXCEPT SELECT t1.* FROM t1, t2 where t1.k = t2.k and t1.k != 'one'; -- Except operation that will be replaced by left anti join SELECT * FROM t2 where v >= 1 and v <> 22 EXCEPT SELECT * FROM t1; -- Except operation that will be replaced by left anti join SELECT (SELECT min(k) FROM t2 WHERE t2.k = t1.k) min_t2 FROM t1 MINUS SELECT (SELECT min(k) FROM t2) abs_min_t2 FROM t1 WHERE t1.k = 'one'; -- Except operation that will be replaced by left anti join SELECT t1.k FROM t1 WHERE t1.v <= (SELECT max(t2.v) FROM t2 WHERE t2.k = t1.k) MINUS SELECT t1.k FROM t1 WHERE t1.v >= (SELECT min(t2.v) FROM t2 WHERE t2.k = t1.k); CREATE TEMPORARY VIEW tab1 AS SELECT * FROM VALUES (0), (1), (2), (2), (2), (2), (3), (null), (null) AS tab1(c1); CREATE TEMPORARY VIEW tab2 AS SELECT * FROM VALUES (1), (2), (2), (3), (5), (5), (null) AS tab2(c1); CREATE TEMPORARY VIEW tab3 AS SELECT * FROM VALUES (1, 2), (1, 2), (1, 3), (2, 3), (2, 2) AS tab3(k, v); CREATE TEMPORARY VIEW tab4 AS SELECT * FROM VALUES (1, 2), (2, 3), (2, 2), (2, 2), (2, 20) AS tab4(k, v); -- Basic EXCEPT ALL SELECT * FROM tab1 EXCEPT ALL SELECT * FROM tab2; -- MINUS ALL (synonym for EXCEPT) SELECT * FROM tab1 MINUS ALL SELECT * FROM tab2; -- EXCEPT ALL same table in both branches SELECT * FROM tab1 EXCEPT ALL SELECT * FROM tab2 WHERE c1 IS NOT NULL; -- Empty left relation SELECT * FROM tab1 WHERE c1 > 5 EXCEPT ALL SELECT * FROM tab2; -- Empty right relation SELECT * FROM tab1 EXCEPT ALL SELECT * FROM tab2 WHERE c1 > 6; -- Type Coerced ExceptAll SELECT * FROM tab1 EXCEPT ALL SELECT CAST(1 AS BIGINT); -- Error as types of two side are not compatible SELECT * FROM tab1 EXCEPT ALL SELECT array(1); -- Basic SELECT * FROM tab3 EXCEPT ALL SELECT * FROM tab4; -- Basic SELECT * FROM tab4 EXCEPT ALL SELECT * FROM tab3; -- EXCEPT ALL + INTERSECT SELECT * FROM tab4 EXCEPT ALL SELECT * FROM tab3 INTERSECT DISTINCT SELECT * FROM tab4; -- EXCEPT ALL + EXCEPT SELECT * FROM tab4 EXCEPT ALL SELECT * FROM tab3 EXCEPT DISTINCT SELECT * FROM tab4; -- Chain of set operations SELECT * FROM tab3 EXCEPT ALL SELECT * FROM tab4 UNION ALL SELECT * FROM tab3 EXCEPT DISTINCT SELECT * FROM tab4; -- Mismatch on number of columns across both branches SELECT k FROM tab3 EXCEPT ALL SELECT k, v FROM tab4; -- Chain of set operations SELECT * FROM tab3 EXCEPT ALL SELECT * FROM tab4 UNION SELECT * FROM tab3 EXCEPT DISTINCT SELECT * FROM tab4; -- Using MINUS ALL SELECT * FROM tab3 MINUS ALL SELECT * FROM tab4 UNION SELECT * FROM tab3 MINUS DISTINCT SELECT * FROM tab4; -- Chain of set operations SELECT * FROM tab3 EXCEPT ALL SELECT * FROM tab4 EXCEPT DISTINCT SELECT * FROM tab3 EXCEPT DISTINCT SELECT * FROM tab4; -- Join under except all. Should produce empty resultset since both left and right sets -- are same. SELECT * FROM (SELECT tab3.k, tab4.v FROM tab3 JOIN tab4 ON tab3.k = tab4.k) EXCEPT ALL SELECT * FROM (SELECT tab3.k, tab4.v FROM tab3 JOIN tab4 ON tab3.k = tab4.k); -- Join under except all (2) SELECT * FROM (SELECT tab3.k, tab4.v FROM tab3 JOIN tab4 ON tab3.k = tab4.k) EXCEPT ALL SELECT * FROM (SELECT tab4.v AS k, tab3.k AS v FROM tab3 JOIN tab4 ON tab3.k = tab4.k); -- Group by under ExceptAll SELECT v FROM tab3 GROUP BY v EXCEPT ALL SELECT k FROM tab4 GROUP BY k; -- Clean-up DROP VIEW IF EXISTS tab1; DROP VIEW IF EXISTS tab2; DROP VIEW IF EXISTS tab3; DROP VIEW IF EXISTS tab4; -- Negative testcases for tablesample CREATE DATABASE mydb1; USE mydb1; CREATE TABLE t1 USING parquet AS SELECT 1 AS i1; -- Negative tests: negative percentage SELECT mydb1.t1 FROM t1 TABLESAMPLE (-1 PERCENT); -- Negative tests: percentage over 100 -- The TABLESAMPLE clause samples without replacement, so the value of PERCENT must not exceed 100 SELECT mydb1.t1 FROM t1 TABLESAMPLE (101 PERCENT); -- reset DROP DATABASE mydb1 CASCADE; -- from_csv select from_csv('1, 3.14', 'a INT, f FLOAT'); select from_csv('26/08/2015', 'time Timestamp', map('timestampFormat', 'dd/MM/yyyy')); -- Check if errors handled select from_csv('1', 1); select from_csv('1', 'a InvalidType'); select from_csv('1', 'a INT', named_struct('mode', 'PERMISSIVE')); select from_csv('1', 'a INT', map('mode', 1)); select from_csv(); -- infer schema of json literal select from_csv('1,abc', schema_of_csv('1,abc')); select schema_of_csv('1|abc', map('delimiter', '|')); select schema_of_csv(null); CREATE TEMPORARY VIEW csvTable(csvField, a) AS SELECT * FROM VALUES ('1,abc', 'a'); SELECT schema_of_csv(csvField) FROM csvTable; -- Clean up DROP VIEW IF EXISTS csvTable; -- to_csv select to_csv(named_struct('a', 1, 'b', 2)); select to_csv(named_struct('time', to_timestamp('2015-08-26', 'yyyy-MM-dd')), map('timestampFormat', 'dd/MM/yyyy')); -- Check if errors handled select to_csv(named_struct('a', 1, 'b', 2), named_struct('mode', 'PERMISSIVE')); select to_csv(named_struct('a', 1, 'b', 2), map('mode', 1)); create temporary view hav as select * from values ("one", 1), ("two", 2), ("three", 3), ("one", 5) as hav(k, v); -- having clause SELECT k, sum(v) FROM hav GROUP BY k HAVING sum(v) > 2; -- having condition contains grouping column SELECT count(k) FROM hav GROUP BY v + 1 HAVING v + 1 = 2; -- SPARK-11032: resolve having correctly SELECT MIN(t.v) FROM (SELECT * FROM hav WHERE v > 0) t HAVING(COUNT(1) > 0); -- SPARK-20329: make sure we handle timezones correctly SELECT a + b FROM VALUES (1L, 2), (3L, 4) AS T(a, b) GROUP BY a + b HAVING a + b > 1; -- Test data. CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES (1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2), (null, 1), (3, null), (null, null) AS testData(a, b); -- Aggregate with empty GroupBy expressions. SELECT a, COUNT(b) FROM testData; SELECT COUNT(a), COUNT(b) FROM testData; -- Aggregate with non-empty GroupBy expressions. SELECT a, COUNT(b) FROM testData GROUP BY a; SELECT a, COUNT(b) FROM testData GROUP BY b; SELECT COUNT(a), COUNT(b) FROM testData GROUP BY a; -- Aggregate grouped by literals. SELECT 'foo', COUNT(a) FROM testData GROUP BY 1; -- Aggregate grouped by literals (whole stage code generation). SELECT 'foo' FROM testData WHERE a = 0 GROUP BY 1; -- Aggregate grouped by literals (hash aggregate). SELECT 'foo', APPROX_COUNT_DISTINCT(a) FROM testData WHERE a = 0 GROUP BY 1; -- Aggregate grouped by literals (sort aggregate). SELECT 'foo', MAX(STRUCT(a)) FROM testData WHERE a = 0 GROUP BY 1; -- Aggregate with complex GroupBy expressions. SELECT a + b, COUNT(b) FROM testData GROUP BY a + b; SELECT a + 2, COUNT(b) FROM testData GROUP BY a + 1; SELECT a + 1 + 1, COUNT(b) FROM testData GROUP BY a + 1; -- Aggregate with nulls. SELECT SKEWNESS(a), KURTOSIS(a), MIN(a), MAX(a), AVG(a), VARIANCE(a), STDDEV(a), SUM(a), COUNT(a) FROM testData; -- Aggregate with foldable input and multiple distinct groups. SELECT COUNT(DISTINCT b), COUNT(DISTINCT b, c) FROM (SELECT 1 AS a, 2 AS b, 3 AS c) GROUP BY a; -- Aliases in SELECT could be used in GROUP BY SELECT a AS k, COUNT(b) FROM testData GROUP BY k; SELECT a AS k, COUNT(b) FROM testData GROUP BY k HAVING k > 1; -- Aggregate functions cannot be used in GROUP BY SELECT COUNT(b) AS k FROM testData GROUP BY k; -- Test data. CREATE OR REPLACE TEMPORARY VIEW testDataHasSameNameWithAlias AS SELECT * FROM VALUES (1, 1, 3), (1, 2, 1) AS testDataHasSameNameWithAlias(k, a, v); SELECT k AS a, COUNT(v) FROM testDataHasSameNameWithAlias GROUP BY a; -- turn off group by aliases set spark.sql.groupByAliases=false; -- Check analysis exceptions SELECT a AS k, COUNT(b) FROM testData GROUP BY k; -- Aggregate with empty input and non-empty GroupBy expressions. SELECT a, COUNT(1) FROM testData WHERE false GROUP BY a; -- Aggregate with empty input and empty GroupBy expressions. SELECT COUNT(1) FROM testData WHERE false; SELECT 1 FROM (SELECT COUNT(1) FROM testData WHERE false) t; -- Aggregate with empty GroupBy expressions and filter on top SELECT 1 from ( SELECT 1 AS z, MIN(a.x) FROM (select 1 as x) a WHERE false ) b where b.z != b.z; -- SPARK-24369 multiple distinct aggregations having the same argument set SELECT corr(DISTINCT x, y), corr(DISTINCT y, x), count(*) FROM (VALUES (1, 1), (2, 2), (2, 2)) t(x, y); -- SPARK-25708 HAVING without GROUP BY means global aggregate SELECT 1 FROM range(10) HAVING true; SELECT 1 FROM range(10) HAVING MAX(id) > 0; SELECT id FROM range(10) HAVING id > 0; -- Test data CREATE OR REPLACE TEMPORARY VIEW test_agg AS SELECT * FROM VALUES (1, true), (1, false), (2, true), (3, false), (3, null), (4, null), (4, null), (5, null), (5, true), (5, false) AS test_agg(k, v); -- empty table SELECT every(v), some(v), any(v) FROM test_agg WHERE 1 = 0; -- all null values SELECT every(v), some(v), any(v) FROM test_agg WHERE k = 4; -- aggregates are null Filtering SELECT every(v), some(v), any(v) FROM test_agg WHERE k = 5; -- group by SELECT k, every(v), some(v), any(v) FROM test_agg GROUP BY k; -- having SELECT k, every(v) FROM test_agg GROUP BY k HAVING every(v) = false; SELECT k, every(v) FROM test_agg GROUP BY k HAVING every(v) IS NULL; -- basic subquery path to make sure rewrite happens in both parent and child plans. SELECT k, Every(v) AS every FROM test_agg WHERE k = 2 AND v IN (SELECT Any(v) FROM test_agg WHERE k = 1) GROUP BY k; -- basic subquery path to make sure rewrite happens in both parent and child plans. SELECT k, Every(v) AS every FROM test_agg WHERE k = 2 AND v IN (SELECT Every(v) FROM test_agg WHERE k = 1) GROUP BY k; -- input type checking Int SELECT every(1); -- input type checking Short SELECT some(1S); -- input type checking Long SELECT any(1L); -- input type checking String SELECT every("true"); -- every/some/any aggregates are supported as windows expression. SELECT k, v, every(v) OVER (PARTITION BY k ORDER BY v) FROM test_agg; SELECT k, v, some(v) OVER (PARTITION BY k ORDER BY v) FROM test_agg; SELECT k, v, any(v) OVER (PARTITION BY k ORDER BY v) FROM test_agg; -- Having referencing aggregate expressions is ok. SELECT count(*) FROM test_agg HAVING count(*) > 1L; SELECT k, max(v) FROM test_agg GROUP BY k HAVING max(v) = true; -- Aggrgate expressions can be referenced through an alias SELECT * FROM (SELECT COUNT(*) AS cnt FROM test_agg) WHERE cnt > 1L; -- Error when aggregate expressions are in where clause directly SELECT count(*) FROM test_agg WHERE count(*) > 1L; SELECT count(*) FROM test_agg WHERE count(*) + 1L > 1L; SELECT count(*) FROM test_agg WHERE k = 1 or k = 2 or count(*) + 1L > 1L or max(k) > 1; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1.0 as a, 0.0 as b; -- division, remainder and pmod by 0 return NULL select a / b from t; select a % b from t; select pmod(a, b) from t; -- tests for decimals handling in operations create table decimals_test(id int, a decimal(38,18), b decimal(38,18)) using parquet; insert into decimals_test values(1, 100.0, 999.0), (2, 12345.123, 12345.123), (3, 0.1234567891011, 1234.1), (4, 123456789123456789.0, 1.123456789123456789); -- test decimal operations select id, a+b, a-b, a*b, a/b from decimals_test order by id; -- test operations between decimals and constants select id, a*10, b/10 from decimals_test order by id; -- test operations on constants select 10.3 * 3.0; select 10.3000 * 3.0; select 10.30000 * 30.0; select 10.300000000000000000 * 3.000000000000000000; select 10.300000000000000000 * 3.0000000000000000000; select 2.35E10 * 1.0; -- arithmetic operations causing an overflow return NULL select (5e36 + 0.1) + 5e36; select (-4e36 - 0.1) - 7e36; select 12345678901234567890.0 * 12345678901234567890.0; select 1e35 / 0.1; select 1.2345678901234567890E30 * 1.2345678901234567890E25; -- arithmetic operations causing a precision loss are truncated select 12345678912345678912345678912.1234567 + 9999999999999999999999999999999.12345; select 123456789123456789.1234567890 * 1.123456789123456789; select 12345678912345.123456789123 / 0.000000012345678; -- return NULL instead of rounding, according to old Spark versions' behavior set spark.sql.decimalOperations.allowPrecisionLoss=false; -- test decimal operations select id, a+b, a-b, a*b, a/b from decimals_test order by id; -- test operations between decimals and constants select id, a*10, b/10 from decimals_test order by id; -- test operations on constants select 10.3 * 3.0; select 10.3000 * 3.0; select 10.30000 * 30.0; select 10.300000000000000000 * 3.000000000000000000; select 10.300000000000000000 * 3.0000000000000000000; select 2.35E10 * 1.0; -- arithmetic operations causing an overflow return NULL select (5e36 + 0.1) + 5e36; select (-4e36 - 0.1) - 7e36; select 12345678901234567890.0 * 12345678901234567890.0; select 1e35 / 0.1; select 1.2345678901234567890E30 * 1.2345678901234567890E25; -- arithmetic operations causing a precision loss return NULL select 12345678912345678912345678912.1234567 + 9999999999999999999999999999999.12345; select 123456789123456789.1234567890 * 1.123456789123456789; select 12345678912345.123456789123 / 0.000000012345678; drop table decimals_test; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; SELECT IF(true, cast(1 as tinyint), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as tinyint), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as tinyint), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as smallint), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as smallint), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as int), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as int), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as int), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as bigint), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as bigint), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as float), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as float), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as float), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as double), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as double), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as double), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as string), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as string), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as string), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as tinyint)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as smallint)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as int)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as bigint)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as float)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as double)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as string)) FROM t; SELECT IF(true, cast('1' as binary), cast('2' as binary)) FROM t; SELECT IF(true, cast('1' as binary), cast(2 as boolean)) FROM t; SELECT IF(true, cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as tinyint)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as smallint)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as int)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as bigint)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as float)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as double)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as string)) FROM t; SELECT IF(true, cast(1 as boolean), cast('2' as binary)) FROM t; SELECT IF(true, cast(1 as boolean), cast(2 as boolean)) FROM t; SELECT IF(true, cast(1 as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast(1 as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as tinyint)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as smallint)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as int)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as bigint)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as float)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as double)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as string)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast('2' as binary)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast(2 as boolean)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as tinyint)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as smallint)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as int)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as bigint)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as float)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as double)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as decimal(10, 0))) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as string)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast('2' as binary)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast(2 as boolean)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT IF(true, cast('2017-12-12 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; SELECT cast(1 as tinyint) + cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) + cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) + cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) + cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) + cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) + cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) + cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) + cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) + cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) + cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) + cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) + cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) + cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) + cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) + cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) + cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) + cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) + cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) + cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) + cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) + cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) + cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) + cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) + cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) + cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) + cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) + cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) + cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) + cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) + cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) + cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) + cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) - cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) - cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) - cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) - cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) - cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) - cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) - cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) - cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) - cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) - cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) - cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) - cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) - cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) - cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) - cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) - cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) - cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) - cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) - cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) - cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) - cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) - cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) - cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) - cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) - cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) - cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) - cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) - cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) - cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) - cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) - cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) - cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) * cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) * cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) * cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) * cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) * cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) * cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) * cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) * cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) * cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) * cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) * cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) * cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) * cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) * cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) * cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) * cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) * cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) * cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) * cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) * cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) * cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) * cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017*12*11 09:30:00.0' as timestamp) * cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017*12*11 09:30:00' as date) * cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) * cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) * cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) * cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) * cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) * cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) * cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) * cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) * cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) * cast('2017*12*11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) / cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) / cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) / cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) / cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) / cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) / cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) / cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) / cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) / cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017/12/11 09:30:00.0' as timestamp) / cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017/12/11 09:30:00' as date) / cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) / cast('2017/12/11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) % cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) % cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) % cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) % cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) % cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) % cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) % cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) % cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) % cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) % cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) % cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) % cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) % cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) % cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) % cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) % cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) % cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) % cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) % cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) % cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) % cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) % cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) % cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) % cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) % cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) % cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) % cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) % cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) % cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) % cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) % cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) % cast('2017-12-11 09:30:00' as date) FROM t; SELECT pmod(cast(1 as tinyint), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast(1 as tinyint), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as tinyint), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast(1 as smallint), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast(1 as smallint), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as smallint), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast(1 as int), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast(1 as int), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast(1 as int), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as int), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast(1 as bigint), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast(1 as bigint), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as bigint), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast(1 as float), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast(1 as float), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast(1 as float), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as float), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast(1 as double), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast(1 as double), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast(1 as double), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as double), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast('1' as binary), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast('1' as binary), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast('1' as binary), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(3, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(5, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), cast(1 as decimal(20, 0))) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as tinyint)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as tinyint)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as tinyint)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as smallint)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as smallint)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as smallint)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as int)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as int)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as int)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as bigint)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as bigint)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as bigint)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as float)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as float)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as float)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as double)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as double)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as double)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as decimal(10, 0))) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as string)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as string)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as string)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast('1' as binary)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast('1' as binary)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast('1' as binary)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast(1 as boolean)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast(1 as boolean)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast(1 as boolean)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod(cast(1 as decimal(3, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; SELECT pmod(cast(1 as decimal(5, 0)) , cast('2017-12-11 09:30:00' as date)) FROM t; SELECT pmod(cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT pmod(cast(1 as decimal(20, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as tinyint) = cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) = cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) = cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) = cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) = cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) = cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) = cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) = cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) = cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) = cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) = cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) = cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) = cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) = cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) = cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) = cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) = cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) = cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) = cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) = cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) = cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) = cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) = cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) = cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) = cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) = cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) = cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) = cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) = cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) = cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) = cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) < cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) < cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) < cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) < cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) < cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) < cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) < cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) < cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) < cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) < cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) < cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) < cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) < cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) < cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) < cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) < cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) < cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) < cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) < cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) < cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) < cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) < cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) < cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) < cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) < cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) < cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) < cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) < cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) < cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) < cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) < cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) > cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) > cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) > cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) > cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) > cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) > cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) > cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) > cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) > cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) > cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) > cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) > cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) > cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) > cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) > cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) > cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) > cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) > cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) > cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) > cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) > cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) > cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) > cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) > cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) > cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) > cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) > cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) > cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) > cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) > cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) > cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as tinyint) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as tinyint) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as smallint) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as smallint) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as smallint) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as int) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as int) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as int) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as bigint) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as bigint) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as bigint) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as float) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as float) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as float) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as double) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as double) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as double) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast('1' as binary) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast('1' as binary) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast('1' as binary) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(3, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(5, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> cast(1 as decimal(20, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as smallint) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as int) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as int) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as int) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as float) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as float) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as float) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as double) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as double) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as double) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as string) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as string) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as string) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast('1' as binary) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast('1' as binary) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast('1' as binary) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast(1 as boolean) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(3, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(5, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(20, 0)) <> cast('2017-12-11 09:30:00' as date) FROM t; -- Mixed inputs (output type is string) SELECT elt(2, col1, col2, col3, col4, col5) col FROM ( SELECT 'prefix_' col1, id col2, string(id + 1) col3, encode(string(id + 2), 'utf-8') col4, CAST(id AS DOUBLE) col5 FROM range(10) ); SELECT elt(3, col1, col2, col3, col4) col FROM ( SELECT string(id) col1, string(id + 1) col2, encode(string(id + 2), 'utf-8') col3, encode(string(id + 3), 'utf-8') col4 FROM range(10) ); -- turn on eltOutputAsString set spark.sql.function.eltOutputAsString=true; SELECT elt(1, col1, col2) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2 FROM range(10) ); -- turn off eltOutputAsString set spark.sql.function.eltOutputAsString=false; -- Elt binary inputs (output type is binary) SELECT elt(2, col1, col2) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2 FROM range(10) ); CREATE TEMPORARY VIEW various_maps AS SELECT * FROM VALUES ( map(true, false), map(false, true), map(1Y, 2Y), map(3Y, 4Y), map(1S, 2S), map(3S, 4S), map(4, 6), map(7, 8), map(6L, 7L), map(8L, 9L), map(9223372036854775809, 9223372036854775808), map(9223372036854775808, 9223372036854775809), map(1.0D, 2.0D), map(3.0D, 4.0D), map(float(1.0D), float(2.0D)), map(float(3.0D), float(4.0D)), map(date '2016-03-14', date '2016-03-13'), map(date '2016-03-12', date '2016-03-11'), map(timestamp '2016-11-15 20:54:00.000', timestamp '2016-11-12 20:54:00.000'), map(timestamp '2016-11-11 20:54:00.000', timestamp '2016-11-09 20:54:00.000'), map('a', 'b'), map('c', 'd'), map(array('a', 'b'), array('c', 'd')), map(array('e'), array('f')), map(struct('a', 1), struct('b', 2)), map(struct('c', 3), struct('d', 4)), map('a', 1), map('c', 2), map(1, 'a'), map(2, 'c') ) AS various_maps ( boolean_map1, boolean_map2, tinyint_map1, tinyint_map2, smallint_map1, smallint_map2, int_map1, int_map2, bigint_map1, bigint_map2, decimal_map1, decimal_map2, double_map1, double_map2, float_map1, float_map2, date_map1, date_map2, timestamp_map1, timestamp_map2, string_map1, string_map2, array_map1, array_map2, struct_map1, struct_map2, string_int_map1, string_int_map2, int_string_map1, int_string_map2 ); -- Concatenate maps of the same type SELECT map_concat(boolean_map1, boolean_map2) boolean_map, map_concat(tinyint_map1, tinyint_map2) tinyint_map, map_concat(smallint_map1, smallint_map2) smallint_map, map_concat(int_map1, int_map2) int_map, map_concat(bigint_map1, bigint_map2) bigint_map, map_concat(decimal_map1, decimal_map2) decimal_map, map_concat(float_map1, float_map2) float_map, map_concat(double_map1, double_map2) double_map, map_concat(date_map1, date_map2) date_map, map_concat(timestamp_map1, timestamp_map2) timestamp_map, map_concat(string_map1, string_map2) string_map, map_concat(array_map1, array_map2) array_map, map_concat(struct_map1, struct_map2) struct_map, map_concat(string_int_map1, string_int_map2) string_int_map, map_concat(int_string_map1, int_string_map2) int_string_map FROM various_maps; -- Concatenate maps of different types SELECT map_concat(tinyint_map1, smallint_map2) ts_map, map_concat(smallint_map1, int_map2) si_map, map_concat(int_map1, bigint_map2) ib_map, map_concat(bigint_map1, decimal_map2) bd_map, map_concat(decimal_map1, float_map2) df_map, map_concat(string_map1, date_map2) std_map, map_concat(timestamp_map1, string_map2) tst_map, map_concat(string_map1, int_map2) sti_map, map_concat(int_string_map1, tinyint_map2) istt_map FROM various_maps; -- Concatenate map of incompatible types 1 SELECT map_concat(tinyint_map1, array_map1) tm_map FROM various_maps; -- Concatenate map of incompatible types 2 SELECT map_concat(boolean_map1, int_map2) bi_map FROM various_maps; -- Concatenate map of incompatible types 3 SELECT map_concat(int_map1, struct_map2) is_map FROM various_maps; -- Concatenate map of incompatible types 4 SELECT map_concat(struct_map1, array_map2) ma_map FROM various_maps; -- Concatenate map of incompatible types 5 SELECT map_concat(int_map1, array_map2) ms_map FROM various_maps; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; -- Binary arithmetic SELECT '1' + cast(1 as tinyint) FROM t; SELECT '1' + cast(1 as smallint) FROM t; SELECT '1' + cast(1 as int) FROM t; SELECT '1' + cast(1 as bigint) FROM t; SELECT '1' + cast(1 as float) FROM t; SELECT '1' + cast(1 as double) FROM t; SELECT '1' + cast(1 as decimal(10, 0)) FROM t; SELECT '1' + '1' FROM t; SELECT '1' + cast('1' as binary) FROM t; SELECT '1' + cast(1 as boolean) FROM t; SELECT '1' + cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' + cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' - cast(1 as tinyint) FROM t; SELECT '1' - cast(1 as smallint) FROM t; SELECT '1' - cast(1 as int) FROM t; SELECT '1' - cast(1 as bigint) FROM t; SELECT '1' - cast(1 as float) FROM t; SELECT '1' - cast(1 as double) FROM t; SELECT '1' - cast(1 as decimal(10, 0)) FROM t; SELECT '1' - '1' FROM t; SELECT '1' - cast('1' as binary) FROM t; SELECT '1' - cast(1 as boolean) FROM t; SELECT '1' - cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' - cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' * cast(1 as tinyint) FROM t; SELECT '1' * cast(1 as smallint) FROM t; SELECT '1' * cast(1 as int) FROM t; SELECT '1' * cast(1 as bigint) FROM t; SELECT '1' * cast(1 as float) FROM t; SELECT '1' * cast(1 as double) FROM t; SELECT '1' * cast(1 as decimal(10, 0)) FROM t; SELECT '1' * '1' FROM t; SELECT '1' * cast('1' as binary) FROM t; SELECT '1' * cast(1 as boolean) FROM t; SELECT '1' * cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' * cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' / cast(1 as tinyint) FROM t; SELECT '1' / cast(1 as smallint) FROM t; SELECT '1' / cast(1 as int) FROM t; SELECT '1' / cast(1 as bigint) FROM t; SELECT '1' / cast(1 as float) FROM t; SELECT '1' / cast(1 as double) FROM t; SELECT '1' / cast(1 as decimal(10, 0)) FROM t; SELECT '1' / '1' FROM t; SELECT '1' / cast('1' as binary) FROM t; SELECT '1' / cast(1 as boolean) FROM t; SELECT '1' / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' / cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' % cast(1 as tinyint) FROM t; SELECT '1' % cast(1 as smallint) FROM t; SELECT '1' % cast(1 as int) FROM t; SELECT '1' % cast(1 as bigint) FROM t; SELECT '1' % cast(1 as float) FROM t; SELECT '1' % cast(1 as double) FROM t; SELECT '1' % cast(1 as decimal(10, 0)) FROM t; SELECT '1' % '1' FROM t; SELECT '1' % cast('1' as binary) FROM t; SELECT '1' % cast(1 as boolean) FROM t; SELECT '1' % cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' % cast('2017-12-11 09:30:00' as date) FROM t; SELECT pmod('1', cast(1 as tinyint)) FROM t; SELECT pmod('1', cast(1 as smallint)) FROM t; SELECT pmod('1', cast(1 as int)) FROM t; SELECT pmod('1', cast(1 as bigint)) FROM t; SELECT pmod('1', cast(1 as float)) FROM t; SELECT pmod('1', cast(1 as double)) FROM t; SELECT pmod('1', cast(1 as decimal(10, 0))) FROM t; SELECT pmod('1', '1') FROM t; SELECT pmod('1', cast('1' as binary)) FROM t; SELECT pmod('1', cast(1 as boolean)) FROM t; SELECT pmod('1', cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT pmod('1', cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as tinyint) + '1' FROM t; SELECT cast(1 as smallint) + '1' FROM t; SELECT cast(1 as int) + '1' FROM t; SELECT cast(1 as bigint) + '1' FROM t; SELECT cast(1 as float) + '1' FROM t; SELECT cast(1 as double) + '1' FROM t; SELECT cast(1 as decimal(10, 0)) + '1' FROM t; SELECT cast('1' as binary) + '1' FROM t; SELECT cast(1 as boolean) + '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) + '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) + '1' FROM t; SELECT cast(1 as tinyint) - '1' FROM t; SELECT cast(1 as smallint) - '1' FROM t; SELECT cast(1 as int) - '1' FROM t; SELECT cast(1 as bigint) - '1' FROM t; SELECT cast(1 as float) - '1' FROM t; SELECT cast(1 as double) - '1' FROM t; SELECT cast(1 as decimal(10, 0)) - '1' FROM t; SELECT cast('1' as binary) - '1' FROM t; SELECT cast(1 as boolean) - '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) - '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) - '1' FROM t; SELECT cast(1 as tinyint) * '1' FROM t; SELECT cast(1 as smallint) * '1' FROM t; SELECT cast(1 as int) * '1' FROM t; SELECT cast(1 as bigint) * '1' FROM t; SELECT cast(1 as float) * '1' FROM t; SELECT cast(1 as double) * '1' FROM t; SELECT cast(1 as decimal(10, 0)) * '1' FROM t; SELECT cast('1' as binary) * '1' FROM t; SELECT cast(1 as boolean) * '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) * '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) * '1' FROM t; SELECT cast(1 as tinyint) / '1' FROM t; SELECT cast(1 as smallint) / '1' FROM t; SELECT cast(1 as int) / '1' FROM t; SELECT cast(1 as bigint) / '1' FROM t; SELECT cast(1 as float) / '1' FROM t; SELECT cast(1 as double) / '1' FROM t; SELECT cast(1 as decimal(10, 0)) / '1' FROM t; SELECT cast('1' as binary) / '1' FROM t; SELECT cast(1 as boolean) / '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) / '1' FROM t; SELECT cast(1 as tinyint) % '1' FROM t; SELECT cast(1 as smallint) % '1' FROM t; SELECT cast(1 as int) % '1' FROM t; SELECT cast(1 as bigint) % '1' FROM t; SELECT cast(1 as float) % '1' FROM t; SELECT cast(1 as double) % '1' FROM t; SELECT cast(1 as decimal(10, 0)) % '1' FROM t; SELECT cast('1' as binary) % '1' FROM t; SELECT cast(1 as boolean) % '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) % '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) % '1' FROM t; SELECT pmod(cast(1 as tinyint), '1') FROM t; SELECT pmod(cast(1 as smallint), '1') FROM t; SELECT pmod(cast(1 as int), '1') FROM t; SELECT pmod(cast(1 as bigint), '1') FROM t; SELECT pmod(cast(1 as float), '1') FROM t; SELECT pmod(cast(1 as double), '1') FROM t; SELECT pmod(cast(1 as decimal(10, 0)), '1') FROM t; SELECT pmod(cast('1' as binary), '1') FROM t; SELECT pmod(cast(1 as boolean), '1') FROM t; SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), '1') FROM t; SELECT pmod(cast('2017-12-11 09:30:00' as date), '1') FROM t; -- Equality SELECT '1' = cast(1 as tinyint) FROM t; SELECT '1' = cast(1 as smallint) FROM t; SELECT '1' = cast(1 as int) FROM t; SELECT '1' = cast(1 as bigint) FROM t; SELECT '1' = cast(1 as float) FROM t; SELECT '1' = cast(1 as double) FROM t; SELECT '1' = cast(1 as decimal(10, 0)) FROM t; SELECT '1' = '1' FROM t; SELECT '1' = cast('1' as binary) FROM t; SELECT '1' = cast(1 as boolean) FROM t; SELECT '1' = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' = cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) = '1' FROM t; SELECT cast(1 as smallint) = '1' FROM t; SELECT cast(1 as int) = '1' FROM t; SELECT cast(1 as bigint) = '1' FROM t; SELECT cast(1 as float) = '1' FROM t; SELECT cast(1 as double) = '1' FROM t; SELECT cast(1 as decimal(10, 0)) = '1' FROM t; SELECT cast('1' as binary) = '1' FROM t; SELECT cast(1 as boolean) = '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) = '1' FROM t; SELECT '1' <=> cast(1 as tinyint) FROM t; SELECT '1' <=> cast(1 as smallint) FROM t; SELECT '1' <=> cast(1 as int) FROM t; SELECT '1' <=> cast(1 as bigint) FROM t; SELECT '1' <=> cast(1 as float) FROM t; SELECT '1' <=> cast(1 as double) FROM t; SELECT '1' <=> cast(1 as decimal(10, 0)) FROM t; SELECT '1' <=> '1' FROM t; SELECT '1' <=> cast('1' as binary) FROM t; SELECT '1' <=> cast(1 as boolean) FROM t; SELECT '1' <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) <=> '1' FROM t; SELECT cast(1 as smallint) <=> '1' FROM t; SELECT cast(1 as int) <=> '1' FROM t; SELECT cast(1 as bigint) <=> '1' FROM t; SELECT cast(1 as float) <=> '1' FROM t; SELECT cast(1 as double) <=> '1' FROM t; SELECT cast(1 as decimal(10, 0)) <=> '1' FROM t; SELECT cast('1' as binary) <=> '1' FROM t; SELECT cast(1 as boolean) <=> '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> '1' FROM t; -- Binary comparison SELECT '1' < cast(1 as tinyint) FROM t; SELECT '1' < cast(1 as smallint) FROM t; SELECT '1' < cast(1 as int) FROM t; SELECT '1' < cast(1 as bigint) FROM t; SELECT '1' < cast(1 as float) FROM t; SELECT '1' < cast(1 as double) FROM t; SELECT '1' < cast(1 as decimal(10, 0)) FROM t; SELECT '1' < '1' FROM t; SELECT '1' < cast('1' as binary) FROM t; SELECT '1' < cast(1 as boolean) FROM t; SELECT '1' < cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' < cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' <= cast(1 as tinyint) FROM t; SELECT '1' <= cast(1 as smallint) FROM t; SELECT '1' <= cast(1 as int) FROM t; SELECT '1' <= cast(1 as bigint) FROM t; SELECT '1' <= cast(1 as float) FROM t; SELECT '1' <= cast(1 as double) FROM t; SELECT '1' <= cast(1 as decimal(10, 0)) FROM t; SELECT '1' <= '1' FROM t; SELECT '1' <= cast('1' as binary) FROM t; SELECT '1' <= cast(1 as boolean) FROM t; SELECT '1' <= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' <= cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' > cast(1 as tinyint) FROM t; SELECT '1' > cast(1 as smallint) FROM t; SELECT '1' > cast(1 as int) FROM t; SELECT '1' > cast(1 as bigint) FROM t; SELECT '1' > cast(1 as float) FROM t; SELECT '1' > cast(1 as double) FROM t; SELECT '1' > cast(1 as decimal(10, 0)) FROM t; SELECT '1' > '1' FROM t; SELECT '1' > cast('1' as binary) FROM t; SELECT '1' > cast(1 as boolean) FROM t; SELECT '1' > cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' > cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' >= cast(1 as tinyint) FROM t; SELECT '1' >= cast(1 as smallint) FROM t; SELECT '1' >= cast(1 as int) FROM t; SELECT '1' >= cast(1 as bigint) FROM t; SELECT '1' >= cast(1 as float) FROM t; SELECT '1' >= cast(1 as double) FROM t; SELECT '1' >= cast(1 as decimal(10, 0)) FROM t; SELECT '1' >= '1' FROM t; SELECT '1' >= cast('1' as binary) FROM t; SELECT '1' >= cast(1 as boolean) FROM t; SELECT '1' >= cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' >= cast('2017-12-11 09:30:00' as date) FROM t; SELECT '1' <> cast(1 as tinyint) FROM t; SELECT '1' <> cast(1 as smallint) FROM t; SELECT '1' <> cast(1 as int) FROM t; SELECT '1' <> cast(1 as bigint) FROM t; SELECT '1' <> cast(1 as float) FROM t; SELECT '1' <> cast(1 as double) FROM t; SELECT '1' <> cast(1 as decimal(10, 0)) FROM t; SELECT '1' <> '1' FROM t; SELECT '1' <> cast('1' as binary) FROM t; SELECT '1' <> cast(1 as boolean) FROM t; SELECT '1' <> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT '1' <> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) < '1' FROM t; SELECT cast(1 as smallint) < '1' FROM t; SELECT cast(1 as int) < '1' FROM t; SELECT cast(1 as bigint) < '1' FROM t; SELECT cast(1 as float) < '1' FROM t; SELECT cast(1 as double) < '1' FROM t; SELECT cast(1 as decimal(10, 0)) < '1' FROM t; SELECT '1' < '1' FROM t; SELECT cast('1' as binary) < '1' FROM t; SELECT cast(1 as boolean) < '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) < '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) < '1' FROM t; SELECT cast(1 as tinyint) <= '1' FROM t; SELECT cast(1 as smallint) <= '1' FROM t; SELECT cast(1 as int) <= '1' FROM t; SELECT cast(1 as bigint) <= '1' FROM t; SELECT cast(1 as float) <= '1' FROM t; SELECT cast(1 as double) <= '1' FROM t; SELECT cast(1 as decimal(10, 0)) <= '1' FROM t; SELECT '1' <= '1' FROM t; SELECT cast('1' as binary) <= '1' FROM t; SELECT cast(1 as boolean) <= '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <= '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) <= '1' FROM t; SELECT cast(1 as tinyint) > '1' FROM t; SELECT cast(1 as smallint) > '1' FROM t; SELECT cast(1 as int) > '1' FROM t; SELECT cast(1 as bigint) > '1' FROM t; SELECT cast(1 as float) > '1' FROM t; SELECT cast(1 as double) > '1' FROM t; SELECT cast(1 as decimal(10, 0)) > '1' FROM t; SELECT '1' > '1' FROM t; SELECT cast('1' as binary) > '1' FROM t; SELECT cast(1 as boolean) > '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) > '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) > '1' FROM t; SELECT cast(1 as tinyint) >= '1' FROM t; SELECT cast(1 as smallint) >= '1' FROM t; SELECT cast(1 as int) >= '1' FROM t; SELECT cast(1 as bigint) >= '1' FROM t; SELECT cast(1 as float) >= '1' FROM t; SELECT cast(1 as double) >= '1' FROM t; SELECT cast(1 as decimal(10, 0)) >= '1' FROM t; SELECT '1' >= '1' FROM t; SELECT cast('1' as binary) >= '1' FROM t; SELECT cast(1 as boolean) >= '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) >= '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) >= '1' FROM t; SELECT cast(1 as tinyint) <> '1' FROM t; SELECT cast(1 as smallint) <> '1' FROM t; SELECT cast(1 as int) <> '1' FROM t; SELECT cast(1 as bigint) <> '1' FROM t; SELECT cast(1 as float) <> '1' FROM t; SELECT cast(1 as double) <> '1' FROM t; SELECT cast(1 as decimal(10, 0)) <> '1' FROM t; SELECT '1' <> '1' FROM t; SELECT cast('1' as binary) <> '1' FROM t; SELECT cast(1 as boolean) <> '1' FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <> '1' FROM t; SELECT cast('2017-12-11 09:30:00' as date) <> '1' FROM t; -- Functions SELECT abs('1') FROM t; SELECT sum('1') FROM t; SELECT avg('1') FROM t; SELECT stddev_pop('1') FROM t; SELECT stddev_samp('1') FROM t; SELECT - '1' FROM t; SELECT + '1' FROM t; SELECT var_pop('1') FROM t; SELECT var_samp('1') FROM t; SELECT skewness('1') FROM t; SELECT kurtosis('1') FROM t; CREATE TEMPORARY VIEW various_maps AS SELECT * FROM VALUES ( map(true, false), map(2Y, 1Y), map(2S, 1S), map(2, 1), map(2L, 1L), map(922337203685477897945456575809789456, 922337203685477897945456575809789456), map(9.22337203685477897945456575809789456, 9.22337203685477897945456575809789456), map(2.0D, 1.0D), map(float(2.0), float(1.0)), map(date '2016-03-14', date '2016-03-13'), map(timestamp '2016-11-15 20:54:00.000', timestamp '2016-11-12 20:54:00.000'), map('true', 'false', '2', '1'), map('2016-03-14', '2016-03-13'), map('2016-11-15 20:54:00.000', '2016-11-12 20:54:00.000'), map('922337203685477897945456575809789456', 'text'), map(array(1L, 2L), array(1L, 2L)), map(array(1, 2), array(1, 2)), map(struct(1S, 2L), struct(1S, 2L)), map(struct(1, 2), struct(1, 2)) ) AS various_maps( boolean_map, tinyint_map, smallint_map, int_map, bigint_map, decimal_map1, decimal_map2, double_map, float_map, date_map, timestamp_map, string_map1, string_map2, string_map3, string_map4, array_map1, array_map2, struct_map1, struct_map2 ); SELECT map_zip_with(tinyint_map, smallint_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(smallint_map, int_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(int_map, bigint_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(double_map, float_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(decimal_map1, decimal_map2, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(decimal_map1, int_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(decimal_map1, double_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(decimal_map2, int_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(decimal_map2, double_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(string_map1, int_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(string_map2, date_map, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(timestamp_map, string_map3, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(decimal_map1, string_map4, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(array_map1, array_map2, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; SELECT map_zip_with(struct_map1, struct_map2, (k, v1, v2) -> struct(k, v1, v2)) m FROM various_maps; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; select cast(1 as tinyint) + interval 2 day; select cast(1 as smallint) + interval 2 day; select cast(1 as int) + interval 2 day; select cast(1 as bigint) + interval 2 day; select cast(1 as float) + interval 2 day; select cast(1 as double) + interval 2 day; select cast(1 as decimal(10, 0)) + interval 2 day; select cast('2017-12-11' as string) + interval 2 day; select cast('2017-12-11 09:30:00' as string) + interval 2 day; select cast('1' as binary) + interval 2 day; select cast(1 as boolean) + interval 2 day; select cast('2017-12-11 09:30:00.0' as timestamp) + interval 2 day; select cast('2017-12-11 09:30:00' as date) + interval 2 day; select interval 2 day + cast(1 as tinyint); select interval 2 day + cast(1 as smallint); select interval 2 day + cast(1 as int); select interval 2 day + cast(1 as bigint); select interval 2 day + cast(1 as float); select interval 2 day + cast(1 as double); select interval 2 day + cast(1 as decimal(10, 0)); select interval 2 day + cast('2017-12-11' as string); select interval 2 day + cast('2017-12-11 09:30:00' as string); select interval 2 day + cast('1' as binary); select interval 2 day + cast(1 as boolean); select interval 2 day + cast('2017-12-11 09:30:00.0' as timestamp); select interval 2 day + cast('2017-12-11 09:30:00' as date); select cast(1 as tinyint) - interval 2 day; select cast(1 as smallint) - interval 2 day; select cast(1 as int) - interval 2 day; select cast(1 as bigint) - interval 2 day; select cast(1 as float) - interval 2 day; select cast(1 as double) - interval 2 day; select cast(1 as decimal(10, 0)) - interval 2 day; select cast('2017-12-11' as string) - interval 2 day; select cast('2017-12-11 09:30:00' as string) - interval 2 day; select cast('1' as binary) - interval 2 day; select cast(1 as boolean) - interval 2 day; select cast('2017-12-11 09:30:00.0' as timestamp) - interval 2 day; select cast('2017-12-11 09:30:00' as date) - interval 2 day; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as tinyint)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as smallint)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as int)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as bigint)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as float)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as double)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as decimal(10, 0))) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('1' as binary)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00' as date)) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as tinyint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as smallint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as int) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as bigint) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as float) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as double) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as decimal(10, 0)) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as string) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('1' as binary) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast(1 as boolean) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00.0' as timestamp) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; SELECT COUNT(*) OVER (PARTITION BY 1 ORDER BY cast('2017-12-11 09:30:00' as date) DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM t; -- Concatenate mixed inputs (output type is string) SELECT (col1 || col2 || col3) col FROM ( SELECT id col1, string(id + 1) col2, encode(string(id + 2), 'utf-8') col3 FROM range(10) ); SELECT ((col1 || col2) || (col3 || col4) || col5) col FROM ( SELECT 'prefix_' col1, id col2, string(id + 1) col3, encode(string(id + 2), 'utf-8') col4, CAST(id AS DOUBLE) col5 FROM range(10) ); SELECT ((col1 || col2) || (col3 || col4)) col FROM ( SELECT string(id) col1, string(id + 1) col2, encode(string(id + 2), 'utf-8') col3, encode(string(id + 3), 'utf-8') col4 FROM range(10) ); -- turn on concatBinaryAsString set spark.sql.function.concatBinaryAsString=true; SELECT (col1 || col2) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2 FROM range(10) ); SELECT (col1 || col2 || col3 || col4) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2, encode(string(id + 2), 'utf-8') col3, encode(string(id + 3), 'utf-8') col4 FROM range(10) ); SELECT ((col1 || col2) || (col3 || col4)) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2, encode(string(id + 2), 'utf-8') col3, encode(string(id + 3), 'utf-8') col4 FROM range(10) ); -- turn off concatBinaryAsString set spark.sql.function.concatBinaryAsString=false; -- Concatenate binary inputs (output type is binary) SELECT (col1 || col2) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2 FROM range(10) ); SELECT (col1 || col2 || col3 || col4) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2, encode(string(id + 2), 'utf-8') col3, encode(string(id + 3), 'utf-8') col4 FROM range(10) ); SELECT ((col1 || col2) || (col3 || col4)) col FROM ( SELECT encode(string(id), 'utf-8') col1, encode(string(id + 1), 'utf-8') col2, encode(string(id + 2), 'utf-8') col3, encode(string(id + 3), 'utf-8') col4 FROM range(10) ); CREATE TEMPORARY VIEW various_arrays AS SELECT * FROM VALUES ( array(true, false), array(true), array(2Y, 1Y), array(3Y, 4Y), array(2S, 1S), array(3S, 4S), array(2, 1), array(3, 4), array(2L, 1L), array(3L, 4L), array(9223372036854775809, 9223372036854775808), array(9223372036854775808, 9223372036854775809), array(2.0D, 1.0D), array(3.0D, 4.0D), array(float(2.0), float(1.0)), array(float(3.0), float(4.0)), array(date '2016-03-14', date '2016-03-13'), array(date '2016-03-12', date '2016-03-11'), array(timestamp '2016-11-15 20:54:00.000', timestamp '2016-11-12 20:54:00.000'), array(timestamp '2016-11-11 20:54:00.000'), array('a', 'b'), array('c', 'd'), array(array('a', 'b'), array('c', 'd')), array(array('e'), array('f')), array(struct('a', 1), struct('b', 2)), array(struct('c', 3), struct('d', 4)), array(map('a', 1), map('b', 2)), array(map('c', 3), map('d', 4)) ) AS various_arrays( boolean_array1, boolean_array2, tinyint_array1, tinyint_array2, smallint_array1, smallint_array2, int_array1, int_array2, bigint_array1, bigint_array2, decimal_array1, decimal_array2, double_array1, double_array2, float_array1, float_array2, date_array1, data_array2, timestamp_array1, timestamp_array2, string_array1, string_array2, array_array1, array_array2, struct_array1, struct_array2, map_array1, map_array2 ); -- Concatenate arrays of the same type SELECT (boolean_array1 || boolean_array2) boolean_array, (tinyint_array1 || tinyint_array2) tinyint_array, (smallint_array1 || smallint_array2) smallint_array, (int_array1 || int_array2) int_array, (bigint_array1 || bigint_array2) bigint_array, (decimal_array1 || decimal_array2) decimal_array, (double_array1 || double_array2) double_array, (float_array1 || float_array2) float_array, (date_array1 || data_array2) data_array, (timestamp_array1 || timestamp_array2) timestamp_array, (string_array1 || string_array2) string_array, (array_array1 || array_array2) array_array, (struct_array1 || struct_array2) struct_array, (map_array1 || map_array2) map_array FROM various_arrays; -- Concatenate arrays of different types SELECT (tinyint_array1 || smallint_array2) ts_array, (smallint_array1 || int_array2) si_array, (int_array1 || bigint_array2) ib_array, (bigint_array1 || decimal_array2) bd_array, (decimal_array1 || double_array2) dd_array, (double_array1 || float_array2) df_array, (string_array1 || data_array2) std_array, (timestamp_array1 || string_array2) tst_array, (string_array1 || int_array2) sti_array FROM various_arrays; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- -- ImplicitTypeCasts CREATE TEMPORARY VIEW t AS SELECT 1; SELECT 1 + '2' FROM t; SELECT 1 - '2' FROM t; SELECT 1 * '2' FROM t; SELECT 4 / '2' FROM t; SELECT 1.1 + '2' FROM t; SELECT 1.1 - '2' FROM t; SELECT 1.1 * '2' FROM t; SELECT 4.4 / '2' FROM t; SELECT 1.1 + '2.2' FROM t; SELECT 1.1 - '2.2' FROM t; SELECT 1.1 * '2.2' FROM t; SELECT 4.4 / '2.2' FROM t; -- concatenation SELECT '$' || cast(1 as smallint) || '$' FROM t; SELECT '$' || 1 || '$' FROM t; SELECT '$' || cast(1 as bigint) || '$' FROM t; SELECT '$' || cast(1.1 as float) || '$' FROM t; SELECT '$' || cast(1.1 as double) || '$' FROM t; SELECT '$' || 1.1 || '$' FROM t; SELECT '$' || cast(1.1 as decimal(8,3)) || '$' FROM t; SELECT '$' || 'abcd' || '$' FROM t; SELECT '$' || date('1996-09-09') || '$' FROM t; SELECT '$' || timestamp('1996-09-09 10:11:12.4' )|| '$' FROM t; -- length functions SELECT length(cast(1 as smallint)) FROM t; SELECT length(cast(1 as int)) FROM t; SELECT length(cast(1 as bigint)) FROM t; SELECT length(cast(1.1 as float)) FROM t; SELECT length(cast(1.1 as double)) FROM t; SELECT length(1.1) FROM t; SELECT length(cast(1.1 as decimal(8,3))) FROM t; SELECT length('four') FROM t; SELECT length(date('1996-09-10')) FROM t; SELECT length(timestamp('1996-09-10 10:11:12.4')) FROM t; -- extract SELECT year( '1996-01-10') FROM t; SELECT month( '1996-01-10') FROM t; SELECT day( '1996-01-10') FROM t; SELECT hour( '10:11:12') FROM t; SELECT minute( '10:11:12') FROM t; SELECT second( '10:11:12') FROM t; -- like select 1 like '%' FROM t; select date('1996-09-10') like '19%' FROM t; select '1' like 1 FROM t; select '1 ' like 1 FROM t; select '1996-09-10' like date('1996-09-10') FROM t; SELECT array_join(array(true, false), ', '); SELECT array_join(array(2Y, 1Y), ', '); SELECT array_join(array(2S, 1S), ', '); SELECT array_join(array(2, 1), ', '); SELECT array_join(array(2L, 1L), ', '); SELECT array_join(array(9223372036854775809, 9223372036854775808), ', '); SELECT array_join(array(2.0D, 1.0D), ', '); SELECT array_join(array(float(2.0), float(1.0)), ', '); SELECT array_join(array(date '2016-03-14', date '2016-03-13'), ', '); SELECT array_join(array(timestamp '2016-11-15 20:54:00.000', timestamp '2016-11-12 20:54:00.000'), ', '); SELECT array_join(array('a', 'b'), ', '); -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- -- Binary Comparison CREATE TEMPORARY VIEW t AS SELECT 1; SELECT cast(1 as binary) = '1' FROM t; SELECT cast(1 as binary) > '2' FROM t; SELECT cast(1 as binary) >= '2' FROM t; SELECT cast(1 as binary) < '2' FROM t; SELECT cast(1 as binary) <= '2' FROM t; SELECT cast(1 as binary) <> '2' FROM t; SELECT cast(1 as binary) = cast(null as string) FROM t; SELECT cast(1 as binary) > cast(null as string) FROM t; SELECT cast(1 as binary) >= cast(null as string) FROM t; SELECT cast(1 as binary) < cast(null as string) FROM t; SELECT cast(1 as binary) <= cast(null as string) FROM t; SELECT cast(1 as binary) <> cast(null as string) FROM t; SELECT '1' = cast(1 as binary) FROM t; SELECT '2' > cast(1 as binary) FROM t; SELECT '2' >= cast(1 as binary) FROM t; SELECT '2' < cast(1 as binary) FROM t; SELECT '2' <= cast(1 as binary) FROM t; SELECT '2' <> cast(1 as binary) FROM t; SELECT cast(null as string) = cast(1 as binary) FROM t; SELECT cast(null as string) > cast(1 as binary) FROM t; SELECT cast(null as string) >= cast(1 as binary) FROM t; SELECT cast(null as string) < cast(1 as binary) FROM t; SELECT cast(null as string) <= cast(1 as binary) FROM t; SELECT cast(null as string) <> cast(1 as binary) FROM t; SELECT cast(1 as tinyint) = '1' FROM t; SELECT cast(1 as tinyint) > '2' FROM t; SELECT cast(1 as tinyint) >= '2' FROM t; SELECT cast(1 as tinyint) < '2' FROM t; SELECT cast(1 as tinyint) <= '2' FROM t; SELECT cast(1 as tinyint) <> '2' FROM t; SELECT cast(1 as tinyint) = cast(null as string) FROM t; SELECT cast(1 as tinyint) > cast(null as string) FROM t; SELECT cast(1 as tinyint) >= cast(null as string) FROM t; SELECT cast(1 as tinyint) < cast(null as string) FROM t; SELECT cast(1 as tinyint) <= cast(null as string) FROM t; SELECT cast(1 as tinyint) <> cast(null as string) FROM t; SELECT '1' = cast(1 as tinyint) FROM t; SELECT '2' > cast(1 as tinyint) FROM t; SELECT '2' >= cast(1 as tinyint) FROM t; SELECT '2' < cast(1 as tinyint) FROM t; SELECT '2' <= cast(1 as tinyint) FROM t; SELECT '2' <> cast(1 as tinyint) FROM t; SELECT cast(null as string) = cast(1 as tinyint) FROM t; SELECT cast(null as string) > cast(1 as tinyint) FROM t; SELECT cast(null as string) >= cast(1 as tinyint) FROM t; SELECT cast(null as string) < cast(1 as tinyint) FROM t; SELECT cast(null as string) <= cast(1 as tinyint) FROM t; SELECT cast(null as string) <> cast(1 as tinyint) FROM t; SELECT cast(1 as smallint) = '1' FROM t; SELECT cast(1 as smallint) > '2' FROM t; SELECT cast(1 as smallint) >= '2' FROM t; SELECT cast(1 as smallint) < '2' FROM t; SELECT cast(1 as smallint) <= '2' FROM t; SELECT cast(1 as smallint) <> '2' FROM t; SELECT cast(1 as smallint) = cast(null as string) FROM t; SELECT cast(1 as smallint) > cast(null as string) FROM t; SELECT cast(1 as smallint) >= cast(null as string) FROM t; SELECT cast(1 as smallint) < cast(null as string) FROM t; SELECT cast(1 as smallint) <= cast(null as string) FROM t; SELECT cast(1 as smallint) <> cast(null as string) FROM t; SELECT '1' = cast(1 as smallint) FROM t; SELECT '2' > cast(1 as smallint) FROM t; SELECT '2' >= cast(1 as smallint) FROM t; SELECT '2' < cast(1 as smallint) FROM t; SELECT '2' <= cast(1 as smallint) FROM t; SELECT '2' <> cast(1 as smallint) FROM t; SELECT cast(null as string) = cast(1 as smallint) FROM t; SELECT cast(null as string) > cast(1 as smallint) FROM t; SELECT cast(null as string) >= cast(1 as smallint) FROM t; SELECT cast(null as string) < cast(1 as smallint) FROM t; SELECT cast(null as string) <= cast(1 as smallint) FROM t; SELECT cast(null as string) <> cast(1 as smallint) FROM t; SELECT cast(1 as int) = '1' FROM t; SELECT cast(1 as int) > '2' FROM t; SELECT cast(1 as int) >= '2' FROM t; SELECT cast(1 as int) < '2' FROM t; SELECT cast(1 as int) <= '2' FROM t; SELECT cast(1 as int) <> '2' FROM t; SELECT cast(1 as int) = cast(null as string) FROM t; SELECT cast(1 as int) > cast(null as string) FROM t; SELECT cast(1 as int) >= cast(null as string) FROM t; SELECT cast(1 as int) < cast(null as string) FROM t; SELECT cast(1 as int) <= cast(null as string) FROM t; SELECT cast(1 as int) <> cast(null as string) FROM t; SELECT '1' = cast(1 as int) FROM t; SELECT '2' > cast(1 as int) FROM t; SELECT '2' >= cast(1 as int) FROM t; SELECT '2' < cast(1 as int) FROM t; SELECT '2' <> cast(1 as int) FROM t; SELECT '2' <= cast(1 as int) FROM t; SELECT cast(null as string) = cast(1 as int) FROM t; SELECT cast(null as string) > cast(1 as int) FROM t; SELECT cast(null as string) >= cast(1 as int) FROM t; SELECT cast(null as string) < cast(1 as int) FROM t; SELECT cast(null as string) <> cast(1 as int) FROM t; SELECT cast(null as string) <= cast(1 as int) FROM t; SELECT cast(1 as bigint) = '1' FROM t; SELECT cast(1 as bigint) > '2' FROM t; SELECT cast(1 as bigint) >= '2' FROM t; SELECT cast(1 as bigint) < '2' FROM t; SELECT cast(1 as bigint) <= '2' FROM t; SELECT cast(1 as bigint) <> '2' FROM t; SELECT cast(1 as bigint) = cast(null as string) FROM t; SELECT cast(1 as bigint) > cast(null as string) FROM t; SELECT cast(1 as bigint) >= cast(null as string) FROM t; SELECT cast(1 as bigint) < cast(null as string) FROM t; SELECT cast(1 as bigint) <= cast(null as string) FROM t; SELECT cast(1 as bigint) <> cast(null as string) FROM t; SELECT '1' = cast(1 as bigint) FROM t; SELECT '2' > cast(1 as bigint) FROM t; SELECT '2' >= cast(1 as bigint) FROM t; SELECT '2' < cast(1 as bigint) FROM t; SELECT '2' <= cast(1 as bigint) FROM t; SELECT '2' <> cast(1 as bigint) FROM t; SELECT cast(null as string) = cast(1 as bigint) FROM t; SELECT cast(null as string) > cast(1 as bigint) FROM t; SELECT cast(null as string) >= cast(1 as bigint) FROM t; SELECT cast(null as string) < cast(1 as bigint) FROM t; SELECT cast(null as string) <= cast(1 as bigint) FROM t; SELECT cast(null as string) <> cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) = '1' FROM t; SELECT cast(1 as decimal(10, 0)) > '2' FROM t; SELECT cast(1 as decimal(10, 0)) >= '2' FROM t; SELECT cast(1 as decimal(10, 0)) < '2' FROM t; SELECT cast(1 as decimal(10, 0)) <> '2' FROM t; SELECT cast(1 as decimal(10, 0)) <= '2' FROM t; SELECT cast(1 as decimal(10, 0)) = cast(null as string) FROM t; SELECT cast(1 as decimal(10, 0)) > cast(null as string) FROM t; SELECT cast(1 as decimal(10, 0)) >= cast(null as string) FROM t; SELECT cast(1 as decimal(10, 0)) < cast(null as string) FROM t; SELECT cast(1 as decimal(10, 0)) <> cast(null as string) FROM t; SELECT cast(1 as decimal(10, 0)) <= cast(null as string) FROM t; SELECT '1' = cast(1 as decimal(10, 0)) FROM t; SELECT '2' > cast(1 as decimal(10, 0)) FROM t; SELECT '2' >= cast(1 as decimal(10, 0)) FROM t; SELECT '2' < cast(1 as decimal(10, 0)) FROM t; SELECT '2' <= cast(1 as decimal(10, 0)) FROM t; SELECT '2' <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(null as string) = cast(1 as decimal(10, 0)) FROM t; SELECT cast(null as string) > cast(1 as decimal(10, 0)) FROM t; SELECT cast(null as string) >= cast(1 as decimal(10, 0)) FROM t; SELECT cast(null as string) < cast(1 as decimal(10, 0)) FROM t; SELECT cast(null as string) <= cast(1 as decimal(10, 0)) FROM t; SELECT cast(null as string) <> cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) = '1' FROM t; SELECT cast(1 as double) > '2' FROM t; SELECT cast(1 as double) >= '2' FROM t; SELECT cast(1 as double) < '2' FROM t; SELECT cast(1 as double) <= '2' FROM t; SELECT cast(1 as double) <> '2' FROM t; SELECT cast(1 as double) = cast(null as string) FROM t; SELECT cast(1 as double) > cast(null as string) FROM t; SELECT cast(1 as double) >= cast(null as string) FROM t; SELECT cast(1 as double) < cast(null as string) FROM t; SELECT cast(1 as double) <= cast(null as string) FROM t; SELECT cast(1 as double) <> cast(null as string) FROM t; SELECT '1' = cast(1 as double) FROM t; SELECT '2' > cast(1 as double) FROM t; SELECT '2' >= cast(1 as double) FROM t; SELECT '2' < cast(1 as double) FROM t; SELECT '2' <= cast(1 as double) FROM t; SELECT '2' <> cast(1 as double) FROM t; SELECT cast(null as string) = cast(1 as double) FROM t; SELECT cast(null as string) > cast(1 as double) FROM t; SELECT cast(null as string) >= cast(1 as double) FROM t; SELECT cast(null as string) < cast(1 as double) FROM t; SELECT cast(null as string) <= cast(1 as double) FROM t; SELECT cast(null as string) <> cast(1 as double) FROM t; SELECT cast(1 as float) = '1' FROM t; SELECT cast(1 as float) > '2' FROM t; SELECT cast(1 as float) >= '2' FROM t; SELECT cast(1 as float) < '2' FROM t; SELECT cast(1 as float) <= '2' FROM t; SELECT cast(1 as float) <> '2' FROM t; SELECT cast(1 as float) = cast(null as string) FROM t; SELECT cast(1 as float) > cast(null as string) FROM t; SELECT cast(1 as float) >= cast(null as string) FROM t; SELECT cast(1 as float) < cast(null as string) FROM t; SELECT cast(1 as float) <= cast(null as string) FROM t; SELECT cast(1 as float) <> cast(null as string) FROM t; SELECT '1' = cast(1 as float) FROM t; SELECT '2' > cast(1 as float) FROM t; SELECT '2' >= cast(1 as float) FROM t; SELECT '2' < cast(1 as float) FROM t; SELECT '2' <= cast(1 as float) FROM t; SELECT '2' <> cast(1 as float) FROM t; SELECT cast(null as string) = cast(1 as float) FROM t; SELECT cast(null as string) > cast(1 as float) FROM t; SELECT cast(null as string) >= cast(1 as float) FROM t; SELECT cast(null as string) < cast(1 as float) FROM t; SELECT cast(null as string) <= cast(1 as float) FROM t; SELECT cast(null as string) <> cast(1 as float) FROM t; -- the following queries return 1 if the search condition is satisfied -- and returns nothing if the search condition is not satisfied SELECT '1996-09-09' = date('1996-09-09') FROM t; SELECT '1996-9-10' > date('1996-09-09') FROM t; SELECT '1996-9-10' >= date('1996-09-09') FROM t; SELECT '1996-9-10' < date('1996-09-09') FROM t; SELECT '1996-9-10' <= date('1996-09-09') FROM t; SELECT '1996-9-10' <> date('1996-09-09') FROM t; SELECT cast(null as string) = date('1996-09-09') FROM t; SELECT cast(null as string)> date('1996-09-09') FROM t; SELECT cast(null as string)>= date('1996-09-09') FROM t; SELECT cast(null as string)< date('1996-09-09') FROM t; SELECT cast(null as string)<= date('1996-09-09') FROM t; SELECT cast(null as string)<> date('1996-09-09') FROM t; SELECT date('1996-09-09') = '1996-09-09' FROM t; SELECT date('1996-9-10') > '1996-09-09' FROM t; SELECT date('1996-9-10') >= '1996-09-09' FROM t; SELECT date('1996-9-10') < '1996-09-09' FROM t; SELECT date('1996-9-10') <= '1996-09-09' FROM t; SELECT date('1996-9-10') <> '1996-09-09' FROM t; SELECT date('1996-09-09') = cast(null as string) FROM t; SELECT date('1996-9-10') > cast(null as string) FROM t; SELECT date('1996-9-10') >= cast(null as string) FROM t; SELECT date('1996-9-10') < cast(null as string) FROM t; SELECT date('1996-9-10') <= cast(null as string) FROM t; SELECT date('1996-9-10') <> cast(null as string) FROM t; SELECT '1996-09-09 12:12:12.4' = timestamp('1996-09-09 12:12:12.4') FROM t; SELECT '1996-09-09 12:12:12.5' > timestamp('1996-09-09 12:12:12.4') FROM t; SELECT '1996-09-09 12:12:12.5' >= timestamp('1996-09-09 12:12:12.4') FROM t; SELECT '1996-09-09 12:12:12.5' < timestamp('1996-09-09 12:12:12.4') FROM t; SELECT '1996-09-09 12:12:12.5' <= timestamp('1996-09-09 12:12:12.4') FROM t; SELECT '1996-09-09 12:12:12.5' <> timestamp('1996-09-09 12:12:12.4') FROM t; SELECT cast(null as string) = timestamp('1996-09-09 12:12:12.4') FROM t; SELECT cast(null as string) > timestamp('1996-09-09 12:12:12.4') FROM t; SELECT cast(null as string) >= timestamp('1996-09-09 12:12:12.4') FROM t; SELECT cast(null as string) < timestamp('1996-09-09 12:12:12.4') FROM t; SELECT cast(null as string) <= timestamp('1996-09-09 12:12:12.4') FROM t; SELECT cast(null as string) <> timestamp('1996-09-09 12:12:12.4') FROM t; SELECT timestamp('1996-09-09 12:12:12.4' )= '1996-09-09 12:12:12.4' FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )> '1996-09-09 12:12:12.4' FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )>= '1996-09-09 12:12:12.4' FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )< '1996-09-09 12:12:12.4' FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )<= '1996-09-09 12:12:12.4' FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )<> '1996-09-09 12:12:12.4' FROM t; SELECT timestamp('1996-09-09 12:12:12.4' )= cast(null as string) FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )> cast(null as string) FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )>= cast(null as string) FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )< cast(null as string) FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )<= cast(null as string) FROM t; SELECT timestamp('1996-09-09 12:12:12.5' )<> cast(null as string) FROM t; SELECT ' ' = X'0020' FROM t; SELECT ' ' > X'001F' FROM t; SELECT ' ' >= X'001F' FROM t; SELECT ' ' < X'001F' FROM t; SELECT ' ' <= X'001F' FROM t; SELECT ' ' <> X'001F' FROM t; SELECT cast(null as string) = X'0020' FROM t; SELECT cast(null as string) > X'001F' FROM t; SELECT cast(null as string) >= X'001F' FROM t; SELECT cast(null as string) < X'001F' FROM t; SELECT cast(null as string) <= X'001F' FROM t; SELECT cast(null as string) <> X'001F' FROM t; SELECT X'0020' = ' ' FROM t; SELECT X'001F' > ' ' FROM t; SELECT X'001F' >= ' ' FROM t; SELECT X'001F' < ' ' FROM t; SELECT X'001F' <= ' ' FROM t; SELECT X'001F' <> ' ' FROM t; SELECT X'0020' = cast(null as string) FROM t; SELECT X'001F' > cast(null as string) FROM t; SELECT X'001F' >= cast(null as string) FROM t; SELECT X'001F' < cast(null as string) FROM t; SELECT X'001F' <= cast(null as string) FROM t; SELECT X'001F' <> cast(null as string) FROM t; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; SELECT true = cast(1 as tinyint) FROM t; SELECT true = cast(1 as smallint) FROM t; SELECT true = cast(1 as int) FROM t; SELECT true = cast(1 as bigint) FROM t; SELECT true = cast(1 as float) FROM t; SELECT true = cast(1 as double) FROM t; SELECT true = cast(1 as decimal(10, 0)) FROM t; SELECT true = cast(1 as string) FROM t; SELECT true = cast('1' as binary) FROM t; SELECT true = cast(1 as boolean) FROM t; SELECT true = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT true = cast('2017-12-11 09:30:00' as date) FROM t; SELECT true <=> cast(1 as tinyint) FROM t; SELECT true <=> cast(1 as smallint) FROM t; SELECT true <=> cast(1 as int) FROM t; SELECT true <=> cast(1 as bigint) FROM t; SELECT true <=> cast(1 as float) FROM t; SELECT true <=> cast(1 as double) FROM t; SELECT true <=> cast(1 as decimal(10, 0)) FROM t; SELECT true <=> cast(1 as string) FROM t; SELECT true <=> cast('1' as binary) FROM t; SELECT true <=> cast(1 as boolean) FROM t; SELECT true <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT true <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as tinyint) = true FROM t; SELECT cast(1 as smallint) = true FROM t; SELECT cast(1 as int) = true FROM t; SELECT cast(1 as bigint) = true FROM t; SELECT cast(1 as float) = true FROM t; SELECT cast(1 as double) = true FROM t; SELECT cast(1 as decimal(10, 0)) = true FROM t; SELECT cast(1 as string) = true FROM t; SELECT cast('1' as binary) = true FROM t; SELECT cast(1 as boolean) = true FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = true FROM t; SELECT cast('2017-12-11 09:30:00' as date) = true FROM t; SELECT cast(1 as tinyint) <=> true FROM t; SELECT cast(1 as smallint) <=> true FROM t; SELECT cast(1 as int) <=> true FROM t; SELECT cast(1 as bigint) <=> true FROM t; SELECT cast(1 as float) <=> true FROM t; SELECT cast(1 as double) <=> true FROM t; SELECT cast(1 as decimal(10, 0)) <=> true FROM t; SELECT cast(1 as string) <=> true FROM t; SELECT cast('1' as binary) <=> true FROM t; SELECT cast(1 as boolean) <=> true FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> true FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> true FROM t; SELECT false = cast(0 as tinyint) FROM t; SELECT false = cast(0 as smallint) FROM t; SELECT false = cast(0 as int) FROM t; SELECT false = cast(0 as bigint) FROM t; SELECT false = cast(0 as float) FROM t; SELECT false = cast(0 as double) FROM t; SELECT false = cast(0 as decimal(10, 0)) FROM t; SELECT false = cast(0 as string) FROM t; SELECT false = cast('0' as binary) FROM t; SELECT false = cast(0 as boolean) FROM t; SELECT false = cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT false = cast('2017-12-11 09:30:00' as date) FROM t; SELECT false <=> cast(0 as tinyint) FROM t; SELECT false <=> cast(0 as smallint) FROM t; SELECT false <=> cast(0 as int) FROM t; SELECT false <=> cast(0 as bigint) FROM t; SELECT false <=> cast(0 as float) FROM t; SELECT false <=> cast(0 as double) FROM t; SELECT false <=> cast(0 as decimal(10, 0)) FROM t; SELECT false <=> cast(0 as string) FROM t; SELECT false <=> cast('0' as binary) FROM t; SELECT false <=> cast(0 as boolean) FROM t; SELECT false <=> cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT false <=> cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(0 as tinyint) = false FROM t; SELECT cast(0 as smallint) = false FROM t; SELECT cast(0 as int) = false FROM t; SELECT cast(0 as bigint) = false FROM t; SELECT cast(0 as float) = false FROM t; SELECT cast(0 as double) = false FROM t; SELECT cast(0 as decimal(10, 0)) = false FROM t; SELECT cast(0 as string) = false FROM t; SELECT cast('0' as binary) = false FROM t; SELECT cast(0 as boolean) = false FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) = false FROM t; SELECT cast('2017-12-11 09:30:00' as date) = false FROM t; SELECT cast(0 as tinyint) <=> false FROM t; SELECT cast(0 as smallint) <=> false FROM t; SELECT cast(0 as int) <=> false FROM t; SELECT cast(0 as bigint) <=> false FROM t; SELECT cast(0 as float) <=> false FROM t; SELECT cast(0 as double) <=> false FROM t; SELECT cast(0 as decimal(10, 0)) <=> false FROM t; SELECT cast(0 as string) <=> false FROM t; SELECT cast('0' as binary) <=> false FROM t; SELECT cast(0 as boolean) <=> false FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) <=> false FROM t; SELECT cast('2017-12-11 09:30:00' as date) <=> false FROM t; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; SELECT cast(1 as tinyint) / cast(1 as tinyint) FROM t; SELECT cast(1 as tinyint) / cast(1 as smallint) FROM t; SELECT cast(1 as tinyint) / cast(1 as int) FROM t; SELECT cast(1 as tinyint) / cast(1 as bigint) FROM t; SELECT cast(1 as tinyint) / cast(1 as float) FROM t; SELECT cast(1 as tinyint) / cast(1 as double) FROM t; SELECT cast(1 as tinyint) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) / cast(1 as string) FROM t; SELECT cast(1 as tinyint) / cast('1' as binary) FROM t; SELECT cast(1 as tinyint) / cast(1 as boolean) FROM t; SELECT cast(1 as tinyint) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as tinyint) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as smallint) / cast(1 as tinyint) FROM t; SELECT cast(1 as smallint) / cast(1 as smallint) FROM t; SELECT cast(1 as smallint) / cast(1 as int) FROM t; SELECT cast(1 as smallint) / cast(1 as bigint) FROM t; SELECT cast(1 as smallint) / cast(1 as float) FROM t; SELECT cast(1 as smallint) / cast(1 as double) FROM t; SELECT cast(1 as smallint) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) / cast(1 as string) FROM t; SELECT cast(1 as smallint) / cast('1' as binary) FROM t; SELECT cast(1 as smallint) / cast(1 as boolean) FROM t; SELECT cast(1 as smallint) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as smallint) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as int) / cast(1 as tinyint) FROM t; SELECT cast(1 as int) / cast(1 as smallint) FROM t; SELECT cast(1 as int) / cast(1 as int) FROM t; SELECT cast(1 as int) / cast(1 as bigint) FROM t; SELECT cast(1 as int) / cast(1 as float) FROM t; SELECT cast(1 as int) / cast(1 as double) FROM t; SELECT cast(1 as int) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as int) / cast(1 as string) FROM t; SELECT cast(1 as int) / cast('1' as binary) FROM t; SELECT cast(1 as int) / cast(1 as boolean) FROM t; SELECT cast(1 as int) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as int) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as bigint) / cast(1 as tinyint) FROM t; SELECT cast(1 as bigint) / cast(1 as smallint) FROM t; SELECT cast(1 as bigint) / cast(1 as int) FROM t; SELECT cast(1 as bigint) / cast(1 as bigint) FROM t; SELECT cast(1 as bigint) / cast(1 as float) FROM t; SELECT cast(1 as bigint) / cast(1 as double) FROM t; SELECT cast(1 as bigint) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) / cast(1 as string) FROM t; SELECT cast(1 as bigint) / cast('1' as binary) FROM t; SELECT cast(1 as bigint) / cast(1 as boolean) FROM t; SELECT cast(1 as bigint) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as bigint) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as float) / cast(1 as tinyint) FROM t; SELECT cast(1 as float) / cast(1 as smallint) FROM t; SELECT cast(1 as float) / cast(1 as int) FROM t; SELECT cast(1 as float) / cast(1 as bigint) FROM t; SELECT cast(1 as float) / cast(1 as float) FROM t; SELECT cast(1 as float) / cast(1 as double) FROM t; SELECT cast(1 as float) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as float) / cast(1 as string) FROM t; SELECT cast(1 as float) / cast('1' as binary) FROM t; SELECT cast(1 as float) / cast(1 as boolean) FROM t; SELECT cast(1 as float) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as float) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as double) / cast(1 as tinyint) FROM t; SELECT cast(1 as double) / cast(1 as smallint) FROM t; SELECT cast(1 as double) / cast(1 as int) FROM t; SELECT cast(1 as double) / cast(1 as bigint) FROM t; SELECT cast(1 as double) / cast(1 as float) FROM t; SELECT cast(1 as double) / cast(1 as double) FROM t; SELECT cast(1 as double) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as double) / cast(1 as string) FROM t; SELECT cast(1 as double) / cast('1' as binary) FROM t; SELECT cast(1 as double) / cast(1 as boolean) FROM t; SELECT cast(1 as double) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as double) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as int) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as float) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as double) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as string) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('1' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) / cast(1 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as string) / cast(1 as tinyint) FROM t; SELECT cast(1 as string) / cast(1 as smallint) FROM t; SELECT cast(1 as string) / cast(1 as int) FROM t; SELECT cast(1 as string) / cast(1 as bigint) FROM t; SELECT cast(1 as string) / cast(1 as float) FROM t; SELECT cast(1 as string) / cast(1 as double) FROM t; SELECT cast(1 as string) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as string) / cast(1 as string) FROM t; SELECT cast(1 as string) / cast('1' as binary) FROM t; SELECT cast(1 as string) / cast(1 as boolean) FROM t; SELECT cast(1 as string) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as string) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast('1' as binary) / cast(1 as tinyint) FROM t; SELECT cast('1' as binary) / cast(1 as smallint) FROM t; SELECT cast('1' as binary) / cast(1 as int) FROM t; SELECT cast('1' as binary) / cast(1 as bigint) FROM t; SELECT cast('1' as binary) / cast(1 as float) FROM t; SELECT cast('1' as binary) / cast(1 as double) FROM t; SELECT cast('1' as binary) / cast(1 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) / cast(1 as string) FROM t; SELECT cast('1' as binary) / cast('1' as binary) FROM t; SELECT cast('1' as binary) / cast(1 as boolean) FROM t; SELECT cast('1' as binary) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast('1' as binary) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as boolean) / cast(1 as tinyint) FROM t; SELECT cast(1 as boolean) / cast(1 as smallint) FROM t; SELECT cast(1 as boolean) / cast(1 as int) FROM t; SELECT cast(1 as boolean) / cast(1 as bigint) FROM t; SELECT cast(1 as boolean) / cast(1 as float) FROM t; SELECT cast(1 as boolean) / cast(1 as double) FROM t; SELECT cast(1 as boolean) / cast(1 as decimal(10, 0)) FROM t; SELECT cast(1 as boolean) / cast(1 as string) FROM t; SELECT cast(1 as boolean) / cast('1' as binary) FROM t; SELECT cast(1 as boolean) / cast(1 as boolean) FROM t; SELECT cast(1 as boolean) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as boolean) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as tinyint) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as smallint) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as int) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as bigint) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as float) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as double) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as string) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast('1' as binary) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as boolean) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as tinyint) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as smallint) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as int) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as bigint) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as float) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as double) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as decimal(10, 0)) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as string) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast('1' as binary) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast(1 as boolean) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast('2017-12-11 09:30:00' as date) / cast('2017-12-11 09:30:00' as date) FROM t; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as tinyint) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as smallint) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as int) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as bigint) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as float) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as double) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as decimal(10, 0)) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as string) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast('1' as binary) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast(1 as boolean) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00.0' as timestamp) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as tinyint) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as smallint) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as int) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as bigint) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as float) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as double) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as decimal(10, 0)) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as string) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast('2' as binary) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast(2 as boolean) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast('2017-12-11 09:30:00.0' as timestamp) END FROM t; SELECT CASE WHEN true THEN cast('2017-12-12 09:30:00' as date) ELSE cast('2017-12-11 09:30:00' as date) END FROM t; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 'aa' as a; -- casting to data types which are unable to represent the string input returns NULL select cast(a as byte) from t; select cast(a as short) from t; select cast(a as int) from t; select cast(a as long) from t; select cast(a as float) from t; select cast(a as double) from t; select cast(a as decimal) from t; select cast(a as boolean) from t; select cast(a as timestamp) from t; select cast(a as date) from t; -- casting to binary works correctly select cast(a as binary) from t; -- casting to array, struct or map throws exception select cast(a as array<string>) from t; select cast(a as struct<s:string>) from t; select cast(a as map<string, string>) from t; -- all timestamp/date expressions return NULL if bad input strings are provided select to_timestamp(a) from t; select to_timestamp('2018-01-01', a) from t; select to_unix_timestamp(a) from t; select to_unix_timestamp('2018-01-01', a) from t; select unix_timestamp(a) from t; select unix_timestamp('2018-01-01', a) from t; select from_unixtime(a) from t; select from_unixtime('2018-01-01', a) from t; select next_day(a, 'MO') from t; select next_day('2018-01-01', a) from t; select trunc(a, 'MM') from t; select trunc('2018-01-01', a) from t; -- some functions return NULL if bad input is provided select unhex('-123'); select sha2(a, a) from t; select get_json_object(a, a) from t; select json_tuple(a, a) from t; select from_json(a, 'a INT') from t; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; -- UNION SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as tinyint) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as smallint) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as int) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as bigint) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as float) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as double) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as decimal(10, 0)) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as string) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast('1' as binary) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast(1 as boolean) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as tinyint) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as smallint) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as int) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as bigint) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as float) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as double) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as decimal(10, 0)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as string) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast('2' as binary) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast(2 as boolean) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast('2017-12-11 09:30:00.0' as timestamp) FROM t; SELECT cast('2017-12-12 09:30:00' as date) FROM t UNION SELECT cast('2017-12-11 09:30:00' as date) FROM t; -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You 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. -- CREATE TEMPORARY VIEW t AS SELECT 1; SELECT cast(1 as tinyint) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as smallint)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as int)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as bigint)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as float)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as double)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as tinyint) in (cast(1 as string)) FROM t; SELECT cast(1 as tinyint) in (cast('1' as binary)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as boolean)) FROM t; SELECT cast(1 as tinyint) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as tinyint) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as smallint) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint)) FROM t; SELECT cast(1 as smallint) in (cast(1 as int)) FROM t; SELECT cast(1 as smallint) in (cast(1 as bigint)) FROM t; SELECT cast(1 as smallint) in (cast(1 as float)) FROM t; SELECT cast(1 as smallint) in (cast(1 as double)) FROM t; SELECT cast(1 as smallint) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as smallint) in (cast(1 as string)) FROM t; SELECT cast(1 as smallint) in (cast('1' as binary)) FROM t; SELECT cast(1 as smallint) in (cast(1 as boolean)) FROM t; SELECT cast(1 as smallint) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as smallint) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as int) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as int) in (cast(1 as smallint)) FROM t; SELECT cast(1 as int) in (cast(1 as int)) FROM t; SELECT cast(1 as int) in (cast(1 as bigint)) FROM t; SELECT cast(1 as int) in (cast(1 as float)) FROM t; SELECT cast(1 as int) in (cast(1 as double)) FROM t; SELECT cast(1 as int) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as int) in (cast(1 as string)) FROM t; SELECT cast(1 as int) in (cast('1' as binary)) FROM t; SELECT cast(1 as int) in (cast(1 as boolean)) FROM t; SELECT cast(1 as int) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as int) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as bigint) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as bigint) in (cast(1 as smallint)) FROM t; SELECT cast(1 as bigint) in (cast(1 as int)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint)) FROM t; SELECT cast(1 as bigint) in (cast(1 as float)) FROM t; SELECT cast(1 as bigint) in (cast(1 as double)) FROM t; SELECT cast(1 as bigint) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as bigint) in (cast(1 as string)) FROM t; SELECT cast(1 as bigint) in (cast('1' as binary)) FROM t; SELECT cast(1 as bigint) in (cast(1 as boolean)) FROM t; SELECT cast(1 as bigint) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as bigint) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as float) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as float) in (cast(1 as smallint)) FROM t; SELECT cast(1 as float) in (cast(1 as int)) FROM t; SELECT cast(1 as float) in (cast(1 as bigint)) FROM t; SELECT cast(1 as float) in (cast(1 as float)) FROM t; SELECT cast(1 as float) in (cast(1 as double)) FROM t; SELECT cast(1 as float) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as float) in (cast(1 as string)) FROM t; SELECT cast(1 as float) in (cast('1' as binary)) FROM t; SELECT cast(1 as float) in (cast(1 as boolean)) FROM t; SELECT cast(1 as float) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as float) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as double) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as double) in (cast(1 as smallint)) FROM t; SELECT cast(1 as double) in (cast(1 as int)) FROM t; SELECT cast(1 as double) in (cast(1 as bigint)) FROM t; SELECT cast(1 as double) in (cast(1 as float)) FROM t; SELECT cast(1 as double) in (cast(1 as double)) FROM t; SELECT cast(1 as double) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as double) in (cast(1 as string)) FROM t; SELECT cast(1 as double) in (cast('1' as binary)) FROM t; SELECT cast(1 as double) in (cast(1 as boolean)) FROM t; SELECT cast(1 as double) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as double) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as smallint)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as int)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as bigint)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as float)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as double)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as string)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast('1' as binary)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as boolean)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as string) in (cast(1 as tinyint)) FROM t; SELECT cast(1 as string) in (cast(1 as smallint)) FROM t; SELECT cast(1 as string) in (cast(1 as int)) FROM t; SELECT cast(1 as string) in (cast(1 as bigint)) FROM t; SELECT cast(1 as string) in (cast(1 as float)) FROM t; SELECT cast(1 as string) in (cast(1 as double)) FROM t; SELECT cast(1 as string) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as string) in (cast(1 as string)) FROM t; SELECT cast(1 as string) in (cast('1' as binary)) FROM t; SELECT cast(1 as string) in (cast(1 as boolean)) FROM t; SELECT cast(1 as string) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as string) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast('1' as binary) in (cast(1 as tinyint)) FROM t; SELECT cast('1' as binary) in (cast(1 as smallint)) FROM t; SELECT cast('1' as binary) in (cast(1 as int)) FROM t; SELECT cast('1' as binary) in (cast(1 as bigint)) FROM t; SELECT cast('1' as binary) in (cast(1 as float)) FROM t; SELECT cast('1' as binary) in (cast(1 as double)) FROM t; SELECT cast('1' as binary) in (cast(1 as decimal(10, 0))) FROM t; SELECT cast('1' as binary) in (cast(1 as string)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary)) FROM t; SELECT cast('1' as binary) in (cast(1 as boolean)) FROM t; SELECT cast('1' as binary) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast('1' as binary) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT true in (cast(1 as tinyint)) FROM t; SELECT true in (cast(1 as smallint)) FROM t; SELECT true in (cast(1 as int)) FROM t; SELECT true in (cast(1 as bigint)) FROM t; SELECT true in (cast(1 as float)) FROM t; SELECT true in (cast(1 as double)) FROM t; SELECT true in (cast(1 as decimal(10, 0))) FROM t; SELECT true in (cast(1 as string)) FROM t; SELECT true in (cast('1' as binary)) FROM t; SELECT true in (cast(1 as boolean)) FROM t; SELECT true in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT true in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as tinyint)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as smallint)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as int)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as bigint)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as float)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as double)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as decimal(10, 0))) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as string)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2' as binary)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast(2 as boolean)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as tinyint)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as smallint)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as int)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as bigint)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as float)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as double)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as decimal(10, 0))) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as string)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2' as binary)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast(2 as boolean)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as tinyint)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as smallint)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as int)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as bigint)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as float)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as double)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as string)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast('1' as binary)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast(1 as boolean)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as tinyint) in (cast(1 as tinyint), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as tinyint)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as smallint)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as int)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as bigint)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as float)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as double)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as string)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast('1' as binary)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast(1 as boolean)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as smallint) in (cast(1 as smallint), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as tinyint)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as smallint)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as int)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as bigint)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as float)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as double)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as string)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast('1' as binary)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast(1 as boolean)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as int) in (cast(1 as int), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as tinyint)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as smallint)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as int)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as bigint)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as float)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as double)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as string)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast('1' as binary)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast(1 as boolean)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as bigint) in (cast(1 as bigint), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as tinyint)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as smallint)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as int)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as bigint)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as float)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as double)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as string)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast('1' as binary)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast(1 as boolean)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as float) in (cast(1 as float), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as tinyint)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as smallint)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as int)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as bigint)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as float)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as double)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as string)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast('1' as binary)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast(1 as boolean)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as double) in (cast(1 as double), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as tinyint)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as smallint)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as int)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as bigint)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as float)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as double)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as string)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast('1' as binary)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast(1 as boolean)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as decimal(10, 0)) in (cast(1 as decimal(10, 0)), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as tinyint)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as smallint)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as int)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as bigint)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as float)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as double)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as decimal(10, 0))) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as string)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast('1' as binary)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast(1 as boolean)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast(1 as string) in (cast(1 as string), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as tinyint)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as smallint)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as int)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as bigint)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as float)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as double)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as decimal(10, 0))) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as string)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast('1' as binary)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as boolean)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast('1' as binary) in (cast('1' as binary), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as tinyint)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as smallint)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as int)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as bigint)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as float)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as double)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as decimal(10, 0))) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as string)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast('1' as binary)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast(1 as boolean)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast('1' as boolean) in (cast('1' as boolean), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as tinyint)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as smallint)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as int)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as bigint)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as float)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as double)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as decimal(10, 0))) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as string)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast('1' as binary)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast(1 as boolean)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast('2017-12-12 09:30:00.0' as timestamp) in (cast('2017-12-12 09:30:00.0' as timestamp), cast('2017-12-11 09:30:00' as date)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as tinyint)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as smallint)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as int)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as bigint)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as float)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as double)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as decimal(10, 0))) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as string)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast('1' as binary)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast(1 as boolean)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast('2017-12-11 09:30:00.0' as timestamp)) FROM t; SELECT cast('2017-12-12 09:30:00' as date) in (cast('2017-12-12 09:30:00' as date), cast('2017-12-11 09:30:00' as date)) FROM t; -- test cases for array functions create temporary view data as select * from values ("one", array(11, 12, 13), array(array(111, 112, 113), array(121, 122, 123))), ("two", array(21, 22, 23), array(array(211, 212, 213), array(221, 222, 223))) as data(a, b, c); select * from data; -- index into array select a, b[0], b[0] + b[1] from data; -- index into array of arrays select a, c[0][0] + c[0][0 + 1] from data; create temporary view primitive_arrays as select * from values ( array(true), array(2Y, 1Y), array(2S, 1S), array(2, 1), array(2L, 1L), array(9223372036854775809, 9223372036854775808), array(2.0D, 1.0D), array(float(2.0), float(1.0)), array(date '2016-03-14', date '2016-03-13'), array(timestamp '2016-11-15 20:54:00.000', timestamp '2016-11-12 20:54:00.000') ) as primitive_arrays( boolean_array, tinyint_array, smallint_array, int_array, bigint_array, decimal_array, double_array, float_array, date_array, timestamp_array ); select * from primitive_arrays; -- array_contains on all primitive types: result should alternate between true and false select array_contains(boolean_array, true), array_contains(boolean_array, false), array_contains(tinyint_array, 2Y), array_contains(tinyint_array, 0Y), array_contains(smallint_array, 2S), array_contains(smallint_array, 0S), array_contains(int_array, 2), array_contains(int_array, 0), array_contains(bigint_array, 2L), array_contains(bigint_array, 0L), array_contains(decimal_array, 9223372036854775809), array_contains(decimal_array, 1), array_contains(double_array, 2.0D), array_contains(double_array, 0.0D), array_contains(float_array, float(2.0)), array_contains(float_array, float(0.0)), array_contains(date_array, date '2016-03-14'), array_contains(date_array, date '2016-01-01'), array_contains(timestamp_array, timestamp '2016-11-15 20:54:00.000'), array_contains(timestamp_array, timestamp '2016-01-01 20:54:00.000') from primitive_arrays; -- array_contains on nested arrays select array_contains(b, 11), array_contains(c, array(111, 112, 113)) from data; -- sort_array select sort_array(boolean_array), sort_array(tinyint_array), sort_array(smallint_array), sort_array(int_array), sort_array(bigint_array), sort_array(decimal_array), sort_array(double_array), sort_array(float_array), sort_array(date_array), sort_array(timestamp_array) from primitive_arrays; -- sort_array with an invalid string literal for the argument of sort order. select sort_array(array('b', 'd'), '1'); -- sort_array with an invalid null literal casted as boolean for the argument of sort order. select sort_array(array('b', 'd'), cast(NULL as boolean)); -- size select size(boolean_array), size(tinyint_array), size(smallint_array), size(int_array), size(bigint_array), size(decimal_array), size(double_array), size(float_array), size(date_array), size(timestamp_array) from primitive_arrays; -- Create a test table with data create table t1(a int, b int, c int) using parquet; insert into t1 values(1,0,0); insert into t1 values(2,0,1); insert into t1 values(3,1,0); insert into t1 values(4,1,1); insert into t1 values(5,null,0); insert into t1 values(6,null,1); insert into t1 values(7,null,null); -- Adding anything to null gives null select a, b+c from t1; -- Multiplying null by zero gives null select a+10, b*0 from t1; -- nulls are NOT distinct in SELECT DISTINCT select distinct b from t1; -- nulls are NOT distinct in UNION select b from t1 union select b from t1; -- CASE WHEN null THEN 1 ELSE 0 END is 0 select a+20, case b when c then 1 else 0 end from t1; select a+30, case c when b then 1 else 0 end from t1; select a+40, case when b<>0 then 1 else 0 end from t1; select a+50, case when not b<>0 then 1 else 0 end from t1; select a+60, case when b<>0 and c<>0 then 1 else 0 end from t1; -- "not (null AND false)" is true select a+70, case when not (b<>0 and c<>0) then 1 else 0 end from t1; -- "null OR true" is true select a+80, case when b<>0 or c<>0 then 1 else 0 end from t1; select a+90, case when not (b<>0 or c<>0) then 1 else 0 end from t1; -- null with aggregate operators select count(*), count(b), sum(b), avg(b), min(b), max(b) from t1; -- Check the behavior of NULLs in WHERE clauses select a+100 from t1 where b<10; select a+110 from t1 where not b>10; select a+120 from t1 where b<10 OR c=1; select a+130 from t1 where b<10 AND c=1; select a+140 from t1 where not (b<10 AND c=1); select a+150 from t1 where not (c=1 AND b<10); drop table t1; -- Test data. CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES (null, 1L, 1.0D, date("2017-08-01"), timestamp(1501545600), "a"), (1, 1L, 1.0D, date("2017-08-01"), timestamp(1501545600), "a"), (1, 2L, 2.5D, date("2017-08-02"), timestamp(1502000000), "a"), (2, 2147483650L, 100.001D, date("2020-12-31"), timestamp(1609372800), "a"), (1, null, 1.0D, date("2017-08-01"), timestamp(1501545600), "b"), (2, 3L, 3.3D, date("2017-08-03"), timestamp(1503000000), "b"), (3, 2147483650L, 100.001D, date("2020-12-31"), timestamp(1609372800), "b"), (null, null, null, null, null, null), (3, 1L, 1.0D, date("2017-08-01"), timestamp(1501545600), null) AS testData(val, val_long, val_double, val_date, val_timestamp, cate); -- RowsBetween SELECT val, cate, count(val) OVER(PARTITION BY cate ORDER BY val ROWS CURRENT ROW) FROM testData ORDER BY cate, val; SELECT val, cate, sum(val) OVER(PARTITION BY cate ORDER BY val ROWS BETWEEN UNBOUNDED PRECEDING AND 1 FOLLOWING) FROM testData ORDER BY cate, val; SELECT val_long, cate, sum(val_long) OVER(PARTITION BY cate ORDER BY val_long ROWS BETWEEN CURRENT ROW AND 2147483648 FOLLOWING) FROM testData ORDER BY cate, val_long; -- RangeBetween SELECT val, cate, count(val) OVER(PARTITION BY cate ORDER BY val RANGE 1 PRECEDING) FROM testData ORDER BY cate, val; SELECT val, cate, sum(val) OVER(PARTITION BY cate ORDER BY val RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM testData ORDER BY cate, val; SELECT val_long, cate, sum(val_long) OVER(PARTITION BY cate ORDER BY val_long RANGE BETWEEN CURRENT ROW AND 2147483648 FOLLOWING) FROM testData ORDER BY cate, val_long; SELECT val_double, cate, sum(val_double) OVER(PARTITION BY cate ORDER BY val_double RANGE BETWEEN CURRENT ROW AND 2.5 FOLLOWING) FROM testData ORDER BY cate, val_double; SELECT val_date, cate, max(val_date) OVER(PARTITION BY cate ORDER BY val_date RANGE BETWEEN CURRENT ROW AND 2 FOLLOWING) FROM testData ORDER BY cate, val_date; SELECT val_timestamp, cate, avg(val_timestamp) OVER(PARTITION BY cate ORDER BY val_timestamp RANGE BETWEEN CURRENT ROW AND interval 23 days 4 hours FOLLOWING) FROM testData ORDER BY cate, val_timestamp; -- RangeBetween with reverse OrderBy SELECT val, cate, sum(val) OVER(PARTITION BY cate ORDER BY val DESC RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM testData ORDER BY cate, val; -- Invalid window frame SELECT val, cate, count(val) OVER(PARTITION BY cate ROWS BETWEEN UNBOUNDED FOLLOWING AND 1 FOLLOWING) FROM testData ORDER BY cate, val; SELECT val, cate, count(val) OVER(PARTITION BY cate RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM testData ORDER BY cate, val; SELECT val, cate, count(val) OVER(PARTITION BY cate ORDER BY val, cate RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM testData ORDER BY cate, val; SELECT val, cate, count(val) OVER(PARTITION BY cate ORDER BY current_timestamp RANGE BETWEEN CURRENT ROW AND 1 FOLLOWING) FROM testData ORDER BY cate, val; SELECT val, cate, count(val) OVER(PARTITION BY cate ORDER BY val RANGE BETWEEN 1 FOLLOWING AND 1 PRECEDING) FROM testData ORDER BY cate, val; SELECT val, cate, count(val) OVER(PARTITION BY cate ORDER BY val RANGE BETWEEN CURRENT ROW AND current_date PRECEDING) FROM testData ORDER BY cate, val; -- Window functions SELECT val, cate, max(val) OVER w AS max, min(val) OVER w AS min, min(val) OVER w AS min, count(val) OVER w AS count, sum(val) OVER w AS sum, avg(val) OVER w AS avg, stddev(val) OVER w AS stddev, first_value(val) OVER w AS first_value, first_value(val, true) OVER w AS first_value_ignore_null, first_value(val, false) OVER w AS first_value_contain_null, last_value(val) OVER w AS last_value, last_value(val, true) OVER w AS last_value_ignore_null, last_value(val, false) OVER w AS last_value_contain_null, rank() OVER w AS rank, dense_rank() OVER w AS dense_rank, cume_dist() OVER w AS cume_dist, percent_rank() OVER w AS percent_rank, ntile(2) OVER w AS ntile, row_number() OVER w AS row_number, var_pop(val) OVER w AS var_pop, var_samp(val) OVER w AS var_samp, approx_count_distinct(val) OVER w AS approx_count_distinct, covar_pop(val, val_long) OVER w AS covar_pop, corr(val, val_long) OVER w AS corr, stddev_samp(val) OVER w AS stddev_samp, stddev_pop(val) OVER w AS stddev_pop, collect_list(val) OVER w AS collect_list, collect_set(val) OVER w AS collect_set, skewness(val_double) OVER w AS skewness, kurtosis(val_double) OVER w AS kurtosis FROM testData WINDOW w AS (PARTITION BY cate ORDER BY val) ORDER BY cate, val; -- Null inputs SELECT val, cate, avg(null) OVER(PARTITION BY cate ORDER BY val) FROM testData ORDER BY cate, val; -- OrderBy not specified SELECT val, cate, row_number() OVER(PARTITION BY cate) FROM testData ORDER BY cate, val; -- Over clause is empty SELECT val, cate, sum(val) OVER(), avg(val) OVER() FROM testData ORDER BY cate, val; -- first_value()/last_value() over () SELECT val, cate, first_value(false) OVER w AS first_value, first_value(true, true) OVER w AS first_value_ignore_null, first_value(false, false) OVER w AS first_value_contain_null, last_value(false) OVER w AS last_value, last_value(true, true) OVER w AS last_value_ignore_null, last_value(false, false) OVER w AS last_value_contain_null FROM testData WINDOW w AS () ORDER BY cate, val; -- parentheses around window reference SELECT cate, sum(val) OVER (w) FROM testData WHERE val is not null WINDOW w AS (PARTITION BY cate ORDER BY val); -- rand with the seed 0 SELECT rand(0); SELECT rand(cast(3 / 7 AS int)); SELECT rand(NULL); SELECT rand(cast(NULL AS int)); -- rand unsupported data type SELECT rand(1.0); -- randn with the seed 0 SELECT randn(0L); SELECT randn(cast(3 / 7 AS long)); SELECT randn(NULL); SELECT randn(cast(NULL AS long)); -- randn unsupported data type SELECT rand('1') -- This is a query file that has been blacklisted. -- It includes a query that should crash Spark. -- If the test case is run, the whole suite would fail. some random not working query that should crash Spark. -- unary minus and plus select -100; select +230; select -5.2; select +6.8e0; select -key, +key from testdata where key = 2; select -(key + 1), - key + 1, +(key + 5) from testdata where key = 1; select -max(key), +max(key) from testdata; select - (-10); select + (-key) from testdata where key = 32; select - (+max(key)) from testdata; select - - 3; select - + 20; select + + 100; select - - max(key) from testdata; select + - key from testdata where key = 33; -- division select 5 / 2; select 5 / 0; select 5 / null; select null / 5; -- other arithmetics select 1 + 2; select 1 - 2; select 2 * 5; select 5 % 3; select pmod(-7, 3); -- math functions select cot(1); select cot(null); select cot(0); select cot(-1); -- ceil and ceiling select ceiling(0); select ceiling(1); select ceil(1234567890123456); select ceiling(1234567890123456); select ceil(0.01); select ceiling(-0.10); -- floor select floor(0); select floor(1); select floor(1234567890123456); select floor(0.01); select floor(-0.10); -- comparison operator select 1 > 0.00001; -- mod select mod(7, 2), mod(7, 0), mod(0, 2), mod(7, null), mod(null, 2), mod(null, null); -- length select BIT_LENGTH('abc'); select CHAR_LENGTH('abc'); select CHARACTER_LENGTH('abc'); select OCTET_LENGTH('abc'); -- abs select abs(-3.13), abs('-2.19'); -- positive/negative select positive('-1.11'), positive(-1.11), negative('-1.11'), negative(-1.11); -- pmod select pmod(-7, 2), pmod(0, 2), pmod(7, 0), pmod(7, null), pmod(null, 2), pmod(null, null); select pmod(cast(3.13 as decimal), cast(0 as decimal)), pmod(cast(2 as smallint), cast(0 as smallint)); -- Negative testcases for column resolution CREATE DATABASE mydb1; USE mydb1; CREATE TABLE t1 USING parquet AS SELECT 1 AS i1; CREATE DATABASE mydb2; USE mydb2; CREATE TABLE t1 USING parquet AS SELECT 20 AS i1; -- Negative tests: column resolution scenarios with ambiguous cases in join queries SET spark.sql.crossJoin.enabled = true; USE mydb1; SELECT i1 FROM t1, mydb1.t1; SELECT t1.i1 FROM t1, mydb1.t1; SELECT mydb1.t1.i1 FROM t1, mydb1.t1; SELECT i1 FROM t1, mydb2.t1; SELECT t1.i1 FROM t1, mydb2.t1; USE mydb2; SELECT i1 FROM t1, mydb1.t1; SELECT t1.i1 FROM t1, mydb1.t1; SELECT i1 FROM t1, mydb2.t1; SELECT t1.i1 FROM t1, mydb2.t1; SELECT db1.t1.i1 FROM t1, mydb2.t1; SET spark.sql.crossJoin.enabled = false; -- Negative tests USE mydb1; SELECT mydb1.t1 FROM t1; SELECT t1.x.y.* FROM t1; SELECT t1 FROM mydb1.t1; USE mydb2; SELECT mydb1.t1.i1 FROM t1; -- reset DROP DATABASE mydb1 CASCADE; DROP DATABASE mydb2 CASCADE; create or replace temporary view nested as values (1, array(32, 97), array(array(12, 99), array(123, 42), array(1))), (2, array(77, -76), array(array(6, 96, 65), array(-1, -2))), (3, array(12), array(array(17))) as t(x, ys, zs); -- Only allow lambda's in higher order functions. select upper(x -> x) as v; -- Identity transform an array select transform(zs, z -> z) as v from nested; -- Transform an array select transform(ys, y -> y * y) as v from nested; -- Transform an array with index select transform(ys, (y, i) -> y + i) as v from nested; -- Transform an array with reference select transform(zs, z -> concat(ys, z)) as v from nested; -- Transform an array to an array of 0's select transform(ys, 0) as v from nested; -- Transform a null array select transform(cast(null as array<int>), x -> x + 1) as v; -- Filter. select filter(ys, y -> y > 30) as v from nested; -- Filter a null array select filter(cast(null as array<int>), y -> true) as v; -- Filter nested arrays select transform(zs, z -> filter(z, zz -> zz > 50)) as v from nested; -- Aggregate. select aggregate(ys, 0, (y, a) -> y + a + x) as v from nested; -- Aggregate average. select aggregate(ys, (0 as sum, 0 as n), (acc, x) -> (acc.sum + x, acc.n + 1), acc -> acc.sum / acc.n) as v from nested; -- Aggregate nested arrays select transform(zs, z -> aggregate(z, 1, (acc, val) -> acc * val * size(z))) as v from nested; -- Aggregate a null array select aggregate(cast(null as array<int>), 0, (a, y) -> a + y + 1, a -> a + 2) as v; -- Check for element existence select exists(ys, y -> y > 30) as v from nested; -- Check for element existence in a null array select exists(cast(null as array<int>), y -> y > 30) as v; -- Zip with array select zip_with(ys, zs, (a, b) -> a + size(b)) as v from nested; -- Zip with array with concat select zip_with(array('a', 'b', 'c'), array('d', 'e', 'f'), (x, y) -> concat(x, y)) as v; -- Zip with array coalesce select zip_with(array('a'), array('d', null, 'f'), (x, y) -> coalesce(x, y)) as v; create or replace temporary view nested as values (1, map(1, 1, 2, 2, 3, 3)), (2, map(4, 4, 5, 5, 6, 6)) as t(x, ys); -- Identity Transform Keys in a map select transform_keys(ys, (k, v) -> k) as v from nested; -- Transform Keys in a map by adding constant select transform_keys(ys, (k, v) -> k + 1) as v from nested; -- Transform Keys in a map using values select transform_keys(ys, (k, v) -> k + v) as v from nested; -- Identity Transform values in a map select transform_values(ys, (k, v) -> v) as v from nested; -- Transform values in a map by adding constant select transform_values(ys, (k, v) -> v + 1) as v from nested; -- Transform values in a map using values select transform_values(ys, (k, v) -> k + v) as v from nested; -- Test data. CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES (1, 1), (1, 2), (2, 1), (1, 1), (null, 2), (1, null), (null, null) AS testData(a, b); -- count with single expression SELECT count(*), count(1), count(null), count(a), count(b), count(a + b), count((a, b)) FROM testData; -- distinct count with single expression SELECT count(DISTINCT 1), count(DISTINCT null), count(DISTINCT a), count(DISTINCT b), count(DISTINCT (a + b)), count(DISTINCT (a, b)) FROM testData; -- count with multiple expressions SELECT count(a, b), count(b, a), count(testData.*) FROM testData; -- distinct count with multiple expressions SELECT count(DISTINCT a, b), count(DISTINCT b, a), count(DISTINCT *), count(DISTINCT testData.*) FROM testData; select sum(lo_extendedprice*lo_discount) as revenue from lineorder, date where lo_orderdate = d_datekey and d_year = 1993 and lo_discount between 1 and 3 and lo_quantity < 25 select d_year, c_nation, sum(lo_revenue-lo_supplycost) as profit1 from date, customer, supplier, part, lineorder where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_partkey = p_partkey and lo_orderdate = d_datekey and c_region = 'AMERICA' and s_region = 'AMERICA' and (p_mfgr = 'MFGR#1' or p_mfgr = 'MFGR#2') group by d_year, c_nation order by d_year, c_nation select c_city, s_city, d_year, sum(lo_revenue) as revenue from customer, lineorder, supplier, date where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_orderdate = d_datekey and c_nation = 'UNITED KINGDOM' and (c_city='UNITED KI1' or c_city='UNITED KI5') and (s_city='UNITED KI1' or s_city='UNITED KI5') and s_nation = 'UNITED KINGDOM' and d_yearmonth = 'Dec1997' group by c_city, s_city, d_year order by d_year asc, revenue desc select sum(lo_extendedprice*lo_discount) as revenue from lineorder, date where lo_orderdate = d_datekey and d_yearmonthnum = 199401 and lo_discount between 4 and 6 and lo_quantity between 26 and 35 select sum(lo_extendedprice*lo_discount) as revenue from lineorder, date where lo_orderdate = d_datekey and d_weeknuminyear = 6 and d_year = 1994 and lo_discount between 5 and 7 and lo_quantity between 36 and 40 select sum(lo_revenue), d_year, p_brand1 from lineorder, date, part, supplier where lo_orderdate = d_datekey and lo_partkey = p_partkey and lo_suppkey = s_suppkey and p_category = 'MFGR#12' and s_region = 'AMERICA' group by d_year, p_brand1 order by d_year, p_brand1 select c_city, s_city, d_year, sum(lo_revenue) as revenue from customer, lineorder, supplier, date where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_orderdate = d_datekey and c_nation = 'UNITED KINGDOM' and (c_city='UNITED KI1' or c_city='UNITED KI5') and (s_city='UNITED KI1' or s_city='UNITED KI5') and s_nation = 'UNITED KINGDOM' and d_year >= 1992 and d_year <= 1997 group by c_city, s_city, d_year order by d_year asc, revenue desc select sum(lo_revenue), d_year, p_brand1 from lineorder, date, part, supplier where lo_orderdate = d_datekey and lo_partkey = p_partkey and lo_suppkey = s_suppkey and p_brand1 between 'MFGR#2221' and 'MFGR#2228' and s_region = 'ASIA' group by d_year, p_brand1 order by d_year, p_brand1 select d_year, s_city, p_brand1, sum(lo_revenue-lo_supplycost) as profit1 from date, customer, supplier, part, lineorder where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_partkey = p_partkey and lo_orderdate = d_datekey and c_region = 'AMERICA' and s_nation = 'UNITED STATES' and (d_year = 1997 or d_year = 1998) and p_category = 'MFGR#14' group by d_year, s_city, p_brand1 order by d_year, s_city, p_brand1 select c_city, s_city, d_year, sum(lo_revenue) as revenue from customer, lineorder, supplier, date where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_orderdate = d_datekey and c_nation = 'UNITED STATES' and s_nation = 'UNITED STATES' and d_year >= 1992 and d_year <= 1997 group by c_city, s_city, d_year order by d_year asc, revenue desc select d_year, s_nation, p_category, sum(lo_revenue-lo_supplycost) as profit1 from date, customer, supplier, part, lineorder where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_partkey = p_partkey and lo_orderdate = d_datekey and c_region = 'AMERICA' and s_region = 'AMERICA' and (d_year = 1997 or d_year = 1998) and (p_mfgr = 'MFGR#1' or p_mfgr = 'MFGR#2') group by d_year, s_nation, p_category order by d_year, s_nation, p_category select sum(lo_revenue), d_year, p_brand1 from lineorder, date, part, supplier where lo_orderdate = d_datekey and lo_partkey = p_partkey and lo_suppkey = s_suppkey and p_brand1 = 'MFGR#2221' and s_region = 'EUROPE' group by d_year, p_brand1 order by d_year, p_brand1 select c_nation, s_nation, d_year, sum(lo_revenue) as revenue from customer, lineorder, supplier, date where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_orderdate = d_datekey and c_region = 'ASIA' and s_region = 'ASIA' and d_year >= 1992 and d_year <= 1997 group by c_nation, s_nation, d_year order by d_year asc, revenue desc -- using default substitutions select c_custkey, c_name, sum(l_extendedprice * (1 - l_discount)) as revenue, c_acctbal, n_name, c_address, c_phone, c_comment from customer, orders, lineitem, nation where c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate >= date '1993-10-01' and o_orderdate < date '1993-10-01' + interval '3' month and l_returnflag = 'R' and c_nationkey = n_nationkey group by c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment order by revenue desc limit 20 -- using default substitutions select c_count, count(*) as custdist from ( select c_custkey, count(o_orderkey) as c_count from customer left outer join orders on c_custkey = o_custkey and o_comment not like '%special%requests%' group by c_custkey ) as c_orders group by c_count order by custdist desc, c_count desc -- using default substitutions select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue from customer, orders, lineitem, supplier, nation, region where c_custkey = o_custkey and l_orderkey = o_orderkey and l_suppkey = s_suppkey and c_nationkey = s_nationkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'ASIA' and o_orderdate >= date '1994-01-01' and o_orderdate < date '1994-01-01' + interval '1' year group by n_name order by revenue desc -- using default substitutions select s_name, count(*) as numwait from supplier, lineitem l1, orders, nation where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = 'F' and l1.l_receiptdate > l1.l_commitdate and exists ( select * from lineitem l2 where l2.l_orderkey = l1.l_orderkey and l2.l_suppkey <> l1.l_suppkey ) and not exists ( select * from lineitem l3 where l3.l_orderkey = l1.l_orderkey and l3.l_suppkey <> l1.l_suppkey and l3.l_receiptdate > l3.l_commitdate ) and s_nationkey = n_nationkey and n_name = '<NAME>' group by s_name order by numwait desc, s_name limit 100-- using default substitutions select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as sum_base_price, sum(l_extendedprice * (1 - l_discount)) as sum_disc_price, sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge, avg(l_quantity) as avg_qty, avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) as count_order from lineitem where l_shipdate <= date '1998-12-01' - interval '90' day group by l_returnflag, l_linestatus order by l_returnflag, l_linestatus -- using default substitutions select supp_nation, cust_nation, l_year, sum(volume) as revenue from ( select n1.n_name as supp_nation, n2.n_name as cust_nation, year(l_shipdate) as l_year, l_extendedprice * (1 - l_discount) as volume from supplier, lineitem, orders, customer, nation n1, nation n2 where s_suppkey = l_suppkey and o_orderkey = l_orderkey and c_custkey = o_custkey and s_nationkey = n1.n_nationkey and c_nationkey = n2.n_nationkey and ( (n1.n_name = 'FRANCE' and n2.n_name = 'GERMANY') or (n1.n_name = 'GERMANY' and n2.n_name = 'FRANCE') ) and l_shipdate between date '1995-01-01' and date '1996-12-31' ) as shipping group by supp_nation, cust_nation, l_year order by supp_nation, cust_nation, l_year -- using default substitutions select nation, o_year, sum(amount) as sum_profit from ( select n_name as nation, year(o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part, supplier, lineitem, partsupp, orders, nation where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like '%green%' ) as profit group by nation, o_year order by nation, o_year desc -- using default substitutions select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like '%BRASS' and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' and ps_supplycost = ( select min(ps_supplycost) from partsupp, supplier, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' ) order by s_acctbal desc, n_name, s_name, p_partkey limit 100 -- using default substitutions select o_year, sum(case when nation = 'BRAZIL' then volume else 0 end) / sum(volume) as mkt_share from ( select year(o_orderdate) as o_year, l_extendedprice * (1 - l_discount) as volume, n2.n_name as nation from part, supplier, lineitem, orders, customer, nation n1, nation n2, region where p_partkey = l_partkey and s_suppkey = l_suppkey and l_orderkey = o_orderkey and o_custkey = c_custkey and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey and o_orderdate between date '1995-01-01' and date '1996-12-31' and p_type = 'ECONOMY ANODIZED STEEL' ) as all_nations group by o_year order by o_year -- using default substitutions select s_name, s_address from supplier, nation where s_suppkey in ( select ps_suppkey from partsupp where ps_partkey in ( select p_partkey from part where p_name like 'forest%' ) and ps_availqty > ( select 0.5 * sum(l_quantity) from lineitem where l_partkey = ps_partkey and l_suppkey = ps_suppkey and l_shipdate >= date '1994-01-01' and l_shipdate < date '1994-01-01' + interval '1' year ) ) and s_nationkey = n_nationkey and n_name = 'CANADA' order by s_name -- using default substitutions select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal from ( select substring(c_phone, 1, 2) as cntrycode, c_acctbal from customer where substring(c_phone, 1, 2) in ('13', '31', '23', '29', '30', '18', '17') and c_acctbal > ( select avg(c_acctbal) from customer where c_acctbal > 0.00 and substring(c_phone, 1, 2) in ('13', '31', '23', '29', '30', '18', '17') ) and not exists ( select * from orders where o_custkey = c_custkey ) ) as custsale group by cntrycode order by cntrycode -- using default substitutions select o_orderpriority, count(*) as order_count from orders where o_orderdate >= date '1993-07-01' and o_orderdate < date '1993-07-01' + interval '3' month and exists ( select * from lineitem where l_orderkey = o_orderkey and l_commitdate < l_receiptdate ) group by o_orderpriority order by o_orderpriority -- using default substitutions with revenue0 as (select l_suppkey as supplier_no, sum(l_extendedprice * (1 - l_discount)) as total_revenue from lineitem where l_shipdate >= date '1996-01-01' and l_shipdate < date '1996-01-01' + interval '3' month group by l_suppkey) select s_suppkey, s_name, s_address, s_phone, total_revenue from supplier, revenue0 where s_suppkey = supplier_no and total_revenue = ( select max(total_revenue) from revenue0 ) order by s_suppkey -- using default substitutions select sum(l_extendedprice * l_discount) as revenue from lineitem where l_shipdate >= date '1994-01-01' and l_shipdate < date '1994-01-01' + interval '1' year and l_discount between .06 - 0.01 and .06 + 0.01 and l_quantity < 24 -- using default substitutions select l_shipmode, sum(case when o_orderpriority = '1-URGENT' or o_orderpriority = '2-HIGH' then 1 else 0 end) as high_line_count, sum(case when o_orderpriority <> '1-URGENT' and o_orderpriority <> '2-HIGH' then 1 else 0 end) as low_line_count from orders, lineitem where o_orderkey = l_orderkey and l_shipmode in ('MAIL', 'SHIP') and l_commitdate < l_receiptdate and l_shipdate < l_commitdate and l_receiptdate >= date '1994-01-01' and l_receiptdate < date '1994-01-01' + interval '1' year group by l_shipmode order by l_shipmode -- using default substitutions select l_orderkey, sum(l_extendedprice * (1 - l_discount)) as revenue, o_orderdate, o_shippriority from customer, orders, lineitem where c_mktsegment = 'BUILDING' and c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate < date '1995-03-15' and l_shipdate > date '1995-03-15' group by l_orderkey, o_orderdate, o_shippriority order by revenue desc, o_orderdate limit 10 -- using default substitutions select sum(l_extendedprice* (1 - l_discount)) as revenue from lineitem, part where ( p_partkey = l_partkey and p_brand = 'Brand#12' and p_container in ('SM CASE', 'SM BOX', 'SM PACK', 'SM PKG') and l_quantity >= 1 and l_quantity <= 1 + 10 and p_size between 1 and 5 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#23' and p_container in ('MED BAG', 'MED BOX', 'MED PKG', 'MED PACK') and l_quantity >= 10 and l_quantity <= 10 + 10 and p_size between 1 and 10 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#34' and p_container in ('LG CASE', 'LG BOX', 'LG PACK', 'LG PKG') and l_quantity >= 20 and l_quantity <= 20 + 10 and p_size between 1 and 15 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) -- using default substitutions select 100.00 * sum(case when p_type like 'PROMO%' then l_extendedprice * (1 - l_discount) else 0 end) / sum(l_extendedprice * (1 - l_discount)) as promo_revenue from lineitem, part where l_partkey = p_partkey and l_shipdate >= date '1995-09-01' and l_shipdate < date '1995-09-01' + interval '1' month -- using default substitutions select sum(l_extendedprice) / 7.0 as avg_yearly from lineitem, part where p_partkey = l_partkey and p_brand = 'Brand#23' and p_container = 'MED BOX' and l_quantity < ( select 0.2 * avg(l_quantity) from lineitem where l_partkey = p_partkey ) -- using default substitutions select c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity) from customer, orders, lineitem where o_orderkey in ( select l_orderkey from lineitem group by l_orderkey having sum(l_quantity) > 300 ) and c_custkey = o_custkey and o_orderkey = l_orderkey group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice order by o_totalprice desc, o_orderdate limit 100-- using default substitutions select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt from partsupp, part where p_partkey = ps_partkey and p_brand <> 'Brand#45' and p_type not like 'MEDIUM POLISHED%' and p_size in (49, 14, 23, 45, 19, 3, 36, 9) and ps_suppkey not in ( select s_suppkey from supplier where s_comment like '%Customer%Complaints%' ) group by p_brand, p_type, p_size order by supplier_cnt desc, p_brand, p_type, p_size -- using default substitutions select ps_partkey, sum(ps_supplycost * ps_availqty) as value from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' group by ps_partkey having sum(ps_supplycost * ps_availqty) > ( select sum(ps_supplycost * ps_availqty) * 0.0001000000 from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' ) order by value desc
select id, name from azure.azure_eventgrid_domain where title = '{{ resourceName }}';