text
stringlengths
6
9.38M
/* Required Query Support */ /* List all the patients currently admitted to the hospital */ select pid, firstname, lastname from patient where discharged is NULL; /* List all patients who have received outpatient services within a given date range. List only patient identification number and name. */ select pid, firstname, lastname from patient where type = 'O'; -- "O" represents Outpatient service /* For a given patient (either patient identification number or name), list all treatments that were administered. Group treatments by admissions. List admissions in descending chronological order, and list treatments in ascending chronological order within each admission. */ select patient.pid as "PatientID", treatment.description as "Description" from patient join administeredtreatment using (pid) join treatment using (tid) group by treatment.type order by treatment.type desc; /* List the treatments performed at the hospital (to both inpatients and outpatients), in descending order of occurrences. List treatment identification number, name, and total number of occurrences of each treatment. */ select tid, description, count(*) as Occurrences from administeredtreatment join Treatment using (tid) group by tid, description order by count(*) desc; /* For a given treatment occurrence, list all the hospital employees that were involved. Also include the patient name and the doctor who ordered the treatment. */ select treatment.description as "Treatment", employee.category as "Position", employee.lastname as "Doctor Involved", patient.lastname as "Patient" from administeredtreatment join treatment using (tid) join employee using (eid) join patient using (pid) where orderid = '555'; -- orderid can be tweaked! /* For a given treatment occurrence, list all the hospital employees that were involved. Also include the patient name and the doctor who ordered the treatment. */ select description, count(*) as Occurrence from Treatment left outer join OrderedTreatment using (tid) where eid = '001' -- The doctor's eid can be tweaked! group by tid, description order by Occurrence desc; /* List employees who have been involved in the treatment of every admitted patient. */ select eid, firstname from employee where not exists (select * from treatment where type = 'I' -- 'I' represent admitted patients and not exists (select * from administeredtreatment where administeredtreatment.tid = treatment.tid and administeredtreatment.eid = employee.eid)); -- The answer makes sense because administrators are a type of employee that ARE NOT involved in treating patients. /* List the primary doctors of patients with a high admission rate (at least 4 admissions within a one-year time frame). */ select distinct firstname, lastname from doctor join admittedpatient using (eid) where admitted > admitted - interval 1 year group by firstname, lastname having count(*) >= 4;
SELECT * FROM Invoice join Customer on(Invoice.customerId= customer.customerId) where customer.country = 'Brazil'
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: testetezus2 -- ------------------------------------------------------ -- Server version 8.0.23 /*!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 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 `estoque` -- DROP TABLE IF EXISTS `estoque`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `estoque` ( `sku` int NOT NULL AUTO_INCREMENT, `productName` varchar(45) DEFAULT NULL, `price` float DEFAULT NULL, `description` varchar(500) DEFAULT NULL, `quantity` int DEFAULT NULL, `categoryId` int DEFAULT NULL, PRIMARY KEY (`sku`), KEY `fk_categoryId` (`categoryId`), CONSTRAINT `fk_categoryId` FOREIGN KEY (`categoryId`) REFERENCES `category` (`categoryId`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `estoque` -- LOCK TABLES `estoque` WRITE; /*!40000 ALTER TABLE `estoque` DISABLE KEYS */; INSERT INTO `estoque` VALUES (1,'tenis adidas ',150,'tenis ideal para caminhadas',3,NULL),(2,'tenis nike shox',200,'',5,NULL),(3,'mochila nike',200,'',6,NULL),(4,'mochila mizuno',199,'',4,NULL); /*!40000 ALTER TABLE `estoque` 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 2021-05-11 19:44:16
BEGIN INSERT INTO TBL_LOG(col_data1, col_data2, col_bigdata1) values('invoked CUST_2VV', '(CLOB) INPUT=', INPUT); :validationresult := 0; :ErrorCode :=-1; :ErrorMessage := 'OOops. wrong )))'; END;
CREATE OR REPLACE FUNCTION public.dblink_get_notify(conname text, OUT notify_name text, OUT be_pid integer, OUT extra text) RETURNS SETOF record LANGUAGE c STRICT AS '$libdir/dblink', $function$dblink_get_notify$function$
/*=================================*/ /* Suppression des contraintes */ /*=================================*/ ${dropConstraintScript(AP_TOTO.FK_MERETOTO_TOTO)} ${dropConstraintScript(AP_TOTO.FK_MERETOTO2_TOTO)} /*==============================*/ /* Creation des contraintes */ /*==============================*/ ${createConstraintScript(AP_TOTO.FK_MERETOTO_TOTO)} ${createConstraintScript(AP_TOTO.FK_MERETOTO2_TOTO)} /*==================================*/ /* Verification des contraintes */ /*==================================*/ ${logConstraintCreationScript(AP_TOTO.FK_MERETOTO_TOTO)} ${logConstraintCreationScript(AP_TOTO.FK_MERETOTO2_TOTO)}
drop table if exists `compose`; CREATE TABLE `compose` ( `id` smallint(4) unsigned NOT NULL COMMENT '็ผ–ๅท', `name` varchar(8) NOT NULL COMMENT 'ๅ็งฐ', `material1` smallint(4) unsigned NOT NULL COMMENT 'ๅŽŸๆ–™1', `quantity1` tinyint(1) unsigned NOT NULL COMMENT 'ๆ•ฐ้‡1', `material2` smallint(4) unsigned NOT NULL COMMENT 'ๅŽŸๆ–™2', `quantity2` tinyint(1) unsigned NOT NULL COMMENT 'ๆ•ฐ้‡2', `material3` smallint(4) unsigned NOT NULL COMMENT 'ๅŽŸๆ–™3', `quantity3` tinyint(1) unsigned NOT NULL COMMENT 'ๆ•ฐ้‡3', `result1` smallint(4) unsigned NOT NULL COMMENT '็ป“ๆžœ1', `result2` smallint(4) unsigned NOT NULL COMMENT '็ป“ๆžœ2', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ๅˆๆˆ่กจ';
DROP TABLE IF EXISTS 'users'; CREATE TABLE IF NOT EXISTS users (email VARCHAR (255) PRIMARY KEY NOT NULL, firstname VARCHAR (255) NOT NULL, lastname VARCHAR (255) NOT NULL, date VARCHAR (20) NOT NULL, balance INT DEFAULT 0, gold INT DEFAULT 0, silver INT DEFAULT 0, bronze INT DEFAULT 0, stone INT DEFAULT 0, password VARCHAR (60) NOT NULL, UNIQUE (email) );
delete from HtmlLabelIndex where id=21030 / delete from HtmlLabelInfo where indexid=21030 / INSERT INTO HtmlLabelIndex values(21030,'ไฝฟ็”จ้ƒจ้—จ') / INSERT INTO HtmlLabelInfo VALUES(21030,'ไฝฟ็”จ้ƒจ้—จ',7) / INSERT INTO HtmlLabelInfo VALUES(21030,'use department',8) / INSERT INTO HtmlLabelInfo VALUES(21030,'ไฝฟ็”จ้ƒจ้–€',9) / delete from HtmlLabelIndex where id=20536 / delete from HtmlLabelInfo where indexid=20536 / INSERT INTO HtmlLabelIndex values(20536,'ๅœจ็บฟไบบๅ‘˜') / INSERT INTO HtmlLabelInfo VALUES(20536,'ๅœจ็บฟไบบๅ‘˜',7) / INSERT INTO HtmlLabelInfo VALUES(20536,'people online',8) / INSERT INTO HtmlLabelInfo VALUES(20536,'ๅœจ็ทšไบบๅ“ก',9) / delete from HtmlLabelIndex where id=21899 / delete from HtmlLabelInfo where indexid=21899 / INSERT INTO HtmlLabelIndex values(21899,'ๆต็จ‹ๅŠž็†ๆƒ…ๅ†ต็ปŸ่ฎก่กจ') / INSERT INTO HtmlLabelInfo VALUES(21899,'ๆต็จ‹ๅŠž็†ๆƒ…ๅ†ต็ปŸ่ฎก่กจ',7) / INSERT INTO HtmlLabelInfo VALUES(21899,'Workflow deal report',8) / INSERT INTO HtmlLabelInfo VALUES(21899,'ๆต็จ‹่พฆ็†ๆƒ…ๆณ็ตฑ่จˆ่กจ',9) / delete from HtmlLabelIndex where id=21632 / delete from HtmlLabelInfo where indexid=21632 / INSERT INTO HtmlLabelIndex values(21632,'ๆ˜ฏๅฆๅ–ๆถˆๅฎก้˜…') / INSERT INTO HtmlLabelInfo VALUES(21632,'ๆ˜ฏๅฆๅ–ๆถˆๅฎก้˜…',7) / INSERT INTO HtmlLabelInfo VALUES(21632,'Cancel check or not',8) / INSERT INTO HtmlLabelInfo VALUES(21632,'ๆ˜ฏๅฆๅ–ๆถˆๅฏฉ้–ฑ',9) / delete from HtmlLabelIndex where id=21705 / delete from HtmlLabelInfo where indexid=21705 / INSERT INTO HtmlLabelIndex values(21705,'ๆ˜ฏๅฆไฟ็•™ๆญฃๆ–‡็‰ˆๆœฌ') / INSERT INTO HtmlLabelInfo VALUES(21705,'ๆ˜ฏๅฆไฟ็•™ๆญฃๆ–‡็‰ˆๆœฌ',7) / INSERT INTO HtmlLabelInfo VALUES(21705,'Hold Text Version Or Not',8) / INSERT INTO HtmlLabelInfo VALUES(21705,'ๆ˜ฏๅฆไฟ็•™ๆญฃๆ–‡็‰ˆๆœฌ',9) /
DROP PROCEDURE IF EXISTS reporting_cf.SP_campaign_history_ACHD_CF; CREATE PROCEDURE reporting_cf.`SP_campaign_history_ACHD_CF`() BEGIN /******************************************************************************************************************* --- NAME : SP_campaign_history_ACHD_CF --- DESCRIPTION: script for populate table campaign_history for list module Abandon 105min_45min and Abandon Yesterday in reporting_cf schema --- DD/MM/YYYY By Comment --- 22/07/2019 Eric Pu DAT-948 wrape it based on Joyce's script and add exception handling and logs The list module Abandon 105min_45min will run hourly and Abandon Yesterday will run daily at 10:30 am EST ---- 12/08/2019 add logic to exclude all rejected users ---- 21/10/2019 DAT-987 add date function ---- 08/11/2019 DAT-1173 redefine the logic ---- 14/01/2020 DAT-1310 Update reporting_cf.SP_campaign_history_ACHD_CF ---- 05/02/2020 DAT-1412 Update reporting_cf.SP_campaign_history_ACHD_CF ********************************************************************************************************************/ SET SQL_SAFE_UPDATES=0; SET @start = 'Start', @end = 'End', @success = ' succeeded,', @failed = ' failed, returned SQL_STATE = ', @error_msg = ', error message = ', @total_rows = ' total row count = '; SET @process_name = 'SP_campaign_history_ACHD_CF', @status_flag_success = 1, @status_flag_failure = 0; SET @valuation_date = curdate(); SELECT HOUR(CURTIME()) INTO @runhour; SELECT weekday(curdate()) INTO @weekday; SELECT FLOOR((DAYOFMONTH(curdate()) - 1)/7 +1) INTO @weeknum; CALL reporting.SP_process_log(@valuation_date, @process_name, @start, null, 'job is running', null); -- prepare temporay tables BEGIN DECLARE sql_code CHAR(5) DEFAULT '00000'; DECLARE sql_msg TEXT; DECLARE rowCount INT; DECLARE return_message TEXT; DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN GET DIAGNOSTICS CONDITION 1 sql_code = RETURNED_SQLSTATE, sql_msg = MESSAGE_TEXT; END; SET @process_label ='Create temporary tables', @process_type = 'Create'; DROP TEMPORARY TABLE IF EXISTS all_ac; CREATE TEMPORARY TABLE IF NOT EXISTS all_ac ( INDEX (user_name) ) AS ( select t.user_name, t.lms_customer_id, max(t.`timestamp`) as dropoff_time, count(t.id) as record_cnt, ai.firstname, ai.state, ai.amount from webapi.tracking t left join webapi.user_application_info ai on t.user_name=ai.email and ai.organization_id=2 where t.organization_id=2 and t.lead_sequence_id is null and t.user_name not like '%moneykey.com' and t.user_name not like '%creditfresh.com' and date(t.timestamp) >= date_sub(now(),interval 3 day) group by t.lms_customer_id, t.user_name); ##exclude any rejected DROP TEMPORARY TABLE IF EXISTS exc; CREATE TEMPORARY TABLE IF NOT EXISTS exc ( INDEX (user_name) ) AS ( select a.* from all_ac a inner join (select distinct t2.user_name from webapi.tracking t2 where t2.page='reject' and t2.organization_id=2) e on a.user_name=e.user_name); -- dat-1173 DROP TEMPORARY TABLE IF EXISTS table1; CREATE TEMPORARY TABLE IF NOT EXISTS table1 AS ( select a.* from all_ac a left join exc e on e.user_name=a.user_name where e.user_name is null); DROP TEMPORARY TABLE IF EXISTS exc1; CREATE TEMPORARY TABLE IF NOT EXISTS exc1 AS ( select t1.*, la.lms_customer_id as lacf_customer_id, la.application_status, la.loan_status from table1 t1 inner join reporting_cf.leads_accepted la on t1.user_name=la.emailaddress); DROP TEMPORARY TABLE IF EXISTS table2; CREATE TEMPORARY TABLE IF NOT EXISTS table2 AS ( select t1.* from table1 t1 left join exc1 e on e.user_name=t1.user_name where e.user_name is null ); DROP TEMPORARY TABLE IF EXISTS exc2; CREATE TEMPORARY TABLE IF NOT EXISTS exc2 AS ( select distinct table2.user_name from table2 inner join webapi.tracking tr on table2.user_name=tr.user_name and tr.lms_customer_id is not null and tr.lms_customer_id>0 -- !=(-1) and tr.organization_id=2 and tr.`timestamp`>=date_sub(curdate(), interval 2 month)); DROP TEMPORARY TABLE IF EXISTS table3; CREATE TEMPORARY TABLE IF NOT EXISTS table3 AS ( select t2.* from table2 t2 left join exc2 e2 on e2.user_name=t2.user_name where e2.user_name is null); IF sql_code = '00000' THEN GET DIAGNOSTICS rowCount = ROW_COUNT; SET return_message = CONCAT(@process_type, @success, @total_rows,rowCount); CALL reporting.SP_process_log(@valuation_date, @process_name, @process_label, @process_type, return_message, @status_flag_success); ELSE SET return_message = CONCAT(@process_type, @failed, sql_code, @error_msg ,sql_msg); CALL reporting.SP_process_log(@valuation_date, @process_name, @process_label, @process_type, return_message, @status_flag_failure); END IF; END; set @valuation_date = curdate(), @channel='email', @list_name='Abandon 105min_45min', @list_module='ACH', @list_frq='H', @list_gen_time= now(), @time_filter='dropoff_time'; BEGIN DECLARE sql_code CHAR(5) DEFAULT '00000'; DECLARE sql_msg TEXT; DECLARE rowCount INT; DECLARE return_message TEXT; DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN GET DIAGNOSTICS CONDITION 1 sql_code = RETURNED_SQLSTATE, sql_msg = MESSAGE_TEXT; END; SET @process_label ='populate data for list module ACH', @process_type = 'Insert'; INSERT INTO reporting_cf.campaign_history (business_date, Channel, list_name, job_ID, list_module, list_frq, email, Customer_FirstName, Req_Loan_Amount, received_time, key_word, list_generation_time, state) select @valuation_date, @channel, @list_name as list_name, date_format(@list_gen_time, '%m%d%YACH') as job_ID, @list_module as list_module, @list_frq as list_frq, a.user_name as email, a.FirstName, a.amount as Requested_Loan_Amt, a.dropoff_time, a.record_cnt, @list_gen_time as list_generation_time, a.state from table3 a where a.dropoff_time between date_sub(now(), interval 105 minute) and date_sub(now(), interval 45 minute); IF sql_code = '00000' THEN GET DIAGNOSTICS rowCount = ROW_COUNT; SET return_message = CONCAT(@process_type, @success, @total_rows,rowCount); CALL reporting.SP_process_log(@valuation_date, @process_name, @process_label, @process_type, return_message, @status_flag_success); ELSE SET return_message = CONCAT(@process_type, @failed, sql_code, @error_msg ,sql_msg); CALL reporting.SP_process_log(@valuation_date, @process_name, @process_label, @process_type, return_message, @status_flag_failure); END IF; END; IF @runhour = 10 THEN -- only run around 10:30 everyday set @valuation_date = curdate(), @channel='email', @list_name='Abandon Yesterday', @list_module='ACD', @list_frq='D', @list_gen_time= now(), @time_filter='dropoff_time'; -- select @valuation_date, @channel,@list_name,@list_module,@list_frq,@list_gen_time,@time_filter,@opt_out_YN, @first_interval,@second_interval,@third_interval,@first_date,@second_date,@third_date, @comment; BEGIN DECLARE sql_code CHAR(5) DEFAULT '00000'; DECLARE sql_msg TEXT; DECLARE rowCount INT; DECLARE return_message TEXT; DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN GET DIAGNOSTICS CONDITION 1 sql_code = RETURNED_SQLSTATE, sql_msg = MESSAGE_TEXT; END; SET @process_label ='populate data for list module ACD', @process_type = 'Insert'; INSERT INTO reporting_cf.campaign_history (business_date, Channel, list_name, job_ID, list_module, list_frq, email, Customer_FirstName, Req_Loan_Amount, received_time, key_word, list_generation_time, state) select @valuation_date, @channel, @list_name as list_name, date_format(@list_gen_time, '%m%d%YACD') as job_ID, @list_module as list_module, @list_frq as list_frq, a.user_name as email, a.FirstName, a.amount as Requested_Loan_Amt, a.dropoff_time, a.record_cnt, @list_gen_time as list_generation_time, a.state from table3 a where a.dropoff_time between date_sub(curdate(), interval 1 day) and curdate(); IF sql_code = '00000' THEN GET DIAGNOSTICS rowCount = ROW_COUNT; SET return_message = CONCAT(@process_type, @success, @total_rows,rowCount); CALL reporting.SP_process_log(@valuation_date, @process_name, @process_label, @process_type, return_message, @status_flag_success); ELSE SET return_message = CONCAT(@process_type, @failed, sql_code, @error_msg ,sql_msg); CALL reporting.SP_process_log(@valuation_date, @process_name, @process_label, @process_type, return_message, @status_flag_failure); END IF; END; END IF; -- log the process for completion CALL reporting.SP_process_log(@valuation_date, @process_name, @end, null, 'job is done', @status_flag_success); END;
-- -- 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 TABLE `m_portfolio_account_associations` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `loan_account_id` BIGINT NULL DEFAULT NULL, `savings_account_id` BIGINT NULL DEFAULT NULL, `linked_loan_account_id` BIGINT NULL DEFAULT NULL, `linked_savings_account_id` BIGINT NULL DEFAULT NULL, PRIMARY KEY (`id`), CONSTRAINT `account_association_loan_fk` FOREIGN KEY (`loan_account_id`) REFERENCES `m_loan` (`id`), CONSTRAINT `account_association_savings_fk` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`), CONSTRAINT `linked_loan_fk` FOREIGN KEY (`linked_loan_account_id`) REFERENCES `m_loan` (`id`), CONSTRAINT `linked_savings_fk` FOREIGN KEY (`linked_savings_account_id`) REFERENCES `m_savings_account` (`id`) ) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB; ALTER TABLE `m_charge` ADD COLUMN `charge_payment_mode_enum` SMALLINT NOT NULL DEFAULT '0' AFTER `charge_calculation_enum`; ALTER TABLE `m_loan_charge` ADD COLUMN `charge_payment_mode_enum` SMALLINT NOT NULL DEFAULT '0' AFTER `charge_calculation_enum`; INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('transaction_loan', 'PAY_LOANCHARGE', 'LOANCHARGE', 'PAY', 0); INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Transfer Fee For Loans From Savings', 'Transfer Fee For Loans From Savings', '0 1 0 1/1 * ? *', now(), 5, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0);
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Jan 2021 pada 23.44 -- Versi server: 10.4.16-MariaDB -- Versi PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `pbo` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `admin` -- CREATE TABLE `admin` ( `idadmin` int(1) NOT NULL, `namaadmin` varchar(8) NOT NULL, `usernameadmin` varchar(8) NOT NULL, `passwordadmin` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `admin` -- INSERT INTO `admin` (`idadmin`, `namaadmin`, `usernameadmin`, `passwordadmin`) VALUES (2, 'Andini', 'ula123', 'kolotero'); -- -------------------------------------------------------- -- -- Struktur dari tabel `operator kasir` -- CREATE TABLE `operator kasir` ( `idoperator` int(10) NOT NULL, `namaoperator` varchar(25) NOT NULL, `nik` varchar(16) NOT NULL, `usernamekasir` varchar(8) NOT NULL, `passwordkasir` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `operator kasir` -- INSERT INTO `operator kasir` (`idoperator`, `namaoperator`, `nik`, `usernamekasir`, `passwordkasir`) VALUES (4, 'Melati Purnamasari', '103456789134', 'melatipr', 'akucanti'); -- -------------------------------------------------------- -- -- Struktur dari tabel `pembeli` -- CREATE TABLE `pembeli` ( `idpembeli` int(11) NOT NULL, `namapembeli` varchar(20) NOT NULL, `telepon` varchar(13) NOT NULL, `alamat` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `pembeli` -- INSERT INTO `pembeli` (`idpembeli`, `namapembeli`, `telepon`, `alamat`) VALUES (2, 'Ratih', '890234871242', 'Jl. Gangsa RT17 RW 5'); -- -------------------------------------------------------- -- -- Struktur dari tabel `produk` -- CREATE TABLE `produk` ( `idbarang` int(4) NOT NULL, `namabarang` varchar(20) NOT NULL, `hargabarang` int(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `produk` -- INSERT INTO `produk` (`idbarang`, `namabarang`, `hargabarang`) VALUES (1, 'White Jumbo', 2500), (2, 'White Mini', 1000), (3, 'Brown Jumbo', 2500), (4, 'Brown Mini', 1000), (5, 'Rainbow Jumbo', 2500), (6, 'Rainbow Ancungan', 2500), (7, 'Gronong Special', 2500); -- -------------------------------------------------------- -- -- Struktur dari tabel `transaksi` -- CREATE TABLE `transaksi` ( `idtransaksi` int(11) NOT NULL, `idoperator` int(10) DEFAULT NULL, `idbarang` int(8) NOT NULL, `idpembeli` int(11) NOT NULL, `kuantitas` int(11) NOT NULL, `totalharga` int(11) NOT NULL, `tanggaltransaksi` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `transaksi` -- INSERT INTO `transaksi` (`idtransaksi`, `idoperator`, `idbarang`, `idpembeli`, `kuantitas`, `totalharga`, `tanggaltransaksi`) VALUES (1, 4, 1, 2, 40, 100000, '2021-01-02 05:31:52'), (2, 4, 3, 2, 30, 75000, '2021-01-02 05:31:52'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`idadmin`); -- -- Indeks untuk tabel `operator kasir` -- ALTER TABLE `operator kasir` ADD PRIMARY KEY (`idoperator`); -- -- Indeks untuk tabel `pembeli` -- ALTER TABLE `pembeli` ADD PRIMARY KEY (`idpembeli`); -- -- Indeks untuk tabel `produk` -- ALTER TABLE `produk` ADD PRIMARY KEY (`idbarang`); -- -- Indeks untuk tabel `transaksi` -- ALTER TABLE `transaksi` ADD PRIMARY KEY (`idtransaksi`), ADD KEY `idoperator` (`idoperator`), ADD KEY `idbarang` (`idbarang`), ADD KEY `idpembeli` (`idpembeli`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `admin` -- ALTER TABLE `admin` MODIFY `idadmin` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `operator kasir` -- ALTER TABLE `operator kasir` MODIFY `idoperator` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT untuk tabel `pembeli` -- ALTER TABLE `pembeli` MODIFY `idpembeli` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `produk` -- ALTER TABLE `produk` MODIFY `idbarang` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT untuk tabel `transaksi` -- ALTER TABLE `transaksi` MODIFY `idtransaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `transaksi` -- ALTER TABLE `transaksi` ADD CONSTRAINT `transaksi_ibfk_3` FOREIGN KEY (`idbarang`) REFERENCES `produk` (`idbarang`), ADD CONSTRAINT `transaksi_ibfk_4` FOREIGN KEY (`idoperator`) REFERENCES `operator kasir` (`idoperator`) ON DELETE SET NULL, ADD CONSTRAINT `transaksi_ibfk_5` FOREIGN KEY (`idpembeli`) REFERENCES `pembeli` (`idpembeli`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Use TravelExperts select * from Products_Suppliers select * from Suppliers select * from Products SELECT * FROM Products INNER JOIN Products_Suppliers ON Products.ProductId=Products_Suppliers.ProductId SELECT Products.ProductId, ProdName, Suppliers.SupplierId, SupName FROM Products INNER JOIN Products_Suppliers ON Products.ProductId=Products_Suppliers.ProductId INNER JOIN Suppliers ON Products_Suppliers.SupplierId = Suppliers.SupplierId
Set Serveroutput On; Accept Var_Owner Prompt "Enter the owner name:" accept Var_Role prompt "Enter the role name:" DECLARE Owner_Nm Varchar2(30) := Upper('&Var_Owner'); ROLE_NM VARCHAR2(30) := Upper('&Var_Role'); Rolling_Count Number; Start_Dts Date := Sysdate; End_Dts Date; elapsed_time number; CURSOR OWNER_OBJECT ( CP_OWNER_NM VARCHAR2 )IS SELECT Object_Name, OBJECT_TYPE FROM ALL_OBJECTS WHERE OWNER = CP_OWNER_NM And Object_Type In ('TABLE', 'VIEW', 'MATERIALIZED VIEW', 'SEQUENCE', 'PROCEDURE', 'FUNCTION', 'PACKAGE','SYNONYM'); Procedure Process_Objects ( P_Owner_Nm In Varchar2, P_Role_Nm In Varchar2 ) Is Table_Count Number := 0; View_Count Number := 0; Matview_Count Number := 0; Seq_Count Number := 0; Proc_Count Number := 0; Func_Count Number := 0; Pack_Count Number := 0; syn_count number := 0; Begin For Obj_Qry In Owner_Object(P_Owner_Nm) Loop if Obj_Qry.object_type = 'TABLE' then Execute Immediate 'GRANT SELECT, INSERT, UPDATE ON '|| P_Owner_Nm||'.'||Obj_Qry.Object_Name||' TO '|| P_Role_Nm; table_count := Table_Count + 1; Elsif Obj_Qry.Object_Type = 'VIEW' Then Execute Immediate 'GRANT SELECT ON '||P_Owner_Nm||'.'|| Obj_Qry.Object_Name||' TO '||P_Role_Nm; View_Count := View_Count + 1; Elsif Obj_Qry.Object_Type = 'MATERIALIZED VIEW' Then Execute Immediate 'GRANT SELECT ON '||P_Owner_Nm||'.'|| Obj_Qry.Object_Name||' TO '||P_Role_Nm; Matview_Count := Matview_Count + 1; Elsif Obj_Qry.Object_Type = 'SEQUENCE' Then Execute Immediate 'GRANT SELECT ON '||P_Owner_Nm||'.'|| Obj_Qry.Object_Name||' TO '||P_Role_Nm; seq_count := seq_count + 1; Elsif Obj_Qry.Object_Type = 'PROCEDURE' Then Execute Immediate 'GRANT EXECUTE ON '||P_Owner_Nm||'.'|| Obj_Qry.Object_Name||' TO '||P_Role_Nm; proc_count := proc_count + 1; Elsif Obj_Qry.Object_Type = 'FUNCTION' Then Execute Immediate 'GRANT EXECUTE ON '||P_Owner_Nm||'.'|| Obj_Qry.Object_Name||' TO '||P_Role_Nm; func_count := func_count + 1; Elsif Obj_Qry.Object_Type = 'PACKAGE' Then Execute Immediate 'GRANT EXECUTE ON '||P_Owner_Nm||'.'|| Obj_Qry.Object_Name||' TO '||P_Role_Nm; pack_count := pack_count + 1; End If; Elsif Obj_Qry.Object_Type = 'SYNONYM' Then Execute Immediate 'GRANT SELECT ON '||P_Owner_Nm||'.'|| Obj_Qry.Object_Name||' TO '||P_Role_Nm; syn_Count := Pack_Count + 1; end if; end loop; Dbms_Output.Put_Line('Processed '||Table_Count||' tables.'); Dbms_Output.Put_Line('Processed '||View_Count||' views.'); Dbms_Output.Put_Line('Processed '||Matview_Count||' materialized views.'); Dbms_Output.Put_Line('Processed '||Seq_Count||' sequences.'); Dbms_Output.Put_Line('Processed '||Proc_Count||' procedures.'); Dbms_Output.Put_Line('Processed '||Func_Count||' functions.'); Dbms_Output.Put_Line('Processed '||Pack_Count||' packages.'); Dbms_Output.Put_Line('Processed '||syn_count||' synonyms.'); End; BEGIN Dbms_Output.Put_Line(Start_Dts); dbms_output.put_line(''); Dbms_Output.Put_Line('Processing objects in schema: '||Owner_Nm); Dbms_Output.Put_Line('For role: '||Role_Nm); dbms_output.put_line(''); Process_Objects(owner_nm, role_nm); End_Dts := Sysdate; elapsed_time := (end_dts-start_dts)*24*60*60; DBMS_OUTPUT.PUT_LINE(''); Dbms_Output.Put_Line(End_Dts); dbms_output.put_line('Time elapsed: '||Elapsed_Time||' seconds'); END;
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ----------------------------------------------------- -- Schema mydb -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema controle_de_tarefas -- ----------------------------------------------------- DROP SCHEMA IF EXISTS `controle_de_tarefas` ; -- ----------------------------------------------------- -- Schema controle_de_tarefas -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `controle_de_tarefas` DEFAULT CHARACTER SET latin1 ; USE `controle_de_tarefas` ; -- ----------------------------------------------------- -- Table `controle_de_tarefas`.`class` -- ----------------------------------------------------- DROP TABLE IF EXISTS `controle_de_tarefas`.`class` ; CREATE TABLE IF NOT EXISTS `controle_de_tarefas`.`class` ( `id` VARCHAR(6) NOT NULL, `name` VARCHAR(70) NOT NULL, `workload` INT(10) UNSIGNED NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `id_UNIQUE` (`id` ASC)) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `controle_de_tarefas`.`course` -- ----------------------------------------------------- DROP TABLE IF EXISTS `controle_de_tarefas`.`course` ; CREATE TABLE IF NOT EXISTS `controle_de_tarefas`.`course` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `semesters` INT(10) UNSIGNED NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `id_UNIQUE` (`id` ASC), UNIQUE INDEX `name_UNIQUE` (`name` ASC)) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `controle_de_tarefas`.`course_has_class` -- ----------------------------------------------------- DROP TABLE IF EXISTS `controle_de_tarefas`.`course_has_class` ; CREATE TABLE IF NOT EXISTS `controle_de_tarefas`.`course_has_class` ( `course_id` INT(11) NOT NULL, `class_id` VARCHAR(6) NOT NULL, `type` ENUM('Obrigatรณria', 'Eletiva') NOT NULL, `semester` INT(10) UNSIGNED NOT NULL, PRIMARY KEY (`course_id`, `class_id`), INDEX `fk_course_has_class_class1_idx` (`class_id` ASC), CONSTRAINT `fk_course_has_class_class1` FOREIGN KEY (`class_id`) REFERENCES `controle_de_tarefas`.`class` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_course_has_class_course` FOREIGN KEY (`course_id`) REFERENCES `controle_de_tarefas`.`course` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `controle_de_tarefas`.`dependence` -- ----------------------------------------------------- DROP TABLE IF EXISTS `controle_de_tarefas`.`dependence` ; CREATE TABLE IF NOT EXISTS `controle_de_tarefas`.`dependence` ( `course_id` INT(11) NOT NULL, `class_id` VARCHAR(6) NOT NULL, `course_id_dep` INT(11) NOT NULL, `class_id_dep` VARCHAR(6) NOT NULL, PRIMARY KEY (`course_id`, `class_id`, `course_id_dep`, `class_id_dep`), INDEX `fk_course_has_class_has_course_has_class_course_has_class2_idx` (`course_id_dep` ASC, `class_id_dep` ASC), INDEX `fk_course_has_class_has_course_has_class_course_has_class1_idx` (`course_id` ASC, `class_id` ASC), CONSTRAINT `fk_course_has_class_has_course_has_class_course_has_class1` FOREIGN KEY (`course_id` , `class_id`) REFERENCES `controle_de_tarefas`.`course_has_class` (`course_id` , `class_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_course_has_class_has_course_has_class_course_has_class2` FOREIGN KEY (`course_id_dep` , `class_id_dep`) REFERENCES `controle_de_tarefas`.`course_has_class` (`course_id` , `class_id`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `controle_de_tarefas`.`student` -- ----------------------------------------------------- DROP TABLE IF EXISTS `controle_de_tarefas`.`student` ; CREATE TABLE IF NOT EXISTS `controle_de_tarefas`.`student` ( `registration` INT(11) NOT NULL, `name` VARCHAR(200) NOT NULL, `surname` VARCHAR(200) NOT NULL, `email` VARCHAR(200) NOT NULL, `password` VARCHAR(245) NOT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `course_id` INT(11) NOT NULL, PRIMARY KEY (`registration`), UNIQUE INDEX `emil_UNIQUE` (`email` ASC), INDEX `fk_student_course1_idx` (`course_id` ASC), CONSTRAINT `fk_student_course1` FOREIGN KEY (`course_id`) REFERENCES `controle_de_tarefas`.`course` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `controle_de_tarefas`.`student_has_class` -- ----------------------------------------------------- DROP TABLE IF EXISTS `controle_de_tarefas`.`student_has_class` ; CREATE TABLE IF NOT EXISTS `controle_de_tarefas`.`student_has_class` ( `student_registration` INT(11) NOT NULL, `class_id` VARCHAR(6) NOT NULL, `skips` INT(11) NOT NULL, `status` INT(1) NOT NULL DEFAULT '0', PRIMARY KEY (`student_registration`, `class_id`), INDEX `fk_student_has_class_class1_idx` (`class_id` ASC), INDEX `fk_student_has_class_student1_idx` (`student_registration` ASC), CONSTRAINT `fk_student_has_class_class1` FOREIGN KEY (`class_id`) REFERENCES `controle_de_tarefas`.`class` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_student_has_class_student1` FOREIGN KEY (`student_registration`) REFERENCES `controle_de_tarefas`.`student` (`registration`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = latin1; -- ----------------------------------------------------- -- Table `controle_de_tarefas`.`tasks` -- ----------------------------------------------------- DROP TABLE IF EXISTS `controle_de_tarefas`.`tasks` ; CREATE TABLE IF NOT EXISTS `controle_de_tarefas`.`tasks` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `student_registration` INT(11) NOT NULL, `class_id` VARCHAR(6) NOT NULL, `name` VARCHAR(70) NOT NULL, `total` FLOAT UNSIGNED NOT NULL, `nota` FLOAT UNSIGNED NULL DEFAULT NULL, `data_ini` DATETIME NULL DEFAULT NULL, `data_fin` DATETIME NULL DEFAULT NULL, `color` CHAR(7) NULL DEFAULT NULL, PRIMARY KEY (`student_registration`, `class_id`, `id`), UNIQUE INDEX `id_UNIQUE` (`id` ASC), CONSTRAINT `fk_tasks_student_has_class1` FOREIGN KEY (`student_registration` , `class_id`) REFERENCES `controle_de_tarefas`.`student_has_class` (`student_registration` , `class_id`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE = InnoDB AUTO_INCREMENT = 13 DEFAULT CHARACTER SET = latin1; DELIMITER $$ USE `controle_de_tarefas`$$ DROP TRIGGER IF EXISTS `controle_de_tarefas`.`student_AFTER_INSERT` $$ USE `controle_de_tarefas`$$ CREATE DEFINER=`root`@`%` TRIGGER `controle_de_tarefas`.`student_AFTER_INSERT` AFTER INSERT ON `controle_de_tarefas`.`student` FOR EACH ROW BEGIN declare materia_id varchar(6); declare num_rows int default 0; declare done int default false; declare materias cursor for select class_id from course_has_class where `course_id` = NEW.course_id; declare continue handler for not found set done = true; open materias; my_loop: loop set done = false; fetch materias into materia_id; if done then leave my_loop; end if; insert into student_has_class values (NEW.registration, materia_id, 0, 0); end loop my_loop; close materias; END$$ DELIMITER ; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE SEQUENCE HIBERNATE_SEQUENCE INCREMENT 1 MINVALUE 100 MAXVALUE 9223372036854775807 START 100 CACHE 1; CREATE TABLE ADDRESS ( ID BIGINT NOT NULL, HOUSE_NUMBER CHARACTER VARYING(255), STREET CHARACTER VARYING(255), ZIP_CODE CHARACTER VARYING(255), CONSTRAINT ADDRESS_PKEY PRIMARY KEY (ID) ); CREATE TABLE COMPANY ( ID BIGINT NOT NULL, NAME CHARACTER VARYING(255) NOT NULL, CONSTRAINT COMPANY_PKEY PRIMARY KEY (ID), CONSTRAINT UKS7T58YCLDRJRFTPUN092TKHU7 UNIQUE (NAME) ); CREATE TABLE PUBLIC.CAR ( ID BIGINT NOT NULL, REGISTRATION_NUMBER CHARACTER VARYING(255), COMPANY_ID BIGINT, CONSTRAINT CAR_PKEY PRIMARY KEY (ID), CONSTRAINT FKJQP14DKMI2LH5KJAVV4T0DKQY FOREIGN KEY (COMPANY_ID) REFERENCES COMPANY (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ); CREATE TABLE DEPARTMENT ( ID BIGINT NOT NULL, NAME CHARACTER VARYING(255) NOT NULL, COMPANY_ID BIGINT, CONSTRAINT DEPARTMENT_PKEY PRIMARY KEY (ID), CONSTRAINT FKH1M88Q0F7SC0MK76KJU4KCN6F FOREIGN KEY (COMPANY_ID) REFERENCES COMPANY (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ); CREATE TABLE CATEGORY ( ID BIGINT NOT NULL, NAME CHARACTER VARYING(255) NOT NULL, CONSTRAINT CATEGORY_PKEY PRIMARY KEY (ID) ); CREATE TABLE EMPLOYEE ( ID UUID NOT NULL, TITLE CHARACTER VARYING(255), NAME CHARACTER VARYING(255) NOT NULL, SURNAME CHARACTER VARYING(255) NOT NULL, EMPLOYEE_TITLE CHARACTER VARYING(255) NOT NULL, BIO CHARACTER VARYING(255) NOT NULL, IMAGE_NAME CHARACTER VARYING(255) NOT NULL, EXTENSION JSONB, ADDRESS_ID BIGINT, DEPARTMENT_ID BIGINT, CATEGORY_ID BIGINT, CONSTRAINT EMPLOYEE_PKEY PRIMARY KEY (ID), CONSTRAINT FKBEJTWVG9BXUS2MFFSM3SWJ3U9 FOREIGN KEY (DEPARTMENT_ID) --// Todo: Get rid of this shit dude! REFERENCES DEPARTMENT (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT FKBP91O1GYK9XQ5T48ZVGLAJ0ML FOREIGN KEY (CATEGORY_ID) REFERENCES CATEGORY (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT FKGA73HDTPB67TWLR9C1I337TYT FOREIGN KEY (ADDRESS_ID) REFERENCES ADDRESS (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ); CREATE TABLE EVENT ( ID UUID NOT NULL, TITLE CHARACTER VARYING(255), START_DATE TIMESTAMP NOT NULL, END_DATE TIMESTAMP, BODY TEXT, EXTENSION JSONB, DATE_PUBLISHED TIMESTAMP NOT NULL, WEBSITE CHARACTER VARYING(255), LOCATION CHARACTER VARYING(255) NOT NULL, EVENT_BANNER CHARACTER VARYING(255) NOT NULL, CONSTRAINT EVENT_PKEY PRIMARY KEY (ID) ); CREATE TABLE PAGE_CATEGORY ( ID BIGINT NOT NULL, NAME CHARACTER VARYING(255) NOT NULL, CONSTRAINT PAGE_CATEGORY_PKEY PRIMARY KEY (ID) ); ALTER TABLE IF EXISTS PAGE_CATEGORY ADD CONSTRAINT NAME UNIQUE (NAME); CREATE TABLE NAVIGATION ( ID INTEGER NOT NULL, TITLE CHARACTER VARYING(255) NOT NULL, IMAGE_NAME CHARACTER VARYING(255) NOT NULL, DESCRIPTION CHARACTER VARYING(255), BODY TEXT, WRITER CHARACTER VARYING(255), ENABLED BOOLEAN, DATE_PUBLISHED TIMESTAMP NOT NULL, PAGE_CATEGORY_ID BIGINT, CONSTRAINT NAVIGATION_PKEY PRIMARY KEY (ID), CONSTRAINT FKHB84JFYON78YWMA8X22448MZV FOREIGN KEY (PAGE_CATEGORY_ID) REFERENCES PAGE_CATEGORY (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ); ALTER TABLE IF EXISTS NAVIGATION ADD CONSTRAINT TITLE UNIQUE (TITLE); CREATE TABLE NAVIGATION_CATEGORIES ( NAVIGATION_ID INTEGER NOT NULL, PAGE_CATEGORY_ID INT8 NOT NULL, PRIMARY KEY (NAVIGATION_ID, PAGE_CATEGORY_ID) ); ALTER TABLE IF EXISTS NAVIGATION_CATEGORIES ADD CONSTRAINT NAVIGATION_CATEGORIES_NAVIGATION FOREIGN KEY (NAVIGATION_ID) REFERENCES NAVIGATION; ALTER TABLE IF EXISTS NAVIGATION_CATEGORIES ADD CONSTRAINT NAVIGATION_CATEGORIES_PAGE_CATEGORY FOREIGN KEY (PAGE_CATEGORY_ID) REFERENCES PAGE_CATEGORY; CREATE TABLE OFFICE ( ID BIGINT NOT NULL, NAME CHARACTER VARYING(255) NOT NULL, ADDRESS_ID BIGINT, DEPARTMENT_ID BIGINT, CONSTRAINT OFFICE_PKEY PRIMARY KEY (ID), CONSTRAINT FK4FFKMQMLNYV67LD0DCTCVJSFJ FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT FKAK81M3GKJ8XQ5T48XUFLBJ0KN FOREIGN KEY (ADDRESS_ID) REFERENCES ADDRESS (ID) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ); CREATE TABLE OAUTH_CLIENT_DETAILS ( CLIENT_ID VARCHAR(255) PRIMARY KEY, RESOURCE_IDS VARCHAR(255), CLIENT_SECRET VARCHAR(255), SCOPE VARCHAR(255), AUTHORIZED_GRANT_TYPES VARCHAR(255), WEB_SERVER_REDIRECT_URI VARCHAR(255), AUTHORITIES VARCHAR(255), ACCESS_TOKEN_VALIDITY INTEGER, REFRESH_TOKEN_VALIDITY INTEGER, ADDITIONAL_INFORMATION VARCHAR(4096), AUTOAPPROVE VARCHAR(255) ); CREATE TABLE OAUTH_CLIENT_TOKEN ( TOKEN_ID VARCHAR(255), TOKEN BYTEA, AUTHENTICATION_ID VARCHAR(255) PRIMARY KEY, USER_NAME VARCHAR(255), CLIENT_ID VARCHAR(255) ); CREATE TABLE OAUTH_ACCESS_TOKEN ( TOKEN_ID VARCHAR(255), TOKEN BYTEA, AUTHENTICATION_ID VARCHAR(255) PRIMARY KEY, USER_NAME VARCHAR(255), CLIENT_ID VARCHAR(255), AUTHENTICATION BYTEA, REFRESH_TOKEN VARCHAR(255) ); CREATE TABLE OAUTH_REFRESH_TOKEN ( TOKEN_ID VARCHAR(255), TOKEN BYTEA, AUTHENTICATION BYTEA ); CREATE TABLE OAUTH_CODE ( CODE VARCHAR(255), AUTHENTICATION BYTEA ); CREATE TABLE OAUTH_APPROVALS ( USERID VARCHAR(255), CLIENTID VARCHAR(255), SCOPE VARCHAR(255), STATUS VARCHAR(10), EXPIRESAT TIMESTAMP, LASTMODIFIEDAT TIMESTAMP ); CREATE TABLE AUTHORITY ( ID BIGSERIAL NOT NULL, NAME VARCHAR(255), PRIMARY KEY (ID) ); ALTER TABLE IF EXISTS AUTHORITY ADD CONSTRAINT AUTHORITY_NAME UNIQUE (NAME); CREATE TABLE USER_ ( ID BIGSERIAL NOT NULL, ACCOUNT_EXPIRED BOOLEAN, ACCOUNT_LOCKED BOOLEAN, CREDENTIALS_EXPIRED BOOLEAN, ENABLED BOOLEAN, PASSWORD VARCHAR(255), USER_NAME VARCHAR(255), PRIMARY KEY (ID) ); ALTER TABLE IF EXISTS USER_ ADD CONSTRAINT USER_USER_NAME UNIQUE (USER_NAME); CREATE TABLE USERS_AUTHORITIES ( USER_ID INT8 NOT NULL, AUTHORITY_ID INT8 NOT NULL, PRIMARY KEY (USER_ID, AUTHORITY_ID) ); ALTER TABLE IF EXISTS USERS_AUTHORITIES ADD CONSTRAINT USERS_AUTHORITIES_AUTHORITY FOREIGN KEY (AUTHORITY_ID) REFERENCES AUTHORITY; ALTER TABLE IF EXISTS USERS_AUTHORITIES ADD CONSTRAINT USERS_AUTHORITIES_USER_ FOREIGN KEY (USER_ID) REFERENCES USER_;
use WFA3DotNet --1.Creation of Table Product create table Product ( ProductID int IDENTITY(1,1) PRIMARY KEY, Description varchar(30) NOT NULL, SetQty int NOT NULL DEFAULT 1, Rate DECIMAL(10,2), CONSTRAINT CHK_Product CHECK ((Rate>=18 AND Rate<=5000) AND (SetQty=1 OR SetQty=5 OR SetQty=10)) ) --2.Inserting the values insert into Product values('Dell',1,3000.9) insert into Product values('HP',5,300.9) insert into Product values('Razer',1,2000.9) insert into Product values('Microsoft',1,3000.9) insert into Product values('Msi',5,3000.9) insert into Product values('Asus',10,1000.9) insert into Product values('Acer',1,2000.9) insert into Product values('Lenova',1,3000.9) insert into Product values('Hp',5,2000.9) insert into Product values('Dell',1,3000.9) insert into Product values('Microsoft',10,1000.9) insert into Product values('Apple',1,3000.9) insert into Product values('Mac Book',1,1000.9) insert into Product values('Acer',1,3000.9) insert into Product values('HP',1,1000.9) insert into Product values('Microsoft',1,3000.9) insert into Product values('Acer',1,1000.9) insert into Product values('Msi',1,100.9) insert into Product values('Dell',1,2000.9) insert into Product values('Hp',1,300.45) select * from Product drop table product --3.Update all the rates with 10% rate hike. update Product SET Rate=Rate *0.1 from Product --problem --4.Delete last record by providing the ProductID. delete from Product where ProductID=(select ProductID from Product ORDER BY ProductID DESC ) --problem --5.Alter the above table and add the following column. alter table Product ADD MarginCode char(1) CHECK(MarginCode='A' OR MarginCode='B' OR MarginCode=null) --6.Update few records to set MarginCode to A and some records MarginCode to B update Product SET MarginCode ='A' where setQty=5 --6.Update few records to set MarginCode to A and some records MarginCode to B update Product SET MarginCode ='B' where setQty=10 --7.Update all the SetQty to 10 for all Items which have MarginCode A and whose original SetQty is 1. update Product SET SetQty=10 where MarginCode ='A' AND SetQty=1
Create table types ( type_id int(2) unsigned primary key, name varchar(12) not null, tier_1_min int(1) not null, tier_2_min int(1), tier_3_min int(1), tier_4_min int(1)); insert into types values(1, 'Adept', 2, 3, 4, NULL, 1), (2, 'Assassin', 2, 4, 6, NULL, 1), (3, 'Brawler', 2, 4, 6, 8, 1), (4, 'Dazzler', 2, 4, NULL, NULL, 1), (5, 'Duelist', 2, 4, 6, 8, 1), (6, 'Emperor', 1, NULL, NULL, NULL, 1), (7, 'Hunter', 2, 3, 4, 5, 1), (8, 'Keeper', 2, 4, 6, NULL, 1), (9, 'Mage', 3, 6, 9, NULL, 1), (10, 'Mystic', 2, 4, 6, NULL, 1), (11, 'Shade', 2, 3, 4, NULL, 1), (12, 'Sharpshooter', 2, 4, 6, NULL, 1), (13, 'Vanguard', 2, 4, 6, NULL, 1);
--1.4. Calcular A = (pi * r)^2 donde r = 10 y la funciรณn Pi() para pi select POWER((PI() * 10),2)
CREATE DATABASE atom_pocket; \c atom_pocket; CREATE TABLE dompet( id SERIAL, nama varchar NOT NULL, referensi varchar, deskripsi varchar, isActive boolean NOT NULL DEFAULT TRUE, PRIMARY KEY (id) ); CREATE TABLE kategori( id SERIAL, nama varchar NOT NULL, deskripsi varchar, isActive boolean NOT NULL DEFAULT TRUE, PRIMARY KEY (id) ); CREATE TABLE transaksi( id SERIAL, kode varchar NOT NULL, deskripsi varchar, tanggal DATE, nilai decimal, dompet_id INT, kategori_id INT, isTransaksiMasuk boolean NOT NULL, PRIMARY KEY (id), CONSTRAINT fk_dompet FOREIGN KEY(dompet_id) REFERENCES dompet(id), CONSTRAINT fk_kategori FOREIGN KEY(kategori_id) REFERENCES kategori(id) );
DROP TABLE IF EXISTS `timetracker_downgrade_migration_temp`.`project_user`; -- CREATE TABLE "projects" ------------------------------------- CREATE TABLE `timetracker_downgrade_migration_temp`.`project_user` ( `id` Char( 36 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, `created_at` DateTime NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` DateTime NULL DEFAULT CURRENT_TIMESTAMP, `user_id` Char( 36 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, `project_id` Char( 36 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL, `uid` Int( 11 ) NOT NULL, `pid` Int( 11 ) NOT NULL, `did_alias` Int( 11 ) NOT NULL DEFAULT 0, PRIMARY KEY ( `uid`, `pid`, `did_alias` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB; -- ------------------------------------------------------------- -- CREATE INDEX "did_alias" ------------------------------------ CREATE INDEX `did_alias` USING BTREE ON `timetracker_downgrade_migration_temp`.`project_user`( `did_alias` ); -- ------------------------------------------------------------- -- CREATE INDEX "pid" ------------------------------------------ CREATE INDEX `pid` USING BTREE ON `timetracker_downgrade_migration_temp`.`project_user`( `pid` ); -- ------------------------------------------------------------- INSERT INTO `timetracker_downgrade_migration_temp`.`project_user` SELECT `pu`.`id`, `pu`.`created_at`, `pu`.`updated_at`, `pu`.`user_id`, `pu`.`project_id`, `tu`.`id` `uid`, `tp`.`id` `pid`, IF(`aliases`.`id` IS NULL, 0, `aliases`.`id`) `did_alias` FROM `@source_database@`.`project_user` pu JOIN `timetracker_downgrade_migration_temp`.`projects` tp ON `pu`.`project_id` = `tp`.`uuid` JOIN `timetracker_downgrade_migration_temp`.`users` tu ON `pu`.`user_id` = `tu`.`uuid` LEFT JOIN `@source_database@`.`user_aliases` ua ON `ua`.`project_id` = `pu`.`project_id` AND `ua`.`user_id` = `pu`.`user_id` LEFT JOIN `timetracker_downgrade_migration_temp`.`users` aliases ON `aliases`.`uuid` = `ua`.`alias_id`; -- CREATE TABLE "users_projects_xref" -------------------------- CREATE TABLE `@target_database@`.`users_projects_xref` ( `uid` Int( 11 ) NOT NULL, `pid` Int( 11 ) NOT NULL, `did_alias` Int( 11 ) NOT NULL DEFAULT 0, PRIMARY KEY ( `uid`, `pid`, `did_alias` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB; -- ------------------------------------------------------------- -- CREATE INDEX "did_alias" ------------------------------------ CREATE INDEX `did_alias` USING BTREE ON `@target_database@`.`users_projects_xref`( `did_alias` ); -- ------------------------------------------------------------- -- CREATE INDEX "pid" ------------------------------------------ CREATE INDEX `pid` USING BTREE ON `@target_database@`.`users_projects_xref`( `pid` ); -- ------------------------------------------------------------- INSERT INTO `@target_database@`.`users_projects_xref` SELECT * FROM `@source_live@`.`users_projects_xref`;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 20, 2016 at 08:51 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 7.0.3 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: `jollibeetimekeeping` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `id` int(11) NOT NULL, `lname` varchar(45) DEFAULT NULL, `fname` varchar(45) DEFAULT NULL, `user` int(11) DEFAULT NULL, `password` varchar(45) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `employees` -- CREATE TABLE `employees` ( `id` int(11) NOT NULL, `lname` varchar(45) DEFAULT NULL, `fname` varchar(45) DEFAULT NULL, `salary` int(11) DEFAULT NULL, `proj_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `project` -- CREATE TABLE `project` ( `proj_id` int(11) NOT NULL, `emp_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `timetable` -- CREATE TABLE `timetable` ( `id` int(11) NOT NULL, `emp_id` int(11) NOT NULL, `time_in` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `time_out` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `reg_hour` int(11) NOT NULL, `over_time` int(11) NOT NULL, `emp_leave` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`id`); -- -- Indexes for table `employees` -- ALTER TABLE `employees` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `proj_id` (`proj_id`); -- -- Indexes for table `project` -- ALTER TABLE `project` ADD PRIMARY KEY (`proj_id`), ADD UNIQUE KEY `emp_id` (`emp_id`); -- -- Indexes for table `timetable` -- ALTER TABLE `timetable` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `emp_id` (`emp_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `employees` -- ALTER TABLE `employees` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `project` -- ALTER TABLE `project` MODIFY `proj_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `timetable` -- ALTER TABLE `timetable` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; /*!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 */;
INSERT INTO burgers (burger_name) VALUES ('Double Bacon Cheese Burger'); INSERT INTO burgers (burger_name) VALUES ('BBQ Burger'); INSERT INTO burgers (burger_name) VALUES ('Hawaiian Burger'); SELECT * FROM burgers;
SELECT dbms_result_cache.status() FROM dual; ------------ ENABLED -- SQLs that use result cache hint from DASH select sum(10) secs, sum(sum(10)) over () as totalsec, round((sum(10)/ sum(sum(10)) over ()) *100,2) percento, dash.SQL_ID, event, case when lower(sql_text) like '%result%cache%' THEN 'RC' else null end rc_used, to_char(substr(sql_text,1,400)) sql_text from dba_hist_active_sess_history dash, dba_hist_sqltext st where dash.sql_id = st.sql_id (+) and sample_time between to_date('20180618 08:00','YYYYMMDD HH24:MI') and to_date('20180618 09:00','YYYYMMDD HH24:MI') group by dash.sql_id, event, to_char(substr(sql_text,1,400)), case when lower(sql_text) like '%result%cache%' THEN 'RC' else null end order by 1 desc ; /* 2590 35490 7,3 3gy7vrp5v02f4 db file sequential read UPDATE DWH2.FACT_SAP_RMCA_DUNNING T SET T.STATUS = 'STORNO' WHERE EXISTS (SELECT S.RMCA_DOCUMENT_NO, S.DUNNING_LEVEL FROM DWH2.FACT_SAP_RMCA_DUNNING S WHERE S.STORNO_FLAG = 'Y' AND S.LOADING_MONTH = :B1 AND T.RMCA_DOCUMENT_NO=S.RMCA_DOCUMENT_NO AND T.DUNNING_LEVEL=S.DUNNING_LEVEL) AND T.STATUS != 'STORNO' 1220 35490 3,44 744dgfgdcsrt7 SQL*Net message from dblink select ... 920 35490 2,59 Backup: MML write backup piece 870 35490 2,45 fkc803rs19shg direct path read temp INSERT INTO CHARGES_MAST WITH CHARGES_TO_DEAL AS ( SELECT ROWNUM RN, T.*, F.MASTER_ADMIN_SYSTEM FROM CHARGES T, FEE_CODES F WHERE T.SVID_MEID IS NOT NULL AND T.SVID_MEID = F.CHARGE_ID(+) AND NVL(T.VALID_TO, DATE '9999-12-31') > DATE '2011-07-01' - 1 ), CHARGE_MASTERED AS ( SELECT MIN(RN) OVER (PARTITION BY MASTER_CUSTOMER_NUMBER, SVID_MEID) MASTER_CHARGE_ID, RANK() OVER (PARTITION BY MASTER_CUSTOM 750 35490 2,11 5uvfbvrzvqaah db file sequential read insert into DWH2.FACT_SAP_RMCA_DUNNING partition( P_201806) 600 35490 1,69 b2d53zwcv077h insert /*+APPEND into ETL_MHC.L_1INST_SOPF00 (SOCPNR, SOSONR, SODPSO, SOSVID, SOMEID, SOSVQT, SOOCC, SOFOCC, SODOID, SOBLNO, SOBLNA, SOFLIX, SOFLPO, SOSOST, SOSODT, SOSSDT, SOSTDT, SOSFDT, SOFNDT, SOFNRS, SOBIST, SOBIDT, SOSLID, SOSLME, SOSCID, SOMEDA, SOSTRA, SOSTRN, SOMNTA, SOMNTN, SOTRMA, SOTRMN, SOCRCY, SOCRMM, SOCRDD, SOCRTM, SOCRUS, SOUPCY, SOUPMM, SOUPDD, SOUPTM, SOUPUS, SOLOCK, SOSTS, SO */ -- Not bound SQLs -- Check if they wait for "latch free" event. -- That may be result cache related if much sleep is encountered on "Result Cache: RC Latch" select sum(10) secs, sum(sum(10)) over () as totalsec, round((sum(10)/ sum(sum(10)) over ()) *100,2) percento, force_matching_signature, count(distinct sql_id) cnt_sql_id, max(sql_id) max_sql_id, event from dba_hist_active_sess_history where sample_time between to_date('20180618 08:00','YYYYMMDD HH24:MI') and to_date('20180618 09:00','YYYYMMDD HH24:MI') group by force_matching_signature, event order by 1 desc ; -- I dont' know yet how to use this info SET SERVEROUTPUT ON EXECUTE DBMS_RESULT_CACHE.MEMORY_REPORT; COLUMN name FORMAT a20 SELECT name, value FROM V$RESULT_CACHE_STATISTICS; /* -- FROM NOT ACTIVE PERIOD EXECUTE DBMS_RESULT_CACHE.MEMORY_REPORT; R e s u l t C a c h e M e m o r y R e p o r t [Parameters] Block Size = 1K bytes Maximum Cache Size = 482368K bytes (482368 blocks) Maximum Result Size = 24118K bytes (24118 blocks) [Memory] Total Memory = 495178784 bytes [4.854% of the Shared Pool] ... Fixed Memory = 22480 bytes [0.000% of the Shared Pool] ... Dynamic Memory = 495156304 bytes [4.854% of the Shared Pool] ....... Overhead = 1211472 bytes ....... Cache Memory = 482368K bytes (482368 blocks) ........... Unused Memory = 0 blocks ........... Used Memory = 482368 blocks ............... Dependencies = 109 blocks (109 count) ............... Results = 482259 blocks ................... SQL = 7 blocks (7 count) ................... PLSQL = 482252 blocks (482252 count) SELECT name, value FROM V$RESULT_CACHE_STATISTICS; Block Size (Bytes) 1024 Block Count Maximum 482368 Block Count Current 482368 Result Size Maximum (Blocks) 24118 Create Count Success 4836881 Create Count Failure 63 Find Count 654947113 Invalidation Count 1429985 Delete Count Invalid 1432561 Delete Count Valid 2922061 Hash Chain Length 106-128 Find Copy Count 655031820 Latch (Share) 0 -- FROM ACTIVE PERIOD EXECUTE DBMS_RESULT_CACHE.MEMORY_REPORT; R e s u l t C a c h e M e m o r y R e p o r t [Parameters] Block Size = 1K bytes Maximum Cache Size = 482368K bytes (482368 blocks) Maximum Result Size = 24118K bytes (24118 blocks) [Memory] Total Memory = 495178784 bytes [4.854% of the Shared Pool] ... Fixed Memory = 22480 bytes [0.000% of the Shared Pool] ... Dynamic Memory = 495156304 bytes [4.854% of the Shared Pool] ....... Overhead = 1211472 bytes ....... Cache Memory = 482368K bytes (482368 blocks) ........... Unused Memory = 0 blocks ........... Used Memory = 482368 blocks ............... Dependencies = 109 blocks (109 count) ............... Results = 482259 blocks ................... SQL = 1 blocks (1 count) ................... PLSQL = 482258 blocks (482258 count) SELECT name, value FROM V$RESULT_CACHE_STATISTICS; Block Size (Bytes) 1024 Block Count Maximum 482368 Block Count Current 482368 Result Size Maximum (Blocks) 24118 Create Count Success 5153557 Create Count Failure 63 Find Count 684243946 Invalidation Count 1506350 Delete Count Invalid 1508946 Delete Count Valid 3162352 Hash Chain Length 106-128 Find Copy Count 684331346 Latch (Share) 0 A kรถvetkezล‘ket szลฑrtem le a mai รฉs a tegnap dรฉlutรกni adatok รถsszehasonlรญtรกsรกval. - A szรกmok szinte semmit nem vรกltoztak - A cache tele van - A cache tartalma szinte 100%-ban PL/SQL result cache (รฉs nem sima SQL result) */
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; /* CUSTOMERS */ CREATE TABLE `Customers`( customer_id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(20) NOT NULL, last_name VARCHAR(20) NOT NULL, PRIMARY KEY (customer_id) ); /* DEPARTMENTS*/ CREATE TABLE `Departments`( department_id INT NOT NULL AUTO_INCREMENT, department_name VARCHAR(100) NULL, overhead_costs DECIMAL(20,2) NULL, PRIMARY KEY (department_id) ); /* PRODUCTS */ CREATE TABLE `Products`( item_id INT NOT NULL AUTO_INCREMENT, department_id INT NOT NULL, product_name VARCHAR(100) NULL, cost DECIMAL(20,2) NULL, list_price DECIMAL(20,2) NULL, stock_quantity INT NOT NULL, PRIMARY KEY (item_id), FOREIGN KEY (department_id) REFERENCES Departments(department_id) ); /* ORDERS */ CREATE TABLE `Orders`( order_id INT NOT NULL AUTO_INCREMENT, customer_id INT NOT NULL, item_id INT NOT NULL, quantity INT NOT NULL, PRIMARY KEY (order_id), FOREIGN KEY (item_id) REFERENCES Products(item_id), FOREIGN KEY (customer_id) REFERENCES Customers(customer_id) ); /* DATA POPULATION */ INSERT INTO Departments VALUES (NULL, 'Electronics', 10000); INSERT INTO Departments VALUES (NULL, 'Clothing', 3321); INSERT INTO Departments VALUES (NULL, 'Books', 1992); INSERT INTO Departments VALUES (NULL, 'Home & Beauty', 3291); INSERT INTO Departments VALUES (NULL, 'Sports', 222); INSERT INTO Products VALUES (NULL, 1, 'iPad', 10, 30, 383); INSERT INTO Products VALUES (NULL, 1, 'Dell Monitor', 140, 400, 1); INSERT INTO Products VALUES (NULL, 1, 'Zune', 23, 111, 343); INSERT INTO Products VALUES (NULL, 1, 'Vacuum Cleaner', 99, 200, 122); INSERT INTO Products VALUES (NULL, 1, 'Powerbank', 44, 310, 45); INSERT INTO Products VALUES (NULL, 2, 'Black T-Shirt', 2, 6, 329); INSERT INTO Products VALUES (NULL, 2, 'Green Turtleneck', 23, 99, 5); INSERT INTO Products VALUES (NULL, 2, 'Ugly Pants', 52, 94, 232); INSERT INTO Products VALUES (NULL, 2, 'Used Overalls', 36, 50, 3); INSERT INTO Products VALUES (NULL, 2, 'Boxers', 2, 12, 33); INSERT INTO Products VALUES (NULL, 3, 'A Mystery Novel', 32, 65, 3); INSERT INTO Products VALUES (NULL, 3, 'Huckleberry Finn', 2, 34, 1); INSERT INTO Products VALUES (NULL, 3, '1984', 4, 53, 323); INSERT INTO Products VALUES (NULL, 3, 'Animal Farm', 12, 34, 232); INSERT INTO Products VALUES (NULL, 3, 'The Bible', 23, 122, 131); INSERT INTO Products VALUES (NULL, 4, 'Face Cleaner', 4, 9, 131); INSERT INTO Products VALUES (NULL, 4, 'Toothpaste', 3, 29, 443); INSERT INTO Products VALUES (NULL, 4, 'Toothbrush', 14, 70, 24); INSERT INTO Products VALUES (NULL, 4, 'Shampoo', 11, 22, 412); INSERT INTO Products VALUES (NULL, 4, 'Shower Gel', 3, 44, 33); INSERT INTO Products VALUES (NULL, 5, 'Glock Handgun', 53, 999, 3); INSERT INTO Products VALUES (NULL, 5, 'Assault Rifle', 333, 1200, 333); INSERT INTO Products VALUES (NULL, 5, 'Bolt-action Shotgun', 788, 2300, 735); INSERT INTO Products VALUES (NULL, 5, 'Ping-pong Ball', 11, 30, 354); INSERT INTO Products VALUES (NULL, 5, 'Golf Stick', 31, 78, 312); INSERT INTO Customers VALUES (NULL, 'Adam', 'Williams'); INSERT INTO Customers VALUES (NULL, 'Borat', 'Kaley'); INSERT INTO Customers VALUES (NULL, 'Corey', 'Maleris'); INSERT INTO Customers VALUES (NULL, 'Derek', 'Grant'); INSERT INTO Customers VALUES (NULL, 'Ella', 'Fitzgerald'); INSERT INTO Orders VALUES (NULL, 1, 4, 31); INSERT INTO Orders VALUES (NULL, 2, 2, 122); INSERT INTO Orders VALUES (NULL, 3, 3, 53); INSERT INTO Orders VALUES (NULL, 4, 9, 43); INSERT INTO Orders VALUES (NULL, 5, 14, 53); INSERT INTO Orders VALUES (NULL, 3, 2, 143); INSERT INTO Orders VALUES (NULL, 1, 5, 133); INSERT INTO Orders VALUES (NULL, 2, 8, 131); INSERT INTO Orders VALUES (NULL, 3, 18, 12); INSERT INTO Orders VALUES (NULL, 4, 21, 39); INSERT INTO Orders VALUES (NULL, 5, 11, 25); INSERT INTO Orders VALUES (NULL, 2, 7, 63); INSERT INTO Orders VALUES (NULL, 1, 15, 5); INSERT INTO Orders VALUES (NULL, 4, 24, 11); INSERT INTO Orders VALUES (NULL, 2, 23, 12);
Rem Rem $Header: plitblm.sql 21-mar-96.20:31:02 csexton Exp $ Rem Rem plitblm.sql Rem Rem Copyright (c) Oracle Corporation 1995, 1996. All Rights Reserved. Rem Rem NAME Rem plitblm.sql - package PLITBLM Rem Rem DESCRIPTION Rem PL/sql Index-TaBLe Methods Rem Package for index-table operations. This package must Rem be loaded by catproc.sql script. Rem Rem NOTES Rem This file needs to be kept in sync with its .pls version Rem (icd/plitblm.pls) currently. We hope to soon eliminate Rem this dependency once we automate the generation of .pls Rem version. Rem Rem MODIFIED (MM/DD/YY) Rem csexton 03/21/96 - additions for table of any feature Rem kmuthukk 03/21/95 - change method names Rem kmuthukk 03/07/95 - PLITBLM package .sql file Rem kmuthukk 03/06/95 - Created Rem drop public synonym plitblm; drop package sys.plitblm; create or replace package sys.plitblm is subtype key_type is binary_integer; function count return key_type; pragma interface(c, count); function first return key_type; pragma interface(c, first); function last return key_type; pragma interface(c, last); function exists (i key_type) return boolean; pragma interface(c, exists); function prior (i key_type) return key_type; pragma interface(c, prior); function next (i key_type) return key_type; pragma interface(c, next); procedure delete; pragma interface(c, delete); procedure delete (i key_type); pragma interface(c, delete); procedure delete (i key_type, j key_type); pragma interface(c, delete); -- This type name and the package name are recorded in pls/scmfst.c, and a -- symbolic form specified in pls/scmfst.h; Changes to either name must be -- reflected in the .c file, at least. type table_of_any is table of char index by binary_integer; end plitblm; / create public synonym plitblm for sys.plitblm; grant execute on sys.plitblm to public;
update HtmlLabelIndex set indexdesc='่ขซ่ฟ”่˜ไบบ' where id=16109 / update HtmlLabelInfo set labelname='่ขซ่ฟ”่˜ไบบ' where indexid=16109 and languageid=7 / update HtmlLabelIndex set indexdesc='่ฟ”่˜ๅผ€ๅง‹ๆ—ฅๆœŸ' where id=16110 / update HtmlLabelInfo set labelname='่ฟ”่˜ๅผ€ๅง‹ๆ—ฅๆœŸ' where indexid=16110 and languageid=7 / update HtmlLabelIndex set indexdesc='่ฟ”่˜็ป“ๆŸๆ—ฅๆœŸ' where id=16111 / update HtmlLabelInfo set labelname='่ฟ”่˜็ป“ๆŸๆ—ฅๆœŸ' where indexid=16111 and languageid=7 / update HtmlLabelIndex set indexdesc='่ฟ”่˜ๅŽŸๅ› ' where id=16112 / update HtmlLabelInfo set labelname='่ฟ”่˜ๅŽŸๅ› ' where indexid=16112 and languageid=7 / update HtmlLabelIndex set indexdesc='่ฟ”่˜ๅˆๅŒ' where id=16113 / update HtmlLabelInfo set labelname='่ฟ”่˜ๅˆๅŒ' where indexid=16113 and languageid=7 / update HtmlLabelIndex set indexdesc='่ฟ”่˜้€š็Ÿฅไบบ' where id=16114 / update HtmlLabelInfo set labelname='่ฟ”่˜้€š็Ÿฅไบบ' where indexid=16114 and languageid=7 /
-- migrate:up CREATE TABLE stripe.payouts ( id text primary key, object text, date text, type text, amount bigint, method text, status text, created integer, updated integer, currency text, livemode boolean, metadata jsonb, automatic boolean, recipient text, description text, destination text, source_type text, arrival_date text, bank_account jsonb, failure_code text, transfer_group text, amount_reversed bigint, failure_message text, source_transaction text, balance_transaction text, statement_descriptor text, statement_description text, failure_balance_transaction text ); -- migrate:down drop table "stripe"."payouts";
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 21, 2018 at 07:32 AM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `tyre_shop` -- CREATE DATABASE IF NOT EXISTS `tyre_shop` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `tyre_shop`; -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `Id` int(11) NOT NULL, `password` int(11) NOT NULL, `name` varchar(100) NOT NULL, `address` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `mobile` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`Id`, `password`, `name`, `address`, `email`, `mobile`) VALUES (12, 12, '1', '1', '1', 1); -- -------------------------------------------------------- -- -- Table structure for table `billing` -- CREATE TABLE `billing` ( `billno` int(11) NOT NULL, `customer` varchar(100) NOT NULL, `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `quantity` int(11) NOT NULL, `code` varchar(100) NOT NULL, `price` int(11) NOT NULL, `brand` varchar(100) NOT NULL, `discount` int(11) NOT NULL, `net_price` varchar(100) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `billing` -- INSERT INTO `billing` (`billno`, `customer`, `date`, `quantity`, `code`, `price`, `brand`, `discount`, `net_price`) VALUES (1, 'SACHITH VIDURANGA', '2018-09-13 22:28:31', 10, 'MRF1009018TL', 1000, 'MRF', 10, '0'), (2, 'Piyumi', '2018-09-16 14:24:34', 10, 'MRF1009018TL', 10000, 'MRF', 10, '0'), (3, 'tr dg', '2018-09-16 14:30:33', 10, 'fdgsfgdf', 1000, 'fdgdsg', 10, ''), (4, 'sachi', '2018-09-16 14:35:44', 10, 'vidu', 2000, 'gtc', 10, ''), (5, 'rthgf', '2018-09-16 14:39:17', 10, 'fdd', 1000, 'fdgf', 10, '9000'), (6, 'gffd', '2018-09-16 14:41:31', 1, 'fgdxg', 20000, 'fgv', 20, '16000'); -- -------------------------------------------------------- -- -- Table structure for table `price_list` -- CREATE TABLE `price_list` ( `tyre_code` varchar(20) NOT NULL, `tyre_size` varchar(20) NOT NULL, `brand` varchar(20) NOT NULL, `price` int(11) DEFAULT NULL, `discount` int(11) DEFAULT NULL, `dealer` varchar(20) NOT NULL, `contact` varchar(100) NOT NULL, `balance` int(11) DEFAULT NULL, `invoice` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `price_list` -- INSERT INTO `price_list` (`tyre_code`, `tyre_size`, `brand`, `price`, `discount`, `dealer`, `contact`, `balance`, `invoice`) VALUES ('MRF1009018TL', '100-90-18', 'MRF', 10000, 10, 'SAMAN', '0702108735', 212, 123); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `Id` int(11) NOT NULL, `password` int(11) NOT NULL, `name` varchar(100) NOT NULL, `mobile` int(11) NOT NULL, `address` varchar(100) NOT NULL, `email` varchar(100) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`Id`, `password`, `name`, `mobile`, `address`, `email`) VALUES (1, 1, '1', 1, '1', '1'); -- -- Indexes for dumped tables -- -- -- Indexes for table `price_list` -- ALTER TABLE `price_list` ADD PRIMARY KEY (`tyre_code`); 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 */;
create table if not exists address( zipcode char(5) null, sido varchar(20) null, sigungu varchar(20) null, doro varchar(20) null, building1 int(5) null, building2 int(5) null ); SELECT clnt_code, clnt_name, clnt_addr, clnt_tel, clnt_isExist FROM client where clnt_isExist= true;
update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'common.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'entitylink.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'identitylink.schema.version'; alter table ACT_RU_JOB add ELEMENT_ID_ NVARCHAR2(255); alter table ACT_RU_JOB add ELEMENT_NAME_ NVARCHAR2(255); alter table ACT_RU_TIMER_JOB add ELEMENT_ID_ NVARCHAR2(255); alter table ACT_RU_TIMER_JOB add ELEMENT_NAME_ NVARCHAR2(255); alter table ACT_RU_SUSPENDED_JOB add ELEMENT_ID_ NVARCHAR2(255); alter table ACT_RU_SUSPENDED_JOB add ELEMENT_NAME_ NVARCHAR2(255); alter table ACT_RU_DEADLETTER_JOB add ELEMENT_ID_ NVARCHAR2(255); alter table ACT_RU_DEADLETTER_JOB add ELEMENT_NAME_ NVARCHAR2(255); update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'job.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'task.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'variable.schema.version'; alter table ACT_RU_EVENT_SUBSCR add SUB_SCOPE_ID_ NVARCHAR2(64); alter table ACT_RU_EVENT_SUBSCR add SCOPE_ID_ NVARCHAR2(64); alter table ACT_RU_EVENT_SUBSCR add SCOPE_DEFINITION_ID_ NVARCHAR2(64); alter table ACT_RU_EVENT_SUBSCR add SCOPE_TYPE_ NVARCHAR2(64); insert into ACT_GE_PROPERTY values ('eventsubscription.schema.version', '6.5.0.0', 1); update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'eventsubscription.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'schema.version'; update ACT_ID_PROPERTY set VALUE_ = '6.5.0.1' where NAME_ = 'schema.version'; UPDATE ACT_APP_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = to_timestamp('2019-06-02 18:34:28.479', 'YYYY-MM-DD HH24:MI:SS.FF') WHERE ID = 1 AND LOCKED = 0; UPDATE ACT_APP_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1; UPDATE ACT_CMMN_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = to_timestamp('2019-06-02 18:34:29.887', 'YYYY-MM-DD HH24:MI:SS.FF') WHERE ID = 1 AND LOCKED = 0; UPDATE ACT_CMMN_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1; UPDATE ACT_DMN_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = to_timestamp('2019-06-02 18:34:30.824', 'YYYY-MM-DD HH24:MI:SS.FF') WHERE ID = 1 AND LOCKED = 0; UPDATE ACT_DMN_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1; UPDATE ACT_FO_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = to_timestamp('2019-06-02 18:34:31.598', 'YYYY-MM-DD HH24:MI:SS.FF') WHERE ID = 1 AND LOCKED = 0; UPDATE ACT_FO_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1; UPDATE ACT_CO_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = to_timestamp('2019-06-02 18:34:32.396', 'YYYY-MM-DD HH24:MI:SS.FF') WHERE ID = 1 AND LOCKED = 0; UPDATE ACT_CO_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;
ALTER TABLE workflow_agent ADD agenttype char(1) / ALTER TABLE workflow_agent ADD operatorid int / ALTER TABLE workflow_agent ADD operatordate char(10) / ALTER TABLE workflow_agent ADD operatortime char(8) / INSERT INTO HtmlLabelIndex values(17860,'ๆ‰น้‡ๅ›žๆ”ถ') / INSERT INTO HtmlLabelInfo VALUES(17860,'ๆ‰น้‡ๅ›žๆ”ถ',7) / INSERT INTO HtmlLabelInfo VALUES(17860,'Countermand Workflow Agent',8) / /*ๅฏน่€ๆ•ฐๆฎ็š„ๅค„็†*/ update workflow_agent set agenttype = 1, operatorid = workflow_agent.beagenterid / CREATE OR REPLACE PROCEDURE Workflow_select_foragent (userid_1 INTEGER, usertype_1 INTEGER, flag OUT INTEGER, msg OUT VARCHAR2, thecursor IN OUT cursor_define.weavercursor) AS CURRENT_DATE CHAR(10); current_time CHAR(8); BEGIN SELECT SUBSTR(TO_CHAR(SYSDATE, 'hh24:mm:ss'), 1, 8) INTO current_time FROM dual; SELECT SUBSTR(TO_CHAR(SYSDATE, 'yyyy-mm-dd'), 1, 10) INTO CURRENT_DATE FROM dual; OPEN thecursor FOR SELECT DISTINCT a.workflowid FROM workflow_createrlist a WHERE (a.isagenter = 0 OR a.isagenter IS NULL) UNION SELECT DISTINCT a.workflowid FROM workflow_createrlist a, workflow_agent b WHERE a.isagenter = 1 AND a.workflowid = b.workflowid AND b.iscreateagenter = 1 AND ( (b.begindate IS NULL AND b.enddate IS NULL) OR (b.begindate IS NOT NULL AND b.enddate IS NULL AND b.begindate < CURRENT_DATE ) OR (b.begindate IS NOT NULL AND b.enddate IS NULL AND b.begindate = CURRENT_DATE AND b.begintime IS NULL) OR (b.begindate IS NOT NULL AND b.enddate IS NULL AND b.begindate = CURRENT_DATE AND b.begintime IS NOT NULL AND b.begintime <= current_time) OR (b.enddate IS NOT NULL AND b.begindate IS NULL AND b.enddate > CURRENT_DATE ) OR (b.enddate IS NOT NULL AND b.begindate IS NULL AND b.enddate = CURRENT_DATE AND b.endtime IS NULL ) OR (b.enddate IS NOT NULL AND b.begindate IS NULL AND b.enddate = CURRENT_DATE AND b.endtime IS NOT NULL AND b.endtime >= current_time) OR (b.begindate IS NOT NULL AND b.enddate IS NOT NULL AND b.begindate <= CURRENT_DATE AND CURRENT_DATE <= b.enddate AND b.begintime IS NULL AND b.endtime IS NULL) OR (b.begindate IS NOT NULL AND b.enddate IS NOT NULL AND b.begindate <= CURRENT_DATE AND CURRENT_DATE <= b.enddate AND b.begintime IS NOT NULL AND b.endtime IS NULL AND b.begintime <= current_time) OR (b.begindate IS NOT NULL AND b.enddate IS NOT NULL AND b.begindate <= CURRENT_DATE AND CURRENT_DATE <= b.enddate AND b.begintime IS NULL AND b.endtime IS NOT NULL AND b.endtime >= current_time) OR (b.begindate IS NOT NULL AND b.enddate IS NOT NULL AND b.begindate <= CURRENT_DATE AND CURRENT_DATE <= b.enddate AND b.begintime IS NOT NULL AND b.endtime IS NOT NULL AND b.begintime <= current_time AND current_time <= b.endtime) ); END; /
TRUNCATE TABLE user_role CASCADE; TRUNCATE TABLE usr CASCADE;
SET SERVEROUTPUT ON DECLARE v_exist NUMBER := 0; BEGIN BEGIN SELECT 1 INTO v_exist FROM cpi.giis_reports WHERE report_id = 'BONDS_ENDT'; IF v_exist = 1 THEN DBMS_OUTPUT.put_line ('BONDS_ENDT already exists.'); END IF; EXCEPTION WHEN NO_DATA_FOUND THEN INSERT INTO giis_reports (report_id, report_title, line_cd, destype, desname, desformat, paramform, copies, report_mode, orientation, add_source) VALUES('BONDS_ENDT', 'Surety Bond Endorsement Report', 'SU', 'PRINTER', 'C:\bonds_endt.txt', 'bonds_endt', 'NO', 0, 'BITMAP', 'Default', 'P'); COMMIT; DBMS_OUTPUT.put_line ('BONDS_ENDT inserted.'); END; END;
CREATE TABLE `mkt_feed_collection_membership` ( `id` int(11) unsigned AUTO_INCREMENT NOT NULL PRIMARY KEY, `created` datetime NOT NULL, `modified` datetime NOT NULL, `app_id` int(11) UNSIGNED NOT NULL, `order` smallint, `obj_id` int(11) UNSIGNED NOT NULL, UNIQUE (`obj_id`, `app_id`) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE TABLE `mkt_feed_collection` ( `id` int(11) unsigned AUTO_INCREMENT NOT NULL PRIMARY KEY, `created` datetime NOT NULL, `modified` datetime NOT NULL, `slug` varchar(30) NOT NULL UNIQUE, `type` varchar(30) NOT NULL, `color` varchar(7) NOT NULL, `name` int(11) UNSIGNED NULL UNIQUE, `description` int(11) UNSIGNED NULL UNIQUE ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER TABLE `mkt_feed_collection` ADD CONSTRAINT `mkt_feed_collection_description` FOREIGN KEY (`description`) REFERENCES `translations` (`id`); ALTER TABLE `mkt_feed_collection_membership` ADD CONSTRAINT `mkt_feed_collection_membership_app_id` FOREIGN KEY (`app_id`) REFERENCES `addons` (`id`); ALTER TABLE `mkt_feed_collection_membership` ADD CONSTRAINT `mkt_feed_collection_membership_obj_id` FOREIGN KEY (`obj_id`) REFERENCES `mkt_feed_collection` (`id`); ALTER TABLE `mkt_feed_item` ADD `collection_id` int(11) UNSIGNED NULL; ALTER TABLE `mkt_feed_item` ADD CONSTRAINT `mkt_feed_item_collection_id` FOREIGN KEY (`collection_id`) REFERENCES `mkt_feed_collection` (`id`);
create table if not exists gguser( id text unique primary key, email text, password text, username text, location text, emailConfirmation text, confirmed boolean, resetPasswordToken text, resetPasswordExp text ); create table if not exists ngo( id text unique primary key references gguser, emailTemplate text, description text, calLink text, notice text, category int, minLimit bigint, maxLimit bigint ); create table if not exists donor( id text unique primary key references gguser, age int, gender text ); create table if not exists searches( id text references gguser, term text ); create table if not exists subscriptions( donorId text references donor, ngoId text references ngo ); create table if not exists donation( id text unique primary key, donorId text references donor, ngoId text references ngo, amount bigint, message text, anonymous boolean, type smallint, honoredUserId text, honoredUserName text, created timestamp ); create table if not exists recurringdonation( donationId text references donation, next timestamp, frequency int ); create table if not exists userips( userId text references gguser, ip text ); create table if not exists paymentinfo( userId text references gguser, stripeCustomerId text ); create table if not exists newsletters( id text primary key, ngoId text references gguser, newsletter text, created date );
1. dasar subquery 2. subquery dengan operator komparasi 3. contoh pengunaan subquery update,delete,select 4. subquery dengan in dan not in 5. subquery terikat 6. subquery didalam field 7. subquery di dalam from 8. sub query exists dan not exists ------------------------------------ -- db dms 2 select distinct s.spk_code, cars_id, ( select color from simcars s2 where car_id = s.cars_id) from simspk s where cars_id in( select car_id from simcars where car_id = s.cars_id); select s.spk_code, s3.cars_id, s2.color from simspk s inner join simcars s2 on s.car_id = s2.cars_id inner join simcars s3 on s3.cars_id = s2.cars_id; -- ---------------------------------- db classic models -- siapa karyawan yang melapor ke murphy diane show tables; desc employees; select * from employees; select concat(firstname, ' ', lastname) as nama from employees where reportsTo in ( select employeeNumber from employees where firstName = 'Diane'); -- ---------------------------------- -- tampilkan nama product classic cars yang harga belinya di atas rata rata show tables; select * from products; select productName, buyprice from products where buyprice > ( select avg(buyPrice) from products);
DROP TABLE IF EXISTS diff; CREATE TABLE diff ( id int(11) NOT NULL AUTO_INCREMENT COMMENT '่‡ชๅขžไธป้”ฎ', owner_name varchar(20) NOT NULL DEFAULT '' COMMENT 'ๆ‰€ๆœ‰่€…ๅง“ๅ', diff_time timestamp NOT NULL DEFAULT '2000-01-01 00:00:00' COMMENT 'ๅฏนๆฏ”ๆ—ถ้—ด', source_file_content varchar(1024) NOT NULL DEFAULT '' COMMENT 'ๆบๆ–‡ไปถๅ†…ๅฎน', target_file_content varchar(1024) NOT NULL DEFAULT '' COMMENT '็›ฎๆ ‡ๆ–‡ไปถๅ†…ๅฎน', diff_content varchar(2560) NOT NULL DEFAULT '' COMMENT 'ๅทฎๅผ‚ๅ†…ๅฎน', PRIMARY KEY (id), INDEX idx_owner_name(owner_name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='ๆ–‡ไปถๅฏนๆฏ”่กจ';
INSERT INTO `musiclist_user` VALUES (1, 'ๆˆ‘ๅ–œๆฌข็š„้Ÿณไน', 1, '2020-02-02 17:03:51', NULL, NULL, NULL, 0, 0); INSERT INTO `musiclist_user` VALUES (1, 'Z_ce็š„ๅนดๅบฆๆญŒๅ•', 2, '2020-02-02 17:03:54', NULL, NULL, NULL, 1, 1); INSERT INTO `musiclist_user` VALUES (1, 'ๆ—ฅ็ณป', 3, '2020-02-02 17:03:57', NULL, NULL, NULL, 1, 1); INSERT INTO `musiclist_user` VALUES (1, 'ๆฌง็พŽ', 4, '2020-02-02 17:16:12', NULL, NULL, NULL, 1, 1);
CREATE DATABASE IF NOT EXISTS hva_bigdata_indv_assignment; USE hva_bigdata_indv_assignment; CREATE TABLE IF NOT EXISTS `movielens_tmdb_imdb` ( `id` INT PRIMARY KEY NOT NULL, `tmdb_id` INT NOT NULL, `imdb_id` INT NOT NULL ); CREATE TABLE IF NOT EXISTS `tmdb_genres` ( `id` INT PRIMARY KEY NOT NULL, `name` VARCHAR(100) NOT NULL ); CREATE TABLE IF NOT EXISTS `tmdb_reviews` ( `id` INT PRIMARY KEY AUTO_INCREMENT NOT NULL, `` ); CREATE TABLE IF NOT EXISTS `tmdb_movies`( `id` INT AUTO_INCREMENT PRIMARY KEY NOT NULL, `tmdb_id` INT NOT NULL, `title` VARCHAR(255) NOT NULL, `release_date` DATE, `revenue` INT, `budget` INT, `runtime` INT, `description` TEXT, `vote_avg` FLOAT, `vote_cnt` INT, `status` VARCHAR(100), `is_adult` BOOL, `backdrop_uri` TEXT, `orig_lang` VARCHAR(5), `pop` FLOAT, `production_company` VARCHAR(255) );
-- Revoke all privileges revoke all privileges on *.* from 'pwdss_app_write'@'localhost'; -- Grant privileges for selecting, updating and inserting grant select, update, insert on pwdss.* to 'pwdss_app_write'@'localhost'; -- Flush privileges flush privileges;
--ๆŸฅ่ฏขๆ‰€ๆœ‰่กจ select * from user_tables; --็”จๆˆทไฟกๆฏ select * from t_cms_user; --ๅฎขๆˆทไฟกๆฏ select * from t_cms_customer; --ไบงๅ“็ฎก็† select * from T_PRODUCT_MANAGE; --ไบงๅ“่ฎก่ดน่ง„ๅˆ™ select * from T_PRODUCT_CHARGE;
/* Subconsultas Son consultas que se ejecutan dentro de otras consultas */ /* Consulta para saber quรฉ usuarios tienen publicaciones*/ SELECT * FROM usuarios WHERE id IN(SELECT usuario_id FROM entradas); /* DESGLOCE DE LA SENTENCIA*/ SELECT usuario_id FROM entradas; /*LO QUE ESTร ENTRE PARENTESIS ES LO QUE DEVUELVE LA SENTENCIA DE ARRIBITA*/ SELECT * FROM usuarios WHERE id IN (1, 1, 1, 2, 2, 2, 3, 3, 3); /* Consulta equivalente con WHERE */ SELECT * FROM usuarios WHERE id = 1 AND id = 2 AND id = 3; /* Obtener los usuarios que tengan alguna entrada que el tรญtulo contenga GTA */ SELECT nombre, apellidos FROM usuarios WHERE id IN( SELECT usuario_id FROM entradas WHERE titulo LIKE '%GTA%' ); /*Obtener todas las categorรญas de acciรณn utilizando su nombre */ SELECT categoria_id, titulo FROM entradas WHERE categoria_id IN( SELECT id FROM categorias WHERE nombre = 'Deportes' ); /* Obtener todas las categorias sin entradas */ SELECT * FROM categorias WHERE id NOT IN( SELECT categoria_id FROM entradas ); /* Mostrar usuarios que crearon una entrada en un miรฉrcoles */ SELECT * FROM usuarios WHERE id IN( SELECT usuario_id FROM entradas WHERE DAYOFWEEK(fecha) = 4 );
SELECT --[DRA].[RID] as RID, [STU].[GR] as [userGrade], [DRA].[ST] as [userType], [DRI].[SR] AS [Serial Number], [DRI].[BC] AS [BarCode], CONVERT(VARCHAR(10),[DRA].[DT],101) AS [Issued], CONVERT(VARCHAR(10),[DRA].[RD],101) AS [Returned] FROM (SELECT STU.* FROM STU WHERE DEL = 0 and TG = '' ) STU RIGHT JOIN ((SELECT [DRA].* FROM DRA WHERE DEL = 0) DRA LEFT JOIN (SELECT [DRI].* FROM DRI WHERE DEL = 0) DRI ON [DRI].[RID] = [DRA].[RID] AND [DRI].[RIN] = [DRA].[RIN]) ON [STU].[ID] = [DRA].[ID] WHERE DRA.DD IS NULL AND DRA.RD IS NUll --AND DRA.RID IN (1,3,4,6) AND DRA.RID IN (1) AND DRI.DEL <> 1 AND convert(date, DRA.DT) >= DATEADD (day, -1, convert(date,GETDATE()))
{{ dbt_utils.date_spine( datepart="day", start_date="cast('2021-01-01' as date)", end_date="dateadd(week, 1, current_date)" ) }}
-- Crear BD CREATE DATABASE to_do_app; -- -- COPIAR A LA BASE DE DATOS despuรฉs de Realizar las migraciones INSERT INTO `roles` (`id`, `nombre`, `descripcion`, `condicion`) VALUES (NULL, 'Usuario', 'Usuario de la aplicaciรณn', 1); INSERT INTO `personas` (`id`, `nombre`, `tipo_documento`, `num_documento`, `direccion`, `telefono`, `email`, `created_at`, `updated_at`) VALUES (1, 'Julian Avila', 'CC', '14798947', 'calle 24 # 35-67', '3177893544', 'avilatas@gmail.com', NULL, NULL); INSERT INTO `users` (`id`, `usuario`, `password`, `condicion`, `id_rol`, `remember_token`) VALUES (1, 'jeat', '$2y$12$iicnyde.EBiJbB9GjjJ20eWDEIpx3YTX8F8FBW39CofKwNpVL1y/i', 1, 1, 'jEv7lKMBimkVMWw5G19o2a4CKn8a2ZTUgNiA23hqiAuajwp1aQouCqOUC3Cs'); INSERT INTO `categorias` (`id`, `nombre`, `condicion`, `created_at`, `updated_at`) VALUES (NULL, 'Entretenimiento', 1, NULL, NULL), (NULL, 'Trabajo', 1, NULL, NULL), (NULL, 'Salud', 1, NULL, NULL), (NULL, 'Viajes', 1, NULL, NULL), (NULL, 'Estudio', 1, NULL, NULL), (NULL, 'Compras', 1, NULL, NULL); INSERT INTO `notas` (`id`, `id_categoria`, `descripcion`, `created_at`, `updated_at`) VALUES (NULL, '2', 'Prueba Tรฉcnica', NULL, NULL);
๏ปฟCREATE FUNCTION [Transform].[fnDimEmployeeVersions] () RETURNS TABLE AS RETURN ( SELECT [EmployeeKey] ,[EmployeeCode] ,[StartDate] ,[EndDate] ,ROW_NUMBER() OVER( PARTITION BY [EmployeeCode] ORDER BY [StartDate] ) AS 'Version' FROM [Model].[DimEmployee] WITH (NOLOCK) );
-- APPOINTMENT ALTER TABLE `appointment` CHANGE `appointment_id` `appointment_id` MEDIUMINT( 8 ) UNSIGNED NOT NULL AUTO_INCREMENT; ALTER TABLE `appointment` ADD UNIQUE ( `employee_id` , `user_id` , `time_slot_id` , `procedure_id` ); ALTER TABLE `beauty_parlour`.`appointment` DROP INDEX `employee_id` , ADD UNIQUE `unique_appointment` ( `employee_id` , `user_id` , `time_slot_id` , `procedure_id` ); -- EMPLOYEE ALTER TABLE `employee` CHANGE `employee_id` `employee_id` TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT; ALTER TABLE `employee` ADD UNIQUE ( `name` , `last_name` , `tel_number` ); ALTER TABLE `beauty_parlour`.`employee` DROP INDEX `name` , ADD UNIQUE `unique_employee` ( `name` , `last_name` , `tel_number` ); -- PROCEDURE ALTER TABLE `procedure` CHANGE `procedure_id` `procedure_id` TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT; ALTER TABLE `procedure` ADD UNIQUE ( `name` , `length` , `employee_id` ); ALTER TABLE `beauty_parlour`.`procedure` DROP INDEX `name` , ADD UNIQUE `unique_procedure` ( `name` , `length` , `employee_id` ); -- TIME_SLOT ALTER TABLE `time_slot` CHANGE `time_slot_id` `time_slot_id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT; ALTER TABLE `time_slot` ADD `start` TIMESTAMP NOT NULL; ALTER TABLE `time_slot` CHANGE `start` `start` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE `time_slot` ADD UNIQUE ( `length` , `employee_id` , `start` ); ALTER TABLE `beauty_parlour`.`time_slot` DROP INDEX `length` , ADD UNIQUE `unique_time_slot` ( `length` , `employee_id` , `start` ); ALTER TABLE `procedure` ADD `start` TIMESTAMP NOT NULL; ALTER TABLE `procedure` CHANGE `start` `start` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE `beauty_parlour`.`procedure` DROP INDEX `unique_procedure` , ADD UNIQUE `unique_procedure` ( `name` , `length` , `employee_id` , `start` ); -- USER ALTER TABLE `user` CHANGE `user_id` `user_id` SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT; ALTER TABLE `user` ADD UNIQUE ( `email` );
delete from SystemlogItem where itemid = '105' / insert into SystemLogItem (itemid,lableid,itemdesc) values('105',16260,'ๅˆๅŒ็ฎก็†') / delete from SystemlogItem where itemid = '110' / insert into SystemLogItem (itemid,lableid,itemdesc) values('110',15786,'ๅˆๅŒๆจกๆฟ') /
CREATE TABLE categories ( categories SMALLINT PRIMARY KEY, description VARCHAR(20) ); --DROP TABLE products; CREATE TABLE products ( products SERIAL PRIMARY KEY, description VARCHAR(40) NOT NULL, price NUMERIC(10,4) NOT NULL, tax NUMERIC(10,4) NOT NULL, category SMALLINT REFERENCES categories(categories) DEFAULT 2 ); --DROP TABLE users; CREATE TABLE users ( users SERIAL PRIMARY KEY, first_name VARCHAR(40), last_name VARCHAR(40), gender BOOL, birth_date DATE, email VARCHAR(50) UNIQUE, password VARCHAR(64) ); --DROP TABLE sales; CREATE TABLE sales ( sales SERIAL PRIMARY KEY, purchaser INTEGER REFERENCES users(users), sale_date TIMESTAMP DEFAULT now() NOT NULL, total NUMERIC(12,4) NOT NULL, tax NUMERIC(12,4) NOT NULL ); CREATE TABLE sales_products ( sales_products SERIAL PRIMARY KEY, quantity_sold INTEGER, sales INTEGER , products INTEGER , CONSTRAINT fk_sales_products_sales FOREIGN KEY (sales) REFERENCES sales(sales) ON UPDATE CASCADE ON DELETE CASCADE, CONSTRAINT fk_sales_products_products FOREIGN KEY (products) REFERENCES products(products) ON UPDATE CASCADE ); INSERT INTO categories (categories,description) VALUES (1,'food-and-beverage'), (2,'miscellaneous'), (3,'fashion'), (4,'entertainment'), (5,'music');
## ******************************************** ## Coppermine Photo Gallery ## ************************ ## Copyright (c) 2003-2009 Coppermine Dev Team ## v1.1 originally written by Gregory DEMAR ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License version 3 ## as published by the Free Software Foundation. ## ## ******************************************** ## Coppermine version: 1.5.1 ## $HeadURL$ ## $Revision$ ## $LastChangedBy$ ## $Date$ ## ******************************************** # # Table structure for table CPG_albums # CREATE TABLE CPG_albums ( aid int(11) NOT NULL auto_increment, title varchar(255) NOT NULL default '', description text NOT NULL, visibility int(11) NOT NULL default '0', uploads enum('YES','NO') NOT NULL default 'NO', comments enum('YES','NO') NOT NULL default 'YES', votes enum('YES','NO') NOT NULL default 'YES', pos int(11) NOT NULL default '0', category int(11) NOT NULL default '0', owner int(11) NOT NULL DEFAULT '1', thumb int(11) NOT NULL default '0', keyword VARCHAR( 50 ), alb_password VARCHAR( 32 ), alb_password_hint TEXT, moderator_group INT NOT NULL default 0, alb_hits INT( 10 ) NOT NULL default 0, PRIMARY KEY (aid), KEY alb_category (category), KEY `moderator_group` (`moderator_group`), KEY `visibility` (`visibility`) ) TYPE=MyISAM COMMENT='Used to store albums'; # -------------------------------------------------------- # # Table structure for table CPG_banned # CREATE TABLE CPG_banned ( ban_id int(11) NOT NULL auto_increment, user_id int(11) DEFAULT NULL, user_name varchar(255) NOT NULL default '', email varchar(255) NOT NULL default '', ip_addr tinytext, expiry datetime DEFAULT NULL, brute_force tinyint(5) NOT NULL default '0', PRIMARY KEY (ban_id) ) TYPE=MyISAM COMMENT='Data about banned users'; #--------------------------------------------------------- # # Table structure for table CPG_bridge # CREATE TABLE CPG_bridge ( name varchar(40) NOT NULL default '0', value varchar(255) NOT NULL default '', UNIQUE KEY name (name) ) TYPE=MyISAM COMMENT='Stores the bridging data, not used when unbridged'; # -------------------------------------------------------- # # Table structure for table CPG_categories # CREATE TABLE CPG_categories ( cid int(11) NOT NULL auto_increment, owner_id int(11) NOT NULL default '0', name varchar(255) NOT NULL default '', description text NOT NULL, pos int(11) NOT NULL default '0', parent int(11) NOT NULL default '0', thumb int(11) NOT NULL default '0', lft mediumint(8) unsigned NOT NULL default '0', rgt mediumint(8) unsigned NOT NULL default '0', depth tinyint(3) unsigned NOT NULL default '0', PRIMARY KEY (cid), KEY cat_parent (parent), KEY cat_pos (pos), KEY cat_owner_id (owner_id), KEY `depth_cid` (`depth`,`cid`), KEY `lft_depth` (`lft`,`depth`) ) TYPE=MyISAM COMMENT='Used to store categories'; # -------------------------------------------------------- # # Table structure for table CPG_categorymap # CREATE TABLE IF NOT EXISTS `CPG_categorymap` ( cid int(11) NOT NULL, group_id int(11) NOT NULL, PRIMARY KEY (cid,group_id) ) ENGINE=MyISAM COMMENT='Holds the categories where groups can create albums'; # -------------------------------------------------------- # # Table structure for table CPG_comments # CREATE TABLE CPG_comments ( pid mediumint(10) NOT NULL default '0', msg_id mediumint(10) NOT NULL auto_increment, msg_author varchar(25) NOT NULL default '', msg_body text NOT NULL, msg_date datetime NOT NULL default '0000-00-00 00:00:00', msg_raw_ip tinytext, msg_hdr_ip tinytext, author_md5_id varchar(32) NOT NULL default '', author_id int(11) NOT NULL default '0', approval enum('YES','NO') NOT NULL default 'YES', spam enum('YES','NO') NOT NULL default 'NO', PRIMARY KEY (msg_id), KEY com_pic_id (pid) ) TYPE=MyISAM COMMENT='Used to store comments made on pics'; # -------------------------------------------------------- # # Table structure for table CPG_config # CREATE TABLE CPG_config ( name varchar(40) NOT NULL default '', value varchar(255) NOT NULL default '', PRIMARY KEY (name) ) TYPE=MyISAM COMMENT='Used to store the configuration options'; # -------------------------------------------------------- # # Table structure for table CPG_dict # CREATE TABLE CPG_dict ( keyId bigint(20) NOT NULL auto_increment, keyword varchar(60) NOT NULL, PRIMARY KEY (keyId), UNIQUE KEY (keyword) ) TYPE=MyISAM COMMENT='Holds the keyword dictionary'; # -------------------------------------------------------- # # Table structure for table CPG_ecards # CREATE TABLE CPG_ecards ( eid int(11) NOT NULL auto_increment, sender_name varchar(50) NOT NULL default '', sender_email text NOT NULL, recipient_name varchar(50) NOT NULL default '', recipient_email text NOT NULL, link text NOT NULL, date tinytext NOT NULL, sender_ip tinytext NOT NULL, PRIMARY KEY (eid) ) TYPE=MyISAM COMMENT='Used to log ecards'; # -------------------------------------------------------- # # Table structure for table CPG_exif # CREATE TABLE CPG_exif ( `filename` varchar(255) NOT NULL default '', `exifData` text NOT NULL, UNIQUE KEY `filename` (`filename`) ) TYPE=MyISAM COMMENT='Stores EXIF data from individual pics'; # -------------------------------------------------------- # # Table structure for table CPG_favpics # CREATE TABLE CPG_favpics ( `user_id` INT( 11 ) NOT NULL , `user_favpics` TEXT NOT NULL , PRIMARY KEY ( `user_id` ) ) TYPE = MyISAM COMMENT = 'Stores the server side favourites'; # -------------------------------------------------------- # # Table structure for table CPG_filetypes # CREATE TABLE IF NOT EXISTS CPG_filetypes ( extension char(7) NOT NULL default '', mime char(254) default NULL, content char(15) default NULL, player varchar(5) default NULL, PRIMARY KEY (extension) ) TYPE=MyISAM COMMENT='Used to store the file extensions'; # -------------------------------------------------------- # # Table structure for table CPG_hit_stats # CREATE TABLE CPG_hit_stats ( `sid` int(11) NOT NULL auto_increment, `pid` varchar(100) NOT NULL default '', `ip` varchar(20) NOT NULL default '', `search_phrase` varchar(255) NOT NULL default '', `sdate` bigint(20) NOT NULL default '0', `referer` text NOT NULL, `browser` varchar(255) NOT NULL default '', `os` varchar(50) NOT NULL default '', `uid` INT(11) NOT NULL default '0', PRIMARY KEY (`sid`) ) TYPE = MyISAM COMMENT='Detailed stats about hits, only used when enabled'; # -------------------------------------------------------- # # Table structure for table CPG_languages # CREATE TABLE CPG_languages ( lang_id varchar(40) NOT NULL default '', english_name varchar(70) default NULL, native_name varchar(70) default NULL, custom_name varchar(70) default NULL, flag varchar(15) default NULL, abbr varchar(15) NOT NULL default '', available enum('YES','NO') NOT NULL default 'NO', enabled enum('YES','NO') NOT NULL default 'NO', complete enum('YES','NO') NOT NULL default 'NO', PRIMARY KEY (lang_id) ) TYPE=MyISAM COMMENT='Contains the language file definitions'; # -------------------------------------------------------- # # Table structure for table CPG_pictures # CREATE TABLE CPG_pictures ( pid int(11) NOT NULL auto_increment, aid int(11) NOT NULL default '0', filepath varchar(255) NOT NULL default '', filename varchar(255) NOT NULL default '', filesize int(11) NOT NULL default '0', total_filesize int(11) NOT NULL default '0', pwidth smallint(6) NOT NULL default '0', pheight smallint(6) NOT NULL default '0', hits int(10) NOT NULL default '0', mtime datetime NOT NULL default '0000-00-00 00:00:00' , ctime int(11) NOT NULL default '0', owner_id int(11) NOT NULL default '0', owner_name varchar(40) NOT NULL default '', pic_rating int(11) NOT NULL default '0', votes int(11) NOT NULL default '0', title varchar(255) NOT NULL default '', caption text NOT NULL, keywords varchar(255) NOT NULL default '', approved enum('YES','NO') NOT NULL default 'NO', galleryicon int(11) NOT NULL default '0', user1 varchar(255) NOT NULL default '', user2 varchar(255) NOT NULL default '', user3 varchar(255) NOT NULL default '', user4 varchar(255) NOT NULL default '', url_prefix tinyint(4) NOT NULL default '0', # randpos int(11) NOT NULL default '0', pic_raw_ip tinytext, pic_hdr_ip tinytext, lasthit_ip tinytext, PRIMARY KEY (pid), KEY owner_id (owner_id), KEY pic_hits (hits), KEY pic_rate (pic_rating), KEY aid_approved (aid,approved), # KEY randpos (randpos), KEY pic_aid (aid), position INT(11) NOT NULL default '0', FULLTEXT KEY search (title,caption,keywords,filename) ) TYPE=MyISAM COMMENT='Used to store data about individual pics'; # -------------------------------------------------------- # # Table structure for table CPG_plugins # CREATE TABLE CPG_plugins ( plugin_id int(10) unsigned NOT NULL auto_increment, name varchar(64) NOT NULL default '', path varchar(128) NOT NULL default '', priority int(10) unsigned NOT NULL default '0', PRIMARY KEY (plugin_id), UNIQUE KEY name (name), UNIQUE KEY path (path) ) TYPE=MyISAM COMMENT='Stores the plugins'; # -------------------------------------------------------- # # Table structure for table CPG_sessions # CREATE TABLE CPG_sessions ( session_id varchar(40) NOT NULL default '', user_id int(11) default '0', time int(11) default NULL, remember int(1) default '0', PRIMARY KEY (session_id) ) TYPE=MyISAM COMMENT='Used to store sessions'; # -------------------------------------------------------- # # Table structure for table CPG_temp_data # CREATE TABLE IF NOT EXISTS CPG_temp_data ( `unique_ID` CHAR( 8 ) NOT NULL , `encoded_string` BLOB NOT NULL , `timestamp` INT( 11 ) UNSIGNED NOT NULL , PRIMARY KEY ( `unique_ID` ) ) TYPE = MyISAM COMMENT = 'Holds temporary file data for multiple file uploads'; # -------------------------------------------------------- # # Table structure for table CPG_temp_messages # CREATE TABLE CPG_temp_messages ( message_id varchar(80) NOT NULL default '', user_id int(11) default '0', time int(11) default NULL, message text NOT NULL, PRIMARY KEY (message_id) ) TYPE=MyISAM COMMENT='Used to store messages from one page to the other'; # -------------------------------------------------------- # # Table structure for table CPG_usergroups # CREATE TABLE CPG_usergroups ( group_id int(11) NOT NULL auto_increment, group_name varchar(255) NOT NULL default '', group_quota int(11) NOT NULL default '0', has_admin_access tinyint(4) NOT NULL default '0', can_rate_pictures tinyint(4) NOT NULL default '0', can_send_ecards tinyint(4) NOT NULL default '0', can_post_comments tinyint(4) NOT NULL default '0', can_upload_pictures tinyint(4) NOT NULL default '0', can_create_albums tinyint(4) NOT NULL default '0', pub_upl_need_approval tinyint(4) NOT NULL default '1', priv_upl_need_approval tinyint(4) NOT NULL default '1', upload_form_config tinyint(4) NOT NULL default '3', custom_user_upload tinyint(4) NOT NULL default '0', num_file_upload tinyint(4) NOT NULL default '1', num_URI_upload tinyint(4) NOT NULL default '0', access_level tinyint(4) NOT NULL default '3', PRIMARY KEY (group_id) ) TYPE=MyISAM; # -------------------------------------------------------- # # Table structure for table CPG_users # CREATE TABLE CPG_users ( user_id int(11) NOT NULL auto_increment, user_group int(11) NOT NULL default '2', user_active enum('YES','NO') NOT NULL default 'NO', user_name varchar(25) NOT NULL default '', user_password varchar(40) NOT NULL default '', user_lastvisit datetime NOT NULL default '0000-00-00 00:00:00', user_regdate datetime NOT NULL default '0000-00-00 00:00:00', user_group_list varchar(255) NOT NULL default '', user_email varchar(255) NOT NULL default '', user_profile1 varchar(255) NOT NULL default '', user_profile2 varchar(255) NOT NULL default '', user_profile3 varchar(255) NOT NULL default '', user_profile4 varchar(255) NOT NULL default '', user_profile5 varchar(255) NOT NULL default '', user_profile6 text NOT NULL, user_actkey varchar(32) NOT NULL default '', user_language varchar(40) NOT NULL default '', PRIMARY KEY (user_id), UNIQUE KEY user_name (user_name) ) TYPE=MyISAM COMMENT='Used to store users, not used when bridged'; # -------------------------------------------------------- # # Table structure for table CPG_votes # CREATE TABLE CPG_votes ( pic_id mediumint(9) NOT NULL default '0', user_md5_id varchar(32) NOT NULL default '', vote_time int(11) NOT NULL default '0', PRIMARY KEY (pic_id,user_md5_id) ) TYPE=MyISAM COMMENT='Stores votes for individual pics'; #--------------------------------------------------------- # # Table structure for table CPG_vote_stats # CREATE TABLE CPG_vote_stats ( `sid` int(11) NOT NULL auto_increment, `pid` varchar(100) NOT NULL default '', `rating` smallint(6) NOT NULL default '0', `ip` varchar(20) NOT NULL default '', `sdate` bigint(20) NOT NULL default '0', `referer` text NOT NULL, `browser` varchar(255) NOT NULL default '', `os` varchar(50) NOT NULL default '', `uid` INT(11) NOT NULL default '0', PRIMARY KEY (`sid`) ) TYPE=MyISAM COMMENT='Detailed stats about votes, only used when enabled'; # --------------------------------------------------------
DROP SCHEMA IF EXISTS test_1; CREATE SCHEMA IF NOT EXISTS test_1; DROP SCHEMA IF EXISTS test_2; CREATE SCHEMA IF NOT EXISTS test_2;
INSERT INTO `#__role_privs` VALUES (0, '__cgaf', 'app', 'controller','1'), (0, '__cgaf', 'auth', 'controller','1' ), (0, '__cgaf', 'user', 'menu','1'), (3, '__cgaf', 'manage', 'controller','31' ), (3, '__cgaf', 'app', 'controller','31' ), (3, '__cgaf', 'system', 'manage','31' );
CREATE DATABASE `task_managment`; use `task_managment`; #-------------------statuses------------------- CREATE TABLE `statuses` ( `status_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(15) CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`status_id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; #--------------------users-------------------- CREATE TABLE `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `user_name` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `password` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `email` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `status` int(11) DEFAULT NULL, `manager` int(11) DEFAULT NULL, `is_active` int(11) DEFAULT '1', PRIMARY KEY (`user_id`), UNIQUE KEY `user_name` (`user_name`), KEY `fk_status` (`status`), KEY `fk_manager` (`manager`), CONSTRAINT `fk_manager` FOREIGN KEY (`manager`) REFERENCES `users` (`user_id`), CONSTRAINT `fk_status` FOREIGN KEY (`status`) REFERENCES `statuses` (`status_id`) ) ENGINE=InnoDB AUTO_INCREMENT=171 DEFAULT CHARSET=latin1; #-------------------projects------------------- CREATE TABLE `projects` ( `project_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `customer` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `team_leader` int(11) NOT NULL, `develop_houres` int(11) NOT NULL, `qa_houres` int(11) NOT NULL, `ui_ux_houres` int(11) NOT NULL, `start_date` datetime NOT NULL, `end_date` datetime NOT NULL, `is_complete` tinyint(1) DEFAULT '0', PRIMARY KEY (`project_id`), UNIQUE KEY `name` (`name`), KEY `fk_team_leader` (`team_leader`), CONSTRAINT `fk_team_leader` FOREIGN KEY (`team_leader`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=latin1; #-----------------user projects----------------- CREATE TABLE `user_projects` ( `user_project_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `allocated_hours` float DEFAULT NULL, PRIMARY KEY (`user_project_id`), KEY `fk_user` (`user_id`), KEY `fk_project` (`project_id`), CONSTRAINT `fk_project` FOREIGN KEY (`project_id`) REFERENCES `projects` (`project_id`), CONSTRAINT `fk_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=latin1; #-----------------daily presence----------------- CREATE TABLE `daily_presence` ( `daily_presence_id` int(11) NOT NULL AUTO_INCREMENT, `user_project_id` int(11) NOT NULL, `date` date NOT NULL, `start` time DEFAULT NULL, `end` time DEFAULT NULL, PRIMARY KEY (`daily_presence_id`), KEY `fk_project_user` (`user_project_id`), CONSTRAINT `fk_project_user` FOREIGN KEY (`user_project_id`) REFERENCES `user_projects` (`user_project_id`) ) ENGINE=InnoDB AUTO_INCREMENT=226 DEFAULT CHARSET=latin1;
create table SRB_Event ( uuid_ VARCHAR(75) null, eventId LONG not null primary key, companyId LONG, groupId LONG, userId LONG, createDate DATE null, modifiedDate DATE null, name VARCHAR(75) null, description VARCHAR(75) null, date_ DATE null, status INTEGER, statusByUserId LONG, statusByUserName VARCHAR(75) null, statusDate DATE null );
CREATE DATABASE IF NOT EXISTS `db_springboot_backend` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `db_springboot_backend`; -- MySQL dump 10.13 Distrib 5.7.25, for Linux (x86_64) -- -- Host: localhost Database: db_springboot_backend -- ------------------------------------------------------ -- Server version 5.7.25-0ubuntu0.18.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `cliente` -- DROP TABLE IF EXISTS `cliente`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cliente` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `apellido` varchar(255) DEFAULT NULL, `create_at` date DEFAULT NULL, `email` varchar(255) NOT NULL, `nombre` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UK_cmxo70m08n43599l3h0h07cc6` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cliente` -- LOCK TABLES `cliente` WRITE; /*!40000 ALTER TABLE `cliente` DISABLE KEYS */; INSERT INTO `cliente` VALUES (1,'Guzman','2018-07-31','Andresabelino@hotmail.com','Andres3'),(2,'Campos','2019-01-31','Calle Soroa 567','Christian Rolando'),(3,'Maura','2019-05-01','Calle locomon 555','Lucas'),(4,'Gustafson','2020-05-01','Mercator juan 55666','SOLOMOIN'),(5,'Nazario','2019-01-01','Calle juan 4545','Ronaldo'),(6,'Martinez','2010-01-01','Calle sinaloa 550','Fiorella'),(7,'Gonzo','2022-11-01','Calle Brasil 454','Lucas'),(8,'MArtos','2011-01-01','Calle jaajaja 555','Rolnaldinho'),(9,'Iniesta','2019-04-13','ainiesta@yahoo.com','Andres'),(11,'Asencio','2019-04-13','lasecncio@hotmail.com','Lucas '),(12,'Campos','2019-04-13','rcampos@gmail.com','Rolando'),(13,'Saiya','2019-04-13','sseiya@hotmail.com','Saint'); /*!40000 ALTER TABLE `cliente` 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 2019-04-13 19:14:58
SELECT * FROM VOTES ORDER BY INSERT_DATETIME %s;
CREATE TABLE bikes ( bike_id int PRIMARY KEY ); #COPY bikes(bike_id) FROM '/home/masimou/Desktop/cyclists_network/tfl/csv/bikes.csv' #DELIMITER ',' CSV HEADER; CREATE TABLE stations ( station_id int PRIMARY KEY, station_name varchar(250) NOT NULL ); SELECT AddGeometryColumn('public','stations','location',4326,'Point',2); #ALTER TABLE stations ALTER COLUMN location SET NOT NULL; #COPY stations(station_id,station_name) FROM '/home/masimou/Desktop/cyclists_network/#tfl/csv/stations.csv' DELIMITER ',' CSV HEADER; CREATE TABLE routes ( rental_id int PRIMARY KEY, start_station_id int NOT NULL, start_date timestamp NOT NULL, end_station_id int NOT NULL, end_date timestamp NOT NULL, duration int NOT NULL, bike_id int NOT NULL ); #COPY routes(rental_id,start_station_id, start_date, end_station_id, end_date, #duration, bike_id) FROM '/home/masimou/Desktop/cyclists_network/tfl/csv/routes.csv' #DELIMITER ',' CSV HEADER; # Insert values INSERT INTO webapp_stations(station_id,station_name,location) VALUES (434, 'Mechanical Workshop Clapham', NULL), (413, 'Electrical Workshop PS', NULL); INSERT INTO webapp_stations(station_id,station_name,location) VALUES (567,'PENTON STREET COMMS TEST TERMINAL _ CONTACT MATT McNULTY',NULL); # Foreign keys ALTER TABLE routes ADD CONSTRAINT routes_startstation_id_fk FOREIGN KEY (start_station_id) REFERENCES stations(station_id); ALTER TABLE routes ADD CONSTRAINT routes_endstation_id_fk FOREIGN KEY (end_station_id) REFERENCES stations(station_id); ALTER TABLE routes ADD CONSTRAINT routes_bikes_id_fk FOREIGN KEY (bike_id) REFERENCES bikes(bike_id); # Index Creation # B-tree -> <,<=,=,>,>= # Stations CREATE INDEX webapp_stations_station_name ON webapp_stations USING btree(station_name); CREATE INDEX stations_station_id_station_name_idx ON webapp_stations USING btree(station_id, station_name); CREATE INDEX stations_location_id ON webapp_stations USING gist(location); # index to match the LIKE operator CREATE INDEX stations_station_name_text_patttern_idx ON webapp_stations(station_name varchar_pattern_ops); # Routes CREATE INDEX routes_duration_idx ON webapp_routes USING btree(duration); CREATE INDEX routes_start_date_idx ON webapp_routes USING btree(start_date); CREATE INDEX routes_end_date_idx ON webapp_routes USING btree(end_date); CREATE INDEX routes_bike_id_idx ON webapp_routes USING btree(bike_id); CREATE INDEX routes_station_pairs_id_idx ON webapp_routes USING btree(station_pairs_id); # Webapp_stations_pairs_routes CREATE INDEX webapp_stations_pairs_routes_balanced_ref_dist ON webapp_stations_pairs_routes USING btree(balanced_ref_dist); CREATE INDEX webapp_stations_pairs_routes_balanced_ref_time ON webapp_stations_pairs_routes USING btree(balanced_ref_time); CREATE INDEX webapp_stations_pairs_routes_end_station_id ON webapp_stations_pairs_routes USING btree(end_station_id); CREATE INDEX webapp_stations_pairs_routes_start_station_id ON webapp_stations_pairs_routes USING btree(start_station_id); #CREATE INDEX routes_all_idx ON routes USING brin(duration,start_station_id,start_date,end_station_id,end_date, bike_id) with (pages_per_range=1); # Two attributes #CREATE INDEX routes_bike_id_duration ON routes USING btree(bike_id,duration); #CREATE INDEX routes_rental_id_bike_id ON routes USING btree(rental_id,bike_id); #CREATE INDEX routes_start_station_id_duration ON routes USING brin #(start_station_id, duration); #CREATE INDEX routes_end_station_id_duration ON routes USING brin(end_station_id, #duration);
delete from DET; delete from PRO; delete from COM; delete from FOU; delete from CLI; insert into CLI values (1,'Maria','Pologne','4867427275','varsovie','var','B'); insert into CLI values (2,'Ana','Autriche','4905219433','vienne','vien','B'); insert into CLI values (3,'Antonio','Espagne','7062001573','madrid','mad','B'); insert into CLI values (4,'Thomas','Danemark','2819391872','copenhague','cop','B'); insert into CLI values (5,'Christina','Pologne','6149520565','varsovie','var','B'); insert into CLI values (6,'Hanna','France','5343415742','paris','paris','FR'); insert into CLI values (7,'Fridirique','Danemark','8587949926','ville1','dept1','B'); insert into CLI values (8,'Martmn','Allemagne','4158171245','ville','dept','B'); insert into CLI values (9,'Laurence','Etats-Unis','5301741048','ville','dept','B'); insert into CLI values (10,'Elizabeth','Autriche','4300781005','ville','dept','B'); insert into CLI values (11,'Victoria','Espagne','1872198482','ville','dept','B'); insert into CLI values (12,'Patricio','Irlande','9763236494','ville','dept','B'); insert into CLI values (13,'Francisco','Canada','8647555663','ville','dept','B'); insert into CLI values (14,'Yang','Etats-Unis','4546115061','ville','dept','B'); insert into CLI values (15,'Pedro','Pologne','8297959402','ville','dept','B'); insert into CLI values (16,'Elizabeth','Argentine','9161236364','ville','dept','B'); insert into CLI values (17,'Sven','Canada','9404275732','ville','dept','B'); insert into CLI values (18,'Janine','Vinizuela','2293907428','ville','dept','B'); insert into CLI values (19,'Ann','Canada','2366800376','ville','dept','B'); insert into CLI values (20,'Roland','Autriche','7248445024','ville','dept','B'); insert into CLI values (21,'Aria','Etats-Unis','6880531536','ville','dept','B'); insert into CLI values (22,'Diego','Royaume-Uni','2602166812','ville','dept','GB'); insert into CLI values (23,'Martine','Argentine','5782206975','ville','dept','B'); insert into CLI values (24,'Maria','Norvege','6956645757','ville','dept','B'); insert into CLI values (25,'Peter','Portugal','3119931053','ville','dept','B'); insert into CLI values (26,'Carine','Irlande','5744816809','ville','dept','B'); insert into CLI values (27,'Paolo','Etats-Unis','8747833695','ville','dept','B'); insert into CLI values (28,'Lino','Finlande','8376668801','ville','dept','B'); insert into CLI values (29,'Eduardo','Allemagne','8166245661','ville','dept','B'); insert into CLI values (30,'Josi','Brisil','2600580517','ville','dept','B'); insert into CLI values (31,'Andri','Brisil','8203207204','ville','dept','B'); insert into CLI values (32,'Howard','Portugal','5599901014','ville','dept','B'); insert into CLI values (33,'Manuel','Mexique','7529802287','ville','dept','B'); insert into CLI values (34,'Mario','Royaume-Uni','7090211435','ville','dept','B'); insert into CLI values (35,'Carlos','Italie','9868452171','ville','dept','B'); insert into CLI values (36,'Yoshi','France','6970718241','ville','dept','B'); insert into CLI values (37,'Patricia','France','6325795434','ville','dept','B'); insert into CLI values (38,'Helen','Italie','8538906624','ville','dept','B'); insert into CLI values (39,'Philip','Royaume-Uni','8503903231','ville','dept','GB'); insert into CLI values (40,'Daniel','Portugal','6735580764','ville','dept','B'); insert into CLI values (41,'Annette','Danemark','1040635384','ville','dept','B'); insert into CLI values (42,'Yoshi','Finlande','5982053989','ville','dept','B'); insert into CLI values (43,'John','Argentine','7654174700','ville','dept','B'); insert into CLI values (44,'Renate','Suisse','4551672143','ville','dept','B'); insert into CLI values (45,'Jaime','Suhde','8874059921','ville','dept','B'); insert into CLI values (46,'Carlos','Mexique','6044433450','ville','dept','B'); insert into CLI values (47,'Felipe','Belgique','8282862821','ville','dept','B'); insert into CLI values (48,'Fran','Brisil','4897713078','ville','dept','B'); insert into CLI values (49,'Giovanni','Etats-Unis','5342090175','ville','dept','B'); insert into CLI values (50,'Catherine','Norvhge','4569560593','ville','dept','B'); insert into CLI values (51,'Jean','Allemagne','4556534044','ville','dept','B'); insert into CLI values (52,'Alexander','Argentine','2622798812','ville','dept','B'); insert into CLI values (53,'Simon','Brisil','1409076845','ville','dept','B'); insert into CLI values (54,'Yvonne','Irlande','6445644478','ville','dept','B'); insert into CLI values (55,'Rene','Allemagne','6576361700','ville','dept','B'); insert into CLI values (56,'Henriette','Norvhge','3350201010','ville','dept','B'); insert into CLI values (57,'Marie','Portugal','8226069096','ville','dept','B'); insert into CLI values (58,'Guillermo','Finlande','5126537623','ville','dept','B'); insert into CLI values (59,'Georg','Espagne','2627944625','ville','dept','B'); insert into CLI values (60,'Isabel','Royaume-Uni','6946106259','ville','dept','B'); insert into CLI values (61,'Bernardo','France','7611518157','ville','dept','B'); insert into CLI values (62,'Lzcia','Italie','8621765101','ville','dept','B'); insert into CLI values (63,'Horst','Pologne','3257006751','ville','dept','B'); insert into CLI values (64,'Sergio','Belgique','1965245844','ville','dept','B'); insert into CLI values (65,'Paula','Mexique','5581380107','ville','dept','B'); insert into CLI values (66,'Maurizio','Brisil','5635981344','ville','dept','B'); insert into CLI values (67,'Janete','Suisse','1874726623','ville','dept','B'); insert into CLI values (68,'Michael','Canada','7592113615','ville','dept','B'); insert into CLI values (69,'Alejandra','Allemagne','7049757042','ville','dept','B'); insert into CLI values (70,'Jonas','Autriche','7049757042','ville','dept','B'); insert into CLI values (71,'Jose','Belgique','3150769564','ville','dept','B'); insert into CLI values (72,'Hari','Irlande','2609838885','ville','dept','B'); insert into CLI values (73,'Jytte','Canada','9129637158','ville','dept','B'); insert into CLI values (74,'Dominique','Suhde','5068472601','ville','dept','B'); insert into CLI values (75,'Art','Finlande','8371359049','ville','dept','B'); insert into CLI values (76,'Pascale','Finlande','1019168842','ville','dept','B'); insert into CLI values (77,'Liz','Irlande','2159142555','ville','dept','B'); insert into CLI values (78,'Liu','France','1840982385','ville','dept','B'); insert into CLI values (79,'Karin','Danemark','9189949794','ville','dept','B'); insert into CLI values (80,'Miguel','Danemark','3398870174','ville','dept','B'); insert into CLI values (81,'Anabela','Belgique','9205928086','ville','dept','B'); insert into CLI values (82,'Helvetius','Mexique','7321682571','ville','dept','B'); insert into CLI values (83,'Palle','Espagne','6146475812','ville','dept','B'); insert into CLI values (84,'Mary','Autriche','2440898090','ville','dept','B'); insert into CLI values (85,'Paul','Italie','5962088885','ville','dept','B'); insert into CLI values (86,'Rita','Argentine','9576887812','ville','dept','B'); insert into CLI values (87,'Pirkko','Suhde','5517150313','ville','dept','B'); insert into CLI values (88,'Paula','Norvhge','4835167142','ville','dept','B'); insert into CLI values (89,'Karl','Espagne','3078446179','ville','dept','B'); insert into CLI values (90,'Matti','Belgique','3321868848','ville','dept','B'); insert into CLI values (91,'Zbyszek','Italie','8975908656','ville','dept','B'); insert into COM values (10000,54,26,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10001,51,476,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10002,24,217,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10003,73,111,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10004,83,120,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10005,87,24,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10006,27,21,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10007,52,217,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10008,28,445,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10009,72,295,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10010,73,18,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10011,88,189,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10012,47,615,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10013,68,305,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10014,33,106,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10015,59,132,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10016,23,678,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10017,7,670,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10018,65,392,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10019,49,14,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10020,85,165,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10021,20,451,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10022,41,276,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10023,79,401,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10024,65,31,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10025,65,19,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10026,52,8,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10027,20,600,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10028,3,281,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10029,70,40,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10030,46,158,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10031,76,42,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10032,8,1,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10033,56,51,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10034,19,385,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10035,35,1155,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10036,13,102,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10037,83,177,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10038,55,224,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10039,51,44,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10040,89,311,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10041,35,15,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10042,24,636,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10043,47,997,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10044,3,405,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10045,5,134,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10046,70,97,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10047,52,106,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10048,35,370,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10049,79,28,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10050,8,291,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10051,24,130,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10052,71,1089,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10053,87,375,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10054,67,314,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10055,7,811,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10056,46,120,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10057,78,24,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10058,37,609,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10059,46,134,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10060,72,611,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10061,19,26,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10062,1,283,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10063,37,91,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10064,83,61,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10065,71,270,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10066,87,43,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10067,26,157,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10068,59,114,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10069,41,152,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10070,41,286,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10071,37,1171,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10072,24,1063,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10073,24,583,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10074,37,314,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10075,14,176,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10076,74,5,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10077,41,169,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10078,68,418,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10079,76,312,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10080,10,212,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10081,14,126,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10082,30,17,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10083,76,473,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10084,41,464,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10085,70,124,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10086,27,1069,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10087,51,477,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10088,47,28,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10089,29,104,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10090,11,477,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10091,67,5971,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10092,20,98,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10093,63,1581,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10094,65,811,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10095,43,15,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10096,68,2808,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10097,19,2341,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10098,71,1060,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10099,49,463,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10100,18,946,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10101,3,8,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10102,6,696,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10103,24,529,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10104,76,142,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10105,76,1118,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10106,60,130,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10107,87,142,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10108,25,192,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10109,63,162,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10110,31,413,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10111,65,42,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10112,17,8,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10113,28,315,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10114,29,63,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10115,54,145,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10116,19,10,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10117,81,209,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10118,89,1039,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10119,28,66,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10120,43,32,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10121,51,676,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10122,70,3,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10123,83,401,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10124,37,279,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10125,66,71,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10126,84,140,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10127,91,93,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10128,7,306,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10129,66,164,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10130,37,528,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10131,51,1289,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10132,45,673,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10133,66,44,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10134,87,47,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10135,33,36,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10136,37,248,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10137,3,309,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10138,18,0,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10139,83,119,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10140,44,164,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10141,25,993,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10142,3,47,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10143,56,86,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10144,4,188,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10145,31,91,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10146,22,4,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10147,27,382,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10148,83,362,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10149,55,381,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10150,73,192,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10151,21,4,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10152,44,66,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10153,84,155,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10154,53,128,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10155,14,880,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10156,68,406,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10157,35,61,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10158,5,116,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10159,50,157,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10160,30,28,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10161,39,232,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10162,14,80,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10163,25,694,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10164,33,19,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10165,47,506,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10166,38,329,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10167,71,1274,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10168,71,709,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10169,65,666,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10170,66,6,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10171,5,118,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10172,38,49,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10173,23,224,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10174,51,272,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10175,72,830,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10176,10,29,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10177,44,18,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10178,56,370,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10179,22,190,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10180,34,109,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10181,28,745,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10182,18,120,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10183,10,96,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10184,22,190,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10185,21,206,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10186,30,121,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10187,83,314,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10188,87,3,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10189,35,67,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10190,9,6,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10191,49,107,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10192,17,160,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10193,71,36,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10194,59,224,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10195,61,470,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10196,46,2466,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10197,44,220,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10198,54,186,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10199,71,301,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10200,8,150,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10201,73,70,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10202,25,1038,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10203,18,228,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10204,76,0,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10205,37,961,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10206,71,240,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10207,79,124,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10208,68,157,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10209,66,106,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10210,24,56,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10211,50,188,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10212,9,59,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10213,5,22,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10214,51,472,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10215,86,79,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10216,65,172,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10217,50,3,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10218,3,465,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10219,72,432,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10220,19,199,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10221,49,48,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10222,25,822,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10223,74,99,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10224,67,147,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10225,71,886,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10226,71,2152,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10227,81,12,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10228,13,216,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10229,43,52,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10230,10,906,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10231,10,127,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10232,17,74,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10233,5,236,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10234,33,182,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10235,84,45,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10236,72,325,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10237,86,282,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10238,11,43,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10239,27,271,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10240,10,90,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10241,8,534,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10242,46,335,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10243,16,68,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10244,67,88,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10245,37,277,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10246,31,82,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10247,71,655,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10248,85,194,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10249,79,69,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10250,34,394,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10251,84,248,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10252,76,307,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10253,34,349,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10254,14,137,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10255,68,889,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10256,88,83,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10257,35,491,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10258,20,843,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10259,13,19,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10260,56,330,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10261,61,18,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10262,65,289,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10263,20,876,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10264,24,22,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10265,7,331,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10266,87,154,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10267,25,1251,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10268,33,397,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10269,89,27,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10270,87,819,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10271,75,27,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10272,65,588,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10273,63,456,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10274,85,36,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10275,49,161,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10276,80,83,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10277,52,754,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10278,5,556,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10279,44,154,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10280,5,53,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10281,69,17,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10282,69,76,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10283,46,508,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10284,44,459,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10285,63,460,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10286,63,1375,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10287,67,76,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10288,66,44,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10289,11,136,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10290,15,478,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10291,61,38,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10292,81,8,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10293,80,127,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10294,65,883,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10295,85,6,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10296,46,0,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10297,7,34,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10298,37,1009,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10299,67,178,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10300,49,106,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10301,86,270,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10302,76,37,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10303,30,646,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10304,80,382,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10305,55,1545,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10306,69,45,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10307,48,3,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10308,2,9,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10309,37,283,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10310,77,105,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10311,18,148,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10312,86,241,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10313,63,11,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10314,65,444,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10315,38,250,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10316,65,900,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10317,48,76,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10318,38,28,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10319,80,387,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10320,87,207,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10321,38,20,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10322,58,2,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10323,39,29,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10324,71,1285,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10325,39,389,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10326,8,467,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10327,24,380,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10328,28,522,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10329,75,1150,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10330,46,76,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10331,9,61,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10332,51,317,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10333,87,3,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10334,84,51,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10335,37,252,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10336,60,93,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10337,25,649,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10338,55,505,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10339,51,93,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10340,9,997,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10341,73,160,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10342,25,328,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10343,44,662,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10344,89,139,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10345,63,1494,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10346,65,852,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10347,21,18,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10348,86,4,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10349,75,51,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10350,41,385,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10351,20,973,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10352,28,7,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10353,59,2163,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10354,58,322,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10355,4,251,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10356,86,220,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10357,46,209,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10358,41,117,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10359,72,1730,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10360,7,790,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10361,63,1099,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10362,9,576,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10363,17,183,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10364,19,431,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10365,3,132,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10366,29,60,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10367,83,81,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10368,20,611,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10369,75,1174,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10370,14,7,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10371,41,2,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10372,62,5344,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10373,37,744,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10374,91,23,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10375,36,120,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10376,51,122,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10377,72,133,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10378,24,32,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10379,61,270,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10380,37,210,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10381,46,47,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10382,20,568,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10383,4,205,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10384,5,1011,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10385,75,185,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10386,21,83,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10387,70,561,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10388,72,209,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10389,10,284,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10390,20,758,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10391,17,32,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10392,59,734,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10393,71,759,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10394,36,182,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10395,35,1106,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10396,25,812,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10397,60,361,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10398,71,534,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10399,83,164,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10400,19,503,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10401,65,75,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10402,20,407,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10403,20,442,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10404,49,935,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10405,47,208,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10406,62,648,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10407,56,548,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10408,23,67,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10409,54,178,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10410,10,14,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10411,10,141,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10412,87,22,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10413,41,573,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10414,21,128,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10415,36,1,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10416,87,136,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10417,73,421,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10418,63,105,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10419,68,824,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10420,88,264,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10421,61,595,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10422,27,18,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10423,31,147,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10424,51,2223,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10425,41,47,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10426,29,112,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10427,59,187,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10428,66,66,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10429,37,339,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10430,20,2752,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10431,10,265,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10432,75,26,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10433,60,442,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10434,24,107,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10435,16,55,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10436,7,939,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10437,87,119,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10438,79,49,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10439,51,24,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10440,71,519,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10441,55,438,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10442,20,287,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10443,66,83,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10444,5,21,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10445,5,55,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10446,79,88,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10447,67,411,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10448,64,232,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10449,7,319,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10450,84,43,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10451,63,1134,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10452,71,841,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10453,4,152,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10454,41,16,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10455,87,1082,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10456,39,48,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10457,39,69,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10458,76,882,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10459,84,150,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10460,24,97,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10461,46,891,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10462,16,37,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10463,76,88,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10464,28,534,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10465,83,870,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10466,15,71,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10467,49,29,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10468,39,264,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10469,89,361,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10470,9,387,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10471,11,273,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10472,72,25,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10473,38,98,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10474,58,500,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10475,76,411,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10476,35,26,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10477,60,78,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10478,84,28,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10479,65,4253,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10480,23,8,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10481,67,385,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10482,43,44,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10483,89,91,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10484,11,41,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10485,47,386,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10486,35,183,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10487,62,426,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10488,25,29,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10489,59,31,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10490,35,1261,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10491,28,101,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10492,10,377,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10493,41,63,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10494,15,395,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10495,42,27,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10496,81,280,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10497,44,217,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10498,35,178,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10499,46,612,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10500,41,256,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10501,6,53,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10502,58,415,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10503,37,100,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10504,89,354,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10505,51,42,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10506,39,127,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10507,3,284,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10508,56,29,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10509,6,0,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10510,71,2205,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10511,9,2103,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10512,21,21,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10513,86,633,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10514,20,4739,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10515,63,1226,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10516,37,376,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10517,53,192,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10518,80,1308,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10519,14,550,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10520,70,80,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10521,12,103,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10522,44,271,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10523,72,465,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10524,5,1468,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10525,9,66,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10526,87,351,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10527,63,251,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10528,32,20,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10529,50,400,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10530,59,2035,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10531,54,48,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10532,19,446,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10533,24,1128,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10534,44,167,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10535,3,93,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10536,44,353,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10537,68,473,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10538,11,29,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10539,11,74,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10540,63,6045,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10541,34,411,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10542,39,65,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10543,46,289,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10544,48,149,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10545,43,71,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10546,84,1168,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10547,72,1070,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10548,79,8,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10549,63,1027,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10550,30,25,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10551,28,437,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10552,35,499,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10553,87,896,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10554,56,725,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10555,71,1514,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10556,73,58,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10557,44,580,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10558,4,437,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10559,7,48,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10560,25,219,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10561,24,1453,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10562,66,137,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10563,67,362,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10564,65,82,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10565,51,42,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10566,7,530,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10567,37,203,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10568,29,39,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10569,65,353,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10570,51,1133,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10571,20,156,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10572,5,698,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10573,3,509,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10574,82,225,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10575,52,764,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10576,80,111,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10577,82,152,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10578,11,177,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10579,45,82,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10580,56,455,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10581,21,18,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10582,6,166,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10583,87,43,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10584,7,354,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10585,88,80,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10586,66,2,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10587,61,375,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10588,63,1168,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10589,32,26,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10590,51,268,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10591,83,335,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10592,44,192,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10593,44,1045,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10594,55,31,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10595,20,580,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10596,89,98,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10597,59,210,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10598,65,266,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10599,11,179,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10600,36,270,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10601,35,349,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10602,83,17,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10603,71,292,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10604,28,44,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10605,51,2274,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10606,81,476,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10607,71,1201,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10608,79,166,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10609,18,11,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10610,41,160,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10611,91,483,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10612,71,3264,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10613,35,48,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10614,6,11,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10615,90,4,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10616,32,699,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10617,32,111,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10618,51,928,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10619,51,546,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10620,42,5,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10621,38,142,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10622,67,305,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10623,25,583,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10624,78,568,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10625,2,263,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10626,5,832,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10627,71,644,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10628,7,182,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10629,30,512,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10630,39,194,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10631,41,5,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10632,86,248,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10633,20,2867,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10634,23,2924,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10635,49,284,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10636,87,6,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10637,62,1207,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10638,47,950,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10639,70,231,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10640,86,141,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10641,35,1077,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10642,73,251,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10643,1,176,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10644,88,0,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10645,34,74,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10646,37,853,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10647,61,273,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10648,67,85,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10649,50,37,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10650,21,1060,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10651,86,123,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10652,31,42,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10653,25,559,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10654,5,331,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10655,66,26,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10656,32,342,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10657,71,2116,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10658,63,2184,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10659,62,634,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10660,36,667,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10661,37,105,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10662,48,7,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10663,9,678,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10664,28,7,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10665,48,157,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10666,68,1394,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10667,20,468,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10668,86,283,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10669,73,146,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10670,25,1220,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10671,26,182,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10672,5,574,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10673,90,136,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10674,38,5,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10675,25,191,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10676,80,12,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10677,3,24,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10678,71,2333,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10679,7,167,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10680,55,159,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10681,32,456,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10682,3,216,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10683,18,26,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10684,56,873,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10685,31,202,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10686,59,579,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10687,37,1778,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10688,83,1794,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10689,5,80,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10690,34,94,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10691,63,4860,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10692,1,366,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10693,89,836,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10694,63,2390,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10695,90,100,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10696,89,615,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10697,47,273,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10698,20,1634,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10699,52,3,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10700,71,390,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10701,37,1321,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10702,1,143,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10703,24,913,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10704,62,28,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10705,35,21,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10706,55,813,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10707,4,130,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10708,77,17,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10709,31,1264,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10710,27,29,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10711,71,314,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10712,37,539,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10713,71,1002,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10714,71,146,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10715,9,379,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10716,64,135,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10717,25,355,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10718,39,1025,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10719,45,308,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10720,61,57,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10721,63,293,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10722,71,447,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10723,89,130,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10724,51,346,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10725,21,64,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10726,19,99,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10727,66,539,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10728,62,349,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10729,47,846,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10730,9,120,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10731,14,579,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10732,9,101,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10733,5,660,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10734,31,9,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10735,45,275,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10736,37,264,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10737,85,46,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10738,74,17,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10739,85,66,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10740,89,491,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10741,4,65,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10742,10,1462,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10743,4,142,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10744,83,415,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10745,63,21,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10746,14,188,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10747,59,703,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10748,71,1395,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10749,38,369,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10750,87,475,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10751,68,784,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10752,53,8,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10753,27,46,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10754,49,14,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10755,9,100,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10756,75,439,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10757,71,49,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10758,68,829,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10759,2,71,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10760,50,933,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10761,65,111,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10762,24,1972,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10763,23,224,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10764,20,872,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10765,63,256,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10766,56,945,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10767,76,9,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10768,4,877,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10769,83,390,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10770,34,31,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10771,20,67,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10772,44,547,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10773,20,578,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10774,24,289,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10775,78,121,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10776,20,2109,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10777,31,18,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10778,5,40,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10779,52,348,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10780,46,252,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10781,87,438,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10782,12,6,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10783,34,749,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10784,49,420,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10785,33,9,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10786,62,665,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10787,41,1499,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10788,63,256,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10789,23,603,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10790,31,169,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10791,25,101,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10792,91,142,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10793,4,27,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10794,61,128,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10795,20,759,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10796,35,159,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10797,17,200,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10798,38,13,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10799,39,184,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10800,72,824,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10801,8,582,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10802,73,1543,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10803,88,331,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10804,72,163,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10805,77,1424,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10806,84,132,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10807,27,8,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10808,55,273,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10809,88,29,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10810,42,25,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10811,47,187,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10812,66,358,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10813,67,284,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10814,84,785,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10815,71,87,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10816,32,4318,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10817,39,1836,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10818,49,392,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10819,12,118,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10820,65,225,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10821,75,220,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10822,82,42,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10823,46,983,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10824,24,7,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10825,17,475,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10826,7,42,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10827,9,381,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10828,64,545,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10829,38,928,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10830,81,490,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10831,70,433,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10832,41,259,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10833,56,428,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10834,81,178,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10835,1,417,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10836,20,2471,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10837,5,79,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10838,47,355,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10839,81,212,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10840,47,16,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10841,76,2545,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10842,80,326,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10843,84,55,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10844,59,151,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10845,63,1277,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10846,76,338,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10847,71,2925,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10848,16,229,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10849,39,3,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10850,84,295,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10851,67,963,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10852,65,1044,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10853,6,322,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10854,20,601,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10855,55,1025,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10856,3,350,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10857,5,1133,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10858,40,315,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10859,25,456,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10860,26,115,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10861,89,89,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10862,44,319,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10863,35,181,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10864,4,18,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10865,63,2088,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10866,5,654,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10867,48,11,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10868,62,1147,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10869,72,859,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10870,91,72,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10871,9,673,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10872,30,1051,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10873,90,4,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10874,30,117,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10875,5,194,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10876,9,362,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10877,67,228,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10878,63,280,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10879,90,51,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10880,24,528,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10881,12,17,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10882,71,138,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10883,48,3,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10884,45,545,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10885,76,33,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10886,34,29,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10887,29,7,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10888,30,311,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10889,65,1683,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10890,18,196,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10891,44,122,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10892,50,721,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10893,39,466,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10894,71,696,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10895,20,976,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10896,50,194,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10897,37,3621,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10898,54,7,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10899,46,7,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10900,88,9,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10901,35,372,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10902,24,264,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10903,34,220,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10904,89,977,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10905,88,82,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10906,91,157,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10907,74,55,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10908,66,197,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10909,70,318,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10910,90,228,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10911,30,229,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10912,37,3485,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10913,62,198,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10914,62,127,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10915,80,21,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10916,64,382,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10917,69,49,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10918,10,292,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10919,47,118,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10920,4,177,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10921,83,1058,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10922,34,376,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10923,41,409,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10924,5,909,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10925,34,13,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10926,2,239,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10927,40,118,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10928,29,8,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10929,25,203,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10930,76,93,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10931,68,81,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10932,9,807,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10933,38,324,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10934,44,192,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10935,88,285,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10936,32,202,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10937,12,189,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10938,63,191,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10939,49,457,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10940,9,118,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10941,71,2404,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10942,66,107,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10943,11,13,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10944,10,317,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10945,52,61,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10946,83,163,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10947,11,19,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10948,30,140,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10949,10,446,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10950,49,15,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10951,68,185,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10952,1,242,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10953,4,142,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10954,47,167,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10955,24,19,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10956,6,267,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10957,35,632,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10958,54,297,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10959,31,29,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10960,35,12,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10961,62,626,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10962,63,1654,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10963,28,16,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10964,74,524,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10965,55,866,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10966,14,163,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10967,79,373,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10968,20,447,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10969,15,1,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10970,8,96,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10971,26,730,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10972,40,0,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10973,40,91,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10974,75,77,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10975,10,193,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10976,35,227,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10977,24,1251,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10978,50,196,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10979,20,2118,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10980,24,7,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10981,34,1160,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10982,10,84,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10983,71,3945,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10984,71,1267,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10985,37,549,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10986,54,1307,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10987,19,1112,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10988,65,366,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10989,61,208,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10990,20,705,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10991,63,231,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10992,77,25,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10993,24,52,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10994,83,393,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10995,58,276,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10996,63,6,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10997,46,443,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10998,91,121,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (10999,56,578,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11000,65,330,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11001,24,1183,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11002,71,846,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11003,78,89,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11004,50,269,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11005,90,4,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11006,32,151,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11007,60,1213,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11008,20,476,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11009,30,354,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11010,66,172,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11011,1,7,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11012,25,1457,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11013,69,197,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11014,47,141,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11015,70,27,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11016,4,202,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11017,20,4525,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11018,48,69,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11019,64,19,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11020,56,259,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11021,63,1783,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11022,34,37,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11023,11,742,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11024,19,446,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11025,87,175,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11026,27,282,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11027,10,315,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11028,39,177,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11029,14,287,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11030,71,4984,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11031,71,1363,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11032,89,3637,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11033,68,508,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11034,55,241,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11035,76,1,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11036,17,896,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11037,30,19,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11038,76,177,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11039,47,390,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11040,32,113,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11041,14,289,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11042,15,179,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11043,74,52,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11044,91,52,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11045,10,423,1996,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11046,86,429,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11047,19,279,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11048,10,144,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11049,31,50,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11050,24,356,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11051,41,16,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11052,34,403,1998,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11053,59,318,1997,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11054,12,1,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11055,35,725,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11056,19,1673,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11057,53,24,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11058,6,186,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11059,67,514,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11060,27,65,1999,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11061,32,84,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11062,66,179,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11063,37,490,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11064,71,180,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11065,46,77,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11066,89,268,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11067,17,47,1993,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11068,62,490,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11069,80,94,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11070,44,816,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11071,46,5,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11072,20,1551,1995,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11073,58,149,1992,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11074,73,110,1991,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11075,68,37,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11076,9,229,1994,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into COM values (11077,65,51,2000,TO_DATE('28-11-2001', 'DD-MM-YYYY'),0); insert into FOU values (1,'Exotic','Allemagne','1019168842'); insert into FOU values (2,'New','Argentine','1040635384'); insert into FOU values (3,'Grandma','Autriche','1409076845'); insert into FOU values (4,'Tokyo','Belgique','1840982385'); insert into FOU values (5,'Cooperativa','Brisil','1872198482'); insert into FOU values (6,'Mayumis','Canada','1874726623'); insert into FOU values (7,'Pavlova,','Danemark','1965245844'); insert into FOU values (8,'Specialty','Espagne','2159142555'); insert into FOU values (9,'PB','Etats-Unis','2293907428'); insert into FOU values (10,'Refrescos','Finlande','2366800376'); insert into FOU values (11,'Heli','France','2440898090'); insert into FOU values (12,'Plusspar','Irlande','2600580517'); insert into FOU values (13,'Nord-Ost-Fisch','Italie','2602166812'); insert into FOU values (14,'Formaggi','Mexique','2609838885'); insert into FOU values (15,'Norske','Allemagne','2622798812'); insert into FOU values (16,'Bigfoot','Argentine','2627944625'); insert into FOU values (17,'Svensk','Autriche','2819391872'); insert into FOU values (18,'Aux','Belgique','3078446179'); insert into FOU values (19,'New','Brisil','1019168842'); insert into FOU values (20,'Leka','Canada','1040635384'); insert into FOU values (21,'Lyngbysild','Danemark','1409076845'); insert into FOU values (22,'Zaanse','Espagne','1840982385'); insert into FOU values (23,'Karkki','Etats-Unis','1872198482'); insert into FOU values (24,'Gday,','Finlande','1874726623'); insert into FOU values (25,'Ma','France','1965245844'); insert into FOU values (26,'Pasta','Irlande','2159142555'); insert into FOU values (27,'Escargots','Italie','2293907428'); insert into FOU values (28,'Gai','Mexique','2366800376'); insert into FOU values (29,'Forjts','Norvhge','2440898090'); insert into PRO values (1,1,'Chai','A',90); insert into PRO values (2,1,'Chang','B',95); insert into PRO values (3,1,'Aniseed','C',50); insert into PRO values (4,2,'Chef','D',110); insert into PRO values (5,5,'Chef','C',106); insert into PRO values (6,3,'Grandmas','E',125); insert into PRO values (7,3,'Uncle','D',150); insert into PRO values (8,3,'Northwoods','B',200); insert into PRO values (9,4,'Mishi','A',485); insert into PRO values (10,4,'Ikura','D',155); insert into PRO values (11,5,'Queso','C',105); insert into PRO values (12,5,'Queso','E',190); insert into PRO values (13,6,'Konbu','D',30); insert into PRO values (14,6,'Tofu','C',116); insert into PRO values (15,6,'Genen','E',77); insert into PRO values (16,7,'Pavlova','A',87); insert into PRO values (17,24,'Alice','D',195); insert into PRO values (18,7,'Carnarvon','C',312); insert into PRO values (19,8,'Teatime','E',46); insert into PRO values (20,8,'Sir','D',405); insert into PRO values (21,8,'Sir','B',50); insert into PRO values (22,12,'Gustafs','C',105); insert into PRO values (23,9,'Tunnbrvd','D',45); insert into PRO values (24,10,'Guarana','E',22); insert into PRO values (25,11,'NuNuCa','A',70); insert into PRO values (26,11,'Gumbdr','D',156); insert into PRO values (27,11,'Schoggi','E',219); insert into PRO values (28,12,'Rvssle','C',228); insert into PRO values (29,12,'Th|ringer','B',618); insert into PRO values (30,13,'Nord-Ost','E',129); insert into PRO values (31,14,'Gorgonzola','D',62); insert into PRO values (32,14,'Mascarpone','A',160); insert into PRO values (33,15,'Geitost','C',12); insert into PRO values (34,16,'Sasquatch','B',70); insert into PRO values (35,16,'Steeleye','E',90); insert into PRO values (36,17,'Inlagd','D',95); insert into PRO values (37,17,'Gravad','C',130); insert into PRO values (38,18,'Ctte','A',890); insert into PRO values (39,18,'Chartreuse','D',90); insert into PRO values (40,19,'Boston','E',92); insert into PRO values (41,19,'Jacks','C',48); insert into PRO values (42,13,'Singaporean','B',70); insert into PRO values (43,20,'Ipoh','D',230); insert into PRO values (44,20,'Gula','C',97); insert into PRO values (45,21,'Rxgede','C',47); insert into PRO values (46,21,'Spegesild','C',60); insert into PRO values (47,22,'Zaanse','D',47); insert into PRO values (48,22,'Chocolade','E',63); insert into PRO values (49,23,'Maxilaku','C',100); insert into PRO values (50,23,'Valkoinen','C',81); insert into PRO values (51,24,'Manjimup','C',265); insert into PRO values (52,24,'Filo','C',35); insert into PRO values (53,24,'Perth','C',164); insert into PRO values (54,25,'Tourtihre','C',37); insert into PRO values (55,25,'Pbti','C',120); insert into PRO values (56,26,'Gnocchi','C',190); insert into PRO values (57,26,'Ravioli','C',97); insert into PRO values (58,27,'Escargots','C',66); insert into PRO values (59,28,'Raclette','C',275); insert into PRO values (60,28,'Camembert','C',170); insert into PRO values (61,29,'Maple','C',142); insert into PRO values (62,29,'Sugar','C',246); insert into PRO values (63,16,'Vegie-spread','C',219); insert into PRO values (64,12,'Wimmers','C',166); insert into PRO values (65,2,'Louisiana','C',105); insert into PRO values (66,2,'Louisiana','C',85); insert into PRO values (67,16,'Laughing','C',70); insert into PRO values (68,8,'Scottish','E',62); insert into PRO values (69,15,'Gudbrandsdalsost','A',180); insert into PRO values (70,7,'Outback','A',75); insert into PRO values (71,15,'Flxtemysost','A',107); insert into PRO values (72,14,'Mozzarella','A',174); insert into PRO values (73,17,'Rvd','A',75); insert into PRO values (74,4,'Longlife','A',50); insert into PRO values (75,12,'Rhvnbrdu','A',38); insert into PRO values (76,23,'Lakkalikvvri','B',90); insert into PRO values (77,12,'Original','B',65); insert into DET values (10000,31,4,1); insert into DET values (10001,1,30,1); insert into DET values (10001,40,40,1); insert into DET values (10001,59,8,1); insert into DET values (10001,64,1,1); insert into DET values (10002,31,35,1); insert into DET values (10002,39,18,1); insert into DET values (10002,71,1,1); insert into DET values (10003,18,12,1); insert into DET values (10004,29,35,1); insert into DET values (10004,63,6,1); insert into DET values (10005,62,6,1); insert into DET values (10006,13,1,1); insert into DET values (10006,50,4,1); insert into DET values (10007,12,4,1); insert into DET values (10007,53,30,1); insert into DET values (10007,63,1,1); insert into DET values (10008,14,1,1); insert into DET values (10008,21,1,1); insert into DET values (10008,51,1,1); insert into DET values (10009,23,70,1); insert into DET values (10009,51,30,1); insert into DET values (10010,43,1,1); insert into DET values (10010,71,1,1); insert into DET values (10011,18,12,1); insert into DET values (10011,19,1,5); insert into DET values (10011,36,1,1); insert into DET values (10012,19,49,5); insert into DET values (10012,35,30,1); insert into DET values (10012,40,30,1); insert into DET values (10013,41,50,1); insert into DET values (10013,43,7,1); insert into DET values (10014,18,4,1); insert into DET values (10014,41,3,1); insert into DET values (10015,11,60,1); insert into DET values (10015,24,1,1); insert into DET values (10015,41,1,1); insert into DET values (10015,73,1,1); insert into DET values (10015,74,1,1); insert into DET values (10016,61,1,1); insert into DET values (10016,62,50,1); insert into DET values (10016,68,1,1); insert into DET values (10017,46,30,1); insert into DET values (10017,64,30,1); insert into DET values (10017,75,40,1); insert into DET values (10018,11,70,1); insert into DET values (10018,50,1,1); insert into DET values (10019,75,1,1); insert into DET values (10020,8,1,1); insert into DET values (10020,16,14,1); insert into DET values (10021,1,60,1); insert into DET values (10021,33,50,1); insert into DET values (10021,36,36,1); insert into DET values (10021,71,5,1); insert into DET values (10022,21,40,1); insert into DET values (10022,49,1,1); insert into DET values (10022,50,1,1); insert into DET values (10022,56,4,1); insert into DET values (10023,36,1,1); insert into DET values (10023,41,1,1); insert into DET values (10023,71,3,1); insert into DET values (10024,43,1,1); insert into DET values (10024,53,1,1); insert into DET values (10024,56,60,1); insert into DET values (10025,16,1,1); insert into DET values (10025,28,2,1); insert into DET values (10026,68,2,1); insert into DET values (10027,41,40,1); insert into DET values (10027,60,50,1); insert into DET values (10027,64,40,1); insert into DET values (10027,65,80,1); insert into DET values (10028,18,1,1); insert into DET values (10028,68,12,1); insert into DET values (10029,11,1,1); insert into DET values (10029,16,5,1); insert into DET values (10029,75,4,1); insert into DET values (10030,5,30,1); insert into DET values (10030,11,8,1); insert into DET values (10030,31,1,1); insert into DET values (10030,43,6,1); insert into DET values (10031,71,1,1); insert into DET values (10031,72,30,1); insert into DET values (10032,13,1,1); insert into DET values (10032,24,1,1); insert into DET values (10033,72,35,1); insert into DET values (10034,6,18,1); insert into DET values (10034,26,21,1); insert into DET values (10035,1,50,1); insert into DET values (10035,11,35,1); insert into DET values (10035,34,30,1); insert into DET values (10035,41,40,1); insert into DET values (10036,51,1,1); insert into DET values (10036,52,8,1); insert into DET values (10036,53,12,1); insert into DET values (10037,2,1,1); insert into DET values (10037,28,12,1); insert into DET values (10038,29,4,1); insert into DET values (10038,36,8,1); insert into DET values (10038,57,30,1); insert into DET values (10038,76,9,1); insert into DET values (10039,62,1,1); insert into DET values (10040,30,60,10); insert into DET values (10040,56,35,1); insert into DET values (10041,42,1,1); insert into DET values (10041,47,1,1); insert into DET values (10041,55,30,1); insert into DET values (10042,13,1,1); insert into DET values (10042,41,1,1); insert into DET values (10042,44,30,1); insert into DET values (10042,51,1,1); insert into DET values (10043,1,40,1); insert into DET values (10043,29,1,1); insert into DET values (10044,7,28,1); insert into DET values (10044,72,21,1); insert into DET values (10044,77,9,1); insert into DET values (10045,17,30,1); insert into DET values (10045,24,16,1); insert into DET values (10045,49,1,1); insert into DET values (10045,60,5,1); insert into DET values (10046,2,12,1); insert into DET values (10046,27,2,5); insert into DET values (10047,11,4,1); insert into DET values (10047,19,1,5); insert into DET values (10047,52,5,1); insert into DET values (10047,73,2,1); insert into DET values (10048,36,50,1); insert into DET values (10049,7,1,1); insert into DET values (10050,16,14,1); insert into DET values (10050,52,1,1); insert into DET values (10050,58,50,1); insert into DET values (10050,77,1,1); insert into DET values (10051,13,30,1); insert into DET values (10051,26,30,1); insert into DET values (10051,56,1,1); insert into DET values (10052,16,1,1); insert into DET values (10052,60,90,1); insert into DET values (10052,75,90,1); insert into DET values (10053,53,12,1); insert into DET values (10053,55,2,1); insert into DET values (10053,75,40,1); insert into DET values (10054,71,30,1); insert into DET values (10054,72,12,1); insert into DET values (10055,8,18,1); insert into DET values (10055,51,1,1); insert into DET values (10056,26,50,1); insert into DET values (10056,63,8,1); insert into DET values (10057,58,3,1); insert into DET values (10057,74,4,1); insert into DET values (10058,12,12,1); insert into DET values (10058,41,70,1); insert into DET values (10058,54,30,1); insert into DET values (10058,61,30,1); insert into DET values (10058,62,3,1); insert into DET values (10059,19,1,5); insert into DET values (10059,24,24,1); insert into DET values (10059,72,4,1); insert into DET values (10060,16,28,1); insert into DET values (10060,70,50,1); insert into DET values (10060,75,12,1); insert into DET values (10061,66,12,1); insert into DET values (10062,5,8,1); insert into DET values (10062,51,12,1); insert into DET values (10062,55,1,1); insert into DET values (10063,41,32,1); insert into DET values (10063,69,24,1); insert into DET values (10063,75,40,1); insert into DET values (10064,24,12,1); insert into DET values (10064,54,1,1); insert into DET values (10064,64,5,1); insert into DET values (10064,70,12,1); insert into DET values (10065,1,55,1); insert into DET values (10065,19,42,5); insert into DET values (10066,31,8,1); insert into DET values (10066,41,1,1); insert into DET values (10066,54,9,1); insert into DET values (10067,11,1,1); insert into DET values (10067,31,1,1); insert into DET values (10067,70,5,1); insert into DET values (10068,2,1,1); insert into DET values (10068,34,1,1); insert into DET values (10069,21,30,1); insert into DET values (10069,46,6,1); insert into DET values (10070,7,8,1); insert into DET values (10070,24,30,1); insert into DET values (10070,43,1,1); insert into DET values (10071,1,1,1); insert into DET values (10071,29,42,1); insert into DET values (10071,54,14,1); insert into DET values (10072,16,1,1); insert into DET values (10072,18,30,1); insert into DET values (10072,26,18,1); insert into DET values (10072,45,35,1); insert into DET values (10073,53,60,1); insert into DET values (10073,64,35,1); insert into DET values (10074,8,1,1); insert into DET values (10074,24,1,1); insert into DET values (10074,41,30,1); insert into DET values (10074,42,60,1); insert into DET values (10075,9,21,1); insert into DET values (10075,14,1,1); insert into DET values (10075,62,2,1); insert into DET values (10076,40,7,1); insert into DET values (10077,1,28,1); insert into DET values (10077,31,1,1); insert into DET values (10078,41,7,1); insert into DET values (10078,51,24,1); insert into DET values (10078,60,8,1); insert into DET values (10079,23,30,1); insert into DET values (10079,47,18,1); insert into DET values (10079,60,1,1); insert into DET values (10080,2,30,1); insert into DET values (10080,12,60,1); insert into DET values (10080,30,24,10); insert into DET values (10081,30,1,10); insert into DET values (10081,65,1,1); insert into DET values (10081,70,1,1); insert into DET values (10082,11,21,1); insert into DET values (10082,47,1,1); insert into DET values (10082,70,40,1); insert into DET values (10082,77,1,1); insert into DET values (10083,2,28,1); insert into DET values (10083,16,30,1); insert into DET values (10083,19,1,5); insert into DET values (10083,73,3,1); insert into DET values (10084,2,1,1); insert into DET values (10084,14,9,1); insert into DET values (10084,54,1,1); insert into DET values (10084,60,1,1); insert into DET values (10085,41,30,1); insert into DET values (10085,61,1,1); insert into DET values (10085,71,1,1); insert into DET values (10086,8,5,1); insert into DET values (10086,38,1,1); insert into DET values (10087,24,21,1); insert into DET values (10087,34,1,1); insert into DET values (10087,60,35,1); insert into DET values (10088,13,30,1); insert into DET values (10088,34,4,1); insert into DET values (10089,1,4,1); insert into DET values (10089,42,5,1); insert into DET values (10089,45,1,1); insert into DET values (10090,1,9,1); insert into DET values (10090,4,1,1); insert into DET values (10090,16,30,1); insert into DET values (10090,73,1,1); insert into DET values (10091,24,60,1); insert into DET values (10091,26,12,1); insert into DET values (10091,38,70,1); insert into DET values (10092,19,1,5); insert into DET values (10092,31,1,1); insert into DET values (10092,34,21,1); insert into DET values (10093,17,4,1); insert into DET values (10093,21,1,1); insert into DET values (10093,30,1,10); insert into DET values (10093,53,40,1); insert into DET values (10094,8,35,1); insert into DET values (10094,13,28,1); insert into DET values (10094,19,35,5); insert into DET values (10094,26,24,1); insert into DET values (10094,28,1,1); insert into DET values (10095,26,1,1); insert into DET values (10095,35,1,1); insert into DET values (10095,55,1,1); insert into DET values (10095,68,5,1); insert into DET values (10096,2,30,1); insert into DET values (10096,12,60,1); insert into DET values (10096,29,35,1); insert into DET values (10097,29,1,1); insert into DET values (10097,52,12,1); insert into DET values (10097,59,60,1); insert into DET values (10097,64,35,1); insert into DET values (10098,7,1,1); insert into DET values (10098,32,40,1); insert into DET values (10098,36,21,1); insert into DET values (10098,53,45,1); insert into DET values (10098,56,55,1); insert into DET values (10098,59,9,1); insert into DET values (10099,35,4,1); insert into DET values (10099,51,24,1); insert into DET values (10100,22,5,1); insert into DET values (10100,29,1,1); insert into DET values (10100,76,2,1); insert into DET values (10101,1,8,1); insert into DET values (10101,72,1,1); insert into DET values (10102,13,1,1); insert into DET values (10102,29,1,1); insert into DET values (10102,39,5,1); insert into DET values (10102,59,14,1); insert into DET values (10103,36,1,1); insert into DET values (10103,38,1,1); insert into DET values (10104,2,70,1); insert into DET values (10104,13,35,1); insert into DET values (10104,52,3,1); insert into DET values (10104,76,30,1); insert into DET values (10105,28,50,1); insert into DET values (10105,47,1,1); insert into DET values (10106,21,1,1); insert into DET values (10106,59,1,1); insert into DET values (10107,3,1,1); insert into DET values (10107,34,1,1); insert into DET values (10107,64,1,1); insert into DET values (10107,68,50,1); insert into DET values (10108,53,1,1); insert into DET values (10108,71,50,1); insert into DET values (10109,42,70,1); insert into DET values (10109,68,70,1); insert into DET values (10109,70,24,1); insert into DET values (10109,75,1,1); insert into DET values (10110,1,8,1); insert into DET values (10110,24,30,1); insert into DET values (10110,55,1,1); insert into DET values (10110,72,14,1); insert into DET values (10111,62,30,1); insert into DET values (10112,35,1,1); insert into DET values (10113,18,1,1); insert into DET values (10113,35,21,1); insert into DET values (10114,11,4,1); insert into DET values (10114,41,12,1); insert into DET values (10114,71,1,1); insert into DET values (10115,56,8,1); insert into DET values (10115,57,8,1); insert into DET values (10115,77,5,1); insert into DET values (10116,24,7,1); insert into DET values (10116,36,1,1); insert into DET values (10116,54,70,1); insert into DET values (10116,55,1,1); insert into DET values (10117,4,1,1); insert into DET values (10117,62,2,1); insert into DET values (10117,77,28,1); insert into DET values (10118,38,30,1); insert into DET values (10118,39,42,1); insert into DET values (10118,59,4,1); insert into DET values (10118,64,18,1); insert into DET values (10119,22,1,1); insert into DET values (10119,44,1,1); insert into DET values (10120,32,1,1); insert into DET values (10120,49,4,1); insert into DET values (10121,27,30,5); insert into DET values (10121,55,1,1); insert into DET values (10122,1,2,1); insert into DET values (10123,1,36,1); insert into DET values (10123,18,35,1); insert into DET values (10123,53,40,1); insert into DET values (10124,17,7,1); insert into DET values (10124,32,24,1); insert into DET values (10124,52,60,1); insert into DET values (10125,8,4,1); insert into DET values (10125,24,30,1); insert into DET values (10126,3,28,1); insert into DET values (10126,46,1,1); insert into DET values (10126,59,1,1); insert into DET values (10127,6,5,1); insert into DET values (10127,71,5,1); insert into DET values (10128,21,60,1); insert into DET values (10128,22,2,1); insert into DET values (10128,54,18,1); insert into DET values (10129,62,1,1); insert into DET values (10130,34,12,1); insert into DET values (10130,72,30,1); insert into DET values (10130,75,30,1); insert into DET values (10131,42,50,1); insert into DET values (10131,50,40,1); insert into DET values (10131,60,60,1); insert into DET values (10132,12,1,1); insert into DET values (10132,28,1,1); insert into DET values (10132,30,1,10); insert into DET values (10132,53,30,1); insert into DET values (10133,31,21,1); insert into DET values (10133,38,12,1); insert into DET values (10133,56,12,1); insert into DET values (10134,52,1,1); insert into DET values (10135,39,5,1); insert into DET values (10136,18,24,1); insert into DET values (10137,13,1,1); insert into DET values (10137,68,1,1); insert into DET values (10137,72,1,1); insert into DET values (10138,36,12,1); insert into DET values (10138,66,12,1); insert into DET values (10139,60,1,1); insert into DET values (10140,31,40,1); insert into DET values (10141,27,50,5); insert into DET values (10141,60,50,1); insert into DET values (10142,4,1,1); insert into DET values (10142,45,1,1); insert into DET values (10143,35,12,1); insert into DET values (10143,41,50,1); insert into DET values (10144,1,1,1); insert into DET values (10144,24,35,1); insert into DET values (10144,53,1,1); insert into DET values (10144,72,4,1); insert into DET values (10145,1,8,1); insert into DET values (10145,34,12,1); insert into DET values (10145,55,1,1); insert into DET values (10146,26,1,1); insert into DET values (10146,34,6,1); insert into DET values (10147,11,1,1); insert into DET values (10147,18,1,1); insert into DET values (10147,51,1,1); insert into DET values (10148,30,12,10); insert into DET values (10148,40,5,1); insert into DET values (10148,43,24,1); insert into DET values (10148,51,24,1); insert into DET values (10149,27,30,5); insert into DET values (10149,35,40,1); insert into DET values (10150,29,5,1); insert into DET values (10150,53,9,1); insert into DET values (10150,67,4,1); insert into DET values (10151,1,2,1); insert into DET values (10151,75,4,1); insert into DET values (10152,30,1,10); insert into DET values (10152,47,5,1); insert into DET values (10152,76,1,1); insert into DET values (10153,32,1,1); insert into DET values (10153,60,1,1); insert into DET values (10154,7,6,1); insert into DET values (10154,55,7,1); insert into DET values (10154,68,2,1); insert into DET values (10155,43,30,1); insert into DET values (10155,62,1,1); insert into DET values (10155,63,1,1); insert into DET values (10156,1,1,1); insert into DET values (10156,4,1,1); insert into DET values (10156,34,1,1); insert into DET values (10157,2,35,1); insert into DET values (10157,35,1,1); insert into DET values (10157,73,50,1); insert into DET values (10158,11,30,1); insert into DET values (10158,34,12,1); insert into DET values (10158,36,12,1); insert into DET values (10158,54,1,1); insert into DET values (10158,55,1,1); insert into DET values (10159,1,40,1); insert into DET values (10159,51,6,1); insert into DET values (10160,31,3,1); insert into DET values (10160,71,2,1); insert into DET values (10161,11,14,1); insert into DET values (10161,59,21,1); insert into DET values (10161,67,12,1); insert into DET values (10162,16,6,1); insert into DET values (10162,33,6,1); insert into DET values (10162,75,1,1); insert into DET values (10163,1,8,1); insert into DET values (10163,60,48,1); insert into DET values (10163,64,1,1); insert into DET values (10164,47,6,1); insert into DET values (10165,1,60,1); insert into DET values (10165,55,35,1); insert into DET values (10166,17,1,1); insert into DET values (10166,32,1,1); insert into DET values (10166,47,1,1); insert into DET values (10167,30,30,10); insert into DET values (10167,44,18,1); insert into DET values (10167,61,12,1); insert into DET values (10168,12,80,1); insert into DET values (10168,40,16,1); insert into DET values (10168,76,1,1); insert into DET values (10169,17,42,1); insert into DET values (10169,68,1,1); insert into DET values (10170,71,4,1); insert into DET values (10170,75,12,1); insert into DET values (10170,77,24,1); insert into DET values (10171,19,2,5); insert into DET values (10171,22,1,1); insert into DET values (10172,33,30,1); insert into DET values (10172,42,6,1); insert into DET values (10172,72,5,1); insert into DET values (10173,29,1,1); insert into DET values (10173,59,5,1); insert into DET values (10174,1,8,1); insert into DET values (10175,30,12,10); insert into DET values (10175,36,1,1); insert into DET values (10175,59,35,1); insert into DET values (10176,55,5,1); insert into DET values (10176,67,50,1); insert into DET values (10176,68,5,1); insert into DET values (10176,71,1,1); insert into DET values (10177,17,30,1); insert into DET values (10177,31,35,1); insert into DET values (10177,32,6,1); insert into DET values (10178,44,1,1); insert into DET values (10178,46,1,1); insert into DET values (10178,73,21,1); insert into DET values (10179,64,14,1); insert into DET values (10180,14,1,1); insert into DET values (10180,16,1,1); insert into DET values (10180,45,1,1); insert into DET values (10181,4,30,1); insert into DET values (10181,17,40,1); insert into DET values (10182,32,1,1); insert into DET values (10182,44,4,1); insert into DET values (10183,1,3,1); insert into DET values (10183,23,14,1); insert into DET values (10183,49,6,1); insert into DET values (10184,12,1,1); insert into DET values (10184,19,1,5); insert into DET values (10184,46,3,1); insert into DET values (10185,24,4,1); insert into DET values (10185,59,8,1); insert into DET values (10185,65,1,1); insert into DET values (10186,13,28,1); insert into DET values (10186,40,40,1); insert into DET values (10186,50,16,1); insert into DET values (10186,56,1,1); insert into DET values (10187,35,60,1); insert into DET values (10187,43,12,1); insert into DET values (10188,24,28,1); insert into DET values (10188,62,1,1); insert into DET values (10189,36,30,1); insert into DET values (10190,33,36,1); insert into DET values (10191,24,1,1); insert into DET values (10191,73,30,1); insert into DET values (10192,59,6,1); insert into DET values (10192,70,4,1); insert into DET values (10193,1,45,1); insert into DET values (10193,43,110,1); insert into DET values (10193,54,1,1); insert into DET values (10194,52,35,1); insert into DET values (10194,69,1,1); insert into DET values (10195,38,21,1); insert into DET values (10195,70,12,1); insert into DET values (10196,1,1,1); insert into DET values (10196,24,42,1); insert into DET values (10196,38,30,1); insert into DET values (10197,21,3,1); insert into DET values (10197,46,24,1); insert into DET values (10197,58,1,1); insert into DET values (10198,38,6,1); insert into DET values (10198,46,6,1); insert into DET values (10198,56,18,1); insert into DET values (10198,76,30,1); insert into DET values (10199,1,66,1); insert into DET values (10199,3,40,1); insert into DET values (10199,39,40,1); insert into DET values (10200,11,28,1); insert into DET values (10201,1,1,1); insert into DET values (10202,1,1,1); insert into DET values (10202,51,42,1); insert into DET values (10202,73,18,1); insert into DET values (10203,1,1,1); insert into DET values (10203,70,1,1); insert into DET values (10204,31,70,1); insert into DET values (10204,45,35,1); insert into DET values (10204,59,50,1); insert into DET values (10205,31,12,1); insert into DET values (10205,40,28,1); insert into DET values (10205,41,56,1); insert into DET values (10205,62,1,1); insert into DET values (10205,73,35,1); insert into DET values (10206,34,60,1); insert into DET values (10206,43,12,1); insert into DET values (10207,13,1,1); insert into DET values (10207,35,1,1); insert into DET values (10207,46,40,1); insert into DET values (10208,56,12,1); insert into DET values (10209,1,4,1); insert into DET values (10209,4,1,1); insert into DET values (10209,52,18,1); insert into DET values (10210,11,12,1); insert into DET values (10210,14,28,1); insert into DET values (10210,39,60,1); insert into DET values (10210,57,1,1); insert into DET values (10210,67,30,1); insert into DET values (10211,39,12,1); insert into DET values (10211,41,40,1); insert into DET values (10211,77,1,1); insert into DET values (10212,31,8,1); insert into DET values (10212,70,1,1); insert into DET values (10213,38,1,1); insert into DET values (10213,48,30,1); insert into DET values (10213,76,1,1); insert into DET values (10214,19,4,5); insert into DET values (10214,21,6,1); insert into DET values (10214,69,35,1); insert into DET values (10214,76,1,1); insert into DET values (10215,21,1,1); insert into DET values (10215,29,9,1); insert into DET values (10216,35,30,1); insert into DET values (10216,74,30,1); insert into DET values (10217,41,28,1); insert into DET values (10217,59,6,1); insert into DET values (10218,29,5,1); insert into DET values (10218,56,1,1); insert into DET values (10219,41,56,1); insert into DET values (10219,43,1,1); insert into DET values (10219,70,4,1); insert into DET values (10220,13,1,1); insert into DET values (10220,33,9,1); insert into DET values (10220,69,30,1); insert into DET values (10221,54,1,1); insert into DET values (10221,55,12,1); insert into DET values (10221,64,1,1); insert into DET values (10222,2,70,1); insert into DET values (10222,4,80,1); insert into DET values (10223,17,1,1); insert into DET values (10223,19,1,5); insert into DET values (10223,56,5,1); insert into DET values (10224,24,50,1); insert into DET values (10224,70,1,1); insert into DET values (10225,11,70,1); insert into DET values (10225,35,1,1); insert into DET values (10225,42,55,1); insert into DET values (10225,52,1,1); insert into DET values (10225,77,63,1); insert into DET values (10226,9,1,1); insert into DET values (10226,29,110,1); insert into DET values (10226,31,14,1); insert into DET values (10226,33,21,1); insert into DET values (10226,59,42,1); insert into DET values (10227,1,4,1); insert into DET values (10227,55,14,1); insert into DET values (10228,53,3,1); insert into DET values (10228,64,1,1); insert into DET values (10229,35,7,1); insert into DET values (10229,74,1,1); insert into DET values (10230,27,36,5); insert into DET values (10230,56,40,1); insert into DET values (10231,62,12,1); insert into DET values (10232,30,1,10); insert into DET values (10232,49,1,1); insert into DET values (10232,61,1,1); insert into DET values (10233,33,36,1); insert into DET values (10233,44,40,1); insert into DET values (10234,24,21,1); insert into DET values (10234,53,30,1); insert into DET values (10234,69,2,1); insert into DET values (10235,75,1,1); insert into DET values (10235,76,30,1); insert into DET values (10235,77,1,1); insert into DET values (10236,5,40,1); insert into DET values (10236,69,30,1); insert into DET values (10237,19,1,5); insert into DET values (10237,62,18,1); insert into DET values (10237,76,4,1); insert into DET values (10238,26,12,1); insert into DET values (10238,35,4,1); insert into DET values (10238,65,1,1); insert into DET values (10238,75,9,1); insert into DET values (10239,1,1,1); insert into DET values (10240,32,49,1); insert into DET values (10240,33,18,1); insert into DET values (10240,46,1,1); insert into DET values (10240,55,50,1); insert into DET values (10241,8,12,1); insert into DET values (10241,21,1,1); insert into DET values (10241,43,1,1); insert into DET values (10242,2,1,1); insert into DET values (10242,70,1,1); insert into DET values (10242,75,40,1); insert into DET values (10243,34,1,1); insert into DET values (10243,75,12,1); insert into DET values (10244,43,6,1); insert into DET values (10244,54,8,1); insert into DET values (10245,30,28,10); insert into DET values (10245,35,1,1); insert into DET values (10246,40,1,1); insert into DET values (10247,1,35,1); insert into DET values (10247,46,50,1); insert into DET values (10247,76,50,1); insert into DET values (10248,11,12,1); insert into DET values (10248,42,1,1); insert into DET values (10248,72,5,1); insert into DET values (10249,14,9,1); insert into DET values (10249,51,40,1); insert into DET values (10250,41,1,1); insert into DET values (10250,51,35,1); insert into DET values (10250,65,1,1); insert into DET values (10251,22,6,1); insert into DET values (10251,57,1,1); insert into DET values (10251,65,1,1); insert into DET values (10252,1,40,1); insert into DET values (10252,33,1,1); insert into DET values (10252,60,40,1); insert into DET values (10253,31,1,1); insert into DET values (10253,39,42,1); insert into DET values (10253,49,40,1); insert into DET values (10254,24,1,1); insert into DET values (10254,55,21,1); insert into DET values (10254,74,21,1); insert into DET values (10255,2,1,1); insert into DET values (10255,16,35,1); insert into DET values (10255,36,1,1); insert into DET values (10255,59,30,1); insert into DET values (10256,53,1,1); insert into DET values (10256,77,12,1); insert into DET values (10257,27,1,5); insert into DET values (10257,39,6,1); insert into DET values (10257,77,1,1); insert into DET values (10258,2,50,1); insert into DET values (10258,5,65,1); insert into DET values (10258,32,6,1); insert into DET values (10259,21,1,1); insert into DET values (10259,37,1,1); insert into DET values (10260,41,16,1); insert into DET values (10260,57,50,1); insert into DET values (10260,62,1,1); insert into DET values (10260,70,21,1); insert into DET values (10261,21,1,1); insert into DET values (10261,35,1,1); insert into DET values (10262,5,12,1); insert into DET values (10262,7,1,1); insert into DET values (10262,56,2,1); insert into DET values (10263,16,60,1); insert into DET values (10263,24,28,1); insert into DET values (10263,30,60,10); insert into DET values (10263,74,36,1); insert into DET values (10264,2,35,1); insert into DET values (10264,41,1,1); insert into DET values (10265,17,30,1); insert into DET values (10265,70,1,1); insert into DET values (10266,12,12,1); insert into DET values (10267,40,50,1); insert into DET values (10267,59,70,1); insert into DET values (10267,76,1,1); insert into DET values (10268,29,1,1); insert into DET values (10268,72,4,1); insert into DET values (10269,33,60,1); insert into DET values (10269,72,1,1); insert into DET values (10270,36,30,1); insert into DET values (10270,43,1,1); insert into DET values (10271,33,24,1); insert into DET values (10272,1,6,1); insert into DET values (10272,31,40,1); insert into DET values (10272,72,24,1); insert into DET values (10273,1,24,1); insert into DET values (10273,31,1,1); insert into DET values (10273,33,1,1); insert into DET values (10273,40,60,1); insert into DET values (10273,76,33,1); insert into DET values (10274,71,1,1); insert into DET values (10274,72,7,1); insert into DET values (10275,24,12,1); insert into DET values (10275,59,6,1); insert into DET values (10276,1,1,1); insert into DET values (10276,13,1,1); insert into DET values (10277,28,1,1); insert into DET values (10277,62,12,1); insert into DET values (10278,44,16,1); insert into DET values (10278,59,1,1); insert into DET values (10278,63,8,1); insert into DET values (10278,73,1,1); insert into DET values (10279,17,1,1); insert into DET values (10280,24,12,1); insert into DET values (10280,55,1,1); insert into DET values (10280,75,30,1); insert into DET values (10281,19,1,5); insert into DET values (10281,24,6,1); insert into DET values (10281,35,4,1); insert into DET values (10282,30,6,10); insert into DET values (10282,57,2,1); insert into DET values (10283,1,1,1); insert into DET values (10283,19,18,5); insert into DET values (10283,60,35,1); insert into DET values (10283,72,3,1); insert into DET values (10284,27,1,5); insert into DET values (10284,44,21,1); insert into DET values (10284,60,1,1); insert into DET values (10284,67,5,1); insert into DET values (10285,1,45,1); insert into DET values (10285,40,40,1); insert into DET values (10285,53,36,1); insert into DET values (10286,35,1,1); insert into DET values (10286,62,40,1); insert into DET values (10287,16,40,1); insert into DET values (10287,34,1,1); insert into DET values (10287,46,1,1); insert into DET values (10288,54,1,1); insert into DET values (10288,68,3,1); insert into DET values (10289,3,30,1); insert into DET values (10289,64,9,1); insert into DET values (10290,5,1,1); insert into DET values (10290,29,1,1); insert into DET values (10290,49,1,1); insert into DET values (10290,77,1,1); insert into DET values (10291,13,1,1); insert into DET values (10291,44,24,1); insert into DET values (10291,51,2,1); insert into DET values (10292,1,1,1); insert into DET values (10293,18,12,1); insert into DET values (10293,24,1,1); insert into DET values (10293,63,5,1); insert into DET values (10293,75,6,1); insert into DET values (10294,1,18,1); insert into DET values (10294,17,1,1); insert into DET values (10294,43,1,1); insert into DET values (10294,60,21,1); insert into DET values (10294,75,6,1); insert into DET values (10295,56,4,1); insert into DET values (10296,11,12,1); insert into DET values (10296,16,30,1); insert into DET values (10296,69,1,1); insert into DET values (10297,39,60,1); insert into DET values (10297,72,1,1); insert into DET values (10298,2,40,1); insert into DET values (10298,36,40,1); insert into DET values (10298,59,30,1); insert into DET values (10298,62,1,1); insert into DET values (10299,19,1,5); insert into DET values (10299,70,1,1); insert into DET values (10300,66,30,1); insert into DET values (10300,68,1,1); insert into DET values (10301,40,1,1); insert into DET values (10301,56,1,1); insert into DET values (10302,17,40,1); insert into DET values (10302,28,28,1); insert into DET values (10302,43,12,1); insert into DET values (10303,40,40,1); insert into DET values (10303,65,30,1); insert into DET values (10303,68,1,1); insert into DET values (10304,49,30,1); insert into DET values (10304,59,1,1); insert into DET values (10304,71,2,1); insert into DET values (10305,18,1,1); insert into DET values (10305,29,1,1); insert into DET values (10305,39,30,1); insert into DET values (10306,30,1,10); insert into DET values (10306,53,1,1); insert into DET values (10306,54,5,1); insert into DET values (10307,62,1,1); insert into DET values (10307,68,3,1); insert into DET values (10308,69,1,1); insert into DET values (10308,70,5,1); insert into DET values (10309,4,1,1); insert into DET values (10309,6,30,1); insert into DET values (10309,42,2,1); insert into DET values (10309,43,1,1); insert into DET values (10309,71,3,1); insert into DET values (10310,16,1,1); insert into DET values (10310,62,5,1); insert into DET values (10311,42,6,1); insert into DET values (10311,69,7,1); insert into DET values (10312,28,4,1); insert into DET values (10312,43,24,1); insert into DET values (10312,53,1,1); insert into DET values (10312,75,1,1); insert into DET values (10313,36,12,1); insert into DET values (10314,32,40,1); insert into DET values (10314,58,30,1); insert into DET values (10314,62,1,1); insert into DET values (10315,34,14,1); insert into DET values (10315,70,30,1); insert into DET values (10316,41,1,1); insert into DET values (10316,62,70,1); insert into DET values (10317,1,1,1); insert into DET values (10318,41,1,1); insert into DET values (10318,76,6,1); insert into DET values (10319,17,8,1); insert into DET values (10319,28,14,1); insert into DET values (10319,76,30,1); insert into DET values (10320,71,30,1); insert into DET values (10321,35,1,1); insert into DET values (10322,52,1,1); insert into DET values (10323,1,5,1); insert into DET values (10323,39,4,1); insert into DET values (10324,16,21,1); insert into DET values (10324,35,70,1); insert into DET values (10324,46,30,1); insert into DET values (10324,59,40,1); insert into DET values (10324,63,80,1); insert into DET values (10325,6,6,1); insert into DET values (10325,13,12,1); insert into DET values (10325,14,9,1); insert into DET values (10325,31,4,1); insert into DET values (10325,72,40,1); insert into DET values (10326,4,24,1); insert into DET values (10326,57,16,1); insert into DET values (10326,75,50,1); insert into DET values (10327,2,1,1); insert into DET values (10327,11,50,1); insert into DET values (10327,30,35,10); insert into DET values (10327,58,30,1); insert into DET values (10328,59,9,1); insert into DET values (10328,65,40,1); insert into DET values (10328,68,1,1); insert into DET values (10329,19,1,5); insert into DET values (10329,30,8,10); insert into DET values (10329,38,1,1); insert into DET values (10329,56,12,1); insert into DET values (10330,26,50,1); insert into DET values (10330,72,1,1); insert into DET values (10331,54,1,1); insert into DET values (10332,18,40,1); insert into DET values (10332,42,1,1); insert into DET values (10332,47,16,1); insert into DET values (10333,14,1,1); insert into DET values (10333,21,1,1); insert into DET values (10333,71,40,1); insert into DET values (10334,52,8,1); insert into DET values (10334,68,1,1); insert into DET values (10335,2,7,1); insert into DET values (10335,31,1,1); insert into DET values (10335,32,6,1); insert into DET values (10335,51,48,1); insert into DET values (10336,4,18,1); insert into DET values (10337,23,40,1); insert into DET values (10337,26,24,1); insert into DET values (10337,36,1,1); insert into DET values (10337,37,28,1); insert into DET values (10337,72,1,1); insert into DET values (10338,17,1,1); insert into DET values (10338,30,1,10); insert into DET values (10339,4,1,1); insert into DET values (10339,17,70,1); insert into DET values (10339,62,28,1); insert into DET values (10340,18,1,1); insert into DET values (10340,41,12,1); insert into DET values (10340,43,40,1); insert into DET values (10341,33,8,1); insert into DET values (10341,59,9,1); insert into DET values (10342,2,24,1); insert into DET values (10342,31,56,1); insert into DET values (10342,36,40,1); insert into DET values (10342,55,40,1); insert into DET values (10343,64,50,1); insert into DET values (10343,68,4,1); insert into DET values (10343,76,1,1); insert into DET values (10344,4,35,1); insert into DET values (10344,8,70,1); insert into DET values (10345,8,70,1); insert into DET values (10345,19,80,5); insert into DET values (10345,42,9,1); insert into DET values (10346,17,36,1); insert into DET values (10346,56,1,1); insert into DET values (10347,1,1,1); insert into DET values (10347,39,50,1); insert into DET values (10347,40,4,1); insert into DET values (10347,75,6,1); insert into DET values (10348,1,1,1); insert into DET values (10348,23,1,1); insert into DET values (10349,54,24,1); insert into DET values (10350,50,1,1); insert into DET values (10350,69,18,1); insert into DET values (10351,38,1,1); insert into DET values (10351,41,13,1); insert into DET values (10351,44,77,1); insert into DET values (10351,65,1,1); insert into DET values (10352,24,1,1); insert into DET values (10352,54,1,1); insert into DET values (10353,11,12,1); insert into DET values (10353,38,50,1); insert into DET values (10354,1,12,1); insert into DET values (10354,29,4,1); insert into DET values (10355,24,1,1); insert into DET values (10355,57,1,1); insert into DET values (10356,31,30,1); insert into DET values (10356,55,12,1); insert into DET values (10356,69,1,1); insert into DET values (10357,1,30,1); insert into DET values (10357,26,16,1); insert into DET values (10357,60,8,1); insert into DET values (10358,24,1,1); insert into DET values (10358,34,1,1); insert into DET values (10358,36,1,1); insert into DET values (10359,16,56,1); insert into DET values (10359,31,70,1); insert into DET values (10359,60,80,1); insert into DET values (10360,28,30,1); insert into DET values (10360,29,35,1); insert into DET values (10360,38,1,1); insert into DET values (10360,49,35,1); insert into DET values (10360,54,28,1); insert into DET values (10361,39,54,1); insert into DET values (10361,60,55,1); insert into DET values (10362,1,50,1); insert into DET values (10362,51,1,1); insert into DET values (10362,54,24,1); insert into DET values (10363,31,1,1); insert into DET values (10363,75,12,1); insert into DET values (10363,76,12,1); insert into DET values (10364,69,30,1); insert into DET values (10364,71,5,1); insert into DET values (10365,11,24,1); insert into DET values (10366,65,5,1); insert into DET values (10366,77,5,1); insert into DET values (10367,34,36,1); insert into DET values (10367,54,18,1); insert into DET values (10367,65,1,1); insert into DET values (10367,77,7,1); insert into DET values (10368,21,5,1); insert into DET values (10368,28,13,1); insert into DET values (10368,57,1,1); insert into DET values (10368,64,35,1); insert into DET values (10369,29,1,1); insert into DET values (10369,56,18,1); insert into DET values (10370,1,1,1); insert into DET values (10370,64,30,1); insert into DET values (10370,74,1,1); insert into DET values (10371,36,6,1); insert into DET values (10372,1,12,1); insert into DET values (10372,38,40,1); insert into DET values (10372,60,70,1); insert into DET values (10372,72,42,1); insert into DET values (10373,58,80,1); insert into DET values (10373,71,50,1); insert into DET values (10374,31,30,1); insert into DET values (10374,58,1,1); insert into DET values (10375,14,1,1); insert into DET values (10375,54,1,1); insert into DET values (10376,31,42,1); insert into DET values (10377,28,1,1); insert into DET values (10377,39,1,1); insert into DET values (10378,71,6,1); insert into DET values (10379,41,8,1); insert into DET values (10379,63,16,1); insert into DET values (10379,65,1,1); insert into DET values (10380,30,18,10); insert into DET values (10380,53,1,1); insert into DET values (10380,60,6,1); insert into DET values (10380,70,30,1); insert into DET values (10381,74,14,1); insert into DET values (10382,5,32,1); insert into DET values (10382,18,9,1); insert into DET values (10382,29,14,1); insert into DET values (10382,33,60,1); insert into DET values (10382,74,50,1); insert into DET values (10383,13,1,1); insert into DET values (10383,50,1,1); insert into DET values (10383,56,1,1); insert into DET values (10384,1,28,1); insert into DET values (10384,60,1,1); insert into DET values (10385,7,1,1); insert into DET values (10385,60,1,1); insert into DET values (10385,68,8,1); insert into DET values (10386,24,1,1); insert into DET values (10386,34,1,1); insert into DET values (10387,24,1,1); insert into DET values (10387,28,6,1); insert into DET values (10387,59,12,1); insert into DET values (10387,71,1,1); insert into DET values (10388,45,1,1); insert into DET values (10388,52,1,1); insert into DET values (10388,53,40,1); insert into DET values (10389,1,16,1); insert into DET values (10389,55,1,1); insert into DET values (10389,62,1,1); insert into DET values (10389,70,30,1); insert into DET values (10390,31,60,1); insert into DET values (10390,35,40,1); insert into DET values (10390,46,45,1); insert into DET values (10390,72,24,1); insert into DET values (10391,13,18,1); insert into DET values (10392,69,50,1); insert into DET values (10393,1,7,1); insert into DET values (10393,2,1,1); insert into DET values (10393,14,42,1); insert into DET values (10393,26,70,1); insert into DET values (10393,31,32,1); insert into DET values (10394,13,1,1); insert into DET values (10394,62,1,1); insert into DET values (10395,46,28,1); insert into DET values (10395,53,70,1); insert into DET values (10395,69,8,1); insert into DET values (10396,23,40,1); insert into DET values (10396,71,60,1); insert into DET values (10396,72,21,1); insert into DET values (10397,21,1,1); insert into DET values (10397,51,18,1); insert into DET values (10398,35,30,1); insert into DET values (10398,55,120,1); insert into DET values (10399,68,60,1); insert into DET values (10399,71,30,1); insert into DET values (10399,76,35,1); insert into DET values (10399,77,14,1); insert into DET values (10400,29,21,1); insert into DET values (10400,35,35,1); insert into DET values (10400,49,30,1); insert into DET values (10401,30,18,10); insert into DET values (10401,56,70,1); insert into DET values (10401,65,1,1); insert into DET values (10401,71,60,1); insert into DET values (10402,23,60,1); insert into DET values (10402,63,65,1); insert into DET values (10403,16,21,1); insert into DET values (10403,48,70,1); insert into DET values (10404,26,30,1); insert into DET values (10404,42,40,1); insert into DET values (10404,49,30,1); insert into DET values (10405,3,50,1); insert into DET values (10406,1,1,1); insert into DET values (10406,21,30,1); insert into DET values (10406,28,42,1); insert into DET values (10406,36,5,1); insert into DET values (10406,40,2,1); insert into DET values (10407,11,30,1); insert into DET values (10407,69,1,1); insert into DET values (10407,71,1,1); insert into DET values (10408,37,1,1); insert into DET values (10408,54,6,1); insert into DET values (10408,62,35,1); insert into DET values (10409,14,12,1); insert into DET values (10409,21,12,1); insert into DET values (10410,33,49,1); insert into DET values (10410,59,16,1); insert into DET values (10411,41,1,1); insert into DET values (10411,44,40,1); insert into DET values (10411,59,9,1); insert into DET values (10412,14,1,1); insert into DET values (10413,1,24,1); insert into DET values (10413,62,40,1); insert into DET values (10413,76,14,1); insert into DET values (10414,19,18,5); insert into DET values (10414,33,50,1); insert into DET values (10415,17,2,1); insert into DET values (10415,33,1,1); insert into DET values (10416,19,1,5); insert into DET values (10416,53,1,1); insert into DET values (10416,57,1,1); insert into DET values (10417,38,50,1); insert into DET values (10417,46,2,1); insert into DET values (10417,68,36,1); insert into DET values (10417,77,35,1); insert into DET values (10418,2,60,1); insert into DET values (10418,47,55,1); insert into DET values (10418,61,16,1); insert into DET values (10418,74,1,1); insert into DET values (10419,60,60,1); insert into DET values (10419,69,1,1); insert into DET values (10420,9,1,1); insert into DET values (10420,13,2,1); insert into DET values (10420,70,8,1); insert into DET values (10420,73,1,1); insert into DET values (10421,19,4,5); insert into DET values (10421,26,30,1); insert into DET values (10421,53,1,1); insert into DET values (10421,77,1,1); insert into DET values (10422,26,2,1); insert into DET values (10423,31,14,1); insert into DET values (10423,59,1,1); insert into DET values (10424,35,60,1); insert into DET values (10424,38,49,1); insert into DET values (10424,68,30,1); insert into DET values (10425,55,1,1); insert into DET values (10425,76,1,1); insert into DET values (10426,56,5,1); insert into DET values (10426,64,7,1); insert into DET values (10427,14,35,1); insert into DET values (10428,46,1,1); insert into DET values (10429,50,40,1); insert into DET values (10429,63,35,1); insert into DET values (10430,17,45,1); insert into DET values (10430,21,50,1); insert into DET values (10430,56,30,1); insert into DET values (10430,59,70,1); insert into DET values (10431,17,50,1); insert into DET values (10431,40,50,1); insert into DET values (10431,47,30,1); insert into DET values (10432,26,1,1); insert into DET values (10432,54,40,1); insert into DET values (10433,56,28,1); insert into DET values (10434,11,6,1); insert into DET values (10434,76,18,1); insert into DET values (10435,2,1,1); insert into DET values (10435,22,12,1); insert into DET values (10435,72,1,1); insert into DET values (10436,46,5,1); insert into DET values (10436,56,40,1); insert into DET values (10436,64,30,1); insert into DET values (10436,75,24,1); insert into DET values (10437,53,1,1); insert into DET values (10438,19,1,5); insert into DET values (10438,34,1,1); insert into DET values (10438,57,1,1); insert into DET values (10439,12,1,1); insert into DET values (10439,16,16,1); insert into DET values (10439,64,6,1); insert into DET values (10439,74,30,1); insert into DET values (10440,2,45,1); insert into DET values (10440,16,49,1); insert into DET values (10440,29,24,1); insert into DET values (10440,61,90,1); insert into DET values (10441,27,50,5); insert into DET values (10442,11,30,1); insert into DET values (10442,54,80,1); insert into DET values (10442,66,60,1); insert into DET values (10443,11,6,1); insert into DET values (10443,28,12,1); insert into DET values (10444,17,1,1); insert into DET values (10444,26,1,1); insert into DET values (10444,35,8,1); insert into DET values (10444,41,30,1); insert into DET values (10445,39,6,1); insert into DET values (10445,54,1,1); insert into DET values (10446,19,12,5); insert into DET values (10446,24,1,1); insert into DET values (10446,31,3,1); insert into DET values (10446,52,1,1); insert into DET values (10447,19,40,5); insert into DET values (10447,65,35,1); insert into DET values (10447,71,2,1); insert into DET values (10448,26,6,1); insert into DET values (10448,40,1,1); insert into DET values (10449,1,14,1); insert into DET values (10449,52,1,1); insert into DET values (10449,62,35,1); insert into DET values (10450,1,1,1); insert into DET values (10450,54,6,1); insert into DET values (10451,55,120,1); insert into DET values (10451,64,35,1); insert into DET values (10451,65,28,1); insert into DET values (10451,77,55,1); insert into DET values (10452,28,1,1); insert into DET values (10452,44,1,1); insert into DET values (10453,48,1,1); insert into DET values (10453,70,1,1); insert into DET values (10454,16,1,1); insert into DET values (10454,33,1,1); insert into DET values (10454,46,1,1); insert into DET values (10455,39,1,1); insert into DET values (10455,53,50,1); insert into DET values (10455,61,1,1); insert into DET values (10455,71,30,1); insert into DET values (10456,21,40,1); insert into DET values (10456,49,21,1); insert into DET values (10457,59,36,1); insert into DET values (10458,26,30,1); insert into DET values (10458,28,30,1); insert into DET values (10458,43,1,1); insert into DET values (10458,56,1,1); insert into DET values (10458,71,50,1); insert into DET values (10459,7,16,1); insert into DET values (10459,46,1,1); insert into DET values (10459,72,40,1); insert into DET values (10460,68,21,1); insert into DET values (10460,75,4,1); insert into DET values (10461,21,40,1); insert into DET values (10461,30,28,10); insert into DET values (10461,55,60,1); insert into DET values (10462,13,1,1); insert into DET values (10462,23,21,1); insert into DET values (10463,19,21,5); insert into DET values (10463,42,50,1); insert into DET values (10464,4,16,1); insert into DET values (10464,43,3,1); insert into DET values (10464,56,30,1); insert into DET values (10464,60,1,1); insert into DET values (10465,24,1,1); insert into DET values (10465,29,18,1); insert into DET values (10465,40,1,1); insert into DET values (10465,45,30,1); insert into DET values (10465,50,1,1); insert into DET values (10466,11,1,1); insert into DET values (10466,46,5,1); insert into DET values (10467,1,12,1); insert into DET values (10467,24,28,1); insert into DET values (10468,30,8,10); insert into DET values (10468,43,1,1); insert into DET values (10469,2,40,1); insert into DET values (10469,16,35,1); insert into DET values (10469,44,2,1); insert into DET values (10470,18,30,1); insert into DET values (10470,23,1,1); insert into DET values (10470,64,8,1); insert into DET values (10471,7,30,1); insert into DET values (10471,56,1,1); insert into DET values (10472,24,80,1); insert into DET values (10472,51,18,1); insert into DET values (10473,33,12,1); insert into DET values (10473,71,12,1); insert into DET values (10474,14,12,1); insert into DET values (10474,28,18,1); insert into DET values (10474,40,21,1); insert into DET values (10474,75,1,1); insert into DET values (10475,31,35,1); insert into DET values (10475,66,60,1); insert into DET values (10475,76,42,1); insert into DET values (10476,55,2,1); insert into DET values (10476,70,12,1); insert into DET values (10477,1,1,1); insert into DET values (10477,21,21,1); insert into DET values (10477,39,1,1); insert into DET values (10478,1,1,1); insert into DET values (10479,38,30,1); insert into DET values (10479,53,28,1); insert into DET values (10479,59,60,1); insert into DET values (10479,64,30,1); insert into DET values (10480,47,30,1); insert into DET values (10480,59,12,1); insert into DET values (10481,49,24,1); insert into DET values (10481,60,40,1); insert into DET values (10482,40,1,1); insert into DET values (10483,34,35,1); insert into DET values (10483,77,30,1); insert into DET values (10484,21,14,1); insert into DET values (10484,40,1,1); insert into DET values (10484,51,3,1); insert into DET values (10485,2,1,1); insert into DET values (10485,3,1,1); insert into DET values (10485,55,30,1); insert into DET values (10485,70,60,1); insert into DET values (10486,11,5,1); insert into DET values (10486,51,1,1); insert into DET values (10486,74,16,1); insert into DET values (10487,19,5,5); insert into DET values (10487,26,30,1); insert into DET values (10487,54,24,1); insert into DET values (10488,59,30,1); insert into DET values (10488,73,1,1); insert into DET values (10489,11,1,1); insert into DET values (10489,16,18,1); insert into DET values (10490,59,60,1); insert into DET values (10490,68,30,1); insert into DET values (10490,75,36,1); insert into DET values (10491,44,1,1); insert into DET values (10491,77,7,1); insert into DET values (10492,1,60,1); insert into DET values (10492,42,1,1); insert into DET values (10493,65,1,1); insert into DET values (10493,66,1,1); insert into DET values (10493,69,1,1); insert into DET values (10494,56,30,1); insert into DET values (10495,23,1,1); insert into DET values (10495,41,1,1); insert into DET values (10495,77,5,1); insert into DET values (10496,31,1,1); insert into DET values (10497,56,14,1); insert into DET values (10497,72,1,1); insert into DET values (10497,77,1,1); insert into DET values (10498,24,14,1); insert into DET values (10498,40,5,1); insert into DET values (10498,42,30,1); insert into DET values (10499,28,1,1); insert into DET values (10499,49,1,1); insert into DET values (10500,1,12,1); insert into DET values (10500,28,8,1); insert into DET values (10501,54,1,1); insert into DET values (10502,45,21,1); insert into DET values (10502,53,6,1); insert into DET values (10502,67,30,1); insert into DET values (10503,14,70,1); insert into DET values (10503,65,1,1); insert into DET values (10504,2,12,1); insert into DET values (10504,21,12,1); insert into DET values (10504,53,1,1); insert into DET values (10504,61,1,1); insert into DET values (10505,62,3,1); insert into DET values (10506,1,18,1); insert into DET values (10506,70,14,1); insert into DET values (10507,43,1,1); insert into DET values (10507,48,1,1); insert into DET values (10508,13,1,1); insert into DET values (10508,39,1,1); insert into DET values (10509,28,3,1); insert into DET values (10510,29,36,1); insert into DET values (10510,75,36,1); insert into DET values (10511,4,50,1); insert into DET values (10511,7,50,1); insert into DET values (10511,8,1,1); insert into DET values (10512,24,1,1); insert into DET values (10512,46,9,1); insert into DET values (10512,47,6,1); insert into DET values (10512,60,12,1); insert into DET values (10513,21,40,1); insert into DET values (10513,32,50,1); insert into DET values (10513,61,1,1); insert into DET values (10514,1,39,1); insert into DET values (10514,28,35,1); insert into DET values (10514,56,70,1); insert into DET values (10514,65,39,1); insert into DET values (10514,75,50,1); insert into DET values (10515,9,16,1); insert into DET values (10515,16,50,1); insert into DET values (10515,27,120,5); insert into DET values (10515,33,16,1); insert into DET values (10515,60,84,1); insert into DET values (10516,18,1,1); insert into DET values (10516,41,80,1); insert into DET values (10516,42,1,1); insert into DET values (10517,52,6,1); insert into DET values (10517,59,4,1); insert into DET values (10517,70,6,1); insert into DET values (10518,24,5,1); insert into DET values (10518,38,1,1); insert into DET values (10518,44,9,1); insert into DET values (10519,1,16,1); insert into DET values (10519,56,40,1); insert into DET values (10519,60,1,1); insert into DET values (10520,24,8,1); insert into DET values (10520,53,5,1); insert into DET values (10521,35,3,1); insert into DET values (10521,41,1,1); insert into DET values (10521,68,6,1); insert into DET values (10522,1,40,1); insert into DET values (10522,8,24,1); insert into DET values (10522,30,1,10); insert into DET values (10522,40,1,1); insert into DET values (10523,1,1,1); insert into DET values (10523,17,1,1); insert into DET values (10523,37,18,1); insert into DET values (10523,41,6,1); insert into DET values (10524,1,2,1); insert into DET values (10524,30,1,10); insert into DET values (10524,43,60,1); insert into DET values (10524,54,1,1); insert into DET values (10525,36,30,1); insert into DET values (10525,40,1,1); insert into DET values (10526,1,8,1); insert into DET values (10526,13,1,1); insert into DET values (10526,56,30,1); insert into DET values (10527,4,50,1); insert into DET values (10527,36,30,1); insert into DET values (10528,11,3,1); insert into DET values (10528,33,8,1); insert into DET values (10528,72,9,1); insert into DET values (10529,55,14,1); insert into DET values (10529,68,1,1); insert into DET values (10529,69,1,1); insert into DET values (10530,17,40,1); insert into DET values (10530,43,1,1); insert into DET values (10530,61,1,1); insert into DET values (10530,76,50,1); insert into DET values (10531,59,2,1); insert into DET values (10532,30,1,10); insert into DET values (10532,66,24,1); insert into DET values (10533,4,50,1); insert into DET values (10533,72,24,1); insert into DET values (10533,73,24,1); insert into DET values (10534,30,1,10); insert into DET values (10534,40,1,1); insert into DET values (10534,54,1,1); insert into DET values (10535,11,50,1); insert into DET values (10535,40,1,1); insert into DET values (10535,57,5,1); insert into DET values (10535,59,1,1); insert into DET values (10536,12,1,1); insert into DET values (10536,31,1,1); insert into DET values (10536,33,30,1); insert into DET values (10536,60,35,1); insert into DET values (10537,31,30,1); insert into DET values (10537,51,6,1); insert into DET values (10537,58,1,1); insert into DET values (10537,72,21,1); insert into DET values (10537,73,9,1); insert into DET values (10538,70,7,1); insert into DET values (10538,72,1,1); insert into DET values (10539,13,8,1); insert into DET values (10539,21,1,1); insert into DET values (10539,33,1,1); insert into DET values (10539,49,6,1); insert into DET values (10540,3,60,1); insert into DET values (10540,26,40,1); insert into DET values (10540,38,30,1); insert into DET values (10540,68,35,1); insert into DET values (10541,24,35,1); insert into DET values (10541,38,4,1); insert into DET values (10541,65,36,1); insert into DET values (10541,71,9,1); insert into DET values (10542,11,1,1); insert into DET values (10542,54,24,1); insert into DET values (10543,12,30,1); insert into DET values (10543,23,70,1); insert into DET values (10544,28,7,1); insert into DET values (10544,67,7,1); insert into DET values (10545,11,1,1); insert into DET values (10546,7,1,1); insert into DET values (10546,35,30,1); insert into DET values (10546,62,40,1); insert into DET values (10547,32,24,1); insert into DET values (10547,36,60,1); insert into DET values (10548,34,1,1); insert into DET values (10548,41,14,1); insert into DET values (10549,31,55,1); insert into DET values (10549,45,1,1); insert into DET values (10549,51,48,1); insert into DET values (10550,17,8,1); insert into DET values (10550,19,1,5); insert into DET values (10550,21,6,1); insert into DET values (10550,61,1,1); insert into DET values (10551,16,40,1); insert into DET values (10551,35,1,1); insert into DET values (10551,44,40,1); insert into DET values (10552,69,18,1); insert into DET values (10552,75,30,1); insert into DET values (10553,11,1,1); insert into DET values (10553,16,14,1); insert into DET values (10553,22,24,1); insert into DET values (10553,31,30,1); insert into DET values (10553,35,6,1); insert into DET values (10554,16,30,1); insert into DET values (10554,23,1,1); insert into DET values (10554,62,1,1); insert into DET values (10554,77,1,1); insert into DET values (10555,14,30,1); insert into DET values (10555,19,35,5); insert into DET values (10555,24,18,1); insert into DET values (10555,51,1,1); insert into DET values (10555,56,40,1); insert into DET values (10556,72,24,1); insert into DET values (10557,64,30,1); insert into DET values (10557,75,1,1); insert into DET values (10558,47,1,1); insert into DET values (10558,51,1,1); insert into DET values (10558,52,30,1); insert into DET values (10558,53,18,1); insert into DET values (10558,73,3,1); insert into DET values (10559,41,12,1); insert into DET values (10559,55,18,1); insert into DET values (10560,30,1,10); insert into DET values (10560,62,1,1); insert into DET values (10561,44,1,1); insert into DET values (10561,51,50,1); insert into DET values (10562,33,1,1); insert into DET values (10562,62,1,1); insert into DET values (10563,36,1,1); insert into DET values (10563,52,70,1); insert into DET values (10564,17,16,1); insert into DET values (10564,31,6,1); insert into DET values (10564,55,1,1); insert into DET values (10565,24,1,1); insert into DET values (10565,64,18,1); insert into DET values (10566,11,35,1); insert into DET values (10566,18,18,1); insert into DET values (10566,76,1,1); insert into DET values (10567,31,60,1); insert into DET values (10567,51,3,1); insert into DET values (10567,59,40,1); insert into DET values (10568,1,5,1); insert into DET values (10569,31,35,1); insert into DET values (10569,76,30,1); insert into DET values (10570,11,1,1); insert into DET values (10570,56,60,1); insert into DET values (10571,14,11,1); insert into DET values (10571,42,28,1); insert into DET values (10572,16,12,1); insert into DET values (10572,32,1,1); insert into DET values (10572,40,50,1); insert into DET values (10572,75,1,1); insert into DET values (10573,17,18,1); insert into DET values (10573,34,40,1); insert into DET values (10573,53,1,1); insert into DET values (10574,33,14,1); insert into DET values (10574,40,2,1); insert into DET values (10574,62,1,1); insert into DET values (10574,64,6,1); insert into DET values (10575,59,12,1); insert into DET values (10575,63,6,1); insert into DET values (10575,72,30,1); insert into DET values (10575,76,1,1); insert into DET values (10576,1,1,1); insert into DET values (10576,31,1,1); insert into DET values (10576,44,21,1); insert into DET values (10577,39,1,1); insert into DET values (10577,75,1,1); insert into DET values (10577,77,18,1); insert into DET values (10578,35,1,1); insert into DET values (10578,57,6,1); insert into DET values (10579,1,1,1); insert into DET values (10579,75,21,1); insert into DET values (10580,14,1,1); insert into DET values (10580,41,9,1); insert into DET values (10580,65,30,1); insert into DET values (10581,75,50,1); insert into DET values (10582,57,4,1); insert into DET values (10582,76,14,1); insert into DET values (10583,29,1,1); insert into DET values (10583,60,24,1); insert into DET values (10583,69,1,1); insert into DET values (10584,31,50,1); insert into DET values (10585,47,1,1); insert into DET values (10586,52,4,1); insert into DET values (10587,26,6,1); insert into DET values (10587,35,1,1); insert into DET values (10587,77,1,1); insert into DET values (10588,18,40,1); insert into DET values (10588,42,1,1); insert into DET values (10589,35,4,1); insert into DET values (10590,1,1,1); insert into DET values (10590,77,60,1); insert into DET values (10591,3,14,1); insert into DET values (10591,7,1,1); insert into DET values (10591,54,50,1); insert into DET values (10592,1,1,1); insert into DET values (10592,26,5,1); insert into DET values (10593,1,21,1); insert into DET values (10593,69,1,1); insert into DET values (10593,76,4,1); insert into DET values (10594,52,24,1); insert into DET values (10594,58,30,1); insert into DET values (10595,35,30,1); insert into DET values (10595,61,120,1); insert into DET values (10595,69,65,1); insert into DET values (10596,56,5,1); insert into DET values (10596,63,24,1); insert into DET values (10596,75,30,1); insert into DET values (10597,24,35,1); insert into DET values (10597,57,1,1); insert into DET values (10597,65,12,1); insert into DET values (10598,27,50,5); insert into DET values (10598,71,9,1); insert into DET values (10599,62,1,1); insert into DET values (10600,54,4,1); insert into DET values (10600,73,30,1); insert into DET values (10601,13,60,1); insert into DET values (10601,59,35,1); insert into DET values (10602,77,5,1); insert into DET values (10603,22,48,1); insert into DET values (10603,49,1,1); insert into DET values (10604,48,6,1); insert into DET values (10604,76,1,1); insert into DET values (10605,16,30,1); insert into DET values (10605,59,1,1); insert into DET values (10605,60,70,1); insert into DET values (10605,71,1,1); insert into DET values (10606,4,1,1); insert into DET values (10606,55,1,1); insert into DET values (10606,62,1,1); insert into DET values (10607,7,45,1); insert into DET values (10607,17,1,1); insert into DET values (10607,33,14,1); insert into DET values (10607,40,42,1); insert into DET values (10607,72,12,1); insert into DET values (10608,56,28,1); insert into DET values (10609,1,3,1); insert into DET values (10609,21,6,1); insert into DET values (10610,36,21,1); insert into DET values (10611,1,6,1); insert into DET values (10611,2,1,1); insert into DET values (10611,60,1,1); insert into DET values (10612,1,70,1); insert into DET values (10612,36,55,1); insert into DET values (10612,49,18,1); insert into DET values (10612,60,40,1); insert into DET values (10612,76,80,1); insert into DET values (10613,13,8,1); insert into DET values (10613,75,40,1); insert into DET values (10614,11,14,1); insert into DET values (10614,21,8,1); insert into DET values (10614,39,5,1); insert into DET values (10615,55,5,1); insert into DET values (10616,38,1,1); insert into DET values (10616,56,14,1); insert into DET values (10616,70,1,1); insert into DET values (10616,71,1,1); insert into DET values (10617,59,30,1); insert into DET values (10618,6,70,1); insert into DET values (10618,56,1,1); insert into DET values (10618,68,1,1); insert into DET values (10619,21,42,1); insert into DET values (10619,22,40,1); insert into DET values (10620,24,5,1); insert into DET values (10620,52,5,1); insert into DET values (10621,19,5,5); insert into DET values (10621,23,1,1); insert into DET values (10621,70,1,1); insert into DET values (10621,71,1,1); insert into DET values (10622,2,1,1); insert into DET values (10622,68,18,1); insert into DET values (10623,14,21,1); insert into DET values (10623,19,1,5); insert into DET values (10623,21,1,1); insert into DET values (10623,24,3,1); insert into DET values (10623,35,30,1); insert into DET values (10624,28,1,1); insert into DET values (10624,29,6,1); insert into DET values (10624,44,1,1); insert into DET values (10625,14,3,1); insert into DET values (10625,42,5,1); insert into DET values (10625,60,1,1); insert into DET values (10626,53,12,1); insert into DET values (10626,60,1,1); insert into DET values (10626,71,1,1); insert into DET values (10627,62,1,1); insert into DET values (10627,73,35,1); insert into DET values (10628,1,1,1); insert into DET values (10629,29,1,1); insert into DET values (10629,64,9,1); insert into DET values (10630,55,12,1); insert into DET values (10630,76,35,1); insert into DET values (10631,75,8,1); insert into DET values (10632,2,30,1); insert into DET values (10632,33,1,1); insert into DET values (10633,12,36,1); insert into DET values (10633,13,13,1); insert into DET values (10633,26,35,1); insert into DET values (10633,62,80,1); insert into DET values (10634,7,35,1); insert into DET values (10634,18,50,1); insert into DET values (10634,51,1,1); insert into DET values (10634,75,2,1); insert into DET values (10635,4,1,1); insert into DET values (10635,5,1,1); insert into DET values (10635,22,40,1); insert into DET values (10636,4,1,1); insert into DET values (10636,58,6,1); insert into DET values (10637,11,1,1); insert into DET values (10637,50,1,1); insert into DET values (10637,56,60,1); insert into DET values (10638,45,1,1); insert into DET values (10638,65,21,1); insert into DET values (10638,72,60,1); insert into DET values (10639,18,8,1); insert into DET values (10640,69,1,1); insert into DET values (10640,70,1,1); insert into DET values (10641,2,50,1); insert into DET values (10641,40,60,1); insert into DET values (10642,21,30,1); insert into DET values (10642,61,1,1); insert into DET values (10643,28,1,1); insert into DET values (10643,39,21,1); insert into DET values (10643,46,2,1); insert into DET values (10644,18,4,1); insert into DET values (10644,43,1,1); insert into DET values (10644,46,21,1); insert into DET values (10645,18,1,1); insert into DET values (10645,36,1,1); insert into DET values (10646,1,18,1); insert into DET values (10646,71,30,1); insert into DET values (10646,77,35,1); insert into DET values (10647,19,30,5); insert into DET values (10647,39,1,1); insert into DET values (10648,22,1,1); insert into DET values (10648,24,1,1); insert into DET values (10649,28,1,1); insert into DET values (10649,72,1,1); insert into DET values (10650,30,30,10); insert into DET values (10650,53,1,1); insert into DET values (10650,54,30,1); insert into DET values (10651,19,12,5); insert into DET values (10651,22,1,1); insert into DET values (10652,30,2,10); insert into DET values (10652,42,1,1); insert into DET values (10653,16,30,1); insert into DET values (10653,60,1,1); insert into DET values (10654,4,12,1); insert into DET values (10654,39,1,1); insert into DET values (10654,54,6,1); insert into DET values (10655,41,1,1); insert into DET values (10656,14,3,1); insert into DET values (10656,44,28,1); insert into DET values (10656,47,6,1); insert into DET values (10657,1,50,1); insert into DET values (10657,41,24,1); insert into DET values (10657,46,45,1); insert into DET values (10657,47,1,1); insert into DET values (10657,56,45,1); insert into DET values (10657,60,30,1); insert into DET values (10658,21,60,1); insert into DET values (10658,40,70,1); insert into DET values (10658,60,55,1); insert into DET values (10658,77,70,1); insert into DET values (10659,31,1,1); insert into DET values (10659,40,24,1); insert into DET values (10659,70,40,1); insert into DET values (10660,1,21,1); insert into DET values (10661,39,3,1); insert into DET values (10661,58,49,1); insert into DET values (10662,68,1,1); insert into DET values (10663,40,30,1); insert into DET values (10663,42,30,1); insert into DET values (10663,51,1,1); insert into DET values (10664,1,24,1); insert into DET values (10664,56,12,1); insert into DET values (10664,65,1,1); insert into DET values (10665,51,1,1); insert into DET values (10665,59,1,1); insert into DET values (10665,76,1,1); insert into DET values (10666,29,36,1); insert into DET values (10666,65,1,1); insert into DET values (10667,69,45,1); insert into DET values (10667,71,14,1); insert into DET values (10668,31,8,1); insert into DET values (10668,55,4,1); insert into DET values (10668,64,1,1); insert into DET values (10669,36,30,1); insert into DET values (10670,23,32,1); insert into DET values (10670,46,60,1); insert into DET values (10670,67,1,1); insert into DET values (10670,73,50,1); insert into DET values (10670,75,1,1); insert into DET values (10671,16,1,1); insert into DET values (10671,62,1,1); insert into DET values (10671,65,12,1); insert into DET values (10672,38,1,1); insert into DET values (10672,71,12,1); insert into DET values (10673,16,3,1); insert into DET values (10673,42,6,1); insert into DET values (10673,43,6,1); insert into DET values (10674,23,5,1); insert into DET values (10675,14,30,1); insert into DET values (10675,53,1,1); insert into DET values (10675,58,30,1); insert into DET values (10676,1,2,1); insert into DET values (10676,19,7,5); insert into DET values (10676,44,21,1); insert into DET values (10677,26,30,1); insert into DET values (10677,33,8,1); insert into DET values (10678,12,1,1); insert into DET values (10678,33,30,1); insert into DET values (10678,41,120,1); insert into DET values (10678,54,30,1); insert into DET values (10679,59,12,1); insert into DET values (10680,16,50,1); insert into DET values (10680,31,1,1); insert into DET values (10680,42,40,1); insert into DET values (10681,19,30,5); insert into DET values (10681,21,12,1); insert into DET values (10681,64,28,1); insert into DET values (10682,33,30,1); insert into DET values (10682,66,4,1); insert into DET values (10682,75,30,1); insert into DET values (10683,52,9,1); insert into DET values (10684,40,1,1); insert into DET values (10684,47,40,1); insert into DET values (10684,60,30,1); insert into DET values (10685,1,1,1); insert into DET values (10685,41,4,1); insert into DET values (10685,47,1,1); insert into DET values (10686,17,30,1); insert into DET values (10686,26,1,1); insert into DET values (10687,9,50,1); insert into DET values (10687,29,1,1); insert into DET values (10687,36,6,1); insert into DET values (10688,1,18,1); insert into DET values (10688,28,60,1); insert into DET values (10688,34,14,1); insert into DET values (10689,1,35,1); insert into DET values (10690,56,1,1); insert into DET values (10690,77,30,1); insert into DET values (10691,1,30,1); insert into DET values (10691,29,40,1); insert into DET values (10691,43,40,1); insert into DET values (10691,44,24,1); insert into DET values (10691,62,48,1); insert into DET values (10692,63,1,1); insert into DET values (10693,9,6,1); insert into DET values (10693,54,60,1); insert into DET values (10693,69,30,1); insert into DET values (10693,73,1,1); insert into DET values (10694,7,90,1); insert into DET values (10694,59,1,1); insert into DET values (10694,70,50,1); insert into DET values (10695,8,1,1); insert into DET values (10695,12,4,1); insert into DET values (10695,24,1,1); insert into DET values (10696,17,1,1); insert into DET values (10696,46,18,1); insert into DET values (10697,19,7,5); insert into DET values (10697,35,9,1); insert into DET values (10697,58,30,1); insert into DET values (10697,70,30,1); insert into DET values (10698,11,1,1); insert into DET values (10698,17,8,1); insert into DET values (10698,29,12,1); insert into DET values (10698,65,65,1); insert into DET values (10698,70,8,1); insert into DET values (10699,47,12,1); insert into DET values (10700,1,5,1); insert into DET values (10700,34,12,1); insert into DET values (10700,68,40,1); insert into DET values (10700,71,60,1); insert into DET values (10701,59,42,1); insert into DET values (10701,71,1,1); insert into DET values (10701,76,35,1); insert into DET values (10702,3,6,1); insert into DET values (10702,76,1,1); insert into DET values (10703,2,5,1); insert into DET values (10703,59,35,1); insert into DET values (10703,73,35,1); insert into DET values (10704,4,6,1); insert into DET values (10704,24,35,1); insert into DET values (10704,48,24,1); insert into DET values (10705,31,1,1); insert into DET values (10705,32,4,1); insert into DET values (10706,16,1,1); insert into DET values (10706,43,24,1); insert into DET values (10706,59,8,1); insert into DET values (10707,55,21,1); insert into DET values (10707,57,40,1); insert into DET values (10707,70,28,1); insert into DET values (10708,5,4,1); insert into DET values (10708,36,5,1); insert into DET values (10709,8,40,1); insert into DET values (10709,51,28,1); insert into DET values (10709,60,1,1); insert into DET values (10710,19,5,5); insert into DET values (10710,47,5,1); insert into DET values (10711,19,12,5); insert into DET values (10711,41,42,1); insert into DET values (10711,53,120,1); insert into DET values (10712,53,3,1); insert into DET values (10712,56,30,1); insert into DET values (10713,1,18,1); insert into DET values (10713,26,30,1); insert into DET values (10713,45,110,1); insert into DET values (10713,46,24,1); insert into DET values (10714,2,30,1); insert into DET values (10714,17,27,1); insert into DET values (10714,47,50,1); insert into DET values (10714,56,18,1); insert into DET values (10714,58,12,1); insert into DET values (10715,1,21,1); insert into DET values (10715,71,30,1); insert into DET values (10716,21,5,1); insert into DET values (10716,51,7,1); insert into DET values (10716,61,1,1); insert into DET values (10717,21,32,1); insert into DET values (10717,54,1,1); insert into DET values (10717,69,1,1); insert into DET values (10718,12,36,1); insert into DET values (10718,16,1,1); insert into DET values (10718,36,40,1); insert into DET values (10718,62,1,1); insert into DET values (10719,18,12,1); insert into DET values (10719,30,3,10); insert into DET values (10719,54,40,1); insert into DET values (10720,35,21,1); insert into DET values (10720,71,8,1); insert into DET values (10721,44,50,1); insert into DET values (10722,2,3,1); insert into DET values (10722,31,50,1); insert into DET values (10722,68,45,1); insert into DET values (10722,75,42,1); insert into DET values (10723,26,1,1); insert into DET values (10724,1,16,1); insert into DET values (10724,61,5,1); insert into DET values (10725,41,12,1); insert into DET values (10725,52,4,1); insert into DET values (10725,55,6,1); insert into DET values (10726,4,1,1); insert into DET values (10726,11,5,1); insert into DET values (10727,17,1,1); insert into DET values (10727,56,1,1); insert into DET values (10727,59,1,1); insert into DET values (10728,30,1,10); insert into DET values (10728,40,6,1); insert into DET values (10728,55,12,1); insert into DET values (10728,60,1,1); insert into DET values (10729,1,50,1); insert into DET values (10729,21,30,1); insert into DET values (10729,50,40,1); insert into DET values (10730,16,1,1); insert into DET values (10730,31,3,1); insert into DET values (10730,65,1,1); insert into DET values (10731,21,40,1); insert into DET values (10731,51,30,1); insert into DET values (10732,76,1,1); insert into DET values (10733,14,16,1); insert into DET values (10733,28,1,1); insert into DET values (10733,52,1,1); insert into DET values (10734,6,30,1); insert into DET values (10734,30,1,10); insert into DET values (10734,76,1,1); insert into DET values (10735,61,1,1); insert into DET values (10735,77,2,1); insert into DET values (10736,65,40,1); insert into DET values (10736,75,1,1); insert into DET values (10737,13,4,1); insert into DET values (10737,41,12,1); insert into DET values (10738,16,3,1); insert into DET values (10739,36,6,1); insert into DET values (10739,52,18,1); insert into DET values (10740,28,5,1); insert into DET values (10740,35,35,1); insert into DET values (10740,45,40,1); insert into DET values (10740,56,14,1); insert into DET values (10741,2,1,1); insert into DET values (10742,3,1,1); insert into DET values (10742,60,50,1); insert into DET values (10742,72,35,1); insert into DET values (10743,46,28,1); insert into DET values (10744,40,50,1); insert into DET values (10745,18,24,1); insert into DET values (10745,44,16,1); insert into DET values (10745,59,45,1); insert into DET values (10745,72,7,1); insert into DET values (10746,13,6,1); insert into DET values (10746,42,28,1); insert into DET values (10746,62,9,1); insert into DET values (10746,69,40,1); insert into DET values (10747,31,8,1); insert into DET values (10747,41,35,1); insert into DET values (10747,63,9,1); insert into DET values (10747,69,30,1); insert into DET values (10748,23,44,1); insert into DET values (10748,40,40,1); insert into DET values (10748,56,28,1); insert into DET values (10749,56,1,1); insert into DET values (10749,59,6,1); insert into DET values (10749,76,1,1); insert into DET values (10750,14,5,1); insert into DET values (10750,45,40,1); insert into DET values (10750,59,1,1); insert into DET values (10751,26,12,1); insert into DET values (10751,30,30,10); insert into DET values (10751,50,1,1); insert into DET values (10751,73,1,1); insert into DET values (10752,1,8,1); insert into DET values (10752,69,3,1); insert into DET values (10753,45,4,1); insert into DET values (10753,74,5,1); insert into DET values (10754,40,3,1); insert into DET values (10755,47,30,1); insert into DET values (10755,56,30,1); insert into DET values (10755,57,14,1); insert into DET values (10755,69,1,1); insert into DET values (10756,18,21,1); insert into DET values (10756,36,1,1); insert into DET values (10756,68,6,1); insert into DET values (10756,69,1,1); insert into DET values (10757,34,30,1); insert into DET values (10757,59,7,1); insert into DET values (10757,62,30,1); insert into DET values (10757,64,24,1); insert into DET values (10758,26,1,1); insert into DET values (10758,52,60,1); insert into DET values (10758,70,40,1); insert into DET values (10759,32,1,1); insert into DET values (10760,1,12,1); insert into DET values (10760,27,40,5); insert into DET values (10760,43,30,1); insert into DET values (10761,1,35,1); insert into DET values (10761,75,18,1); insert into DET values (10762,39,16,1); insert into DET values (10762,47,30,1); insert into DET values (10762,51,28,1); insert into DET values (10762,56,60,1); insert into DET values (10763,21,40,1); insert into DET values (10763,22,6,1); insert into DET values (10763,24,1,1); insert into DET values (10764,3,1,1); insert into DET values (10764,39,130,1); insert into DET values (10765,65,80,1); insert into DET values (10766,2,40,1); insert into DET values (10766,7,35,1); insert into DET values (10766,68,40,1); insert into DET values (10767,42,2,1); insert into DET values (10768,22,4,1); insert into DET values (10768,31,50,1); insert into DET values (10768,60,1,1); insert into DET values (10768,71,12,1); insert into DET values (10769,41,30,1); insert into DET values (10769,52,1,1); insert into DET values (10769,61,1,1); insert into DET values (10769,62,1,1); insert into DET values (10770,11,1,1); insert into DET values (10771,71,16,1); insert into DET values (10772,29,18,1); insert into DET values (10772,59,1,1); insert into DET values (10773,17,33,1); insert into DET values (10773,31,70,1); insert into DET values (10773,75,7,1); insert into DET values (10774,31,2,1); insert into DET values (10774,66,50,1); insert into DET values (10775,1,6,1); insert into DET values (10775,67,3,1); insert into DET values (10776,31,16,1); insert into DET values (10776,42,12,1); insert into DET values (10776,45,27,1); insert into DET values (10776,51,120,1); insert into DET values (10777,42,1,1); insert into DET values (10778,41,1,1); insert into DET values (10779,16,1,1); insert into DET values (10779,62,1,1); insert into DET values (10780,70,35,1); insert into DET values (10780,77,1,1); insert into DET values (10781,54,3,1); insert into DET values (10781,56,1,1); insert into DET values (10781,74,35,1); insert into DET values (10782,31,1,1); insert into DET values (10783,31,1,1); insert into DET values (10783,38,5,1); insert into DET values (10784,36,30,1); insert into DET values (10784,39,2,1); insert into DET values (10784,72,30,1); insert into DET values (10785,1,1,1); insert into DET values (10785,75,1,1); insert into DET values (10786,8,30,1); insert into DET values (10786,30,1,10); insert into DET values (10786,75,42,1); insert into DET values (10787,2,1,1); insert into DET values (10787,29,1,1); insert into DET values (10788,19,50,5); insert into DET values (10788,75,40,1); insert into DET values (10789,18,30,1); insert into DET values (10789,35,1,1); insert into DET values (10789,63,30,1); insert into DET values (10789,68,18,1); insert into DET values (10790,7,3,1); insert into DET values (10790,56,1,1); insert into DET values (10791,29,14,1); insert into DET values (10791,41,1,1); insert into DET values (10792,2,1,1); insert into DET values (10792,54,3,1); insert into DET values (10792,68,1,1); insert into DET values (10793,41,14,1); insert into DET values (10793,52,8,1); insert into DET values (10794,14,1,1); insert into DET values (10794,54,6,1); insert into DET values (10795,16,65,1); insert into DET values (10795,17,35,1); insert into DET values (10796,26,21,1); insert into DET values (10796,44,1,1); insert into DET values (10796,64,35,1); insert into DET values (10796,69,24,1); insert into DET values (10797,11,1,1); insert into DET values (10798,62,2,1); insert into DET values (10798,72,1,1); insert into DET values (10799,13,1,1); insert into DET values (10799,24,1,1); insert into DET values (10799,59,1,1); insert into DET values (10800,11,50,1); insert into DET values (10800,51,1,1); insert into DET values (10800,54,7,1); insert into DET values (10801,17,40,1); insert into DET values (10801,29,1,1); insert into DET values (10802,30,1,10); insert into DET values (10802,51,30,1); insert into DET values (10802,55,60,1); insert into DET values (10802,62,5,1); insert into DET values (10803,1,1,1); insert into DET values (10803,19,24,5); insert into DET values (10803,59,1,1); insert into DET values (10804,1,36,1); insert into DET values (10804,28,24,1); insert into DET values (10804,49,4,1); insert into DET values (10805,34,1,1); insert into DET values (10805,38,1,1); insert into DET values (10806,2,1,1); insert into DET values (10806,65,2,1); insert into DET values (10806,74,1,1); insert into DET values (10807,40,1,1); insert into DET values (10808,56,1,1); insert into DET values (10808,76,50,1); insert into DET values (10809,52,1,1); insert into DET values (10810,1,5,1); insert into DET values (10810,13,7,1); insert into DET values (10810,70,5,1); insert into DET values (10811,19,1,5); insert into DET values (10811,23,18,1); insert into DET values (10811,40,30,1); insert into DET values (10812,31,16,1); insert into DET values (10812,72,40,1); insert into DET values (10812,77,1,1); insert into DET values (10813,2,12,1); insert into DET values (10813,46,35,1); insert into DET values (10814,41,1,1); insert into DET values (10814,43,1,1); insert into DET values (10814,48,8,1); insert into DET values (10814,61,30,1); insert into DET values (10815,33,16,1); insert into DET values (10816,38,30,1); insert into DET values (10816,62,1,1); insert into DET values (10817,26,40,1); insert into DET values (10817,38,30,1); insert into DET values (10817,40,60,1); insert into DET values (10817,62,1,1); insert into DET values (10818,32,1,1); insert into DET values (10818,41,1,1); insert into DET values (10819,43,7,1); insert into DET values (10819,75,1,1); insert into DET values (10820,56,30,1); insert into DET values (10821,35,1,1); insert into DET values (10821,51,6,1); insert into DET values (10822,62,3,1); insert into DET values (10822,70,6,1); insert into DET values (10823,11,1,1); insert into DET values (10823,57,1,1); insert into DET values (10823,59,40,1); insert into DET values (10823,77,1,1); insert into DET values (10824,41,12,1); insert into DET values (10824,70,9,1); insert into DET values (10825,26,12,1); insert into DET values (10825,53,1,1); insert into DET values (10826,31,35,1); insert into DET values (10826,57,1,1); insert into DET values (10827,1,1,1); insert into DET values (10827,39,21,1); insert into DET values (10828,1,5,1); insert into DET values (10828,38,2,1); insert into DET values (10829,2,1,1); insert into DET values (10829,8,1,1); insert into DET values (10829,13,1,1); insert into DET values (10829,60,21,1); insert into DET values (10830,6,6,1); insert into DET values (10830,39,28,1); insert into DET values (10830,60,30,1); insert into DET values (10830,68,24,1); insert into DET values (10831,19,2,5); insert into DET values (10831,35,8,1); insert into DET values (10831,38,8,1); insert into DET values (10831,43,9,1); insert into DET values (10832,1,1,1); insert into DET values (10832,13,3,1); insert into DET values (10832,44,16,1); insert into DET values (10832,64,3,1); insert into DET values (10833,7,1,1); insert into DET values (10833,31,9,1); insert into DET values (10833,53,9,1); insert into DET values (10834,29,8,1); insert into DET values (10834,30,1,10); insert into DET values (10835,59,1,1); insert into DET values (10835,77,2,1); insert into DET values (10836,22,52,1); insert into DET values (10836,35,6,1); insert into DET values (10836,57,24,1); insert into DET values (10836,60,60,1); insert into DET values (10836,64,30,1); insert into DET values (10837,13,6,1); insert into DET values (10837,40,1,1); insert into DET values (10837,47,40,1); insert into DET values (10837,76,21,1); insert into DET values (10838,1,4,1); insert into DET values (10838,18,1,1); insert into DET values (10838,36,50,1); insert into DET values (10839,58,30,1); insert into DET values (10839,72,1,1); insert into DET values (10840,1,6,1); insert into DET values (10840,39,1,1); insert into DET values (10841,1,16,1); insert into DET values (10841,56,30,1); insert into DET values (10841,59,50,1); insert into DET values (10841,77,1,1); insert into DET values (10842,11,1,1); insert into DET values (10842,43,5,1); insert into DET values (10842,68,1,1); insert into DET values (10842,70,12,1); insert into DET values (10843,51,4,1); insert into DET values (10844,22,35,1); insert into DET values (10845,23,70,1); insert into DET values (10845,35,1,1); insert into DET values (10845,42,42,1); insert into DET values (10845,58,60,1); insert into DET values (10845,64,48,1); insert into DET values (10846,4,21,1); insert into DET values (10846,70,30,1); insert into DET values (10846,74,1,1); insert into DET values (10847,1,80,1); insert into DET values (10847,19,12,5); insert into DET values (10847,37,60,1); insert into DET values (10847,45,36,1); insert into DET values (10847,60,45,1); insert into DET values (10847,71,55,1); insert into DET values (10848,5,30,1); insert into DET values (10848,9,3,1); insert into DET values (10849,3,49,1); insert into DET values (10849,26,18,1); insert into DET values (10850,1,1,1); insert into DET values (10850,33,4,1); insert into DET values (10850,70,30,1); insert into DET values (10851,1,1,1); insert into DET values (10851,2,5,1); insert into DET values (10851,57,1,1); insert into DET values (10851,59,42,1); insert into DET values (10852,2,1,1); insert into DET values (10852,17,6,1); insert into DET values (10852,62,50,1); insert into DET values (10853,18,1,1); insert into DET values (10854,1,1,1); insert into DET values (10854,13,65,1); insert into DET values (10855,16,50,1); insert into DET values (10855,31,14,1); insert into DET values (10855,56,24,1); insert into DET values (10855,65,1,1); insert into DET values (10856,2,1,1); insert into DET values (10856,42,1,1); insert into DET values (10857,3,30,1); insert into DET values (10857,26,35,1); insert into DET values (10857,29,1,1); insert into DET values (10858,7,5,1); insert into DET values (10858,27,1,5); insert into DET values (10858,70,4,1); insert into DET values (10859,24,40,1); insert into DET values (10859,54,35,1); insert into DET values (10859,64,30,1); insert into DET values (10860,51,3,1); insert into DET values (10860,76,1,1); insert into DET values (10861,17,42,1); insert into DET values (10861,18,1,1); insert into DET values (10861,21,40,1); insert into DET values (10861,33,35,1); insert into DET values (10861,62,3,1); insert into DET values (10862,11,1,1); insert into DET values (10862,52,8,1); insert into DET values (10863,1,1,1); insert into DET values (10863,58,12,1); insert into DET values (10864,35,4,1); insert into DET values (10864,67,1,1); insert into DET values (10865,38,60,1); insert into DET values (10865,39,80,1); insert into DET values (10866,2,21,1); insert into DET values (10866,24,6,1); insert into DET values (10866,30,40,10); insert into DET values (10867,53,3,1); insert into DET values (10868,26,1,1); insert into DET values (10868,35,30,1); insert into DET values (10868,49,42,1); insert into DET values (10869,1,40,1); insert into DET values (10869,11,1,1); insert into DET values (10869,23,50,1); insert into DET values (10869,68,1,1); insert into DET values (10870,35,3,1); insert into DET values (10870,51,2,1); insert into DET values (10871,6,50,1); insert into DET values (10871,16,12,1); insert into DET values (10871,17,16,1); insert into DET values (10872,55,1,1); insert into DET values (10872,62,1,1); insert into DET values (10872,64,1,1); insert into DET values (10872,65,21,1); insert into DET values (10873,21,1,1); insert into DET values (10873,28,3,1); insert into DET values (10874,1,1,1); insert into DET values (10875,19,1,5); insert into DET values (10875,47,21,1); insert into DET values (10875,49,1,1); insert into DET values (10876,46,21,1); insert into DET values (10876,64,1,1); insert into DET values (10877,16,30,1); insert into DET values (10877,18,1,1); insert into DET values (10878,1,1,1); insert into DET values (10879,40,12,1); insert into DET values (10879,65,1,1); insert into DET values (10879,76,1,1); insert into DET values (10880,23,30,1); insert into DET values (10880,61,30,1); insert into DET values (10880,70,50,1); insert into DET values (10881,73,1,1); insert into DET values (10882,42,1,1); insert into DET values (10882,49,1,1); insert into DET values (10882,54,32,1); insert into DET values (10883,24,8,1); insert into DET values (10884,21,40,1); insert into DET values (10884,56,21,1); insert into DET values (10884,65,12,1); insert into DET values (10885,2,1,1); insert into DET values (10885,24,12,1); insert into DET values (10885,70,30,1); insert into DET values (10885,77,1,1); insert into DET values (10886,1,70,1); insert into DET values (10886,31,35,1); insert into DET values (10886,77,40,1); insert into DET values (10887,1,5,1); insert into DET values (10888,2,1,1); insert into DET values (10888,68,18,1); insert into DET values (10889,11,40,1); insert into DET values (10889,38,40,1); insert into DET values (10890,17,1,1); insert into DET values (10890,34,1,1); insert into DET values (10890,41,14,1); insert into DET values (10891,30,1,10); insert into DET values (10892,59,40,1); insert into DET values (10893,8,30,1); insert into DET values (10893,24,1,1); insert into DET values (10893,29,24,1); insert into DET values (10893,30,35,10); insert into DET values (10893,36,1,1); insert into DET values (10894,13,28,1); insert into DET values (10894,69,50,1); insert into DET values (10894,75,120,1); insert into DET values (10895,24,110,1); insert into DET values (10895,39,45,1); insert into DET values (10895,40,91,1); insert into DET values (10895,60,1,1); insert into DET values (10896,45,1,1); insert into DET values (10896,56,16,1); insert into DET values (10897,29,80,1); insert into DET values (10897,30,36,10); insert into DET values (10898,13,5,1); insert into DET values (10899,39,8,1); insert into DET values (10900,70,3,1); insert into DET values (10901,41,30,1); insert into DET values (10901,71,30,1); insert into DET values (10902,55,30,1); insert into DET values (10902,62,6,1); insert into DET values (10903,13,40,1); insert into DET values (10903,65,21,1); insert into DET values (10903,68,1,1); insert into DET values (10904,58,1,1); insert into DET values (10904,62,35,1); insert into DET values (10905,1,1,1); insert into DET values (10906,61,1,1); insert into DET values (10907,75,14,1); insert into DET values (10908,7,1,1); insert into DET values (10908,52,14,1); insert into DET values (10909,7,12,1); insert into DET values (10909,16,1,1); insert into DET values (10909,41,5,1); insert into DET values (10910,19,12,5); insert into DET values (10910,49,1,1); insert into DET values (10910,61,5,1); insert into DET values (10911,1,1,1); insert into DET values (10911,17,12,1); insert into DET values (10911,67,1,1); insert into DET values (10912,11,40,1); insert into DET values (10912,29,60,1); insert into DET values (10913,4,30,1); insert into DET values (10913,33,40,1); insert into DET values (10913,58,1,1); insert into DET values (10914,71,1,1); insert into DET values (10915,17,1,1); insert into DET values (10915,33,30,1); insert into DET values (10915,54,1,1); insert into DET values (10916,16,6,1); insert into DET values (10916,32,6,1); insert into DET values (10916,57,1,1); insert into DET values (10917,30,1,10); insert into DET values (10917,60,1,1); insert into DET values (10918,1,60,1); insert into DET values (10918,60,1,1); insert into DET values (10919,1,24,1); insert into DET values (10919,16,24,1); insert into DET values (10919,40,1,1); insert into DET values (10920,50,24,1); insert into DET values (10921,35,1,1); insert into DET values (10921,63,40,1); insert into DET values (10922,17,1,1); insert into DET values (10922,24,35,1); insert into DET values (10923,42,1,1); insert into DET values (10923,43,1,1); insert into DET values (10923,67,24,1); insert into DET values (10924,1,1,1); insert into DET values (10924,28,30,1); insert into DET values (10924,75,6,1); insert into DET values (10925,36,1,1); insert into DET values (10925,52,12,1); insert into DET values (10926,11,2,1); insert into DET values (10926,13,1,1); insert into DET values (10926,19,7,5); insert into DET values (10926,72,1,1); insert into DET values (10927,1,5,1); insert into DET values (10927,52,5,1); insert into DET values (10927,76,1,1); insert into DET values (10928,47,5,1); insert into DET values (10928,76,5,1); insert into DET values (10929,21,60,1); insert into DET values (10929,75,49,1); insert into DET values (10929,77,1,1); insert into DET values (10930,21,36,1); insert into DET values (10930,27,1,5); insert into DET values (10930,55,1,1); insert into DET values (10930,58,30,1); insert into DET values (10931,13,42,1); insert into DET values (10931,57,30,1); insert into DET values (10932,16,30,1); insert into DET values (10932,62,14,1); insert into DET values (10932,72,16,1); insert into DET values (10932,75,1,1); insert into DET values (10933,53,2,1); insert into DET values (10933,61,30,1); insert into DET values (10934,6,1,1); insert into DET values (10935,1,21,1); insert into DET values (10935,18,4,1); insert into DET values (10935,23,8,1); insert into DET values (10936,36,30,1); insert into DET values (10937,28,8,1); insert into DET values (10937,34,1,1); insert into DET values (10938,13,1,1); insert into DET values (10938,43,24,1); insert into DET values (10938,60,49,1); insert into DET values (10938,71,35,1); insert into DET values (10939,2,1,1); insert into DET values (10939,67,40,1); insert into DET values (10940,7,8,1); insert into DET values (10940,13,1,1); insert into DET values (10941,31,44,1); insert into DET values (10941,62,30,1); insert into DET values (10941,68,80,1); insert into DET values (10941,72,50,1); insert into DET values (10942,49,28,1); insert into DET values (10943,13,1,1); insert into DET values (10943,22,21,1); insert into DET values (10943,46,1,1); insert into DET values (10944,11,5,1); insert into DET values (10944,44,18,1); insert into DET values (10944,56,18,1); insert into DET values (10945,13,1,1); insert into DET values (10945,31,1,1); insert into DET values (10946,1,1,1); insert into DET values (10946,24,1,1); insert into DET values (10946,77,40,1); insert into DET values (10947,59,4,1); insert into DET values (10948,50,9,1); insert into DET values (10948,51,40,1); insert into DET values (10948,55,4,1); insert into DET values (10949,1,30,1); insert into DET values (10949,6,12,1); insert into DET values (10949,17,6,1); insert into DET values (10949,62,60,1); insert into DET values (10950,4,5,1); insert into DET values (10951,33,1,1); insert into DET values (10951,41,6,1); insert into DET values (10951,75,50,1); insert into DET values (10952,6,16,1); insert into DET values (10952,28,2,1); insert into DET values (10953,1,50,1); insert into DET values (10953,31,50,1); insert into DET values (10954,16,28,1); insert into DET values (10954,31,1,1); insert into DET values (10954,45,30,1); insert into DET values (10954,60,24,1); insert into DET values (10955,75,12,1); insert into DET values (10956,21,12,1); insert into DET values (10956,47,14,1); insert into DET values (10956,51,8,1); insert into DET values (10957,30,30,10); insert into DET values (10957,35,40,1); insert into DET values (10957,64,8,1); insert into DET values (10958,5,1,1); insert into DET values (10958,7,6,1); insert into DET values (10958,72,5,1); insert into DET values (10959,75,1,1); insert into DET values (10960,24,1,1); insert into DET values (10960,41,24,1); insert into DET values (10961,52,6,1); insert into DET values (10961,76,60,1); insert into DET values (10962,7,45,1); insert into DET values (10962,13,77,1); insert into DET values (10962,53,1,1); insert into DET values (10962,69,9,1); insert into DET values (10962,76,44,1); insert into DET values (10963,60,2,1); insert into DET values (10964,18,6,1); insert into DET values (10964,38,5,1); insert into DET values (10964,69,1,1); insert into DET values (10965,51,16,1); insert into DET values (10966,37,8,1); insert into DET values (10966,56,12,1); insert into DET values (10966,62,12,1); insert into DET values (10967,19,12,5); insert into DET values (10967,49,40,1); insert into DET values (10968,12,30,1); insert into DET values (10968,24,30,1); insert into DET values (10968,64,4,1); insert into DET values (10969,46,9,1); insert into DET values (10970,52,40,1); insert into DET values (10971,29,14,1); insert into DET values (10972,17,6,1); insert into DET values (10972,33,7,1); insert into DET values (10973,26,5,1); insert into DET values (10973,41,6,1); insert into DET values (10973,75,1,1); insert into DET values (10974,63,1,1); insert into DET values (10975,8,16,1); insert into DET values (10975,75,1,1); insert into DET values (10976,28,1,1); insert into DET values (10977,39,30,1); insert into DET values (10977,47,30,1); insert into DET values (10977,51,1,1); insert into DET values (10977,63,1,1); insert into DET values (10978,8,1,1); insert into DET values (10978,21,40,1); insert into DET values (10978,40,1,1); insert into DET values (10978,44,6,1); insert into DET values (10979,7,18,1); insert into DET values (10979,12,1,1); insert into DET values (10979,24,80,1); insert into DET values (10979,27,30,5); insert into DET values (10979,31,24,1); insert into DET values (10979,63,35,1); insert into DET values (10980,75,40,1); insert into DET values (10981,38,60,1); insert into DET values (10982,7,1,1); insert into DET values (10982,43,9,1); insert into DET values (10983,13,84,1); insert into DET values (10983,57,1,1); insert into DET values (10984,16,55,1); insert into DET values (10984,24,1,1); insert into DET values (10984,36,40,1); insert into DET values (10985,16,36,1); insert into DET values (10985,18,8,1); insert into DET values (10985,32,35,1); insert into DET values (10986,1,1,1); insert into DET values (10986,11,30,1); insert into DET values (10986,76,1,1); insert into DET values (10986,77,1,1); insert into DET values (10987,7,60,1); insert into DET values (10987,43,6,1); insert into DET values (10987,72,1,1); insert into DET values (10988,7,60,1); insert into DET values (10988,62,40,1); insert into DET values (10989,6,40,1); insert into DET values (10989,11,1,1); insert into DET values (10989,41,4,1); insert into DET values (10990,21,65,1); insert into DET values (10990,34,60,1); insert into DET values (10990,55,65,1); insert into DET values (10990,61,66,1); insert into DET values (10991,2,50,1); insert into DET values (10991,70,1,1); insert into DET values (10991,76,90,1); insert into DET values (10992,72,2,1); insert into DET values (10993,29,50,1); insert into DET values (10993,41,35,1); insert into DET values (10994,59,18,1); insert into DET values (10995,51,1,1); insert into DET values (10995,60,4,1); insert into DET values (10996,42,40,1); insert into DET values (10997,32,50,1); insert into DET values (10997,46,1,1); insert into DET values (10997,52,1,1); insert into DET values (10998,24,12,1); insert into DET values (10998,61,7,1); insert into DET values (10998,74,1,1); insert into DET values (10998,75,30,1); insert into DET values (10999,41,1,1); insert into DET values (10999,51,1,1); insert into DET values (10999,77,21,1); insert into DET values (11000,4,1,1); insert into DET values (11000,24,30,1); insert into DET values (11000,77,30,1); insert into DET values (11001,7,60,1); insert into DET values (11001,22,1,1); insert into DET values (11001,46,1,1); insert into DET values (11001,55,6,1); insert into DET values (11002,13,56,1); insert into DET values (11002,35,1,1); insert into DET values (11002,42,24,1); insert into DET values (11002,55,40,1); insert into DET values (11003,1,4,1); insert into DET values (11003,40,1,1); insert into DET values (11003,52,1,1); insert into DET values (11004,26,6,1); insert into DET values (11004,76,6,1); insert into DET values (11005,1,2,1); insert into DET values (11005,59,1,1); insert into DET values (11006,1,8,1); insert into DET values (11006,29,2,1); insert into DET values (11007,8,30,1); insert into DET values (11007,29,1,1); insert into DET values (11007,42,14,1); insert into DET values (11008,28,70,1); insert into DET values (11008,34,90,1); insert into DET values (11008,71,21,1); insert into DET values (11009,24,12,1); insert into DET values (11009,36,18,1); insert into DET values (11009,60,9,1); insert into DET values (11010,7,1,1); insert into DET values (11010,24,1,1); insert into DET values (11011,58,40,1); insert into DET values (11011,71,1,1); insert into DET values (11012,19,50,5); insert into DET values (11012,60,36,1); insert into DET values (11012,71,60,1); insert into DET values (11013,23,1,1); insert into DET values (11013,42,4,1); insert into DET values (11013,45,1,1); insert into DET values (11013,68,2,1); insert into DET values (11014,41,28,1); insert into DET values (11015,30,1,10); insert into DET values (11015,77,18,1); insert into DET values (11016,31,1,1); insert into DET values (11016,36,16,1); insert into DET values (11017,3,1,1); insert into DET values (11017,59,110,1); insert into DET values (11017,70,30,1); insert into DET values (11018,12,1,1); insert into DET values (11018,18,1,1); insert into DET values (11018,56,5,1); insert into DET values (11019,46,3,1); insert into DET values (11019,49,2,1); insert into DET values (11020,1,24,1); insert into DET values (11021,1,1,1); insert into DET values (11021,2,11,1); insert into DET values (11021,26,63,1); insert into DET values (11021,51,44,1); insert into DET values (11021,72,35,1); insert into DET values (11022,19,35,5); insert into DET values (11022,69,30,1); insert into DET values (11023,7,4,1); insert into DET values (11023,43,30,1); insert into DET values (11024,26,12,1); insert into DET values (11024,33,30,1); insert into DET values (11024,65,21,1); insert into DET values (11024,71,50,1); insert into DET values (11025,1,1,1); insert into DET values (11025,13,1,1); insert into DET values (11026,18,8,1); insert into DET values (11026,51,1,1); insert into DET values (11027,24,30,1); insert into DET values (11027,62,21,1); insert into DET values (11028,55,35,1); insert into DET values (11028,59,24,1); insert into DET values (11029,56,1,1); insert into DET values (11029,63,12,1); insert into DET values (11030,2,1,1); insert into DET values (11030,5,70,1); insert into DET values (11030,29,60,1); insert into DET values (11030,59,1,1); insert into DET values (11031,1,45,1); insert into DET values (11031,13,80,1); insert into DET values (11031,24,21,1); insert into DET values (11031,64,1,1); insert into DET values (11031,71,16,1); insert into DET values (11032,36,35,1); insert into DET values (11032,38,1,1); insert into DET values (11032,59,30,1); insert into DET values (11033,53,70,1); insert into DET values (11033,69,36,1); insert into DET values (11034,21,1,1); insert into DET values (11034,44,12,1); insert into DET values (11034,61,6,1); insert into DET values (11035,1,1,1); insert into DET values (11035,35,60,1); insert into DET values (11035,42,30,1); insert into DET values (11035,54,1,1); insert into DET values (11036,13,7,1); insert into DET values (11036,59,30,1); insert into DET values (11037,70,4,1); insert into DET values (11038,40,5,1); insert into DET values (11038,52,2,1); insert into DET values (11038,71,30,1); insert into DET values (11039,28,1,1); insert into DET values (11039,35,24,1); insert into DET values (11039,49,60,1); insert into DET values (11039,57,28,1); insert into DET values (11040,21,1,1); insert into DET values (11041,2,30,1); insert into DET values (11041,63,30,1); insert into DET values (11042,44,1,1); insert into DET values (11042,61,4,1); insert into DET values (11043,11,1,1); insert into DET values (11044,62,12,1); insert into DET values (11045,33,1,1); insert into DET values (11045,51,24,1); insert into DET values (11046,12,1,1); insert into DET values (11046,32,1,1); insert into DET values (11046,35,18,1); insert into DET values (11047,1,1,1); insert into DET values (11047,5,30,1); insert into DET values (11048,68,42,1); insert into DET values (11049,2,1,1); insert into DET values (11049,12,4,1); insert into DET values (11050,76,50,1); insert into DET values (11051,24,1,1); insert into DET values (11052,43,30,1); insert into DET values (11052,61,1,1); insert into DET values (11053,18,35,1); insert into DET values (11053,32,1,1); insert into DET values (11053,64,1,1); insert into DET values (11054,33,1,1); insert into DET values (11054,67,1,1); insert into DET values (11055,1,1,1); insert into DET values (11055,24,1,1); insert into DET values (11055,51,1,1); insert into DET values (11055,57,1,1); insert into DET values (11056,7,40,1); insert into DET values (11056,55,35,1); insert into DET values (11056,60,50,1); insert into DET values (11057,70,3,1); insert into DET values (11058,21,3,1); insert into DET values (11058,60,21,1); insert into DET values (11058,61,4,1); insert into DET values (11059,13,30,1); insert into DET values (11059,17,12,1); insert into DET values (11059,60,35,1); insert into DET values (11060,60,4,1); insert into DET values (11060,77,1,1); insert into DET values (11061,60,1,1); insert into DET values (11062,53,1,1); insert into DET values (11062,70,12,1); insert into DET values (11063,34,30,1); insert into DET values (11063,40,40,1); insert into DET values (11063,41,30,1); insert into DET values (11064,17,77,1); insert into DET values (11064,41,12,1); insert into DET values (11064,53,1,1); insert into DET values (11064,55,4,1); insert into DET values (11064,68,55,1); insert into DET values (11065,30,4,10); insert into DET values (11065,54,1,1); insert into DET values (11066,16,3,1); insert into DET values (11066,19,42,5); insert into DET values (11066,34,35,1); insert into DET values (11067,41,9,1); insert into DET values (11068,28,8,1); insert into DET values (11068,43,36,1); insert into DET values (11068,77,28,1); insert into DET values (11069,39,1,1); insert into DET values (11070,1,40,1); insert into DET values (11070,2,1,1); insert into DET values (11070,16,30,1); insert into DET values (11070,31,1,1); insert into DET values (11071,7,1,1); insert into DET values (11071,13,1,1); insert into DET values (11072,2,8,1); insert into DET values (11072,41,40,1); insert into DET values (11072,50,22,1); insert into DET values (11072,64,130,1); insert into DET values (11073,11,1,1); insert into DET values (11073,24,1,1); insert into DET values (11074,16,14,1); insert into DET values (11075,2,1,1); insert into DET values (11075,46,30,1); insert into DET values (11075,76,2,1); insert into DET values (11076,6,1,1); insert into DET values (11076,14,1,1); insert into DET values (11076,19,1,5); insert into DET values (11077,1,1,1); insert into DET values (11077,2,24,1); insert into DET values (11077,3,4,1); insert into DET values (11077,4,1,1); insert into DET values (11077,6,1,2); insert into DET values (11077,7,1,1); insert into DET values (11077,8,2,1); insert into DET values (11077,12,2,1); insert into DET values (11077,13,4,1); insert into DET values (11077,14,1,3); insert into DET values (11077,16,2,3); insert into DET values (11077,23,2,1); insert into DET values (11077,32,1,1); insert into DET values (11077,39,2,1); insert into DET values (11077,41,3,1); insert into DET values (11077,46,3,2); insert into DET values (11077,52,2,1); insert into DET values (11077,55,2,1); insert into DET values (11077,60,2,6); insert into DET values (11077,64,2,3); insert into DET values (11077,66,1,1); insert into DET values (11077,73,2,1); insert into DET values (11077,75,4,1); insert into DET values (11077,77,2,1);
delete from HtmlLabelIndex where id=21147 / delete from HtmlLabelInfo where indexid=21147 / INSERT INTO HtmlLabelIndex values(21147,'ๅนดๅบฆๆˆช่‡ณๅฝ“ๆœˆๅ†ป็ป“้ข„็ฎ—') / INSERT INTO HtmlLabelInfo VALUES(21147,'ๅนดๅบฆๆˆช่‡ณๅฝ“ๆœˆๅ†ป็ป“้ข„็ฎ—',7) / INSERT INTO HtmlLabelInfo VALUES(21147,'As of the month to freeze the annual budget',8) / delete from HtmlLabelIndex where id=21502 / delete from HtmlLabelInfo where indexid=21502 / INSERT INTO HtmlLabelIndex values(21502,'็›ธๅ…ณๅŠจๆ”ฏ') / INSERT INTO HtmlLabelInfo VALUES(21502,'็›ธๅ…ณๅŠจๆ”ฏ',7) / INSERT INTO HtmlLabelInfo VALUES(21502,'relate apply amount',8) / delete from HtmlLabelIndex where id=21505 / delete from HtmlLabelInfo where indexid=21505 / INSERT INTO HtmlLabelIndex values(21505,'ๅŠจๆ”ฏๆต็จ‹ๆ ‡่ฏ†') / INSERT INTO HtmlLabelInfo VALUES(21505,'ๅŠจๆ”ฏๆต็จ‹ๆ ‡่ฏ†',7) / INSERT INTO HtmlLabelInfo VALUES(21505,'applyamount workflow flag',8) / delete from HtmlLabelIndex where id=21518 / delete from HtmlLabelInfo where indexid=21518 / INSERT INTO HtmlLabelIndex values(21518,'ๅŠจๆ”ฏๆต็จ‹id') / INSERT INTO HtmlLabelInfo VALUES(21518,'ๅŠจๆ”ฏๆต็จ‹id',7) / INSERT INTO HtmlLabelInfo VALUES(21518,'applyamount workflow id',8) / delete from HtmlLabelIndex where id=21524 / delete from HtmlLabelInfo where indexid=21524 / INSERT INTO HtmlLabelIndex values(21524,'ๅ‡บ็บณๆŠฅ้”€ๆ“ไฝœๆ ‡่ฎฐ') / INSERT INTO HtmlLabelInfo VALUES(21524,'ๅ‡บ็บณๆŠฅ้”€ๆ“ไฝœๆ ‡่ฎฐ',7) / INSERT INTO HtmlLabelInfo VALUES(21524,'Cashier claims operation flag',8) / delete from HtmlLabelIndex where id=21526 / delete from HtmlLabelInfo where indexid=21526 / INSERT INTO HtmlLabelIndex values(21526,'ๅŠจๆ”ฏๆ˜Ž็ป†id') / INSERT INTO HtmlLabelInfo VALUES(21526,'ๅŠจๆ”ฏๆ˜Ž็ป†id',7) / INSERT INTO HtmlLabelInfo VALUES(21526,'applyamount detail id',8) / delete from HtmlLabelIndex where id=21506 / delete from HtmlLabelInfo where indexid=21506 / INSERT INTO HtmlLabelIndex values(21506,'็กฎๅฎšๅฐ†่ฏฅๆต็จ‹ไฝœๅบŸ๏ผŸไธ€ๆ—ฆไฝœๅบŸ๏ผŒๆต็จ‹ๆ•ฐๆฎๅฐ†ไธๅฏๆขๅค๏ผ') / INSERT INTO HtmlLabelInfo VALUES(21506,'็กฎๅฎšๅฐ†่ฏฅๆต็จ‹ไฝœๅบŸ๏ผŸไธ€ๆ—ฆไฝœๅบŸ๏ผŒๆต็จ‹ๆ•ฐๆฎๅฐ†ไธๅฏๆขๅค๏ผ',7) / INSERT INTO HtmlLabelInfo VALUES(21506,'Are you sure to blank out the workflow ?Once the cancellation, the data of workflow will not be allowed to resume!',8) / delete from HtmlLabelIndex where id=21507 / delete from HtmlLabelInfo where indexid=21507 / INSERT INTO HtmlLabelIndex values(21507,'ๆ‰€้€‰ๆต็จ‹ๅŠจๆ”ฏๆ€ป้ข') / INSERT INTO HtmlLabelInfo VALUES(21507,'ๆ‰€้€‰ๆต็จ‹ๅŠจๆ”ฏๆ€ป้ข',7) / INSERT INTO HtmlLabelInfo VALUES(21507,'Total fixed-selected process',8) / delete from HtmlLabelIndex where id=21509 / delete from HtmlLabelInfo where indexid=21509 / INSERT INTO HtmlLabelIndex values(21509,'ๆ‰€้€‰ๆต็จ‹ๅŠจๆ”ฏไฝ™้ข') / INSERT INTO HtmlLabelInfo VALUES(21509,'ๆ‰€้€‰ๆต็จ‹ๅŠจๆ”ฏไฝ™้ข',7) / INSERT INTO HtmlLabelInfo VALUES(21509,'Selected dynamic process with the balance',8) / delete from HtmlLabelIndex where id=21525 / delete from HtmlLabelInfo where indexid=21525 / INSERT INTO HtmlLabelIndex values(21525,'ๆŠฅ้”€ๆ€ป้ขไธ่ƒฝๅคงไบŽๆ‰€้€‰ๆต็จ‹ๅŠจๆ”ฏไฝ™้ข') / INSERT INTO HtmlLabelInfo VALUES(21525,'ๆŠฅ้”€ๆ€ป้ขไธ่ƒฝๅคงไบŽๆ‰€้€‰ๆต็จ‹ๅŠจๆ”ฏไฝ™้ข',7) / INSERT INTO HtmlLabelInfo VALUES(21525,'Claims could not total more than the selected fixed-flow balance',8) / delete from HtmlLabelIndex where id=21146 / delete from HtmlLabelInfo where indexid=21146 / INSERT INTO HtmlLabelIndex values(21146,'ๅนดๅบฆๅ†ป็ป“้ข„็ฎ—') / INSERT INTO HtmlLabelInfo VALUES(21146,'ๅนดๅบฆๅ†ป็ป“้ข„็ฎ—',7) / INSERT INTO HtmlLabelInfo VALUES(21146,'The annual budget freeze',8) / delete from HtmlLabelIndex where id=21148 / delete from HtmlLabelInfo where indexid=21148 / INSERT INTO HtmlLabelIndex values(21148,'ๆœˆๅบฆๅ†ป็ป“้ข„็ฎ—') / INSERT INTO HtmlLabelInfo VALUES(21148,'ๆœˆๅบฆๅ†ป็ป“้ข„็ฎ—',7) / INSERT INTO HtmlLabelInfo VALUES(21148,'Monthly budget freeze',8) /
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 129 and 129+10 or ss_coupon_amt between 12475 and 12475+1000 or ss_wholesale_cost between 34 and 34+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 45 and 45+10 or ss_coupon_amt between 5952 and 5952+1000 or ss_wholesale_cost between 17 and 17+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 141 and 141+10 or ss_coupon_amt between 15442 and 15442+1000 or ss_wholesale_cost between 54 and 54+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 143 and 143+10 or ss_coupon_amt between 2499 and 2499+1000 or ss_wholesale_cost between 22 and 22+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 51 and 51+10 or ss_coupon_amt between 5959 and 5959+1000 or ss_wholesale_cost between 66 and 66+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 55 and 55+10 or ss_coupon_amt between 2001 and 2001+1000 or ss_wholesale_cost between 18 and 18+20)) B6 limit 100
CREATE DATABASE gestion_coproTilleuls DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE gestion_coproTilleuls; DROP TABLE RESIDENTS_APPARTEMENTS; DROP TABLE APPARTEMENTS; DROP TABLE BATIMENTS; DROP TABLE EVENEMENTS; DROP TABLE MESSAGES; DROP TABLE BILLETS; DROP TABLE CATEGORIES; DROP TABLE AGENDAS; DROP TABLE ACTIVITES; DROP TABLE RESIDENTS; DROP TABLE ROLES; DROP TABLE USERS_TEMP; CREATE TABLE BATIMENTS ( code VARCHAR(3) NOT NULL PRIMARY KEY, adresse VARCHAR(50) NOT NULL ); CREATE TABLE APPARTEMENTS ( num INT(5) NOT NULL AUTO_INCREMENT PRIMARY KEY, num_syndic VARCHAR(5) NULL, porte INT(2) NULL, etage INT(2) NOT NULL, batiment VARCHAR(3) NOT NULL, CONSTRAINT fk_appartements_batiments FOREIGN KEY (batiment) REFERENCES BATIMENTS(code) ); CREATE TABLE ROLES ( id VARCHAR(5) NOT NULL PRIMARY KEY, libelle VARCHAR(50) NOT NULL ); CREATE TABLE USERS_TEMP ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, champs1 VARCHAR(20) NOT NULL, champs2 VARCHAR(80) NOT NULL, used BIT DEFAULT 0 ); CREATE TABLE RESIDENTS ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, nom VARCHAR(50) NOT NULL, prenom VARCHAR(50) NOT NULL, tel VARCHAR(10) NULL, email VARCHAR(60) NULL, login VARCHAR(20) NOT NULL, mot_de_passe VARCHAR(80) NOT NULL, date_inscription DATETIME NOT NULL, type_res VARCHAR(50) DEFAULT "Propriรฉtaire rรฉsident", actif BIT DEFAULT 1, role VARCHAR(5) NOT NULL, CONSTRAINT fk_proprietaire_role FOREIGN KEY (role) REFERENCES ROLES(id) ); CREATE TABLE RESIDENTS_APPARTEMENTS ( residents INT(11) NOT NULL, appartements INT(5) NOT NULL, CONSTRAINT pk_asso PRIMARY KEY (residents,appartements), CONSTRAINT fk_asso1 FOREIGN KEY (residents) REFERENCES RESIDENTS(id), CONSTRAINT fk_asso2 FOREIGN KEY (appartements) REFERENCES APPARTEMENTS(num) ); CREATE TABLE CATEGORIES ( id INT(2) NOT NULL AUTO_INCREMENT PRIMARY KEY, libelle VARCHAR(50) NOT NULL ); CREATE TABLE BILLETS ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, sujet VARCHAR(50) NOT NULL, date_creation DATETIME NOT NULL, categorie INT(2) NOT NULL, createur INT(11) NOT NULL, ouvert BIT DEFAULT 1, archive BIT DEFAULT 0, CONSTRAINT fk_billets_categories FOREIGN KEY (categorie) REFERENCES CATEGORIES(id), CONSTRAINT fk_billets_residents FOREIGN KEY (createur) REFERENCES RESIDENTS(id) ); CREATE TABLE MESSAGES ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, sujet VARCHAR(50) NOT NULL, date_creation DATETIME NOT NULL, billet INT(2) NOT NULL, createur INT(11) NOT NULL, archive BIT DEFAULT 0, CONSTRAINT fk_messages_billets FOREIGN KEY (billet) REFERENCES BILLETS(id), CONSTRAINT fk_messages_residents FOREIGN KEY (createur) REFERENCES RESIDENTS(id) ); CREATE TABLE ACTIVITES ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, libelle VARCHAR(50) NOT NULL, actif BIT DEFAULT 1 ); CREATE TABLE AGENDAS ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, libelle VARCHAR(50) NOT NULL, annee int(4) NOT NULL, actif BIT DEFAULT 1, activites INT(11) NOT NULL, CONSTRAINT fk_agendas_activites FOREIGN KEY (activites) REFERENCES ACTIVITES(id) ); CREATE TABLE EVENEMENTS ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, date_event DATETIME NOT NULL, date_creation DATETIME NOT NULL, sujet VARCHAR(80) NOT NULL, details VARCHAR(250) NOT NULL, archive BIT DEFAULT 0, agenda INT(11) NOT NULL, createur INT(11) NOT NULL, CONSTRAINT fk_evenements_agendas FOREIGN KEY (agenda) REFERENCES AGENDAS(id), CONSTRAINT fk_evenements_residents FOREIGN KEY (createur) REFERENCES RESIDENTS(id) ); /* INSERTS */ INSERT INTO BATIMENTS (code, adresse) VALUES ("B1", "4 Allรฉe des Tilleuls"), ("B2", "2 Allรฉe des Tilleuls"), ("B3A", "55 Avenue de la Choliรจre"), ("B3B", "57 Avenue de la Choliรจre"), ("B3C", "59 Avenue de la Choliรจre"), ("B3D", "61 Avenue de la Choliรจre"), ("B3E", "63 Avenue de la Choliรจre"); INSERT INTO ROLES (id, libelle) VALUES ("COPRO", "Accรจs Co-propriรฉtaire"),("ADMIN", "Accรจs Administrateur"), ("COSYN", "Accรจs Conseiller Syndical"),("GSACT","Accรจs Gestionnaire d'Activitรฉs"), ("LOCAT","Accรจs Standard"); INSERT INTO RESIDENTS (nom, prenom, tel, email, login, mot_de_passe, date_inscription, type_res, actif, role) VALUES ("Durand", "Paul", "0101010101","pdurande@gmail.com" ,"jbl", "976bfa507a8aa45f4e440201a121ea32dea14ba0a2ef5c3f7339d824c47407ed", NOW(), "Propriรฉtaire rรฉsident" , true, "COPRO"); INSERT INTO RESIDENTS (nom, prenom, tel, email, login, mot_de_passe, date_inscription, type_res, actif, role) VALUES ("Admin", "Test", "0637066255","test@gmail.com" ,"test", "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", NOW(), "Propriรฉtaire non-rรฉsident" , true, "ADMIN"); INSERT INTO RESIDENTS (nom, prenom, tel, email, login, mot_de_passe, date_inscription, type_res, actif, role) VALUES ("Martin", "Luc", "0102030405","test2@gmail.com" , "test2", "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", NOW(), "Propriรฉtaire non-rรฉsident" , true, "LOCAT"); INSERT INTO APPARTEMENTS (num_syndic, porte, etage, batiment) VALUES (null, 4, 2, "B3D"),(null, 2, 3, "B1"),(null, 1, 0, "B2"); INSERT INTO RESIDENTS_APPARTEMENTS (residents, appartements) VALUES (1,1),(2,2),(3,3); INSERT INTO ACTIVITES (libelle) VALUES ("Composte"), ("Enfants"), ("Rรฉservation Salles"); INSERT INTO AGENDAS (libelle ,annee, activites) VALUES ("Composteur sur 2017", 2017, 1 ),("Activitรฉs des enfants sur 2017", 2017, 2 ), ("Rรฉservations des salles sur 2017", 2017, 3);
-- -- 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. -- update stretchy_report set report_sql = " select l.id as loanId, l.account_no as loanAccountNo, c.id as clientId, c.account_no as clientAccountNo, pgm.display_name as programName, (select count(*) from m_loan cy where cy.group_id = pgm.id and cy.client_id =c.id and cy.disbursedon_date <= l.disbursedon_date) as loanCycleNo, c.display_name as clientDisplayName, ifnull(cur.display_symbol, l.currency_code) as Currency, ifnull(l.principal_repaid_derived,0.0) as loanRepaidAmount, ifnull(l.principal_outstanding_derived, 0.0) as loanOutstandingAmount, ifnull(lpa.principal_in_advance_derived,0.0) as LoanPaidInAdvance, ifnull(laa.principal_overdue_derived, 0.0) as loanInArrearsAmount, if(ifnull(laa.principal_overdue_derived, 0.00) > 0, 'Yes', 'No') as inDefault, if(date_sub(curdate(), interval 28 day) > ifnull(laa.overdue_since_date_derived, curdate()), l.principal_outstanding_derived,0) as portfolioAtRisk from m_group pgm join m_office o on o.id = pgm.office_id and o.hierarchy like concat('${currentUserHierarchy}', '%') join m_loan l on l.group_id = pgm.id and l.client_id is not null left join m_currency cur on cur.code = l.currency_code join m_client c on c.id = l.client_id left join m_loan_arrears_aging laa on laa.loan_id = l.id left join m_loan_paid_in_advance lpa on lpa.loan_id = l.id where pgm.id = ${programId} and l.loan_status_id = 300 order by c.display_name, l.account_no " where report_name = 'ProgramDetails';
CREATE TABLE modules ( service_id bigint NOT NULL, name character varying(60) NOT NULL, method character varying(60) DEFAULT 'require'::character varying ); CREATE TABLE redirects ( service_id bigint NOT NULL, address character varying(255) NOT NULL ); CREATE TABLE services ( id bigint NOT NULL, code character varying(60) NOT NULL, secret text, info text ); CREATE SEQUENCE services_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE services_id_seq OWNED BY services.id; CREATE TABLE config ( service_id bigint NOT NULL, param character varying(255) NOT NULL, value text ); ALTER TABLE ONLY services ALTER COLUMN id SET DEFAULT nextval('services_id_seq'::regclass); ALTER TABLE ONLY modules ADD CONSTRAINT modules_pk PRIMARY KEY (service_id, name); ALTER TABLE ONLY redirects ADD CONSTRAINT redirects_pk PRIMARY KEY (service_id, address); ALTER TABLE ONLY services ADD CONSTRAINT services_pk PRIMARY KEY (id); ALTER TABLE ONLY services ADD CONSTRAINT services_uq UNIQUE (code); ALTER TABLE ONLY config ADD CONSTRAINT config_pkey PRIMARY KEY (service_id, param); ALTER TABLE ONLY modules ADD CONSTRAINT modules_service FOREIGN KEY (service_id) REFERENCES services(id); ALTER TABLE ONLY redirects ADD CONSTRAINT redirects_service FOREIGN KEY (service_id) REFERENCES services(id); ALTER TABLE ONLY config ADD CONSTRAINT config_service FOREIGN KEY (service_id) REFERENCES services(id);
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 24, 2016 at 06:53 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `protkrip` -- -- -------------------------------------------------------- -- -- Table structure for table `sequence_table` -- CREATE TABLE IF NOT EXISTS `sequence_table` ( `bssid` char(32) NOT NULL, `sequence` int(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `sequence_table` -- INSERT INTO `sequence_table` (`bssid`, `sequence`) VALUES ('11:11:11:11', 2147483647), ('11:29:EA:A2:11:34', 735386268), ('22:22:22:22:22:22', 201304643), ('99:99:99:99:99:99', 1289141311), ('AA:AA:AA:AA:AA:AA', 2147483647), ('BB:BB:BB:BB:BB:BB', 200415590), ('CC:CC:CC:CC:CC:CC', 1495148583), ('DD:DD:DD:DD:DD:DD', 1418788691); -- -- Indexes for dumped tables -- -- -- Indexes for table `sequence_table` -- ALTER TABLE `sequence_table` ADD UNIQUE KEY `bssid` (`bssid`); /*!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 */;
CREATE VIEW `zadanie4` AS select * from nabial where producent=4 and waga>=100 order by waga desc;
/*่ต„ไบงๆต็จ‹ๆ–ฐๅขž:่ต„ไบง้ข†็”จ*/ CREATE or REPLACE PROCEDURE CptUseLogUse_Insert (capitalid_1 integer, usedate_2 char, usedeptid_3 integer, useresourceid_4 integer, usecount_5 number, maintaincompany_8 varchar2, fee_9 decimal, usestatus_10 varchar, remark_11 varchar2, useaddress_12 varchar2, sptcount_1 char, flag out integer , msg out varchar2, thecursor IN OUT cursor_define.weavercursor) AS num_1 number; num_count integer; begin /*ๅˆคๆ–ญๆ•ฐ้‡ๆ˜ฏๅฆ่ถณๅคŸ(ๅฏนไบŽ้žๅ•็‹ฌๆ ธ็ฎ—็š„่ต„ไบง*/ if sptcount_1 <> '1' then select count(capitalnum) INTO num_count from CptCapital where id = capitalid_1; if(num_count > 0) then select capitalnum INTO num_1 from CptCapital where id = capitalid_1; if num_1 < usecount_5 then open thecursor for select -1 from dual; return; else num_1 := num_1-usecount_5; end if; end if; end if; INSERT INTO CptUseLog ( capitalid, usedate, usedeptid, useresourceid, usecount, maintaincompany, fee, usestatus, remark, useaddress, olddeptid) VALUES ( capitalid_1, usedate_2, usedeptid_3, useresourceid_4, usecount_5, maintaincompany_8, fee_9, '2', remark_11, useaddress_12, 0); /*ๅ•็‹ฌๆ ธ็ฎ—็š„่ต„ไบง*/ if sptcount_1 = '1' then Update CptCapital Set departmentid = usedeptid_3, resourceid = useresourceid_4, stateid = usestatus_10 where id = capitalid_1; insert INTO HrmCapitalUse (capitalid,hrmid,cptnum) values(capitalid_1,useresourceid_4,1); /*้žๅ•็‹ฌๆ ธ็ฎ—็š„่ต„ไบง*/ else Update CptCapital Set capitalnum = num_1 where id = capitalid_1; insert INTO HrmCapitalUse (capitalid,hrmid,cptnum) values(capitalid_1,useresourceid_4,usecount_5); open thecursor for select 1 from dual; end if; end; / insert into SystemRightToGroup(groupid,rightid) values(9,161) / insert into SystemRightToGroup(groupid,rightid) values(9,162) /
SELECT PartNum, Description, ListPrice FROM PARTS WHERE Category = 'Motherboards';
CREATE TABLE referrershop ( id CHAVE NOT NULL, id_referrer CHAVE NOT NULL, id_shop CHAVE NOT NULL, cache_visitors INTEGER, cache_visits INTEGER, cache_pages INTEGER, cache_registrations INTEGER, cache_orders INTEGER, cache_sales DECIMAL(17, 2), cache_reg_rate DECIMAL(5, 4), cache_order_rate DECIMAL(5, 4), CONSTRAINT pk_referrershop PRIMARY KEY (id) );
/* Navicat MySQL Data Transfer Source Server : Locahost Source Server Version : 50710 Source Host : localhost:3306 Source Database : kahina Target Server Type : MYSQL Target Server Version : 50710 File Encoding : 65001 Date: 2016-02-16 17:57:50 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for blog_categorias -- ---------------------------- DROP TABLE IF EXISTS `blog_categorias`; CREATE TABLE `blog_categorias` ( `id` int(11) NOT NULL AUTO_INCREMENT, `categoria` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DELETE FROM task WHERE goalsid = $1;
select Name, count(Duration) as Quantity from ( select Name, SpaceWalkID from Astronaut left outer join AstronautDoSpaceWalk on Astronaut.Name = AstronautDoSpaceWalk.AstronautName) as ASW left outer join SpaceWalk on SpaceWalk.ID = ASW.SpaceWalkID group by(Name) order by(Quantity) desc;
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Client : localhost -- Gรฉnรฉrรฉ le : Jeu 22 Mars 2018 ร  21:43 -- Version du serveur : 5.7.21-0ubuntu0.16.04.1 -- Version de PHP : 7.0.25-0ubuntu0.16.04.1 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 */; -- -- Base de donnรฉes : `hansburger` -- -- -- Contenu de la table `action` -- INSERT INTO `action` (`id`, `libelle`, `illustration_id`) VALUES (1, 'Piocher', 1), (2, 'Invoquer', 1), (3, 'Attaquer', 1), (4, 'Passer', 1); -- -- Contenu de la table `carte_collection` -- INSERT INTO `carte_collection` (`id`, `nom`, `pv`, `degat`, `prix`, `heros_collection_id`, `type_id`, `illustration_id`, `description`) VALUES (1, 'Supermad', 9, 9, 9, 1, 1, 1, 'Le son de sa guitare vous รฉlectrisent.'), (2, 'Interstellarsen', 0, 4, 3, 1, 3, 1, 'Il vient de l\'espace pour aspirer votre รขme avec le son strident de son arme.'), (3, 'DJ Da funky Code', 2, 3, 2, 1, 1, 1, 'Ne vous mรฉprenez pas de son sourire, sa musique vous poursuivra jusqu\'au prochain tour.'), (4, 'Jack pipow', 0, 6, 5, 1, 3, 1, 'Hypnotisรฉ vous serez !'), (5, 'Pinguin\'s united', 3, 1, 1, 1, 2, 1, 'L\'harmonie de leurs voix รฉcarte toute menaces contre moi.'), (6, 'Spidermaid', 6, 3, 3, 1, 2, 1, 'On se fait une toile ?'), (7, 'Simbale', 1, 2, 1, 1, 1, 1, 'Il donne le LA !'), (8, 'Prinception', 0, 1, 1, 1, 3, 1, 'En chantant il vient doucement prendre possession de votre esprit.'), (9, 'Gong fu panda', 4, 2, 4, 1, 1, 1, 'Le gong retentira, des ondes il projettera, ร  terre il vous mettra...'), (10, 'Hannibal lecteur', 3, 5, 3, 1, 1, 1, 'Sa musique vous hypnotisera, pendant qu\'il vous dรฉmembrera. '), (11, 'Badman', 5, 7, 5, 1, 1, 6, 'Son Moon Walk est lรฉgendaire. '), (12, 'Glad_batteur', 6, 8, 7, 1, 1, 1, 'Il bat les tambours de guerre.'), (13, 'Maitre Soda', 9, 9, 9, 2, 1, 1, 'Le sucre redouter tu dois !'), (14, 'Don Pepperoni', 6, 8, 7, 2, 1, 1, 'Ma si tou t\'en prend ร  ma famille ! Tou va finir en rondelles !'), (15, 'Enfants agites', 0, 2, 1, 2, 3, 1, 'Ils sont totalement insupportables !'), (16, 'Sol glissant', 0, 5, 3, 2, 3, 1, 'Pas รฉvident de tenir bon !'), (17, 'Intoxication alimentaire', 0, 7, 5, 2, 3, 1, 'Vous รชtes bon pour rester couchรฉ.'), (18, 'Menu XXL', 3, 1, 1, 2, 2, 1, 'Vous allez avoir beaucoup de mal ร  le finir !'), (19, 'File d\'attente', 6, 3, 3, 2, 2, 1, 'A partir d\'ici, 1 heure d\'attente !'), (20, 'Ke-babacool', 1, 1, 1, 2, 1, 1, 'Je suis affectueux et indigeste. PEACE'), (21, 'Skate-chup\'', 3, 2, 2, 2, 1, 1, 'Jamais ร  court de sauce !'), (22, 'Do-nut-eat', 3, 4, 3, 2, 1, 1, 'Le sucre, c\'est la vie. Ou pas. '), (23, 'Miss Meuf in', 4, 2, 4, 2, 1, 1, 'Je suis ร  croquer, dur de rรฉsister...'), (24, 'Tahin Sushi', 5, 6, 5, 2, 1, 1, 'Je vais te tailler en sashimi.'); -- -- Contenu de la table `heros_collection` -- INSERT INTO `heros_collection` (`id`, `nom`, `statut`, `pv`, `cagnotte`, `illustration_id`) VALUES (1, 'Hans Zimmer', '', 20, 0, 1), (2, 'Fast Food', '', 20, 0, 1); -- -- Contenu de la table `illustration` -- INSERT INTO `illustration` (`id`, `path`) VALUES (1, 'burger'), (3, 'rrrrrrr'), (4, 'louteche'), (5, 'longin'), (6, 'batman'), (7, 'don_pepperoni.jpg'), (8, 'do-nut-eat.jpg'), (9, 'enfants_agites.jpg'), (10, 'file_d_attente.jpg'), (11, 'intoxication_alimentaire.jpg'), (12, 'kebabacool.jpg'), (13, 'maitre_soda.jpg'), (14, 'menu_xxl.jpg'), (15, 'miss_meuf_in.jpg'), (16, 'skate_chup.jpg'), (17, 'sol_glissant.jpg'), (18, 'tahin_sushi.jpg'), (19, 'badman.jpg'), (20, 'pj_da_funky_code.jpg'), (21, 'gladbatteur.jpg'), (22, 'gong_fu_panda.jpg'), (23, 'hannibal_lecteur.jpg'), (24, 'interstellarsen.jpg'), (25, 'jack_pipow.jpg'), (26, 'pinguins_united.jpg'), (27, 'prinception.jpg'), (28, 'simbale.jpg'), (29, 'spidermaid.jpg'), (30, 'supermap.jpg'); -- -- Contenu de la table `joueur` -- INSERT INTO `joueur` (`id`, `pseudo`, `prenom`, `nom`, `naissance`, `email`, `mot_de_passe`, `ratio_vd`, `adresse`, `code_postal`, `ville`, `telephone`, `en_ligne`) VALUES (1, 'pilou', 'pilou', 'pilou', '2017-12-04', '', 'pilou', 1, NULL, NULL, NULL, NULL, NULL), (2, 'poilu', 'poilu', 'poilu', '2017-12-12', 'poilu', 'poilu', 1, NULL, NULL, NULL, NULL, NULL); -- -- Contenu de la table `plateau` -- INSERT INTO `plateau` (`id`, `illustration_id`, `heros_collection1_id`, `heros_collection2_id`) VALUES (1, 1, 2, 1); -- -- Contenu de la table `statut` -- INSERT INTO `statut` (`id`, `libelle`) VALUES (1, 'Deck'), (2, 'Main'), (3, 'Attente'), (4, 'Combat'), (5, 'Cimetiรจre'); -- -- Contenu de la table `type` -- INSERT INTO `type` (`id`, `libelle`) VALUES (1, 'Crรฉature'), (2, 'Bouclier'), (3, 'Sort'); /*!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 */;
2) Creation de la table TYPECOMPTE 3) Ajout de la clรฉ รฉtrangรจre (licence_id) ร  la table GESTIONNAIRE 4) Changement du type de donnรฉe de la table CONNEXION (date_deconnexion) 5) Affichage du nombre d'utilisateur total et en cours 6) Modification du fichier require administration->module->master->dashboard->required.php 6) Modification du fichier index administration->module->master->dashboard->index.php
/* Navicat MySQL Data Transfer Source Server : feng Source Server Version : 50528 Source Host : localhost:3306 Source Database : mall Target Server Type : MYSQL Target Server Version : 50528 File Encoding : 65001 Date: 2017-09-25 14:27:32 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for t_mall_act -- ---------------------------- DROP TABLE IF EXISTS `t_mall_act`; CREATE TABLE `t_mall_act` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ๆดปๅŠจ่กจ'; -- ---------------------------- -- Records of t_mall_act -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_attr -- ---------------------------- DROP TABLE IF EXISTS `t_mall_attr`; CREATE TABLE `t_mall_attr` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `shxm_mch` varchar(100) DEFAULT NULL COMMENT 'ๅฑžๆ€งๅ็งฐ', `shfqy` varchar(1) DEFAULT '1' COMMENT 'ๆ˜ฏๅฆๅฏ็”จ', `flbh2` int(11) DEFAULT NULL COMMENT 'ๅˆ†็ฑป็ผ–ๅท2', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='ๅฑžๆ€งๅ่กจ'; -- ---------------------------- -- Records of t_mall_attr -- ---------------------------- INSERT INTO `t_mall_attr` VALUES ('13', 'ๅˆ†่พจ็އ', '1', '28', '2017-04-12 16:39:25'); INSERT INTO `t_mall_attr` VALUES ('14', 'ๅฐบๅฏธ', '1', '28', '2017-04-12 16:39:25'); INSERT INTO `t_mall_attr` VALUES ('15', '็ฑปๅž‹', '1', '28', '2017-04-12 16:39:25'); INSERT INTO `t_mall_attr` VALUES ('16', '่‰ฒๅทฎ', '1', '28', '2017-04-12 16:39:25'); INSERT INTO `t_mall_attr` VALUES ('17', 'ๅŠŸ่€—', '1', '28', '2017-04-12 16:39:25'); INSERT INTO `t_mall_attr` VALUES ('18', '่žบๆ—‹ๆกจ', '1', '54', '2017-04-12 17:36:49'); INSERT INTO `t_mall_attr` VALUES ('19', 'ๅ‘ๅŠจๆœบ', '1', '54', '2017-04-12 17:36:49'); INSERT INTO `t_mall_attr` VALUES ('20', 'ๆ‹ๆ‘„ๅƒ็ด ', '1', '54', '2017-04-12 17:36:49'); INSERT INTO `t_mall_attr` VALUES ('21', 'ๆญฆๅ™จ', '1', '54', '2017-04-12 17:36:49'); INSERT INTO `t_mall_attr` VALUES ('22', 'ไฝ“็งฏ', '1', '54', '2017-04-12 17:36:49'); INSERT INTO `t_mall_attr` VALUES ('23', 'ๅฑๅน•็ฑปๅž‹', '1', '28', '2017-04-15 09:06:35'); INSERT INTO `t_mall_attr` VALUES ('24', 'VRๆ•ˆๆžœ', '1', '28', '2017-06-30 15:59:36'); -- ---------------------------- -- Table structure for t_mall_ck_info -- ---------------------------- DROP TABLE IF EXISTS `t_mall_ck_info`; CREATE TABLE `t_mall_ck_info` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท', `ck_mch` varchar(100) DEFAULT NULL COMMENT 'ไป“ๅบ“ๅ็งฐ', `ck_dz` varchar(100) DEFAULT NULL COMMENT 'ไป“ๅบ“ๅœฐๅ€', `ck_lx` varchar(1) DEFAULT NULL COMMENT 'ไป“ๅบ“็ฑปๅž‹', `ck_mj` double DEFAULT NULL COMMENT 'ๅ ๅœฐ้ข็งฏ', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ไป“ๅบ“ไฟกๆฏ่กจ'; -- ---------------------------- -- Records of t_mall_ck_info -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_class_1 -- ---------------------------- DROP TABLE IF EXISTS `t_mall_class_1`; CREATE TABLE `t_mall_class_1` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `flmch1` varchar(11) DEFAULT NULL COMMENT 'ๅˆ†็ฑปๅ็งฐ1', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='ๅˆ†็ฑป1่กจ'; -- ---------------------------- -- Records of t_mall_class_1 -- ---------------------------- INSERT INTO `t_mall_class_1` VALUES ('6', 'ๆœ่ฃ…้ž‹ๅธฝ'); INSERT INTO `t_mall_class_1` VALUES ('7', 'ๅฎถ็”จ็”ตๅ™จ'); INSERT INTO `t_mall_class_1` VALUES ('8', '็”ต่„‘ๅŠžๅ…ฌ'); INSERT INTO `t_mall_class_1` VALUES ('9', 'ๆธ…ๆด็”จๅ“'); INSERT INTO `t_mall_class_1` VALUES ('10', 'ๆฏๅฉด็Žฉๅ…ท'); INSERT INTO `t_mall_class_1` VALUES ('11', 'ๆ‰‹ๆœบๆ•ฐ็ '); INSERT INTO `t_mall_class_1` VALUES ('12', 'ๅ›พไนฆ้Ÿณๅƒ'); INSERT INTO `t_mall_class_1` VALUES ('13', '้ž‹้ด็ฎฑๅŒ…'); INSERT INTO `t_mall_class_1` VALUES ('14', 'ๆˆทๅค–้’Ÿ่กจ'); INSERT INTO `t_mall_class_1` VALUES ('15', '้ฃŸๅ“็ƒŸ้…’'); -- ---------------------------- -- Table structure for t_mall_class_2 -- ---------------------------- DROP TABLE IF EXISTS `t_mall_class_2`; CREATE TABLE `t_mall_class_2` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `flmch2` varchar(4000) DEFAULT NULL COMMENT 'ๅˆ†็ฑปๅ็งฐ2', `flbh1` int(11) DEFAULT NULL COMMENT 'ๅˆ†็ฑป็ผ–ๅท1', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8 COMMENT='ๅˆ†็ฑป2่กจ'; -- ---------------------------- -- Records of t_mall_class_2 -- ---------------------------- INSERT INTO `t_mall_class_2` VALUES ('11', '็”ท่ฃ…', '6'); INSERT INTO `t_mall_class_2` VALUES ('12', 'ๅฅณ่ฃ…', '6'); INSERT INTO `t_mall_class_2` VALUES ('13', '็ซฅ่ฃ…', '6'); INSERT INTO `t_mall_class_2` VALUES ('14', 'ๅ†ฐ็ฎฑ', '7'); INSERT INTO `t_mall_class_2` VALUES ('15', 'ๆด—่กฃๆœบ', '7'); INSERT INTO `t_mall_class_2` VALUES ('16', '็ฌ”่ฎฐๆœฌ', '8'); INSERT INTO `t_mall_class_2` VALUES ('17', 'ๆธธๆˆๆœฌ', '8'); INSERT INTO `t_mall_class_2` VALUES ('18', 'ๆด—ๅ‘', '9'); INSERT INTO `t_mall_class_2` VALUES ('19', 'ๆŠค่‚ค', '9'); INSERT INTO `t_mall_class_2` VALUES ('20', '็‰™่†็‰™ๅˆท', '9'); INSERT INTO `t_mall_class_2` VALUES ('21', 'ๅ†…่กฃ', '6'); INSERT INTO `t_mall_class_2` VALUES ('22', '้…้ฅฐ', '6'); INSERT INTO `t_mall_class_2` VALUES ('23', '็”ต่ง†', '7'); INSERT INTO `t_mall_class_2` VALUES ('24', '็ฉบ่ฐƒ', '7'); INSERT INTO `t_mall_class_2` VALUES ('25', 'ๆ‰‹ๆœบ', '11'); INSERT INTO `t_mall_class_2` VALUES ('26', 'ๆ•ฐ็ ็›ธๆœบ', '11'); INSERT INTO `t_mall_class_2` VALUES ('27', '่€ณๆœบ', '11'); INSERT INTO `t_mall_class_2` VALUES ('28', 'ๆ˜พ็คบๅ™จ', '8'); INSERT INTO `t_mall_class_2` VALUES ('29', '้ผ ๆ ‡', '8'); INSERT INTO `t_mall_class_2` VALUES ('30', '้”ฎ็›˜', '8'); INSERT INTO `t_mall_class_2` VALUES ('31', '่ทฏ็”ฑๅ™จ', '8'); INSERT INTO `t_mall_class_2` VALUES ('32', 'ๅนณๆฟ็”ต่„‘', '8'); INSERT INTO `t_mall_class_2` VALUES ('33', 'ๆ—ถๅฐšๅฅณ้ž‹', '13'); INSERT INTO `t_mall_class_2` VALUES ('34', 'ๆต่กŒ็”ท้ž‹', '13'); INSERT INTO `t_mall_class_2` VALUES ('35', '็ฎฑๅŒ…', '13'); INSERT INTO `t_mall_class_2` VALUES ('36', '้Ÿณ็ฎฑ', '12'); INSERT INTO `t_mall_class_2` VALUES ('37', 'ๆ•™ๆ', '12'); INSERT INTO `t_mall_class_2` VALUES ('38', 'ๆ‚ๅฟ—', '12'); INSERT INTO `t_mall_class_2` VALUES ('39', '็”ตๅญไนฆ', '12'); INSERT INTO `t_mall_class_2` VALUES ('40', '็ง‘ๅญฆ็บชๅฝ•็‰‡', '12'); INSERT INTO `t_mall_class_2` VALUES ('41', 'ๆธธๆˆๆœบ', '11'); INSERT INTO `t_mall_class_2` VALUES ('42', 'ๅฅถ็ฒ‰', '10'); INSERT INTO `t_mall_class_2` VALUES ('43', '็Žฉๅ…ท', '10'); INSERT INTO `t_mall_class_2` VALUES ('44', 'ๅฉดๅ„ฟ่ฝฆ', '10'); INSERT INTO `t_mall_class_2` VALUES ('45', 'ไนๅ™จ', '10'); INSERT INTO `t_mall_class_2` VALUES ('46', '่ท‘ๆญฅๆœบ', '14'); INSERT INTO `t_mall_class_2` VALUES ('47', '้’Ÿ่กจ', '14'); INSERT INTO `t_mall_class_2` VALUES ('48', '็ƒ็ฑป', '14'); INSERT INTO `t_mall_class_2` VALUES ('49', 'ไนๅ™จ', '14'); INSERT INTO `t_mall_class_2` VALUES ('50', '้’“้ฑผ็”จๅ“', '14'); INSERT INTO `t_mall_class_2` VALUES ('51', 'ๆฐดๆžœ', '15'); INSERT INTO `t_mall_class_2` VALUES ('52', 'ไธญๅค–ๅ้…’', '15'); INSERT INTO `t_mall_class_2` VALUES ('53', '่Œถ็ฑป', '15'); -- ---------------------------- -- Table structure for t_mall_class_test -- ---------------------------- DROP TABLE IF EXISTS `t_mall_class_test`; CREATE TABLE `t_mall_class_test` ( `Id` int(11) NOT NULL DEFAULT '0' COMMENT '็ผ–ๅท', `flmch1` varchar(11) DEFAULT NULL COMMENT 'ๅˆ†็ฑปๅ็งฐ1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_mall_class_test -- ---------------------------- INSERT INTO `t_mall_class_test` VALUES ('6', 'ๆœ่ฃ…้ž‹ๅธฝ'); INSERT INTO `t_mall_class_test` VALUES ('7', 'ๅฎถ็”จ็”ตๅ™จ'); INSERT INTO `t_mall_class_test` VALUES ('8', '็”ต่„‘ๅŠžๅ…ฌ'); INSERT INTO `t_mall_class_test` VALUES ('9', 'ๆธ…ๆด็”จๅ“'); INSERT INTO `t_mall_class_test` VALUES ('10', 'ๆฏๅฉด็Žฉๅ…ท'); INSERT INTO `t_mall_class_test` VALUES ('11', 'ๆ‰‹ๆœบๆ•ฐ็ '); INSERT INTO `t_mall_class_test` VALUES ('12', 'ๅ›พไนฆ้Ÿณๅƒ'); INSERT INTO `t_mall_class_test` VALUES ('13', '้ž‹้ด็ฎฑๅŒ…'); INSERT INTO `t_mall_class_test` VALUES ('14', 'ๆˆทๅค–้’Ÿ่กจ'); INSERT INTO `t_mall_class_test` VALUES ('15', '้ฃŸๅ“็ƒŸ้…’'); INSERT INTO `t_mall_class_test` VALUES ('6', 'ๆœ่ฃ…้ž‹ๅธฝ'); INSERT INTO `t_mall_class_test` VALUES ('7', 'ๅฎถ็”จ็”ตๅ™จ'); INSERT INTO `t_mall_class_test` VALUES ('8', '็”ต่„‘ๅŠžๅ…ฌ'); INSERT INTO `t_mall_class_test` VALUES ('9', 'ๆธ…ๆด็”จๅ“'); INSERT INTO `t_mall_class_test` VALUES ('10', 'ๆฏๅฉด็Žฉๅ…ท'); INSERT INTO `t_mall_class_test` VALUES ('11', 'ๆ‰‹ๆœบๆ•ฐ็ '); INSERT INTO `t_mall_class_test` VALUES ('12', 'ๅ›พไนฆ้Ÿณๅƒ'); INSERT INTO `t_mall_class_test` VALUES ('13', '้ž‹้ด็ฎฑๅŒ…'); INSERT INTO `t_mall_class_test` VALUES ('14', 'ๆˆทๅค–้’Ÿ่กจ'); INSERT INTO `t_mall_class_test` VALUES ('15', '้ฃŸๅ“็ƒŸ้…’'); -- ---------------------------- -- Table structure for t_mall_comment_image -- ---------------------------- DROP TABLE IF EXISTS `t_mall_comment_image`; CREATE TABLE `t_mall_comment_image` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท', `pl_id` int(11) DEFAULT NULL COMMENT '่ฏ„่ฎบid', `url` varchar(100) DEFAULT NULL COMMENT 'ๅ›พ็‰‡ๅœฐๅ€', `chjshj` datetime DEFAULT NULL COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='่ฏ„่ฎบๅ›พ็‰‡่กจ'; -- ---------------------------- -- Records of t_mall_comment_image -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_flow -- ---------------------------- DROP TABLE IF EXISTS `t_mall_flow`; CREATE TABLE `t_mall_flow` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `psfsh` varchar(100) DEFAULT '็ก…่ฐทๅฟซ้€’' COMMENT '้…้€ๆ–นๅผ', `psshj` datetime DEFAULT NULL COMMENT '้…้€ๆ—ถ้—ด', `psmsh` varchar(100) DEFAULT NULL COMMENT '้…้€ๆ่ฟฐ', `yh_id` int(11) DEFAULT NULL COMMENT '็”จๆˆทid', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `dd_id` int(11) DEFAULT NULL COMMENT '่ฎขๅ•id', `mqdd` varchar(100) DEFAULT 'ๅฐšๆœชๅ‡บๅบ“' COMMENT '็›ฎๅ‰ๅœฐ็‚น', `mdd` varchar(100) DEFAULT NULL COMMENT '็›ฎ็š„ๅœฐ', `ywy` varchar(100) DEFAULT NULL COMMENT 'ไธšๅŠกๅ‘˜', `lxfsh` varchar(100) DEFAULT NULL COMMENT '่”็ณปๆ–นๅผ', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='็‰ฉๆต่กจ'; -- ---------------------------- -- Records of t_mall_flow -- ---------------------------- INSERT INTO `t_mall_flow` VALUES ('12', '็ก…่ฐทๅฟซ้€’', '2017-09-14 16:18:17', 'ๅ•†ๅ“ๅทฒๅ‡บๅบ“', '6', '2017-09-13 16:16:45', '7', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“', '่Šฑๆžœๅฑฑ', '่€ไฝŸ', '123123123123'); INSERT INTO `t_mall_flow` VALUES ('13', '็ก…่ฐทๅฟซ้€’', '2017-09-14 16:20:28', 'ๅ•†ๅ“ๅทฒๅ‡บๅบ“', '6', '2017-09-13 16:19:46', '8', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“', 'ๅคฉ็ซบๅฏบ', '่€ไฝŸ', '123123123123'); INSERT INTO `t_mall_flow` VALUES ('14', '็ก…่ฐทๅฟซ้€’', null, null, '6', '2017-09-13 16:21:52', '9', 'ๅฐšๆœชๅ‡บๅบ“', 'ๅคฉ็ซบๅฏบ', null, null); INSERT INTO `t_mall_flow` VALUES ('15', '็ก…่ฐทๅฟซ้€’', '2017-09-14 16:23:51', 'ๅ•†ๅ“ๅทฒๅ‡บๅบ“', '6', '2017-09-13 16:23:42', '10', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“', '่Šฑๆžœๅฑฑ', '่€ไฝŸ', '123123123123'); -- ---------------------------- -- Table structure for t_mall_flow_info -- ---------------------------- DROP TABLE IF EXISTS `t_mall_flow_info`; CREATE TABLE `t_mall_flow_info` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='็‰ฉๆตไฟกๆฏ่กจ'; -- ---------------------------- -- Records of t_mall_flow_info -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_minicar -- ---------------------------- DROP TABLE IF EXISTS `t_mall_minicar`; CREATE TABLE `t_mall_minicar` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='่ฟทไฝ ่ดญ็‰ฉ่ฝฆ'; -- ---------------------------- -- Records of t_mall_minicar -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_order -- ---------------------------- DROP TABLE IF EXISTS `t_mall_order`; CREATE TABLE `t_mall_order` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `shhr` varchar(100) DEFAULT NULL COMMENT 'ๆ”ถ่ดงไบบ', `zje` decimal(10,0) DEFAULT NULL COMMENT 'ๆ€ป้‡‘้ข', `jdh` int(11) DEFAULT '1' COMMENT '่ฟ›ๅบฆๅท', `yh_id` int(11) DEFAULT NULL COMMENT '็”จๆˆทid', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `yjsdshj` datetime DEFAULT NULL COMMENT '้ข„่ฎก้€่พพๆ—ถ้—ด', `dzh_id` int(11) DEFAULT NULL COMMENT 'ๅœฐๅ€id', `dzh_mch` varchar(255) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='่ฎขๅ•่กจ ่ฎขๅ•่กจ'; -- ---------------------------- -- Records of t_mall_order -- ---------------------------- INSERT INTO `t_mall_order` VALUES ('7', '็Œดๅ“ฅ', '4997', '2', '6', '2017-09-13 16:16:45', '2017-09-16 16:16:50', '5', '่Šฑๆžœๅฑฑ'); INSERT INTO `t_mall_order` VALUES ('8', '่Žฑๅ“ฅ', '4997', '2', '6', '2017-09-13 16:19:46', '2017-09-16 16:19:52', '6', 'ๅคฉ็ซบๅฏบ'); INSERT INTO `t_mall_order` VALUES ('9', '่Žฑๅ“ฅ', '4997', '1', '6', '2017-09-13 16:21:52', null, '6', 'ๅคฉ็ซบๅฏบ'); INSERT INTO `t_mall_order` VALUES ('10', '็Œดๅ“ฅ', '4997', '2', '6', '2017-09-13 16:23:42', '2017-09-16 16:23:43', '5', '่Šฑๆžœๅฑฑ'); -- ---------------------------- -- Table structure for t_mall_order_info -- ---------------------------- DROP TABLE IF EXISTS `t_mall_order_info`; CREATE TABLE `t_mall_order_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dd_id` int(11) DEFAULT NULL, `sku_id` int(11) DEFAULT NULL, `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `sku_mch` varchar(255) DEFAULT NULL, `shp_tp` varchar(255) DEFAULT NULL, `sku_jg` decimal(10,0) DEFAULT NULL, `sku_shl` int(11) DEFAULT NULL, `sku_kcdz` varchar(255) DEFAULT NULL, `flow_id` int(11) DEFAULT NULL COMMENT '็‰ฉๆตid', `gwch_id` int(11) DEFAULT NULL COMMENT '่ดญ็‰ฉ่ฝฆid', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='่ฎขๅ•ไฟกๆฏ่กจ'; -- ---------------------------- -- Records of t_mall_order_info -- ---------------------------- INSERT INTO `t_mall_order_info` VALUES ('19', '7', '1', '2017-09-13 16:16:45', 'ๅฐๆ˜Ž่”ๆƒณไฝŽ็ซฏ้…็ฝฎ็ณปๅˆ—ๆ˜พ็คบๅ™จ14ๅฏธ100็“ฆๅŠŸ็އ', '1491986138116u=2528461445,241269007&fm=23&gp=0.jpg', '4997', '1', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“', '12', '32'); INSERT INTO `t_mall_order_info` VALUES ('20', '8', '1', '2017-09-13 16:19:46', 'ๅฐๆ˜Ž่”ๆƒณไฝŽ็ซฏ้…็ฝฎ็ณปๅˆ—ๆ˜พ็คบๅ™จ14ๅฏธ100็“ฆๅŠŸ็އ', '1491986138116u=2528461445,241269007&fm=23&gp=0.jpg', '4997', '1', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“', '13', '33'); INSERT INTO `t_mall_order_info` VALUES ('21', '9', '1', '2017-09-13 16:21:52', 'ๅฐๆ˜Ž่”ๆƒณไฝŽ็ซฏ้…็ฝฎ็ณปๅˆ—ๆ˜พ็คบๅ™จ14ๅฏธ100็“ฆๅŠŸ็އ', '1491986138116u=2528461445,241269007&fm=23&gp=0.jpg', '4997', '1', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“', '14', '34'); INSERT INTO `t_mall_order_info` VALUES ('22', '10', '1', '2017-09-13 16:23:42', 'ๅฐๆ˜Ž่”ๆƒณไฝŽ็ซฏ้…็ฝฎ็ณปๅˆ—ๆ˜พ็คบๅ™จ14ๅฏธ100็“ฆๅŠŸ็އ', '1491986138116u=2528461445,241269007&fm=23&gp=0.jpg', '4997', '1', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“', '15', '35'); -- ---------------------------- -- Table structure for t_mall_order_phase -- ---------------------------- DROP TABLE IF EXISTS `t_mall_order_phase`; CREATE TABLE `t_mall_order_phase` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `jdh` int(11) DEFAULT NULL COMMENT '่ฟ›ๅบฆๅท', `jdmsh` varchar(100) DEFAULT NULL COMMENT '่ฟ›ๅบฆๆ่ฟฐ', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='่ฎขๅ•่ฟ›ๅบฆ่กจ'; -- ---------------------------- -- Records of t_mall_order_phase -- ---------------------------- INSERT INTO `t_mall_order_phase` VALUES ('1', '1', '่ฎขๅ•ๅทฒๆไบค'); INSERT INTO `t_mall_order_phase` VALUES ('2', '2', '่ฎขๅ•ๅทฒๆ”ฏไป˜'); INSERT INTO `t_mall_order_phase` VALUES ('3', '3', '่ฟ่พ“้€”ไธญ'); INSERT INTO `t_mall_order_phase` VALUES ('4', '4', '่ฎขๅ•็ญพๆ”ถ'); INSERT INTO `t_mall_order_phase` VALUES ('5', '5', 'ๅฎŒๆˆ'); -- ---------------------------- -- Table structure for t_mall_product -- ---------------------------- DROP TABLE IF EXISTS `t_mall_product`; CREATE TABLE `t_mall_product` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `shp_mch` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅ็งฐ', `shp_tp` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅ›พ็‰‡', `flbh1` int(11) DEFAULT NULL COMMENT 'ๅˆ†็ฑป็ผ–ๅท1', `flbh2` int(11) DEFAULT NULL COMMENT 'ๅˆ†็ฑป็ผ–ๅท2', `pp_id` int(11) DEFAULT NULL COMMENT 'ๅ“็‰Œid', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `shp_msh` varchar(1000) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๆ่ฟฐ', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='ๅ•†ๅ“่กจ'; -- ---------------------------- -- Records of t_mall_product -- ---------------------------- INSERT INTO `t_mall_product` VALUES ('6', '่”ๆƒณ้ซ˜็ซฏ็ณปๅˆ—ๆ˜พ็คบๅ™จ', '1491985960210u=1986847822,526015344&fm=23&gp=0.jpg', '8', '28', '2', '2017-04-12 16:32:40', '้ซ˜้…็ฝฎ๏ผŒๅœŸ่ฑช็š„ๅฎšๅˆถ๏ผŒ่”ๆƒณ้ซ˜็ซฏ็ณปๅˆ—ๆ˜พ็คบๅ™จ'); INSERT INTO `t_mall_product` VALUES ('7', '่”ๆƒณไธญไฝŽ็ซฏ็ณปๅˆ—ๆ˜พ็คบๅ™จ', '1491986072915u=3073007440,1268514512&fm=23&gp=0.jpg', '8', '28', '2', '2017-04-12 16:34:32', '้ซ˜ๆ€งไปทๆฏ”๏ผŒ้ซ˜้…็ฝฎ๏ผŒ่€็™พๅง“็š„้ฆ–้€‰'); INSERT INTO `t_mall_product` VALUES ('8', '่”ๆƒณไฝŽ็ซฏ็ณปๅˆ—ๆ˜พ็คบๅ™จ', '1491986138116u=2528461445,241269007&fm=23&gp=0.jpg', '8', '28', '2', '2017-04-12 16:35:38', 'ไฝŽไปทๆ ผ๏ผŒๅพˆ่ดดๅฟƒ๏ผŒๆœ‰ๅ“่ดจ'); INSERT INTO `t_mall_product` VALUES ('9', 'ๅŽไธบI็ณปๅˆ—็บฏๅนณๆ˜พ็คบๅ™จ', '1492090141522u=3279637596,1383743164&fm=23&gp=0.jpg', '8', '28', '18', '2017-04-13 21:29:01', 'ๅŽไธบๅ“็‰Œ๏ผŒไธญๅ›ฝๅ“่ดจ'); INSERT INTO `t_mall_product` VALUES ('10', 'ๅŽไธบIII็ณปๅˆ—็บฏๅนณๆ˜พ็คบๅ™จ', '1492090185160u=1986847822,526015344&fm=23&gp=0.jpg', '8', '28', '18', '2017-04-13 21:29:45', 'ๅŽไธบๅ“็‰Œ๏ผŒไธญๅ›ฝๅ“่ดจ,III็ณปๅˆ—'); INSERT INTO `t_mall_product` VALUES ('11', 'ๅŽไธบII็ณปๅˆ—็บฏๅนณๆ˜พ็คบๅ™จ', '1492090266105u=4230786066,21615376&fm=23&gp=0.jpg', '8', '16', '18', '2017-04-13 21:31:06', 'ๅŽไธบๅ“็‰Œ๏ผŒไธญๅ›ฝๅ“่ดจ'); INSERT INTO `t_mall_product` VALUES ('12', 'ๅค–ๆ˜Ÿไบบ้ซ˜็ซฏ้…็ฝฎๆ˜พ็คบๅ™จ', '1492090350000u=1238273040,2060575675&fm=23&gp=0.jpg', '8', '28', '20', '2017-04-13 21:32:30', 'ๅค–ๆ˜Ÿไบบ๏ผŒ้ซ˜้…็ฝฎ้ซ˜ไปทๆ ผ'); INSERT INTO `t_mall_product` VALUES ('13', 'ๅฐ็ฑณII็ณปๅˆ—ๆ— ไบบๆœบ', '1492090457217u=2462024849,196539317&fm=23&gp=0.jpg', '7', '54', '8', '2017-04-13 21:34:17', 'ๅฐ็ฑณๆ— ไบบๆœบ๏ผŒๆœ€้ป‘้ป‘็ง‘ๆŠ€'); INSERT INTO `t_mall_product` VALUES ('14', '็พŽ็š„Mideaๆ— ไบบๆœบ', '1492090512844u=536484099,1677243497&fm=23&gp=0.jpg', '7', '54', '22', '2017-04-13 21:35:12', '็พŽ็š„Mideaๆ— ไบบๆœบ,้™คไบ†็ฉบ่ฐƒ่ฟ˜ๆœ‰ๆ— ไบบๆœบ'); -- ---------------------------- -- Table structure for t_mall_product_color -- ---------------------------- DROP TABLE IF EXISTS `t_mall_product_color`; CREATE TABLE `t_mall_product_color` ( `id` int(11) NOT NULL AUTO_INCREMENT, `shp_id` int(11) DEFAULT NULL, `shp_ys` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“้ขœ่‰ฒ', `shfqy` int(11) DEFAULT NULL COMMENT 'ๆ˜ฏๅฆๅฏ็”จ', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_mall_product_color -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_product_comment -- ---------------------------- DROP TABLE IF EXISTS `t_mall_product_comment`; CREATE TABLE `t_mall_product_comment` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท', `yh_id` int(11) DEFAULT NULL COMMENT '็”จๆˆทid', `plnr` varchar(1000) DEFAULT NULL COMMENT '่ฏ„่ฎบๅ†…ๅฎน', `plshj` datetime DEFAULT NULL COMMENT 'ๅนณ่ทฏๆ—ถ้—ด', `hpjb` int(11) DEFAULT NULL COMMENT 'ๅฅฝ่ฏ„็บงๅˆซ', `sku_id` int(11) DEFAULT NULL COMMENT 'skuid', `sku_mch` varchar(100) DEFAULT NULL COMMENT 'skuๅ็งฐ', `shp_id` int(11) DEFAULT NULL COMMENT 'ๅ•†ๅ“id', `shp_mch` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅ็งฐ', `dd_id` int(11) DEFAULT NULL COMMENT '่ฎขๅ•id', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ๅ•†ๅ“่ฏ„่ฎบ่กจ'; -- ---------------------------- -- Records of t_mall_product_comment -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_product_image -- ---------------------------- DROP TABLE IF EXISTS `t_mall_product_image`; CREATE TABLE `t_mall_product_image` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `zy` varchar(100) DEFAULT NULL COMMENT 'ไฝœ็”จ', `shp_id` int(11) DEFAULT NULL COMMENT 'ๅ•†ๅ“id', `url` varchar(100) DEFAULT NULL COMMENT 'ๅ›พ็‰‡ๅœฐๅ€', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COMMENT='ๅ•†ๅ“ๅ›พ็‰‡่กจ'; -- ---------------------------- -- Records of t_mall_product_image -- ---------------------------- INSERT INTO `t_mall_product_image` VALUES ('22', null, '6', '1491985960210u=1986847822,526015344&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('23', null, '6', '1491985960212u=910918644,3968938767&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('24', null, '6', '1491985960215u=697005892,2279856665&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('25', null, '6', '1491985960217u=1829419258,1281228148&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('26', null, '6', '1491985960219u=1986847822,526015344&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('27', null, '7', '14919599201082w1231.jpg'); INSERT INTO `t_mall_product_image` VALUES ('28', null, '7', '1491986072918u=1567465564,365038548&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('29', null, '7', '1491986072920u=1158284051,2123775206&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('30', null, '7', '1491986072923u=2093778323,4064375747&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('31', null, '7', '1491986072926u=768317699,2912985599&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('32', null, '8', '149195992011212 (2).jpg'); INSERT INTO `t_mall_product_image` VALUES ('33', null, '8', '1491986138118u=910918644,3968938767&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('34', null, '8', '1491986138120u=2093778323,4064375747&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('35', null, '8', '1491986138123u=697005892,2279856665&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('36', null, '8', '1491986138125u=1567465564,365038548&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('37', null, '9', '1492090141522u=3279637596,1383743164&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('38', null, '9', '1492090141524u=768317699,2912985599&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('39', null, '9', '1492090141526u=910918644,3968938767&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('40', null, '9', '1492090141529u=4230786066,21615376&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('41', null, '9', '1491986072915u=3073007440,1268514512&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('42', null, '10', '1492090185160u=1986847822,526015344&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('43', null, '10', '1492090185163u=612772251,2395823516&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('44', null, '10', '1492090185168u=326539897,4239692692&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('45', null, '10', '1492090185170u=768317699,2912985599&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('46', null, '10', '1492090185173u=768317699,2912985599&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('47', null, '11', '1492090266105u=4230786066,21615376&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('48', null, '11', '1492090266110u=697005892,2279856665&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('49', null, '11', '1492090266114u=326539897,4239692692&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('50', null, '11', '1492090266117u=768317699,2912985599&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('51', null, '11', '14919599201082w1231.jpg'); INSERT INTO `t_mall_product_image` VALUES ('52', null, '12', '1492090350000u=1238273040,2060575675&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('53', null, '12', '1492090350003u=612772251,2395823516&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('54', null, '12', '1492090350006u=768317699,2912985599&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('55', null, '12', '1492090350009u=326539897,4239692692&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('56', null, '12', '1492090350011u=252043130,4006861356&fm=21&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('57', null, '13', '1492090457217u=2462024849,196539317&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('58', null, '13', '1492090457219u=128286021,1308925669&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('59', null, '13', '1492090457221u=536484099,1677243497&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('60', null, '13', '1492090457223u=866145389,1046219503&fm=72.jpg'); INSERT INTO `t_mall_product_image` VALUES ('61', null, '13', '1492090457225u=209986129,198077049&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('62', null, '14', '1492090512844u=536484099,1677243497&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('63', null, '14', '1492090512847u=128286021,1308925669&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('64', null, '14', '1492090512849u=866145389,1046219503&fm=72.jpg'); INSERT INTO `t_mall_product_image` VALUES ('65', null, '14', '1492090512852u=536484099,1677243497&fm=23&gp=0.jpg'); INSERT INTO `t_mall_product_image` VALUES ('66', null, '14', '1492090512854'); -- ---------------------------- -- Table structure for t_mall_product_sku_info -- ---------------------------- DROP TABLE IF EXISTS `t_mall_product_sku_info`; CREATE TABLE `t_mall_product_sku_info` ( `sku_id` int(11) NOT NULL, `shp_msh` varchar(4000) DEFAULT 'ๆš‚ๆ— ๆ่ฟฐ' COMMENT 'ๅ•†ๅ“ๆ่ฟฐ', `shp_lb` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“็ฑปๅˆซ', `pp_id` int(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅ“็‰Œ', `shpz_zhl` double(11,0) DEFAULT '0' COMMENT 'ๅ•†ๅ“้‡้‡', `shp_chc` double DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅฐบๅฏธ', `shp_ys` int(100) NOT NULL DEFAULT '0', `shp_bb` int(100) NOT NULL DEFAULT '0', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`shp_ys`,`shp_bb`), UNIQUE KEY `sku_id_unique` (`sku_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ๅ•†ๅ“ๅŸบๆœฌไฟกๆฏ่กจ'; -- ---------------------------- -- Records of t_mall_product_sku_info -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_product_version -- ---------------------------- DROP TABLE IF EXISTS `t_mall_product_version`; CREATE TABLE `t_mall_product_version` ( `id` int(11) NOT NULL AUTO_INCREMENT, `shp_id` int(11) DEFAULT NULL, `shp_bb` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“็‰ˆๆœฌ', `shfqy` int(11) DEFAULT NULL COMMENT 'ๆ˜ฏๅฆๅฏ็”จ', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_mall_product_version -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_shoppingcar -- ---------------------------- DROP TABLE IF EXISTS `t_mall_shoppingcar`; CREATE TABLE `t_mall_shoppingcar` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `sku_mch` varchar(100) DEFAULT NULL COMMENT 'skuๅ็งฐ', `sku_jg` decimal(10,0) DEFAULT NULL COMMENT 'skuไปทๆ ผ', `tjshl` int(11) DEFAULT NULL COMMENT 'ๆทปๅŠ ๆ•ฐ้‡', `hj` decimal(10,0) DEFAULT NULL COMMENT 'ๅˆ่ฎก', `yh_id` int(11) DEFAULT NULL COMMENT '็”จๆˆทid', `shp_id` int(11) DEFAULT NULL COMMENT 'ๅ•†ๅ“id', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `sku_id` int(11) DEFAULT NULL COMMENT 'skuid', `shp_tp` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅ›พ็‰‡', `shfxz` varchar(1) DEFAULT '1' COMMENT 'ๆ˜ฏๅฆ้€‰ไธญ', `kcdz` varchar(100) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='่ดญ็‰ฉ่ฝฆ่กจ'; -- ---------------------------- -- Records of t_mall_shoppingcar -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_shoppingcar_info -- ---------------------------- DROP TABLE IF EXISTS `t_mall_shoppingcar_info`; CREATE TABLE `t_mall_shoppingcar_info` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท', `sku_mch` varchar(4000) DEFAULT NULL COMMENT 'ๅ็งฐ', `sku_jg` int(11) DEFAULT NULL COMMENT 'skuไปทๆ ผ', `yh_xm` varchar(100) DEFAULT NULL COMMENT '็”จๆˆทๅง“ๅ', `yh_nch` varchar(4000) DEFAULT NULL COMMENT '็”จๆˆทๆ˜ต็งฐ', `yh_dz` varchar(100) DEFAULT NULL COMMENT '็”จๆˆทๅœฐๅ€', `shp_mch` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅ็งฐ', `shp_tp` varchar(100) DEFAULT NULL COMMENT 'ๅ•†ๅ“ๅ›พ็‰‡', `sku_kc` int(11) DEFAULT NULL COMMENT 'skuๅบ“ๅญ˜', `sku_shx` varchar(100) DEFAULT NULL COMMENT 'skuๅฑžๆ€ง', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='่ดญ็‰ฉ่ฝฆไฟกๆฏ่กจ'; -- ---------------------------- -- Records of t_mall_shoppingcar_info -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_sku -- ---------------------------- DROP TABLE IF EXISTS `t_mall_sku`; CREATE TABLE `t_mall_sku` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `shp_id` int(11) DEFAULT NULL COMMENT 'ๅ็งฐ', `kc` int(11) DEFAULT NULL COMMENT 'ๅบ“ๅญ˜', `jg` double DEFAULT NULL COMMENT 'ไปทๆ ผ', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `sku_mch` varchar(100) DEFAULT NULL COMMENT 'skuๅ็งฐ', `sku_xl` int(11) DEFAULT NULL COMMENT 'sku้”€้‡', `kcdz` varchar(500) DEFAULT 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“' COMMENT 'ๅบ“ๅญ˜ๅœฐๅ€', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='skuๅบ“ๅญ˜่กจ'; -- ---------------------------- -- Records of t_mall_sku -- ---------------------------- INSERT INTO `t_mall_sku` VALUES ('1', '8', '0', '10000', '2017-04-13 21:36:20', 'ๅฐๆ˜Ž่”ๆƒณไฝŽ็ซฏ้…็ฝฎ็ณปๅˆ—ๆ˜พ็คบๅ™จ14ๅฏธ100็“ฆๅŠŸ็އ', '22', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('2', '7', '94', '43330', '2017-04-13 21:44:56', 'ๅฐๆ˜Ž่”ๆƒณไธญ็ซฏ็ณปๅˆ—ๆ˜พ็คบๅ™จ200็“ฆ15ๅฏธ', '6', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('3', '6', '98', '8888', '2017-04-13 21:46:19', '่”ๆƒณ้ซ˜็ซฏ็ณปๅˆ—ๆ˜พ็คบๅ™จ500็“ฆ45ๅฏธ', '6', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('4', '6', '98', '8877', '2017-04-13 21:50:29', '่”ๆƒณ้ซ˜็ซฏ็ณปๅˆ—ๆ˜พ็คบๅ™จ24ๅฏธๆ›ฒ้ข', '101', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('5', '7', '99', '3555', '2017-04-13 21:57:12', '่”ๆƒณไธญ็ซฏ็ณปๅˆ—24ๅฏธ้žๆ›ฒ้ขๆ˜พ็คบๅ™จ', '33', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('6', '9', '100', '3333', '2017-04-13 22:00:59', 'ๅŽไธบI็ณปๅˆ—24ๅฏธๆ›ฒ้ขๆ˜พ็คบๅ™จ', '4', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('7', '9', '100', '4555', '2017-04-13 22:01:36', 'ๅŽไธบI็ณปๅˆ—24ๅฏธ้žๆ›ฒ้ขๆ˜พ็คบๅ™จ', '5', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('8', '10', '100', '1555', '2017-04-13 22:02:26', 'ๅŽไธบII็ณปๅˆ—15ๅฏธๅฑๅน•ๆ˜พ็คบๅ™จ', '6', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('9', '12', '100', '9999', '2017-04-13 22:03:07', 'ๅค–ๆ˜Ÿไบบ้ซ˜ๅˆ†่พจ็އ้žๆ›ฒ้ขๆ˜พ็คบๅ™จ', '90', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('10', '12', '100', '10000', '2017-04-13 22:03:59', 'ๅค–ๆ˜Ÿไบบ้ซ˜ๅˆ†่พจ็އๆ›ฒ้ขๆ˜พ็คบๅ™จ', '23', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('11', '9', '98', '1555', '2017-04-13 22:05:13', 'ๅŽไธบI็ณปๅˆ—15ๅฏธ้žๆ›ฒ้ขๆ˜พ็คบๅ™จ', '902', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('12', '8', '99', '3555', '2017-04-13 22:05:56', '่”ๆƒณไฝŽ็ซฏ้…็ฝฎ็ณปๅˆ—ๆ˜พ็คบๅ™จ24ๅฏธ200็“ฆๅŠŸ็އ', '145', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('13', '13', '100', '20000', '2017-04-13 22:07:03', 'ๅฐ็ฑณ4้ฉฑๅŠจII็ณปๅˆ—ๆ— ไบบๆœบ', '50', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('14', '14', '100', '3555', '2017-04-13 22:07:39', '็พŽ็š„ๅ››่ฝฎๆ— ไบบๆœบ', '2', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('15', '13', '100', '10000', '2017-04-13 22:08:15', 'ๅฐ็ฑณ8้ฉฑๅŠจๆ— ไบบๆœบ', '6', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('16', '12', '100', '20000', '2017-04-14 14:15:51', 'ๅค–ๆ˜Ÿไบบ้žๆ›ฒ้ข้ซ˜็ซฏ45ๅฏธๆ˜พ็คบๅ™จ', '0', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('17', '7', '100', '3555', '2017-04-15 09:13:32', '่”ๆƒณไธญไฝŽ็ซฏ็ณปๅˆ—LCDๆ˜พ็คบๅฑๆ˜พ็คบๅฑ', '0', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถๅคงไป“ๅบ“'); INSERT INTO `t_mall_sku` VALUES ('18', '12', '89', '1000', '2017-05-06 14:39:45', 'ๅค–ๆ˜Ÿไบบisoๅฑๅน•ๆ˜พ็คบๅ™จ', '1', 'ๆ˜ŒๅนณๅŒบๅŒ—ไธƒๅฎถไธŠ็ก…่ฐท'); INSERT INTO `t_mall_sku` VALUES ('19', '7', '11', '2222', '2017-05-28 10:52:48', '่”ๆƒณไธ€็บง็ณปๅˆ—ๆ˜พ็คบๅ™จ็œ้’ฑ็Ž‹', '0', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('20', '8', '11', '2222', '2017-05-28 10:55:35', '่”ๆƒณไธ€็บง็ณปๅˆ—ๆ˜พ็คบๅ™จ็œ้’ฑ็Ž‹2', '0', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('21', '12', '10', '2222', '2017-05-28 11:02:33', 'ๅค–ๆ˜Ÿไบบไธ€็บง็ณปๅˆ—ๆ˜พ็คบๅ™จ็œ้’ฑ็Ž‹', '1', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('22', '10', '11', '123123', '2017-05-28 11:08:29', 'ๅŽไธบไธ€็บง็ณปๅˆ—ๆ˜พ็คบๅ™จ็œ้’ฑ็Ž‹', '0', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('23', '12', '11', '123123', '2017-05-28 11:13:45', 'ๅค–ๆ˜Ÿไบบไธ€็บง็ณปๅˆ—ๆ˜พ็คบๅ™จ็œ้’ฑ็Ž‹2', '0', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); INSERT INTO `t_mall_sku` VALUES ('24', '12', '9', '10001', '2017-06-30 16:00:42', 'ๅค–ๆ˜Ÿไบบๅ…จๆ™ฏvr้ซ˜็ซฏๆ˜พ็คบๅ™จ', '0', 'ๅŒ—ไบฌๅคฉๆ„ๅฐๅ•†ๅ“ๆ‰นๅ‘ๅธ‚ๅœบ'); -- ---------------------------- -- Table structure for t_mall_sku_attr_value -- ---------------------------- DROP TABLE IF EXISTS `t_mall_sku_attr_value`; CREATE TABLE `t_mall_sku_attr_value` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `shxm_id` int(11) DEFAULT NULL COMMENT 'ๅฑžๆ€งๅid', `shxzh_id` int(11) DEFAULT NULL COMMENT 'ๅฑžๆ€งๅ€ผid', `shp_id` int(11) DEFAULT NULL COMMENT 'ๅ•†ๅ“id', `is_sku` varchar(1) DEFAULT '1' COMMENT 'ๆ˜ฏๅฆsku', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', `sku_id` int(11) DEFAULT NULL COMMENT 'skuid', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=utf8 COMMENT='skuๅฑžๆ€งๅ’Œๅฑžๆ€งๅ€ผๅ…ณ่”่กจ'; -- ---------------------------- -- Records of t_mall_sku_attr_value -- ---------------------------- INSERT INTO `t_mall_sku_attr_value` VALUES ('1', '13', '30', '8', '1', '2017-04-13 21:36:25', '1'); INSERT INTO `t_mall_sku_attr_value` VALUES ('2', '14', '33', '8', '1', '2017-04-13 21:36:25', '1'); INSERT INTO `t_mall_sku_attr_value` VALUES ('3', '15', '38', '8', '1', '2017-04-13 21:36:25', '1'); INSERT INTO `t_mall_sku_attr_value` VALUES ('4', '16', '40', '8', '1', '2017-04-13 21:36:25', '1'); INSERT INTO `t_mall_sku_attr_value` VALUES ('5', '17', '44', '8', '1', '2017-04-13 21:36:25', '1'); INSERT INTO `t_mall_sku_attr_value` VALUES ('6', '13', '31', '7', '1', '2017-04-13 21:44:56', '2'); INSERT INTO `t_mall_sku_attr_value` VALUES ('7', '14', '34', '7', '1', '2017-04-13 21:44:56', '2'); INSERT INTO `t_mall_sku_attr_value` VALUES ('8', '15', '39', '7', '1', '2017-04-13 21:44:56', '2'); INSERT INTO `t_mall_sku_attr_value` VALUES ('9', '16', '41', '7', '1', '2017-04-13 21:44:56', '2'); INSERT INTO `t_mall_sku_attr_value` VALUES ('10', '17', '45', '7', '1', '2017-04-13 21:44:56', '2'); INSERT INTO `t_mall_sku_attr_value` VALUES ('11', '13', '32', '6', '1', '2017-04-13 21:46:19', '3'); INSERT INTO `t_mall_sku_attr_value` VALUES ('12', '14', '37', '6', '1', '2017-04-13 21:46:19', '3'); INSERT INTO `t_mall_sku_attr_value` VALUES ('13', '15', '39', '6', '1', '2017-04-13 21:46:19', '3'); INSERT INTO `t_mall_sku_attr_value` VALUES ('14', '16', '43', '6', '1', '2017-04-13 21:46:19', '3'); INSERT INTO `t_mall_sku_attr_value` VALUES ('15', '17', '47', '6', '1', '2017-04-13 21:46:19', '3'); INSERT INTO `t_mall_sku_attr_value` VALUES ('16', '13', '31', '6', '1', '2017-04-13 21:50:29', '4'); INSERT INTO `t_mall_sku_attr_value` VALUES ('17', '14', '35', '6', '1', '2017-04-13 21:50:29', '4'); INSERT INTO `t_mall_sku_attr_value` VALUES ('18', '15', '38', '6', '1', '2017-04-13 21:50:29', '4'); INSERT INTO `t_mall_sku_attr_value` VALUES ('19', '16', '42', '6', '1', '2017-04-13 21:50:29', '4'); INSERT INTO `t_mall_sku_attr_value` VALUES ('20', '17', '46', '6', '1', '2017-04-13 21:50:29', '4'); INSERT INTO `t_mall_sku_attr_value` VALUES ('21', '13', '31', '7', '1', '2017-04-13 21:57:12', '5'); INSERT INTO `t_mall_sku_attr_value` VALUES ('22', '14', '35', '7', '1', '2017-04-13 21:57:12', '5'); INSERT INTO `t_mall_sku_attr_value` VALUES ('23', '15', '39', '7', '1', '2017-04-13 21:57:12', '5'); INSERT INTO `t_mall_sku_attr_value` VALUES ('24', '16', '41', '7', '1', '2017-04-13 21:57:12', '5'); INSERT INTO `t_mall_sku_attr_value` VALUES ('25', '17', '45', '7', '1', '2017-04-13 21:57:12', '5'); INSERT INTO `t_mall_sku_attr_value` VALUES ('26', '13', '32', '9', '1', '2017-04-13 22:00:59', '6'); INSERT INTO `t_mall_sku_attr_value` VALUES ('27', '14', '35', '9', '1', '2017-04-13 22:00:59', '6'); INSERT INTO `t_mall_sku_attr_value` VALUES ('28', '15', '38', '9', '1', '2017-04-13 22:00:59', '6'); INSERT INTO `t_mall_sku_attr_value` VALUES ('29', '16', '40', '9', '1', '2017-04-13 22:00:59', '6'); INSERT INTO `t_mall_sku_attr_value` VALUES ('30', '17', '45', '9', '1', '2017-04-13 22:00:59', '6'); INSERT INTO `t_mall_sku_attr_value` VALUES ('31', '13', '30', '9', '1', '2017-04-13 22:01:36', '7'); INSERT INTO `t_mall_sku_attr_value` VALUES ('32', '14', '34', '9', '1', '2017-04-13 22:01:36', '7'); INSERT INTO `t_mall_sku_attr_value` VALUES ('33', '15', '39', '9', '1', '2017-04-13 22:01:36', '7'); INSERT INTO `t_mall_sku_attr_value` VALUES ('34', '16', '41', '9', '1', '2017-04-13 22:01:36', '7'); INSERT INTO `t_mall_sku_attr_value` VALUES ('35', '17', '44', '9', '1', '2017-04-13 22:01:36', '7'); INSERT INTO `t_mall_sku_attr_value` VALUES ('36', '13', '31', '10', '1', '2017-04-13 22:02:26', '8'); INSERT INTO `t_mall_sku_attr_value` VALUES ('37', '14', '34', '10', '1', '2017-04-13 22:02:26', '8'); INSERT INTO `t_mall_sku_attr_value` VALUES ('38', '15', '39', '10', '1', '2017-04-13 22:02:26', '8'); INSERT INTO `t_mall_sku_attr_value` VALUES ('39', '16', '43', '10', '1', '2017-04-13 22:02:26', '8'); INSERT INTO `t_mall_sku_attr_value` VALUES ('40', '17', '44', '10', '1', '2017-04-13 22:02:26', '8'); INSERT INTO `t_mall_sku_attr_value` VALUES ('41', '13', '32', '12', '1', '2017-04-13 22:03:07', '9'); INSERT INTO `t_mall_sku_attr_value` VALUES ('42', '14', '37', '12', '1', '2017-04-13 22:03:07', '9'); INSERT INTO `t_mall_sku_attr_value` VALUES ('43', '15', '39', '12', '1', '2017-04-13 22:03:07', '9'); INSERT INTO `t_mall_sku_attr_value` VALUES ('44', '16', '43', '12', '1', '2017-04-13 22:03:07', '9'); INSERT INTO `t_mall_sku_attr_value` VALUES ('45', '17', '46', '12', '1', '2017-04-13 22:03:07', '9'); INSERT INTO `t_mall_sku_attr_value` VALUES ('46', '13', '31', '12', '1', '2017-04-13 22:03:59', '10'); INSERT INTO `t_mall_sku_attr_value` VALUES ('47', '14', '34', '12', '1', '2017-04-13 22:03:59', '10'); INSERT INTO `t_mall_sku_attr_value` VALUES ('48', '15', '38', '12', '1', '2017-04-13 22:03:59', '10'); INSERT INTO `t_mall_sku_attr_value` VALUES ('49', '16', '41', '12', '1', '2017-04-13 22:03:59', '10'); INSERT INTO `t_mall_sku_attr_value` VALUES ('50', '17', '45', '12', '1', '2017-04-13 22:03:59', '10'); INSERT INTO `t_mall_sku_attr_value` VALUES ('51', '13', '30', '9', '1', '2017-04-13 22:05:13', '11'); INSERT INTO `t_mall_sku_attr_value` VALUES ('52', '14', '34', '9', '1', '2017-04-13 22:05:13', '11'); INSERT INTO `t_mall_sku_attr_value` VALUES ('53', '15', '39', '9', '1', '2017-04-13 22:05:13', '11'); INSERT INTO `t_mall_sku_attr_value` VALUES ('54', '16', '43', '9', '1', '2017-04-13 22:05:13', '11'); INSERT INTO `t_mall_sku_attr_value` VALUES ('55', '17', '46', '9', '1', '2017-04-13 22:05:13', '11'); INSERT INTO `t_mall_sku_attr_value` VALUES ('56', '13', '31', '8', '1', '2017-04-13 22:05:57', '12'); INSERT INTO `t_mall_sku_attr_value` VALUES ('57', '14', '35', '8', '1', '2017-04-13 22:05:57', '12'); INSERT INTO `t_mall_sku_attr_value` VALUES ('58', '15', '38', '8', '1', '2017-04-13 22:05:57', '12'); INSERT INTO `t_mall_sku_attr_value` VALUES ('59', '16', '40', '8', '1', '2017-04-13 22:05:57', '12'); INSERT INTO `t_mall_sku_attr_value` VALUES ('60', '17', '45', '8', '1', '2017-04-13 22:05:57', '12'); INSERT INTO `t_mall_sku_attr_value` VALUES ('61', '18', '48', '13', '1', '2017-04-13 22:07:03', '13'); INSERT INTO `t_mall_sku_attr_value` VALUES ('62', '19', '51', '13', '1', '2017-04-13 22:07:03', '13'); INSERT INTO `t_mall_sku_attr_value` VALUES ('63', '20', '53', '13', '1', '2017-04-13 22:07:03', '13'); INSERT INTO `t_mall_sku_attr_value` VALUES ('64', '21', '56', '13', '1', '2017-04-13 22:07:03', '13'); INSERT INTO `t_mall_sku_attr_value` VALUES ('65', '18', '49', '14', '1', '2017-04-13 22:07:39', '14'); INSERT INTO `t_mall_sku_attr_value` VALUES ('66', '19', '51', '14', '1', '2017-04-13 22:07:39', '14'); INSERT INTO `t_mall_sku_attr_value` VALUES ('67', '20', '53', '14', '1', '2017-04-13 22:07:39', '14'); INSERT INTO `t_mall_sku_attr_value` VALUES ('68', '21', '57', '14', '1', '2017-04-13 22:07:39', '14'); INSERT INTO `t_mall_sku_attr_value` VALUES ('69', '22', '59', '14', '1', '2017-04-13 22:07:39', '14'); INSERT INTO `t_mall_sku_attr_value` VALUES ('70', '18', '48', '13', '1', '2017-04-13 22:08:15', '15'); INSERT INTO `t_mall_sku_attr_value` VALUES ('71', '19', '52', '13', '1', '2017-04-13 22:08:15', '15'); INSERT INTO `t_mall_sku_attr_value` VALUES ('72', '20', '53', '13', '1', '2017-04-13 22:08:15', '15'); INSERT INTO `t_mall_sku_attr_value` VALUES ('73', '21', '56', '13', '1', '2017-04-13 22:08:15', '15'); INSERT INTO `t_mall_sku_attr_value` VALUES ('74', '22', '59', '13', '1', '2017-04-13 22:08:15', '15'); INSERT INTO `t_mall_sku_attr_value` VALUES ('75', '13', '32', '12', '1', '2017-04-14 14:15:51', '16'); INSERT INTO `t_mall_sku_attr_value` VALUES ('76', '14', '37', '12', '1', '2017-04-14 14:15:51', '16'); INSERT INTO `t_mall_sku_attr_value` VALUES ('77', '15', '39', '12', '1', '2017-04-14 14:15:51', '16'); INSERT INTO `t_mall_sku_attr_value` VALUES ('78', '16', '43', '12', '1', '2017-04-14 14:15:51', '16'); INSERT INTO `t_mall_sku_attr_value` VALUES ('79', '13', '30', '7', '1', '2017-04-15 09:13:32', '17'); INSERT INTO `t_mall_sku_attr_value` VALUES ('80', '14', '34', '7', '1', '2017-04-15 09:13:32', '17'); INSERT INTO `t_mall_sku_attr_value` VALUES ('81', '15', '39', '7', '1', '2017-04-15 09:13:32', '17'); INSERT INTO `t_mall_sku_attr_value` VALUES ('82', '16', '42', '7', '1', '2017-04-15 09:13:32', '17'); INSERT INTO `t_mall_sku_attr_value` VALUES ('83', '17', '45', '7', '1', '2017-04-15 09:13:32', '17'); INSERT INTO `t_mall_sku_attr_value` VALUES ('84', '23', '62', '7', '1', '2017-04-15 09:13:32', '17'); INSERT INTO `t_mall_sku_attr_value` VALUES ('85', '13', '30', '12', '1', '2017-05-06 14:39:45', '18'); INSERT INTO `t_mall_sku_attr_value` VALUES ('86', '14', '33', '12', '1', '2017-05-06 14:39:45', '18'); INSERT INTO `t_mall_sku_attr_value` VALUES ('87', '15', '38', '12', '1', '2017-05-06 14:39:45', '18'); INSERT INTO `t_mall_sku_attr_value` VALUES ('88', '16', '40', '12', '1', '2017-05-06 14:39:45', '18'); INSERT INTO `t_mall_sku_attr_value` VALUES ('89', '17', '44', '12', '1', '2017-05-06 14:39:45', '18'); INSERT INTO `t_mall_sku_attr_value` VALUES ('90', '23', '63', '12', '1', '2017-05-06 14:39:45', '18'); INSERT INTO `t_mall_sku_attr_value` VALUES ('91', '13', '30', '0', '1', '2017-05-28 10:52:48', '19'); INSERT INTO `t_mall_sku_attr_value` VALUES ('92', '14', '33', '0', '1', '2017-05-28 10:52:48', '19'); INSERT INTO `t_mall_sku_attr_value` VALUES ('93', '15', '38', '0', '1', '2017-05-28 10:52:48', '19'); INSERT INTO `t_mall_sku_attr_value` VALUES ('94', '16', '40', '0', '1', '2017-05-28 10:52:48', '19'); INSERT INTO `t_mall_sku_attr_value` VALUES ('95', '17', '44', '0', '1', '2017-05-28 10:52:48', '19'); INSERT INTO `t_mall_sku_attr_value` VALUES ('96', '23', '61', '0', '1', '2017-05-28 10:52:48', '19'); INSERT INTO `t_mall_sku_attr_value` VALUES ('97', '13', '30', '0', '1', '2017-05-28 10:55:35', '20'); INSERT INTO `t_mall_sku_attr_value` VALUES ('98', '14', '33', '0', '1', '2017-05-28 10:55:35', '20'); INSERT INTO `t_mall_sku_attr_value` VALUES ('99', '15', '38', '0', '1', '2017-05-28 10:55:35', '20'); INSERT INTO `t_mall_sku_attr_value` VALUES ('100', '16', '40', '0', '1', '2017-05-28 10:55:35', '20'); INSERT INTO `t_mall_sku_attr_value` VALUES ('101', '17', '44', '0', '1', '2017-05-28 10:55:35', '20'); INSERT INTO `t_mall_sku_attr_value` VALUES ('102', '23', '61', '0', '1', '2017-05-28 10:55:35', '20'); INSERT INTO `t_mall_sku_attr_value` VALUES ('103', '13', '31', '0', '1', '2017-05-28 11:02:33', '21'); INSERT INTO `t_mall_sku_attr_value` VALUES ('104', '14', '35', '0', '1', '2017-05-28 11:02:33', '21'); INSERT INTO `t_mall_sku_attr_value` VALUES ('105', '15', '39', '0', '1', '2017-05-28 11:02:33', '21'); INSERT INTO `t_mall_sku_attr_value` VALUES ('106', '16', '42', '0', '1', '2017-05-28 11:02:33', '21'); INSERT INTO `t_mall_sku_attr_value` VALUES ('107', '17', '46', '0', '1', '2017-05-28 11:02:33', '21'); INSERT INTO `t_mall_sku_attr_value` VALUES ('108', '23', '62', '0', '1', '2017-05-28 11:02:33', '21'); INSERT INTO `t_mall_sku_attr_value` VALUES ('109', '13', '31', '0', '1', '2017-05-28 11:08:29', '22'); INSERT INTO `t_mall_sku_attr_value` VALUES ('110', '14', '34', '0', '1', '2017-05-28 11:08:29', '22'); INSERT INTO `t_mall_sku_attr_value` VALUES ('111', '15', '39', '0', '1', '2017-05-28 11:08:29', '22'); INSERT INTO `t_mall_sku_attr_value` VALUES ('112', '16', '43', '0', '1', '2017-05-28 11:08:29', '22'); INSERT INTO `t_mall_sku_attr_value` VALUES ('113', '17', '47', '0', '1', '2017-05-28 11:08:29', '22'); INSERT INTO `t_mall_sku_attr_value` VALUES ('114', '23', '63', '0', '1', '2017-05-28 11:08:29', '22'); INSERT INTO `t_mall_sku_attr_value` VALUES ('115', '13', '30', '0', '1', '2017-05-28 11:13:46', '23'); INSERT INTO `t_mall_sku_attr_value` VALUES ('116', '14', '33', '0', '1', '2017-05-28 11:13:46', '23'); INSERT INTO `t_mall_sku_attr_value` VALUES ('117', '15', '38', '0', '1', '2017-05-28 11:13:46', '23'); INSERT INTO `t_mall_sku_attr_value` VALUES ('118', '16', '40', '0', '1', '2017-05-28 11:13:46', '23'); INSERT INTO `t_mall_sku_attr_value` VALUES ('119', '13', '31', '12', '1', '2017-06-30 16:00:42', '24'); INSERT INTO `t_mall_sku_attr_value` VALUES ('120', '14', '34', '12', '1', '2017-06-30 16:00:42', '24'); INSERT INTO `t_mall_sku_attr_value` VALUES ('121', '15', '38', '12', '1', '2017-06-30 16:00:42', '24'); INSERT INTO `t_mall_sku_attr_value` VALUES ('122', '16', '0', '12', '1', '2017-06-30 16:00:42', '24'); INSERT INTO `t_mall_sku_attr_value` VALUES ('123', '17', '45', '12', '1', '2017-06-30 16:00:42', '24'); INSERT INTO `t_mall_sku_attr_value` VALUES ('124', '23', '62', '12', '1', '2017-06-30 16:00:42', '24'); INSERT INTO `t_mall_sku_attr_value` VALUES ('125', '24', '64', '12', '1', '2017-06-30 16:00:42', '24'); -- ---------------------------- -- Table structure for t_mall_sku_image -- ---------------------------- DROP TABLE IF EXISTS `t_mall_sku_image`; CREATE TABLE `t_mall_sku_image` ( `Id` int(11) NOT NULL COMMENT '็ผ–ๅท', `url` varchar(4000) DEFAULT NULL COMMENT 'ๅ›พ็‰‡', `zy` varchar(1) DEFAULT NULL COMMENT 'ไฝœ็”จ', `sku_id` int(11) DEFAULT NULL COMMENT 'skuid', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='skuๅ›พ็‰‡่กจ'; -- ---------------------------- -- Records of t_mall_sku_image -- ---------------------------- -- ---------------------------- -- Table structure for t_mall_tm_class -- ---------------------------- DROP TABLE IF EXISTS `t_mall_tm_class`; CREATE TABLE `t_mall_tm_class` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `pp_id` int(11) DEFAULT NULL COMMENT 'ๅ“็‰Œid', `flbh1` int(11) DEFAULT NULL COMMENT 'ๅˆ†็ฑป็ผ–ๅท1', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8 COMMENT='ๅ•†ๆ ‡ๅˆ†็ฑปๅฏนๅบ”่กจ'; -- ---------------------------- -- Records of t_mall_tm_class -- ---------------------------- INSERT INTO `t_mall_tm_class` VALUES ('1', '8', '7'); INSERT INTO `t_mall_tm_class` VALUES ('2', '1', '8'); INSERT INTO `t_mall_tm_class` VALUES ('3', '9', '9'); INSERT INTO `t_mall_tm_class` VALUES ('4', '3', '6'); INSERT INTO `t_mall_tm_class` VALUES ('5', '2', '7'); INSERT INTO `t_mall_tm_class` VALUES ('6', '2', '8'); INSERT INTO `t_mall_tm_class` VALUES ('7', '10', '9'); INSERT INTO `t_mall_tm_class` VALUES ('8', '4', '6'); INSERT INTO `t_mall_tm_class` VALUES ('9', '13', '6'); INSERT INTO `t_mall_tm_class` VALUES ('10', '14', '6'); INSERT INTO `t_mall_tm_class` VALUES ('11', '13', '13'); INSERT INTO `t_mall_tm_class` VALUES ('12', '13', '14'); INSERT INTO `t_mall_tm_class` VALUES ('13', '14', '13'); INSERT INTO `t_mall_tm_class` VALUES ('14', '14', '14'); INSERT INTO `t_mall_tm_class` VALUES ('15', '18', '7'); INSERT INTO `t_mall_tm_class` VALUES ('16', '18', '8'); INSERT INTO `t_mall_tm_class` VALUES ('17', '18', '11'); INSERT INTO `t_mall_tm_class` VALUES ('18', '19', '8'); INSERT INTO `t_mall_tm_class` VALUES ('19', '19', '11'); INSERT INTO `t_mall_tm_class` VALUES ('20', '20', '8'); INSERT INTO `t_mall_tm_class` VALUES ('21', '21', '9'); INSERT INTO `t_mall_tm_class` VALUES ('22', '22', '7'); INSERT INTO `t_mall_tm_class` VALUES ('23', '23', '14'); INSERT INTO `t_mall_tm_class` VALUES ('24', '24', '14'); INSERT INTO `t_mall_tm_class` VALUES ('25', '25', '14'); INSERT INTO `t_mall_tm_class` VALUES ('26', '26', '14'); INSERT INTO `t_mall_tm_class` VALUES ('27', '27', '13'); INSERT INTO `t_mall_tm_class` VALUES ('28', '28', '13'); INSERT INTO `t_mall_tm_class` VALUES ('29', '29', '11'); INSERT INTO `t_mall_tm_class` VALUES ('30', '30', '10'); INSERT INTO `t_mall_tm_class` VALUES ('31', '30', '15'); INSERT INTO `t_mall_tm_class` VALUES ('32', '31', '10'); INSERT INTO `t_mall_tm_class` VALUES ('33', '31', '15'); INSERT INTO `t_mall_tm_class` VALUES ('34', '32', '10'); INSERT INTO `t_mall_tm_class` VALUES ('35', '32', '15'); -- ---------------------------- -- Table structure for t_mall_trade_mark -- ---------------------------- DROP TABLE IF EXISTS `t_mall_trade_mark`; CREATE TABLE `t_mall_trade_mark` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `ppmch` varchar(100) DEFAULT NULL COMMENT 'ๅ“็‰Œๅ็งฐ', `url` varchar(100) DEFAULT NULL COMMENT 'ๅ“็‰Œๅ›พ็‰‡', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COMMENT='ๅ•†ๆ ‡่กจ'; -- ---------------------------- -- Records of t_mall_trade_mark -- ---------------------------- INSERT INTO `t_mall_trade_mark` VALUES ('1', 'apple', null); INSERT INTO `t_mall_trade_mark` VALUES ('2', 'lenovo', null); INSERT INTO `t_mall_trade_mark` VALUES ('3', '้ช†้ฉผ', null); INSERT INTO `t_mall_trade_mark` VALUES ('4', 'ๆณขๅธ็™ป', null); INSERT INTO `t_mall_trade_mark` VALUES ('8', 'ๅŽไธบ', null); INSERT INTO `t_mall_trade_mark` VALUES ('9', 'ๆฌง่Žฑ้›…', null); INSERT INTO `t_mall_trade_mark` VALUES ('10', 'ๆฒ™ๅฎฃ', null); INSERT INTO `t_mall_trade_mark` VALUES ('13', '้˜ฟ่ฟช่พพๆ–ฏ', null); INSERT INTO `t_mall_trade_mark` VALUES ('14', '่€ๅ…‹', null); INSERT INTO `t_mall_trade_mark` VALUES ('18', 'ๅŽไธบ', null); INSERT INTO `t_mall_trade_mark` VALUES ('19', 'ๅฎๅŸบ', null); INSERT INTO `t_mall_trade_mark` VALUES ('20', 'ๅค–ๆ˜Ÿไบบ', null); INSERT INTO `t_mall_trade_mark` VALUES ('21', 'ๆฌง่Žฑ้›…', null); INSERT INTO `t_mall_trade_mark` VALUES ('22', '็พŽ็š„Midea', null); INSERT INTO `t_mall_trade_mark` VALUES ('23', 'ๅŠณๅŠ›ๅฃซ', null); INSERT INTO `t_mall_trade_mark` VALUES ('24', 'ๅคฉๆขญ', null); INSERT INTO `t_mall_trade_mark` VALUES ('25', 'ๅกๅœฐไบšCarter', null); INSERT INTO `t_mall_trade_mark` VALUES ('26', 'ๆฑŸ่ฏ—ไธน้กฟ', null); INSERT INTO `t_mall_trade_mark` VALUES ('27', '็‘žๅฃซๅ†›ๅˆ€', null); INSERT INTO `t_mall_trade_mark` VALUES ('28', 'LV', null); INSERT INTO `t_mall_trade_mark` VALUES ('29', '่ฏบๅŸบไบš', null); INSERT INTO `t_mall_trade_mark` VALUES ('30', 'ไธ‰้นฟ', null); INSERT INTO `t_mall_trade_mark` VALUES ('31', '่’™็‰›', null); INSERT INTO `t_mall_trade_mark` VALUES ('32', 'ไผŠๅˆฉ', null); -- ---------------------------- -- Table structure for t_mall_user_account -- ---------------------------- DROP TABLE IF EXISTS `t_mall_user_account`; CREATE TABLE `t_mall_user_account` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `yh_mch` varchar(100) DEFAULT NULL COMMENT '็”จๆˆทๅ็งฐ', `yh_nch` varchar(100) DEFAULT NULL COMMENT '็”จๆˆทๆ˜ต็งฐ', `yh_mm` varchar(100) DEFAULT NULL COMMENT '็”จๆˆทๅฏ†็ ', `yh_xm` varchar(100) DEFAULT NULL COMMENT '็”จๆˆทๅง“ๅ', `yh_shjh` varchar(100) DEFAULT NULL COMMENT 'ๆ‰‹ๆœบๅท', `yh_yx` varchar(100) DEFAULT NULL COMMENT '้‚ฎ็ฎฑ', `yh_tx` varchar(100) DEFAULT NULL COMMENT 'ๅคดๅƒ', `yh_jb` int(100) DEFAULT NULL COMMENT '็”จๆˆท็บงๅˆซ', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='็”จๆˆท่กจ'; -- ---------------------------- -- Records of t_mall_user_account -- ---------------------------- INSERT INTO `t_mall_user_account` VALUES ('1', 'lilei', 'ๆต‹่ฏ•b2c', '123', 'ๆต‹่ฏ•b2c', '123123123123', '123@11.com', '1', '1'); -- ---------------------------- -- Table structure for t_mall_value -- ---------------------------- DROP TABLE IF EXISTS `t_mall_value`; CREATE TABLE `t_mall_value` ( `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '็ผ–ๅท', `shxzh` varchar(100) DEFAULT NULL COMMENT 'ๅฑžๆ€งๅ€ผ', `shfqy` varchar(1) DEFAULT '1' COMMENT 'ๆ˜ฏๅฆๅฏ็”จ', `shxm_id` int(11) DEFAULT NULL COMMENT 'ๅฑžๆ€งid', `shxzh_mch` varchar(100) DEFAULT NULL COMMENT 'ๅฑžๆ€งๅ€ผๅ', `chjshj` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'ๅˆ›ๅปบๆ—ถ้—ด', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8 COMMENT='ๅฑžๆ€งๅ€ผ่กจ'; -- ---------------------------- -- Records of t_mall_value -- ---------------------------- INSERT INTO `t_mall_value` VALUES ('30', '1024ร—768', '1', '13', 'ๅƒ็ด ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('31', '1600ร—900', '1', '13', 'ๅƒ็ด ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('32', '1399ร—1024', '1', '13', 'ๅƒ็ด ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('33', '14.5', '1', '14', 'ๅฏธ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('34', '15.5', '1', '14', 'ๅฏธ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('35', '24', '1', '14', 'ๅฏธ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('36', '29', '1', '14', 'ๅฏธ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('37', '45', '1', '14', 'ๅฏธ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('38', 'ๆ›ฒ้ข', '1', '15', 'ๅฝข', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('39', '้žๆ›ฒ้ข', '1', '15', 'ๅฝข', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('40', '12', '1', '16', '่‰ฒ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('41', '24', '1', '16', '่‰ฒ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('42', '48', '1', '16', '่‰ฒ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('43', '86', '1', '16', '่‰ฒ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('44', '100', '1', '17', '็“ฆ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('45', '200', '1', '17', '็“ฆ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('46', '300', '1', '17', '็“ฆ', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('47', '500', '1', '17', 'ๆฏซๅฎ‰', '2017-04-12 16:39:25'); INSERT INTO `t_mall_value` VALUES ('48', 'ไธ‰', '1', '18', '็ฟผ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('49', 'ๅ››', '1', '18', '็ฟผ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('50', 'ไบ”', '1', '18', '็ฟผ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('51', 'ๅ››', '1', '19', '้ฉฑๅŠจ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('52', 'ๅ…ซ', '1', '19', '้ฉฑๅŠจ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('53', '1024', '1', '20', 'ๅƒ็ด ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('54', '2048', '1', '20', 'ๅƒ็ด ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('55', '4096', '1', '20', 'ๅƒ็ด ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('56', '่ฝป', '1', '21', '็‚ฎ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('57', 'ไธญ', '1', '21', '็‚ฎ', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('58', '100', '1', '22', '็ซ‹ๆ–น', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('59', '200', '1', '22', '็ซ‹ๆ–น', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('60', '300', '1', '22', '็ซ‹ๆ–น', '2017-04-12 17:36:49'); INSERT INTO `t_mall_value` VALUES ('61', 'LED', '1', '23', 'ๆ˜พ็คบๅฑ', '2017-04-15 09:06:35'); INSERT INTO `t_mall_value` VALUES ('62', 'LCD', '1', '23', 'ๆ˜พ็คบๅฑ', '2017-04-15 09:06:35'); INSERT INTO `t_mall_value` VALUES ('63', 'IOS', '1', '23', 'ๆ˜พ็คบๅฑ', '2017-04-15 09:06:35'); INSERT INTO `t_mall_value` VALUES ('64', 'ๅ…จๆ™ฏ', '1', '24', 'VR', '2017-06-30 15:59:37'); INSERT INTO `t_mall_value` VALUES ('65', 'ๅฝฑ้™ข', '1', '24', 'VR', '2017-06-30 15:59:37');
CREATE SCHEMA IF NOT EXISTS slickrent; CREATE TABLE slickrent.login_platform ( id SMALLSERIAL NOT NULL PRIMARY KEY, platform TEXT UNIQUE NOT NULL ); INSERT INTO slickrent.login_platform (id, platform) VALUES (0, 'NATIVE'); INSERT INTO slickrent.login_platform (id, platform) VALUES (1, 'FB'); INSERT INTO slickrent.login_platform (id, platform) VALUES (2, 'GOOGLE'); CREATE TABLE slickrent.user ( id UUID NOT NULL PRIMARY KEY, username TEXT NOT NULL, password TEXT, access_token TEXT NOT NULL, login_platform_id INTEGER NOT NULL DEFAULT 0 REFERENCES slickrent.login_platform(id), CONSTRAINT user_constraint UNIQUE(username, login_platform_id) ); CREATE INDEX user_index ON slickrent.user(id, username, access_token); CREATE TABLE slickrent.item ( id UUID NOT NULL PRIMARY KEY, item_name TEXT NOT NULL, item_description TEXT, price_usd_cent_per_min NUMERIC, rental_start TIMESTAMP WITH TIME ZONE, rental_end TIMESTAMP WITH TIME ZONE, image_uuids UUID[], created_time TIMESTAMP WITH TIME ZONE DEFAULT now(), user_id UUID REFERENCES slickrent.user (id) NOT NULL ); CREATE INDEX item_id_index ON slickrent.item(id); CREATE INDEX item_user_id_index ON slickrent.item(user_id);
USE codeup_test_db; # All albums in your table. SELECT id AS "ID", artist AS "Artist", name AS "Album", release_date AS "Release Year", sales AS "Sales", genre AS "Genre" FROM albums; # All albums released before 1980 SELECT id AS "ID", artist AS "Artist", name AS "Album", release_date AS "Release Year", sales AS "Sales", genre AS "Genre" FROM albums where release_date < 1980; # All albums by Michael Jackson SELECT id AS "ID", artist AS "Artist", name AS "Album", release_date AS "Release Year", sales AS "Sales", genre AS "Genre" FROM albums where artist = 'Michael Jackson'; # After each SELECT add an UPDATE statement to: # Make all the albums 10 times more popular (sales * 10) update albums set sales = sales * 10; SELECT id AS "ID", artist AS "Artist", name AS "Album", release_date AS "Release Year", sales AS "Sales", genre AS "Genre" FROM albums; # Move all the albums before 1980 back to the 1800s. update albums set release_date = release_date - 100 where release_date < 1980; SELECT id AS "ID", artist AS "Artist", name AS "Album", release_date AS "Release Year", sales AS "Sales", genre AS "Genre" FROM albums where release_date < 1880; # Change 'Michael Jackson' to 'Peter Jackson' update albums set artist = 'Peter Jackson' where artist = 'Michael Jackson'; SELECT id AS "ID", artist AS "Artist", name AS "Album", release_date AS "Release Year", sales AS "Sales", genre AS "Genre" FROM albums where artist = 'Peter Jackson';
drop table if exists admin; drop table if exists classes; drop table if exists score; drop table if exists student; /*==============================================================*/ /* Table: admin */ /*==============================================================*/ create table admin ( adminId int not null auto_increment, adminName varchar(200), adminPass varchar(200), adminDesc text, primary key (adminId) ); /*==============================================================*/ /* Table: classes */ /*==============================================================*/ create table classes ( classesId int not null auto_increment, classesName varchar(200), classesCreateTime dateTime, classesDesc text, adminId int, primary key (classesId) ); /*==============================================================*/ /* Table: score */ /*==============================================================*/ create table score ( scoreId int not null auto_increment, scoreNumber int, classesId int, studentId int, primary key (scoreId) ); /*==============================================================*/ /* Table: student */ /*==============================================================*/ create table student ( studentId int not null auto_increment, studentName varchar(100), studentEmail varchar(200), studentAddr text, studentPhone varchar(100), studentGender varchar(100), studentHeadImage text, studentBirthday date, studentDescribe text, classesId int, primary key (studentId) ); alter table classes add constraint FK_Reference_4 foreign key (adminId) references admin (adminId) on delete cascade on update cascade; alter table score add constraint FK_Reference_2 foreign key (classesId) references classes (classesId) on delete cascade on update cascade; alter table score add constraint FK_Reference_3 foreign key (studentId) references student (studentId) on delete cascade on update cascade; alter table student add constraint FK_Reference_1 foreign key (classesId) references classes (classesId) on delete cascade on update cascade;
-- the source for this section is -- contracts_ddl.sql -- Normally, catalog_id and price_list_id would reference the appropriate table it is possible not to use those tables though, which is why the reference is not included create table dbc_contract ( contract_id varchar2(40) not null, display_name varchar2(254) null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, creator_id varchar2(40) null, negotiator_info varchar2(40) null, price_list_id varchar2(40) null, catalog_id varchar2(40) null, term_id varchar2(40) null, comments varchar2(254) null ,constraint dbc_contract_p primary key (contract_id)); create table dbc_contract_term ( terms_id varchar2(40) not null, terms clob null, disc_percent number(19,7) null, disc_days integer null, net_days integer null ,constraint dbc_contract_ter_p primary key (terms_id)); -- the source for this section is -- invoice_ddl.sql create table dbc_inv_delivery ( id varchar2(40) not null, version integer not null, type integer not null, prefix varchar2(40) null, first_name varchar2(40) null, middle_name varchar2(40) null, last_name varchar2(40) null, suffix varchar2(40) null, job_title varchar2(80) null, company_name varchar2(40) null, address1 varchar2(80) null, address2 varchar2(80) null, address3 varchar2(80) null, city varchar2(40) null, county varchar2(40) null, state varchar2(40) null, postal_code varchar2(10) null, country varchar2(40) null, phone_number varchar2(40) null, fax_number varchar2(40) null, email_addr varchar2(255) null, format integer null, delivery_mode integer null ,constraint dbc_inv_delivery_p primary key (id)); create table dbc_inv_pmt_terms ( id varchar2(40) not null, version integer not null, type integer not null, disc_percent number(19,7) null, disc_days integer null, net_days integer null ,constraint dbc_inv_pmt_term_p primary key (id)); create table dbc_invoice ( id varchar2(40) not null, version integer not null, type integer not null, creation_date timestamp null, last_mod_date timestamp null, invoice_number varchar2(40) null, po_number varchar2(40) null, req_number varchar2(40) null, delivery_info varchar2(40) null, balance_due number(19,7) null, pmt_due_date date null, pmt_terms varchar2(40) null, order_id varchar2(40) null, pmt_group_id varchar2(40) null ,constraint dbc_invoice_p primary key (id) ,constraint dbc_invcdelvry_n_f foreign key (delivery_info) references dbc_inv_delivery (id) ,constraint dbc_invcpmt_term_f foreign key (pmt_terms) references dbc_inv_pmt_terms (id)); create index dbc_inv_dlivr_info on dbc_invoice (delivery_info); create index dbc_inv_pmt_terms on dbc_invoice (pmt_terms); create index inv_inv_idx on dbc_invoice (invoice_number); create index inv_order_idx on dbc_invoice (order_id); create index inv_pmt_idx on dbc_invoice (pmt_group_id); create index inv_po_idx on dbc_invoice (po_number); -- the source for this section is -- commerce_user.sql create table dps_credit_card ( id varchar2(40) not null, credit_card_number varchar2(80) null, credit_card_type varchar2(40) null, expiration_month varchar2(20) null, exp_day_of_month varchar2(20) null, expiration_year varchar2(20) null, billing_addr varchar2(40) null ,constraint dps_credit_card_p primary key (id)); create index dps_crcdba_idx on dps_credit_card (billing_addr); create table dbc_cost_center ( id varchar2(40) not null, identifier varchar2(40) not null, description varchar2(64) null, user_id varchar2(40) null ,constraint dbc_cost_center_p primary key (id)); create table dcs_user ( user_id varchar2(40) not null, allow_partial_ship number(1,0) null, default_creditcard varchar2(40) null, daytime_phone_num varchar2(30) null, express_checkout number(1,0) null, default_carrier varchar2(256) null, price_list varchar2(40) null, user_catalog varchar2(40) null, sale_price_list varchar2(40) null, dflt_cost_center varchar2(40) null, order_price_limit number(19,7) null, approval_required number(1,0) null ,constraint dcs_user_p primary key (user_id) ,constraint dcs_usrdeflt_cr_f foreign key (default_creditcard) references dps_credit_card (id) ,constraint dcs_usrdflt_cos_f foreign key (dflt_cost_center) references dbc_cost_center (id) ,constraint dcs_user1_c check (allow_partial_ship in (0,1)) ,constraint dcs_user2_c check (express_checkout in (0,1))); create index dcs_usrdcc_idx on dcs_user (default_creditcard); create index usr_defcstctr_idx on dcs_user (dflt_cost_center); create table dps_usr_creditcard ( user_id varchar2(40) not null, tag varchar2(42) not null, credit_card_id varchar2(40) not null ,constraint dps_usr_creditca_p primary key (user_id,tag) ,constraint dps_usrccredt_cr_f foreign key (credit_card_id) references dps_credit_card (id) ,constraint dps_usrcusr_d_f foreign key (user_id) references dps_user (id)); create index dps_ucccid_idx on dps_usr_creditcard (credit_card_id); create index dps_uccuid_idx on dps_usr_creditcard (user_id); create table dbc_buyer_costctr ( user_id varchar2(40) not null, seq integer not null, cost_center_id varchar2(40) not null ,constraint dbc_buyer_costct_p primary key (user_id,seq) ,constraint dbc_buyrcost_cnt_f foreign key (cost_center_id) references dbc_cost_center (id)); create index dbc_byr_costctr_id on dbc_buyer_costctr (cost_center_id); -- Multi-table associating a Buyer with one or more order approvers. Approvers are required to be registered users of the site so they can perform online approvals. create table dbc_buyer_approver ( user_id varchar2(40) not null, approver_id varchar2(40) not null, seq integer not null ,constraint dbc_buyer_approv_p primary key (user_id,seq) ,constraint dbc_buyrapprvr_d_f foreign key (approver_id) references dps_user (id) ,constraint dbc_buyrusr_d_f foreign key (user_id) references dps_user (id)); create index buyer_approver_idx on dbc_buyer_approver (approver_id); create table dbc_buyer_prefvndr ( user_id varchar2(40) not null, vendor varchar2(100) not null, seq integer not null ,constraint dbc_buyer_prefvn_p primary key (user_id,seq) ,constraint dbc_byrprfndusrd_f foreign key (user_id) references dps_user (id)); create table dbc_buyer_plist ( user_id varchar2(40) not null, list_id varchar2(40) not null, tag integer not null ,constraint dbc_buyer_plist_p primary key (user_id,tag)); create table dcs_user_favstores ( user_id varchar2(40) not null, seq number(10) not null, location_id varchar2(40) null ,constraint dcs_user_fvstore_p primary key (user_id,seq) ,constraint dcs_favstoreusrd_f foreign key (user_id) references dps_user (id)); -- the source for this section is -- organization_ddl.sql create table dbc_organization ( id varchar2(40) not null, type integer null, cust_type integer null, duns_number varchar2(20) null, dflt_shipping_addr varchar2(40) null, dflt_billing_addr varchar2(40) null, dflt_payment_type varchar2(40) null, dflt_cost_center varchar2(40) null, order_price_limit number(19,7) null, contract_id varchar2(40) null, approval_required number(1,0) null ,constraint dbc_organization_p primary key (id) ,constraint dbc_orgncontrct__f foreign key (contract_id) references dbc_contract (contract_id) ,constraint dbc_orgndflt_bil_f foreign key (dflt_billing_addr) references dps_contact_info (id) ,constraint dbc_orgndflt_shi_f foreign key (dflt_shipping_addr) references dps_contact_info (id) ,constraint dbc_orgndflt_pay_f foreign key (dflt_payment_type) references dps_credit_card (id) ,constraint dbc_orgnztnid_f foreign key (id) references dps_organization (org_id)); create index dbc_org_cntrct_id on dbc_organization (contract_id); create index dbc_orgdfltblig_ad on dbc_organization (dflt_billing_addr); create index dbc_orgdflt_shpadr on dbc_organization (dflt_shipping_addr); create index dbc_orgdflt_pmttyp on dbc_organization (dflt_payment_type); create index dbc_orgdfltcst_ctr on dbc_organization (dflt_cost_center); create table dbc_org_contact ( org_id varchar2(40) not null, contact_id varchar2(40) not null, seq integer not null ,constraint dbc_org_contact_p primary key (org_id,seq) ,constraint dbc_orgccontct_d_f foreign key (contact_id) references dps_contact_info (id) ,constraint dbc_orgcorg_d_f foreign key (org_id) references dps_organization (org_id)); create index dbc_org_cntct_id on dbc_org_contact (contact_id); -- Multi-table associating an Organization with one or more order approvers. Like administrators, approvers are required to be registered users of the site so they can perform online approvals. create table dbc_org_approver ( org_id varchar2(40) not null, approver_id varchar2(40) not null, seq integer not null ,constraint dbc_org_approver_p primary key (org_id,seq) ,constraint dbc_orgporg_d_f foreign key (org_id) references dps_organization (org_id) ,constraint dbc_orgpapprvr_d_f foreign key (approver_id) references dps_user (id)); create index org_approver_idx on dbc_org_approver (approver_id); -- Multi-table associating an Organization with one or more costcenters that are pre-approved for use by members of the organization. create table dbc_org_costctr ( org_id varchar2(40) not null, cost_center varchar2(40) not null, seq integer not null ,constraint dbc_org_costctr_p primary key (org_id,seq) ,constraint dbc_ocstctrorgd_f foreign key (org_id) references dps_organization (org_id)); create index dbc_org_cstctr on dbc_org_costctr (cost_center); -- Multi-table associating an Organization with one or more payment types that are pre-apprived for use by members of the organization.Right now we're just using credit cards here, but this will needto change to support more general payment types, including invoicing and purchase orders create table dbc_org_payment ( org_id varchar2(40) not null, tag varchar2(42) not null, payment_id varchar2(40) not null ,constraint dbc_org_payment_p primary key (org_id,tag) ,constraint dbc_orgppaymnt_d_f foreign key (payment_id) references dps_credit_card (id) ,constraint dbc_orgpymntorg_f foreign key (org_id) references dps_organization (org_id)); create index dbc_org_pymnt_id on dbc_org_payment (payment_id); create table dbc_org_prefvndr ( org_id varchar2(40) not null, vendor varchar2(100) not null, seq integer not null ,constraint dbc_org_prefvndr_p primary key (org_id,seq) ,constraint dbc_orgprfvndorg_f foreign key (org_id) references dps_organization (org_id)); create table dcs_org_address ( org_id varchar2(40) not null, tag varchar2(42) not null, addr_id varchar2(40) not null ,constraint dcs_org_addr_p primary key (org_id,tag) ,constraint dcs_org_addr_fk1 foreign key (addr_id) references dps_contact_info (id) ,constraint dcs_org_addr_fk2 foreign key (org_id) references dps_organization (org_id)); create index dcs_org_addr_ix1 on dcs_org_address (addr_id); -- the source for this section is -- product_catalog_ddl.sql create table dcs_folder ( folder_id varchar2(40) not null, version integer not null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, description varchar2(254) null, name varchar2(254) not null, path varchar2(254) not null, parent_folder_id varchar2(40) null ,constraint dcs_folder_p primary key (folder_id) ,constraint dcs_foldparnt_fl_f foreign key (parent_folder_id) references dcs_folder (folder_id)); create index fldr_pfldrid_idx on dcs_folder (parent_folder_id); create index fldr_end_dte_idx on dcs_folder (end_date); create index fldr_path_idx on dcs_folder (path); create index fldr_strt_dte_idx on dcs_folder (start_date); create table dcs_media ( media_id varchar2(40) not null, version integer not null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, description varchar2(254) null, name varchar2(254) not null, path varchar2(254) not null, parent_folder_id varchar2(40) not null, media_type integer null ,constraint dcs_media_p primary key (media_id) ,constraint dcs_medparnt_fl_f foreign key (parent_folder_id) references dcs_folder (folder_id)); create index med_pfldrid_idx on dcs_media (parent_folder_id); create index med_end_dte_idx on dcs_media (end_date); create index med_path_idx on dcs_media (path); create index med_strt_dte_idx on dcs_media (start_date); create index med_type_idx on dcs_media (media_type); create table dcs_media_ext ( media_id varchar2(40) not null, url varchar2(254) not null ,constraint dcs_media_ext_p primary key (media_id) ,constraint dcs_medxtmed_d_f foreign key (media_id) references dcs_media (media_id)); create table dcs_media_bin ( media_id varchar2(40) not null, length integer not null, last_modified timestamp not null, data blob not null ,constraint dcs_media_bin_p primary key (media_id) ,constraint dcs_medbnmed_d_f foreign key (media_id) references dcs_media (media_id)); create table dcs_media_txt ( media_id varchar2(40) not null, length integer not null, last_modified timestamp not null, data clob not null ,constraint dcs_media_txt_p primary key (media_id) ,constraint dcs_medtxtmed_d_f foreign key (media_id) references dcs_media (media_id)); create table dcs_category ( category_id varchar2(40) not null, version integer not null, catalog_id varchar2(40) null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, display_name varchar2(254) null, description varchar2(254) null, long_description clob null, parent_cat_id varchar2(40) null, category_type integer null, root_category number(1,0) null ,constraint dcs_category_p primary key (category_id) ,constraint dcs_category_c check (root_category in (0,1))); create index cat_end_dte_idx on dcs_category (end_date); create index cat_pcatid_idx on dcs_category (parent_cat_id); create index cat_strt_dte_idx on dcs_category (start_date); create index cat_type_idx on dcs_category (category_type); create table dcs_category_acl ( category_id varchar2(40) not null, item_acl varchar2(1024) null ,constraint dcs_category_acl_p primary key (category_id)); create table dcs_product ( product_id varchar2(40) not null, version integer not null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, display_name varchar2(254) null, description varchar2(254) null, long_description clob null, parent_cat_id varchar2(40) null, product_type integer null, admin_display varchar2(254) null, nonreturnable number(1,0) null, discountable number(1) null, fractional_quantities_allowed number(1) null, unit_of_measure integer null, brand varchar2(254) null, disallow_recommend number(1,0) null, manufacturer varchar2(40) null, online_only number(1,0) null ,constraint dcs_product_p primary key (product_id) ,constraint dcs_product_c check (nonreturnable in (0,1)) ,constraint dcs_product1_c check (disallow_recommend in (0,1)) ,constraint dcs_product2_c check (online_only in (0,1))); create index prd_end_dte_idx on dcs_product (end_date); create index prd_pcatid_idx on dcs_product (parent_cat_id); create index prd_strt_dte_idx on dcs_product (start_date); create index prd_type_idx on dcs_product (product_type); create table dcs_product_acl ( product_id varchar2(40) not null, item_acl varchar2(1024) null ,constraint dcs_product_acl_p primary key (product_id)); create table dcs_sku ( sku_id varchar2(40) not null, version integer not null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, display_name varchar2(254) null, description varchar2(254) null, sku_type integer null, wholesale_price number(19,7) null, list_price number(19,7) null, sale_price number(19,7) null, on_sale number(1,0) null, tax_status integer null, fulfiller integer null, item_acl varchar2(1024) null, nonreturnable number(1,0) null, discountable number(1) null, fractional_quantities_allowed number(1) null, manuf_part_num varchar2(254) null, online_only number(1,0) null ,constraint dcs_sku_p primary key (sku_id) ,constraint dcs_sku_c check (on_sale in (0,1)) ,constraint dcs_sku1_c check (nonreturnable in (0,1)) ,constraint dcs_sku2_c check (online_only in (0,1))); create index sku_end_dte_idx on dcs_sku (end_date); create index sku_lstprice_idx on dcs_sku (list_price); create index sku_sleprice_idx on dcs_sku (sale_price); create index sku_strt_dte_idx on dcs_sku (start_date); create index sku_type_idx on dcs_sku (sku_type); create table dcs_cat_groups ( category_id varchar2(40) not null, child_prd_group varchar2(254) null, child_cat_group varchar2(254) null, related_cat_group varchar2(254) null ,constraint dcs_cat_groups_p primary key (category_id) ,constraint dcs_catgcatgry_d_f foreign key (category_id) references dcs_category (category_id)); create table dcs_cat_chldprd ( category_id varchar2(40) not null, sequence_num integer not null, child_prd_id varchar2(40) not null ,constraint dcs_cat_chldprd_p primary key (category_id,sequence_num) ,constraint dcs_catccatgry_d_f foreign key (category_id) references dcs_category (category_id) ,constraint dcs_catcchild_pr_f foreign key (child_prd_id) references dcs_product (product_id)); create index ct_chldprd_cpi_idx on dcs_cat_chldprd (child_prd_id); create index ct_chldprd_cid_idx on dcs_cat_chldprd (category_id); create table dcs_cat_chldcat ( category_id varchar2(40) not null, sequence_num integer not null, child_cat_id varchar2(40) not null ,constraint dcs_cat_chldcat_p primary key (category_id,sequence_num) ,constraint dcs_catcchild_ct_f foreign key (child_cat_id) references dcs_category (category_id) ,constraint dcs_chlccatgry_d_f foreign key (category_id) references dcs_category (category_id)); create index ct_chldcat_cci_idx on dcs_cat_chldcat (child_cat_id); create index ct_chldcat_cid_idx on dcs_cat_chldcat (category_id); create table dcs_cat_ancestors ( category_id varchar2(40) not null, anc_cat_id varchar2(40) not null ,constraint dcs_cat_ancestor_p primary key (category_id,anc_cat_id)); create index dcs_ct_anc_cat_id on dcs_cat_ancestors (anc_cat_id); create index dcs_ct_cat_id on dcs_cat_ancestors (category_id); create table dcs_cat_rltdcat ( category_id varchar2(40) not null, sequence_num integer not null, related_cat_id varchar2(40) not null ,constraint dcs_cat_rltdcat_p primary key (category_id,sequence_num) ,constraint dcs_catrcatgry_d_f foreign key (category_id) references dcs_category (category_id) ,constraint dcs_catrreltd_ct_f foreign key (related_cat_id) references dcs_category (category_id)); create index ct_rltdcat_rci_idx on dcs_cat_rltdcat (related_cat_id); create index ct_rltdcat_cid_idx on dcs_cat_rltdcat (category_id); create table dcs_cat_keywrds ( category_id varchar2(40) not null, sequence_num integer not null, keyword varchar2(254) not null ,constraint dcs_cat_keywrds_p primary key (category_id,sequence_num) ,constraint dcs_catkcatgry_d_f foreign key (category_id) references dcs_category (category_id)); create index cat_keywrds_idx on dcs_cat_keywrds (keyword); create index ct_keywrds_cid_idx on dcs_cat_keywrds (category_id); create table dcs_cat_media ( category_id varchar2(40) not null, template_id varchar2(40) null, thumbnail_image_id varchar2(40) null, small_image_id varchar2(40) null, large_image_id varchar2(40) null ,constraint dcs_cat_media_p primary key (category_id) ,constraint dcs_catmcatgry_d_f foreign key (category_id) references dcs_category (category_id) ,constraint dcs_catmlarg_mgd_f foreign key (large_image_id) references dcs_media (media_id) ,constraint dcs_catmsmall_mg_f foreign key (small_image_id) references dcs_media (media_id) ,constraint dcs_catmtemplt_d_f foreign key (template_id) references dcs_media (media_id) ,constraint dcs_catmthumbnl__f foreign key (thumbnail_image_id) references dcs_media (media_id)); create index ct_mdia_lrimid_idx on dcs_cat_media (large_image_id); create index ct_mdia_smimid_idx on dcs_cat_media (small_image_id); create index ct_mdia_tmplid_idx on dcs_cat_media (template_id); create index ct_mdia_thimid_idx on dcs_cat_media (thumbnail_image_id); create table dcs_cat_aux_media ( category_id varchar2(40) not null, tag varchar2(42) not null, media_id varchar2(40) not null ,constraint dcs_cat_aux_medi_p primary key (category_id,tag) ,constraint dcs_catxcatgry_d_f foreign key (category_id) references dcs_category (category_id) ,constraint dcs_catxmdmed_d_f foreign key (media_id) references dcs_media (media_id)); create index ct_aux_mdia_mi_idx on dcs_cat_aux_media (media_id); create index ct_aux_mdia_ci_idx on dcs_cat_aux_media (category_id); create table dcs_prd_keywrds ( product_id varchar2(40) not null, sequence_num integer not null, keyword varchar2(254) not null ,constraint dcs_prd_keywrds_p primary key (product_id,sequence_num) ,constraint dcs_prdkprodct_d_f foreign key (product_id) references dcs_product (product_id)); create index prd_keywrds_idx on dcs_prd_keywrds (keyword); create index pr_keywrds_pid_idx on dcs_prd_keywrds (product_id); create table dcs_prd_media ( product_id varchar2(40) not null, template_id varchar2(40) null, thumbnail_image_id varchar2(40) null, small_image_id varchar2(40) null, large_image_id varchar2(40) null ,constraint dcs_prd_media_p primary key (product_id) ,constraint dcs_prdmlarg_mgd_f foreign key (large_image_id) references dcs_media (media_id) ,constraint dcs_prdmsmall_mg_f foreign key (small_image_id) references dcs_media (media_id) ,constraint dcs_prdmtemplt_d_f foreign key (template_id) references dcs_media (media_id) ,constraint dcs_prdmthumbnl__f foreign key (thumbnail_image_id) references dcs_media (media_id) ,constraint dcs_prdmprodct_d_f foreign key (product_id) references dcs_product (product_id)); create index pr_mdia_lrimid_idx on dcs_prd_media (large_image_id); create index pr_mdia_smimid_idx on dcs_prd_media (small_image_id); create index pr_mdia_tmplid_idx on dcs_prd_media (template_id); create index pr_mdia_thimid_idx on dcs_prd_media (thumbnail_image_id); create table dcs_prd_aux_media ( product_id varchar2(40) not null, tag varchar2(42) not null, media_id varchar2(40) not null ,constraint dcs_prd_aux_medi_p primary key (product_id,tag) ,constraint dcs_prdaxmdmed_d_f foreign key (media_id) references dcs_media (media_id) ,constraint dcs_prdaprodct_d_f foreign key (product_id) references dcs_product (product_id)); create index pr_aux_mdia_mi_idx on dcs_prd_aux_media (media_id); create index pr_aux_mdia_pi_idx on dcs_prd_aux_media (product_id); create table dcs_prd_chldsku ( product_id varchar2(40) not null, sequence_num integer not null, sku_id varchar2(40) not null ,constraint dcs_prd_chldsku_p primary key (product_id,sequence_num) ,constraint dcs_prdcprodct_d_f foreign key (product_id) references dcs_product (product_id) ,constraint dcs_prdcsku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create index pr_chldsku_sid_idx on dcs_prd_chldsku (sku_id); create index pr_chldsku_pid_idx on dcs_prd_chldsku (product_id); create table dcs_prd_skuattr ( product_id varchar2(40) not null, sequence_num integer not null, attribute_name varchar2(40) not null ,constraint dcs_prd_skuattr_p primary key (product_id,sequence_num) ,constraint dcs_prdsprodct_d_f foreign key (product_id) references dcs_product (product_id)); create index pr_skuattr_pid_idx on dcs_prd_skuattr (product_id); create table dcs_prd_groups ( product_id varchar2(40) not null, related_prd_group varchar2(254) null, upsl_prd_group varchar2(254) null ,constraint dcs_prd_groups_p primary key (product_id) ,constraint dcs_prdgprodct_d_f foreign key (product_id) references dcs_product (product_id)); create table dcs_prd_rltdprd ( product_id varchar2(40) not null, sequence_num integer not null, related_prd_id varchar2(40) not null ,constraint dcs_prd_rltdprd_p primary key (product_id,sequence_num) ,constraint dcs_prdrprodct_d_f foreign key (product_id) references dcs_product (product_id) ,constraint dcs_prdrreltd_pr_f foreign key (related_prd_id) references dcs_product (product_id)); create index pr_rltdprd_rpi_idx on dcs_prd_rltdprd (related_prd_id); create index pr_rltdprd_pid_idx on dcs_prd_rltdprd (product_id); create table dcs_prd_upslprd ( product_id varchar2(40) not null, sequence_num integer not null, upsell_prd_id varchar2(40) not null ,constraint dcs_prd_upslprd_p primary key (product_id,sequence_num) ,constraint dcs_prduprodct_d_f foreign key (product_id) references dcs_product (product_id) ,constraint dcs_prdureltd_pr_f foreign key (upsell_prd_id) references dcs_product (product_id)); create index pr_upslprd_upi_idx on dcs_prd_upslprd (upsell_prd_id); create table dcs_prd_ancestors ( product_id varchar2(40) not null, anc_cat_id varchar2(40) not null ,constraint dcs_prd_ancestor_p primary key (product_id,anc_cat_id)); create index dcs_prd_anc_cat_id on dcs_prd_ancestors (anc_cat_id); create index dcs_prd_prd_id on dcs_prd_ancestors (product_id); create table dcs_sku_attr ( sku_id varchar2(40) not null, attribute_name varchar2(42) not null, attribute_value varchar2(254) not null ,constraint dcs_sku_attr_p primary key (sku_id,attribute_name) ,constraint dcs_skuttrsku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create index sku_attr_skuid_idx on dcs_sku_attr (sku_id); create table dcs_sku_link ( sku_link_id varchar2(40) not null, version integer not null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, display_name varchar2(254) null, description varchar2(254) null, quantity integer null, quantity_with_fraction number(19,7) null, bundle_item varchar2(40) not null, item_acl varchar2(1024) null ,constraint dcs_sku_link_p primary key (sku_link_id) ,constraint dcs_skulbundl_tm_f foreign key (bundle_item) references dcs_sku (sku_id)); create index sk_link_bndlid_idx on dcs_sku_link (bundle_item); create index skl_end_dte_idx on dcs_sku_link (end_date); create index skl_strt_dte_idx on dcs_sku_link (start_date); create table dcs_sku_bndllnk ( sku_id varchar2(40) not null, sequence_num integer not null, sku_link_id varchar2(40) not null ,constraint dcs_sku_bndllnk_p primary key (sku_id,sequence_num) ,constraint dcs_skubsku_d_f foreign key (sku_id) references dcs_sku (sku_id) ,constraint dcs_skubsku_lnkd_f foreign key (sku_link_id) references dcs_sku_link (sku_link_id)); create index sk_bndllnk_sli_idx on dcs_sku_bndllnk (sku_link_id); create index sk_bndllnk_sid_idx on dcs_sku_bndllnk (sku_id); create table dcs_sku_media ( sku_id varchar2(40) not null, template_id varchar2(40) null, thumbnail_image_id varchar2(40) null, small_image_id varchar2(40) null, large_image_id varchar2(40) null ,constraint dcs_sku_media_p primary key (sku_id) ,constraint dcs_skumlarg_mgd_f foreign key (large_image_id) references dcs_media (media_id) ,constraint dcs_skumsmall_mg_f foreign key (small_image_id) references dcs_media (media_id) ,constraint dcs_skumtemplt_d_f foreign key (template_id) references dcs_media (media_id) ,constraint dcs_skumthumbnl__f foreign key (thumbnail_image_id) references dcs_media (media_id) ,constraint dcs_skumdsku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create index sk_mdia_lrimid_idx on dcs_sku_media (large_image_id); create index sk_mdia_smimid_idx on dcs_sku_media (small_image_id); create index sk_mdia_tmplid_idx on dcs_sku_media (template_id); create index sk_mdia_thimid_idx on dcs_sku_media (thumbnail_image_id); create table dcs_sku_aux_media ( sku_id varchar2(40) not null, tag varchar2(42) not null, media_id varchar2(40) not null ,constraint dcs_sku_aux_medi_p primary key (sku_id,tag) ,constraint dcs_skuxmdmed_d_f foreign key (media_id) references dcs_media (media_id) ,constraint dcs_skuxmdsku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create index sk_aux_mdia_mi_idx on dcs_sku_aux_media (media_id); create index sk_aux_mdia_si_idx on dcs_sku_aux_media (sku_id); create table dcs_sku_replace ( sku_id varchar2(40) not null, sequence_num integer not null, replacement varchar2(40) not null ,constraint dcs_sku_replace_p primary key (sku_id,sequence_num) ,constraint dcs_skurplcsku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create index sk_replace_sid_idx on dcs_sku_replace (sku_id); create table dcs_sku_conf ( sku_id varchar2(40) not null, config_props varchar2(40) not null, sequence_num integer not null ,constraint dcs_sku_conf_p primary key (sku_id,sequence_num) ,constraint dcs_skucnfsku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create table dcs_config_sku ( sku_id varchar2(40) not null, configurator_id varchar2(254) null ,constraint dcs_config_sku_p primary key (sku_id) ,constraint dcs_cnfskusku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create table dcs_config_prop ( config_prop_id varchar2(40) not null, version integer not null, display_name varchar2(40) null, description varchar2(255) null, configurator_id varchar2(254) null, item_acl varchar2(1024) null ,constraint dcs_config_prop_p primary key (config_prop_id)); create table dcs_conf_options ( config_prop_id varchar2(40) not null, config_options varchar2(40) not null, sequence_num integer not null ,constraint dcs_conf_options_p primary key (config_prop_id,sequence_num) ,constraint dcs_confconfg_pr_f foreign key (config_prop_id) references dcs_config_prop (config_prop_id)); create table dcs_config_opt ( config_opt_id varchar2(40) not null, version integer not null, display_name varchar2(40) null, description varchar2(255) null, sku varchar2(40) null, product varchar2(40) null, price number(19,7) null, item_acl varchar2(1024) null ,constraint dcs_config_opt_p primary key (config_opt_id)); create index ct_conf_prod_idx on dcs_config_opt (product); create index ct_conf_sku_idx on dcs_config_opt (sku); create table dcs_foreign_cat ( catalog_id varchar2(40) not null, type integer not null, version integer not null, name varchar2(100) null, description varchar2(255) null, host varchar2(100) null, port integer null, base_url varchar2(255) null, return_url varchar2(255) null, item_acl varchar2(1024) null ,constraint dcs_foreign_cat_p primary key (catalog_id)); create table dbc_manufacturer ( manufacturer_id varchar2(40) not null, manufacturer_name varchar2(254) null, description varchar2(254) null, long_description clob null, email varchar2(255) null ,constraint dbc_manufacturer_p primary key (manufacturer_id)); create index dbc_man_name_idx on dbc_manufacturer (manufacturer_name); create table dbc_measurement ( sku_id varchar2(40) not null, unit_of_measure integer null, quantity number(19,7) null ,constraint dbc_measurement_p primary key (sku_id)); create table dcs_product_rltd_media ( product_id varchar2(40) not null, sequence_num integer not null, related_media_id varchar2(40) not null ,constraint dcs_product_rltd_media_p primary key (product_id,sequence_num) ,constraint dcs_product_rltd_media1_f foreign key (product_id) references dcs_product (product_id) ,constraint dcs_product_rltd_media2_f foreign key (related_media_id) references wcm_media_content (id)); create index dcs_product_rltd_media_idx on dcs_product_rltd_media (related_media_id); create table dcs_product_rltd_article ( product_id varchar2(40) not null, sequence_num integer not null, related_article_id varchar2(40) not null ,constraint dcs_product_rltd_article_p primary key (product_id,sequence_num) ,constraint dcs_product_rltd_article1_f foreign key (product_id) references dcs_product (product_id) ,constraint dcs_product_rltd_article2_f foreign key (related_article_id) references wcm_article (id)); create index dcs_product_rltd_article_idx on dcs_product_rltd_article (related_article_id); -- the source for this section is -- custom_catalog_ddl.sql create table dcs_catalog ( catalog_id varchar2(40) not null, version integer not null, display_name varchar2(254) null, creation_date timestamp null, last_mod_date timestamp null, migration_status number(3,0) null, migration_index number(10) null, item_acl varchar2(1024) null ,constraint dcs_catalog_p primary key (catalog_id)); create table dcs_root_cats ( catalog_id varchar2(40) not null, root_cat_id varchar2(40) not null ,constraint dcs_root_cats_p primary key (catalog_id,root_cat_id) ,constraint dcs_rotccatlg_d_f foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_rotcrot_ctd_f foreign key (root_cat_id) references dcs_category (category_id)); create index dcs_rootcatscat_id on dcs_root_cats (root_cat_id); create table dcs_allroot_cats ( catalog_id varchar2(40) not null, root_cat_id varchar2(40) not null ,constraint dcs_allroot_cats_p primary key (catalog_id,root_cat_id) ,constraint dcs_allrcatlg_d_f foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_allrrot_ctd_f foreign key (root_cat_id) references dcs_category (category_id)); create index dcs_allrt_cats_id on dcs_allroot_cats (root_cat_id); create table dcs_root_subcats ( catalog_id varchar2(40) not null, sub_catalog_id varchar2(40) not null ,constraint dcs_root_subcats_p primary key (catalog_id,sub_catalog_id) ,constraint dcs_rotscatlg_d_f foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_rotssub_ctlg_f foreign key (sub_catalog_id) references dcs_catalog (catalog_id)); create index dcs_rtsubcats_id on dcs_root_subcats (sub_catalog_id); create table dcs_category_info ( category_info_id varchar2(40) not null, version integer not null, item_acl varchar2(1024) null ,constraint dcs_category_inf_p primary key (category_info_id)); create table dcs_product_info ( product_info_id varchar2(40) not null, version integer not null, parent_cat_id varchar2(40) null, item_acl varchar2(1024) null ,constraint dcs_product_info_p primary key (product_info_id)); create table dcs_sku_info ( sku_info_id varchar2(40) not null, version integer not null, item_acl varchar2(1024) null ,constraint dcs_sku_info_p primary key (sku_info_id)); create table dcs_cat_subcats ( category_id varchar2(40) not null, sequence_num integer not null, catalog_id varchar2(40) not null ,constraint dcs_cat_subcats_p primary key (category_id,sequence_num) ,constraint dcs_catscatlg_d_f foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_catscatgry_d_f foreign key (category_id) references dcs_category (category_id)); create index dcs_catsubcatlogid on dcs_cat_subcats (catalog_id); create table dcs_cat_subroots ( category_id varchar2(40) not null, sequence_num integer not null, sub_category_id varchar2(40) not null ,constraint dcs_cat_subroots_p primary key (category_id,sequence_num) ,constraint dcs_subrtscatgry_f foreign key (category_id) references dcs_category (category_id)); create table dcs_cat_catinfo ( category_id varchar2(40) not null, catalog_id varchar2(40) not null, category_info_id varchar2(40) not null ,constraint dcs_cat_catinfo_p primary key (category_id,catalog_id) ,constraint dcs_infocatgry_d_f foreign key (category_id) references dcs_category (category_id)); create table dcs_catinfo_anc ( category_info_id varchar2(40) not null, anc_cat_id varchar2(40) not null ,constraint dcs_catinfo_anc_p primary key (category_info_id,anc_cat_id)); create table dcs_prd_prdinfo ( product_id varchar2(40) not null, catalog_id varchar2(40) not null, product_info_id varchar2(40) not null ,constraint dcs_prd_prdinfo_p primary key (product_id,catalog_id) ,constraint dcs_prdpprodct_d_f foreign key (product_id) references dcs_product (product_id)); create table dcs_prdinfo_rdprd ( product_info_id varchar2(40) not null, sequence_num integer not null, related_prd_id varchar2(40) not null ,constraint dcs_prdinfo_rdpr_p primary key (product_info_id,sequence_num) ,constraint dcs_prdireltd_pr_f foreign key (related_prd_id) references dcs_product (product_id) ,constraint dcs_prdiprodct_n_f foreign key (product_info_id) references dcs_product_info (product_info_id)); create index dcs_prdrelatedinfo on dcs_prdinfo_rdprd (related_prd_id); create table dcs_prdinfo_anc ( product_info_id varchar2(40) not null, anc_cat_id varchar2(40) not null ,constraint dcs_prdinfo_anc_p primary key (product_info_id,anc_cat_id)); create table dcs_sku_skuinfo ( sku_id varchar2(40) not null, catalog_id varchar2(40) not null, sku_info_id varchar2(40) not null ,constraint dcs_sku_skuinfo_p primary key (sku_id,catalog_id) ,constraint dcs_skusknfsku_d_f foreign key (sku_id) references dcs_sku (sku_id)); create table dcs_skuinfo_rplc ( sku_info_id varchar2(40) not null, sequence_num integer not null, replacement varchar2(40) not null ,constraint dcs_skuinfo_rplc_p primary key (sku_info_id,sequence_num) ,constraint dcs_skunsku_nfd_f foreign key (sku_info_id) references dcs_sku_info (sku_info_id)); create table dcs_gen_fol_cat ( folder_id varchar2(40) not null, type integer not null, name varchar2(40) not null, parent varchar2(40) null, description varchar2(254) null, item_acl varchar2(1024) null ,constraint dcs_gen_fol_cat_p primary key (folder_id)); create table dcs_child_fol_cat ( folder_id varchar2(40) not null, sequence_num integer not null, child_folder_id varchar2(40) not null ,constraint dcs_child_fol_ca_p primary key (folder_id,sequence_num) ,constraint dcs_catlfoldr_d_f foreign key (folder_id) references dcs_gen_fol_cat (folder_id)); create table dcs_catfol_chld ( catfol_id varchar2(40) not null, sequence_num integer not null, catalog_id varchar2(40) not null ,constraint dcs_catfol_chld_p primary key (catfol_id,sequence_num) ,constraint dcs_catfcatfl_d_f foreign key (catfol_id) references dcs_gen_fol_cat (folder_id)); create table dcs_catfol_sites ( catfol_id varchar2(40) not null, site_id varchar2(40) not null ,constraint dcs_catfl_sites_pk primary key (catfol_id,site_id)); create table dcs_dir_anc_ctlgs ( catalog_id varchar2(40) not null, sequence_num number(10) not null, anc_catalog_id varchar2(40) not null ,constraint dcs_dirancctlgs_pk primary key (catalog_id,sequence_num) ,constraint dcs_dirancctlgs_f1 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_dirancctlgs_f2 foreign key (anc_catalog_id) references dcs_catalog (catalog_id)); create index dcs_dirancctlg_idx on dcs_dir_anc_ctlgs (anc_catalog_id); create table dcs_ind_anc_ctlgs ( catalog_id varchar2(40) not null, sequence_num number(10) not null, anc_catalog_id varchar2(40) not null ,constraint dcs_indancctlgs_pk primary key (catalog_id,sequence_num) ,constraint dcs_indancctlgs_f1 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_indancctlgs_f2 foreign key (anc_catalog_id) references dcs_catalog (catalog_id)); create index dcs_indanctlg_idx on dcs_ind_anc_ctlgs (anc_catalog_id); create table dcs_ctlg_anc_cats ( catalog_id varchar2(40) not null, sequence_num number(10) not null, category_id varchar2(40) not null ,constraint dcs_ctlganccats_pk primary key (catalog_id,sequence_num) ,constraint dcs_ctlganccats_f1 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_ctlganccats_f2 foreign key (category_id) references dcs_category (category_id)); create index dcs_ctlgancat_idx on dcs_ctlg_anc_cats (category_id); create table dcs_cat_anc_cats ( category_id varchar2(40) not null, sequence_num number(10) not null, anc_category_id varchar2(40) not null ,constraint dcs_cat_anccats_pk primary key (category_id,sequence_num) ,constraint dcs_cat_anccats_f1 foreign key (category_id) references dcs_category (category_id) ,constraint dcs_cat_anccats_f2 foreign key (anc_category_id) references dcs_category (category_id)); create index dcs_catanccat_idx on dcs_cat_anc_cats (anc_category_id); create table dcs_cat_prnt_cats ( category_id varchar2(40) not null, catalog_id varchar2(40) not null, parent_ctgy_id varchar2(40) not null ,constraint dcs_catprntcats_pk primary key (category_id,catalog_id) ,constraint dcscatprntcats_fk1 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcscatprntcats_fk2 foreign key (category_id) references dcs_category (category_id) ,constraint dcscatprntcats_fk3 foreign key (parent_ctgy_id) references dcs_category (category_id)); create index dcscatprntcats_ix1 on dcs_cat_prnt_cats (catalog_id); create index dcscatprntcats_ix2 on dcs_cat_prnt_cats (category_id); create index dcscatprntcats_ix3 on dcs_cat_prnt_cats (parent_ctgy_id); create table dcs_prd_prnt_cats ( product_id varchar2(40) not null, catalog_id varchar2(40) not null, category_id varchar2(40) not null ,constraint dcs_prdprntcats_pk primary key (product_id,catalog_id) ,constraint dcs_prdprntcats_f2 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_prdprntcats_f3 foreign key (category_id) references dcs_category (category_id) ,constraint dcs_prdprntcats_f1 foreign key (product_id) references dcs_product (product_id)); create index pr_prnt_cat_pi_idx on dcs_prd_prnt_cats (catalog_id); create index pr_prnt_cat_ci_idx on dcs_prd_prnt_cats (category_id); create table dcs_prd_anc_cats ( product_id varchar2(40) not null, sequence_num number(10) not null, category_id varchar2(40) not null ,constraint dcs_prdanc_cats_pk primary key (product_id,sequence_num) ,constraint dcs_prdanc_cats_f2 foreign key (category_id) references dcs_category (category_id) ,constraint dcs_prdanc_cats_f1 foreign key (product_id) references dcs_product (product_id)); create index dcs_prdanccat_idx on dcs_prd_anc_cats (category_id); create table dcs_cat_catalogs ( category_id varchar2(40) not null, catalog_id varchar2(40) not null ,constraint dcs_cat_catalgs_pk primary key (category_id,catalog_id) ,constraint dcs_cat_catalgs_f2 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_cat_catalgs_f1 foreign key (category_id) references dcs_category (category_id)); create index dcs_catctlgs_idx on dcs_cat_catalogs (catalog_id); create table dcs_prd_catalogs ( product_id varchar2(40) not null, catalog_id varchar2(40) not null ,constraint dcs_prd_catalgs_pk primary key (product_id,catalog_id) ,constraint dcs_prd_catalgs_f2 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_prd_catalgs_f1 foreign key (product_id) references dcs_product (product_id)); create index dcs_prd_ctlgs_idx on dcs_prd_catalogs (catalog_id); create table dcs_sku_catalogs ( sku_id varchar2(40) not null, catalog_id varchar2(40) not null ,constraint dcs_sku_catalgs_pk primary key (sku_id,catalog_id) ,constraint dcs_sku_catalgs_f2 foreign key (catalog_id) references dcs_catalog (catalog_id) ,constraint dcs_sku_catalgs_f1 foreign key (sku_id) references dcs_sku (sku_id)); create index dcs_sku_ctlgs_idx on dcs_sku_catalogs (catalog_id); create table dcs_catalog_sites ( catalog_id varchar2(40) not null, site_id varchar2(40) not null ,constraint dcs_catlg_sites_pk primary key (catalog_id,site_id)); create index catlg_site_id_idx on dcs_catalog_sites (site_id); create table dcs_category_sites ( category_id varchar2(40) not null, site_id varchar2(40) not null ,constraint dcs_cat_sites_pk primary key (category_id,site_id)); create index cat_site_id_idx on dcs_category_sites (site_id); create table dcs_product_sites ( product_id varchar2(40) not null, site_id varchar2(40) not null ,constraint dcs_prod_sites_pk primary key (product_id,site_id) ,constraint dcs_prod_sites_f1 foreign key (product_id) references dcs_product (product_id)); create index prd_site_id_idx on dcs_product_sites (site_id); create table dcs_sku_sites ( sku_id varchar2(40) not null, site_id varchar2(40) not null ,constraint dcs_sku_sites_pk primary key (sku_id,site_id) ,constraint dcs_sku_sites_f1 foreign key (sku_id) references dcs_sku (sku_id)); create index sku_site_id_idx on dcs_sku_sites (site_id); create table dcs_cat_dynprd ( category_id varchar2(40) not null, product_id varchar2(40) not null ,constraint dcs_cat_dynprd_pk primary key (product_id,category_id)); create table dcs_invalidated_prd_ids ( product_id varchar2(40) not null ,constraint dcs_invalidated_prd_ids_pk primary key (product_id)); create table dcs_invalidated_sku_ids ( sku_id varchar2(40) not null ,constraint dcs_invalidated_sku_ids_pk primary key (sku_id)); -- the source for this section is -- location_ddl.sql create table dcs_location ( location_id varchar2(40) not null, ext_loc_id varchar2(40) null, type number(10) not null, version number(10) not null, name varchar2(254) null, start_date date null, end_date date null, latitude number(19,7) not null, longitude number(19,7) not null ,constraint dcs_location_p primary key (location_id)); create table dcs_location_sites ( location_id varchar2(40) not null, site_id varchar2(40) not null ,constraint dcs_location_sites_pk primary key (location_id,site_id)); create index location_site_id_idx on dcs_location_sites (site_id); create table dcs_loc_site_grps ( location_id varchar2(40) not null, site_group_id varchar2(40) not null ,constraint dcs_loc_sgrps_pk primary key (location_id,site_group_id) ,constraint dcs_loc_sgrps1_d_f foreign key (location_id) references dcs_location (location_id) ,constraint dcs_loc_sgrps2_d_f foreign key (site_group_id) references site_group (id)); create index dcs_loc_sgrps2_x on dcs_loc_site_grps (site_group_id); create table dcs_location_store ( location_id varchar2(40) not null, hours varchar2(64) null ,constraint dcs_loc_store_p primary key (location_id)); create table dcs_location_addr ( location_id varchar2(40) not null, address_1 varchar2(50) null, address_2 varchar2(50) null, address_3 varchar2(50) null, city varchar2(40) null, county varchar2(40) null, state_addr varchar2(40) null, postal_code varchar2(10) null, country varchar2(40) null, phone_number varchar2(40) null, fax_number varchar2(40) null, email varchar2(255) null ,constraint dcspp_loc_addr_p primary key (location_id) ,constraint dcspp_loc_addr_f foreign key (location_id) references dcs_location (location_id)); create table dcs_location_rltd_media ( location_id varchar2(40) not null, sequence_num integer not null, related_media_id varchar2(40) not null ,constraint dcs_location_rltd_media_p primary key (location_id,sequence_num) ,constraint dcs_location_rltd_media1_f foreign key (location_id) references dcs_location (location_id) ,constraint dcs_location_rltd_media2_f foreign key (related_media_id) references wcm_media_content (id)); create index dcs_location_rltd_media_idx on dcs_location_rltd_media (related_media_id); create table dcs_location_rltd_article ( location_id varchar2(40) not null, sequence_num integer not null, related_article_id varchar2(40) not null ,constraint dcs_location_rltd_article_p primary key (location_id,sequence_num) ,constraint dcs_location_rltd_article1_f foreign key (location_id) references dcs_location (location_id) ,constraint dcs_location_rltd_article2_f foreign key (related_article_id) references wcm_article (id)); create index dcs_location_rltd_article_idx on dcs_location_rltd_article (related_article_id); -- the source for this section is -- inventory_ddl.sql create table dcs_inventory ( inventory_id varchar2(40) not null, location_id varchar2(40) null, version integer not null, inventory_lock varchar2(20) null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, display_name varchar2(254) null, description varchar2(254) null, catalog_ref_id varchar2(40) not null, avail_status integer not null, availability_date timestamp null, stock_level integer null, stock_level_with_fraction number(19,7) null, backorder_level integer null, backorder_level_with_fraction number(19,7) null, preorder_level integer null, preorder_level_with_fraction number(19,7) null, stock_thresh integer null, backorder_thresh integer null, preorder_thresh integer null ,constraint dcs_inventory_p primary key (inventory_id)); create unique index inv_catloc_idx on dcs_inventory (catalog_ref_id,location_id); create index inv_end_dte_idx on dcs_inventory (end_date); create index inv_strt_dte_idx on dcs_inventory (start_date); create table dcs_inv_atp ( id varchar2(40) not null, version number(10) not null, inventory_id varchar2(40) null, available_date date not null, quantity number(10) not null, quantity_with_fraction number(19,7) null ,constraint dcs_inv_atp_p primary key (id)); -- the source for this section is -- promotion_ddl.sql -- Add the DCS_PRM_FOLDER table, promotionFolder create table dcs_prm_folder ( folder_id varchar2(40) not null, name varchar2(254) not null, parent_folder varchar2(40) null ,constraint dcs_prm_folder_p primary key (folder_id) ,constraint dcs_prm_prntfol_f foreign key (parent_folder) references dcs_prm_folder (folder_id)); create index prm_prntfol_idx on dcs_prm_folder (parent_folder); create table dcs_stacking_rule ( stacking_rule_id varchar2(40) not null, display_name varchar2(254) null, order_limits number(10) null, last_modified timestamp null ,constraint dcs_sr_p primary key (stacking_rule_id)); create table dcs_excl_stacking_rules ( stacking_rule_id varchar2(40) not null, excl_stacking_rule_id varchar2(40) not null ,constraint dcs_excl_sr1_d_f foreign key (stacking_rule_id) references dcs_stacking_rule (stacking_rule_id) ,constraint dcs_excl_sr2_d_f foreign key (excl_stacking_rule_id) references dcs_stacking_rule (stacking_rule_id)); create index dcs_excl_sr1_x on dcs_excl_stacking_rules (stacking_rule_id); create index dcs_excl_sr2_x on dcs_excl_stacking_rules (excl_stacking_rule_id); create table dcs_promotion ( promotion_id varchar2(40) not null, version integer not null, creation_date timestamp null, start_date timestamp null, end_date timestamp null, display_name varchar2(254) null, description varchar2(254) null, promotion_type integer null, enabled number(1,0) null, begin_usable timestamp null, end_usable timestamp null, priority integer null, evaluation_limit number(10) null, global number(1,0) null, anon_profile number(1,0) null, allow_multiple number(1,0) null, uses integer null, rel_expiration number(1,0) null, time_until_expire integer null, template varchar2(254) null, ui_access_lvl integer null, parent_folder varchar2(40) null, last_modified timestamp null, pmdl_version integer null, eval_target_items_first number(1) null, qualifier varchar2(254) null, stacking_rule varchar2(40) null, fil_Qual_Discounted_By_Any number(1) null, fil_Qual_Discounted_By_Current number(1) null, fil_Qual_Acted_As_Qual number(1) null, fil_Qual_On_Sale number(1) null, fil_Qual_Zero_Prices number(1) null, fil_Qual_Neg_Prices number(1) null, fil_Tar_Acted_As_Qual number(1) null, fil_Tar_Discounted_By_Current number(1) null, fil_Tar_Discounted_By_Any number(1) null, fil_Target_On_Sale number(1) null, fil_Tar_Zero_Prices number(1) null, fil_Tar_Neg_Prices number(1) null, fil_Tar_Price_LTOET_Prm_Price number(1) null ,constraint dcs_promotion_p primary key (promotion_id) ,constraint dcs_prm_fol_f foreign key (parent_folder) references dcs_prm_folder (folder_id) ,constraint dcs_sta_rule_f foreign key (stacking_rule) references dcs_stacking_rule (stacking_rule_id) ,constraint dcs_promotion1_c check (enabled in (0,1)) ,constraint dcs_promotion2_c check (global in (0,1)) ,constraint dcs_promotion3_c check (anon_profile in (0,1)) ,constraint dcs_promotion4_c check (allow_multiple in (0,1)) ,constraint dcs_promotion5_c check (rel_expiration in (0,1)) ,constraint dcs_promotion6_c check (eval_target_items_first in (0,1))); create index promo_folder_idx on dcs_promotion (parent_folder); create index stacking_rule_idx on dcs_promotion (stacking_rule); create index prmo_bgin_use_idx on dcs_promotion (begin_usable); create index prmo_end_dte_idx on dcs_promotion (end_date); create index prmo_end_use_idx on dcs_promotion (end_usable); create index prmo_strt_dte_idx on dcs_promotion (start_date); create table dcs_promo_media ( promotion_id varchar2(40) not null, tag varchar2(42) not null, media_id varchar2(40) not null ,constraint dcs_promo_media_p primary key (promotion_id,tag) ,constraint dcs_prommdmed_d_f foreign key (media_id) references dcs_media (media_id) ,constraint dcs_prompromtn_d_f foreign key (promotion_id) references dcs_promotion (promotion_id)); create index promo_mdia_mid_idx on dcs_promo_media (media_id); create index promo_mdia_pid_idx on dcs_promo_media (promotion_id); create table dcs_promo_payment ( promotion_id varchar2(40) not null, payment_type varchar2(40) not null); create table dcs_discount_promo ( promotion_id varchar2(40) not null, calculator varchar2(254) null, adjuster number(19,7) null, pmdl_rule clob not null, one_use number(1,0) null ,constraint dcs_discount_pro_p primary key (promotion_id) ,constraint dcs_discpromtn_d_f foreign key (promotion_id) references dcs_promotion (promotion_id) ,constraint dcs_discount_pro_c check (one_use in (0, 1))); create table dcs_promo_upsell ( promotion_id varchar2(40) not null, upsell number(1,0) null ,constraint dcs_promo_upsell_p primary key (promotion_id) ,constraint dcs_proupsell_d_f foreign key (promotion_id) references dcs_promotion (promotion_id) ,constraint dcs_promo_upsell_c check (upsell in (0, 1))); create table dcs_upsell_action ( action_id varchar2(40) not null, version number(10) not null, name varchar2(40) not null, upsell_prd_grp clob null ,constraint dcs_upsell_actn_p primary key (action_id)); create table dcs_close_qualif ( close_qualif_id varchar2(40) not null, version number(10) not null, name varchar2(254) not null, priority number(10) null, qualifier clob null, upsell_media varchar2(40) null, upsell_action varchar2(40) null ,constraint dcs_close_qualif_p primary key (close_qualif_id) ,constraint dcs_cq_media_d_f foreign key (upsell_media) references dcs_media (media_id) ,constraint dcs_cq_action_d_f foreign key (upsell_action) references dcs_upsell_action (action_id)); create index dcs_closequalif2_x on dcs_close_qualif (upsell_media); create index dcs_closequalif1_x on dcs_close_qualif (upsell_action); create table dcs_prm_cls_qlf ( promotion_id varchar2(40) not null, closeness_qualif varchar2(40) not null ,constraint dcs_promo_cq_d_f foreign key (promotion_id) references dcs_promotion (promotion_id) ,constraint dcs_prmclsqlf_d_f foreign key (closeness_qualif) references dcs_close_qualif (close_qualif_id)); create index dcs_prm_cls_qlf2_x on dcs_prm_cls_qlf (promotion_id); create index dcs_prm_cls_qlf1_x on dcs_prm_cls_qlf (closeness_qualif); create table dcs_prm_sites ( promotion_id varchar2(40) not null, site_id varchar2(40) not null ,constraint dcs_prm_sites1_d_f foreign key (promotion_id) references dcs_promotion (promotion_id) ,constraint dcs_prm_sites2_d_f foreign key (site_id) references site_configuration (id)); create index dcs_prm_sites1_x on dcs_prm_sites (promotion_id); create index dcs_prm_sites2_x on dcs_prm_sites (site_id); create table dcs_prm_site_grps ( promotion_id varchar2(40) not null, site_group_id varchar2(40) not null ,constraint dcs_prm_sgrps1_d_f foreign key (promotion_id) references dcs_promotion (promotion_id) ,constraint dcs_prm_sgrps2_d_f foreign key (site_group_id) references site_group (id)); create index dcs_prm_sgrps1_x on dcs_prm_site_grps (promotion_id); create index dcs_prm_sgrps2_x on dcs_prm_site_grps (site_group_id); create table dcs_prm_tpl_vals ( promotion_id varchar2(40) not null, placeholder varchar2(40) not null, placeholderValue clob null ,constraint dcs_prm_tpl_vals_p primary key (promotion_id,placeholder) ,constraint dcs_prmtplvals_d_f foreign key (promotion_id) references dcs_promotion (promotion_id)); create table dcs_prm_cls_vals ( close_qualif_id varchar2(40) not null, placeholder varchar2(40) not null, placeholderValue clob null ,constraint dcs_prm_cls_vals_p primary key (close_qualif_id,placeholder) ,constraint dcs_prmclsvals_d_f foreign key (close_qualif_id) references dcs_close_qualif (close_qualif_id)); create table dcs_upsell_prods ( action_id varchar2(40) not null, product_id varchar2(40) not null, sequence_num number(10) not null ,constraint dcs_upsell_prods_p primary key (action_id,product_id) ,constraint dcs_ups_prod_d_f foreign key (product_id) references dcs_product (product_id)); create index dcs_upsellprods1_x on dcs_upsell_prods (product_id); create table dcs_excl_promotions ( promotion_id varchar2(40) not null, excl_promotion_id varchar2(40) not null ,constraint dcs_excl_pr1_d_f foreign key (promotion_id) references dcs_promotion (promotion_id) ,constraint dcs_excl_pr2_d_f foreign key (excl_promotion_id) references dcs_promotion (promotion_id)); create index dcs_excl_pr1_x on dcs_excl_promotions (promotion_id); create index dcs_excl_pr2_x on dcs_excl_promotions (excl_promotion_id); create table dcs_incl_promotions ( promotion_id varchar2(40) not null, incl_promotion_id varchar2(40) not null ,constraint dcs_incl_pr1_d_f foreign key (promotion_id) references dcs_promotion (promotion_id) ,constraint dcs_incl_pr2_d_f foreign key (incl_promotion_id) references dcs_promotion (promotion_id)); create index dcs_incl_pr1_x on dcs_incl_promotions (promotion_id); create index dcs_incl_pr2_x on dcs_incl_promotions (incl_promotion_id); -- the source for this section is -- user_promotion_ddl.sql -- The promotion line was commented out to allow the profile and promotion tables to be delinked. The promotion tables are intended to be used as a "read-only" table on the production servers. The promotion (and product catalog) tables are promoted and made active on the production system through copy-switch. In doing so, the profile tables and the promotion tables cannot be in the same database, and therefore we must remove this referece. However if you are not going to use copy-switch for the promotions, then you can add this reference back in. promotion VARCHAR(40) NOT NULL REFERENCES dcs_promotion(promotion_id), create table dcs_usr_promostat ( status_id varchar2(40) not null, profile_id varchar2(40) not null, promotion varchar2(40) not null, num_uses integer null, expirationDate timestamp null, granted_date timestamp null ,constraint dcs_usr_promosta_p primary key (status_id)); create index promostat_prof_idx on dcs_usr_promostat (profile_id); create index usr_prmstat_pr_idx on dcs_usr_promostat (promotion); create table dcs_usr_actvpromo ( id varchar2(40) not null, sequence_num integer not null, promo_status_id varchar2(40) not null ,constraint dcs_usr_actvprom_p primary key (id,sequence_num) ,constraint usr_actvprm_id_f foreign key (id) references dps_user (id) ,constraint usr_actvprm_stat_f foreign key (promo_status_id) references dcs_usr_promostat (status_id)); create index usr_actvprm_ps_idx on dcs_usr_actvpromo (promo_status_id); create index usr_actvprm_id_idx on dcs_usr_actvpromo (id); create table dcs_promo_st_cpn ( status_id varchar2(40) not null, sequence_num integer not null, coupon_id varchar2(40) not null ,constraint dcs_promo_st_cpn_p primary key (status_id,sequence_num)); -- The promotion_id column was commented out to allow the profile and promotion tables to be delinked. The promotion tables are intended to be used as a "read-only" table on the production servers. The promotion (and product catalog) tables are promoted and made active on the production system through copy-switch. In doing so, the profile tables and the promotion tables cannot be in the same database, and therefore we must remove this referece. However if you are not going to use copy-switch for the promotions, then you can add this reference back in. promotion_id VARCHAR(40) NOT NULL REFERENCES dcs_promotion(promotion_id), create table dcs_usr_usedpromo ( id varchar2(40) not null, promotion_id varchar2(40) not null ,constraint dcs_usr_usedprom_p primary key (id,promotion_id)); create index usr_usedprm_id_idx on dcs_usr_usedpromo (id); create index usr_usedprm_pi_idx on dcs_usr_usedpromo (promotion_id); -- the source for this section is -- user_giftlist_ddl.sql create table dcs_giftlist ( id varchar2(40) not null, owner_id varchar2(40) null, site_id varchar2(40) null, is_public number(1,0) not null, is_published number(1,0) not null, event_name varchar2(64) null, event_type integer null, event_date timestamp null, comments varchar2(254) null, description varchar2(254) null, instructions varchar2(254) null, creation_date timestamp null, last_modified_date timestamp null, shipping_addr_id varchar2(40) null ,constraint dcs_giftlist_p primary key (id) ,constraint dcs_giftlist1_c check (is_public in (0,1)) ,constraint dcs_giftlist2_c check (is_published in (0,1))); create index gftlst_shpadid_idx on dcs_giftlist (shipping_addr_id); create index gft_evnt_name_idx on dcs_giftlist (event_name); create index gft_evnt_type_idx on dcs_giftlist (event_type); create index gft_owner_id_idx on dcs_giftlist (owner_id); create index gft_site_id_idx on dcs_giftlist (site_id); create table dcs_giftinst ( giftlist_id varchar2(40) not null, tag varchar2(42) not null, special_inst varchar2(254) null ,constraint dcs_giftinst_p primary key (giftlist_id,tag) ,constraint dcs_giftgiftlst__f foreign key (giftlist_id) references dcs_giftlist (id)); create index giftinst_gflid_idx on dcs_giftinst (giftlist_id); create table dcs_giftitem ( id varchar2(40) not null, catalog_ref_id varchar2(40) null, product_id varchar2(40) null, site_id varchar2(40) null, display_name varchar2(254) null, description varchar2(254) null, quantity_desired integer null, quantity_purchased integer null, qty_with_fraction_desired number(19,7) null, qty_with_fraction_purchased number(19,7) null ,constraint dcs_giftitem_p primary key (id)); create index giftitem_cat_idx on dcs_giftitem (catalog_ref_id); create index giftitem_prod_idx on dcs_giftitem (product_id); create index giftitem_site_idx on dcs_giftitem (site_id); create table dcs_giftlist_item ( giftlist_id varchar2(40) not null, sequence_num integer not null, giftitem_id varchar2(40) null ,constraint dcs_giftlist_ite_p primary key (giftlist_id,sequence_num) ,constraint dcs_giftgifttm_d_f foreign key (giftitem_id) references dcs_giftitem (id) ,constraint dcs_gftlstgftlst_f foreign key (giftlist_id) references dcs_giftlist (id)); create index gftlst_itm_gii_idx on dcs_giftlist_item (giftitem_id); create index gftlst_itm_gli_idx on dcs_giftlist_item (giftlist_id); create table dcs_user_wishlist ( user_id varchar2(40) not null, giftlist_id varchar2(40) null ,constraint dcs_user_wishlis_p primary key (user_id) ,constraint dcs_usrwgiftlst__f foreign key (giftlist_id) references dcs_giftlist (id)); create index usr_wshlst_gli_idx on dcs_user_wishlist (giftlist_id); create table dcs_user_giftlist ( user_id varchar2(40) not null, sequence_num integer not null, giftlist_id varchar2(40) null ,constraint dcs_user_giftlis_p primary key (user_id,sequence_num) ,constraint dcs_usrgiftlst__f foreign key (giftlist_id) references dcs_giftlist (id)); create index usr_gftlst_gli_idx on dcs_user_giftlist (giftlist_id); create index usr_gftlst_uid_idx on dcs_user_giftlist (user_id); create table dcs_user_otherlist ( user_id varchar2(40) not null, sequence_num integer not null, giftlist_id varchar2(40) null ,constraint dcs_user_otherli_p primary key (user_id,sequence_num) ,constraint dcs_usrtgiftlst__f foreign key (giftlist_id) references dcs_giftlist (id)); create index usr_otrlst_gli_idx on dcs_user_otherlist (giftlist_id); -- the source for this section is -- order_ddl.sql create table dcspp_order ( order_id varchar2(40) not null, type integer not null, version integer not null, order_class_type varchar2(40) null, profile_id varchar2(40) null, organization_id varchar2(40) null, description varchar2(64) null, state varchar2(40) null, state_detail varchar2(254) null, created_by_order varchar2(40) null, origin_of_order number(10) null, creation_date timestamp null, submitted_date timestamp null, last_modified_date timestamp null, completed_date timestamp null, price_info varchar2(40) null, tax_price_info varchar2(40) null, explicitly_saved number(1,0) null, agent_id varchar2(40) null, sales_channel number(10) null, creation_site_id varchar2(40) null, site_id varchar2(40) null, gwp number(1,0) null, quote_info varchar2(40) null, active_quote_order_id varchar2(40) null, configurator_id varchar2(254) null ,constraint dcspp_order_p primary key (order_id) ,constraint dcspp_order_c check (explicitly_saved IN (0,1))); create index order_lastmod_idx on dcspp_order (last_modified_date); create index order_profile_idx on dcspp_order (profile_id); create index order_submit_idx on dcspp_order (submitted_date); create index ord_creat_site_idx on dcspp_order (creation_site_id); create index ord_site_idx on dcspp_order (site_id); create index ord_activequote_idx on dcspp_order (active_quote_order_id); create index ord_organization_idx on dcspp_order (organization_id); create table dcspp_ship_group ( shipping_group_id varchar2(40) not null, type integer not null, version integer not null, shipgrp_class_type varchar2(40) null, shipping_method varchar2(40) null, description varchar2(64) null, ship_on_date timestamp null, actual_ship_date timestamp null, state varchar2(40) null, state_detail varchar2(254) null, submitted_date timestamp null, price_info varchar2(40) null, order_ref varchar2(40) null ,constraint dcspp_ship_group_p primary key (shipping_group_id)); create table dcspp_pay_group ( payment_group_id varchar2(40) not null, type integer not null, version integer not null, paygrp_class_type varchar2(40) null, payment_method varchar2(40) null, amount number(19,7) null, amount_authorized number(19,7) null, amount_debited number(19,7) null, amount_credited number(19,7) null, currency_code varchar2(10) null, state varchar2(40) null, state_detail varchar2(254) null, submitted_date timestamp null, order_ref varchar2(40) null ,constraint dcspp_pay_group_p primary key (payment_group_id)); create table dcspp_item ( commerce_item_id varchar2(40) not null, type integer not null, version integer not null, item_class_type varchar2(40) null, catalog_id varchar2(40) null, catalog_ref_id varchar2(40) null, external_id varchar2(40) null, catalog_key varchar2(40) null, product_id varchar2(40) null, site_id varchar2(40) null, quantity number(19,0) null, quantity_with_fraction number(19,7) null, state varchar2(40) null, state_detail varchar2(254) null, price_info varchar2(40) null, order_ref varchar2(40) null, gwp number(1,0) null ,constraint dcspp_item_p primary key (commerce_item_id)); create index item_catref_idx on dcspp_item (catalog_ref_id); create index item_prodref_idx on dcspp_item (product_id); create index item_site_idx on dcspp_item (site_id); create table dcspp_relationship ( relationship_id varchar2(40) not null, type integer not null, version integer not null, rel_class_type varchar2(40) null, relationship_type varchar2(40) null, order_ref varchar2(40) null ,constraint dcspp_relationsh_p primary key (relationship_id)); create table dcspp_rel_orders ( order_id varchar2(40) not null, related_orders varchar2(40) not null, sequence_num integer not null ,constraint dcspp_rel_orders_p primary key (order_id,sequence_num) ,constraint dcspp_reordr_d_f foreign key (order_id) references dcspp_order (order_id)); create table dcspp_order_inst ( order_id varchar2(40) not null, tag varchar2(42) not null, special_inst varchar2(254) null ,constraint dcspp_order_inst_p primary key (order_id,tag) ,constraint dcspp_orordr_d_f foreign key (order_id) references dcspp_order (order_id)); create index order_inst_oid_idx on dcspp_order_inst (order_id); create table dcspp_order_sg ( order_id varchar2(40) not null, shipping_groups varchar2(40) not null, sequence_num integer not null ,constraint dcspp_order_sg_p primary key (order_id,sequence_num) ,constraint dcspp_sgordr_d_f foreign key (order_id) references dcspp_order (order_id)); create index order_sg_ordid_idx on dcspp_order_sg (order_id); create table dcspp_order_pg ( order_id varchar2(40) not null, payment_groups varchar2(40) not null, sequence_num integer not null ,constraint dcspp_order_pg_p primary key (order_id,sequence_num) ,constraint dcspp_orpgordr_f foreign key (order_id) references dcspp_order (order_id)); create index order_pg_ordid_idx on dcspp_order_pg (order_id); create table dcspp_order_item ( order_id varchar2(40) not null, commerce_items varchar2(40) not null, sequence_num integer not null ,constraint dcspp_order_item_p primary key (order_id,sequence_num) ,constraint dcspp_oritordr_d_f foreign key (order_id) references dcspp_order (order_id)); create index order_item_oid_idx on dcspp_order_item (order_id); create index order_item_cit_idx on dcspp_order_item (commerce_items); create table dcspp_order_rel ( order_id varchar2(40) not null, relationships varchar2(40) not null, sequence_num integer not null ,constraint dcspp_order_rel_p primary key (order_id,sequence_num) ,constraint dcspp_orlordr_d_f foreign key (order_id) references dcspp_order (order_id)); create index order_rel_orid_idx on dcspp_order_rel (order_id); create table dcspp_ship_inst ( shipping_group_id varchar2(40) not null, tag varchar2(42) not null, special_inst varchar2(254) null ,constraint dcspp_ship_inst_p primary key (shipping_group_id,tag) ,constraint dcspp_shshippng__f foreign key (shipping_group_id) references dcspp_ship_group (shipping_group_id)); create index ship_inst_sgid_idx on dcspp_ship_inst (shipping_group_id); create table dcspp_hrd_ship_grp ( shipping_group_id varchar2(40) not null, tracking_number varchar2(40) null ,constraint dcspp_hrd_ship_g_p primary key (shipping_group_id) ,constraint dcspp_hrshippng__f foreign key (shipping_group_id) references dcspp_ship_group (shipping_group_id)); create table dcspp_ele_ship_grp ( shipping_group_id varchar2(40) not null, email_address varchar2(255) null ,constraint dcspp_ele_ship_g_p primary key (shipping_group_id) ,constraint dcspp_elshippng__f foreign key (shipping_group_id) references dcspp_ship_group (shipping_group_id)); create table dcspp_isp_ship_grp ( shipping_group_id varchar2(40) not null, location_id varchar2(40) not null, first_name varchar2(40) null, middle_name varchar2(40) null, last_name varchar2(40) null ,constraint dcspp_isp_ship_g_p primary key (shipping_group_id) ,constraint dcspp_ispshippng__f foreign key (shipping_group_id) references dcspp_ship_group (shipping_group_id)); create table dcspp_ship_addr ( shipping_group_id varchar2(40) not null, prefix varchar2(40) null, first_name varchar2(40) null, middle_name varchar2(40) null, last_name varchar2(40) null, suffix varchar2(40) null, job_title varchar2(40) null, company_name varchar2(40) null, address_1 varchar2(50) null, address_2 varchar2(50) null, address_3 varchar2(50) null, city varchar2(40) null, county varchar2(40) null, state varchar2(40) null, postal_code varchar2(10) null, country varchar2(40) null, phone_number varchar2(40) null, fax_number varchar2(40) null, email varchar2(255) null ,constraint dcspp_ship_addr_p primary key (shipping_group_id) ,constraint dcspp_shdshippng_f foreign key (shipping_group_id) references dcspp_ship_group (shipping_group_id)); create table dcspp_hand_inst ( handling_inst_id varchar2(40) not null, type integer not null, version integer not null, hndinst_class_type varchar2(40) null, handling_method varchar2(40) null, shipping_group_id varchar2(40) null, commerce_item_id varchar2(40) null, quantity integer null, quantity_with_fraction number(19,7) null ,constraint dcspp_hand_inst_p primary key (handling_inst_id)); create index hi_item_idx on dcspp_hand_inst (commerce_item_id); create index hi_ship_group_idx on dcspp_hand_inst (shipping_group_id); create table dcspp_gift_inst ( handling_inst_id varchar2(40) not null, giftlist_id varchar2(40) null, giftlist_item_id varchar2(40) null ,constraint dcspp_gift_inst_p primary key (handling_inst_id) ,constraint dcspp_gihandlng__f foreign key (handling_inst_id) references dcspp_hand_inst (handling_inst_id)); create table dcspp_sg_hand_inst ( shipping_group_id varchar2(40) not null, handling_instrs varchar2(40) not null, sequence_num integer not null ,constraint dcspp_sg_hand_in_p primary key (shipping_group_id,sequence_num) ,constraint dcspp_sgshippng__f foreign key (shipping_group_id) references dcspp_ship_group (shipping_group_id)); create index sg_hnd_ins_sgi_idx on dcspp_sg_hand_inst (shipping_group_id); create table dcspp_pay_inst ( payment_group_id varchar2(40) not null, tag varchar2(42) not null, special_inst varchar2(254) null ,constraint dcspp_pay_inst_p primary key (payment_group_id,tag) ,constraint dcspp_papaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create index pay_inst_pgrid_idx on dcspp_pay_inst (payment_group_id); create table dcspp_config_item ( config_item_id varchar2(40) not null, reconfig_data varchar2(255) null, notes varchar2(255) null, configured number(1) null, configurator_id varchar2(254) null ,constraint dcspp_config_ite_p primary key (config_item_id) ,constraint dcspp_coconfg_tm_f foreign key (config_item_id) references dcspp_item (commerce_item_id)); create table dcspp_subsku_item ( subsku_item_id varchar2(40) not null, ind_quantity integer null, config_prop_id varchar2(40) null, config_opt_id varchar2(40) null ,constraint dcspp_subsku_ite_p primary key (subsku_item_id) ,constraint dcspp_susubsk_tm_f foreign key (subsku_item_id) references dcspp_item (commerce_item_id)); create table dcspp_config_subsku_item ( subsku_item_id varchar2(40) not null, config_prop_id varchar2(40) null, config_opt_id varchar2(40) null ,constraint dcspp_cfg_subsku_ite_p primary key (subsku_item_id) ,constraint dcspp_cfg_subsku_tm_f foreign key (subsku_item_id) references dcspp_item (commerce_item_id)); create table dcspp_item_ci ( commerce_item_id varchar2(40) not null, commerce_items varchar2(40) not null, sequence_num integer not null ,constraint dcspp_item_ci_p primary key (commerce_item_id,sequence_num) ,constraint dcspp_itcommrc_t_f foreign key (commerce_item_id) references dcspp_item (commerce_item_id)); create table dcspp_gift_cert ( payment_group_id varchar2(40) not null, profile_id varchar2(40) null, gift_cert_number varchar2(50) null ,constraint dcspp_gift_cert_p primary key (payment_group_id) ,constraint dcspp_gipaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create index gc_number_idx on dcspp_gift_cert (gift_cert_number); create index gc_profile_idx on dcspp_gift_cert (profile_id); create table dcspp_store_cred ( payment_group_id varchar2(40) not null, profile_id varchar2(40) null, store_cred_number varchar2(50) null ,constraint dcspp_store_cred_p primary key (payment_group_id) ,constraint dcspp_stpaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create index sc_number_idx on dcspp_store_cred (store_cred_number); create index sc_profile_idx on dcspp_store_cred (profile_id); create table dcspp_credit_card ( payment_group_id varchar2(40) not null, credit_card_number varchar2(40) null, credit_card_type varchar2(40) null, expiration_month varchar2(20) null, exp_day_of_month varchar2(20) null, expiration_year varchar2(20) null ,constraint dcspp_credit_car_p primary key (payment_group_id) ,constraint dcspp_crpaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create table dcspp_token_crdt_crd ( payment_group_id varchar2(40) not null, token varchar2(40) not null ,constraint dcspp_token_crdt_crd_p primary key (payment_group_id) ,constraint dcspp_tokencrdtcrd__f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create table dcspp_bill_addr ( payment_group_id varchar2(40) not null, prefix varchar2(40) null, first_name varchar2(40) null, middle_name varchar2(40) null, last_name varchar2(40) null, suffix varchar2(40) null, job_title varchar2(40) null, company_name varchar2(40) null, address_1 varchar2(50) null, address_2 varchar2(50) null, address_3 varchar2(50) null, city varchar2(40) null, county varchar2(40) null, state varchar2(40) null, postal_code varchar2(10) null, country varchar2(40) null, phone_number varchar2(40) null, fax_number varchar2(40) null, email varchar2(255) null ,constraint dcspp_bill_addr_p primary key (payment_group_id) ,constraint dcspp_bipaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create table dcspp_pay_status ( status_id varchar2(40) not null, type integer not null, version integer not null, trans_id varchar2(50) null, amount number(19,7) null, trans_success number(1,0) null, error_message varchar2(254) null, trans_timestamp timestamp null ,constraint dcspp_pay_status_p primary key (status_id) ,constraint dcspp_pay_status_c check (trans_success IN (0,1))); create table dcspp_cc_status ( status_id varchar2(40) not null, auth_expiration timestamp null, avs_code varchar2(40) null, avs_desc_result varchar2(254) null, integration_data varchar2(256) null ,constraint dcspp_cc_status_p primary key (status_id) ,constraint dcspp_ccstats_d_f foreign key (status_id) references dcspp_pay_status (status_id)); create table dcspp_gc_status ( status_id varchar2(40) not null, auth_expiration timestamp null ,constraint dcspp_gc_status_p primary key (status_id) ,constraint dcspp_gcstats_d_f foreign key (status_id) references dcspp_pay_status (status_id)); create table dcspp_sc_status ( status_id varchar2(40) not null, auth_expiration timestamp null ,constraint dcspp_sc_status_p primary key (status_id) ,constraint dcspp_scstats_d_f foreign key (status_id) references dcspp_pay_status (status_id)); create table dcspp_auth_status ( payment_group_id varchar2(40) not null, auth_status varchar2(254) not null, sequence_num integer not null ,constraint dcspp_auth_statu_p primary key (payment_group_id,sequence_num) ,constraint dcspp_atpaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create index auth_stat_pgid_idx on dcspp_auth_status (payment_group_id); create table dcspp_debit_status ( payment_group_id varchar2(40) not null, debit_status varchar2(254) not null, sequence_num integer not null ,constraint dcspp_debit_stat_p primary key (payment_group_id,sequence_num) ,constraint dcspp_depaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create index debit_stat_pgi_idx on dcspp_debit_status (payment_group_id); create table dcspp_cred_status ( payment_group_id varchar2(40) not null, credit_status varchar2(254) not null, sequence_num integer not null ,constraint dcspp_cred_statu_p primary key (payment_group_id,sequence_num) ,constraint dcspp_crpaymntgr_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create index cred_stat_pgid_idx on dcspp_cred_status (payment_group_id); create table dcspp_shipitem_rel ( relationship_id varchar2(40) not null, shipping_group_id varchar2(40) null, commerce_item_id varchar2(40) null, quantity number(19,0) null, quantity_with_fraction number(19,7) null, returned_qty number(19,0) null, returned_qty_with_fraction number(19,7) null, amount number(19,7) null, state varchar2(40) null, state_detail varchar2(254) null ,constraint dcspp_shipitem_r_p primary key (relationship_id) ,constraint dcspp_shreltnshp_f foreign key (relationship_id) references dcspp_relationship (relationship_id)); create index sirel_item_idx on dcspp_shipitem_rel (commerce_item_id); create index sirel_shipgrp_idx on dcspp_shipitem_rel (shipping_group_id); create table dcspp_rel_range ( relationship_id varchar2(40) not null, low_bound integer null, low_bound_with_fraction number(19,7) null, high_bound integer null, high_bound_with_fraction number(19,7) null ,constraint dcspp_rel_range_p primary key (relationship_id)); create table dcspp_payitem_rel ( relationship_id varchar2(40) not null, payment_group_id varchar2(40) null, commerce_item_id varchar2(40) null, quantity number(19,0) null, quantity_with_fraction number(19,7) null, amount number(19,7) null ,constraint dcspp_payitem_re_p primary key (relationship_id) ,constraint dcspp_pareltnshp_f foreign key (relationship_id) references dcspp_relationship (relationship_id)); create index pirel_item_idx on dcspp_payitem_rel (commerce_item_id); create index pirel_paygrp_idx on dcspp_payitem_rel (payment_group_id); create table dcspp_payship_rel ( relationship_id varchar2(40) not null, payment_group_id varchar2(40) null, shipping_group_id varchar2(40) null, amount number(19,7) null ,constraint dcspp_payship_re_p primary key (relationship_id) ,constraint dcspp_pshrltnshp_f foreign key (relationship_id) references dcspp_relationship (relationship_id)); create index psrel_paygrp_idx on dcspp_payship_rel (payment_group_id); create index psrel_shipgrp_idx on dcspp_payship_rel (shipping_group_id); create table dcspp_payorder_rel ( relationship_id varchar2(40) not null, payment_group_id varchar2(40) null, order_id varchar2(40) null, amount number(19,7) null ,constraint dcspp_payorder_r_p primary key (relationship_id) ,constraint dcspp_odreltnshp_f foreign key (relationship_id) references dcspp_relationship (relationship_id)); create index porel_order_idx on dcspp_payorder_rel (order_id); create index porel_paygrp_idx on dcspp_payorder_rel (payment_group_id); create table dcspp_amount_info ( amount_info_id varchar2(40) not null, type integer not null, version integer not null, currency_code varchar2(10) null, amount number(19,7) null, discounted number(1,0) null, amount_is_final number(1,0) null, final_rc number(10) null ,constraint dcspp_amount_inf_p primary key (amount_info_id) ,constraint dcspp_amount_in1_c check (discounted IN (0,1)) ,constraint dcspp_amount_in2_c check (amount_is_final IN (0,1))); create table dcspp_order_price ( amount_info_id varchar2(40) not null, raw_subtotal number(19,7) null, tax number(19,7) null, shipping number(19,7) null, manual_adj_total number(19,7) null ,constraint dcspp_order_pric_p primary key (amount_info_id) ,constraint dcspp_oramnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create table dcspp_item_price ( amount_info_id varchar2(40) not null, list_price number(19,7) null, raw_total_price number(19,7) null, sale_price number(19,7) null, on_sale number(1,0) null, order_discount number(19,7) null, qty_discounted number(19,0) null, qty_with_fraction_discounted number(19,7) null, qty_as_qualifier number(19,0) null, qty_with_fraction_as_qualifier number(19,7) null, price_list varchar2(40) null, discountable number(1) null ,constraint dcspp_item_price_p primary key (amount_info_id) ,constraint dcspp_itamnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id) ,constraint dcspp_item_price_c check (on_sale IN (0,1))); create table dcspp_tax_price ( amount_info_id varchar2(40) not null, city_tax number(19,7) null, county_tax number(19,7) null, state_tax number(19,7) null, country_tax number(19,7) null ,constraint dcspp_tax_price_p primary key (amount_info_id) ,constraint dcspp_taamnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create table dcspp_ship_price ( amount_info_id varchar2(40) not null, raw_shipping number(19,7) null ,constraint dcspp_ship_price_p primary key (amount_info_id) ,constraint dcspp_shamnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create table dcspp_amtinfo_adj ( amount_info_id varchar2(40) not null, adjustments varchar2(40) not null, sequence_num integer not null ,constraint dcspp_amtinfo_ad_p primary key (amount_info_id,sequence_num) ,constraint dcspp_amamnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create index amtinf_adj_aid_idx on dcspp_amtinfo_adj (amount_info_id); create index amtinf_adj_adj_idx on dcspp_amtinfo_adj (adjustments); create table dcspp_price_adjust ( adjustment_id varchar2(40) not null, version integer not null, adj_description varchar2(254) null, pricing_model varchar2(40) null, pricing_model_index number(10) null, pricing_model_group_index number(10) null, manual_adjustment varchar2(40) null, coupon_id varchar2(40) null, adjustment number(19,7) null, qty_adjusted integer null, qty_with_fraction_adjusted number(19,7) null ,constraint dcspp_price_adju_p primary key (adjustment_id)); create table dcspp_shipitem_sub ( amount_info_id varchar2(40) not null, shipping_group_id varchar2(42) not null, ship_item_subtotal varchar2(40) not null ,constraint dcspp_shipitem_s_p primary key (amount_info_id,shipping_group_id) ,constraint dcspp_sbamnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create index ship_item_sub_idx on dcspp_shipitem_sub (amount_info_id); create table dcspp_taxshipitem ( amount_info_id varchar2(40) not null, shipping_group_id varchar2(42) not null, tax_ship_item_sub varchar2(40) not null ,constraint dcspp_taxshipite_p primary key (amount_info_id,shipping_group_id) ,constraint dcspp_shamntxnfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create index tax_ship_item_idx on dcspp_taxshipitem (amount_info_id); create table dcspp_ntaxshipitem ( amount_info_id varchar2(40) not null, shipping_group_id varchar2(42) not null, non_tax_item_sub varchar2(40) not null ,constraint dcspp_ntaxshipit_p primary key (amount_info_id,shipping_group_id) ,constraint dcspp_ntamnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create index ntax_ship_item_idx on dcspp_ntaxshipitem (amount_info_id); create table dcspp_shipitem_tax ( amount_info_id varchar2(40) not null, shipping_group_id varchar2(42) not null, ship_item_tax varchar2(40) not null ,constraint dcspp_shipitem_t_p primary key (amount_info_id,shipping_group_id) ,constraint dcspp_txamnt_nfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create index ship_item_tax_idx on dcspp_shipitem_tax (amount_info_id); create table dcspp_itmprice_det ( amount_info_id varchar2(40) not null, cur_price_details varchar2(40) not null, sequence_num integer not null ,constraint dcspp_itmprice_d_p primary key (amount_info_id,sequence_num) ,constraint dcspp_sbamntnfd_f foreign key (amount_info_id) references dcspp_amount_info (amount_info_id)); create index itmprc_det_aii_idx on dcspp_itmprice_det (amount_info_id); create table dcspp_det_price ( amount_info_id varchar2(40) not null, tax number(19,7) null, order_discount number(19,7) null, order_manual_adj number(19,7) null, quantity number(19,0) null, quantity_with_fraction number(19,7) null, qty_as_qualifier number(19,0) null, qty_with_fraction_as_qualifier number(19,7) null ,constraint dcspp_det_price_p primary key (amount_info_id)); create table dcspp_det_range ( amount_info_id varchar2(40) not null, low_bound integer null, low_bound_with_fraction number(19,7) null, high_bound integer null, high_bound_with_fraction number(19,7) null ,constraint dcspp_det_range_p primary key (amount_info_id)); create table dcspp_order_adj ( order_id varchar2(40) not null, adjustment_id varchar2(40) not null, sequence_num integer not null ,constraint dcspp_order_adj_p primary key (order_id,sequence_num) ,constraint dcspp_oradj_d_f foreign key (order_id) references dcspp_order (order_id)); create index order_adj_orid_idx on dcspp_order_adj (order_id); create table dcspp_quote_info ( quote_info_id varchar2(40) not null, request_date timestamp null, expiration_date timestamp null, rejection_date timestamp null, requester_note varchar2(255) null, provider_note varchar2(255) null, rejection_note varchar2(255) null, external_id varchar2(40) null, agent_id varchar2(40) null, version integer not null ,constraint dcspp_quote_info_p primary key (quote_info_id)); create table dcspp_manual_adj ( manual_adjust_id varchar2(40) not null, type integer not null, adjustment_type integer not null, reason integer not null, amount number(19,7) null, notes varchar2(255) null, version integer not null ,constraint dcspp_manual_adj_p primary key (manual_adjust_id)); create table dbcpp_sched_order ( scheduled_order_id varchar2(40) not null, type integer not null, version integer not null, name varchar2(32) null, profile_id varchar2(40) null, create_date timestamp null, start_date timestamp null, end_date timestamp null, template_order varchar2(32) null, state integer null, next_scheduled timestamp null, schedule varchar2(255) null, site_id varchar2(40) null ,constraint dbcpp_sched_orde_p primary key (scheduled_order_id)); create index sched_tmplt_idx on dbcpp_sched_order (template_order); create index sched_profile_idx on dbcpp_sched_order (profile_id); create index sched_site_idx on dbcpp_sched_order (site_id); create table dbcpp_sched_clone ( scheduled_order_id varchar2(40) not null, cloned_order varchar2(40) not null, sequence_num integer not null ,constraint dbcpp_sched_clon_p primary key (scheduled_order_id,sequence_num) ,constraint dbcpp_scschedld__f foreign key (scheduled_order_id) references dbcpp_sched_order (scheduled_order_id)); create table dcspp_scherr_aux ( scheduled_order_id varchar2(40) not null, sched_error_id varchar2(40) not null ,constraint dcspp_scherr_aux_p primary key (scheduled_order_id)); create index sched_error_idx on dcspp_scherr_aux (sched_error_id); create table dcspp_sched_error ( sched_error_id varchar2(40) not null, error_date timestamp not null ,constraint dcspp_sched_err_p primary key (sched_error_id)); create table dcspp_schd_errmsg ( sched_error_id varchar2(40) not null, error_txt varchar2(254) not null, sequence_num integer not null ,constraint dcspp_schd_errs_p primary key (sched_error_id,sequence_num) ,constraint dcspp_sch_errs_f foreign key (sched_error_id) references dcspp_sched_error (sched_error_id)); create table dbcpp_approverids ( order_id varchar2(40) not null, approver_ids varchar2(40) not null, sequence_num integer not null ,constraint dbcpp_approverid_p primary key (order_id,sequence_num) ,constraint dbcpp_apordr_d_f foreign key (order_id) references dcspp_order (order_id)); create table dbcpp_authapprids ( order_id varchar2(40) not null, auth_appr_ids varchar2(40) not null, sequence_num integer not null ,constraint dbcpp_authapprid_p primary key (order_id,sequence_num) ,constraint dbcpp_atordr_d_f foreign key (order_id) references dcspp_order (order_id)); create table dbcpp_apprsysmsgs ( order_id varchar2(40) not null, appr_sys_msgs varchar2(254) not null, sequence_num integer not null ,constraint dbcpp_apprsysmsg_p primary key (order_id,sequence_num) ,constraint dbcpp_sysmordr_d_f foreign key (order_id) references dcspp_order (order_id)); create table dbcpp_appr_msgs ( order_id varchar2(40) not null, approver_msgs varchar2(254) not null, sequence_num integer not null ,constraint dbcpp_appr_msgs_p primary key (order_id,sequence_num) ,constraint dbcpp_msgordr_d_f foreign key (order_id) references dcspp_order (order_id)); create table dbcpp_invoice_req ( payment_group_id varchar2(40) not null, po_number varchar2(40) null, pref_format varchar2(40) null, pref_delivery varchar2(40) null, disc_percent number(19,7) null, disc_days integer null, net_days integer null, pmt_due_date date null ,constraint dbcpp_invoice_re_p primary key (payment_group_id) ,constraint dbcpp_inpaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create table dbcpp_cost_center ( cost_center_id varchar2(40) not null, type integer not null, version integer not null, costctr_class_type varchar2(40) null, identifier varchar2(40) null, amount number(19,7) null, order_ref varchar2(40) null ,constraint dbcpp_cost_cente_p primary key (cost_center_id)); create table dbcpp_order_cc ( order_id varchar2(40) not null, cost_centers varchar2(40) not null, sequence_num integer not null ,constraint dbcpp_order_cc_p primary key (order_id,sequence_num) ,constraint dbcpp_orordr_d_f foreign key (order_id) references dcspp_order (order_id)); create index order_cc_ordid_idx on dbcpp_order_cc (order_id); create table dbcpp_ccitem_rel ( relationship_id varchar2(40) not null, cost_center_id varchar2(40) null, commerce_item_id varchar2(40) null, quantity integer null, quantity_with_fraction number(19,7) null, amount number(19,7) null ,constraint dbcpp_ccitem_rel_p primary key (relationship_id) ,constraint dbcpp_ccreltnshp_f foreign key (relationship_id) references dcspp_relationship (relationship_id)); create index cirel_cstctr_idx on dbcpp_ccitem_rel (cost_center_id); create index cirel_item_idx on dbcpp_ccitem_rel (commerce_item_id); create table dbcpp_ccship_rel ( relationship_id varchar2(40) not null, cost_center_id varchar2(40) null, shipping_group_id varchar2(40) null, amount number(19,7) null ,constraint dbcpp_ccship_rel_p primary key (relationship_id) ,constraint dbcpp_shreltnshp_f foreign key (relationship_id) references dcspp_relationship (relationship_id)); create index csrel_cstctr_idx on dbcpp_ccship_rel (cost_center_id); create index csrel_shipgrp_idx on dbcpp_ccship_rel (shipping_group_id); create table dbcpp_ccorder_rel ( relationship_id varchar2(40) not null, cost_center_id varchar2(40) null, order_id varchar2(40) null, amount number(19,7) null ,constraint dbcpp_ccorder_re_p primary key (relationship_id) ,constraint dbcpp_odreltnshp_f foreign key (relationship_id) references dcspp_relationship (relationship_id)); create index corel_cstctr_idx on dbcpp_ccorder_rel (cost_center_id); create index corel_order_idx on dbcpp_ccorder_rel (order_id); create table dbcpp_pmt_req ( payment_group_id varchar2(40) not null, req_number varchar2(40) null ,constraint dbcpp_pmt_req_p primary key (payment_group_id) ,constraint dbcpp_pmpaymnt_g_f foreign key (payment_group_id) references dcspp_pay_group (payment_group_id)); create index pmtreq_req_idx on dbcpp_pmt_req (req_number); create table dcspp_appeasement ( appeasement_id varchar2(40) not null, order_id varchar2(40) not null, type varchar2(40) not null, status varchar2(40) null, creation_date timestamp not null, agent_id varchar2(40) null, profile_id varchar2(40) not null, origin_of_appeasement number(10) not null, reason_code varchar2(40) not null, comments varchar2(254) null, processed number(3) null, appeasement_amount number(19,7) not null ,constraint dcs_appeasement_p primary key (appeasement_id)); create table dcspp_appeasement_reasons ( id varchar2(40) not null, description varchar2(254) not null ,constraint appeasement_reasons_p primary key (id)); create table dcspp_appeasement_refund ( id varchar2(40) not null, type number(10) not null, amount number(19,7) null ,constraint appsmt_refund_p primary key (id)); create table dcspp_appeasement_refunds ( appeasement_id varchar2(40) not null, appeasement_refund_id varchar2(40) not null ,constraint appsmt_refunds_p primary key (appeasement_id,appeasement_refund_id) ,constraint appeasement_refund_d_f foreign key (appeasement_id) references dcspp_appeasement (appeasement_id) ,constraint appeasement_refund_m_f foreign key (appeasement_refund_id) references dcspp_appeasement_refund (id)); create index appsmt_refund_id on dcspp_appeasement_refunds (appeasement_refund_id); create table dcspp_appeasement_refund_cc ( appeasement_refund_id varchar2(40) not null, payment_group_id varchar2(40) not null ,constraint appsmt_refund_cc_p primary key (appeasement_refund_id) ,constraint appeasement_cc_m_f foreign key (appeasement_refund_id) references dcspp_appeasement_refund (id)); create table dcspp_appeasement_refund_sc ( appeasement_refund_id varchar2(40) not null, payment_group_id varchar2(40) null, sc_id varchar2(40) null ,constraint appsmt_refund_sc_p primary key (appeasement_refund_id) ,constraint appeasement_sc_m_f foreign key (appeasement_refund_id) references dcspp_appeasement_refund (id)); -- the source for this section is -- dcs_mappers.sql create table dcs_cart_event ( id varchar2(40) not null, timestamp timestamp null, orderid varchar2(40) null, itemid varchar2(40) null, sessionid varchar2(100) null, parentsessionid varchar2(100) null, quantity integer null, amount number(19,7) null, profileid varchar2(40) null); create table dcs_submt_ord_evt ( id varchar2(40) not null, clocktime timestamp null, orderid varchar2(40) null, profileid varchar2(40) null, sessionid varchar2(100) null, parentsessionid varchar2(100) null); create table dcs_prom_used_evt ( id varchar2(40) not null, clocktime timestamp null, orderid varchar2(40) null, profileid varchar2(40) null, sessionid varchar2(100) null, parentsessionid varchar2(100) null, promotionid varchar2(40) null, order_amount number(26,7) null, discount number(26,7) null); create table dcs_ord_merge_evt ( id varchar2(40) not null, clocktime timestamp null, sourceorderid varchar2(40) null, destorderid varchar2(40) null, profileid varchar2(40) null, sessionid varchar2(100) null, parentsessionid varchar2(100) null, sourceremoved number(1,0) null ,constraint dcs_ordmergeevt_ck check (sourceremoved in (0,1))); create table dcs_promo_rvkd ( id varchar2(40) not null, time_stamp timestamp null, promotionid varchar2(254) not null, profileid varchar2(254) not null, sessionid varchar2(100) null, parentsessionid varchar2(100) null); create table dcs_promo_grntd ( id varchar2(40) not null, time_stamp timestamp null, promotionid varchar2(254) not null, profileid varchar2(254) not null, sessionid varchar2(100) null, parentsessionid varchar2(100) null); -- the source for this section is -- claimable_ddl.sql create table dcspp_claimable ( claimable_id varchar2(40) not null, version integer not null, type integer not null, status integer null, start_date timestamp null, expiration_date timestamp null, last_modified timestamp null ,constraint dcspp_claimable_p primary key (claimable_id)); create table dcspp_giftcert ( giftcertificate_id varchar2(40) not null, amount double precision not null, amount_authorized double precision not null, amount_remaining double precision not null, purchaser_id varchar2(40) null, purchase_date timestamp null, last_used timestamp null ,constraint dcspp_giftcert_p primary key (giftcertificate_id) ,constraint dcspp_gigiftcrtf_f foreign key (giftcertificate_id) references dcspp_claimable (claimable_id)); create index claimable_user_idx on dcspp_giftcert (purchaser_id); create table dcs_storecred_clm ( store_credit_id varchar2(40) not null, amount number(19,7) not null, amount_authorized number(19,7) not null, amount_remaining number(19,7) not null, owner_id varchar2(40) null, issue_date timestamp null, expiration_date timestamp null, last_used timestamp null ,constraint dcs_storecred_cl_p primary key (store_credit_id) ,constraint dcs_storstor_crd_f foreign key (store_credit_id) references dcspp_claimable (claimable_id)); create index storecr_issue_idx on dcs_storecred_clm (issue_date); create index storecr_owner_idx on dcs_storecred_clm (owner_id); create table dcspp_cp_folder ( folder_id varchar2(40) not null, name varchar2(254) not null, parent_folder varchar2(40) null ,constraint dcspp_cp_folder_p primary key (folder_id) ,constraint dcspp_cp_prntfol_f foreign key (parent_folder) references dcspp_cp_folder (folder_id)); create index dcspp_prntfol_idx on dcspp_cp_folder (parent_folder); create table dcspp_coupon ( coupon_id varchar2(40) not null, promotion_id varchar2(40) not null ,constraint dcspp_coupon_p primary key (coupon_id,promotion_id) ,constraint dcspp_coupon_df foreign key (coupon_id) references dcspp_claimable (claimable_id)); create table dcspp_coupon_info ( coupon_id varchar2(40) not null, display_name varchar2(254) null, use_promo_site number(10) null, parent_folder varchar2(40) null, max_uses number(10) null, uses number(10) null ,constraint dcspp_copninfo_p primary key (coupon_id) ,constraint dcspp_copninfo_d_f foreign key (coupon_id) references dcspp_claimable (claimable_id) ,constraint dcspp_cpnifol_f foreign key (parent_folder) references dcspp_cp_folder (folder_id)); create index dcspp_folder_idx on dcspp_coupon_info (parent_folder); create table dcspp_coupon_batch ( id varchar2(40) not null, code_prefix varchar2(40) not null, number_of_coupons number(10) null, seed_value blob null, codes_generated number(1,0) not null ,constraint dcspp_batch_cp_pk primary key (id) ,constraint code_prefix_idx unique (code_prefix)); create table dcspp_batch_claimable ( coupon_id varchar2(40) not null, coupon_batch varchar2(40) null ,constraint dcs_batch_claim_pk primary key (coupon_id)); -- the source for this section is -- priceLists_ddl.sql create table dcs_price_list ( price_list_id varchar2(40) not null, version integer not null, display_name varchar2(254) null, description varchar2(254) null, creation_date timestamp null, last_mod_date timestamp null, start_date timestamp null, end_date timestamp null, locale number(10) null, base_price_list varchar2(40) null, item_acl varchar2(1024) null ,constraint dcs_price_list_p primary key (price_list_id) ,constraint dcs_pricbas_prcl_f foreign key (base_price_list) references dcs_price_list (price_list_id)); create index dcs_pricelstbase_i on dcs_price_list (base_price_list); create table dcs_complex_price ( complex_price_id varchar2(40) not null, version integer not null ,constraint dcs_complex_pric_p primary key (complex_price_id)); create table dcs_price ( price_id varchar2(40) not null, version integer not null, price_list varchar2(40) not null, product_id varchar2(40) null, sku_id varchar2(40) null, parent_sku_id varchar2(40) null, pricing_scheme integer not null, list_price number(19,7) null, complex_price varchar2(40) null, start_date timestamp null, end_date timestamp null ,constraint dcs_price_p primary key (price_id) ,constraint dcs_priccomplx_p_f foreign key (complex_price) references dcs_complex_price (complex_price_id) ,constraint dcs_pricpric_lst_f foreign key (price_list) references dcs_price_list (price_list_id)); create index dcs_cmplx_prc_idx on dcs_price (complex_price); create index dcs_price_idx1 on dcs_price (product_id); create index dcs_price_idx2 on dcs_price (price_list,sku_id); create table dcs_price_levels ( complex_price_id varchar2(40) not null, price_levels varchar2(40) not null, sequence_num integer not null ,constraint dcs_price_levels_p primary key (complex_price_id,sequence_num) ,constraint dcs_lvlscomplx_p_f foreign key (complex_price_id) references dcs_complex_price (complex_price_id)); create table dcs_price_level ( price_level_id varchar2(40) not null, version integer not null, quantity integer not null, price number(19,7) not null ,constraint dcs_price_level_p primary key (price_level_id)); create table dcs_gen_fol_pl ( folder_id varchar2(40) not null, type integer not null, name varchar2(40) not null, parent varchar2(40) null, description varchar2(254) null, item_acl varchar2(1024) null ,constraint dcs_gen_fol_pl_p primary key (folder_id)); create table dcs_child_fol_pl ( folder_id varchar2(40) not null, sequence_num integer not null, child_folder_id varchar2(40) not null ,constraint dcs_child_fol_pl_p primary key (folder_id,sequence_num) ,constraint dcs_chilfoldr_d_f foreign key (folder_id) references dcs_gen_fol_pl (folder_id)); create table dcs_plfol_chld ( plfol_id varchar2(40) not null, sequence_num integer not null, price_list_id varchar2(40) not null ,constraint dcs_plfol_chld_p primary key (plfol_id,sequence_num) ,constraint dcs_plfoplfol_d_f foreign key (plfol_id) references dcs_gen_fol_pl (folder_id)); -- the source for this section is -- order_markers_ddl.sql create table dcs_order_markers ( marker_id varchar2(40) not null, order_id varchar2(40) not null, marker_key varchar2(100) not null, marker_value varchar2(100) null, marker_data varchar2(100) null, creation_date timestamp null, version number(10) not null, marker_type number(10) null ,constraint dcsordermarkers_p primary key (marker_id,order_id) ,constraint dcsordermarkers_f foreign key (order_id) references dcspp_order (order_id)); create index dcs_ordrmarkers1_x on dcs_order_markers (order_id); create table dcs_gwp_order_markers ( marker_id varchar2(40) not null, order_id varchar2(40) not null, marker_key varchar2(100) not null, marker_value varchar2(100) null, marker_data varchar2(100) null, creation_date timestamp null, version number(10) not null, marker_type number(10) null, gift_type varchar2(100) not null, gift_detail clob not null, auto_remove number(3) not null, quantity number(10) not null, quantity_with_fraction number(19,7) not null, targeted_quantity number(10) not null, targeted_qty_with_fraction number(19,7) not null, automatic_quantity number(10) not null, automatic_qty_with_fraction number(19,7) not null, selected_quantity number(10) not null, selected_qty_with_fraction number(19,7) not null, removed_quantity number(10) not null, removed_qty_with_fraction number(19,7) not null, failed_quantity number(10) not null, failed_qty_with_fraction number(19,7) not null ,constraint dcsgwpomarkers_p primary key (marker_id) ,constraint dcsgwpomarkers_f foreign key (order_id) references dcspp_order (order_id)); create index dcs_gwpomarkers1_x on dcs_gwp_order_markers (order_id); create table dcspp_commerce_item_markers ( marker_id varchar2(40) not null, commerce_item_id varchar2(40) not null, marker_key varchar2(100) not null, marker_value varchar2(100) null, marker_data varchar2(100) null, creation_date timestamp null, version number(10) not null, marker_type number(10) null ,constraint dcscitemmarkers_p primary key (marker_id,commerce_item_id) ,constraint dcscitemmarkers_f foreign key (commerce_item_id) references dcspp_item (commerce_item_id)); create index dcs_itemmarkers1_x on dcspp_commerce_item_markers (commerce_item_id); create table dcspp_gwp_item_markers ( marker_id varchar2(40) not null, commerce_item_id varchar2(40) not null, marker_key varchar2(100) not null, marker_value varchar2(100) null, marker_data varchar2(100) null, creation_date timestamp null, version number(10) not null, marker_type number(10) null, targeted_quantity number(10) not null, targeted_qty_with_fraction number(19,7) not null, automatic_quantity number(10) not null, automatic_qty_with_fraction number(19,7) not null, selected_quantity number(10) not null, selected_qty_with_fraction number(19,7) not null, remaining_quantity number(10) not null, remaining_qty_with_fraction number(19,7) not null ,constraint dcsgwpimarkers_p primary key (marker_id) ,constraint dcsgwpimarkers_f foreign key (commerce_item_id) references dcspp_item (commerce_item_id)); create index dcs_gwpimarkers1_x on dcspp_gwp_item_markers (commerce_item_id); -- the source for this section is -- commerce_site_ddl.sql -- This file contains create table statements, which will configureyour database for use MultiSite create table dcs_site ( id varchar2(40) not null, catalog_id varchar2(40) null, list_pricelist_id varchar2(40) null, sale_pricelist_id varchar2(40) null, max_num_coupons number(10) null, max_num_coupons_per_order number(10) null ,constraint dcs_site_p primary key (id)); -- the source for this section is -- custom_catalog_reporting.sql -- new drpt_products compiles information about each product in the catalog new create or replace view drpt_products as select p.product_id as product_id, 'N/A' as category_name, avg(s.wholesale_price) as avg_cost, avg(s.list_price) as avg_list_price, avg(s.sale_price) as avg_sale_price, ((avg(s.list_price) - avg(s.wholesale_price)) / avg(s.wholesale_price)) as avg_initial_markup, sum(inv.stock_level) as units_on_hand, count(s.sku_id) as number_of_skus from dcs_product p, dcs_sku s, dcs_prd_chldsku pc, dcs_inventory inv where p.product_id = pc.product_id and pc.sku_id = s.sku_id and pc.sku_id = inv.catalog_ref_id group by p.product_id ; -- new drpt_category calculates statistics about prices and costs on a per-category basis new create or replace view drpt_category as select ctlg.display_name as catalog_name, c.display_name as category_name, c.category_id as category_id, avg(s.wholesale_price)as avg_cost, avg(s.list_price) as avg_list_price, avg(s.sale_price) as avg_sale_price, ((avg(s.list_price) - avg(s.wholesale_price)) / avg(s.wholesale_price)) as avg_initial_markup, sum(inv.stock_level) as units_on_hand, count(s.sku_id) as number_of_skus from dcs_catalog ctlg, dcs_category c, dcs_sku s, dcs_prd_chldsku pc, dcs_product_info pi, dcs_prd_prdinfo ppi, dcs_inventory inv where c.category_id = pi.parent_cat_id and pc.product_id = ppi.product_id and pc.sku_id = s.sku_id and ctlg.catalog_id = c.catalog_id and pc.sku_id = s.sku_id and ppi.catalog_id = ctlg.catalog_id and ppi.product_info_id = pi.product_info_id and pc.sku_id = inv.catalog_ref_id group by c.display_name, ctlg.display_name, c.category_id ; -- the source for this section is -- order_returns_ddl.sql create table csr_exch ( id varchar2(40) not null, order_id varchar2(40) not null, created_date timestamp not null, status varchar2(40) not null, rma varchar2(40) null, repl_order_id varchar2(40) null, bal_pmt_id varchar2(40) null, sugg_tax_refund number(19,7) not null, actl_tax_refund number(19,7) not null, sugg_ship_refund number(19,7) not null, actl_ship_refund number(19,7) not null, other_refund number(19,7) not null, sc_recipient varchar2(40) null, proc_immed number(1,0) not null, processed number(1,0) not null, origin_of_return number(10) not null, agent_id varchar2(40) null ,constraint csr_exch_p primary key (id) ,constraint csr_exchordr_d_f foreign key (order_id) references dcspp_order (order_id) ,constraint csr_exch1_c check (proc_immed in (0,1)) ,constraint csr_exch2_c check (processed in (0,1))); create index csr_exchorder_id on csr_exch (order_id); create table csr_exch_cmts ( comment_id varchar2(40) not null, return_id varchar2(40) not null, agent_id varchar2(40) null, comment_data varchar2(254) not null, creation_date timestamp null, version number(10) not null ,constraint csrexchcmmt_p primary key (comment_id,return_id) ,constraint csrexchcmmt_f foreign key (return_id) references csr_exch (id)); create index csrexchcmmt1_x on csr_exch_cmts (return_id); create table csr_exch_reasons ( id varchar2(40) not null, description varchar2(254) not null ,constraint csr_exch_reasons_p primary key (id)); create table csr_exch_item_disp ( id varchar2(40) not null, description varchar2(254) not null, upd_inventory number(1,0) not null ,constraint csr_exchitem_dis_p primary key (id) ,constraint csr_exchitem_dis_c check (upd_inventory in (0,1))); create table csr_return_fee ( exchange_id varchar2(40) not null, return_fee number(19,7) not null ,constraint csr_return_fee_p primary key (exchange_id) ,constraint csr_rfexchng_d_f foreign key (exchange_id) references csr_exch (id)); create table csr_exch_item ( id varchar2(40) not null, commerce_item_id varchar2(40) not null, shipping_group_id varchar2(40) not null, quantity_to_return number(19,0) not null, qty_with_fraction_to_return number(19,7) null, quantity_to_repl number(19,0) not null, qty_with_fraction_to_repl number(19,7) null, reason varchar2(40) not null, ret_shipment_req number(1,0) not null, quantity_received number(19,0) not null, qty_with_fraction_received number(19,7) null, disposition varchar2(40) null, refund_amount number(19,7) not null, status varchar2(40) not null, exch_ref varchar2(40) not null, sugg_ship_refund number(19,7) not null, actl_ship_refund number(19,7) not null, sugg_tax_refund number(19,7) not null, actl_tax_refund number(19,7) not null ,constraint csr_exch_item_p primary key (id) ,constraint csr_exchtmdspstn_f foreign key (disposition) references csr_exch_item_disp (id) ,constraint csr_exchtmresn_f foreign key (reason) references csr_exch_reasons (id) ,constraint csr_exchtshippng_f foreign key (shipping_group_id) references dcspp_ship_group (shipping_group_id) ,constraint csr_exch_item1_c check (ret_shipment_req in (0,1))); create index csr_exch_itemdisp on csr_exch_item (disposition); create index csr_exch_itmreason on csr_exch_item (reason); create index csr_exch_itmshpgrp on csr_exch_item (shipping_group_id); create table csr_exch_items ( exchange_id varchar2(40) not null, exchange_item_id varchar2(40) not null ,constraint csr_exch_items_p primary key (exchange_id,exchange_item_id) ,constraint csr_exchtxchng_d_f foreign key (exchange_id) references csr_exch (id) ,constraint csr_exchtxchng_t_f foreign key (exchange_item_id) references csr_exch_item (id)); create index csr_exch_exch_itm on csr_exch_items (exchange_item_id); create table csr_exch_method ( id varchar2(40) not null, type integer not null, amount number(19,7) null ,constraint csr_exch_method_p primary key (id)); create table csr_exch_methods ( exchange_id varchar2(40) not null, exchange_method_id varchar2(40) not null ,constraint csr_exch_methods_p primary key (exchange_id,exchange_method_id) ,constraint csr_exchmxchng_d_f foreign key (exchange_id) references csr_exch (id) ,constraint csr_exchmxchng_m_f foreign key (exchange_method_id) references csr_exch_method (id)); create index csr_exch_method_id on csr_exch_methods (exchange_method_id); create table csr_cc_exch_method ( exchange_method_id varchar2(40) not null, payment_group_id varchar2(40) not null ,constraint csr_cc_exch_mthd_p primary key (exchange_method_id) ,constraint csr_ccexcxchng_m_f foreign key (exchange_method_id) references csr_exch_method (id)); create table csr_sc_exch_method ( exchange_method_id varchar2(40) not null, payment_group_id varchar2(40) null, sc_id varchar2(40) null ,constraint csr_sc_exch_mthd_p primary key (exchange_method_id) ,constraint csr_scexcxchng_m_f foreign key (exchange_method_id) references csr_exch_method (id)); create table csr_exch_ipromos ( exchange_id varchar2(40) not null, promotion_id varchar2(40) not null ,constraint csrexchipromos_p primary key (exchange_id,promotion_id) ,constraint csr_ex_ipromos_f foreign key (exchange_id) references csr_exch (id)); create table csr_exch_opromos ( exchange_id varchar2(40) not null, promotion_id varchar2(40) not null ,constraint csrexchopromos_p primary key (exchange_id,promotion_id) ,constraint csr_ex_opromos_f foreign key (exchange_id) references csr_exch (id)); create table csr_promo_adjust ( exchange_id varchar2(40) not null, promotion_id varchar2(40) not null, value_adjust number(19,7) not null ,constraint csrpromoadjust_p primary key (exchange_id,promotion_id) ,constraint csr_promo_adj_f foreign key (exchange_id) references csr_exch (id)); create table csr_nonreturn_adj ( exchange_id varchar2(40) not null, ica_id varchar2(40) not null ,constraint csr_nr_adj_p primary key (exchange_id,ica_id) ,constraint csr_nr_adj_f foreign key (exchange_id) references csr_exch (id)); create table csr_item_adj ( ica_id varchar2(40) not null, type integer null, commerce_item_id varchar2(40) null, shipping_group_id varchar2(40) null, quantity_adj number(19,0) not null, quantity_with_fraction_adj number(19,7) null, amount_adj number(19,7) null, ods_adj number(19,7) null, mas_adj number(19,7) null, tax_adj number(19,7) null, shipping_adj number(19,7) null ,constraint csritemadj_p primary key (ica_id)); -- the source for this section is -- dcs_content_mgmt_ddl.sql -- This file contains create table statements, which will configure your database for use with the Content Management schema. create table dcs_wcm_media_rltd_prod ( media_id varchar2(40) not null, sequence_num integer not null, related_product_id varchar2(40) not null ,constraint wcm_media_rltd_product_p primary key (media_id,sequence_num) ,constraint wcm_media_rltd_product1_f foreign key (media_id) references wcm_media_content (id) ,constraint wcm_media_rltd_product2_f foreign key (related_product_id) references dcs_product (product_id)); create index wcm_media_rltd_product_idx on dcs_wcm_media_rltd_prod (related_product_id); create table dcs_wcm_media_rltd_ctgy ( media_id varchar2(40) not null, sequence_num integer not null, related_category_id varchar2(40) not null ,constraint wcm_media_rltd_category_p primary key (media_id,sequence_num) ,constraint wcm_media_rltd_category1_f foreign key (media_id) references wcm_media_content (id) ,constraint wcm_media_rltd_category_f foreign key (related_category_id) references dcs_category (category_id)); create index wcm_media_rltd_category_idx on dcs_wcm_media_rltd_ctgy (related_category_id); create table dcs_wcm_article_rltd_prod ( article_id varchar2(40) not null, sequence_num integer not null, related_product_id varchar2(40) not null ,constraint wcm_article_rltd_product_p primary key (article_id,sequence_num) ,constraint wcm_article_rltd_product1_f foreign key (article_id) references wcm_article (id) ,constraint wcm_article_rltd_product2_f foreign key (related_product_id) references dcs_product (product_id)); create index wcm_article_rltd_product_idx on dcs_wcm_article_rltd_prod (related_product_id); create table dcs_wcm_article_rltd_ctgy ( article_id varchar2(40) not null, sequence_num integer not null, related_category_id varchar2(40) not null ,constraint wcm_article_rltd_category_p primary key (article_id,sequence_num) ,constraint wcm_article_rltd_category1_f foreign key (article_id) references wcm_article (id) ,constraint wcm_article_rltd_category2_f foreign key (related_category_id) references dcs_category (category_id)); create index wcm_article_rltd_category_idx on dcs_wcm_article_rltd_ctgy (related_category_id); -- the source for this section is -- dcs_backing_maps_ddl.sql -- Tables for backing maps for item descriptors enables for dynamic properties in product catalog repository create table dcs_dyn_prop_map_str ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value varchar2(400) null ,constraint dcs_dyn_prop_map_str_p primary key (id,prop_name)); create table dcs_dyn_prop_map_big_str ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value clob null ,constraint dcs_dyn_prop_map_big_str_p primary key (id,prop_name)); create table dcs_dyn_prop_map_double ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value number(19,7) null ,constraint dcs_dyn_prop_map_double_p primary key (id,prop_name)); create table dcs_dyn_prop_map_long ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value number(19) null ,constraint dcs_dyn_prop_map_long_p primary key (id,prop_name)); -- Tables for backing maps for sku item descriptor create table dcs_sku_dyn_prop_map_str ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value varchar2(400) null ,constraint dcs_sku_dyn_prop_map_str_p primary key (id,prop_name)); create table dcs_sku_dyn_prop_map_big_str ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value clob null ,constraint dcs_sku_dynmc_prp_mp_bg_str_p primary key (id,prop_name)); create table dcs_sku_dyn_prop_map_double ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value number(19,7) null ,constraint dcs_sku_dyn_prp_mp_dbl_p primary key (id,prop_name)); create table dcs_sku_dyn_prop_map_long ( id varchar2(40) not null, prop_name varchar2(254) not null, prop_value number(19) null ,constraint dcs_sku_dyn_prp_mp_lng_p primary key (id,prop_name)); -- the source for this section is -- abandoned_order_ddl.sql -- $Id: //product/DCS/version/11.2/templates/DCS/AbandonedOrderServices/sql/abandoned_order_ddl.xml#1 $ create table dcspp_ord_abandon ( abandonment_id varchar2(40) not null, version number(10) not null, order_id varchar2(40) not null, ord_last_updated timestamp null, abandon_state varchar2(40) null, abandonment_count number(10) null, abandonment_date timestamp null, reanimation_date timestamp null, convert_date timestamp null, lost_date timestamp null ,constraint dcspp_ord_abndn_p primary key (abandonment_id)); create index dcspp_ordabandn1_x on dcspp_ord_abandon (order_id); create table dcs_user_abandoned ( id varchar2(40) not null, order_id varchar2(40) not null, profile_id varchar2(40) not null ,constraint dcs_usr_abndnd_p primary key (id)); create table drpt_conv_order ( order_id varchar2(40) not null, converted_date timestamp not null, amount number(19,7) not null, promo_count number(10) not null, promo_value number(19,7) not null ,constraint drpt_conv_order_p primary key (order_id)); create table drpt_session_ord ( dataset_id varchar2(40) not null, order_id varchar2(40) not null, date_time timestamp not null, amount number(19,7) not null, submitted number(10) not null, order_persistent number(1) null, session_id varchar2(40) null, parent_session_id varchar2(40) null ,constraint drpt_session_ord_p primary key (order_id)); -- the source for this section is -- abandoned_order_views.sql create or replace view drpt_abandon_ord as select oa.abandonment_date as abandonment_date, ai.amount as amount, decode(oa.abandon_state, 'CONVERTED', 100, 0) as converted from dcspp_order o, dcspp_ord_abandon oa, dcspp_amount_info ai where oa.order_id=o.order_id and o.price_info=ai.amount_info_id ; create or replace view drpt_tns_abndn_ord as select date_time as abandonment_date, amount as amount from drpt_session_ord where submitted=0 ;
insert into jobseeker (name, fb_id, email_address, phone_number, location, uid) values ('John Doe', 'fakefbid', 'jdoe@gmail.com', '4163557894', 'Mississauga, ON', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11') ON CONFLICT DO NOTHING; insert into jobseeker (name, fb_id, email_address, phone_number, location, uid) values ('Walter Black', 'fakefbid111', 'wblack@gmail.com', '4163531139', 'Toronto, ON', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a22') ON CONFLICT DO NOTHING; insert into jobseeker (name, fb_id, email_address, phone_number, location) values ('Jack Ryan', 'morefakefbid222', 'jryank@gmail.com', '306-515-8868', 'Toronto, ON') ON CONFLICT DO NOTHING;
CREATE TABLE students ( id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, email VARCHAR(255) NULL, date_of_birth DATETIME NOT NULL, sex ENUM('male', 'female') NOT NULL, group_name VARCHAR(255) NOT NULL, faculty_name VARCHAR(255) NOT NULL ); INSERT INTO mini_mvc.students (first_name, last_name, email, date_of_birth, sex, group_name, faculty_name) VALUES ('John', 'Doe', 'doe@gmail.com' , '2008-07-04 00:00:00', 'male', 'XZ-1', 'Gryffindor'), ('Super', 'Woman', 'your_super_woman@gmail.com', '2009-08-05 00:00:00', 'female', 'YY-2', 'Ravenclaw'), ('Extra', 'Person', 'something@extra.com', '2009-08-05 00:00:00', 'female', 'XY-2', 'Slytherin');
alter table ACT_RU_EXECUTION add CALLBACK_ID_ nvarchar(255); alter table ACT_RU_EXECUTION add CALLBACK_TYPE_ nvarchar(255); update ACT_GE_PROPERTY set VALUE_ = '6.2.0.0' where NAME_ = 'schema.version';
/* role์ด๋ž€? ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด๋‹ค ํšจ์œจ์ ์œผ๋กœ ๊ถŒํ•œ์„ ๋ถ€์—ฌํ•  ์ˆ˜ ์žˆ๋„๋ก ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๊ถŒํ•œ ์„ ๋ฌถ์–ด ๋†“์€ ๊ฒƒ์„ ๋งํ•œ๋‹ค. ์‚ฌ์šฉ์ž๋ฅผ ์ƒ์„ฑํ•˜๋ฉด ๋ฐ”๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ๊ฐ์ข… ๊ถŒํ•œ์„ ๋ถ€์—ฌํ•ด์•ผ ํ•˜๋Š”๋ฐ role์„ ํ†ตํ•ด์„œ ์† ์‰ฝ๊ฒŒ ๋‹ค์–‘ํ•œ ๊ถŒํ•œ์„ ํ•œ๋ฒˆ์— ๋ถ€์—ฌ ํ•  ์ˆ˜ ์žˆ๋‹ค.. ๋กค์˜ ์ข…๋ฅ˜ 1. connect ๋กค ์ฃผ๋กœ ์‚ฌ์šฉ์ž๊ฐ€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ ‘์†ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ๊ธฐ๋ณธ์ ์ธ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ๊ถŒํ•œ์ด๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค. ex) ALTER SESSION, CREATE CLUSTER, CREATE DATABASE LINK, CREATE SEQUENCE, CREATE SESSION, CREATE SYNONYM, CREATE TABLE, CREATE VIEW 2. resource ๋กค ์‚ฌ์šฉ์ž๊ฐ€ ๊ฐ์ฒด(ํ…Œ์ด๋ธ”, ๋ทฐ, ์ธ๋ฑ ๋“ฑ)๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ถŒํ•œ์„ ๋ฌถ๋Š” ๊ฒƒ์„ ๋งํ•œ๋‹ค. create cluster, create procedure, create equence, create table, create trigger 3. dba ๋กค ์‚ฌ์šฉ์ž๊ฐ€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ฐ์ฒด๋ฅผ ๊ด€๋ฆฌํ•˜๊ณ  ์‚ฌ์šฉ์ž๋“ค์„ ์ž‘์„ฑํ•˜๊ณ  ๋ณ€๊ฒฝ์ œ๊ฑฐ ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ•๋ ฅํ•œ ๊ถŒํ•œ์˜ ๋กค์„ ๋งํ•œ๋‹ค. ๋กค์˜ ํ™œ์šฉ ์ˆœ์„œ 1. ๋กค์„ ์ƒ์„ฑ(๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ด€๋ฆฌ์ž) ํ˜•์‹) create role ๋กค์˜ ์ด๋ฆ„.. ex) create role roleexp01; 2. ๋กค์— ๊ถŒํ•œ ๋ถ€์—ฌ ํ˜•์‹) grant ๊ถŒํ•œ1, ๊ถŒํ•œ2, ๊ถŒํ•œ3 to ๋กค์˜ ์ด๋ฆ„ ex) grant create session, create table, create view to roleexp01; 3. ##์‚ฌ์šฉ์ž์— ๋กค์„ ๋ถ€์—ฌ. ํ˜•์‹) grant ๋กค์ด๋ฆ„ to ์‚ฌ์šฉ์ž ex) grant roleexp01 to scott01; */
-- primary_column ํ…Œ์ด๋ธ”์˜ ์ž์‹ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑ. -- id๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ถ€๊ฐ€์ ์ธ ์ •๋ณด๋ฅผ ๋” ์ €์žฅํ•  ๋•Œ. -- ์ž์‹ํ…Œ์ด๋ธ”์˜ ์ปฌ๋Ÿผ๋ช…๊ณผ ๋ฐ์ดํ„ฐํ˜•์˜ ํฌ๊ธฐ๋Š” ๋‹ฌ๋ผ๋„ ๋œ๋‹ค. select * from PRIMARY_TABLE; select * from FOREIGN_COLUMN; create table foreign_column( id varchar2(20) constraint fk_id references primary_column(id) on delete cascade, subject varchar2(30), score number(3) ); select * from user_constraints where constraint_type = 'R'; ------- 1. ์ถ”๊ฐ€์„ฑ๊ณต. --(1) ๋ถ€๋ชจํ…Œ์ด๋ธ”์— ์กด์žฌํ•˜๋Š” ๊ฐ’์œผ๋กœ ๋ ˆ์ฝ”๋“œ๊ฐ€ ์ถ”๊ฐ€๋  ๋•Œ. insert into foreign_column (id, subject, score) values ('han','์ž๋ฐ”','90'); insert into foreign_column (id, subject, score) values ('han','์˜ค๋ผํด','95'); select * from foreign_column; -- (2) null ์ž…๋ ฅ ํ—ˆ์šฉ. insert into foreign_column(id, subject, score) values ('','์˜ค๋ผํด','95'); ------- 2. ์ถ”๊ฐ€ ์‹คํŒจ. -- (1) ๋ถ€๋ชจํ…Œ์ด๋ธ”์— ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๊ฐ’์œผ๋กœ ์ถ”๊ฐ€ํ•  ๋•Œ. insert into foreign_column(id, subject, score) values('han2','์˜ค๋ผํด','95'); ------- 3. ๋ ˆ์ฝ”๋“œ ์‚ญ์ œ. -- ์ž์‹ ํ…Œ์ด๋ธ”์˜ ๋ ˆ์ฝ”๋“œ๋Š” ๊ทธ๋ƒฅ ์‚ญ์ œ๋œ๋‹ค. -- ๋ถ€๋ชจ ํ…Œ์ด๋ธ”์˜ ๋ ˆ์ฝ”๋“œ๋Š” ์ž์‹ ํ…Œ์ด๋ธ”์˜ ๋ ˆ์ฝ”๋“œ๊ฐ€ ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ์—” ์‚ญ์ œ๋˜์ง€ ์•Š๋Š”๋‹ค. -- han1 ์•„์ด๋””๋Š” ์ฐธ์กฐํ•˜๋Š” ๋ ˆ์ฝ”๋“œ๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ๋ฐ”๋กœ ์‚ญ์ œ๋œ๋‹ค. delete from primary_column where id='han1'; -- han ์•„์ด๋””๋Š” ์ฐธ์กฐํ•˜๋Š” ๋ ˆ์ฝ”๋“œ๊ฐ€ ์กด์žฌํ•˜๋ฏ€๋กœ ์‚ญ์ œ๋˜์ง€ ์•Š๋Š”๋‹ค. delete from primary_column where id='han'; -- ์‚ญ์ œํ•˜๋ ค๋ฉด ์ž์‹ ๋ ˆ์ฝ”๋“œ๋ฅผ ๋ชจ๋‘ ์‚ญ์ œ ํ›„ ๋ถ€๋ชจํ…Œ์ด๋ธ”์˜ ๋ ˆ์ฝ”๋“œ๋ฅผ ์‚ญ์ œํ•œ๋‹ค. delete from foreign_column where id='han'; delete from primary_column where id='han'; select * from PRIMARY_COLUMN; select * from FOREIGN_COLUMN; rollback; ----------------------------- ํ…Œ์ด๋ธ” ๋‹จ์œ„ ์ œ์•ฝ ์‚ฌํ•ญ------------------------------ -- ์ž์‹ํ…Œ์ด๋ธ”์ด ์ปฌ๋Ÿผ๋ช…๊ณผ ๋ฐ์ดํ„ฐํ˜•์˜ ํฌ๊ธฐ๋Š” ๋‹ฌ๋ผ๋„ ๋œ๋‹ค. create table foreign_table( r_id varchar2(30), subject varchar2(20), score number(3), constraints fk_r_id foreign key(r_id) references primary_table(id) ); select * from user_constraints; select * from FOREIGN_TABLE; select * from PRIMARY_TABLE;
create table nts_user_company ( id bigint auto_increment primary key, user_id bigint null, company_id bigint null ) charset = utf8mb4; create index index_company_id on nts_user_company (company_id); create index index_user_id on nts_user_company (user_id); INSERT INTO coldchain_user.nts_user_company (id, user_id, company_id) VALUES (1, 2, 1); INSERT INTO coldchain_user.nts_user_company (id, user_id, company_id) VALUES (2, 2, 2); INSERT INTO coldchain_user.nts_user_company (id, user_id, company_id) VALUES (3, 30, 3);
/* DDL (Data Definition Language) : ๋ฐ์ดํ„ฐ ์ •์˜ ์–ธ์–ด(โ˜…โ˜…โ˜…โ˜…โ˜…) - ๊ฐ์ฒด(OBJECT)๋ฅผ ๋งŒ๋“ค๊ณ (CREATE), ์ˆ˜์ •(ALTER), ์‚ญ์ œ(DROP) ํ•˜๋Š” ๋“ฑ ๋ฐ์ดํ„ฐ ์ „์ฒด ๊ตฌ์กฐ๋ฅผ ์ •์˜ํ•˜๋Š” ์–ธ์–ด๋กœ ์ฃผ๋กœ DB๊ด€๋ฆฌ์ž, ์„ค๊ณ„์ž๊ฐ€ ์‚ฌ์šฉํ•จ - ์˜ค๋ผํด์—์„œ ๋งํ•˜๋Š” ๊ฐ์ฒด : TABLE, VIEW, SEQUENCE, INDEX, PACKAGE, TRIGGER, PROCEDURE, FUNCTION, SYNONYM(๋™์˜์–ด), USER -------------------------------------------------------------------------------- CREATE - ํ…Œ์ด๋ธ”์ด๋‚˜ ๋ทฐ, ์ธ๋ฑ์Šค ๋“ฑ ๋‹ค์–‘ํ•œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๊ตฌ๋ฌธ - 1. ํ…Œ์ด๋ธ” ์ƒ์„ฑํ•˜๊ธฐ - ํ…Œ์ด๋ธ”(TABLE)์ด๋ž€? (โ˜…โ˜…โ˜…) -- ํ–‰(ROW)๊ณผ ์—ด(COLUMN)๋กœ ๊ตฌ์„ฑ๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ ๊ฐ์ฒด -- ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋‚ด์—์„œ ๋ชจ๋“  ๋ฐ์ดํ„ฐ๋Š” ํ…Œ์ด๋ธ”์„ ํ†ตํ•ด ์ €์žฅ๋จ - ํ…Œ์ด๋ธ” ์ƒ์„ฑ SQL๊ตฌ๋ฌธ ์ž‘์„ฑ๋ฒ• CREATE TABLE ํ…Œ์ด๋ธ”๋ช…( ์ปฌ๋Ÿผ๋ช… ๋ฐ์ดํ„ฐํƒ€์ž…(ํฌ๊ธฐ|์ž๋ฆฟ์ˆ˜), ์ปฌ๋Ÿผ๋ช… ๋ฐ์ดํ„ฐํƒ€์ž…(ํฌ๊ธฐ|์ž๋ฆฟ์ˆ˜), ... ); */ -- CHAR : ๊ณ ์ •๊ธธ์ด ๋ฌธ์ž ์ž๋ฃŒํ˜•(2000 BYTE) --> ์ง€์ •๋œ ๋ฐ”์ดํŠธ๋ณด๋‹ค ์ ์€ ์–‘์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์ €์žฅ๋˜์–ด๋„ -- ๋‚จ์€ ์šฉ๋Ÿ‰์„ ๋ฐ˜ํ™˜ํ•˜์ง€ ์•Š์Œ -- VARCHAR : ๊ฐ€๋ณ€๊ธธ์ด ๋ฌธ์ž ์ž๋ฃŒํ˜•(2000 BYTE) --> ์ง€์ •๋œ ๋ฐ”์ดํŠธ ๋ณด๋‹ค ์ ์€ ์–‘์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์ €์žฅ๋œ ๊ฒฝ์šฐ -- ๋‚จ์€ ํฌ๊ธฐ(์šฉ๋Ÿ‰) ๋ฐ˜ํ™˜ -- VARCHAR2 : 4000 BYTE ๊ฐ€๋ณ€๊ธธ์ด ๋ฌธ์ž ์ž๋ฃŒํ˜• -- ๋ฌธ์žํ˜• ๋ฐ์ดํ„ฐ๋ฅผ 30๋ฐ”์ดํŠธ ๊นŒ์ง€ ์ €์žฅํ•  ์ˆ˜ ์žˆ๋Š” MEMBER_ID ์ปฌ๋Ÿผ CREATE TABLE MEMBER( MEMBER_ID VARCHAR2(30), MEMBER_PWD VARCHAR2(30), MEMBER_NAME VARCHAR2(20), MEMBER_SSN CHAR(14), ENROLL_DATE DATE DEFAULT SYSDATE ); -- DEFAULT SYSDATE : ์ž…๋ ฅ๋˜๋Š” ๊ฐ’์ด ์—†๊ฑฐ๋‚˜ DEFAULT๊ฐ€ ์ž…๋ ฅ๋œ ๊ฒฝ์šฐ ํ˜„์žฌ ์‹œ๊ฐ„์„ ๊ธฐ๋กํ•ด๋ผ -- MEMBER ํ…Œ์ด๋ธ” ์ƒ์„ฑ ํ™•์ธ SELECT * FROM MEMBER; -- 2. ์ปฌ๋Ÿผ์— ์ฝ”๋ฉ˜ํŠธ(์ฃผ์„) ๋‹ฌ๊ธฐ -- [์ž‘์„ฑ๋ฒ•] -- COMMENT ON COLUMN ํ…Œ์ด๋ธ”๋ช….์ปฌ๋Ÿผ๋ช… IS '์ฃผ์„๋‚ด์šฉ'; COMMENT ON COLUMN MEMBER.MEMBER_ID IS 'ํšŒ์›์•„์ด๋””'; COMMENT ON COLUMN MEMBER.MEMBER_PWD IS 'ํšŒ์›๋น„๋ฐ€๋ฒˆํ˜ธ'; COMMENT ON COLUMN MEMBER.MEMBER_NAME IS 'ํšŒ์›์ด๋ฆ„'; COMMENT ON COLUMN MEMBER.MEMBER_SSN IS '์ฃผ๋ฏผ๋“ฑ๋ก๋ฒˆํ˜ธ'; COMMENT ON COLUMN MEMBER.ENROLL_DATE IS 'ํšŒ์›๊ฐ€์ž…์ผ'; -- ์‚ฌ์šฉ์ž๊ฐ€ ์ƒ์„ฑํ•œ ํ…Œ์ด๋ธ” ์ƒ์„ฑ ํ™•์ธ SELECT * FROM USER_TABLES; -- ๋”•์…”๋„ˆ๋ฆฌ ๋ทฐ(Dictionary View) -- USER_TABLES : ์‚ฌ์šฉ์ž๊ฐ€ ์ž‘์„ฑํ•œ ํ…Œ์ด๋ธ”์„ ํ™•์ธํ•˜๋Š” ๋ทฐ(๊ฐ€์ƒ์˜ ํ…Œ์ด๋ธ”) /* Data Dictionary(๋ฐ์ดํ„ฐ ๋”•์…”๋„ˆ๋ฆฌ)(โ˜…โ˜…โ˜…โ˜…โ˜…) - ์ž์›์„ ํšจ์œจ์ ์œผ๋กœ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ๋‹ค์–‘ํ•œ ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๋Š” ์‹œ์Šคํ…œ ํ…Œ์ด๋ธ” - ๋ฐ์ดํ„ฐ ๋”•์…”๋„ˆ๋ฆฌ๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•˜๊ฑฐ๋‚˜ ์‚ฌ์šฉ์ž๋ฅผ ๋ณ€๊ฒฝํ•˜๋Š” ๋“ฑ์˜ ์ž‘์—…์„ ํ•  ๋•Œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์— ์˜ํ•ด์„œ ์ž๋™์œผ๋กœ ๊ฐฑ์‹ ๋˜๋Š” ํ…Œ์ด๋ธ” */ SELECT USERNAME FROM DBA_USERS; -- DBA_USERS : ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์กด์žฌํ•˜๋Š” ๋ชจ๋“  ์‚ฌ์šฉ์ž(USER) ์ •๋ณด๋ฅผ ์กฐํšŒํ•˜๋Š” ๋”•์…”๋„ˆ๋ฆฌ ๋ทฐ -- (SYS AS SYSDBA ๊ณ„์ •์œผ๋กœ๋งŒ ๊ฐ€๋Šฅ) SELECT * FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'MEMBER'; -- USER_TAB_COLUMNS : ํ…Œ์ด๋ธ”, ๋ทฐ, ํด๋Ÿฌ์Šคํ„ฐ์˜ ์ปฌ๋Ÿผ๊ณผ ๊ด€๋ จ๋œ ์ •๋ณด๋ฅผ ์กฐํšŒํ•˜๋Š” ๋”•์…”๋„ˆ๋ฆฌ ๋ทฐ DESC MEMBER; -- DESC๋ฌธ : ํ…Œ์ด๋ธ”์˜ ๊ตฌ์กฐ๋ฅผ ํ‘œ์‹œํ•˜๋Š” ๊ตฌ๋ฌธ -- MEMBER ํ…Œ์ด๋ธ”์— ์ƒ˜ํ”Œ ๋ฐ์ดํ„ฐ ์‚ฝ์ž… INSERT INTO MEMBER VALUES('MEM01','123ABC','ํ™๊ธธ๋™','000101-3345678',DEFAULT); -- ๋ฐ์ดํ„ฐ ์‚ฝ์ž… ํ™•์ธ SELECT * FROM MEMBER; COMMIT; -- ํ…Œ์ด๋ธ” ์กฐ์ž‘ ๋‚ด์šฉ(DML)์„ ์‹ค์ œ DB์— ๋ฐ˜์˜ํ•˜๋Š” TCL ๊ตฌ๋ฌธ -- ๊ฐ€์ž…์ผ -> SYSDATE๋ฅผ ํ™œ์šฉ INSERT INTO MEMBER VALUES ('MEM02', 'QWER1234', '๊น€์˜ํฌ', '971208-2123456', SYSDATE); -- ๊ฐ€์ž…์ผ -> DEFAULT ํ™œ์šฉ(ํ…Œ์ด๋ธ” ์ƒ์„ฑ ์‹œ ์ •์˜๋œ ๊ฐ’์ด ๋ฐ˜์˜๋จ) INSERT INTO MEMBER VALUES ('MEM03', 'ZZ9786', '๋ฐ•์ฒ ์ˆ˜', '900314-1122334', DEFAULT); -- DEFAULT -- ๊ฐ€์ž…์ผ -> INSERT ์‹œ ๋ฏธ์ž‘์„ฑ ํ•˜๋Š” ๊ฒฝ์šฐ -> DEAFULT ๊ฐ’์ด ๋ฐ˜์˜๋จ INSERT INTO MEMBER(MEMBER_ID, MEMBER_PWD, MEMBER_NAME, MEMBER_SSN) VALUES ('MEM04', 'ASDQWE','์ด์ง€์—ฐ', '851011-2345678'); COMMIT; SELECT * FROM MEMBER; -- ์ฃผ๋ฏผ๋“ฑ๋ก๋ฒˆํ˜ธ, ์ „ํ™” ๋ฒˆํ˜ธ ๋“ฑ ์ˆซ์ž๊ฐ€ ํฌํ•จ๋œ ๋ฐ์ดํ„ฐ์˜ ์ปฌ๋Ÿผ์„ ๋ฌธ์žํ˜•์œผ๋กœ ํ•˜๋Š” ์ด์œ  CREATE TABLE MEMBER2( MEMBER_ID VARCHAR2(30), MEMBER_PWD VARCHAR2(30), MEMBER_NAME VARCHAR2(20), MEMBER_SSN NUMBER, ENROLL_DATE DATE DEFAULT SYSDATE ); INSERT INTO MEMBER2 VALUES ('MEM02', 'QWER1234', '๊น€์˜ํฌ', 0712082123456, SYSDATE); SELECT * FROM MEMBER2; -- ์ฃผ๋ฏผ๋“ฑ๋ก๋ฒˆํ˜ธ๋ฅผ NUMBER๋กœ ์ง€์ •ํ•œ ๊ฒฝ์šฐ ์ œ์ผ ์•ž 0์ด ์‚ฌ๋ผ์ง€๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ --> ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ๋ฌธ์ž ๋ฐ์ดํ„ฐ ํƒ€์ž…์„ ์‚ฌ์šฉ -------------------------------------------------------------------------------- /* ์ œ์•ฝ ์กฐ๊ฑด(CONSTRAINTS) - ์‚ฌ์šฉ์ž๊ฐ€ ์›ํ•˜๋Š” ์กฐ๊ฑด์˜ ๋ฐ์ดํ„ฐ๋งŒ ์œ ์ง€ํ•˜๊ธฐ ์œ„ํ•ด์„œ ํŠน์ • ์ปฌ๋Ÿผ์— ์„ค์ •ํ•˜๋Š” ์ œ์•ฝ - ํ…Œ์ด๋ธ” ์ž‘์„ฑ ์‹œ ๊ฐ ์ปฌ๋Ÿผ์— ๋Œ€ํ•ด ๊ฐ’ ๊ธฐ๋ก์— ๋Œ€ํ•œ ์ œ์•ฝ ์กฐ๊ฑด ์„ค์ • ๊ฐ€๋Šฅ ์ œ์•ฝ ์กฐ๊ฑด์˜ ๋ชฉ์  - ๋ฐ์ดํ„ฐ ๋ฌด๊ฒฐ์„ฑ ๋ณด์žฅ. (์ค‘๋ณต ๋ฐ์ดํ„ฐX, NULL X) - ์ž…๋ ฅ ๋ฐ์ดํ„ฐ์— ๋ฌธ์ œ๊ฐ€ ์—†๋Š” ์ž๋™ ๊ฒ€์‚ฌ - ๋ฐ์ดํ„ฐ์˜ ์ˆ˜์ •/์‚ญ์ œ ๊ฐ€๋Šฅ ์—ฌ๋ถ€ ๊ฒ€์‚ฌ ์ œ์•ฝ ์กฐ๊ฑด์˜ ์ข…๋ฅ˜ - PRIMARY KEY - NOT NULL - UNIQUE - CHECK - FOERIGN KEY */ -- ์ œ์•ฝ ์กฐ๊ฑด ํ™•์ธ ๋ฐฉ๋ฒ• SELECT * FROM USER_CONSTRAINTS; -- USER_CONSTRAINTS : ์‚ฌ์šฉ์ž๊ฐ€ ์ž‘์„ฑํ•œ ์ œ์•ฝ ์กฐ๊ฑด์„ ํ™•์ธํ•˜๋Š” ๋”•์…”๋„ˆ๋ฆฌ ๋ทฐ SELECT * FROM USER_CONS_COLUMNS; -- USER_CONS_COLUMNS : ์ œ์•ฝ ์กฐ๊ฑด์ด ์„ค์ •๋œ ์ปฌ๋Ÿผ์„ ํ™•์ธํ•˜๋Š” ๋”•์…”๋„ˆ๋ฆฌ ๋ทฐ -------------------------------------------------------------------------------- -- 1. NOT NULL ์ œ์•ฝ ์กฐ๊ฑด -- ํ•ด๋‹น ์ปฌ๋Ÿผ์— ๋ฐ˜๋“œ์‹œ ๊ฐ’์ด ๊ธฐ๋ก๋˜์–ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ ์‚ฌ์šฉํ•˜๋Š” ์ œ์•ฝ ์กฐ๊ฑด -- ๋ฐ์ดํ„ฐ ์‚ฝ์ž…/์ˆ˜์ • ์‹œ NULL ๊ฐ’์„ ํ—ˆ์šฉํ•˜์ง€ ์•Š๋„๋ก -- ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ์—์„œ ์ง€์ •ํ•จ -- NOT NULL ์ œ์•ฝ์กฐ๊ฑด์ด ์—†๋Š” ๊ฒฝ์šฐ CREATE TABLE USER_NOT_NN( USER_NO NUMBER, USER_ID VARCHAR2(20), USER_PWD VARCHAR2(20), USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50) ); INSERT INTO USER_NOT_NN VALUES(1,'USER01','PASS01','๊น€์˜์ฃผ','๋‚จ','010-1111-2222','USER01@naver.com'); INSERT INTO USER_NOT_NN VALUES(2,NULL,NULL,NULL,'๋‚จ','010-1111-2222','USER01@naver.com'); SELECT * FROM USER_CONSTRAINTS; -- NOT NULL ์ œ์•ฝ์กฐ๊ฑด์ด ์„ค์ •๋œ ๊ฒฝ์šฐ -- (โ˜…*10)NOT NULL ์ œ์•ฝ ์กฐ๊ฑด์€ ํ…Œ์ด๋ธ” ์ƒ์„ฑ ์‹œ ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ๋กœ๋งŒ ์ง€์ • ๊ฐ€๋Šฅํ•จ! CREATE TABLE USER_NN( USER_NO NUMBER NOT NULL, -- ์ปฌ๋Ÿผ ์ง€์ • ์‹œ ์ œ์•ฝ ์กฐ๊ฑด๋„ ๊ฐ™์ด ์„ค์ • --> ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ ์„ค์ • USER_ID VARCHAR2(20) NOT NULL, USER_PWD VARCHAR2(20) NOT NULL, USER_NAME VARCHAR2(30) NOT NULL, GENDER CHAR(3), PHONE VARCHAR2(30) NOT NULL, EMAIL VARCHAR2(50) NOT NULL ); -- ์ž‘์„ฑํ•œ ์ œ์•ฝ ์กฐ๊ฑด ํ™•์ธ(์ œ์•ฝ ์กฐ๊ฑด์ด ์–ด๋А COLUMN์— ์žˆ๋Š”์ง€) SELECT C1.TABLE_NAME, COLUMN_NAME, SEARCH_CONDITION FROM USER_CONSTRAINTS C1 JOIN USER_CONS_COLUMNS C2 USING(CONSTRAINT_NAME) WHERE C1.TABLE_NAME = 'USER_NN'; INSERT INTO USER_NN VALUES(1,'USER01','PASS01','๊น€์˜์ฃผ','๋‚จ','010-1111-2222','USER01@naver.com'); INSERT INTO USER_NN VALUES(2,'USER02','PASS02','๊ฐ€๋‚˜๋‹ค','๋‚จ','010-1111-2222','USER01@naver.com'); -- ORA-01400: cannot insert NULL into ("KH"."USER_NN"."USER_ID") --> NOT NULL ์ œ์•ฝ ์กฐ๊ฑด์„ ์œ„๋ฐฐํ•˜์—ฌ ์—๋Ÿฌ ๋ฐœ์ƒ -------------------------------------------------------------------------------- /* 2. UNIQUE ์ œ์•ฝ ์กฐ๊ฑด - ์ปฌ๋Ÿผ ์ž…๋ ฅ๊ฐ’์— ๋Œ€ํ•ด์„œ ์ค‘๋ณต์„ ์ œํ•œํ•˜๋Š” ์ œ์•ฝ ์กฐ๊ฑด - ์ปฌ๋Ÿผ/ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ์—์„œ ์ œ์•ฝ ์กฐ๊ฑด ์„ค์ • ๊ฐ€๋Šฅ - ๋‹จ, UNIQUE ์ œ์•ฝ ์กฐ๊ฑด์ด ์„ค์ •๋œ ์ปฌ๋Ÿผ์—๋Š” NULL ๊ฐ’ ์ค‘๋ณต์€ ๊ฐ€๋Šฅํ•˜๋‹ค */ -- USER_NN ํ…Œ์ด๋ธ”์— ์ค‘๋ณต ๋ฐ์ดํ„ฐ ์‚ฝ์ž…(์„ฑ๊ณต -> ๋ฌด๊ฒฐ์„ฑ์ด ์นจ๋ฒ”) SELECT * FROM USER_NN; INSERT INTO USER_NN VALUES(1,'USER01','PASS01','๊น€์˜์ฃผ','๋‚จ','010-1111-2222','USER01@naver.com'); -- 1) ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ๋กœ UNIQUE ์ œ์•ฝ ์กฐ๊ฑด ์„ค์ • -- UNIQUE ์ œ์•ฝ ์กฐ๊ฑด ํ…Œ์ด๋ธ” ์ƒ์„ฑ CREATE TABLE USER_UK( USER_NO NUMBER, --USER_ID VARCHAR2(20) UNIQUE, -- ๊ธฐ๋ณธ ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ ์ œ์•ฝ ์กฐ๊ฑด ์ง€์ • USER_ID VARCHAR2(20) CONSTRAINT USER_ID_UK UNIQUE, -- CONSTRAINT ์ œ์•ฝ ์กฐ๊ฑด๋ช… ์ œ์•ฝ ์กฐ๊ฑด USER_PWD VARCHAR2(20) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50) ); -- ์‚ฝ์ž…์„ ์ˆœ์„œ๋Œ€๋กœ ํ•˜๋‚˜์”ฉ ์ง„ํ–‰ INSERT INTO USER_UK VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_UK VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); -- ORA-00001: unique constraint (KH.USER_ID_UK) violated --> USER_ID ์ปฌ๋Ÿผ์— ์ค‘๋ณต๋ฐ์ดํ„ฐ๊ฐ€ ์‚ฝ์ž…๋˜์–ด UNIQUE ์ œ์•ฝ ์กฐ๊ฑด์„ ์œ„๋ฐฐ INSERT INTO USER_UK VALUES(1, NULL, 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); -- UNIQUE๋Š” NULL ๊ฐ’ ์‚ฝ์ž… ๊ฐ€๋Šฅ INSERT INTO USER_UK VALUES(1, NULL, 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); -- UNIQUE๋Š” NULL ๊ฐ’ ์ค‘๋ณต ์‚ฝ์ž…๋„ ๊ฐ€๋Šฅ -- ์‚ฝ์ž… ๊ฒฐ๊ณผ ํ™•์ธ SELECT * FROM USER_UK; -- ์˜ค๋ฅ˜ ๋ณด๊ณ ์— ๋‚˜ํƒ€๋‚˜๋Š” SYS_C008635 ๊ฐ™์€ ์ œ์•ฝ ์กฐ๊ฑด๋ช…์œผ๋กœ -- ํ•ด๋‹น ์ œ์•ฝ ์กฐ๊ฑด์ด ์„ค์ •๋œ ํ…Œ์ด๋ธ”๋ช…, ์ปฌ๋Ÿผ, ์ œ์•ฝ ์กฐ๊ฑด ํƒ€์ž… ์กฐํšŒ SELECT UCC.TABLE_NAME, UCC.COLUMN_NAME, UC.CONSTRAINT_TYPE FROM USER_CONSTRAINTS UC, USER_CONS_COLUMNS UCC WHERE UCC.CONSTRAINT_NAME = UC.CONSTRAINT_NAME AND UCC.CONSTRAINT_NAME = 'USER_ID_UK'; -------------------------------------------- -- 2) ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ์—์„œ ์ œ์•ฝ ์กฐ๊ฑด ์„ค์ • /* [์ž‘์„ฑ๋ฒ•] CREATE TABLE ํ…Œ์ด๋ธ”๋ช…( ์ปฌ๋Ÿผ๋ช… ๋ฐ์ดํ„ฐํƒ€์ž…, .., [CONSTRAINT ์ œ์•ฝ์กฐ๊ฑด๋ช…] ์ œ์•ฝ์กฐ๊ฑด (์ปฌ๋Ÿผ๋ช…) ); */ CREATE TABLE USER_UK2( USER_NO NUMBER, USER_ID VARCHAR2(20), USER_PWD VARCHAR2(20) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50), --UNIQUE(USER_ID) -- ๊ธฐ๋ณธ ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ ์ œ์•ฝ์กฐ๊ฑด ์„ค์ • CONSTRAINT USER_ID_UK2 UNIQUE (USER_ID) ); -- USER_UK2 ํ…Œ์ด๋ธ”์— ์„ค์ •๋œ ์ œ์•ฝ์กฐ๊ฑด ์กฐํšŒ SELECT C1.TABLE_NAME, COLUMN_NAME ,SEARCH_CONDITION FROM USER_CONSTRAINTS C1 JOIN USER_CONS_COLUMNS C2 USING(CONSTRAINT_NAME) WHERE C1.TABLE_NAME = 'USER_UK2'; -- ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฝ์ž…ํ•˜์—ฌ UNIQUE ์ œ์•ฝ ์กฐ๊ฑด ํ™•์ธ INSERT INTO USER_UK2 VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_UK2 VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); SELECT * FROM USER_UK2; -------------------------------------------- -- 3) UNIQUE ๋ณตํ•ฉํ‚ค -- ๋‘ ๊ฐœ ์ด์ƒ์˜ ์ปฌ๋Ÿผ์„ ๋ฌถ์–ด ํ•˜๋‚˜์˜ UNIQUE ์ œ์•ฝ ์กฐ๊ฑด์„ ์„ค์ • -- ์„ค์ •๋œ ์ปฌ๋Ÿผ์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ๋ชจ๋‘ ์ผ์น˜ํ•ด์•ผ ์ค‘๋ณต์œผ๋กœ ํŒ์ •๋จ -- ๋ณตํ•ฉํ‚ค๋Š” ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ๋กœ๋งŒ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ์Œ CREATE TABLE USER_UK3( USER_NO NUMBER, USER_ID VARCHAR2(20), USER_PWD VARCHAR2(20) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50), CONSTRAINT USER_NO_ID_UK UNIQUE(USER_NO, USER_ID) ); INSERT INTO USER_UK3 VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_UK3 VALUES(2, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_UK3 VALUES(2, 'user02', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_UK3 VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); --> ์—ฌ๋Ÿฌ ์ปฌ๋Ÿผ์„ ๋ฌถ์–ด์„œ UNIQUE ์ œ์•ฝ ์กฐ๊ฑด์ด ์„ค์ •๋˜์–ด ์žˆ์œผ๋ฉด -- ๋‘ ์ปฌ๋Ÿผ์ด ๋ชจ๋‘ ์ค‘๋ณต๋˜๋Š” ๊ฐ’์ผ ๊ฒฝ์šฐ์—๋งŒ ์˜ค๋ฅ˜ ๋ฐœ์ƒ SELECT * FROM USER_UK3; SELECT UC.TABLE_NAME, UCC.COLUMN_NAME, UCC.CONSTRAINT_NAME, UC.CONSTRAINT_TYPE FROM USER_CONSTRAINTS UC JOIN USER_CONS_COLUMNS UCC ON(UC.CONSTRAINT_NAME = UCC.CONSTRAINT_NAME) WHERE UCC.CONSTRAINT_NAME = 'USER_NO_ID_UK'; --> ๋‘๊ฐœ์˜ UNIQUE ์ œ์•ฝ ์กฐ์ „์ด์ด ํ•˜๋‚˜์˜ ์ œ์•ฝ ์กฐ๊ฑด๋ช…์œผ๋กœ ๋˜์–ด์žˆ๋Š” ๊ฒƒ ํ™•์ธ ------------------------------------------------------------------------------------------ -- ์ œ์•ฝ์กฐ๊ฑด์— ์ด๋ฆ„ ์„ค์ • CREATE TABLE CONST_NAME( TEST_DATA1 VARCHAR2(20) CONSTRAINT NN_TEST_DATA1 NOT NULL, TEST_DATA2 VARCHAR2(20) CONSTRAINT UK_TEST_DATA2 UNIQUE, TEST_DATA3 VARCHAR2(30), CONSTRAINT UK_TEST_DATA3 UNIQUE(TEST_DATA3) ); -- TEST_DATA1 ์ปฌ๋Ÿผ์— ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ๋กœ NOT_NULL ์ œ์•ฝ์กฐ๊ฑด์„ ์ถ”๊ฐ€ํ•˜๊ณ  ์ œ์•ฝ ์กฐ๊ฑด ๋ช…์„ NN_TEST_DATA1์œผ๋กœ ์ง€์ • -- TEST_DATA2 ์ปฌ๋Ÿผ์— ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ๋กœ UNIQUE ์ œ์•ฝ์กฐ๊ฑด์„ ์ถ”๊ฐ€ํ•˜๊ณ  ์ œ์•ฝ ์กฐ๊ฑด ๋ช…์„ UK_TEST_DATA2 ์ง€์ • -- TEST_DATA3 ์ปฌ๋Ÿผ์— ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ๋กœ UNIQUE ์ œ์•ฝ์กฐ๊ฑด์„ ์ถ”๊ฐ€ํ•˜๊ณ  ์ œ์•ฝ ์กฐ๊ฑด ๋ช…์„ UK_TEST_DATA3 ์ง€์ • SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = 'CONST_NAME'; SELECT * FROM USER_CONSTRAINTS C1 JOIN USER_CONS_COLUMNS C2 USING(CONSTRAINT_NAME) WHERE C1.TABLE_NAME = 'CONS_NAME'; ------------------------------------------------------------------------------------------ /* 3. PRIMARY KEY(๊ธฐ๋ณธํ‚ค) ์ œ์•ฝ ์กฐ๊ฑด - ํ…Œ์ด๋ธ”์—์„œ ํ•œ ํ–‰์˜ ์ •๋ณด๋ฅผ ์ฐพ๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•  ์ปฌ๋Ÿผ์„ ์˜๋ฏธํ•จ -> ํ…Œ์ด๋ธ”์˜ ๋ชจ๋“  ํ–‰์— ๋Œ€ํ•œ ์‹๋ณ„์ž(IDENTIFIER) ์—ญํ• ์„ ํ•จ - NOT NULL + UNIQUE ์ œ์•ฝ ์กฐ๊ฑด์˜ ์˜๋ฏธ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ์Œ - ํ•œ ํ…Œ์ด๋ธ”๋‹น ํ•˜๋‚˜์˜ PK ์ œ์•ฝ ์กฐ๊ฑด์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Œ - ์ปฌ๋Ÿผ / ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ๋กœ ์ œ์•ฝ์กฐ๊ฑด ์„ค์ • ๊ฐ€๋Šฅ - PK๋„ ๋ณตํ•ฉํ‚ค ์„ค์ • ๊ฐ€๋Šฅ */ -- 1) PRIMARY KEY๊ฐ€ ์„ค์ •๋œ ํ…Œ์ด๋ธ” ์ƒ์„ฑ CREATE TABLE USER_PK( --USER_NO NUMBER PRIMARY KEY, -- ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ๋กœ PK ์„ค์ • --USER_NO NUMBER CONSTRAINT USER_PK_PK PRIMARY KEY, -- ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ๋กœ PK ์„ค์ • + ์ด๋ฆ„ ์ง€์ • USER_NO NUMBER, USER_ID VARCHAR2(20) UNIQUE, USER_PWD VARCHAR2(30) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50), --PRIMARY KEY(USER_NO) -- ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ PK ์„ค์ • CONSTRAINT USER_PK_PK PRIMARY KEY(USER_NO) -- ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ PK ์„ค์ • + ์ด๋ฆ„ ์ง€์ • ); -- ์ˆœ์„œ ๋Œ€๋กœ ์‚ฝ์ž… ํ•˜๋ฉด์„œ ํ™•์ธ INSERT INTO USER_PK VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_PK VALUES(1, 'user02', 'pass02', '์ด์ˆœ์‹ ', '๋‚จ', '010-5678-9012', 'lee123@kh.or.kr'); -- ORA-00001: unique constraint (KH.USER_PK_PK) violated INSERT INTO USER_PK VALUES(NULL, 'user03', 'pass03', '์œ ๊ด€์ˆœ', '์—ฌ', '010-9999-3131', 'yoo123@kh.or.kr'); -- ORA-01400: cannot insert NULL into ("KH"."USER_PK"."USER_NO") -- USER_PK_PK ์ œ์•ฝ์กฐ๊ฑด ํ™•์ธ SELECT UC.TABLE_NAME, UCC.COLUMN_NAME, UC.CONSTRAINT_NAME, UC.CONSTRAINT_TYPE FROM USER_CONSTRAINTS UC JOIN USER_CONS_COLUMNS UCC ON(UC.CONSTRAINT_NAME = UCC.CONSTRAINT_NAME) WHERE UC.CONSTRAINT_NAME = 'USER_PK_PK'; -------------------------------------------- -- 2) PRIMARY KEY ๋ณตํ•ฉํ‚ค --> ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ๋กœ๋งŒ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ์Œ CREATE TABLE USER_PK2( USER_NO NUMBER, USER_ID VARCHAR2(20), USER_PWD VARCHAR2(30) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50), CONSTRAINT USER_NO_ID_PK PRIMARY KEY(USER_NO, USER_ID) -- ๋ณตํ•ฉํ‚ค ์„ค์ • ); -- ์ˆœ์„œ ๋Œ€๋กœ ์‚ฝ์ž… ํ•˜๋ฉด์„œ ํ™•์ธ INSERT INTO USER_PK2 VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_PK2 VALUES(1, 'user02', 'pass02', '์ด์ˆœ์‹ ', '๋‚จ', '010-5678-9012', 'lee123@kh.or.kr'); INSERT INTO USER_PK2 VALUES(2, 'user01', 'pass01', '์œ ๊ด€์ˆœ', '์—ฌ', '010-9999-3131', 'yoo123@kh.or.kr'); INSERT INTO USER_PK2 VALUES(1, 'user01', 'pass01', '์‹ ์‚ฌ์ž„๋‹น', '์—ฌ', '010-9999-9999', 'sin123@kh.or.kr'); -- ORA-00001: unique constraint (KH.USER_NO_ID_PK) violated SELECT * FROM USER_PK2; ------------------------------------------------------------------------------------------ /* 4. FOREIGN KEY(์™ธ๋ถ€ํ‚ค / ์™ธ๋ž˜ํ‚ค) ์ œ์•ฝ์กฐ๊ฑด - ์ฐธ์กฐ(REFERENCES)๋œ ๋‹ค๋ฅธ ํ…Œ์ด๋ธ”์˜ ์ปฌ๋Ÿผ(PK)์ด ์ œ๊ณตํ•˜๋Š” ๊ฐ’๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋Š” ์ œ์•ฝ ์กฐ๊ฑด - FOREIGN KEY ์ œ์•ฝ ์กฐ๊ฑด์— ์˜ํ•ด์„œ ํ…Œ์ด๋ธ”๊ฐ„์˜ ๊ด€๊ณ„(RELATIONSHIP)๊ฐ€ ํ˜•์„ฑ - ์ œ๊ณต๋˜๋Š” ๊ฐ’ ์™ธ์—๋Š” NULL์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ -- ์ปฌ๋Ÿผ ๋ ˆ๋ฒจ๋กœ ์ œ์•ฝ ์กฐ๊ฑด ์„ค์ • ์ปฌ๋Ÿผ๋ช… ๋ฐ์ดํ„ฐํƒ€์ž… [CONSTRAINT ์ œ์•ฝ์กฐ๊ฑด๋ช…] REFERENCES ์ฐธ์กฐํ…Œ์ด๋ธ”๋ช…[(์ฐธ์กฐ์ปฌ๋Ÿผ๋ช…)] [์‚ญ์ œ์˜ต์…˜] -- ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ๋กœ ์ œ์•ฝ ์กฐ๊ฑด ์„ค์ • [CONSTRAINT ์ œ์•ฝ์กฐ๊ฑด๋ช…] FOREIGN KEY(์ ์šฉ์ปฌ๋Ÿผ๋ช…)REFERENCES ์ฐธ์กฐํ…Œ์ด๋ธ”๋ช…[(์ฐธ์กฐ์ปฌ๋Ÿผ๋ช…)] [์‚ญ์ œ์˜ต์…˜] (โ˜…โ˜…โ˜…โ˜…โ˜…) - ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ๋Š” ์ปฌ๋Ÿผ์€ PK ๋˜๋Š” UNIQUE ์ œ์•ฝ ์กฐ๊ฑด์ด ์„ค์ •๋œ ์ปฌ๋Ÿผ๋งŒ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Œ - ์ฐธ์กฐ ์ปฌ๋Ÿผ๋ช…์„ ์ž‘์„ฑํ•˜์ง€ ์•Š์œผ๋ฉด ์ฐธ์กฐํ…Œ์ด๋ธ”์˜ PK ์ปฌ๋Ÿผ์„ ์ฐธ์กฐํ•˜๊ฒŒ ๋จ */ -- 1) FOREIGN KEY ์ œ์•ฝ ์กฐ๊ฑด ์„ค์ • -- FOREIGN KEY ์ œ์•ฝ์กฐ๊ฑด ํ™•์ธ์„ ์œ„ํ•œ ํ…Œ์ด๋ธ”, ์ƒ˜ํ”Œ๋ฐ์ดํ„ฐ CREATE TABLE USER_GRADE( GRADE_CODE NUMBER PRIMARY KEY, GRADE_NAME VARCHAR2(30) NOT NULL ); INSERT INTO USER_GRADE VALUES (10, '์ผ๋ฐ˜ํšŒ์›'); INSERT INTO USER_GRADE VALUES (20, '์šฐ์ˆ˜ํšŒ์›'); INSERT INTO USER_GRADE VALUES (30, 'ํŠน๋ณ„ํšŒ์›'); SELECT * FROM USER_GRADE; -- USER_GRADEํ…Œ์ด๋ธ”๊ณผ FOREIGN KEY ์ œ์•ฝ์กฐ๊ฑด์ด ๋งบ์–ด์ง„ ํ…Œ์ด๋ธ” ์ƒ์„ฑ CREATE TABLE USER_FK( USER_NO NUMBER PRIMARY KEY, USER_ID VARCHAR2(20) UNIQUE, USER_PWD VARCHAR2(30) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50), GRADE_CODE NUMBER, CONSTRAINT GRADE_CODE_FK FOREIGN KEY (GRADE_CODE) REFERENCES USER_GRADE(GRADE_CODE) ); -- ์ˆœ์„œ ๋Œ€๋กœ ์‚ฝ์ž… ํ•˜๋ฉด์„œ ํ™•์ธ INSERT INTO USER_FK VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr', 10); INSERT INTO USER_FK VALUES(2, 'user02', 'pass02', '์ด์ˆœ์‹ ', '๋‚จ', '010-5678-9012', 'lee123@kh.or.kr', 10); INSERT INTO USER_FK VALUES(3, 'user03', 'pass03', '์œ ๊ด€์ˆœ', '์—ฌ', '010-9999-3131', 'yoo123@kh.or.kr', 30); INSERT INTO USER_FK VALUES(4, 'user04', 'pass04', '์•ˆ์ค‘๊ทผ', '๋‚จ', '010-2222-1111', 'ahn123@kh.or.kr', null); SELECT * FROM USER_FK; INSERT INTO USER_FK VALUES(5, 'user05', 'pass05', '์œค๋ด‰๊ธธ', '๋‚จ', '010-6666-1234', 'yoon123@kh.or.kr', 50); -- ORA-02291: integrity constraint (KH.GRADE_CODE_FK) violated - parent key not found -- ์„ค์ •๋œ ์ œ์•ฝ์กฐ๊ฑด ํ™•์ธ SELECT UC.TABLE_NAME, UCC.COLUMN_NAME, UC.CONSTRAINT_NAME, UC.CONSTRAINT_TYPE FROM USER_CONSTRAINTS UC JOIN USER_CONS_COLUMNS UCC ON (UC.CONSTRAINT_NAME = UCC.CONSTRAINT_NAME) WHERE UC.CONSTRAINT_NAME = 'GRADE_CODE_FK'; SELECT * FROM USER_FK LEFT JOIN USER_GRADE USING(GRADE_CODE); -- FK๋กœ ์—ฐ๊ฒฐ๋จ == ๋‘ ํ…Œ์ด๋ธ”์ด ์—ฐ๊ฒฐ๋˜์–ด ๊ด€๊ณ„๊ฐ€ ํ˜•์„ฑ๋จ -- == JOIN ๊ฐ€๋Šฅ(JOIN ์‹œ FK์— ์‚ฌ์šฉ๋œ ์ปฌ๋Ÿผ์„ ์ž‘์„ฑํ•˜๋ฉด ๋จ) -------------------------------------------- -- 2) FOREIGN KEY ์‚ญ์ œ ์˜ต์…˜ -- ๋ถ€๋ชจํ…Œ์ด๋ธ”์˜ ๋ฐ์ดํ„ฐ ์‚ญ์ œ์‹œ ์ž์‹ ํ…Œ์ด๋ธ”์˜ ๋ฐ์ดํ„ฐ๋ฅผ -- ์–ด๋–ค์‹์œผ๋กœ ์ฒ˜๋ฆฌํ•  ์ง€์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. -- 2-1) ON DELETE RESTRICTED(์‚ญ์ œ ์ œํ•œ)๋กœ ๊ธฐ๋ณธ ์ง€์ •๋˜์–ด ์žˆ์Œ -- FOREIGN KEY๋กœ ์ง€์ •๋œ ์ปฌ๋Ÿผ์—์„œ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ๋Š” ๊ฐ’์ผ ๊ฒฝ์šฐ -- ์ œ๊ณตํ•˜๋Š” ์ปฌ๋Ÿผ์˜ ๊ฐ’์€ ์‚ญ์ œํ•˜์ง€ ๋ชปํ•จ SELECT * FROM USER_GRADE; SELECT * FROM USER_FK; DELETE FROM USER_GRADE WHERE GRADE_CODE = 10; -- ์‚ญ์ œ ๊ตฌ๋ฌธ -- ORA-02292: integrity constraint (KH.GRADE_CODE_FK) violated - child record found COMMIT; DELETE FROM USER_GRADE WHERE GRADE_CODE = 20; -- GRADE_CODE ์ค‘ 20์€ ์™ธ๋ž˜ํ‚ค๋กœ ์ฐธ์กฐ๋˜๊ณ  ์žˆ์ง€ ์•Š์œผ๋ฏ€๋กœ ์‚ญ์ œ๊ฐ€ ๊ฐ€๋Šฅํ•จ. SELECT * FROM USER_GRADE; ROLLBACK; --------------------- -- 2-2)ON DELETE SET NULL -- ๋ถ€๋ชจ ์ปฌ๋Ÿผ์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์‚ญ์ œ๋œ ๊ฒฝ์šฐ -- ์ฐธ์กฐํ•˜๋˜ ์ž์‹์˜ ์ปฌ๋Ÿผ ๊ฐ’์„ NULL๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ์˜ต์…˜ -- ์‚ญ์ œ ์กฐ๊ฑด ํ™•์ธ์„ ์œ„ํ•œ ํ…Œ์ด๋ธ”, ์ƒ˜ํ”Œ ๋ฐ์ดํ„ฐ CREATE TABLE USER_GRADE2( GRADE_CODE NUMBER PRIMARY KEY, GRADE_NAME VARCHAR2(30) NOT NULL ); INSERT INTO USER_GRADE2 VALUES (10, '์ผ๋ฐ˜ํšŒ์›'); INSERT INTO USER_GRADE2 VALUES (20, '์šฐ์ˆ˜ํšŒ์›'); INSERT INTO USER_GRADE2 VALUES (30, 'ํŠน๋ณ„ํšŒ์›'); SELECT * FROM USER_GRADE2; -- ON DELETE SET NULL ์‚ญ์ œ ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•œ ํ…Œ์ด๋ธ” ์ƒ์„ฑ CREATE TABLE USER_FK2( USER_NO NUMBER PRIMARY KEY, USER_ID VARCHAR2(20) UNIQUE, USER_PWD VARCHAR2(30) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50), GRADE_CODE NUMBER, CONSTRAINT GRADE_CODE_FK2 FOREIGN KEY(GRADE_CODE) REFERENCES USER_GRADE2(GRADE_CODE)ON DELETE SET NULL ); -- ์ƒ˜ํ”Œ๋ฐ์ดํ„ฐ ์‚ฝ์ž… INSERT INTO USER_FK2 VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr', 10); INSERT INTO USER_FK2 VALUES(2, 'user02', 'pass02', '์ด์ˆœ์‹ ', '๋‚จ', '010-5678-9012', 'lee123@kh.or.kr', 10); INSERT INTO USER_FK2 VALUES(3, 'user03', 'pass03', '์œ ๊ด€์ˆœ', '์—ฌ', '010-9999-3131', 'yoo123@kh.or.kr', 30); INSERT INTO USER_FK2 VALUES(4, 'user04', 'pass04', '์•ˆ์ค‘๊ทผ', '๋‚จ', '010-2222-1111', 'ahn123@kh.or.kr', null); COMMIT; SELECT * FROM USER_GRADE2; SELECT * FROM USER_FK2; -- USER_GRADE2 ํ…Œ์ด๋ธ”์—์„œ GRADE_COE =10 ์‚ญ์ œ DELETE FROM USER_GRADE2 WHERE GRADE_CODE = 10; --> ON DELETE SET NULL ์˜ต์…˜์ด ์„ค์ •๋˜์–ด ์žˆ์–ด ์‚ญ์ œ๊ฐ€ ์ด๋ฃจ์–ด์ง. SELECT * FROM USER_GRADE2; SELECT * FROM USER_FK2; ROLLBACK; --------------------- -- 2-3) ON DELETE CASCADE(์ข…์†) -- ๋ถ€๋ชจ ์ปฌ๋Ÿผ ๊ฐ’์„ ์‚ญ์ œํ•˜๋Š” ๊ฒฝ์šฐ -- ํ•ด๋‹น ์ปฌ๋Ÿผ ๊ฐ’์„ ์ฐธ์กฐํ•˜๋˜ ์ž์‹ ํ…Œ์ด๋ธ”์˜ ํ–‰์„ ๊ฐ™์ด ์‚ญ์ œํ•˜๋Š” ์˜ต์…˜ -- ์‚ญ์ œ ์กฐ๊ฑด ํ™•์ธ์„ ์œ„ํ•œ ํ…Œ์ด๋ธ”, ์ƒ˜ํ”Œ ๋ฐ์ดํ„ฐ CREATE TABLE USER_GRADE3( GRADE_CODE NUMBER PRIMARY KEY, GRADE_NAME VARCHAR2(30) NOT NULL ); INSERT INTO USER_GRADE3 VALUES (10, '์ผ๋ฐ˜ํšŒ์›'); INSERT INTO USER_GRADE3 VALUES (20, '์šฐ์ˆ˜ํšŒ์›'); INSERT INTO USER_GRADE3 VALUES (30, 'ํŠน๋ณ„ํšŒ์›'); -- ON DELETE CASCADE ์‚ญ์ œ ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•œ ํ…Œ์ด๋ธ” ์ƒ์„ฑ CREATE TABLE USER_FK3( USER_NO NUMBER PRIMARY KEY, USER_ID VARCHAR2(20) UNIQUE, USER_PWD VARCHAR2(30) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3), PHONE VARCHAR2(30), EMAIL VARCHAR2(50), GRADE_CODE NUMBER, CONSTRAINT GRADE_CODE_FK3 FOREIGN KEY(GRADE_CODE) REFERENCES USER_GRADE3(GRADE_CODE) ON DELETE CASCADE ); -- ์ƒ˜ํ”Œ๋ฐ์ดํ„ฐ ์‚ฝ์ž… INSERT INTO USER_FK3 VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr', 10); INSERT INTO USER_FK3 VALUES(2, 'user02', 'pass02', '์ด์ˆœ์‹ ', '๋‚จ', '010-5678-9012', 'lee123@kh.or.kr', 10); INSERT INTO USER_FK3 VALUES(3, 'user03', 'pass03', '์œ ๊ด€์ˆœ', '์—ฌ', '010-9999-3131', 'yoo123@kh.or.kr', 30); INSERT INTO USER_FK3 VALUES(4, 'user04', 'pass04', '์•ˆ์ค‘๊ทผ', '๋‚จ', '010-2222-1111', 'ahn123@kh.or.kr', null); COMMIT; SELECT * FROM USER_GRADE3; SELECT * FROM USER_FK3; DELETE FROM USER_GRADE3 WHERE GRADE_CODE = 10; SELECT * FROM USER_GRADE3; SELECT * FROM USER_FK3; -- ON DELETE CASECADE ์˜ต์…˜์œผ๋กœ ์ธํ•ด ์ฐธ์กฐํ‚ค๋ฅผ ์‚ฌ์šฉํ•œ ํ–‰์ด ์‚ญ์ œ๋จ์„ ํ™•์ธ ROLLBACK; ------------------------------------------------------------------------------------------ /* 5. CHECK ์ œ์•ฝ ์กฐ๊ฑด -- ์ปฌ๋Ÿผ์— ๊ธฐ๋ก๋˜๋Š” ๊ฐ’์— ์กฐ๊ฑด์„ ์„ค์ •ํ•˜๋Š” ์ œ์•ฝ ์กฐ๊ฑด [์ž‘์„ฑ๋ฒ•] CHECK (์ปฌ๋Ÿผ๋ช… ๋น„๊ต์—ฐ์‚ฐ์ž ๋น„๊ต๊ฐ’) -> ์ฃผ์˜์‚ฌํ•ญ : ๋น„๊ต๊ฐ’์€ ์˜ค๋กœ์ง€ ๋ฆฌํ„ฐ๋Ÿด๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ */ -- CHECK ์ œ์•ฝ์กฐ๊ฑด์ด ์„ค์ •๋œ ํ…Œ์ด๋ธ” ์ƒ์„ฑ CREATE TABLE USER_CHECK( USER_NO NUMBER PRIMARY KEY, USER_ID VARCHAR2(20) UNIQUE, USER_PWD VARCHAR2(30) NOT NULL, USER_NAME VARCHAR2(30), GENDER CHAR(3) CHECK(GENDER IN ('๋‚จ','์—ฌ')), PHONE VARCHAR2(30), EMAIL VARCHAR2(50) ); -- ์ˆœ์„œ ๋Œ€๋กœ ์‚ฝ์ž… ํ•˜๋ฉด์„œ ํ™•์ธ INSERT INTO USER_CHECK VALUES(1, 'user01', 'pass01', 'ํ™๊ธธ๋™', '๋‚จ', '010-1234-5678', 'hong123@kh.or.kr'); INSERT INTO USER_CHECK VALUES(2, 'user02', 'pass02', 'ํ™๊ธธ๋™', '์—ฌ', '010-1234-5678', 'hong123@kh.or.kr'); -- ORA-12899: value too large for column "KH"."USER_CHECK"."GENDER" (actual: 6, maximum: 3) --> ๋ฐ์ดํ„ฐ ํฌ๊ธฐ ์ดˆ๊ณผ -- ORA-02290: check constraint (KH.SYS_C007051) violated --> ์ฒดํฌ ์ œ์•ฝ ์กฐ๊ฑด ์œ„๋ฐฐ INSERT INTO USER_CHECK VALUES(3, 'user03', 'pass03', 'ํ™๊ธธ๋™', NULL, '010-1234-5678', 'hong123@kh.or.kr'); -- NULL์€ ๊ฐ€๋Šฅํ•จ --------------------- -- (์ฐธ๊ณ ) CHECK ์ œ์•ฝ ์กฐ๊ฑด์€ ๋ฒ”์œ„๋กœ๋„ ์„ค์ • ๊ฐ€๋Šฅ. CREATE TABLE USER_CHECK2( TEST_NUMBER NUMBER, CONSTRAINT CK_TEST_NUMBER CHECK (TEST_NUMBER > 0) ); INSERT INTO USER_CHECK2 VALUES (10); INSERT INTO USER_CHECK2 VALUES (-10); -- (์ฐธ๊ณ ) ๋ณต์žกํ•œ ๋ฒ”์œ„ ์„ค์ • + ํ…Œ์ด๋ธ” ๋ ˆ๋ฒจ๋กœ CHECK ์ œ์•ฝ์กฐ๊ฑด ์ถ”๊ฐ€ CREATE TABLE USER_CHECK3 ( C_NAME VARCHAR2(15 CHAR), C_PRICE NUMBER, C_LEVEL CHAR(1), C_DATE DATE, CONSTRAINT TBCH3_NAME_PK PRIMARY KEY (C_NAME), CONSTRAINT TBCH3_PRICE_PK CHECK (C_PRICE >= 1 AND C_PRICE <= 99999), CONSTRAINT TBCH3_LEVEL_PK CHECK (C_LEVEL = 'A' OR C_LEVEL = 'B' OR C_LEVEL = 'C'), CONSTRAINT TBCH3_DATE_PK CHECK (C_DATE >= TO_DATE('2016/01/01', 'YYYY/MM/DD')) ); ------------------------------------------------------------------------------------------ -- [์‹ค์Šต ๋ฌธ์ œ] -- ํšŒ์›๊ฐ€์ž…์šฉ ํ…Œ์ด๋ธ” ์ƒ์„ฑ(USER_TEST) -- ์ปฌ๋Ÿผ๋ช… : USER_NO(ํšŒ์›๋ฒˆํ˜ธ) - ๊ธฐ๋ณธํ‚ค(PK_USER_TEST), -- USER_ID(ํšŒ์›์•„์ด๋””) - ์ค‘๋ณต๊ธˆ์ง€(UK_USER_ID), -- USER_PWD(ํšŒ์›๋น„๋ฐ€๋ฒˆํ˜ธ) - NULL๊ฐ’ ํ—ˆ์šฉ์•ˆํ•จ(NN_USER_PWD), -- PNO(์ฃผ๋ฏผ๋“ฑ๋ก๋ฒˆํ˜ธ) - ์ค‘๋ณต๊ธˆ์ง€(UK_PNO), NULL ํ—ˆ์šฉ์•ˆํ•จ(NN_PNO), -- GENDER(์„ฑ๋ณ„) - '๋‚จ' ํ˜น์€ '์—ฌ'๋กœ ์ž…๋ ฅ(CK_GENDER), -- PHONE(์—ฐ๋ฝ์ฒ˜), -- ADDRESS(์ฃผ์†Œ), -- STATUS(ํƒˆํ‡ด์—ฌ๋ถ€) - NOT NULL(NN_STATUS), 'Y' ํ˜น์€ 'N'์œผ๋กœ ์ž…๋ ฅ(CK_STATUS) -- ๊ฐ ์ปฌ๋Ÿผ์˜ ์ œ์•ฝ์กฐ๊ฑด์— ์ด๋ฆ„ ๋ถ€์—ฌํ•  ๊ฒƒ -- 5๋ช… ์ด์ƒ INSERTํ•  ๊ฒƒ CREATE TABLE USER_TEST( USER_NO NUMBER CONSTRAINT PK_USER_TEST PRIMARY KEY, USER_ID VARCHAR2(30) CONSTRAINT UK_USER_ID UNIQUE, USER_PWD VARCHAR2(30) CONSTRAINT NN_USER_PWD NOT NULL, PNO CHAR(14) CONSTRAINT NN_PNO NOT NULL, GENDER CHAR(3) CONSTRAINT CK_GENDER CHECK(GENDER IN ('๋‚จ','์—ฌ')), PHONE VARCHAR2(20), ADDRESS VARCHAR2(30), STATUS VARCHAR2(30)CONSTRAINT NN_STATUS NOT NULL, CONSTRAINT UK_PNO UNIQUE(PNO), CONSTRAINT CK_STATUS CHECK(STATUS IN('Y','N')) ); SELECT * FROM USER_TEST; COMMENT ON COLUMN USER_TEST.USER_NO IS 'ํšŒ์›๋ฒˆํ˜ธ'; COMMENT ON COLUMN USER_TEST.USER_ID IS 'ํšŒ์›์•„์ด๋””'; COMMENT ON COLUMN USER_TEST.USER_PWD IS 'ํšŒ์›๋น„๋ฐ€๋ฒˆํ˜ธ'; COMMENT ON COLUMN USER_TEST.PNO IS '์ฃผ๋ฏผ๋“ฑ๋ก๋ฒˆํ˜ธ'; COMMENT ON COLUMN USER_TEST.GENDER IS '์„ฑ๋ณ„'; COMMENT ON COLUMN USER_TEST.PHONE IS '์—ฐ๋ฝ์ฒ˜'; COMMENT ON COLUMN USER_TEST.ADDRESS IS '์ฃผ์†Œ'; COMMENT ON COLUMN USER_TEST.STATUS IS 'ํƒˆํ‡ด์—ฌ๋ถ€'; SELECT * FROM USER_TEST; -- ํ…Œ์ด๋ธ” ์‚ญ์ œ ๊ตฌ๋ฌธ DROP TABLE USER_TEST; -- ์ƒ˜ํ”Œ๋ฐ์ดํ„ฐ INSERT INTO USER_TEST VALUES (1, 'user01', 'pass01', '880122-1234567', '๋‚จ', '010-1111-9999', '์„œ์šธ์‹œ ๊ฐ•๋‚จ๊ตฌ ์—ญ์‚ผ๋™', 'N'); INSERT INTO USER_TEST VALUES (2, 'user02', 'pass02', '890222-2234567', '์—ฌ', '010-2222-9999', '์„œ์šธ์‹œ ๊ฐ•๋‚จ๊ตฌ ์‚ผ์„ฑ๋™', 'N'); INSERT INTO USER_TEST VALUES (3, 'user03', 'pass03', '900322-2234567', '์—ฌ', '010-3333-9999', '์„œ์šธ์‹œ ๊ฐ•๋‚จ๊ตฌ ์ฒญ๋‹ด๋™', 'Y'); INSERT INTO USER_TEST VALUES (4, 'user04', 'pass04', '910422-1234567', '๋‚จ', '010-4444-9999', '์„œ์šธ์‹œ ๊ฐ•๋‚จ๊ตฌ ๋„๊ณก๋™', 'N'); INSERT INTO USER_TEST VALUES (5, 'user05', 'pass05', '920522-2234567', '์—ฌ', '010-5555-9999', '์„œ์šธ์‹œ ๊ฐ•๋‚จ๊ตฌ ๋Œ€์น˜๋™', 'N'); SELECT * FROM USER_TEST; COMMIT; -------------------------------------------------------------------------------- -- ์„œ๋ธŒ์ฟผ๋ฆฌ๋ฅผ ์ด์šฉํ•œ ํ…Œ์ด๋ธ” ์ƒ์„ฑ --> ์ปฌ๋Ÿผ๋ช…, ๋ฐ์ดํ„ฐ ํƒ€์ž…, ์ปฌ๋Ÿผ ๊ฐ’์ด ๋ณต์‚ฌ๋˜๊ณ , -- ์ œ์•ฝ์กฐ๊ฑด์€ NOT NULL๋งŒ ๋ณต์‚ฌ๋จ CREATE TABLE EMPLOYEE_COPY AS SELECT * FROM EMPLOYEE; SELECT * FROM EMPLOYEE_COPY; -- ์‚ฌ๋ฒˆ, ์ด๋ฆ„, ๊ธ‰์—ฌ, ๋ถ€์„œ๋ช…, ์ง๊ธ‰๋ช…์œผ๋กœ ์ด๋ฃจ์–ด์ง„ -- EMPLOYEE_COPY2 ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•˜๊ณ  ๋ฐ์ดํ„ฐ ๋ณต์‚ฌ CREATE TABLE EMPLOYEE_COPY2 AS SELECT EMP_ID, EMP_NAME, SALARY, DEPT_TITLE, JOB_NAME FROM EMPLOYEE LEFT JOIN DEPARTMENT ON(DEPT_CODE=DEPT_ID) LEFT JOIN JOB USING(JOB_CODE); SELECT * FROM EMPLOYEE_COPY2;
-- -------------------------------------------------------- -- Vรฆrt: 127.0.0.1 -- Server-version: 10.1.36-MariaDB - mariadb.org binary distribution -- ServerOS: Win32 -- HeidiSQL Version: 9.5.0.5196 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping database structure for kaffemaskine CREATE DATABASE IF NOT EXISTS `kaffemaskine` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `kaffemaskine`; -- Dumping structure for tabel kaffemaskine.brygfunktioner CREATE TABLE IF NOT EXISTS `brygfunktioner` ( `id` int(11) NOT NULL AUTO_INCREMENT, `navn` varchar(100) NOT NULL, `beskrivelse` text NOT NULL, `tid` int(11) NOT NULL, `pun` text, `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1; -- Dumping data for table kaffemaskine.brygfunktioner: ~10 rows (approximately) /*!40000 ALTER TABLE `brygfunktioner` DISABLE KEYS */; INSERT INTO `brygfunktioner` (`id`, `navn`, `beskrivelse`, `tid`, `pun`, `created`, `modified`) VALUES (1, 'Kaffe', 'Sort kaffe uden sukker og mรฆlk', 10, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (2, 'Kaffe med sukker', 'Sort kaffe med sukker', 12, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (3, 'Kaffe med mรฆlk', 'Sort kaffe med mรฆlk', 12, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (4, 'Espresso', 'Halv kop med ekstra stรฆrk kaffe', 10, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (5, 'Mocca', 'Kvalitets kaffe fusioneret med kakao', 15, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (6, 'Wiener melange', 'En herlig blanding af kaffe med mรฆlk, sukker blandet med kakao', 15, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (7, 'Cappuccino', 'Espresso med skummet varm mรฆlk', 15, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (8, 'Cafelatte', 'Kaffe med 2/3 dele mรฆlk', 15, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (9, 'Kakao', 'Varm kakao lavet pรฅ vand', 10, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'), (10, 'Varmt vand', 'Kogende vand 99 grader... Hot, hot og hot.', 6, NULL, '2018-12-17 14:42:08', '2018-12-17 14:42:08'); /*!40000 ALTER TABLE `brygfunktioner` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
USE gcp_d65e847e3db0bf733ff7; #.................... # 4 skins INSERT INTO attires(type, source) VALUES ('skin','Cara1'); INSERT INTO attires(type, source) VALUES ('skin','Cara2'); INSERT INTO attires(type, source) VALUES ('skin','Cara3'); INSERT INTO attires(type, source) VALUES ('skin','Cara4'); #........................................................... # 4 hairs INSERT INTO attires(type, source) VALUES ('hair','Pelo1'); INSERT INTO attires(type, source) VALUES ('hair','Pelo2'); INSERT INTO attires(type, source) VALUES ('hair','Pelo3'); INSERT INTO attires(type, source) VALUES ('hair','Pelo4'); #......................................................... # 4 eyes INSERT INTO attires(type, source) VALUES ('eyes','Ojos1'); INSERT INTO attires(type, source) VALUES ('eyes','Ojos2'); INSERT INTO attires(type, source) VALUES ('eyes','Ojos3'); INSERT INTO attires(type, source) VALUES ('eyes','Ojos4'); #......................................................... # 4 mouths INSERT INTO attires(type, source) VALUES ('mouth','Boca1'); INSERT INTO attires(type, source) VALUES ('mouth','Boca2'); INSERT INTO attires(type, source) VALUES ('mouth','Boca3'); INSERT INTO attires(type, source) VALUES ('mouth','Boca4');
select round(ifnull(avg(cnt),0),2) as average_sessions_per_user from( select user_id, count(distinct session_id) cnt from activity where datediff('2019-07-27',activity_date)<30 and datediff('2019-07-27',activity_date)>=0 group by user_id ) a
ALTER PUBLICATION alterd_publication_event SET (publish = 'insert, update', publish_via_partition_root = false);
CREATE DATABASE IF NOT EXISTS `tp5_cmt` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `tp5_cmt`; -- ็”จๆˆท่กจ DROP TABLE IF EXISTS `cmt_user`; CREATE TABLE `cmt_user` ( `user_id` mediumint(6) unsigned NOT NULL AUTO_INCREMENT, `role_id` SMALLINT (6) NOT NULL DEFAULT '0', --่ง’่‰ฒid `parent_id` SMALLINT (6) NOT NULL DEFAULT '0', --ไธŠ็บงid `user_name` VARCHAR (100) NOT NULL DEFAULT '', --็”จๆˆทๅ `real_name` VARCHAR (100) NOT NULL DEFAULT '', --ๅง“ๅ `password` VARCHAR (100) NOT NULL DEFAULT '', --ๅฏ†็  `create_date` VARCHAR (10) DEFAULT '0', --ๅˆ›ๅปบๆ—ถ้—ด `qq` varchar(20) DEFAULT '', --่”็ณปๆ–นๅผ `email` varchar(20) DEFAULT '', `phone` varchar(20) DEFAULT '', `picture` varchar(1000) DEFAULT '', --ๅ›พ็‰‡่ทฏๅพ„ `status` tinyint(1) NOT NULL DEFAULT 1, --็Šถๆ€ PRIMARY KEY (`user_id`), KEY `user_name` (`user_name`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; -- ่ง’่‰ฒๅญ—ๅ…ธ่กจ DROP TABLE IF EXISTS `cmt_role`; CREATE TABLE `cmt_role` ( `role_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `role_name` VARCHAR (10) NOT NULL , PRIMARY KEY (`role_id`) )ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; INSERT INTO `cmt_role` VALUES (1,'็ฎก็†ๅ‘˜'); -- ่œๅ•่กจ๏ผŒๅญ˜ๅ…ฅๆ‰€ๆœ‰็š„่œๅ•ๅˆ—่กจ -- DROP TABLE IF EXISTS `cmt_menu`; CREATE TABLE `cmt_menu` ( `menu_id` SMALLINT (6) unsigned NOT NULL AUTO_INCREMENT, `menu_name` VARCHAR (40) NOT NULL DEFAULT '', --่œๅ•ๅ `parent_id` SMALLINT (6) NOT NULL DEFAULT '0', --ไธŠ็บงid `menu_url` VARCHAR (20) NOT NULL DEFAULT 'ๆ— ', --่œๅ•่ทฏ็”ฑ `listorder` SMALLINT (6) unsigned NOT NULL DEFAULT 0, --ๆŽ’ๅบ `status` tinyint(1) NOT NULL DEFAULT 1, PRIMARY KEY (`menu_id`) ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; INSERT INTO `cmt_menu` VALUES (1,'้ฆ–้กต',0,'/admin',100,1); INSERT INTO `cmt_menu` VALUES (2,'็ณป็ปŸ็ฎก็†',0,'',100,1); INSERT INTO `cmt_menu` VALUES (3,'็”จๆˆท็ฎก็†',2,'/user/index',100,1); INSERT INTO `cmt_menu` VALUES (4,'่ง’่‰ฒ็ฎก็†',2,'/role/index',90,1); INSERT INTO `cmt_menu` VALUES (5,'่œๅ•็ฎก็†',2,'/menu/index',90,1);
SELECT TOP 1 [FirstName] ,[LastName] FROM [EDDSDBO].[User] AS instUser (NOLOCK) JOIN [EDDSDBO].[UserCaseUser] AS caseUser (NOLOCK) ON instUser.[ArtifactID] = caseUser.[UserArtifactID] WHERE caseUser.[CaseUserArtifactID] = @CaseUserArtifactId AND caseUser.[CaseArtifactID] = @CaseArtifactId
DELETE FROM user_roles; DELETE FROM users; DELETE FROM dishes; DELETE FROM restaurants; DELETE FROM votes; ALTER SEQUENCE GLOBAL_SEQ RESTART WITH 100000; INSERT INTO users (name, email, password) VALUES ('Admin', 'admin@gmail.com', '$2a$10$nkIkAuiTPDwI1apyvvkALuGjLzlH4z6drw.P4.kRTzWnV7c5eai9K'), ('User', 'user@yandex.ru', '$2a$10$d1nYOalJluNlt5K/BPUnlOKT5A3LZ7irNzR2..vuorxd3SXkOwsSm'), ('User1', 'user1@yandex.ru', '$2a$10$d1nYOalJluNlt5K/BPUnlOKT5A3LZ7irNzR2..vuorxd3SXkOwsSm'); INSERT INTO user_roles (role, user_id) VALUES ('ROLE_ADMIN', 100000), ('ROLE_USER', 100001), ('ROLE_USER', 100002); INSERT INTO restaurants (name) VALUES ('Petrovich'), ('Italianec'), ('Stolovaya'), ('Bufet'), ('Dietka'), ('Pelmennaya'), ('Kartoshka'); INSERT INTO dishes (name, price, restaurant_id) VALUES ('Borsch', 100, 100006), ('Kotleta', 150, 100003), ('Scramble', 120, 100009), ('Fish', 130, 100004), ('Meat', 160, 100007), ('Cake', 140, 100008), ('Salad', 110, 100005), ('Noodles', 90, 100003), ('Shrimp', 140, 100004), ('Fish', 160, 100009), ('Beer', 130, 100007), ('Vine', 190, 100008), ('Apple juice', 100, 100006), ('Mango juice', 140, 100005), ('Pineapple juice', 120, 100004), ('Lacie', 170, 100005); INSERT INTO votes (user_id, restaurant_id, date) VALUES (100001, 100007, '2020-01-14'), (100002, 100008, '2020-01-14'), (100001, 100005, NOW()), (100002, 100006, NOW());
ALTER TABLE realty_users ADD COLUMN national_formatted_number TEXT; ALTER TABLE facebook_scraped_posts ADD COLUMN phone_number TEXT; ALTER TABLE facebook_scraped_posts ADD COLUMN national_formatted_number TEXT; ALTER TABLE vk_posts ADD COLUMN phone_number TEXT; ALTER TABLE vk_posts ADD COLUMN national_formatted_number TEXT; DROP VIEW IF EXISTS social_net_posts_vw; CREATE OR REPLACE VIEW social_net_posts_vw AS SELECT id AS post_id, 'FB' AS social_network, external_id, message, picture, link, rental_fee, room_count, phone_number, national_formatted_number, imported_dt, ext_created_dt, ext_updated_dt FROM facebook_scraped_posts UNION ALL SELECT id AS post_id, 'VK' AS social_network, external_id, message, picture, link, rental_fee, room_count, phone_number, national_formatted_number, imported_dt, ext_created_dt, ext_updated_dt FROM vk_posts;
-- #1 Select all the records from the "Customers" table. SELECT * FROM customers; -- #2 Get distinct countries from the Customers table. SELECT country FROM customers; -- #3 Get all the records from the table Customers where the Customerโ€™s ID starts with โ€œBLโ€. SELECT * FROM customers WHERE customer_id LIKE 'BL%'; -- #4 Get the first 100 records of the orders table. SELECT * FROM orders LIMIT 100; -- #5 Get all customers that live in the postal codes 1010, 3012, 12209, and 05023. SELECT * FROM customers WHERE postal_code IN ('1010', '3012', '12209', '05023'); -- #6 Get all orders where the ShipRegion is not equal to NULL. SELECT * FROM orders WHERE ship_region IS NOT NULL; -- #7 Get all customers ordered by the country, then by the city. SELECT * FROM customers ORDER BY country, city; -- #8 Add a new customer to the customers table. You can use whatever values. INSERT INTO customers (customer_id, company_name, contact_name, contact_title, address, city, region, postal_code, country, phone, fax) VALUES ('ABCDE', 'Kaleighs Kitchen', 'Kaleigh Grifin', 'Owner', '1234 Noneya Lane', 'Grand Rapids', 'MI', '49503', 'USA', '555-555-1234', '555-555-2345') -- #9 Update all ShipRegion to the value โ€˜EuroZoneโ€™ in the Orders table, where the ShipCountry is equal to France. UPDATE orders SET ship_region='EuroZone' WHERE ship_country='France'; -- #10 Delete all orders from `order_details` that have a quantity of 1. DELETE FROM order_details WHERE quantity=1; -- #11 Calculate the average, max, and min of the quantity at the `order details` table. SELECT AVG(quantity) FROM order_details; SELECT MAX(quantity) FROM order_details; SELECT MIN(quantity) FROM order_details; -- #12 Calculate the average, max, and min of the quantity at the `order details` table, grouped by the orderid. SELECT AVG(quantity) FROM order_details GROUP BY order_id; SELECT MAX(quantity) FROM order_details GROUP BY order_id; SELECT MIN(quantity) FROM order_details GROUP BY order_id; -- #13 Find the CustomerID that placed order 10290 (orders table) SELECT customer_id FROM orders WHERE order_id=10290; -- #14 Do an inner join, left join, right join on orders and customers tables. (These are three separate queries, one for each type of join.) SELECT * FROM orders INNER JOIN customers ON orders.customer_id = customers.customer_id; SELECT * FROM orders LEFT JOIN customers ON orders.customer_id = customers.customer_id; SELECT * FROM orders RIGHT JOIN customers ON orders.customer_id = customers.customer_id; -- #15 Use a join to get the ship city and ship country of all the orders which are associated with an employee who is in London. SELECT * FROM orders WHERE ship_country='London' JOIN -- #16 Use a join to get the ship name of all orders that include a discontinued product. (See orders, order_details, and products. 1 means discontinued.) -- #17 Get first names of all employees who report to no one. SELECT * FROM employees as subordinate JOIN employees as manager on employee.id = employee.reports_to -- #18 Get first names of all employees who report to Andrew.
CREATE TABLE IF NOT EXISTS SC_AudioApp.Album ( id SERIAL, name VARCHAR(80) NOT NULL, refArtists VARCHAR(80) NOT NULL, year INTEGER, CONSTRAINT pk_album PRIMARY KEY (id), CONSTRAINT un_album UNIQUE (name, refArtists) );
create or replace function delta_estrangeiro return int is --declaracao do cursor cursor c_new is select * from RFB_ESTRANGEIRO tb order by tb.uri; cursor c_old is select * from RFB_ESTRANGEIRO_old tbold order by tbold.uri; --declaracao das variaveis c_new uri RFB_ESTRANGEIRO.uri%TYPE; nome RFB_ESTRANGEIRO.NOME%TYPE; --declaracao das variaveis c_old uri_old RFB_ESTRANGEIRO.uri%TYPE; nome_old RFB_ESTRANGEIRO.NOME%TYPE; tupla_hash_new varchar2(4000 char); tupla_hash_old varchar2(4000 char); begin open c_new; open c_old; fetch c_new into uri, nome; if c_new%notfound then uri := null; end if; fetch c_old into uri_old, nome_old; if c_old%notfound then uri_old := null; end if; loop if uri is null then --acabou R, inserir os restantes R_old em delta negativo while uri_old is not null loop insert into rfb_estrangeiro_neg values (uri_old, nome_old); fetch c_old into uri_old, nome_old; if c_old%notfound then uri_old := null; exit; end if; end loop; end if; if uri_old is null then --acabou R_old, inserir o restante R em delta positivo while uri is not null loop insert into rfb_estrangeiro_pos values (uri, nome); fetch c_new into uri, nome; if c_new%notfound then uri := null; exit; end if; end loop; end if; if uri is null or uri_old is null then exit; end if; while uri_old>=uri loop if uri_old=uri then --faz comparacao das colunas tupla_hash_new := dbms_crypto.Hash(utl_raw.cast_to_raw(uri||nome),2); tupla_hash_old := dbms_crypto.Hash(utl_raw.cast_to_raw(uri_old||nome_old),2); if tupla_hash_new <> tupla_hash_old then insert into rfb_estrangeiro_neg values (uri_old, nome_old); insert into rfb_estrangeiro_pos values (uri, nome); end if; --se iguais, fetch em old fetch c_old into uri_old, nome_old; if c_old%notfound then uri_old := null; end if; else --insert pos, tupla n existe em R_old insert into rfb_estrangeiro_pos values (uri, nome); end if; fetch c_new into uri, nome; if c_new%notfound then uri := null; exit; end if; --apos o fetch emp acaba e recebe null no cnpj if uri_old is null then exit; end if; end loop; --insert neg, tupla n existe em R if uri_old is not null then insert into rfb_estrangeiro_neg values (uri_old, nome_old); fetch c_old into uri_old, nome_old; if c_old%notfound then uri_old := null; end if; end if; end loop; return 13; end; / --select delta_estabelecimento() /*set SERVEROUT on; declare delta number; begin delta := delta_estabelecimento; DBMS_OUTPUT.put_line(delta); end; /*/
-- ์—ฌ๊ธฐ๋Š” USER2 ์ž…๋‹ˆ๋‹ค
SELECT j.JobId, ISNULL(SUM(p.Price * op.Quantity), 0) AS [Total] FROM Orders AS o INNER JOIN OrderParts AS op ON op.OrderId = o.OrderId INNER JOIN Parts AS p ON p.PartId = op.PartId RIGHT JOIN Jobs AS j ON j.JobId = o.JobId GROUP BY j.JobId, j.FinishDate HAVING j.FinishDate IS NOT NULL ORDER BY [Total] DESC, j.JobId ASC
CREATE or REPLACE PROCEDURE CRM_CustomerInfo_Delete (id_1 integer, deleted_1 smallint, flag out integer , msg out varchar2, thecursor IN OUT cursor_define.weavercursor) AS begin UPDATE CRM_CustomerInfo SET deleted = deleted_1 WHERE ( id = id_1); delete from CRM_Contract where ( crmId = id_1); end; / delete from CRM_Contract where crmId in(select id from CRM_CustomerInfo where deleted = 1) /