blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
133
path
stringlengths
3
276
src_encoding
stringclasses
33 values
length_bytes
int64
23
9.61M
score
float64
2.52
5.28
int_score
int64
3
5
detected_licenses
listlengths
0
44
license_type
stringclasses
2 values
text
stringlengths
23
9.43M
download_success
bool
1 class
d97abe1388a87887dba4d1873faf78b398db18a8
SQL
brpapa/4720A-higeia
/populate.sql
UTF-8
12,520
2.703125
3
[]
no_license
-- patient para demonstração: asilveira -- doctor para demonstração: bpapa DELETE FROM `health_quote`; DELETE FROM `prescription`; DELETE FROM `medicine`; DELETE FROM `appointment`; DELETE FROM `doctor_week_opening_hour`; DELETE FROM `doctor`; DELETE FROM `doctor_medical_care_location`; DELETE FROM `doctor_specialization`; DELETE FROM `patient`; DELETE FROM `user`; DELETE FROM `address`; -- insere endereços INSERT INTO `address`(`uf`, `city`, `street`, `number`) VALUES ('SP','Botucatu','Amando de Barros',23), ('SP','Botucatu','Adolfo Lutz',10), ('SP','Bauru','Aviador Gomes Ribeiro',710), ('MG','Belo Horizonte','Santa Cecília',30), ('SP','Bauru','Siqueira Campos',123), ('SP','Botucatu','João Morato da Conceição',167), ('SP','Botucatu','Horácio Tadeu',1), ('SP','Botucatu','Regente Feijó',538), ('SP','Botucatu','General Telles',69), ('SP','Botucatu','Mario Figueiredo',40), ('SP','Bauru','Siqueira Campos',90), ('SP','Botucatu','Manoel Fernandes Cardoso',23), ('SP','Botucatu','Dr. Damião Pinheiro Machado',121), ('SP','Botucatu','João Morato da Conceição',2), ('SP','Botucatu','Marechal Otaviano Moscano',4); -- insere usuários INSERT INTO `user`(`id`, `password`, `first_name`, `last_name`, `gender`, `dob`, `email`, `phone`) VALUES ('jferreira','123','João','Ferreira','M','1997-01-01','jferreira@gmail.com','998737467'), ('halmeida','123','Henrique','Almeida','M','1960-06-01','henriquehal20@outlook.com','998549975'), ('jtalamonte','123','Jair','Talamonte','M','1955-08-12','jairtalamontebtu@yahoo.com','995482256'), ('emoraes','123','Everton','Moraes','M','1995-12-22','eversilva@hotmail.com','996256687'), ('flobo','123','Fernanda','Lobo','F','2015-11-04','fernandalobo2020@outlook.com','998549975'), ('imontenegro','123','Ingrid','Montenegro','F','1984-06-11','ingrid@bol.com','995482256'), ('mmiranda','123','Mauro','Miranda','M','2010-04-30','mauropmiranda@gmail.com','9935877785'), ('croberto','123','Claudio','Roberto','M','1965-05-30','claudiozbtu@outlook.com','992545569'), ('vmartins','123','Vicente','Martins','M','1973-08-15','vicentemt@hotmail.com','986524475'), ('ecosta','123','Elizabete','Costa','F','1980-04-22','liza.costa@outlook.com','996872254'), ('fleite','123','Francisco','Leite','M','1980-05-12','francisco.leite@gmail.com','995782256'), ('asilveira','123','Amanda','Silveira','F','1987-11-25','amanda.silveira@yahoo.com','996257730'), ('erodrigues','123','Elisângela','Rodrigues','F','1990-08-20','elisangela.rodrigues@higeia.com','982458875'), ('masilva','123','Mayara','Silva','F','1980-04-22','mayara.silva@higeia.com','996872254'), ('bpapa','123','Bruno','Papa','M','1990-02-25','bruno.papa@higeia.com','995475563'), ('thenrique','123','Thales','Henrique','M','1987-07-05','thales.henrique@higeia.com','996542257'), ('fbartoli','123','Fabio','Bartoli','M','1980-11-05','fabio.bartoli@higeia.com','996528824'); -- insere pacientes INSERT INTO `patient`(`id`, `address_id`, `blood_type`) VALUES ('jferreira', 4, 'AB+'), ('halmeida', 5, 'O-'), ('vmartins', 6, 'O+'), ('ecosta', 7, 'B+'), ('fleite', 8, 'AB-'), ('asilveira', 9, 'B-'), ('jtalamonte', 10, 'A+'), ('flobo', 11, 'O-'), ('emoraes', 12, 'B-'), ('imontenegro', 13, 'AB-'), ('mmiranda', 14, 'B-'), ('croberto', 15, 'A+'); -- insere especializações de doutores INSERT INTO `doctor_specialization`(`specialty`, `title`) VALUES ('Clínica médica', 'Clínico geral'), ('Pediatria', 'Pediatra'), ('Anestesiologia', 'Anestesiologista'), ('Ginecologia', 'Ginecologista'), ('Cardiologia', 'Cardiologista'), ('Ortopedia', 'Ortopedista'), ('Oftalmologia', 'Oftalmologista'), ('Psiquiatria', 'Psiquiatra'); -- insere locais de atendimento de doutores INSERT INTO `doctor_medical_care_location`(`name`, `type`, `address_id`) VALUES ('Pró Vida', 'Medical Clinic', 1), ('Cuide-se', 'Medical Office', 2), ('Vida a todos', 'Medical Center', 3); -- insere doutores INSERT INTO `doctor`(`id`, `crm_number`, `specialization_id`, `medical_care_location_id`) VALUES ('bpapa', 21313, 1, 2), ('erodrigues', 43133, 2, 1), ('masilva', 98932, 7, 3), ('thenrique', 54353, 4, 3), ('fbartoli', 96985, 5, 1); -- insere horários de atendimento na semana dos doutores INSERT INTO `doctor_week_opening_hour`(`doctor_id`, `weekday`, `hour`) VALUES ('bpapa', 'Monday', '08:00'), ('bpapa', 'Monday', '10:00'), ('bpapa', 'Monday', '14:00'), ('bpapa', 'Monday', '16:00'), ('bpapa', 'Tuesday', '08:00'), ('bpapa', 'Tuesday', '10:00'), ('bpapa', 'Tuesday', '14:00'), ('bpapa', 'Tuesday', '16:00'), ('bpapa', 'Wednesday', '08:00'), ('bpapa', 'Wednesday', '10:00'), ('bpapa', 'Wednesday', '14:00'), ('bpapa', 'Wednesday', '16:00'), ('bpapa', 'Thursday', '08:00'), ('bpapa', 'Thursday', '10:00'), ('bpapa', 'Thursday', '14:00'), ('bpapa', 'Thursday', '16:00'), ('bpapa', 'Friday', '08:00'), ('bpapa', 'Friday', '10:00'), ('bpapa', 'Friday', '14:00'), ('bpapa', 'Friday', '16:00'), ('erodrigues', 'Monday', '08:00'), ('erodrigues', 'Monday', '10:00'), ('erodrigues', 'Tuesday', '08:00'), ('erodrigues', 'Tuesday', '10:00'), ('erodrigues', 'Wednesday', '08:00'), ('erodrigues', 'Wednesday', '10:00'), ('erodrigues', 'Thursday', '08:00'), ('erodrigues', 'Thursday', '10:00'), ('erodrigues', 'Friday', '08:00'), ('erodrigues', 'Friday', '10:00'), ('masilva', 'Monday', '16:00'), ('masilva', 'Monday', '18:00'), ('masilva', 'Tuesday', '16:00'), ('masilva', 'Tuesday', '18:00'), ('masilva', 'Wednesday', '16:00'), ('masilva', 'Wednesday', '18:00'), ('masilva', 'Thursday', '16:00'), ('masilva', 'Thursday', '18:00'), ('masilva', 'Friday', '16:00'), ('masilva', 'Friday', '18:00'), ('thenrique', 'Monday', '08:00'), ('thenrique', 'Monday', '10:00'), ('thenrique', 'Monday', '14:00'), ('thenrique', 'Monday', '16:00'), ('thenrique', 'Tuesday', '08:00'), ('thenrique', 'Tuesday', '10:00'), ('thenrique', 'Tuesday', '14:00'), ('thenrique', 'Tuesday', '16:00'), ('thenrique', 'Wednesday', '08:00'), ('thenrique', 'Wednesday', '14:00'), ('thenrique', 'Wednesday', '16:00'), ('thenrique', 'Thursday', '08:00'), ('thenrique', 'Thursday', '16:00'), ('thenrique', 'Friday', '08:00'), ('thenrique', 'Friday', '10:00'), ('thenrique', 'Friday', '14:00'), ('fbartoli', 'Tuesday', '08:00'), ('fbartoli', 'Tuesday', '10:00'), ('fbartoli', 'Tuesday', '14:00'), ('fbartoli', 'Tuesday', '16:00'), ('fbartoli', 'Wednesday', '08:00'), ('fbartoli', 'Wednesday', '10:00'), ('fbartoli', 'Wednesday', '14:00'), ('fbartoli', 'Wednesday', '16:00'), ('fbartoli', 'Thursday', '08:00'), ('fbartoli', 'Thursday', '16:00'), ('fbartoli', 'Friday', '08:00'), ('fbartoli', 'Friday', '10:00'); -- insere consultas já realizadas INSERT INTO `appointment`(`date`, `start_time`, `doctor_id`, `patient_id`, `status`, `doctor_diagnosis`, `doctor_notes`, `rating`) VALUES ('2020-06-30', '08:00', 'erodrigues', 'flobo', 'completed', 'Caxumba', 'Paciente com inchaço nas glângulas salivares e febre de 38ºC, além de apresentar mal estar constante', 4), ('2020-06-30', '10:00', 'erodrigues', 'mmiranda', 'completed', 'Conjuntivite', 'Paciente apresenta vermelhidão nos olhos, inchaço na conjuntiva e secreção', 2), ('2020-06-29', '16:00', 'masilva', 'vmartins', 'completed', 'Teste de visão', 'Paciente veio para um teste de visão devido a dores de cabeça constante, porém seus exames não apresentarem quaisquer problemas oculares', 4), ('2020-07-01', '08:00', 'bpapa', 'fleite', 'completed', 'Infecção', 'Paciente com mal estar, febre alta e nauseas.', 2), ('2020-06-25', '08:00', 'fbartoli', 'imontenegro', 'completed', 'Falta de ar', 'Paciente encaminhado por outro doutor, apresenta falta de ar e sintomas de insuficiência cardíaca', 4), ('2020-06-26', '14:00', 'thenrique', 'asilveira', 'completed', 'Procedimento de rotina', 'Consulta rotineira para prevenção de doenças', 5), ('2020-06-26', '14:00', 'bpapa', 'asilveira', 'completed', 'Febre alta', 'Paciente com muita febre, não apresenta outros sintomas', 5), ('2020-06-26', '08:00', 'fbartoli', 'croberto', 'completed', 'Hipertensão', 'Paciente com tratamento rotineiro de hipertensão', 5), ('2020-06-24', '16:00', 'bpapa', 'ecosta', 'completed', 'Virose', 'Paciente apresenta vômito e diarréia, além de estar desidratado', 3), ('2020-06-24', '18:00', 'masilva', 'fleite', 'completed', 'Catarata', 'Paciente fazendo tratamento pós retirada de catarata. Apresenta boa cicatrização', 2), ('2020-06-24', '08:00', 'fbartoli', 'imontenegro', 'completed', 'Miocardite', 'Dores constantes no peito e pressão levemente acima do normal', 4), ('2020-06-23', '10:00', 'thenrique', 'fleite', 'completed', 'Exame de rotina', 'Exame de precaução', 5), ('2020-06-22', '14:00', 'bpapa', 'asilveira', 'completed', 'Tendinite', 'Paciente queixa-se de muita dor no braço', 5), ('2020-07-02', '08:00', 'fbartoli', 'halmeida', 'completed', 'Endocardite', 'Paciente se queixa de dores constantes no peito ao praticar atividades físicas', 4); -- insere consultas pendentes INSERT INTO `appointment`(`date`, `start_time`, `doctor_id`, `patient_id`, `status`) VALUES ('2020-06-24', '08:00', 'bpapa', 'asilveira', 'scheduled'), ('2020-06-30', '10:00', 'bpapa', 'asilveira', 'scheduled'), ('2020-06-08', '10:00', 'bpapa', 'asilveira', 'scheduled'); -- insere consultas futuras INSERT INTO `appointment`(`date`, `start_time`, `doctor_id`, `patient_id`, `status`) VALUES ('2020-07-27', '08:00', 'bpapa', 'jferreira', 'scheduled'), ('2020-07-27', '10:00', 'bpapa', 'jtalamonte', 'scheduled'), ('2020-07-29', '14:00', 'bpapa', 'vmartins', 'scheduled'), ('2020-07-30', '16:00', 'bpapa', 'halmeida', 'cancelled'), ('2020-07-23', '08:00', 'fbartoli', 'ecosta', 'scheduled'), ('2020-07-30', '18:00', 'masilva', 'imontenegro', 'scheduled'), ('2020-07-23', '16:00', 'thenrique', 'ecosta', 'scheduled'); -- insere medicamentos INSERT INTO `medicine`(`name`, `concentration_in_mg`, `way_of_use`) VALUES ('Amoxilina', 500, 'pill'), ('Alopurinol', 100, 'pill'), ('Atenolol', 50, 'pill'), ('Clonazepam', 2.5, 'mg'), ('Carvedilol', 6.25, 'mg'), ('Cloroquina', 150, 'pill'), ('Codeína', 30, 'pill'), ('Diazepam', 5, 'pill'), ('Dipirona', 500, 'mg'), ('Digoxina', 0.25, 'pill'), ('Furosemida', 40, 'pill'), ('Glicazida', 30, 'pill'), ('Glifage', 500, 'pill'), ('Hidroclorotiazida', 25, 'pill'), ('Ibuprofeno', 50, 'mg'), ('Isoniazida', 100, 'pill'), ('Itraconazol', 10, 'mg'), ('Lamivudina', 150, 'pill'), ('Lamotrigina', 50, 'pill'), ('Loratadina', 10, 'pill'), ('Metadona', 5, 'pill'), ('Metildopa', 250, 'pill'), ('Micardis', 60, 'mg'), ('Nicotina', 2, 'pill'), ('Noretisterona', 0.35, 'pill'), ('Paracetamol', 200, 'mg'), ('Pirimetamina', 25, 'pill'), ('Pramipexol', 0.25, 'pill'), ('Prednisona', 20, 'pill'), ('Rifampicina', 75, 'pill'), ('Ritonavir', 80, 'pill'), ('Sinvastatina', 10, 'pill'), ('Sulfadiazina', 500, 'pill'), ('Talidomida', 100, 'pill'), ('Tuberculina', 0.1, 'ml'), ('Valproato de Sodio', 288, 'pill'); -- insere prescrições INSERT INTO `prescription`(`appt_id`, `medicine_id`, `start_date`, `expiration_date`, `dose`, `dose_unit`, `frequency`, `frequency_per`) VALUES (1,9,'2020-06-30','2020-07-05',14,'mg',2,'day'), (4,26,'2020-07-01','2020-07-10',1,'pill',1,'day'), (5,24,'2020-06-25','2020-07-10',20,'mg',3,'day'), (7,27,'2020-06-26','2020-07-02',1,'pill',1,'day'), (7,12,'2020-07-01','2020-07-20',1,'pill',1,'day'), (8,13,'2020-06-26','2020-07-25',200,'mg',2,'day'), (9,8,'2020-06-24','2020-07-23',1,'pill',3,'day'), (11,24,'2020-06-24','2020-07-12',14,'mg',1,'day'); -- insere citações INSERT INTO `health_quote`(`quote`, `author`) VALUES ('It is health that is the real wealth, and not pieces of gold and silver.', 'Mahatma Gandhi'), ('To keep the body in good health is a duty…otherwise we shall not be able to keep the mind strong and clear.', 'Buddha'), ('To ensure good health: eat lightly, breathe deeply, live moderately, cultivate cheerfulness, and maintain an interest in life.', 'William Londen'), ('Physical fitness is the first requisite of happiness.', 'Joseph Pilates'), ('Good health is not something we can buy. However, it can be an extremely valuable savings account.', 'Anne Wilson Schaef'), ('I have chosen to be happy because it is good for my health.', 'Voltaire'), ('A sad soul can be just as lethal as a germ.', 'John Steinbeck'), ('Healthy citizens are the greatest asset any country can have.', 'Winston Churchill'), ('A good laugh and a long sleep are the best cures in the doctor’s book.', 'Irish proverb'), ('Health is a state of complete mental, social and physical well-being, not merely the absence of disease or infirmity.', 'World Health Organization');
true
f17b280267d85262ff4c0ca8804a54a17d65f794
SQL
Ranjana1996/SmartPill
/queries.sql
UTF-8
1,875
3.984375
4
[]
no_license
CREATE TABLE IF NOT EXISTS Type ( id INT PRIMARY KEY, title VARCHAR (32) UNIQUE, description VARCHAR (512) ); CREATE TABLE IF NOT EXISTS Users ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR (64), username VARCHAR (32) UNIQUE, password VARCHAR (64), typeId INT, FOREIGN KEY (typeId) REFERENCES Type (id) ON UPDATE CASCADE ON DELETE SET NULL ); CREATE TABLE IF NOT EXISTS UserDevice ( userId INT, platform INT, deviceId VARCHAR (128) UNIQUE, FOREIGN KEY (userId) REFERENCES Users (id) ON UPDATE CASCADE ON DELETE CASCADE ); CREATE TABLE IF NOT EXISTS PillBottle ( id INT AUTO_INCREMENT PRIMARY KEY, pill VARCHAR(128), courseId INT, description VARCHAR (1024) ); CREATE TABLE IF NOT EXISTS PillBottleDosage ( pillBottleId INT, timestamp TIME, FOREIGN KEY (pillBottleId) REFERENCES PillBottle (id) ON DELETE CASCADE ON UPDATE CASCADE ); CREATE TABLE IF NOT EXISTS UserPill ( userId INT, pillBottleId INT, FOREIGN KEY (userId) REFERENCES Users (id) ON DELETE CASCADE ON UPDATE CASCADE, FOREIGN KEY (pillBottleId) REFERENCES PillBottle (id) ON DELETE CASCADE ON UPDATE CASCADE, UNIQUE (userId, pillBottleId) ); INSERT INTO Type (id, title, description) VALUES (1, "Patient", "Patient"); INSERT INTO Type (id, title, description) VALUES (2, "Doctor", "Doctor"); INSERT INTO Users (name, username, password, typeId) VALUES ("Om", "omiyorulz", "sandbox123", 1); INSERT INTO Users (name, username, password, typeId) VALUES ("Bala", "bala", "blabla", 2); INSERT INTO PillBottle (id) VALUES (1); INSERT INTO PillBottleDosage (pillBottleId, timestamp) VALUES (1, "08:00:00"); INSERT INTO PillBottleDosage (pillBottleId, timestamp) VALUES (1, "15:00:00"); INSERT INTO UserPill (userId, pillBottleId) VALUES (1, 1); INSERT INTO UserPill (userId, pillBottleId) VALUES (2, 1);
true
ff63cd0b5aa5d17085dafa03447c1436da13fdef
SQL
AnastasiaKislyakova/warehouse_management_service
/warehouse_app/src/main/resources/db.migration/V1.0.0__init.sql
UTF-8
296
2.78125
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS warehouse_management; CREATE TABLE IF NOT EXISTS warehouse_management.items ( id SERIAL NOT NULL PRIMARY KEY, name VARCHAR(100) NOT NULL, amount INTEGER check (amount >= 0) NOT NULL, price BIGINT check (amount >= 0) NOT NULL );
true
47192bf5be9b12e8b1a4e6e92f81240ea2378386
SQL
leizhi/sfwine
/scripts/oracle/oracle-sqlplus/clear-fl_pushrecord.sql
GB18030
1,510
3.171875
3
[]
no_license
prompt PL/SQL Developer import file prompt Created on 2010524 һ by Administrator set feedback off set define off prompt Dropping fl_pushrecord_bk... drop table fl_pushrecord_bk cascade constraints; --start prompt Creating fl_pushrecord_bk create table fl_pushrecord_bk as select * from fl_pushrecord; prompt Delete < 2010-05-08 delete from fl_pushrecord where filltime < to_date('2010-05-08','yyyy-mm-dd'); prompt Creating fl_rest create table fl_rest as select * from fl_pushrecord where (CARCODE,CNGSATIONNO,CNGMACHINENO,TAGTYPE,to_char(filltime,'YYYY-MM-DD HH24:MI'),ID) in ( select CARCODE,CNGSATIONNO,CNGMACHINENO,TAGTYPE,to_char(filltime,'YYYY-MM-DD HH24:MI') ,MAX(ID) from fl_pushrecord group by CARCODE,CNGSATIONNO,CNGMACHINENO,TAGTYPE,to_char(filltime,'YYYY-MM-DD HH24:MI') having count(*) > 1 ); prompt delete fl_pushrecord delete from fl_pushrecord where (CARCODE,CNGSATIONNO,CNGMACHINENO,TAGTYPE,to_char(filltime,'YYYY-MM-DD HH24:MI')) in ( select CARCODE,CNGSATIONNO,CNGMACHINENO,TAGTYPE,to_char(filltime,'YYYY-MM-DD HH24:MI') from fl_pushrecord group by CARCODE,CNGSATIONNO,CNGMACHINENO,TAGTYPE,to_char(filltime,'YYYY-MM-DD HH24:MI') having count(*) > 1 ); insert into fl_pushrecord select * from fl_rest; update fl_pushrecord set CARCODE='س' where TAGTYPE=6; drop table fl_rest cascade constraints; --select * from fl_pushrecord t where t.tagtype=6; --delete from fl_pushrecord where carcode is null; --end set feedback on set define on prompt Done.
true
5cc2d56589ee1f3e0260f07f90be3cdd31eed970
SQL
blancowilson/saint-sql
/administrativo/Actualizar campo texento cuando hay decimales errardos.sql
UTF-8
875
3.25
3
[]
no_license
-- Un error que debe corregirse en el program no ejecutar sin un analisis previo update SACOMP set TExento= 0, TGravable= TGravable+TExento from sacomp where (TExento >-0.1 and TExento<0) or (TExento >0 and TExento<0.1) update SAACXP set TExento=0, baseimpo = BaseImpo+TExento from SAACXP where ((TExento >-0.1 and TExento<0) or (TExento >0 and TExento<0.1)) update tc set tc.TGravable = c.TGravable from SACOMP c inner join SATAXCOM tc on tc.NumeroD = c.NumeroD and tc.TipoCom = c.TipoCom where tc.TGravable <> c.TGravable and c.NumeroD not in('000823') select TExento,baseimpo, Monto, MtoTax,* from SAACXP where (TExento >-0.1 and TExento<0) or (TExento >0 and TExento<0.1) select tc.TGravable, c.TGravable, * from SACOMP c inner join SATAXCOM tc on tc.NumeroD = c.NumeroD and tc.TipoCom = c.TipoCom where tc.TGravable <> c.TGravable and c.NumeroD not in('000823')
true
75f2b95715b83a5f69494d862e099bdef5557788
SQL
simondvt/SQL-class
/Lab3/4_3.sql
UTF-8
165
3.59375
4
[]
no_license
DELETE FROM CORSI WHERE CodC IN ( SELECT C.CodC FROM (SELECT * FROM CORSI) C INNER JOIN PROGRAMMA P ON C.CodC = P.CodC GROUP BY C.CodC HAVING COUNT(*) < 2 );
true
b98cce26934489033bc09a529e99150569152aa5
SQL
prap44/Telkom-195
/t195.sql
UTF-8
277
2.734375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `t195_transactions` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `invoice` varchar(25) NOT NULL, `payment_code` varchar(20) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `invoice` (`invoice`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
true
e891051c10831f3beb3d8baa6866cf2cd53e7a41
SQL
Imbatentti/Tuntikirjanpito
/tunnit/database/CreateTable_tunnit.sql
UTF-8
1,218
3.421875
3
[]
no_license
CREATE TABLE KAYTTAJAT ( kayttaja_id int NOT NULL AUTO_INCREMENT, kayttajatunnus varchar(50) NOT NULL, email varchar(50) NOT NULL, enabled tinyint NOT NULL, etunimi varchar(50) NOT NULL, sukunimi varchar(50) NOT NULL, salasana varchar(500) NOT NULL, PRIMARY KEY (kayttaja_id) ); ALTER TABLE KAYTTAJAT AUTO_INCREMENT=1; CREATE TABLE TUNNIT ( tunti_id int NOT NULL AUTO_INCREMENT, tuntien_maara DECIMAL(5,2) NOT NULL, paivamaara TIMESTAMP NULL, kuvaus varchar(1000), kayttaja_id int NOT NULL, kayttajatunnus varchar (50) NOT NULL, PRIMARY KEY (tunti_id), FOREIGN KEY (kayttaja_id) REFERENCES KAYTTAJAT(kayttaja_id) ); ALTER TABLE TUNNIT AUTO_INCREMENT=1; CREATE TABLE OIKEUDET ( oikeudet_id integer NOT NULL AUTO_INCREMENT, rooli varchar(255) NOT NULL UNIQUE, PRIMARY KEY(oikeudet_id) ); ALTER TABLE OIKEUDET AUTO_INCREMENT=1; CREATE TABLE KAYTTAJAOIKEUDET ( id integer NOT NULL AUTO_INCREMENT, kayttajan_id integer NOT NULL, oikeus_id integer NOT NULL, PRIMARY KEY(id), FOREIGN KEY(kayttajan_id) REFERENCES KAYTTAJAT(kayttaja_id) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY(oikeus_id) REFERENCES OIKEUDET(oikeudet_id) ON DELETE NO ACTION ON UPDATE NO ACTION ); ALTER TABLE KAYTTAJAOIKEUDET AUTO_INCREMENT=1;
true
8fd3df8f75fae183996b5703eeba2431e518b569
SQL
StickFunFight/Filmatory
/DataBase en CSV/Losse Tabellen/userliking.sql
UTF-8
1,901
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 28 okt 2020 om 18:16 -- Serverversie: 10.4.14-MariaDB -- PHP-versie: 7.2.33 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: `filmatory` -- -- -------------------------------------------------------- -- -- Tabelstructuur voor tabel `userliking` -- CREATE TABLE `userliking` ( `Id` int(11) NOT NULL, `UserId` int(11) NOT NULL, `MovieId` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Gegevens worden geëxporteerd voor tabel `userliking` -- INSERT INTO `userliking` (`Id`, `UserId`, `MovieId`) VALUES (25, 13, 1549), (26, 13, 151455), (27, 13, 112749), (34, 1, 151769), (35, 1, 89427), (36, 1, 101072), (37, 1, 152), (38, 1, 8755), (39, 14, 59615), (40, 14, 59615), (41, 14, 54908), (42, 14, 46105), (43, 14, 7305), (44, 14, 3788), (45, 14, 2925), (46, 14, 165843), (47, 14, 123200), (48, 13, 6880), (49, 1, 181139), (50, 17, 2372), (51, 17, 65037), (52, 17, 128968), (53, 17, 59387), (54, 17, 44777), (55, 17, 6993), (56, 17, 6315); -- -- Indexen voor geëxporteerde tabellen -- -- -- Indexen voor tabel `userliking` -- ALTER TABLE `userliking` ADD PRIMARY KEY (`Id`); -- -- AUTO_INCREMENT voor geëxporteerde tabellen -- -- -- AUTO_INCREMENT voor een tabel `userliking` -- ALTER TABLE `userliking` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
01461a5d5ffe688fc2afa20a1b534970bd30afb0
SQL
kingtai168/lishi
/recruit-service/src/test/resources/config/commodity.sql
UTF-8
4,538
3.453125
3
[]
no_license
-- zt add start---- CREATE DATABASE /*!32312 IF NOT EXISTS*/`commodity` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */; USE `commodity`; DROP TABLE IF EXISTS `t_brand`; CREATE TABLE `t_brand` ( `id` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '主键', `code` varchar(35) COLLATE utf8_bin NOT NULL COMMENT 'code', `name` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT ' 品牌名称', `categoryId` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '商品类目ID', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='商品品牌'; DROP TABLE IF EXISTS `t_category`; CREATE TABLE `t_category` ( `id` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '主键', `code` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '类目编号', `name` varchar(30) COLLATE utf8_bin DEFAULT NULL COMMENT '类目名称', `level` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT '类目级别', `parentId` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '父类目ID', `status` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '商品状态', `lastUser` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '最后修改人', `commTypeStr` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '类目字符串 :百货食品>>零食>>>>瓜子', `sortNo` int(11) DEFAULT NULL COMMENT '树形同一级的节点排序号 ', `description` varchar(1000) COLLATE utf8_bin DEFAULT NULL COMMENT '描述', `deleteFlag` int(11) DEFAULT NULL COMMENT '删除标识 0未删除 1已删除', `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `updateTime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '更新时间', `isChild` int(11) DEFAULT NULL COMMENT '是否有子级' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='商品类目表'; DROP TABLE IF EXISTS `t_commattr`; CREATE TABLE `t_commattr` ( `id` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '主键', `code` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT 'code', `name` varchar(30) COLLATE utf8_bin DEFAULT NULL COMMENT '商品属性名称', `categoryId` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '类目code', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='商品属性表'; DROP TABLE IF EXISTS `t_commattrvalue`; CREATE TABLE `t_commattrvalue` ( `id` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '主键', `name` varchar(30) COLLATE utf8_bin DEFAULT NULL COMMENT '属性名称', `value` varchar(30) COLLATE utf8_bin DEFAULT NULL COMMENT '属性值', `attrId` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '属性ID-对应商品属性表', `code` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '属性值code', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='商品属性表值'; DROP TABLE IF EXISTS `t_district`; CREATE TABLE `t_district` ( `id` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '区域ID', `name` varchar(30) COLLATE utf8_bin DEFAULT NULL COMMENT '区域名称', `level` varchar(5) COLLATE utf8_bin DEFAULT NULL COMMENT '级别', `parentId` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '父区域code', `desc` varchar(1000) COLLATE utf8_bin DEFAULT NULL COMMENT '备注', `createDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `code` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '区域code', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='区域表'; DROP TABLE IF EXISTS `t_hiscategory`; CREATE TABLE `t_hiscategory` ( `id` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '主键', `categoryDesc` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '历史商品类目名称集', `shopId` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '店铺ID', `categoryId` varchar(35) COLLATE utf8_bin DEFAULT NULL COMMENT '最后一级类目ID', `code` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '历史类目ID', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='店铺历史类目表'; -- zt add end----
true
89d1a1d79644be1a7a3104ea94b4e403b396c2a3
SQL
y-agg/AttandanceManagmentSystem
/data.sql
UTF-8
6,319
2.875
3
[]
no_license
/* SQLyog Community Edition- MySQL GUI v5.22a Host - 5.0.19-nt : Database - dbattandance ********************************************************************* Server version : 5.0.19-nt */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; create database if not exists `dbattandance`; USE `dbattandance`; /*!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' */; /*Table structure for table `admin` */ DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `uname` varchar(100) default NULL, `pwd` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `admin` */ insert into `admin`(`uname`,`pwd`) values ('a','a'); /*Table structure for table `attandance` */ DROP TABLE IF EXISTS `attandance`; CREATE TABLE `attandance` ( `sname` varchar(100) default NULL, `pstatus` varchar(100) default NULL, `course` varchar(100) default NULL, `sem` varchar(100) default NULL, `date` varchar(100) default NULL, `tname` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `attandance` */ insert into `attandance`(`sname`,`pstatus`,`course`,`sem`,`date`,`tname`) values ('a','P','BCA','SEM-1','2015-10-06 14:25:40','d'),('ravi','P','BCA','SEM-1','2015-10-06 16:06:01','d'); /*Table structure for table `attandancenoti` */ DROP TABLE IF EXISTS `attandancenoti`; CREATE TABLE `attandancenoti` ( `sname` varchar(100) default NULL, `pstatus` varchar(100) default NULL, `course` varchar(100) default NULL, `sem` varchar(100) default NULL, `date` varchar(100) default NULL, `tname` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `attandancenoti` */ insert into `attandancenoti`(`sname`,`pstatus`,`course`,`sem`,`date`,`tname`) values ('aa',' ghgj jh jk hj gghj ghj gjjhhjh gjhgjh gj','BCA','SEM-1','2015-10-06 14:27:07','d'),('ravi','your attandance is short','BCA','SEM-1','2015-10-06 16:06:45','d'); /*Table structure for table `faq` */ DROP TABLE IF EXISTS `faq`; CREATE TABLE `faq` ( `faqid` varchar(100) default NULL, `name` varchar(100) default NULL, `faqdetails` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `faq` */ insert into `faq`(`faqid`,`name`,`faqdetails`) values ('5002','jh','jhj'); /*Table structure for table `marksdetails` */ DROP TABLE IF EXISTS `marksdetails`; CREATE TABLE `marksdetails` ( `tname` varchar(100) default NULL, `sname` varchar(100) default NULL, `enroll` varchar(100) default NULL, `course` varchar(100) default NULL, `sem` varchar(100) default NULL, `marks` varchar(100) default NULL, `aggre` varchar(100) default NULL, `attachement` mediumtext, `msg_date` varchar(100) default NULL, `a7` varchar(100) default NULL, `a8` varchar(100) default NULL, `a9` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `marksdetails` */ insert into `marksdetails`(`tname`,`sname`,`enroll`,`course`,`sem`,`marks`,`aggre`,`attachement`,`msg_date`,`a7`,`a8`,`a9`) values ('d','aa','55','BCA','SEM-1','678','A+','attachement_f2016124732.jpg','2016-05-09 16:17:32','55','55','55'); /*Table structure for table `reply` */ DROP TABLE IF EXISTS `reply`; CREATE TABLE `reply` ( `faqid` varchar(100) default NULL, `name` varchar(100) default NULL, `faqdetails` varchar(100) default NULL, `reply` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `reply` */ insert into `reply`(`faqid`,`name`,`faqdetails`,`reply`) values ('5002','jh','jhj','df dfdfd'); /*Table structure for table `signup` */ DROP TABLE IF EXISTS `signup`; CREATE TABLE `signup` ( `sid` varchar(100) default NULL, `uname` varchar(100) default NULL, `pwd` varchar(100) default NULL, `fname` varchar(100) default NULL, `lname` varchar(100) default NULL, `gender` varchar(100) default NULL, `dob` varchar(100) default NULL, `mob` varchar(100) default NULL, `email` varchar(100) default NULL, `address` varchar(100) default NULL, `city` varchar(100) default NULL, `pin` varchar(100) default NULL, `state` varchar(100) default NULL, `country` varchar(100) default NULL, `course` varchar(100) default NULL, `semester` varchar(100) default NULL, `tname` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `signup` */ insert into `signup`(`sid`,`uname`,`pwd`,`fname`,`lname`,`gender`,`dob`,`mob`,`email`,`address`,`city`,`pin`,`state`,`country`,`course`,`semester`,`tname`) values ('1003','aa','aa','f','dsd','Male','06-10-2015','445','pramod@gmail.com','fdd','Select','','','Select','CS','SEM-1','Select'),('1004','ravi','ravi','Ravi','Kumar','Male','01-10-1997','9865322154','pramod@gmail.com','new delhi','Delhi','9856','Delhi','India','CS','SEM-1','d'),('1005','Prabhjot','p','f','Dhamija','Male','01-06-2016','9999836563','prab1995@gmail.com','1234 kb','Delhi','110005','new delhi','India','Civil','SEM-6','d'); /*Table structure for table `teacher` */ DROP TABLE IF EXISTS `teacher`; CREATE TABLE `teacher` ( `sid` varchar(100) default NULL, `uname` varchar(100) default NULL, `pwd` varchar(100) default NULL, `fname` varchar(100) default NULL, `lname` varchar(100) default NULL, `gender` varchar(100) default NULL, `dob` varchar(100) default NULL, `mob` varchar(100) default NULL, `email` varchar(100) default NULL, `address` varchar(100) default NULL, `city` varchar(100) default NULL, `pin` varchar(100) default NULL, `state` varchar(100) default NULL, `country` varchar(100) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*Data for the table `teacher` */ insert into `teacher`(`sid`,`uname`,`pwd`,`fname`,`lname`,`gender`,`dob`,`mob`,`email`,`address`,`city`,`pin`,`state`,`country`) values ('4002',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),('4003','d','d','d','d','Male','06-10-2015','9865322154','pramod@gmail.com','','Select','','','Select'); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
true
0e76995dce4843cb77b66ad89023390ea41e4156
SQL
rickieleehao/WebStore
/sql_for_phpmyadmin/faq.sql
UTF-8
2,332
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 28, 2021 at 06:48 AM -- Server version: 5.7.31 -- PHP Version: 7.3.21 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: `data` -- -- -------------------------------------------------------- -- -- Table structure for table `faq` -- DROP TABLE IF EXISTS `faq`; CREATE TABLE IF NOT EXISTS `faq` ( `fid` varchar(3) NOT NULL, `question` varchar(500) NOT NULL, `answer` varchar(500) NOT NULL, PRIMARY KEY (`fid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `faq` -- INSERT INTO `faq` (`fid`, `question`, `answer`) VALUES ('F01', 'What payment method do you accept?', 'We accept Visa and MasterCard on our website.\r\n\r\nOur sales staff can also process other payment types manually, including checks and internet banking. To pay using one of these methods, please contact us to place your order.'), ('F02', 'How can I track my shipment?', 'Our staff will be happy to provide you with a tracking number to track your parcel. Please contact us for your tracking number, and then track it on the courier website.'), ('F03', 'What is the warranty period?', 'We guarantee all of our products for a period of five years from date of shipment, provided that the product does not show signs of abuse and has not been used incorrectly.'), ('F04', 'What is your returns policy?', 'We will accept product returns for credit or exchange up to 30 DAYS after the dispatch date, provided that the returned product(s) are unused, and in original condition - complete with original documents and packaging.'), ('F05', 'I\'ve forgotten my password. How do I reset it?', 'You can go to Contact Us by contact us with various way'), ('F06', 'What shipping provider do you use?', 'We use Poslaju,J&T and Gdex'); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
64093ccdca854c7aa040f652570c5247277693b0
SQL
BadeaAndreea/afaceri_electronice
/sql/myApp.sql
UTF-8
1,532
3.46875
3
[]
no_license
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- CREATE DATABASE myApp; -- CREATE DATABASE `catalog` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `myApp`; CREATE TABLE IF NOT EXISTS `sejururis` ( `id` smallint(5) NOT NULL AUTO_INCREMENT, `titlu` varchar(30) DEFAULT NULL, `destinatie` varchar(500) DEFAULT NULL, `pret` float(5), `durata` int(4), `link` varchar(255), `createdAt` timestamp, `updatedAt` timestamp, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `voucheres` ( `id` smallint(5) NOT NULL AUTO_INCREMENT, `id_sejur` smallint(5), `valoare` int(4) DEFAULT NULL, `end_date` timestamp, `status` smallint(4), `createdAt` timestamp, `updatedAt` timestamp, PRIMARY KEY (`id`), FOREIGN KEY (`id_sejur`) REFERENCES sejur(`id`) ON DELETE CASCADE ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `wishlist` ( `id_wishlist` smallint(5) NOT NULL AUTO_INCREMENT, `id_sejur` smallint(5), `suma` float(5), PRIMARY KEY (`id_wishlist`), FOREIGN KEY (`id_sejur`) REFERENCES sejur(`id_sejur`) ON DELETE CASCADE ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; UPDATE TABLE sejururis SET link='unLink' WHERE id=1; INSERT INTO sejururis(titlu, destinatie, pret, durata, link) values('Vacanta Grecia','Mikonos',300,5,"link"); INSERT INTO voucheres(id_sejur, valoare, end_date, status) values(1, 15, str_to_date('21-12-2020','%d-%m-%Y'), 0);
true
078057b408f68be381d67d95d09661b719b23ec7
SQL
XVNYATA/JavaEE
/Oracle/day01/4.创建用户和表空间.sql
GB18030
2,053
3.890625
4
[]
no_license
/** Oracleͨûȥݡ Ҫ洢,Ƚռ䣬ٽûٽ(ͼ) 1. ԼԼûҪʹSystemϵͳû 2. ûһҪʹñռ */ /* ռ䣺 ӳʵʴ洢λãһûʹһռ */ /* ռ ռ ļ·С Զչ ע⣺ ռj1604 ִгɹ·»һj1604.dbfļ */ CREATE TABLESPACE j1604 DATAFILE 'C:\oracle\product\10.2.0\oradata\orcl\j1604.dbf' SIZE 20M AUTOEXTEND ON ; --ɾռͬʱɾռڵļ DROP TABLESPACE j1604 INCLUDING CONTENTS AND DATAFILES; --ע: ǧҪֶȥɾļdbfļ --ֵѯбռ select * from DBA_TABLESPACES; --ѯļ select * from DBA_DATA_FILES; /** û */ create user j1604 identified by j1604 default tablespace J1604 temporary tablespace TEMP; create user j1509 -- û û identified by j1509 -- ַ default tablespace j1509 --Ĭϱռ ռ temporary tablespace TEMP; --ʱռ ռ --ɾû,ע⣺dropɾûбͱݣռ仹 drop user j1604; -- ֵ䣬ѯû select * from dba_users; --oracleݿĬϴһûscott,tigerûĬ ALTER USER scott ACCOUNT LOCK; -- ALTER USER scott ACCOUNT UNLOCK;-- -- Ȩ޸j1604û GRANT CONNECT TO j1604; -- Ȩ޸j1604ûj1604ԽȨٸһû grant connect to j1604 with admin option; -- ɫ grant DBA to j1604 with admin option; -- ջȨ REVOKE CONNECT FROM j1604;
true
06804d86bd7fca550efae8f35d5cfa275070c4a1
SQL
monteiroluana/D.Evolution_imobiliaria
/ImobiliariaTest/src/main/java/resources/bdImobiliaria.sql
UTF-8
260
2.84375
3
[ "MIT" ]
permissive
create database imobiliariadb; use imobiliariadb; create table usuario( id bigint not null auto_increment, nome varchar(100) not null, email varchar(100) null, login varchar(30) not null, senha varchar(30) not null, primary key(id) ) select * from usuario
true
5d069408a5f15d83536afa13f64430e47a7d4742
SQL
Kunal6699/COLLEGE-ADMISSION-AND-STUDENT-MANAGEMENT
/exportdetails1/export-excel.sql
UTF-8
2,387
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 15, 2017 at 05:51 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 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: `export-excel` -- -- -------------------------------------------------------- -- -- Table structure for table `student` -- CREATE TABLE `student` ( `student_id` int(11) NOT NULL, `student_name` varchar(255) NOT NULL, `student_username` varchar(255) NOT NULL, `student_email` varchar(255) NOT NULL, `student_password` varchar(255) NOT NULL, `student_grade` varchar(255) NOT NULL, `student_image` varchar(255) NOT NULL, `created_date` varchar(100) NOT NULL, `status` varchar(50) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `student` -- INSERT INTO `student` (`student_id`, `student_name`, `student_username`, `student_email`, `student_password`, `student_grade`, `student_image`, `created_date`, `status`) VALUES (1, 'Aravinth', '', 'anthu1510@gmail.com', 'e10adc3949ba59abbe56e057f20f883e', '', '', '', 'active'), (3, 'priya', 'priya', 'ragapriya@gmail.com', 'fcea920f7412b5da7be0cf42b8c93759', 'A+', '', '', 'active'), (4, 'murali', 'murali', 'murali@gmail.com', 'e10adc3949ba59abbe56e057f20f883e', 'S+', '', '', ''), (14, 'Andhu', 'Andhu1510', 'anthu1510@gmail.com', '123455', '', '', '', 'active'), (7, 'sudha', 'sudha', 'sudham@gmail.com', 'e10adc3949ba59abbe56e057f20f883e', 'A+', 'bg-01.jpg', '', 'active'), (9, 'vidhya', 'vidhya', 'vidhu@gmail.com', 'e10adc3949ba59abbe56e057f20f883e', 'A+', 'Hydrangeas.jpg', '', 'active'), (13, 'Andhu', 'Andhu1510', 'anthu1510@gmail.com', '123455', '', '', '', 'active'); -- -- Indexes for dumped tables -- -- -- Indexes for table `student` -- ALTER TABLE `student` ADD PRIMARY KEY (`student_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `student` -- ALTER TABLE `student` MODIFY `student_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
8d8dabe642a1facdc45a040675a28b05aa65ca4f
SQL
Matt1208Dev/VillageGreen
/v_produits-fournisseurs.sql
UTF-8
514
2.796875
3
[]
no_license
-- Vue produits-fournisseurs CREATE OR REPLACE VIEW V_produits_fournisseurs AS SELECT `pro_id` AS `idProduit`, `pro_ref` AS `RefProduit`, `pro_label` AS `Libelle`, `pro_ppet` AS `PA HT`, `pro_spet` AS `PV HT`, `pro_phy_stk` AS `Stock`, `pro_lock` AS `Verrou`, `pro_add_date` AS `DateAjout`, `sup_id` AS `idFournisseur`, `sup_type` AS `TypeFournisseur`, `sup_name` AS `Nom`, `sup_contact` AS `Contact`, `sup_phone` AS `Telephone`, `sup_mail` AS `Mail` FROM `products` JOIN `suppliers` ON `pro_sup_id` = `sup_id`;
true
17479aacdc090731aa08dedf15ee1f3f4694a963
SQL
Tahmid-islam/my-portfolio-website
/portfolio.sql
UTF-8
3,824
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 10, 2020 at 06:52 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 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: `portfolio` -- -- -------------------------------------------------------- -- -- Table structure for table `contact` -- CREATE TABLE `contact` ( `ID` int(11) NOT NULL, `First_Name` varchar(20) NOT NULL, `Last_Name` varchar(20) NOT NULL, `Email` varchar(50) NOT NULL, `Message` varchar(800) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `contact` -- INSERT INTO `contact` (`ID`, `First_Name`, `Last_Name`, `Email`, `Message`) VALUES (1, 'Tahmid', 'Islam', 'tahmid231@gmail.com', 'Hiii'), (2, 'Tahmid', 'Islam', 'tahmid231@gmail.com', 'A paragraph is a series of related sentences developing a central idea, called the topic. Try to think about paragraphs in terms of thematic unity: a paragraph is a sentence or a group of sentences that supports one central, unified idea. Paragraphs add one idea at a time to your broader argument.'), (3, 'Ahanaf', 'Islam', 'tahmid2331@gmail.com', 'Hello everyone'), (11, 'Masrur', 'Islam', 'm231@gmail.com', 'Hello'), (12, 'Masrur', 'Islam', 'm231@gmail.com', 'Hello'), (13, 'Masrur', 'Islam', 'm231@gmail.com', 'Hello'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `ID` int(11) NOT NULL, `Name` varchar(30) NOT NULL, `User_Name` varchar(30) NOT NULL, `Password` varchar(20) NOT NULL, `Gender` varchar(8) NOT NULL, `Programming_Skill` varchar(20) NOT NULL, `Contact_No` bigint(15) NOT NULL, `Email` varchar(20) NOT NULL, `University` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`ID`, `Name`, `User_Name`, `Password`, `Gender`, `Programming_Skill`, `Contact_No`, `Email`, `University`) VALUES (1, 'Tahmid', 'tahmid231', '778899', 'Male', 'Android', 1706348352, 'tahmid231@gmail.com', 'Brac University'), (11, 'Tahmid', 'tahmid231', '123', 'Female', 'Java', 1706348352, 'tahmid231@gmail.com', 'Brac University'), (12, 'Ahanaf', 'ahanaf231', '61279', 'Female', 'Java', 1706348352, 'tahmid2331@gmail.com', 'East West University'), (13, 'Tahmid', 'tahmid231', '12345', 'Female', 'Java', 1706348352, 'tahmid231@gmail.com', 'North South University'), (14, '', '', '', 'No Butto', 'No Button Selected', 0, '', ''), (15, 'Tahmid', 'tahmid231', '9999', 'Other', 'Android', 1706348352, 'tahmid231@gmail.com', 'North South University'), (16, 'Ahanaf', 'ahanaf231', '0000', 'Female', 'Java', 1706348352, 'tahmid231@gmail.com', 'North South University'), (17, 'Tahmid', 'tahmid231', '777', 'Female', 'Java', 1706348352, 'tahmid231@gmail.com', 'North South University'), (18, 'Hamid', 'Hamid121', '61279', 'Male', 'Android', 1706348352, 'm231@gmail.com', 'North South University'); -- -- Indexes for dumped tables -- -- -- Indexes for table `contact` -- ALTER TABLE `contact` ADD PRIMARY KEY (`ID`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`ID`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `contact` -- ALTER TABLE `contact` MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
d54635e64af537506c8e4ad0ff9996813a2581bc
SQL
paaaattighe/swcguild
/SQL Exercises/ProcedureWithScope.sql
UTF-8
276
2.84375
3
[]
no_license
CREATE PROCEDURE EmployeeGetAll AS BEGIN SELECT * FROM Employees END CREATE PROCEDURE RegionInsert( @RegionDescription nchar(50), @RegionId int output ) AS BEGIN INSERT INTO Region (RegionDescription) VALUES (@RegionDescription); SET @RegionId = SCOPE_IDENTITY(); END
true
cbf7f8f340da64d2cbc577d23632fd2a4add1cfb
SQL
pendelhaven3/magic
/alterscripts/alterscript-1.39.0.sql
UTF-8
360
2.875
3
[]
no_license
insert into PROMO_REDEMPTION_REWARD (PROMO_REDEMPTION_ID, PRODUCT_ID, UNIT, QUANTITY) select a.ID, c.PRODUCT_ID, c.UNIT, PRIZE_QUANTITY from PROMO_REDEMPTION a join PROMO b on b.ID = a.PROMO_ID join PROMO_TYPE_1_RULE c on c.PROMO_ID = b.ID where b.PROMO_TYPE_ID = 1 and a.POST_IND = 'Y'; alter table PROMO_REDEMPTION drop column PRIZE_QUANTITY;
true
b47ddfe17be12b3941ea8874e6ab1c006614bfb4
SQL
sylingd/Yesf-Example
/user.sql
UTF-8
1,653
3.296875
3
[ "MIT" ]
permissive
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50721 Source Host : localhost:3306 Source Schema : video Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 Date: 10/05/2019 08:59:25 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for token -- ---------------------------- DROP TABLE IF EXISTS `token`; CREATE TABLE `token` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `user` int(11) UNSIGNED NOT NULL, `token` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `create_time` datetime(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `token`(`token`) USING BTREE, INDEX `uid`(`user`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `name`(`name`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;
true
70a5736512d99d835e27da6a54ba52931e213534
SQL
nhatsmrt/DatabasePractice
/LeetCode/1045. Customers Who Bought All Products/Solution.sql
UTF-8
240
3.5625
4
[]
no_license
/* Write your T-SQL query statement below */ select distinct c.customer_id from customer c where not exists ( (select product_key from product) except (select product_key from customer c2 where c2.customer_id = c.customer_id) )
true
7c8aa796e82fd2c052e712141a7e14c4f6ea7e3d
SQL
Martloni/Udemy-SQL-Bootcamp
/SQL statement Fundamentals.sql
UTF-8
4,576
4.34375
4
[]
no_license
-- SELECT COUNT(DISTINCT amount) FROM payment; -- SELECT * FROM customer LIMIT 5; --SELECT first_name, last_name FROM customer --ORDER BY first_name DESC; --SELECT first_name, last_name FROM customer --ORDER BY last_name DESC; --SELECT first_name, last_name FROM customer --ORDER BY first_name ASC, last_name ASC; --SELECT first_name FROM customer --ORDER BY last_name --SELECT customer_id,amount FROM payment --ORDER BY amount DESC LIMIT 10; --SELECT title, film_id FROM film --ORDER BY film_id --LIMIT 5; -- ************************************ BETWEEN STATEMENT ***************************************** -- BETWEEN STATEMENT - match a value against a range of values -- example: value BETWEEN low AND high; --SELECT customer_id, amount FROM payment --WHERE amount BETWEEN 8 and 9; --SELECT customer_id, amount FROM payment --WHERE amount NOT BETWEEN 8 and 9; --SELECT amount, payment_date FROM payment --WHERE payment_date BETWEEN '2007-02-07' and '2007-02-15'; -- ************************************ IN STATEMENT ***************************************** /* You use the IN operator with the WHERE clause to check if a value matches any value in a list of values. The syntax of the IN operator is as follows: value IN(value1,value2,...) The expression returns true if the value matches any value in the list. i.e., value1,value2,etc... The list of values is not limited to a list of numbers or strings but also a result set of a SELECT statement as shown in the following query: value IN(SELECT value FROM tbl_name) Just like with the BETWEEN statement, you can use NOT to adjust an IN statement ... (NOT IN) */ /* SELECT customer_id, rental_id,return_date FROM rental WHERE customer_id IN (1,2) ORDER BY return_date DESC; SELECT customer_id, rental_id,return_date FROM rental WHERE customer_id IN (7,13,10) ORDER BY return_date DESC; The above code gives same result as the following: SELECT customer_id, rental_id,return_date FROM rental WHERE customer_id = 7 OR customer_id = 13 OR customer_id = 10 ORDER BY return_date DESC; */ /* ************************************ LIKE Statement ***************************************** LIKE operator is case-sensitive!! An example of LIKE statment's use: Suppose the store manager asks you to find a customer that they do not remember the name exactly, but remembers first name is jen. LIKE operator in PostgreSQL can do the following query: SELECT first_name,last_name FROM customer WHERE first_name LIKE 'Jen%'; Notice that the WHERE clause contains a special expression: the first_name, the LIKE operator and a string that contains a percent (%) character, \ which is referred to as a "pattern". Can also use "NOT LIKE" The query retruns rows whose values in the first name column begin with Jen and may be followed by any sequence of characters. This technique is called pattern matching. */ /* SELECT first_name, last_name FROM customer WHERE first_name LIKE 'Jen%'; SELECT first_name, last_name FROM customer WHERE first_name LIKE '%y'; -- for frist names that end in 'y' */ /* SELECT first_name, last_name FROM customer WHERE first_name LIKE '%er%'; -- for frist names that have 'er' between the first and last letter. */ /* The percent sign (%) matches any sequence of characters, from location 0 through infinity (the last) character and the underscore (_) is going to match for any single character. */ /* SELECT first_name, last_name FROM customer WHERE first_name LIKE '_her%'; -- returns first names that have only a single character followed by "her" */ -- ILIKE operator removes case-sensitivity!! /* SELECT first_name, last_name FROM customer WHERE first_name ILIKE 'BaR%'; -- */ -- Challenge: "How many payment transactions were greater than $5.00?" /* SELECT COUNT (amount) FROM payment WHERE amount > 5; */ -- Challenge: "How many actors have a first nmae that starts with the letter 'P'?" /* SELECT COUNT (*) FROM actor WHERE first_name LIKE 'P%'; */ -- Challenge: "How many unique districts are our customers from?" /* SELECT COUNT (DISTINCT district) FROM address; */ -- Challenge: "Retrieve the list of names for those distinct districts from the previous question." /* SELECT DISTINCT district FROM address; */ -- Challenge: "How many films have a rating of R, and a replacement cost between $5 and %15?" /* SELECT COUNT (*) FROM film WHERE rating = 'R' AND replacement_cost BETWEEN 5 and 15; */ -- Challenge: "How many films havve the word "Truman" somewhere in the title?" /* SELECT COUNT (*) FROM film WHERE title ILIKE '%Truman%'; */
true
b58eace64c42393f829f76ac882855fafb7cd9bd
SQL
ghoshmithun/ImpProjectDoc
/AT US Activity Preference Model SSoni/AT_US_Act_Pref_Training_v3_ssoni.sql
UTF-8
17,526
3.546875
4
[]
no_license
--- File last updated - 5th July 2017 -- Set hive options use ssoni; set mapred.job.queue.name=bdload; set hive.cli.print.header=true; --Set the variables. Run this everytime running hive. Also, change these parameters when initiating a new scoring script set first_quarter_start_date = '2016-04-01'; set first_quarter_end_date = '2016-06-30'; set second_quarter_start_date = '2016-07-01'; set second_quarter_end_date = '2016-09-30'; set third_quarter_start_date = '2016-10-01'; set third_quarter_end_date = '2016-12-31'; set fourth_quarter_start_date = '2017-01-01'; set fourth_quarter_end_date = '2017-03-31'; set date_for_datediff = '2017-04-01'; --- purch_window_end_date + 1 --Get the data of crmanalytics stored at a place. --drop table if exists ssoni.crmanalyticsdata; create table ssoni.crmanalyticsdata stored as orc as select distinct masterkey,customerkey,unknownshopperid from crmanalytics.customerresolution where customerkey is not null; --352,465,005 --Check browsing history of last quarter same year --drop table if exists ssoni.at_lastqrtr_clicks; create table ssoni.at_lastqrtr_clicks as select distinct unk_shop_id, visit_num, pagename, purchaseid, country, t_time_info, substr(prop1,1,6) as style_cd from omniture.hit_data_t where (instr(pagename,'at:browse')>0 or instr(pagename,'mobile:at')>0) and (date_time) between ${hiveconf:fourth_quarter_start_date} and ${hiveconf:fourth_quarter_end_date} and prop33 = 'product'; -- taking 2015 June to 2016 May for training and 2016 June to 2016 August for observation --run 29,465,202 --drop table if exists ssoni.at_product_clicks_desc_activity_master_notnull; create table ssoni.at_product_clicks_desc_activity_master_notnull as select d.masterkey,c.activity,a.*,b.mdse_corp_desc from ssoni.at_lastqrtr_clicks a inner join (select distinct style_cd,mdse_corp_desc from mds_new.ods_product_t where mdse_corp_desc='ATH DIR') b on a.style_cd=b.style_cd inner join ssoni.at_product_activity_list c on b.style_cd = c.style_cd left outer join (select distinct unknownshopperid,masterkey from crmanalytics.customerresolution ) d on a.unk_shop_id=d.unknownshopperid where d.masterkey is not null; --run 10,700,544 --drop table if exists ssoni.at_clicks_mk_activity; create table ssoni.at_clicks_mk_activity as select masterkey,activity,count(distinct t_time_info) as items_browsed from ssoni.at_product_clicks_desc_activity_master_notnull group by masterkey,activity; --run 1,753,932 -------------------------------Browsing history section ends-------------------------------- -------------------------------Abandon basket section starts-------------------------------- --drop table if exists ssoni.at_bagadd; create table ssoni.at_bagadd as select distinct unk_shop_id, visit_num, pagename, purchaseid, country, t_time_info, substr(prop1,1,6) as style_cd from omniture.hit_data_t where (instr(pagename,'at:browse')>0 or instr(pagename,'mobile:at')>0) and (date_time) between ${hiveconf:fourth_quarter_start_date} and ${hiveconf:fourth_quarter_end_date} and prop33='inlineBagAdd'; --run 4,976,141 --drop table if exists ssoni.at_purchasenull; create table ssoni.at_purchasenull as select distinct unk_shop_id,visit_num from ssoni.at_lastqrtr_clicks where unk_shop_id != "" and (PurchaseID IS NULL or PurchaseID=='' or PurchaseID==' '); --run 106,974,000 (12,777,230 with distinct) --drop table if exists ssoni.at_abandon_basket_product_master_notnull; create table ssoni.at_abandon_basket_product_master_notnull as select a.* , c.*,d.masterkey from ssoni.at_bagadd a inner join ssoni.at_purchasenull b on a.unk_shop_id=b.unk_shop_id and a.visit_num=b.visit_num inner join ssoni.at_product_activity_list c on a.style_cd=c.style_cd left outer join (select distinct unknownshopperid,masterkey from crmanalytics.customerresolution) d on a.unk_shop_id=d.unknownshopperid where d.masterkey is not null; --run 136,332,431 (3,025,417 with distinct in at_purchasenull) 2,575,742 --drop table if exists ssoni.at_abandon_mk_activity; create table ssoni.at_abandon_mk_activity as select masterkey,activity,count(distinct t_time_info) as items_abandoned from ssoni.at_abandon_basket_product_master_notnull group by masterkey,activity; --run 819,159 -------------------------------Abandon basket section ends-------------------------------- ------------------------------Target variable window section starts----------------------------------- --drop table if exists ssoni.at_pred_window; create table ssoni.at_pred_window as select customer_key,item_qty,product_key from mds_new.ods_orderline_t where brand='AT' and country='US' and unix_timestamp(transaction_date,'yyyy-MM-dd') between date_add(${hiveconf:first_quarter_start_date},367) and date_add(${hiveconf:first_quarter_end_date},367) and order_status in ('R','O') and item_qty>0 and sales_amt>0; --run 3,441,907 --drop table if exists ssoni.at_pred_master_notnull; create table ssoni.at_pred_master_notnull as select a.customer_key,a.item_qty,a.product_key,b.mdse_corp_desc,c.style_cd,c.activity,d.masterkey from ssoni.at_pred_window a inner join mds_new.ods_product_t b on a.product_key=b.product_key inner join ssoni.at_product_activity_list c on b.style_cd = c.style_cd left outer join (select distinct customerkey,masterkey from crmanalytics.customerresolution) d on a.customer_key=d.customerkey where d.masterkey is not null and b.mdse_corp_desc = 'ATH DIR'; --run 3,242,840 --drop table if exists ssoni.at_pred_mk_activity; create table ssoni.at_pred_mk_activity as select masterkey,activity,sum(item_qty) as items_purch_pred_window from ssoni.at_pred_master_notnull group by masterkey,activity; --run 1,234,167 ------------------------------Target variable window section ends----------------------------------- ------------------------------Last year purchase history quarterwise section starts----------------------------------- --drop table if exists ssoni.at_first_qrtr_purch; create table ssoni.at_first_qrtr_purch as select customer_key,item_qty,product_key from mds_new.ods_orderline_t where brand='AT' and country='US' and unix_timestamp(transaction_date,'yyyy-MM-dd') between ${hiveconf:first_quarter_start_date} and ${hiveconf:first_quarter_end_date} and order_status in ('R','O') and item_qty>0 and sales_amt>0; --run 3,342,392 --drop table if exists ssoni.at_first_qrtr_master_notnull; create table ssoni.at_first_qrtr_master_notnull as select a.customer_key,a.item_qty,a.product_key,b.mdse_corp_desc,c.style_cd,c.activity,d.masterkey from ssoni.at_first_qrtr_purch a inner join mds_new.ods_product_t b on a.product_key=b.product_key inner join ssoni.at_product_activity_list c on b.style_cd = c.style_cd left outer join (select distinct customerkey,masterkey from crmanalytics.customerresolution) d on a.customer_key=d.customerkey where d.masterkey is not null and b.mdse_corp_desc = 'ATH DIR'; --run 1,158,832 --drop table if exists ssoni.at_first_qrtr_mk_activity; create table ssoni.at_first_qrtr_mk_activity as select masterkey,activity,sum(item_qty) as items_purch_first_qrtr from ssoni.at_first_qrtr_master_notnull group by masterkey,activity; --run 635,435 ----------------Second quarter------------ --drop table if exists ssoni.at_second_qrtr_purch; create table ssoni.at_second_qrtr_purch as select customer_key,item_qty,product_key from mds_new.ods_orderline_t where brand='AT' and country='US' and unix_timestamp(transaction_date,'yyyy-MM-dd') between ${hiveconf:second_quarter_start_date} and ${hiveconf:second_quarter_end_date} and order_status in ('R','O') and item_qty>0 and sales_amt>0; --run 2,240,839 --drop table if exists ssoni.at_second_qrtr_master_notnull; create table ssoni.at_second_qrtr_master_notnull as select a.customer_key,a.item_qty,a.product_key,b.mdse_corp_desc,c.style_cd,c.activity,d.masterkey from ssoni.at_second_qrtr_purch a inner join mds_new.ods_product_t b on a.product_key=b.product_key inner join ssoni.at_product_activity_list c on b.style_cd = c.style_cd left outer join (select distinct customerkey,masterkey from crmanalytics.customerresolution) d on a.customer_key=d.customerkey where d.masterkey is not null and b.mdse_corp_desc = 'ATH DIR'; --run 934,593 --drop table if exists ssoni.at_second_qrtr_mk_activity; create table ssoni.at_second_qrtr_mk_activity as select masterkey,activity,sum(item_qty) as items_purch_second_qrtr from ssoni.at_second_qrtr_master_notnull group by masterkey,activity; --run 524,525 ---------------------Third quarter details --------------------- --drop table if exists ssoni.at_third_qrtr_purch; create table ssoni.at_third_qrtr_purch as select customer_key,item_qty,product_key from mds_new.ods_orderline_t where brand='AT' and country='US' and unix_timestamp(transaction_date,'yyyy-MM-dd') between ${hiveconf:third_quarter_start_date} and ${hiveconf:third_quarter_end_date} and order_status in ('R','O') and item_qty>0 and sales_amt>0; --run 3,338,227 --drop table if exists ssoni.at_third_qrtr_master_notnull; create table ssoni.at_third_qrtr_master_notnull as select a.customer_key,a.item_qty,a.product_key,b.mdse_corp_desc,c.style_cd,c.activity,d.masterkey from ssoni.at_third_qrtr_purch a inner join mds_new.ods_product_t b on a.product_key=b.product_key inner join ssoni.at_product_activity_list c on b.style_cd = c.style_cd left outer join (select distinct customerkey,masterkey from crmanalytics.customerresolution) d on a.customer_key=d.customerkey where d.masterkey is not null and b.mdse_corp_desc = 'ATH DIR' ; --run 1,868,947 --drop table if exists ssoni.at_third_qrtr_mk_activity; create table ssoni.at_third_qrtr_mk_activity as select masterkey,activity,sum(item_qty) as items_purch_third_qrtr from ssoni.at_third_qrtr_master_notnull group by masterkey,activity; --run 900,070 ---------------------Fourth quarter details ----------------- --drop table if exists ssoni.at_fourth_qrtr_purch; create table ssoni.at_fourth_qrtr_purch as select customer_key,item_qty,product_key from mds_new.ods_orderline_t where brand='AT' and country='US' and unix_timestamp(transaction_date,'yyyy-MM-dd') between unix_timestamp('2016-03-01','yyyy-MM-dd') and unix_timestamp('2016-05-31','yyyy-MM-dd') and order_status in ('R','O') and item_qty>0 and sales_amt>0; --run 3,141,332 --drop table if exists ssoni.at_fourth_qrtr_master_notnull; create table ssoni.at_fourth_qrtr_master_notnull as select a.customer_key,a.item_qty,a.product_key,b.mdse_corp_desc,c.style_cd,c.activity,d.masterkey from ssoni.at_fourth_qrtr_purch a inner join mds_new.ods_product_t b on a.product_key=b.product_key inner join ssoni.at_product_activity_list c on b.style_cd = c.style_cd left outer join (select distinct customerkey,masterkey from crmanalytics.customerresolution) d on a.customer_key=d.customerkey where d.masterkey is not null and b.mdse_corp_desc = 'ATH DIR'; --run 2,784,339 --drop table if exists ssoni.at_fourth_qrtr_mk_activity; create table ssoni.at_fourth_qrtr_mk_activity as select masterkey,activity,sum(item_qty) as items_purch_fourth_qrtr from ssoni.at_fourth_qrtr_master_notnull group by masterkey,activity; --run 1,080,279 ------------------------------Last year purchase history quarterwise section ends----------------------------------- ----------------------------- Recency of browse and abandon section starts------------------------------------------- --drop table if exists ssoni.at_abandon_unixtime; create table ssoni.at_abandon_unixtime as select a.*,b.date_time from ssoni.at_abandon_basket_product_master_notnull a inner join (select * from omniture.hit_data_t where date_time between ${hiveconf:fourth_quarter_start_date} and ${hiveconf:fourth_quarter_end_date}) b on a.unk_shop_id=b.unk_shop_id and a.visit_num=b.visit_num and a.pagename=b.pagename and a.hier1=b.hier1 and a.prop1=b.prop1 and a.purchaseid=b.purchaseid and a.prop33=b.prop33 and a.country=b.country and a.t_time_info=b.t_time_info; --run --drop table if exists ssoni.at_abandon_maxdt; create table ssoni.at_abandon_maxdt as select masterkey,activity,round(datediff(${hiveconf:date_for_datediff},max(date_time))/90,2) as recency_abandon from ssoni.at_abandon_unixtime group by masterkey,activity; --drop table if exists ssoni.at_clicks_unixtime; create table ssoni.at_clicks_unixtime as select a.*,b.date_time from ssoni.at_product_clicks_desc_activity_master_notnull a inner join (select * from omniture.hit_data_t where date_time between ${hiveconf:fourth_quarter_start_date} and ${hiveconf:fourth_quarter_end_date}) b on a.unk_shop_id=b.unk_shop_id and a.visit_num=b.visit_num and a.pagename=b.pagename and a.hier1=b.hier1 and a.prop1=b.prop1 and a.purchaseid=b.purchaseid and a.prop33=b.prop33 and a.country=b.country and a.t_time_info=b.t_time_info; --drop table if exists ssoni.at_clicks_maxdt; create table ssoni.at_clicks_maxdt as select masterkey,activity,round(datediff(${hiveconf:date_for_datediff},max(date_time))/90,2) as recency_click from ssoni.at_clicks_unixtime group by masterkey,activity; --run 1,753,932 ----------------------------- Recency of browse and abandon section ends------------------------------------------- -- This table combines the masterkeys and activities from all the tables --drop table if exists ssoni.at_all_mk_activity; create table ssoni.at_all_mk_activity as select distinct combined.masterkey,combined.activity from ( select a.masterkey,a.activity from at_clicks_mk_activity a union all select b.masterkey,b.activity from at_abandon_mk_activity b union all select c.masterkey,c.activity from at_pred_mk_activity c union all select d.masterkey,d.activity from at_first_qrtr_mk_activity d union all select e.masterkey,e.activity from at_second_qrtr_mk_activity e union all select f.masterkey,f.activity from at_third_qrtr_mk_activity f union all select g.masterkey,g.activity from at_fourth_qrtr_mk_activity g ) combined ; --run 3,949,252 -- This table adds the variables as columns to the above table --drop table if exists ssoni.at_all_variables create table ssoni.at_all_variables as select a.masterkey,a.activity, coalesce(b.items_browsed,0) as items_browsed, coalesce(c.items_abandoned,0) as items_abandoned, coalesce(d.items_purch_pred_window,0) as items_purch_pred_window, coalesce(e.items_purch_first_qrtr,0) as items_purch_first_qrtr, coalesce(f.items_purch_second_qrtr,0) as items_purch_second_qrtr, coalesce(g.items_purch_third_qrtr,0) as items_purch_third_qrtr, coalesce(h.items_purch_fourth_qrtr,0) as items_purch_fourth_qrtr, coalesce(i.recency_abandon,1) as recency_abandon, coalesce(j.recency_click,1) as recency_click from at_all_mk_activity a left outer join at_clicks_mk_activity b on a.masterkey=b.masterkey and a.activity=b.activity left outer join at_abandon_mk_activity c on a.masterkey=c.masterkey and a.activity=c.activity left outer join at_pred_mk_activity d on a.masterkey=d.masterkey and a.activity=d.activity left outer join at_first_qrtr_mk_activity e on a.masterkey=e.masterkey and a.activity=e.activity left outer join at_second_qrtr_mk_activity f on a.masterkey=f.masterkey and a.activity=f.activity left outer join at_third_qrtr_mk_activity g on a.masterkey=g.masterkey and a.activity=g.activity left outer join at_fourth_qrtr_mk_activity h on a.masterkey=h.masterkey and a.activity=h.activity left outer join at_abandon_maxdt i on a.masterkey=i.masterkey and a.activity=i.activity left outer join at_clicks_maxdt j on a.masterkey=j.masterkey and a.activity=j.activity; --run 3,949,252 --This table groups the variables by masterkey so as to normalize in the next table --drop table if exists ssoni.at_all_variables_grouped; create table ssoni.at_all_variables_grouped as select masterkey,sum(items_abandoned) as sum_items_abandoned, sum(items_browsed) as sum_items_browsed, sum(items_purch_first_qrtr) as sum_items_purch_first_qrtr, sum(items_purch_second_qrtr) as sum_items_purch_second_qrtr, sum(items_purch_third_qrtr) as sum_items_purch_third_qrtr, sum(items_purch_fourth_qrtr) as sum_items_purch_fourth_qrtr from at_all_variables group by masterkey; --run 2,055,134 --drop table if exists ssoni.at_final_table; create table ssoni.at_final_table as select a.masterkey,a.activity, (case when b.sum_items_abandoned >0 then a.items_abandoned/b.sum_items_abandoned else 0.0 end) as nrml_items_abandoned, (case when b.sum_items_browsed >0 then a.items_browsed/b.sum_items_browsed else 0.0 end) as nrml_items_browsed, (case when b.sum_items_purch_first_qrtr >0 then a.items_purch_first_qrtr/b.sum_items_purch_first_qrtr else 0.0 end) as nrml_items_purch_first_qrtr, (case when b.sum_items_purch_second_qrtr >0 then a.items_purch_second_qrtr/b.sum_items_purch_second_qrtr else 0.0 end) as nrml_items_purch_second_qrtr, (case when b.sum_items_purch_third_qrtr >0 then a.items_purch_third_qrtr/b.sum_items_purch_third_qrtr else 0.0 end) as nrml_items_purch_third_qrtr, (case when b.sum_items_purch_fourth_qrtr >0 then a.items_purch_fourth_qrtr/b.sum_items_purch_fourth_qrtr else 0.0 end) as nrml_items_purch_fourth_qrtr, a.recency_abandon,a.recency_click,a.items_purch_pred_window from at_all_variables a left outer join at_all_variables_grouped b on a.masterkey = b.masterkey ; --run 3,949,252 ------------------------------Final table for initial analysis above------------------------
true
cd79e1a81c3917e3dd4c3379ce802a51078d7983
SQL
lutfiadysh/binjas
/binjas_polri.sql
UTF-8
6,234
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 11 Okt 2019 pada 05.45 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.1.32 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: `binjas_polri` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktur dari tabel `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2019_10_11_024742_ms_users', 2), (5, '2019_10_11_025614_tr_body_mass_index', 3), (6, '2019_10_11_030228_tr_tkj', 4), (7, '2019_10_11_030733_tr_bdp', 5), (8, '2019_10_11_030929_tr_prestasi', 6), (10, '2019_10_11_031255_ms_anak', 7); -- -------------------------------------------------------- -- -- Struktur dari tabel `ms_anak` -- CREATE TABLE `ms_anak` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` text COLLATE utf8mb4_unicode_ci NOT NULL, `nama` text COLLATE utf8mb4_unicode_ci NOT NULL, `jk` char(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tgl_lahir` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktur dari tabel `ms_users` -- CREATE TABLE `ms_users` ( `id` bigint(20) UNSIGNED NOT NULL, `password` text COLLATE utf8mb4_unicode_ci NOT NULL, `nama` text COLLATE utf8mb4_unicode_ci NOT NULL, `pangkat` text COLLATE utf8mb4_unicode_ci NOT NULL, `tgl_lahir` date NOT NULL, `nip` text COLLATE utf8mb4_unicode_ci NOT NULL, `kesatuan` text COLLATE utf8mb4_unicode_ci NOT NULL, `gol` text COLLATE utf8mb4_unicode_ci NOT NULL, `upload_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktur dari tabel `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktur dari tabel `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `users` -- INSERT INTO `users` (`id`, `name`, `email`, `role`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Operator', 'operator@lavishkreate.com', 'operator', '2019-10-04 03:28:01', '$2y$10$vUYEJxQraIdKhVrv4lbNX.PdlFYxYi5XTIHaaarCyHdq/BouS4d9a', NULL, '2019-10-04 03:28:01', '2019-10-04 03:28:01'), (2, 'User', 'user@lavishkreate.com', 'user', '2019-10-04 03:28:01', '$2y$10$9zvLFdjLVyx.f9qG2DIL.uSfVb2gDKKU9kojQHD2Ih6ONZO2UD1We', NULL, '2019-10-04 03:28:01', '2019-10-04 03:28:01'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `ms_anak` -- ALTER TABLE `ms_anak` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `ms_users` -- ALTER TABLE `ms_users` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indeks untuk tabel `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT untuk tabel `ms_anak` -- ALTER TABLE `ms_anak` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `ms_users` -- ALTER TABLE `ms_users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
6f28fea09b0574b54cd559fe7dc61086c5fa618b
SQL
j7ng/CLFY_SA
/SA/Tables/ADFCRM_CARRIER_SWITCH_COVERAGE.sql
UTF-8
780
2.90625
3
[]
no_license
CREATE TABLE sa.adfcrm_carrier_switch_coverage ( source_parent VARCHAR2(30 BYTE), target_parent VARCHAR2(30 BYTE), warning VARCHAR2(30 BYTE) ); COMMENT ON TABLE sa.adfcrm_carrier_switch_coverage IS 'This table is used to hold upgrade combinations source phone''s carrier and target phone''s carrier that would impact the existing service coverage.'; COMMENT ON COLUMN sa.adfcrm_carrier_switch_coverage.source_parent IS 'Reference to table_x_parent.x_parent_name to store the source phone''s parent.'; COMMENT ON COLUMN sa.adfcrm_carrier_switch_coverage.target_parent IS 'Reference to table_x_parent.x_parent_name to store the target phone''s parent. '; COMMENT ON COLUMN sa.adfcrm_carrier_switch_coverage.warning IS 'holds yes or no values on warning for upgrades ';
true
756d4f0109ebf5a7d2aaa192dfbc1e8094522478
SQL
pm2kjiagm/bbsmax
/bbsmax5_src/MaxLabs.bbsMax.Project/Database/MsSql/Procedures/v30/bx_GetThreadRanksByThreadID.sql
UTF-8
356
2.71875
3
[]
no_license
-- ============================================= -- Author: <sek> -- Create date: <2006/12/26> -- Description: <根据threadID获取信息> -- ============================================= CREATE PROCEDURE [bx_GetThreadRanksByThreadID] @ThreadID int AS SET NOCOUNT ON SELECT * FROM [bx_ThreadRanks] WITH(NOLOCK) WHERE ThreadID=@ThreadID RETURN
true
5830e24557d4c53d32d6f7f29cfab03128fe3bf9
SQL
lfbettcher/Launch-Academy
/java-movie-validations/src/main/resources/db/migration/V3__associate_movies_with_studios_and_genre.sql
UTF-8
139
2.890625
3
[]
no_license
ALTER TABLE movies ADD FOREIGN KEY (genre_id) REFERENCES genres(id); ALTER TABLE movies ADD FOREIGN KEY (studio_id) REFERENCES studios(id);
true
b3a16bc38c7e202464ba732ad2c49eb616e451dd
SQL
danlamarca/sistemareservas
/SistemaReservas_vs2013_Entrega220815/MODELAGEM/Modelagem/Script_DDL.sql
ISO-8859-1
3,752
3.8125
4
[]
no_license
BEGIN TRANSACTION Use SistemaReservas print 'Criando Tabelas' IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_FILIAL') BEGIN CREATE TABLE TB_FILIAL( CODFILIAL INT IDENTITY(1,1) NOT NULL, DESCRICAO VARCHAR(50), LOCALIDADE VARCHAR(100) CONSTRAINT PK_FILIAL PRIMARY KEY(CODFILIAL) ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_SALA') BEGIN CREATE TABLE TB_SALA( CODSALA INT IDENTITY(1,1) NOT NULL, CODFILIAL INT, DESCRICAO VARCHAR(100) CONSTRAINT PK_SALA PRIMARY KEY(CODSALA), CONSTRAINT FK_TB_SALA_FILIAL FOREIGN KEY(CODFILIAL) REFERENCES TB_FILIAL ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_USUARIO') BEGIN CREATE TABLE TB_USUARIO( CODUSUARIO INT IDENTITY(1,1) NOT NULL, NOME VARCHAR(100), MATRICULA CHAR(8), ENDERECO VARCHAR(200) CONSTRAINT PK_USUARIO PRIMARY KEY(CODUSUARIO) ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_CLIENTE') BEGIN CREATE TABLE TB_CLIENTE( CODCLIENTE INT IDENTITY(1,1) NOT NULL, NOME VARCHAR(100), CPF VARCHAR(30), ENDERECO VARCHAR(200) CONSTRAINT PK_CLIENTE PRIMARY KEY(CODCLIENTE) ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_ACOMPANHAMENTO_ITEM') BEGIN CREATE TABLE TB_ACOMPANHAMENTO_ITEM( CODACOMPANHAMENTOITEM INT IDENTITY(1,1) NOT NULL, ITEM VARCHAR(50), DESCRICAO VARCHAR(100) CONSTRAINT PK_ACOMPANHAMENTO_ITEM PRIMARY KEY(CODACOMPANHAMENTOITEM) ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_RESERVA') BEGIN CREATE TABLE TB_RESERVA( CODRESERVA INT IDENTITY(1,1) NOT NULL, CODSALA INT, CODUSUARIO INT, DATAINICIO DATETIME, DATAFIM DATETIME, DESCRICAO VARCHAR(1000), CODACOMPANHAMENTOITEM INT, CLIENTE INT, CONSTRAINT PK_RESERVA PRIMARY KEY(CODRESERVA), CONSTRAINT FK_RESERVA_SALA FOREIGN KEY(CODSALA) REFERENCES TB_SALA, --CONSTRAINT FK_RESERVA_USUARIO FOREIGN KEY(CODUSUARIO) REFERENCES TB_USUARIO, CONSTRAINT FK_TB_RESERVA_ACOMPANHAMENTO_ITEM FOREIGN KEY(CODACOMPANHAMENTOITEM) REFERENCES TB_ACOMPANHAMENTO_ITEM ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_RESERVA_TEMP') BEGIN CREATE TABLE TB_RESERVA_TEMP( CODRESERVATEMP INT IDENTITY(1,1) NOT NULL, CODSALA INT, CODUSUARIO INT, DATAINICIO DATETIME, DATAFIM DATETIME, DESCRICAO VARCHAR(1000), CODACOMPANHAMENTOITEM INT CONSTRAINT PK_RESERVA_TEMP PRIMARY KEY(CODRESERVATEMP), CONSTRAINT FK_RESERVA_SALA_TEMP FOREIGN KEY(CODSALA) REFERENCES TB_SALA, CONSTRAINT FK_RESERVA_USUARIO_TEMP FOREIGN KEY(CODUSUARIO) REFERENCES TB_USUARIO, CONSTRAINT FK_TB_RESERVA_TEMP_ACOMPANHAMENTO_ITEM FOREIGN KEY(CODACOMPANHAMENTOITEM) REFERENCES TB_ACOMPANHAMENTO_ITEM ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_ACOMPANHAMENTO_ITEM_RESERVA') BEGIN CREATE TABLE TB_ACOMPANHAMENTO_ITEM_RESERVA( CODACOMPANHAMENTORESERVA INT IDENTITY(1,1) NOT NULL, CODACOMPANHAMENTOITEM INT, CODRESERVA INT, QUANTIDADE INT CONSTRAINT PK_ACOMPANHAMENTOITEMRESERVA PRIMARY KEY(CODACOMPANHAMENTORESERVA), CONSTRAINT FK_ACOMPANHAMENTOITEMRESERVA_ACOMPANHAMENTOITEM FOREIGN KEY(CODACOMPANHAMENTOITEM) REFERENCES TB_ACOMPANHAMENTO_ITEM, CONSTRAINT FK_ACOMPANHAMENTOITEMRESERVA_RESERVA FOREIGN KEY(CODRESERVA) REFERENCES TB_RESERVA ) END IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_MENSAGEM') BEGIN CREATE TABLE TB_MENSAGEM( COD int, DESCRICAO varchar(2000) ) END print 'Criao das tabelas finalizada!' IF @@ERROR <> 0 ROLLBACK ELSE COMMIT
true
6cc8ad8e30a24aeced8d5883d3f1b0f98ad0bbb8
SQL
AAMSLieutenant/HOSPITAL
/epam_project_DB/scripts/base.sql
UTF-8
5,240
3.5
4
[]
no_license
DROP TABLE patient; DROP TABLE address; DROP TABLE appointment; DROP TABLE diagnosis; DROP TABLE operation; DROP TABLE medicine; DROP TABLE proced; DROP TABLE employee; DROP TABLE position; DROP TABLE diag_oper; DROP TABLE diag_med; DROP TABLE diag_proc; DROP TABLE uuser; CREATE TABLE patient( card_id number(11) NOT NULL PRIMARY KEY, p_name varchar(30) NOT NULL, p_surname varchar(30) NOT NULL, p_patronymic varchar(30) NOT NULL, p_age number(3) NOT NULL, p_birth_date Date NOT NULL, p_sex varchar(10) NOT NULL, p_arrival_date Date NOT NULL, p_discharge_date Date ); CREATE TABLE address( card_id number(11), city varchar(30) NOT NULL, street varchar(30) NOT NULL, house_number number(4) NOT NULL, flat_number number(4) NOT NULL ); CREATE TABLE appointment( app_id number(11) NOT NULL PRIMARY KEY, app_date Date NOT NULL, app_value number(10,4) NOT NULL, app_complaint varchar(300) NOT NULL, doc_id number(11) NOT NULL, card_id number(11) NOT NULL ); CREATE TABLE diagnosis( diag_id number(11) NOT NULL PRIMARY KEY, diag_name varchar(300) NOT NULL, card_id number(11) ); CREATE TABLE operation( oper_id number(11) NOT NULL PRIMARY KEY, oper_name varchar(130) NOT NULL, oper_value number(10,4) NOT NULL, oper_length number(4) NOT NULL, doctor_id number(11) ); CREATE TABLE medicine( med_id number(11) NOT NULL PRIMARY KEY, med_name varchar(130) NOT NULL, med_value number(10,4) NOT NULL, emp_id number(11) ); CREATE TABLE proced( proc_id number(11) NOT NULL PRIMARY KEY, proc_name varchar(130) NOT NULL, proc_value number(10,4) NOT NULL, emp_id number(11) ); CREATE TABLE employee( emp_id number(11) NOT NULL PRIMARY KEY, emp_name varchar(30) NOT NULL, emp_surname varchar(30) NOT NULL, emp_patronymic varchar(30) NOT NULL, emp_age number(3) NOT NULL, emp_hire_date Date NOT NULL, emp_pos_id number(11) NOT NULL ); CREATE TABLE uuser( user_id number(11) UNIQUE, login varchar(30) NOT NULL UNIQUE, password varchar(30) NOT NULL ); CREATE TABLE position( pos_id number(11) NOT NULL PRIMARY KEY, pos_name varchar(30) NOT NULL, pos_salary number(10,4) NOT NULL, is_md number(1) NOT NULL ); CREATE TABLE diag_oper( do_id number(11) UNIQUE, diag_id number(11), oper_date Date NOT NULL, oper_done number(1) NOT NULL, oper_id number(11) NOT NULL ); CREATE TABLE diag_med( dm_id number(11) UNIQUE, diag_id number(11), med_start Date NOT NULL, med_end Date NOT NULL, med_done number(1) NOT NULL, med_id number(11) NOT NULL ); CREATE TABLE diag_proc( dp_id number(11) UNIQUE, diag_id number(11), proc_date Date NOT NULL, proc_done number(1) NOT NULL, proc_id number(11) NOT NULL ); ALTER TABLE address DROP CONSTRAINT add_fk_pat; ALTER TABLE appointment DROP CONSTRAINT app_fk_pat; ALTER TABLE appointment DROP CONSTRAINT app_fk_emp; ALTER TABLE diagnosis DROP CONSTRAINT diag_fk_pat; ALTER TABLE employee DROP CONSTRAINT emp_fk_pos; ALTER TABLE uuser DROP CONSTRAINT uuser_fk_emp; ALTER TABLE operation DROP CONSTRAINT oper_fk_emp; ALTER TABLE medicine DROP CONSTRAINT med_fk_emp; ALTER TABLE proced DROP CONSTRAINT proc_fk_emp; ALTER TABLE diag_oper DROP CONSTRAINT diag_oper_fk_diag; ALTER TABLE diag_oper DROP CONSTRAINT diag_oper_fk_oper; ALTER TABLE diag_med DROP CONSTRAINT diag_med_fk_diag; ALTER TABLE diag_med DROP CONSTRAINT diag_med_fk_med; ALTER TABLE diag_proc DROP CONSTRAINT diag_proc_fk_diag; ALTER TABLE diag_proc DROP CONSTRAINT diag_proc_fk_proc; ALTER TABLE address ADD CONSTRAINT add_fk_pat FOREIGN KEY(card_id) REFERENCES patient(card_id) ON DELETE CASCADE; ALTER TABLE appointment ADD CONSTRAINT app_fk_pat FOREIGN KEY(card_id) REFERENCES patient(card_id) ON DELETE CASCADE; ALTER TABLE appointment ADD CONSTRAINT app_fk_emp FOREIGN KEY(doc_id) REFERENCES employee(emp_id) ON DELETE CASCADE; ALTER TABLE diagnosis ADD CONSTRAINT diag_fk_pat FOREIGN KEY(card_id) REFERENCES patient(card_id) ON DELETE CASCADE; ALTER TABLE employee ADD CONSTRAINT emp_fk_pos FOREIGN KEY(emp_pos_id) REFERENCES position(pos_id) ON DELETE CASCADE; ALTER TABLE uuser ADD CONSTRAINT uuser_fk_emp FOREIGN KEY(user_id) REFERENCES employee(emp_id) ON DELETE CASCADE; ALTER TABLE operation ADD CONSTRAINT oper_fk_emp FOREIGN KEY(doctor_id) REFERENCES employee(emp_id) ON DELETE CASCADE; ALTER TABLE medicine ADD CONSTRAINT med_fk_emp FOREIGN KEY(emp_id) REFERENCES employee(emp_id) ON DELETE CASCADE; ALTER TABLE proced ADD CONSTRAINT proc_fk_emp FOREIGN KEY(emp_id) REFERENCES employee(emp_id) ON DELETE CASCADE; ALTER TABLE diag_oper ADD CONSTRAINT diag_oper_fk_diag FOREIGN KEY(diag_id) REFERENCES diagnosis(diag_id) ON DELETE CASCADE; ALTER TABLE diag_oper ADD CONSTRAINT diag_oper_fk_oper FOREIGN KEY(oper_id) REFERENCES operation(oper_id) ON DELETE CASCADE; ALTER TABLE diag_med ADD CONSTRAINT diag_med_fk_diag FOREIGN KEY(diag_id) REFERENCES diagnosis(diag_id) ON DELETE CASCADE; ALTER TABLE diag_med ADD CONSTRAINT diag_med_fk_med FOREIGN KEY(med_id) REFERENCES medicine(med_id) ON DELETE CASCADE; ALTER TABLE diag_proc ADD CONSTRAINT diag_proc_fk_diag FOREIGN KEY(diag_id) REFERENCES diagnosis(diag_id) ON DELETE CASCADE; ALTER TABLE diag_proc ADD CONSTRAINT diag_proc_fk_proc FOREIGN KEY(proc_id) REFERENCES proced(proc_id) ON DELETE CASCADE;
true
d03b335ad6293509d46a70cfd87a535c46b6fe62
SQL
Eyleenqh/Proyecto1RedesEnLosNegocios
/bdProyecto1Redes.sql
UTF-8
7,378
2.625
3
[]
no_license
CREATE DATABASE bdRedes; use bdRedes; CREATE TABLE archivosPeligrosos( id int primary key AUTO_INCREMENT, nombre varchar(100) not null, firma varchar(200) not null ); CREATE TABLE clientes( id int primary key AUTO_INCREMENT, direccionIp varchar(50) not null ); CREATE TABLE cliente_archivo( id int primary key AUTO_INCREMENT, idCliente int not null, idArchivoPeligroso int not null ); insert into archivosPeligrosos(nombre, firma) values ('1+Sirenas.pdf','734d5358b80246d38e9601d6812ec4ec'); insert into archivosPeligrosos(nombre, firma) values ('10 metodoPlanInformatico-20.pdf','9268276aff5cafec239d35dc2db658c6'); insert into archivosPeligrosos(nombre, firma) values ('11 alineamiento-20.pdf','4fb517c7df76703646affdc7545e2f73'); insert into archivosPeligrosos(nombre, firma) values ('2 planificacion2-20.pdf','7e123e04774630e5e50c8dfc5b5672a1'); insert into archivosPeligrosos(nombre, firma) values ('2+Encanto.pdf','6d6452a5ec65c62408cb22af092b831e'); insert into archivosPeligrosos(nombre, firma) values ('3 Resumen planificación estrategica-20.pdf','98a5c5674cc97fcc130331fceaedca93'); insert into archivosPeligrosos(nombre, firma) values ('4 ENTORNO-20.pdf','7bfa9bbc007929e1cc1f76dcd0866296'); insert into archivosPeligrosos(nombre, firma) values ('4+Elegía.pdf','69d8c68d4b23ea343a299477f39bf214'); insert into archivosPeligrosos(nombre, firma) values ('5 INSTRUMENTOS DE ANÁLISIS1-20.pdf','bc954206c5dc36aad6b3978acf41e66f'); insert into archivosPeligrosos(nombre, firma) values ('6 cadenavalor-20.pdf','ebf67901bf70d22833366bce826166d3'); insert into archivosPeligrosos(nombre, firma) values ('7 1VISION Y MISION-20.pdf','a9065a6654609c139ea1e96e9a542fd7'); insert into archivosPeligrosos(nombre, firma) values ('8 2diagnostico-20.pdf','9bd0822790fb98bbb5903b0666040cc6'); insert into archivosPeligrosos(nombre, firma) values ('9 Planificacion Informatica-20.pdf','702ac13ea628e7efd9053dd2ecb0d198'); insert into archivosPeligrosos(nombre, firma) values ('actualizacionbd.sql','9c087bfd9f2ef6795af54e078a327e6f'); insert into archivosPeligrosos(nombre, firma) values ('administracion (1).pdf','0ab1279ab833f9992f70ee7a03196a49'); insert into archivosPeligrosos(nombre, firma) values ('Amanda Hocking-CM3-Olas.pdf','212700a07ff813529379872f4860c88e'); insert into archivosPeligrosos(nombre, firma) values ('BD Redes.txt','c7108df12b5be5783971d7590b362a01'); insert into archivosPeligrosos(nombre, firma) values ('BD SQLite.txt','464dae7f9c8c0b161dfd0228ba9b9afb'); insert into archivosPeligrosos(nombre, firma) values ('bdProyectoRedes.sql','7ec19a95a0af4fe2b4b295c71dce3f8b'); insert into archivosPeligrosos(nombre, firma) values ('casos.txt','d41d8cd98f00b204e9800998ecf8427e'); insert into archivosPeligrosos(nombre, firma) values ('Don Domingo de Don Blas.doc','bf8f36418298d6435af8b406f90a78c8'); insert into archivosPeligrosos(nombre, firma) values ('Doramass.docx','dac85fa93fb170460ca027f0b4f8ea56'); insert into archivosPeligrosos(nombre, firma) values ('El Anticristo.doc','02c6746a63b4e3513619811d7449e953'); insert into archivosPeligrosos(nombre, firma) values ('El Capitan Cap.doc','49b9f79e08cbc78a4095f3e73c37e5a2'); insert into archivosPeligrosos(nombre, firma) values ('El Dueño de las Estrellas.doc','78e4aa5cbca3d3c24caec6591085a6d9'); insert into archivosPeligrosos(nombre, firma) values ('El Examen de Maridos.doc','c2d82060c53a417f6a631d5a21ed0ae5'); insert into archivosPeligrosos(nombre, firma) values ('estructura.png','47b737fed039cf7741a00209ca3ebb5a'); insert into archivosPeligrosos(nombre, firma) values ('Historia de mis Libros.doc','cd4f6a877829b8eb0aaa078757587a50'); insert into archivosPeligrosos(nombre, firma) values ('IF6201 proyecto III.pdf','2913d12c0e497025ae522f40c9837fec'); insert into archivosPeligrosos(nombre, firma) values ('INFORME LABORES DE JULIO 2018 A JULIO 2019 SEDE DEL ATLÁNTICO.pdf','35ecb14fffb5809f7782c2286db1661e'); insert into archivosPeligrosos(nombre, firma) values ('INFORME LABORES2017-2018 (1).pdf','2e2613ff93933365e1363f2262bf8148'); insert into archivosPeligrosos(nombre, firma) values ('Inserts.txt','c47ebfd536583a81a1040a96c43bd2bb'); insert into archivosPeligrosos(nombre, firma) values ('La Buenaventura.doc','712229d3ed72150d9a3550fa4dfc9ad8'); insert into archivosPeligrosos(nombre, firma) values ('La Crueldad por el Honor.doc','1e1237f744a1254d2f14887231b810f0'); insert into archivosPeligrosos(nombre, firma) values ('La Cueva De Salamanca.doc','b58ec629e3cf9882e19c79406a0340d0'); insert into archivosPeligrosos(nombre, firma) values ('La Culpa buscar la Pena y el Agravio la Venganza.doc','ef5052f9e43fce4f9b6f4219ec15d0aa'); insert into archivosPeligrosos(nombre, firma) values ('La Mujer Alta.doc','a8f71299d428cde6ab2c190df62981e5'); insert into archivosPeligrosos(nombre, firma) values ('Links Proyecto Aplicada.txt','529d85c8e3766a59a7d82fb0667335ef'); insert into archivosPeligrosos(nombre, firma) values ('Los Ojos Negros.doc','5492636dd6b8cbb16494d9d60ae6a997'); insert into archivosPeligrosos(nombre, firma) values ('OPES-37-2015 planes.pdf','f61fab2fada5b3cd449402390ab12033'); insert into archivosPeligrosos(nombre, firma) values ('planificacion.pdf','9bd1462a6b01ac701f08c699e7618318'); insert into archivosPeligrosos(nombre, firma) values ('planinformaticotrivinno (1).pdf','239ca26e2ab33dce9efcd046413a2bc9'); insert into archivosPeligrosos(nombre, firma) values ('plan_estrategico_institucional_2018-2020.pdf','586a4e3a4af72ab51d9b570bbfd449a3'); insert into archivosPeligrosos(nombre, firma) values ('PNDIP 2019-2022.pdf','e0cb7b3fbabb46879239fc800e24b8fd'); insert into archivosPeligrosos(nombre, firma) values ('Poryecto 3.txt','dc8600bcf1b8bfba9177ed6dce01aec6'); insert into archivosPeligrosos(nombre, firma) values ('Proyecto de investigación y desarrollo - I.pdf','ebe2a9ae4cf738ef86faaeabeaf1fdf3'); insert into archivosPeligrosos(nombre, firma) values ('psiproc.pdf','ecfe1df23ee1ad2c0802418e9403e24b'); insert into archivosPeligrosos(nombre, firma) values ('script.sql','6367c034ca862f31cb5c618ad68161ef'); insert into archivosPeligrosos(nombre, firma) values ('Tradicion Oral.docx','47484c25cf3e976c3edb45dfe9dfc92c'); insert into archivosPeligrosos(nombre, firma) values ('Vigui.pptx','3dcb95a994ce02922f4773909b436126'); DELIMITER $$ create procedure obtenerArchivosPeligrosos() BEGIN select c.direccionIp, a.nombre , count(*) as cantidadDetecciones from cliente_archivo ca join archivospeligrosos a on a.id = ca.idArchivoPeligroso join clientes c on c.id = ca.idCliente GROUP BY ca.idArchivoPeligroso, ca.idCliente ORDER BY c.direccionIp asc; END$$ DELIMITER ; /*Datos prueba*/ insert into clientes(direccionIp) values ('123.123.123.54'); insert into clientes(direccionIp) values ('172.196.123.10'); insert into cliente_archivo (idCliente, idArchivoPeligroso) values(1,1); insert into cliente_archivo (idCliente, idArchivoPeligroso) values(1,2); insert into cliente_archivo (idCliente, idArchivoPeligroso) values(1,1); insert into cliente_archivo (idCliente, idArchivoPeligroso) values(1,5); insert into cliente_archivo (idCliente, idArchivoPeligroso) values(2,1); insert into cliente_archivo (idCliente, idArchivoPeligroso) values(2,1); insert into cliente_archivo (idCliente, idArchivoPeligroso) values(2,3); select * from archivosPeligrosos; select * from cliente_archivo; select * from clientes; call obtenerArchivosPeligrosos
true
e3aba89f82f61c16f82f372feb66d583efb795ec
SQL
Komzpa/fastmap
/fastmap_monolithic_reference.sql
UTF-8
9,101
3.5
4
[]
no_license
--- Tunables for debugging --\timing on --set enable_hashjoin to off; --set enable_seqscan to off; \pset border 0 \pset format unaligned \pset tuples_only on begin read only; -- This one is for debugging using http://tatiyants.com/pev/#/plans/new --#explain ( analyze, costs, verbose, buffers, format json ) --explain ( analyze, costs, verbose, buffers ) with params as ( select 27.61649608612061 :: float as minlon, 53.85379229563698 :: float as minlat, 27.671985626220707 :: float as maxlon, 53.886459293813054 :: float as maxlat ), direct_nodes as ( select n.id, n.visible, n.version, n.changeset_id, n.timestamp, n.latitude, n.longitude from current_nodes n, params p where point(longitude :: float / 1e7 :: float, latitude :: float / 1e7 :: float) <@ box(point(minlon, minlat), point(maxlon, maxlat)) -- and n.tile in (...) - dropped in favor of SP-GiST, can be returned -- and n.latitude between minlat and maxlat -- and n.longitude between minlon and maxlon and n.visible ), all_request_ways as ( select distinct on (id) w.id, w.visible, w.version, w.changeset_id, w.timestamp from direct_nodes n join current_way_nodes c on (c.node_id = n.id) join current_ways w on (w.id = c.way_id) where w.visible ), all_request_nodes as ( select n.id, n.visible, n.version, n.changeset_id, n.timestamp, n.latitude, n.longitude from all_request_ways w join current_way_nodes c on (c.way_id = w.id) join current_nodes n on (n.id = c.node_id) union select n.id, n.visible, n.version, n.changeset_id, n.timestamp, n.latitude, n.longitude from direct_nodes n ), relations_from_ways_and_nodes as ( select distinct on (id) r.id, r.visible, r.version, r.changeset_id, r.timestamp from ( select id, 'Way' :: nwr_enum as type from all_request_ways union all select id, 'Node' :: nwr_enum as type from all_request_nodes ) wn join current_relation_members m on (wn.id = m.member_id and wn.type = m.member_type) join current_relations r on (m.relation_id = r.id) where r.visible ), all_request_relations as ( select r.id, r.visible, r.version, r.changeset_id, r.timestamp from relations_from_ways_and_nodes r union select r.id, r.visible, r.version, r.changeset_id, r.timestamp from relations_from_ways_and_nodes r2 join current_relation_members rm on (r2.id = rm.member_id and rm.member_type = 'Relation') join current_relations r on (r.id = rm.relation_id) where r.visible ), all_request_users as ( select distinct on (changeset_id) changeset_id, u.display_name as name, u.id as uid from ( -- we first know about all the ways, that's why they're earlier in union select changeset_id from all_request_ways union select changeset_id from all_request_nodes union select changeset_id from all_request_relations ) as rc join changesets c on (rc.changeset_id = c.id) left join users u on (c.user_id = u.id and u.data_public) order by changeset_id ) select line from ( -- XML header select '<?xml version="1.0" encoding="UTF-8"?><osm version="0.6" generator="FastMAP" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">' :: text as line union all -- bounds header select xmlelement(name bounds, xmlattributes(minlat, minlon, maxlat, maxlon)) :: text as line from params p union all -- nodes select line :: text from ( select xmlelement( name node, xmlattributes( id as id, visible as visible, version as version, n.changeset_id as changeset, to_char(timestamp, 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as timestamp, u.name as user, u.uid as uid, (latitude / 1e7) :: numeric(10, 7) as lat, (longitude / 1e7) :: numeric(10, 7) as lon ), nt.tags ) line from all_request_nodes n join all_request_users u on (n.changeset_id = u.changeset_id) join lateral ( select xmlagg( xmlelement( name tag, xmlattributes( k as k, v as v ) ) ) as tags from current_node_tags t where t.node_id = n.id ) nt on true order by n.id ) nodes union all -- ways select line :: text from ( select xmlelement( name way, xmlattributes( id as id, visible as visible, version as version, w.changeset_id as changeset, to_char(timestamp, 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as timestamp, u.name as user, u.uid as uid ), wt.tags, nds.nodes ) as line from all_request_ways w join all_request_users u on ( w.changeset_id = u.changeset_id) join lateral ( select xmlagg( xmlelement( name tag, xmlattributes( k as k, v as v ) ) ) as tags from current_way_tags t where t.way_id = w.id ) wt on true join lateral ( select xmlagg( xmlelement( name nd, xmlattributes( node_id as ref ) ) order by sequence_id ) as nodes from current_way_nodes t where t.way_id = w.id ) nds on true order by w.id ) ways union all -- relations select line :: text from ( select xmlelement( name relation, xmlattributes( id as id, visible as visible, version as version, r.changeset_id as changeset, to_char(timestamp, 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as timestamp, u.name as user, u.uid as uid ), rt.tags, mbr.nodes ) line from all_request_relations r join all_request_users u on (r.changeset_id = u.changeset_id) join lateral ( select xmlagg( xmlelement( name tag, xmlattributes( k as k, v as v ) ) ) as tags from current_relation_tags t where t.relation_id = r.id ) rt on true join lateral ( select xmlagg( xmlelement( name member, xmlattributes ( case member_type when 'Way' then 'way' when 'Relation' then 'relation' when 'Node' then 'node' end as type, member_id as ref, member_role as role ) ) order by sequence_id ) as nodes from current_relation_members t where t.relation_id = r.id ) mbr on true order by r.id ) relations union all -- XML footer select '</osm>' ) repsonse; commit;
true
341d43064fbf47e1a9d3c04dc1ca9120e3f5734a
SQL
ChintanRank/RDBMS-on-YelpDataSet
/Yelp_test.sql
UTF-8
1,071
2.78125
3
[]
no_license
select max(cool) from yelp_db.review; select max(cool) from yelp_db.review; select count(*) from yelp_db.review where text Like '%dirty%'; select count(*) from yelp_db.review where text Like '%dirty%'; select count(*) from yelp_db.review where text like '%clean%'; select count(*) from yelp_db.review where text like '%clean%'; select count(*) from yelp_db.business,yelp_db.review where yelp_db.business.state='NV' and yelp_db.review.business_id=yelp_db.business.id; select count(*) from yelp_db.business,yelp_db.review where yelp_db.business.state='NV' and yelp_db.review.business_id=yelp_db.business.id; select count(*) from yelp_db.business,yelp_db.review,yelp_db.yuser where yelp_db.business.state='NV' and yelp_db.yuser.cool>10 and yelp_db.review.business_id=yelp_db.business.id and yelp_db.yuser.id=yelp_db.review.user_id; select count(*) from yelp_db.business,yelp_db.review,yelp_db.yuser where yelp_db.business.state='NV' and yelp_db.yuser.cool>10 and yelp_db.review.business_id=yelp_db.business.id and yelp_db.yuser.id=yelp_db.review.user_id;
true
52d78f49f6ef3ad3e1baae17efe31781bf6f3384
SQL
marcowchan/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/14-my_genres.sql
UTF-8
279
3.609375
4
[]
no_license
-- Lists all genres of the show Dexter. -- Lists all genres of the show Dexter. SELECT tv_genres.name FROM tv_genres, tv_show_genres, tv_shows WHERE tv_shows.title = "Dexter" AND tv_show_genres.show_id = tv_shows.id AND tv_show_genres.genre_id = tv_genres.id ORDER BY name;
true
a3fab7cab2c818ece0e9542ba2935f04d1eda2d6
SQL
mhnrcjgs/editable-grid-with-laravel-backend
/database/seeds/demo.sql
UTF-8
57,958
3.015625
3
[ "MIT" ]
permissive
/* * examples/mysql/demo.sql * * This file is part of EditableGrid. * http://editablegrid.net * * Copyright (c) 2011 Webismymind SPRL * Dual licensed under the MIT or GPL Version 2 licenses. * http://editablegrid.net/license */ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de données: `demo` -- -- -------------------------------------------------------- -- -- Structure de la table `continent` -- DROP TABLE IF EXISTS `continent`; CREATE TABLE IF NOT EXISTS `continent` ( `id` char(2) NOT NULL, `name` varchar(30) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Contenu de la table `continent` -- INSERT INTO `continent` (`id`, `name`) VALUES ('eu', 'Europa'), ('na', 'North America'), ('sa', 'South America'), ('af', 'Africa'), ('as', 'Asia'), ('au', 'Australia'); -- -------------------------------------------------------- -- -- Structure de la table `country` -- DROP TABLE IF EXISTS `country`; CREATE TABLE IF NOT EXISTS `country` ( `id` char(2) NOT NULL, `name` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Contenu de la table `country` -- INSERT INTO `country` (`id`, `name`) VALUES ('AD', 'Andorra'), ('AE', 'United Arab Emirates'), ('AF', 'Afghanistan'), ('AG', 'Antigua and Barbuda'), ('AI', 'Anguilla'), ('AL', 'Albania'), ('AM', 'Armenia'), ('AN', 'Netherlands Antilles'), ('AO', 'Angola'), ('AR', 'Argentina'), ('AS', 'American Samoa'), ('AT', 'Austria'), ('AU', 'Australia'), ('AW', 'Aruba'), ('AX', 'Aland Islands'), ('AZ', 'Azerbaijan'), ('BA', 'Bosnia and Herzegovina'), ('BB', 'Barbados'), ('BD', 'Bangladesh'), ('BE', 'Belgium'), ('BF', 'Burkina Faso'), ('BG', 'Bulgaria'), ('BH', 'Bahrain'), ('BI', 'Burundi'), ('BJ', 'Benin'), ('BM', 'Bermuda'), ('BN', 'Brunei Darussalam'), ('BO', 'Bolivia'), ('BR', 'Brazil'), ('BS', 'Bahamas'), ('BT', 'Bhutan'), ('BV', 'Bouvet Island'), ('BW', 'Botswana'), ('BY', 'Belarus'), ('BZ', 'Belize'), ('CA', 'Canada'), ('CC', 'Cocos (Keeling) Islands'), ('CD', 'Democratic Republic of the Congo'), ('CF', 'Central African Republic'), ('CG', 'Congo'), ('CH', 'Switzerland'), ('CI', 'Cote D''Ivoire'), ('CK', 'Cook Islands'), ('CL', 'Chile'), ('CM', 'Cameroon'), ('CN', 'China'), ('CO', 'Colombia'), ('CR', 'Costa Rica'), ('CS', 'Serbia and Montenegro'), ('CU', 'Cuba'), ('CV', 'Cape Verde'), ('CX', 'Christmas Island'), ('CY', 'Cyprus'), ('CZ', 'Czech Republic'), ('DE', 'Germany'), ('DJ', 'Djibouti'), ('DK', 'Denmark'), ('DM', 'Dominica'), ('DO', 'Dominican Republic'), ('DZ', 'Algeria'), ('EC', 'Ecuador'), ('EE', 'Estonia'), ('EG', 'Egypt'), ('EH', 'Western Sahara'), ('ER', 'Eritrea'), ('ES', 'Spain'), ('ET', 'Ethiopia'), ('EU', 'European Union'), ('FI', 'Finland'), ('FJ', 'Fiji'), ('FK', 'Falkland Islands'), ('FM', 'Federated States of Micronesia'), ('FO', 'Faroe Islands'), ('FR', 'France'), ('GA', 'Gabon'), ('GB', 'Great Britain'), ('GD', 'Grenada'), ('GE', 'Georgia'), ('GF', 'French Guiana'), ('GH', 'Ghana'), ('GI', 'Gibraltar'), ('GL', 'Greenland'), ('GM', 'Gambia'), ('GN', 'Guinea'), ('GP', 'Guadeloupe'), ('GQ', 'Equatorial Guinea'), ('GR', 'Greece'), ('GS', 'S. Georgia and S. Sandwich Islands'), ('GT', 'Guatemala'), ('GU', 'Guam'), ('GW', 'Guinea-Bissau'), ('GY', 'Guyana'), ('HK', 'Hong Kong'), ('HM', 'Heard Island and McDonald Islands'), ('HN', 'Honduras'), ('HR', 'Croatia (Hrvatska)'), ('HT', 'Haiti'), ('HU', 'Hungary'), ('ID', 'Indonesia'), ('IE', 'Ireland'), ('IL', 'Israel'), ('IN', 'India'), ('IO', 'British Indian Ocean Territory'), ('IQ', 'Iraq'), ('IR', 'Iran'), ('IS', 'Iceland'), ('IT', 'Italy'), ('JM', 'Jamaica'), ('JO', 'Jordan'), ('JP', 'Japan'), ('KE', 'Kenya'), ('KG', 'Kyrgyzstan'), ('KH', 'Cambodia'), ('KI', 'Kiribati'), ('KM', 'Comoros'), ('KN', 'Saint Kitts and Nevis'), ('KP', 'Korea (North)'), ('KR', 'Korea (South)'), ('KW', 'Kuwait'), ('KY', 'Cayman Islands'), ('KZ', 'Kazakhstan'), ('LA', 'Laos'), ('LB', 'Lebanon'), ('LC', 'Saint Lucia'), ('LI', 'Liechtenstein'), ('LK', 'Sri Lanka'), ('LR', 'Liberia'), ('LS', 'Lesotho'), ('LT', 'Lithuania'), ('LU', 'Luxembourg'), ('LV', 'Latvia'), ('LY', 'Libya'), ('MA', 'Morocco'), ('MC', 'Monaco'), ('MD', 'Moldova'), ('MG', 'Madagascar'), ('MH', 'Marshall Islands'), ('MK', 'Macedonia'), ('ML', 'Mali'), ('MM', 'Myanmar'), ('MN', 'Mongolia'), ('MO', 'Macao'), ('MP', 'Northern Mariana Islands'), ('MQ', 'Martinique'), ('MR', 'Mauritania'), ('MS', 'Montserrat'), ('MT', 'Malta'), ('MU', 'Mauritius'), ('MV', 'Maldives'), ('MW', 'Malawi'), ('MX', 'Mexico'), ('MY', 'Malaysia'), ('MZ', 'Mozambique'), ('NA', 'Namibia'), ('NC', 'New Caledonia'), ('NE', 'Niger'), ('NF', 'Norfolk Island'), ('NG', 'Nigeria'), ('NI', 'Nicaragua'), ('NL', 'Netherlands'), ('NO', 'Norway'), ('NP', 'Nepal'), ('NR', 'Nauru'), ('NU', 'Niue'), ('NZ', 'New Zealand (Aotearoa)'), ('OM', 'Oman'), ('PA', 'Panama'), ('PE', 'Peru'), ('PF', 'French Polynesia'), ('PG', 'Papua New Guinea'), ('PH', 'Philippines'), ('PK', 'Pakistan'), ('PL', 'Poland'), ('PM', 'Saint Pierre and Miquelon'), ('PN', 'Pitcairn'), ('PR', 'Puerto Rico'), ('PS', 'Palestinian Territory'), ('PT', 'Portugal'), ('PW', 'Palau'), ('PY', 'Paraguay'), ('QA', 'Qatar'), ('RE', 'Reunion'), ('RO', 'Romania'), ('RU', 'Russian Federation'), ('RW', 'Rwanda'), ('SA', 'Saudi Arabia'), ('SB', 'Solomon Islands'), ('SC', 'Seychelles'), ('SD', 'Sudan'), ('SE', 'Sweden'), ('SG', 'Singapore'), ('SH', 'Saint Helena'), ('SI', 'Slovenia'), ('SJ', 'Svalbard and Jan Mayen'), ('SK', 'Slovakia'), ('SL', 'Sierra Leone'), ('SM', 'San Marino'), ('SN', 'Senegal'), ('SO', 'Somalia'), ('SR', 'Suriname'), ('ST', 'Sao Tome and Principe'), ('SU', 'USSR (former)'), ('SV', 'El Salvador'), ('SY', 'Syria'), ('SZ', 'Swaziland'), ('TC', 'Turks and Caicos Islands'), ('TD', 'Chad'), ('TF', 'French Southern Territories'), ('TG', 'Togo'), ('TH', 'Thailand'), ('TJ', 'Tajikistan'), ('TK', 'Tokelau'), ('TL', 'Timor-Leste'), ('TM', 'Turkmenistan'), ('TN', 'Tunisia'), ('TO', 'Tonga'), ('TP', 'East Timor'), ('TR', 'Turkey'), ('TT', 'Trinidad and Tobago'), ('TV', 'Tuvalu'), ('TW', 'Taiwan'), ('TZ', 'Tanzania'), ('UA', 'Ukraine'), ('UG', 'Uganda'), ('UK', 'United Kingdom'), ('UM', 'United States Minor Outlying Islands'), ('US', 'United States'), ('UY', 'Uruguay'), ('UZ', 'Uzbekistan'), ('VA', 'Vatican City State'), ('VC', 'Saint Vincent and the Grenadines'), ('VE', 'Venezuela'), ('VG', 'Virgin Islands (UK)'), ('VI', 'Virgin Islands (US)'), ('VN', 'Viet Nam'), ('VU', 'Vanuatu'), ('WF', 'Wallis and Futuna'), ('WS', 'Samoa'), ('YE', 'Yemen'), ('YT', 'Mayotte'), ('ZA', 'South Africa'), ('ZM', 'Zambia'), ('ZR', 'Zaire'), ('ZW', 'Zimbabwe'); -- -------------------------------------------------------- -- -- Structure de la table `demo` -- DROP TABLE IF EXISTS `demo`; CREATE TABLE IF NOT EXISTS `demo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `firstname` varchar(100) NOT NULL, `age` int(11) DEFAULT NULL, `height` decimal(3,2) DEFAULT NULL, `id_continent` char(2) DEFAULT NULL, `id_country` char(2) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `freelance` tinyint(4) DEFAULT NULL, `lastvisit` date DEFAULT NULL, `website` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=501 ; -- -- Contenu de la table `demo` -- INSERT INTO `demo` (`id`, `name`, `firstname`, `age`, `height`, `id_continent`, `id_country`, `email`, `freelance`, `lastvisit`, `website`) VALUES (1, 'Hoffman', 'Tatyana', 88, 1.32, 'na', 'CA', 'Nam@quisdiamluctus.org', 1, '2012-04-17', 'www.qktogkjbsvz.rdh'), (2, 'Atkins', 'Ishmael', 44, 1.42, 'eu', 'UK', 'arcu.et.pede@musProin.cam', 1, '2012-02-25', 'www.xzuquuhxbid.ltk'), (3, 'Hamilton', 'Mohammad', 73, 1.22, 'eu', 'FR', 'dui@duiCras.edu', 0, '2012-01-30', 'www.xkeyshkmst'), (4, 'Murray', 'Troy', 18, 1.92, 'eu', 'FR', 'mollis@eutellus.co.uk', 0, '2012-02-27', 'www.tjumdozdqqo.rot'), (5, 'Schwartz', 'Carla', 79, 1.50, 'na', 'CA', 'ante@adipiscing.org', 0, '2012-03-16', 'www.ljncabtovpc.rdd'), (6, 'Bond', 'Leno', 33, 1.55, 'na', 'US', 'semper.tellus.id@sem.co.uk', 0, '2012-03-21', 'www.hpscfutiyvc.ejq'), (7, 'Noble', 'Georgia', 88, 1.90, 'af', 'ZA', 'mi.lacinia@nisiaodio.co.uk', 0, '2012-02-20', 'www.wrmunpywfqm.eqn'), (8, 'Frederick', 'Bradley', 80, 1.87, 'na', 'US', 'dapibus.id.blandit@aptenttacitisociosqu.com', 0, '2012-03-28', 'www.vgjbwvfminn.eji'), (9, 'Chambers', 'Aphrodite', 63, 1.30, 'eu', 'FR', 'mattis@venenatisvel.co.uk', 1, '2012-03-03', 'www.lbauoozywdk.nnm'), (10, 'Schultz', 'Allegra', 90, 1.70, 'na', 'CA', 'Fusce.feugiat.Lorem@Duis.net', 1, '2012-05-03', 'www.itpfwatjnov.nix'), (11, 'Garrett', 'Lillith', 20, 1.91, 'na', 'US', 'neque@mattisIntegereu.edu', 1, '2012-04-17', 'www.vvdijyvrvel.xcp'), (12, 'Mcdaniel', 'Venus', 89, 1.53, 'af', 'ZW', 'ipsum.primis@interdumligula.edu', 1, '2012-02-12', 'www.owokbaidqxc.pkl'), (13, 'Acevedo', 'Iola', 26, 1.94, 'af', 'NG', 'eros@fringillaornare.net', 1, '2012-03-05', 'www.rauhxxxijxz.nvk'), (14, 'Kline', 'Ora', 47, 1.27, 'eu', 'UK', 'mauris.ipsum@dictum.edu', 0, '2012-03-10', 'www.cajlyiyttlp.erj'), (15, 'George', 'Brian', 76, 1.72, 'eu', 'FR', 'nisi.Mauris.nulla@rutrumlorem.net', 0, '2012-01-29', 'www.stalfpqxzyy.ure'), (16, 'Powers', 'Remedios', 76, 1.42, 'af', 'ZA', 'rutrum@magnisdisparturient.edu', 0, '2012-04-21', 'www.yqxxpwrhbkd.wwj'), (17, 'Huff', 'Wade', 75, 1.92, 'eu', 'UK', 'sagittis@Fuscefermentum.edu', 0, '2012-02-15', 'www.csnddrzzblk.vlq'), (18, 'Greene', 'Willow', 22, 1.93, 'eu', 'UK', 'dolor@sit.ca', 0, '2012-03-11', 'www.lqdmcnioern.gqx'), (19, 'Smith', 'Ayanna', 34, 1.75, 'eu', 'FR', 'luctus@ornare.ca', 0, '2012-03-31', 'www.xzsbrgihdeu.jxi'), (20, 'Alston', 'Megan', 26, 1.60, 'na', 'US', 'amet.luctus@eu.co.uk', 1, '2012-04-27', 'www.ohzsltbiccd.gtg'), (21, 'Jordan', 'Prescott', 25, 1.86, 'af', 'NG', 'quis.massa.Mauris@metusIn.edu', 0, '2012-03-31', 'www.pfkrhnxatjj.xgz'), (22, 'Guerrero', 'Karen', 18, 1.21, 'na', 'US', 'bibendum.ullamcorper@Nuncsollicitudin.com', 1, '2012-03-18', 'www.metfoccucmn.dtr'), (23, 'Garrison', 'Desirae', 34, 1.62, 'af', 'NG', 'at.pretium@malesuadaaugueut.co.uk', 1, '2012-04-01', 'www.nyjplwtfoct.vta'), (24, 'Wiggins', 'Hayfa', 40, 1.65, 'eu', 'FR', 'est.Nunc@velitegestas.edu', 1, '2012-04-08', 'www.quaewuzqvyh.dpu'), (25, 'Barrera', 'Yasir', 79, 1.84, 'na', 'US', 'pellentesque.eget.dictum@consequatauctor.org', 0, '2012-04-05', 'www.okcjjjnzeok.alv'), (26, 'Parsons', 'Raya', 78, 1.22, 'na', 'CA', 'risus.In.mi@lectusantedictum.ca', 0, '2012-02-26', 'www.hcemqpnckfz.fle'), (27, 'Livingston', 'Charity', 25, 1.72, 'eu', 'FR', 'lectus.pede.ultrices@non.net', 1, '2012-03-10', 'www.nhwxnvdyarm.dkt'), (28, 'Bauer', 'Baxter', 16, 1.33, 'eu', 'FR', 'tellus.eu.augue@Proinnonmassa.org', 0, '2012-02-25', 'www.lnglfspqmqr.myz'), (29, 'Conner', 'Otto', 73, 1.47, 'eu', 'FR', 'Sed.malesuada.augue@duinecurna.co.uk', 1, '2012-02-12', 'www.ylnkbexadci.xna'), (30, 'Lee', 'Tara', 47, 1.12, 'na', 'CA', 'Aliquam.vulputate.ullamcorper@auctor.ca', 0, '2012-05-02', 'www.llepommcnab.ydi'), (31, 'Durham', 'Hannah', 44, 1.20, 'eu', 'UK', 'dapibus.quam.quis@dolorFusce.ca', 0, '2012-03-02', 'www.mddzeeyimfy.wla'), (32, 'Kemp', 'Hanae', 83, 1.09, 'na', 'US', 'in.magna.Phasellus@nequeNullamut.org', 1, '2012-04-22', 'www.gjgsofpzfcp.ccp'), (33, 'Mathews', 'Alana', 18, 1.73, 'na', 'US', 'orci.consectetuer.euismod@rutrumFuscedolor.org', 0, '2012-02-26', 'www.gailcynfncr.pvb'), (34, 'Bradshaw', 'Basia', 48, 1.51, 'af', 'ZA', 'viverra.Maecenas.iaculis@liberomauris.net', 1, '2012-04-29', 'www.ziwnlocgpft.btw'), (35, 'Larsen', 'Isabelle', 90, 1.80, 'na', 'US', 'scelerisque.scelerisque.dui@semmollis.com', 1, '2012-04-13', 'www.ijgyozzivnz.via'), (36, 'Hatfield', 'Kennan', 30, 1.32, 'na', 'US', 'dictum.cursus@fringilla.edu', 1, '2012-02-05', 'www.qcbmpbhycre.hbm'), (37, 'Clemons', 'Cruz', 28, 1.39, 'eu', 'BE', 'conubia@molestieorci.net', 0, '2012-02-12', 'www.iadksirtuwv.zet'), (38, 'Beasley', 'Dara', 31, 1.57, 'eu', 'UK', 'eu.placerat@in.com', 1, '2012-03-20', 'www.xwpstlryftm.lig'), (39, 'Vang', 'Rana', 46, 1.80, 'na', 'CA', 'consectetuer.rhoncus.Nullam@justo.edu', 0, '2012-02-15', 'www.ttazmmkvtir.ees'), (40, 'Duncan', 'Jamal', 28, 1.67, 'eu', 'FR', 'ac.eleifend.vitae@fringillamilacinia.org', 0, '2012-03-04', 'www.hthbbyfgrml.wce'), (41, 'Newton', 'Callie', 24, 1.23, 'eu', 'UK', 'sem@necluctus.com', 1, '2012-02-26', 'www.llycykzaoqn.sxw'), (42, 'Delgado', 'Cassady', 46, 1.57, 'eu', 'BE', 'vitae.dolor@hendrerit.com', 0, '2012-03-09', 'www.zffovshtpng.aaa'), (43, 'Craig', 'Eugenia', 40, 1.10, 'eu', 'FR', 'euismod.est.arcu@Aeneanmassa.com', 0, '2012-02-19', 'www.wodmbkmbkrr.tws'), (44, 'Fuentes', 'Hasad', 40, 1.82, 'eu', 'BE', 'lobortis.mauris.Suspendisse@fringilla.co.uk', 0, '2012-04-27', 'www.flhpczjzrrd.amj'), (45, 'Sargent', 'Vincent', 68, 1.30, 'na', 'US', 'eu.turpis@arcu.edu', 0, '2012-04-24', 'www.rjkjaojnxex.qoz'), (46, 'Baird', 'Tyrone', 41, 1.78, 'af', 'NG', 'malesuada.fringilla@et.net', 0, '2012-04-06', 'www.lcpjhmzvlaf.vtc'), (47, 'Cochran', 'Odette', 85, 1.71, 'na', 'US', 'mauris.sagittis@Inmi.co.uk', 1, '2012-04-23', 'www.swuexzzqcem.axp'), (48, 'Nixon', 'Gwendolyn', 45, 1.30, 'eu', 'FR', 'sed@aliquetodioEtiam.edu', 1, '2012-02-25', 'www.ucmwgyxeoou.yyv'), (49, 'Sexton', 'Blossom', 66, 1.21, 'na', 'US', 'Nunc@sociisnatoquepenatibus.ca', 0, '2012-04-20', 'www.qlfeaacyvyl.nfp'), (50, 'Mckinney', 'Charde', 83, 1.71, 'af', 'ZA', 'diam@quistristique.com', 1, '2012-03-01', 'www.jknfjztooic.lcf'), (51, 'Prince', 'Yetta', 80, 1.38, 'eu', 'FR', 'Phasellus.in@morbitristique.org', 1, '2012-02-15', 'www.bdmpmpbpuuo.qej'), (52, 'Sheppard', 'Steven', 68, 1.10, 'eu', 'UK', 'nulla.In@libero.com', 1, '2012-05-02', 'www.qjfkeubidxs.wbv'), (53, 'Wiggins', 'Hanna', 71, 1.00, 'eu', 'FR', 'vel.pede@pretiumetrutrum.edu', 1, '2012-02-22', 'www.jfhndzjeuiu.ojv'), (54, 'Hancock', 'Barry', 47, 1.83, 'af', 'ZA', 'mollis.Phasellus@tellus.ca', 0, '2012-03-09', 'www.tyloggcqcmr.njb'), (55, 'Leblanc', 'Lars', 52, 1.22, 'na', 'US', 'Phasellus.nulla@Quisqueimperdiet.org', 1, '2012-03-02', 'www.bondaerkgeq.smy'), (56, 'Baker', 'Portia', 88, 1.89, 'eu', 'UK', 'facilisi@eu.org', 0, '2012-03-17', 'www.aargfizrgan.fym'), (57, 'Calderon', 'Harding', 57, 1.15, 'eu', 'FR', 'Fusce@congue.com', 0, '2012-03-14', 'www.afchgpmecqj.qtx'), (58, 'Aguirre', 'Jonas', 72, 1.78, 'af', 'NG', 'a.ultricies@dolor.edu', 0, '2012-04-22', 'www.grpihyzbwzh.qud'), (59, 'Turner', 'Ivana', 79, 1.94, 'na', 'US', 'massa.Quisque.porttitor@Sedauctor.ca', 1, '2012-04-30', 'www.kqagqhwklub.huo'), (60, 'Armstrong', 'Regina', 75, 1.88, 'na', 'US', 'consequat@sapienimperdietornare.org', 1, '2012-02-09', 'www.oiyzcagwoht.jep'), (61, 'Guzman', 'Ariana', 33, 1.88, 'na', 'US', 'condimentum@intempuseu.com', 1, '2012-04-21', 'www.fovtvocaemm.kih'), (62, 'Fox', 'Alisa', 75, 1.53, 'eu', 'FR', 'lacus.Quisque.purus@dapibusidblandit.net', 1, '2012-04-23', 'www.cxugkgqsoyd.jmn'), (63, 'Wells', 'Ayanna', 86, 1.22, 'eu', 'FR', 'Nunc.sollicitudin@loremsemper.com', 1, '2012-04-20', 'www.lvlaupjhdit.bpa'), (64, 'Wagner', 'Ayanna', 40, 1.51, 'af', 'NG', 'sed.consequat@Aliquamtinciduntnunc.net', 1, '2012-03-29', 'www.nduqlosboqn.xfs'), (65, 'Vazquez', 'Denton', 56, 1.68, 'af', 'NG', 'sed.dolor.Fusce@Curabituregestas.edu', 0, '2012-03-25', 'www.cwdrmrosjmv.xcs'), (66, 'Rodriguez', 'Margaret', 37, 1.37, 'eu', 'FR', 'tincidunt.neque.vitae@nullaIntegervulputate.edu', 0, '2012-02-01', 'www.oqbxcxueppy.xyt'), (67, 'Oneal', 'Simon', 36, 1.67, 'eu', 'FR', 'interdum.Curabitur.dictum@dolorQuisquetincidunt.edu', 1, '2012-03-23', 'www.yxcnmblludu.bvo'), (68, 'Hayes', 'Kelly', 30, 1.49, 'eu', 'NL', 'erat@consequatpurusMaecenas.co.uk', 0, '2012-04-01', 'www.fixzlsbggln.mwm'), (69, 'Gutierrez', 'Branden', 63, 1.88, 'af', 'NG', 'suscipit.est@dignissim.ca', 1, '2012-03-25', 'www.bqaicnuzaea.qax'), (70, 'Mendoza', 'Lawrence', 75, 1.79, 'eu', 'UK', 'Praesent@quam.co.uk', 0, '2012-05-02', 'www.othpyhgyfwf.ape'), (71, 'Salinas', 'Emerald', 31, 1.59, 'eu', 'NL', 'suscipit.nonummy.Fusce@Sedidrisus.net', 1, '2012-02-05', 'www.obrtxxumcpc.iea'), (72, 'Lloyd', 'Aidan', 87, 1.04, 'na', 'US', 'ipsum@ipsumprimis.ca', 0, '2012-03-27', 'www.qltsavbfwpf.vqq'), (73, 'Duran', 'Neil', 24, 1.36, 'na', 'US', 'odio@risusQuisquelibero.edu', 1, '2012-04-10', 'www.tcaprflivsq.zbg'), (74, 'Mcintosh', 'Candice', 44, 1.53, 'eu', 'FR', 'nibh.sit.amet@ipsumSuspendissenon.edu', 0, '2012-04-29', 'www.dnszgjzhpov.zcd'), (75, 'Spencer', 'Galena', 23, 1.58, 'eu', 'BE', 'libero@in.ca', 1, '2012-03-10', 'www.dpvtdqtgupw.xfr'), (76, 'Goodman', 'Ima', 17, 1.98, 'eu', 'FR', 'Nam@atrisusNunc.org', 1, '2012-03-08', 'www.offivbfasor.tnn'), (77, 'Rios', 'Adam', 17, 1.49, 'eu', 'FR', 'lectus.quis@elit.net', 0, '2012-04-12', 'www.uzbnothcgbc.hnb'), (78, 'Mccormick', 'Mallory', 61, 1.46, 'af', 'NG', 'diam.Pellentesque@lectusconvallis.ca', 1, '2012-03-27', 'www.fwcmyetlgig.wuv'), (79, 'Delgado', 'Geoffrey', 89, 1.24, 'af', 'ZA', 'turpis.nec.mauris@scelerisquemollis.edu', 0, '2012-04-10', 'www.ftwlcdixyob.ytm'), (80, 'Bentley', 'Aretha', 59, 1.54, 'na', 'US', 'Nullam@justo.net', 0, '2012-04-30', 'www.bdcareylqax.goj'), (81, 'Guerra', 'Zephr', 78, 1.47, 'af', 'NG', 'justo.sit.amet@accumsannequeet.ca', 1, '2012-03-14', 'www.coctpzzdiid.evy'), (82, 'Cameron', 'Shad', 17, 1.70, 'na', 'US', 'in.cursus@dignissimpharetraNam.ca', 0, '2012-03-21', 'www.solbxofsmjc.nbd'), (83, 'Atkinson', 'Wang', 34, 1.03, 'na', 'US', 'nec.urna.suscipit@ligulaAeneangravida.com', 1, '2012-03-01', 'www.xmkkwmyyqyi.xaq'), (84, 'Bryant', 'Zorita', 49, 1.27, 'eu', 'UK', 'pellentesque@dolorelit.ca', 0, '2012-02-03', 'www.xljojrlkiok.uve'), (85, 'Clemons', 'Sonya', 53, 1.15, 'eu', 'BE', 'eget.ipsum@mauriserat.com', 1, '2012-03-04', 'www.ltduiopestc.fyq'), (86, 'Evans', 'Alan', 87, 1.63, 'na', 'CA', 'feugiat.non@ettristiquepellentesque.net', 0, '2012-04-03', 'www.iihabjgaana.yei'), (87, 'French', 'Marshall', 16, 1.62, 'eu', 'FR', 'lobortis.quam.a@orciDonecnibh.org', 1, '2012-02-20', 'www.mqzmdaliitq.jkw'), (88, 'Witt', 'Mercedes', 74, 1.57, 'na', 'CA', 'mollis@vestibulum.com', 0, '2012-02-20', 'www.asrjlisverq.ygj'), (89, 'Newton', 'Barrett', 85, 1.08, 'eu', 'UK', 'Cras@telluslorem.ca', 1, '2012-03-15', 'www.diqiahhgqyh.oad'), (90, 'Morrow', 'Palmer', 27, 1.89, 'af', 'ZA', 'dignissim@nuncsit.edu', 0, '2012-04-05', 'www.dhqugxigbzp.fun'), (91, 'Wong', 'Marcia', 83, 1.59, 'na', 'US', 'leo@acmattisvelit.org', 0, '2012-01-29', 'www.vsgxsvdmjch.hqh'), (92, 'Crawford', 'Sade', 71, 1.56, 'eu', 'BE', 'quis.diam@mus.edu', 0, '2012-02-03', 'www.mhnwjudabjy.uxp'), (93, 'Berg', 'Calvin', 72, 1.26, 'eu', 'NL', 'ornare.lectus.justo@egetvolutpatornare.com', 0, '2012-02-26', 'www.cigereypuar.ngi'), (94, 'Tran', 'Abraham', 32, 1.61, 'na', 'CA', 'vel@vestibulumneque.co.uk', 0, '2012-02-25', 'www.pvrkvixcrvc.xmg'), (95, 'Mcknight', 'Nero', 77, 1.09, 'eu', 'NL', 'eu.eros@nonarcu.ca', 0, '2012-03-27', 'www.lkjcgmattpb.osz'), (96, 'Klein', 'Colin', 78, 1.41, 'af', 'NG', 'Aliquam@vitae.com', 0, '2012-02-08', 'www.yearubgnbtp.wes'), (97, 'Navarro', 'Illana', 56, 1.76, 'eu', 'UK', 'Duis.mi.enim@ametconsectetuer.co.uk', 0, '2012-04-20', 'www.wguxzjudclu.qgl'), (98, 'Mccoy', 'Fallon', 32, 1.35, 'af', 'ZA', 'In.ornare.sagittis@eu.org', 0, '2012-04-22', 'www.vejxqdnxpcm.vnb'), (99, 'Hughes', 'Minerva', 72, 1.54, 'eu', 'UK', 'nonummy.ipsum.non@in.edu', 1, '2012-04-17', 'www.jnqzqcudegy.yul'), (100, 'Munoz', 'Harrison', 84, 1.72, 'eu', 'FR', 'eu.ultrices@nisiAenean.org', 0, '2012-03-15', 'www.fhhjngiiszn.pts'), (101, 'Wilcox', 'Sean', 48, 1.92, 'eu', 'FR', 'mauris.sagittis.placerat@dictum.co.uk', 1, '2012-05-04', 'www.jfdbfqrzjqi.uqp'), (102, 'Stevens', 'Chloe', 74, 1.65, 'eu', 'UK', 'dolor@ultriciesdignissimlacus.edu', 0, '2012-03-14', 'www.zrcjilezaan.vsc'), (103, 'Robinson', 'Gwendolyn', 29, 1.48, 'na', 'US', 'arcu.Nunc@augue.ca', 0, '2012-03-11', 'www.aukavyvoaqe.fbb'), (104, 'Leon', 'Tana', 69, 1.24, 'na', 'CA', 'justo.faucibus.lectus@et.org', 0, '2012-04-16', 'www.ehpextkyuyx.meh'), (105, 'Mccarthy', 'Stephen', 24, 1.98, 'na', 'US', 'interdum@variusultrices.edu', 0, '2012-04-08', 'www.oofjmcvrklb.nkx'), (106, 'Taylor', 'Jarrod', 53, 1.64, 'eu', 'FR', 'auctor.quis.tristique@miac.net', 0, '2012-02-17', 'www.aorkzsykqvp.dmb'), (107, 'Morris', 'Harriet', 24, 1.35, 'na', 'US', 'eleifend@euismodestarcu.co.uk', 1, '2012-04-29', 'www.luebqtecvvs.yfh'), (108, 'Crosby', 'Chloe', 70, 1.96, 'af', 'NG', 'nascetur.ridiculus.mus@Vivamusnonlorem.org', 1, '2012-01-30', 'www.xoqskjqpqwd.jvv'), (109, 'Lynch', 'Lev', 15, 1.71, 'na', 'US', 'amet@eu.com', 0, '2012-03-04', 'www.bzcsvfcraqy.ajb'), (110, 'Howard', 'Lars', 50, 1.00, 'eu', 'FR', 'eros.nec@massa.edu', 0, '2012-04-15', 'www.qctrsrsbsei.ffk'), (111, 'Davis', 'Raya', 62, 1.72, 'af', 'ZA', 'mus.Aenean.eget@nonmagnaNam.com', 1, '2012-04-20', 'www.gaszfbeklkh.cdn'), (112, 'Jennings', 'Abigail', 70, 1.79, 'eu', 'FR', 'lacinia@Duis.ca', 1, '2012-04-22', 'www.buynefqitct.mus'), (113, 'Paul', 'Christopher', 57, 1.63, 'eu', 'FR', 'Cras.lorem@ridiculusmusProin.net', 0, '2012-04-18', 'www.oklhmethxmj.let'), (114, 'Palmer', 'Jennifer', 21, 1.55, 'eu', 'UK', 'facilisis@Suspendissesagittis.edu', 1, '2012-03-19', 'www.yydvknhphzg.jow'), (115, 'Bates', 'Nathan', 90, 1.62, 'eu', 'BE', 'sociis.natoque@tristiquenequevenenatis.org', 0, '2012-02-12', 'www.eqxlqevebwm.ams'), (116, 'Franks', 'Dieter', 24, 1.80, 'na', 'CA', 'risus@estmollisnon.co.uk', 0, '2012-02-21', 'www.htoiqbjctrg.xmi'), (117, 'Gray', 'Declan', 33, 1.53, 'eu', 'NL', 'Nullam@elitfermentumrisus.co.uk', 0, '2012-04-17', 'www.whnpztnlbwo.hkx'), (118, 'Hutchinson', 'Fatima', 90, 1.41, 'af', 'NG', 'Ut.nec@temporloremeget.ca', 1, '2012-02-25', 'www.qdfrzuzjrlz.rxd'), (119, 'Sosa', 'Felicia', 39, 1.95, 'na', 'US', 'enim@odio.edu', 0, '2012-02-03', 'www.gcpxnoplrlb.akq'), (120, 'Macias', 'Karyn', 75, 1.01, 'na', 'CA', 'lacus@mauriserat.net', 0, '2012-03-15', 'www.ikmzwnzhdoz.yqd'), (121, 'Hobbs', 'Jada', 75, 1.35, 'af', 'ZA', 'orci.Ut.semper@ipsumleo.net', 0, '2012-02-18', 'www.rsmvgmtxqfo.kob'), (122, 'Walter', 'Forrest', 79, 1.44, 'af', 'NG', 'ac@molestiearcu.edu', 1, '2012-04-05', 'www.aurqzgbohzs.ekc'), (123, 'Collins', 'Angela', 63, 1.89, 'na', 'US', 'nisi@euismodacfermentum.edu', 1, '2012-04-14', 'www.ffhmfaqpcvb.tsz'), (124, 'Steele', 'Yeo', 19, 1.87, 'eu', 'BE', 'vulputate@nunc.org', 0, '2012-04-24', 'www.obzrxbkqahp.ccj'), (125, 'Booth', 'Risa', 23, 1.51, 'eu', 'FR', 'arcu.vel@Suspendissealiquet.org', 0, '2012-02-02', 'www.nuxocmrewtb.zhg'), (126, 'Shepherd', 'Gretchen', 33, 1.26, 'na', 'CA', 'Proin.ultrices@eleifendnuncrisus.org', 1, '2012-04-03', 'www.yccuveudkqt.rvk'), (127, 'Stevens', 'Heidi', 88, 1.26, 'eu', 'UK', 'risus@sapienmolestieorci.net', 1, '2012-02-17', 'www.lptwfnnbxkr.wqh'), (128, 'Pugh', 'Kathleen', 60, 1.81, 'eu', 'UK', 'fringilla.Donec@eu.co.uk', 0, '2012-02-03', 'www.wnkuybrojkh.zhk'), (129, 'Warren', 'Noelani', 77, 1.14, 'eu', 'UK', 'at@etrutrumnon.org', 1, '2012-04-07', 'www.rbjamqztbyp.wcb'), (130, 'Schmidt', 'Hollee', 34, 1.78, 'eu', 'BE', 'molestie@luctus.com', 1, '2012-03-05', 'www.ffhgewdgyyx.fqt'), (131, 'Chase', 'Melanie', 87, 1.97, 'eu', 'NL', 'feugiat.Sed.nec@Mauris.edu', 0, '2012-04-15', 'www.adpzcmetgjo.fih'), (132, 'Nolan', 'Kamal', 58, 1.57, 'eu', 'UK', 'luctus.ut.pellentesque@Proin.com', 0, '2012-04-19', 'www.xkwetkjbrai.goa'), (133, 'Bryant', 'Colby', 48, 1.32, 'af', 'ZA', 'diam@ullamcorperDuis.ca', 0, '2012-04-18', 'www.kwicxqjmrmo.cuu'), (134, 'Summers', 'Erich', 80, 1.17, 'na', 'CA', 'sit.amet@laciniaorci.ca', 0, '2012-03-28', 'www.ixvzjkcdezh.bdb'), (135, 'Sullivan', 'Rogan', 62, 1.70, 'af', 'ZA', 'malesuada.fames@pharetraQuisqueac.co.uk', 0, '2012-03-28', 'www.tyfxynybovk.epl'), (136, 'Johns', 'Reuben', 57, 1.91, 'na', 'CA', 'ipsum.Suspendisse.non@leoelementumsem.co.uk', 1, '2012-02-20', 'www.rvwgrhkgtxp.hvt'), (137, 'Lewis', 'Charity', 24, 1.97, 'eu', 'FR', 'et.commodo@metusVivamus.edu', 0, '2012-03-07', 'www.qomjlcrgwfu.zco'), (138, 'Duncan', 'Quail', 48, 1.38, 'eu', 'UK', 'laoreet.lectus@senectus.net', 1, '2012-02-26', 'www.ylzuqtutiap.ulk'), (139, 'Banks', 'Sandra', 27, 1.95, 'na', 'US', 'ut.dolor.dapibus@famesacturpis.net', 1, '2012-02-27', 'www.qmgynwtyhtw.ltl'), (140, 'Buckner', 'Giacomo', 62, 1.83, 'na', 'US', 'rutrum.magna.Cras@at.co.uk', 1, '2012-04-05', 'www.asphmltfwwk.mtu'), (141, 'Abbott', 'Leslie', 78, 1.67, 'eu', 'BE', 'eget.venenatis.a@arcuVestibulum.edu', 1, '2012-03-19', 'www.zvbwrlilfie.bax'), (142, 'Harmon', 'Kenyon', 56, 1.08, 'af', 'NG', 'lacinia.orci@a.ca', 1, '2012-03-22', 'www.wxgcglegjon.xqk'), (143, 'Padilla', 'Nasim', 88, 1.87, 'na', 'US', 'ornare@nonbibendumsed.org', 0, '2012-02-17', 'www.wqjfexcvivd.hrw'), (144, 'Huff', 'Inga', 76, 1.13, 'na', 'US', 'a.ultricies.adipiscing@Proin.edu', 0, '2012-03-09', 'www.afhiakprgbi.bgs'), (145, 'Bridges', 'Camilla', 51, 1.53, 'eu', 'NL', 'neque.pellentesque.massa@nec.edu', 0, '2012-03-15', 'www.nqausjvybxl.nlt'), (146, 'Randolph', 'Demetria', 32, 1.57, 'eu', 'NL', 'diam.Duis@dignissim.edu', 1, '2012-02-15', 'www.yxuzvgnhagv.gwo'), (147, 'Mckay', 'Zephr', 38, 1.38, 'na', 'CA', 'lectus.quis.massa@ac.org', 1, '2012-03-18', 'www.zxfzebfapva.xew'), (148, 'Brooks', 'Hamish', 29, 1.49, 'eu', 'NL', 'cubilia@vitaesodalesnisi.net', 1, '2012-01-29', 'www.nxxcsyaxudc.aqb'), (149, 'Blevins', 'Burton', 25, 1.20, 'na', 'CA', 'mi.Duis.risus@musAenean.edu', 0, '2012-03-24', 'www.pcakgckwemy.hsy'), (150, 'Orr', 'Ulla', 37, 1.49, 'eu', 'NL', 'Morbi.vehicula@lacus.net', 0, '2012-04-16', 'www.tcdypcghayg.iif'), (151, 'Reyes', 'Lysandra', 84, 1.06, 'af', 'NG', 'auctor.velit.Aliquam@dictummiac.ca', 0, '2012-02-28', 'www.awrauxidccx.ado'), (152, 'Browning', 'Ivor', 19, 1.79, 'eu', 'NL', 'turpis.In.condimentum@vulputate.net', 1, '2012-02-19', 'www.lbandxohlrn.nkm'), (153, 'Baldwin', 'Vincent', 48, 1.03, 'eu', 'FR', 'Curabitur@Fusce.co.uk', 0, '2012-02-18', 'www.dnnpfacpmda.yej'), (154, 'Battle', 'Aladdin', 39, 1.65, 'af', 'NG', 'quis@libero.edu', 0, '2012-03-07', 'www.qdwdhxblgcm.ota'), (155, 'Brock', 'Rinah', 79, 1.90, 'na', 'US', 'mauris.ut@volutpatNulladignissim.edu', 0, '2012-03-06', 'www.gdqngcbadex.zdx'), (156, 'Morton', 'Hakeem', 53, 1.25, 'af', 'NG', 'Quisque@milacinia.ca', 1, '2012-04-12', 'www.xpsatqaxoqc.bwp'), (157, 'Parks', 'Mariko', 82, 1.50, 'eu', 'FR', 'adipiscing.elit.Etiam@massaMaurisvestibulum.net', 1, '2012-03-31', 'www.bvmpmorjejd.bye'), (158, 'Albert', 'Rhea', 44, 1.95, 'af', 'NG', 'Aenean.eget.metus@sed.net', 1, '2012-05-01', 'www.zjdeshfqlgn.vec'), (159, 'Potts', 'Gil', 43, 1.60, 'eu', 'FR', 'vestibulum.Mauris@necluctus.net', 0, '2012-04-19', 'www.uytffgajjun.tkp'), (160, 'Morgan', 'Illana', 40, 1.89, 'na', 'US', 'tellus.id.nunc@etmagnaPraesent.co.uk', 0, '2012-03-01', 'www.wakfuyzfopw.xmu'), (161, 'Hyde', 'Celeste', 19, 1.61, 'na', 'US', 'sem@euenimEtiam.ca', 1, '2012-02-20', 'www.opvcfrzrllf.maj'), (162, 'Summers', 'Donovan', 67, 1.02, 'af', 'ZA', 'Nullam@aliquet.org', 0, '2012-02-15', 'www.vkbgvgtwpqa.hqf'), (163, 'David', 'Haley', 34, 1.21, 'eu', 'FR', 'egestas@duinec.org', 0, '2012-02-20', 'www.mdectejkjpa.qwe'), (164, 'Raymond', 'Quamar', 35, 1.56, 'af', 'ZA', 'eu.tellus.Phasellus@enimMauris.net', 0, '2012-04-01', 'www.ictssuiozcx.grn'), (165, 'Clarke', 'Talon', 70, 1.93, 'eu', 'FR', 'interdum.Curabitur.dictum@scelerisquedui.co.uk', 0, '2012-03-23', 'www.nfrnhptycxi.vwt'), (166, 'Sears', 'Karyn', 34, 1.57, 'na', 'CA', 'sagittis@maurisInteger.ca', 1, '2012-04-22', 'www.ojrqhamdthw.zvo'), (167, 'Ellis', 'Clinton', 85, 1.12, 'eu', 'FR', 'blandit.mattis.Cras@ametrisusDonec.com', 0, '2012-03-31', 'www.nqegyagupnw.nrc'), (168, 'Christensen', 'Jane', 62, 1.92, 'eu', 'FR', 'lobortis@Vivamusnisi.ca', 0, '2012-04-01', 'www.kwdakanbdss.tra'), (169, 'Branch', 'Isadora', 18, 1.56, 'na', 'US', 'eget.nisi.dictum@duiFusce.ca', 1, '2012-03-04', 'www.zcbcuuvluyd.vnu'), (170, 'Farley', 'Aimee', 19, 1.82, 'na', 'US', 'ad.litora.torquent@tincidunt.org', 1, '2012-04-24', 'www.meghdjcqekb.ggh'), (171, 'George', 'Shoshana', 62, 1.87, 'na', 'US', 'ac.arcu.Nunc@Sed.ca', 0, '2012-03-01', 'www.mrbrbdxikgg.acz'), (172, 'Price', 'Nissim', 21, 1.18, 'na', 'CA', 'non.hendrerit@facilisisnon.com', 1, '2012-02-04', 'www.oexykdzndsv.fwq'), (173, 'Gamble', 'Brian', 29, 1.40, 'na', 'US', 'enim@fringillaDonec.edu', 1, '2012-03-08', 'www.hclkvhqsxyt.clu'), (174, 'Walters', 'Roanna', 23, 1.74, 'na', 'US', 'montes.nascetur@vulputatenisisem.co.uk', 1, '2012-04-18', 'www.eonbngdybcv.ewh'), (175, 'Hester', 'Natalie', 80, 1.34, 'na', 'US', 'eget.mollis.lectus@Nullamvelitdui.co.uk', 0, '2012-04-24', 'www.pcdrfzvbggw.coh'), (176, 'Watts', 'Zephr', 49, 1.36, 'na', 'US', 'libero.at.auctor@nonarcuVivamus.co.uk', 1, '2012-05-02', 'www.bubiaylofjo.rrg'), (177, 'Cline', 'Meredith', 25, 1.66, 'na', 'US', 'Lorem.ipsum.dolor@acturpisegestas.com', 1, '2012-02-13', 'www.utiadxsvdxq.gph'), (178, 'Hodges', 'Hanna', 62, 1.33, 'eu', 'NL', 'libero.Morbi.accumsan@ante.co.uk', 0, '2012-01-25', 'www.bqdfntmcaxs.qfc'), (179, 'Fleming', 'Ross', 50, 1.74, 'eu', 'FR', 'vestibulum.massa@molestietellus.com', 0, '2012-03-11', 'www.grehpxxuzfe.lyp'), (180, 'English', 'Veda', 22, 1.10, 'eu', 'FR', 'enim.consequat@sagittisNullamvitae.org', 0, '2012-02-21', 'www.qjgqokbnzim.cno'), (181, 'Bruce', 'Bryar', 61, 1.14, 'na', 'CA', 'massa.Integer.vitae@Namconsequat.net', 0, '2012-05-01', 'www.nvqnecpsrsf.hxq'), (182, 'Summers', 'Chastity', 17, 1.00, 'eu', 'FR', 'nisl.Quisque@NullafacilisiSed.edu', 0, '2012-02-01', 'www.iqwzjbhgseu.tew'), (183, 'George', 'Sophia', 68, 1.31, 'eu', 'BE', 'nec.tellus.Nunc@ridiculusmus.com', 1, '2012-03-06', 'www.soblsvexsnv.kwz'), (184, 'Branch', 'Clayton', 55, 1.23, 'na', 'CA', 'lacus@at.org', 1, '2012-04-17', 'www.aqvseqdaqgc.enl'), (185, 'Griffith', 'Dai', 54, 1.25, 'af', 'ZW', 'lacus.Quisque@sed.net', 0, '2012-04-29', 'www.bxlrdovrzff.nlu'), (186, 'Vang', 'Marshall', 67, 1.64, 'af', 'ZW', 'vel.mauris.Integer@lorem.ca', 0, '2012-02-20', 'www.xmzxsfkdzik.rzw'), (187, 'Steele', 'Ann', 51, 1.79, 'af', 'ZW', 'nulla@Nulla.org', 1, '2012-03-08', 'www.ktbkbmcbiyn.usm'), (188, 'Leonard', 'Veda', 89, 1.71, 'eu', 'FR', 'fringilla@mauris.co.uk', 0, '2012-03-02', 'www.radzyqurdiq.cct'), (189, 'Simon', 'Bernard', 88, 1.55, 'na', 'US', 'nonummy.Fusce.fermentum@lacusUtnec.com', 1, '2012-03-20', 'www.rapuifxlytm.yga'), (190, 'Stewart', 'Iris', 51, 1.01, 'eu', 'UK', 'Cras@necmetus.com', 1, '2012-03-28', 'www.zfeyyqwfrtw.dub'), (191, 'Gray', 'Herrod', 38, 1.31, 'af', 'ZA', 'orci.lacus.vestibulum@ullamcorper.ca', 0, '2012-03-17', 'www.pmjggfkbhtg.pck'), (192, 'Butler', 'Philip', 67, 1.84, 'na', 'CA', 'luctus.aliquet@turpis.edu', 0, '2012-04-04', 'www.ykogevvgfyp.xva'), (193, 'Dunlap', 'Geraldine', 24, 1.60, 'af', 'ZA', 'quis.massa.Mauris@egestas.ca', 0, '2012-04-29', 'www.bmsglidgjkw.mcy'), (194, 'Morse', 'Abbot', 25, 1.00, 'eu', 'FR', 'luctus.ut@nuncsedpede.ca', 0, '2012-03-28', 'www.qqoablmdjdd.neg'), (195, 'Mclean', 'Yvette', 28, 1.82, 'eu', 'UK', 'nulla.In@metusIn.net', 1, '2012-02-24', 'www.ngqxjuloaao.fxv'), (196, 'Deleon', 'Lee', 77, 1.37, 'na', 'CA', 'cursus.vestibulum.Mauris@Duiselementumdui.org', 0, '2012-03-28', 'www.gxvhyjnvftp.adj'), (197, 'David', 'Kirk', 49, 1.64, 'af', 'NG', 'leo@vestibulumnec.org', 0, '2012-02-17', 'www.jyiosypvivc.tmo'), (198, 'Bonner', 'Buckminster', 84, 1.76, 'eu', 'UK', 'Proin.vel@porttitorvulputate.co.uk', 0, '2012-02-20', 'www.wndeifyutaw.rto'), (199, 'Merritt', 'Regan', 48, 1.49, 'af', 'ZA', 'ornare.sagittis@vel.net', 0, '2012-03-26', 'www.yqhsqekksag.eme'), (200, 'Carroll', 'Shaine', 34, 1.23, 'na', 'US', 'Donec.nibh@arcu.com', 1, '2012-02-23', 'www.wpjpppubuxz.bei'), (201, 'Allison', 'Castor', 44, 1.26, 'af', 'NG', 'pede.ac@velit.ca', 1, '2012-03-28', 'www.pkskirlmzlo.kse'), (202, 'Lawrence', 'Ramona', 78, 1.55, 'af', 'NG', 'nisi.Aenean.eget@lacus.org', 1, '2012-02-19', 'www.ixbiipsbugy.qvn'), (203, 'Russo', 'Nerea', 41, 1.69, 'na', 'CA', 'cursus.et.eros@Aliquam.com', 0, '2012-03-02', 'www.mxnhelxzzsu.iju'), (204, 'Warner', 'Briar', 89, 1.81, 'eu', 'FR', 'amet.faucibus@fames.net', 0, '2012-02-06', 'www.nqkmievrzte.zqh'), (205, 'William', 'Russell', 25, 1.26, 'af', 'NG', 'eleifend.nunc.risus@cursus.co.uk', 0, '2012-03-12', 'www.isbimghcogm.rnc'), (206, 'Sherman', 'Paloma', 79, 1.11, 'eu', 'FR', 'Etiam.gravida.molestie@euismodacfermentum.co.uk', 0, '2012-01-26', 'www.fdotkakxdgt.zkx'), (207, 'Vega', 'Solomon', 77, 1.22, 'eu', 'BE', 'quis@ametmetusAliquam.org', 0, '2012-03-30', 'www.xwhadaanyyx.tde'), (208, 'Wheeler', 'Uriel', 75, 1.68, 'eu', 'BE', 'in.hendrerit.consectetuer@sitametdiam.ca', 1, '2012-02-13', 'www.hqkfpiztnyd.hoz'), (209, 'Whitfield', 'Leslie', 76, 1.44, 'eu', 'FR', 'enim.gravida@Etiamlaoreetlibero.net', 0, '2012-01-26', 'www.csdqqgyfgxy.bjk'), (210, 'Kidd', 'Helen', 35, 1.55, 'na', 'CA', 'vulputate.dui@anteNuncmauris.org', 0, '2012-03-13', 'www.viocfndoxqf.eeu'), (211, 'Cline', 'Kyra', 84, 1.65, 'na', 'US', 'gravida.Praesent.eu@eutellus.com', 1, '2012-03-02', 'www.ykjwbobgjfz.hwn'), (212, 'Jennings', 'Travis', 39, 1.75, 'na', 'US', 'pede@tempusscelerisque.co.uk', 1, '2012-03-08', 'www.byykdyralel.uxz'), (213, 'Ware', 'Thor', 46, 1.61, 'af', 'ZA', 'Fusce.aliquet.magna@Phasellus.org', 0, '2012-01-27', 'www.oekaivugutq.fkv'), (214, 'Gray', 'Jessamine', 88, 1.80, 'eu', 'BE', 'augue@in.com', 0, '2012-04-17', 'www.ozrjsipcdyu.ctv'), (215, 'Hodge', 'Darius', 37, 1.75, 'af', 'NG', 'in.lobortis@gravidaPraesenteu.co.uk', 0, '2012-02-04', 'www.momqmhsgddj.kxw'), (216, 'Huber', 'Glenna', 78, 1.49, 'af', 'ZW', 'pede@vitaeeratvel.ca', 0, '2012-05-03', 'www.agrdkaohwax.slw'), (217, 'Hopper', 'Ivor', 39, 1.20, 'af', 'ZW', 'quis@Crasvulputate.ca', 1, '2012-03-31', 'www.vbesbbknxvs.gbt'), (218, 'Ratliff', 'Brynn', 28, 1.13, 'na', 'US', 'Curabitur.egestas.nunc@felis.com', 0, '2012-02-27', 'www.zqpxmienbxa.gak'), (219, 'Dominguez', 'Macey', 53, 1.98, 'na', 'CA', 'a.purus@sed.org', 1, '2012-03-30', 'www.hnailbomlvg.yvc'), (220, 'Shelton', 'Kaye', 46, 1.53, 'eu', 'FR', 'lobortis.tellus@dapibusidblandit.co.uk', 0, '2012-02-21', 'www.onwaiczdfuw.qkf'), (221, 'Freeman', 'Chanda', 68, 1.31, 'af', 'ZA', 'vitae.purus.gravida@diam.com', 0, '2012-03-06', 'www.wdobykripzw.ihz'), (222, 'Warner', 'Vera', 25, 1.59, 'eu', 'FR', 'nunc.nulla@diamdictumsapien.net', 1, '2012-02-18', 'www.omyelvmtuks.yyr'), (223, 'Nelson', 'Desiree', 33, 1.87, 'eu', 'UK', 'a.nunc.In@ipsumCurabiturconsequat.co.uk', 0, '2012-04-30', 'www.sldnwwmvndk.tae'), (224, 'Burch', 'Bruce', 38, 1.69, 'af', 'ZA', 'mi.tempor@nascetur.org', 0, '2012-02-01', 'www.mwzaajtanwc.voc'), (225, 'Sanford', 'Quentin', 71, 1.14, 'na', 'US', 'at.iaculis@nullaanteiaculis.ca', 1, '2012-03-13', 'www.xkulhwhvyce.sfo'), (226, 'Mcknight', 'Hadley', 79, 1.51, 'af', 'ZW', 'augue.ut.lacus@Suspendisseacmetus.co.uk', 0, '2012-02-12', 'www.qdbpfghlvxb.rmg'), (227, 'Moody', 'Donna', 81, 1.08, 'na', 'CA', 'Quisque.ornare@Phasellusdolorelit.org', 0, '2012-03-13', 'www.rummrndetts.qun'), (228, 'Acevedo', 'Lilah', 31, 1.52, 'na', 'US', 'nec.euismod@cursusnon.org', 0, '2012-04-21', 'www.qplkieadsax.ypc'), (229, 'Good', 'Liberty', 30, 1.81, 'eu', 'FR', 'feugiat@dolor.org', 0, '2012-04-25', 'www.zkqrknqaqzu.vwz'), (230, 'Santos', 'Jaquelyn', 55, 1.48, 'eu', 'NL', 'at@pedeblanditcongue.net', 0, '2012-04-25', 'www.gjfwizsfynw.myr'), (231, 'Hicks', 'Giselle', 61, 1.36, 'na', 'US', 'varius@fermentumfermentumarcu.net', 0, '2012-04-19', 'www.fkkexgrwybm.olc'), (232, 'Morrow', 'Dustin', 74, 1.38, 'na', 'US', 'Aliquam@disparturientmontes.com', 1, '2012-03-18', 'www.xymwaykmbbp.vlm'), (233, 'Neal', 'Hedwig', 27, 1.34, 'eu', 'UK', 'mollis.vitae@sit.edu', 0, '2012-02-02', 'www.bntcojyzvpq.axb'), (234, 'Guerra', 'Suki', 20, 1.78, 'eu', 'FR', 'eu.arcu.Morbi@convallisestvitae.org', 0, '2012-04-15', 'www.vigqywrwxau.zvq'), (235, 'Hayes', 'Myles', 53, 1.81, 'eu', 'FR', 'Mauris@sit.net', 0, '2012-04-15', 'www.jmahmvhilrq.ynt'), (236, 'Nelson', 'Brooke', 84, 1.87, 'eu', 'NL', 'diam.vel@cursusdiam.net', 0, '2012-03-26', 'www.laiwryvfsms.qhl'), (237, 'Suarez', 'Anthony', 65, 1.10, 'eu', 'BE', 'neque.non.quam@atauctorullamcorper.net', 1, '2012-03-28', 'www.gnvyzoohzli.qqk'), (238, 'Hubbard', 'Raphael', 72, 1.61, 'af', 'NG', 'commodo.hendrerit.Donec@etultricesposuere.ca', 1, '2012-02-25', 'www.hcggooxezjn.taq'), (239, 'Thornton', 'Bethany', 15, 1.93, 'af', 'ZW', 'dui.lectus@vitaevelit.net', 0, '2012-04-01', 'www.iqfizsbajym.jyw'), (240, 'Pacheco', 'Sydnee', 15, 1.22, 'eu', 'UK', 'Aenean@acliberonec.co.uk', 1, '2012-03-06', 'www.bawlzjuxgmw.guc'), (241, 'Sawyer', 'Dahlia', 35, 1.95, 'af', 'NG', 'vel.est.tempor@Namnulla.co.uk', 0, '2012-01-30', 'www.frkmegsyjon.qmb'), (242, 'Jacobson', 'Zena', 20, 1.38, 'af', 'ZW', 'euismod.enim.Etiam@ornarelectusjusto.co.uk', 1, '2012-01-28', 'www.osxygkoslas.nkp'), (243, 'Scott', 'Oprah', 88, 1.26, 'eu', 'NL', 'mauris.ut.mi@Donec.co.uk', 1, '2012-05-02', 'www.blgmmzaxovt.nck'), (244, 'Gregory', 'Nina', 38, 1.58, 'af', 'ZW', 'sociis.natoque.penatibus@Loremipsum.edu', 1, '2012-04-14', 'www.zdvozobczlx.hau'), (245, 'Medina', 'Kristen', 27, 1.78, 'af', 'ZA', 'orci@Aenean.ca', 0, '2012-02-02', 'www.srhrcfydzow.dis'), (246, 'Eaton', 'Andrew', 64, 1.52, 'af', 'ZW', 'nunc.est.mollis@Duis.net', 0, '2012-05-02', 'www.etidhehqwoq.ndy'), (247, 'Brock', 'Neve', 27, 1.05, 'eu', 'BE', 'venenatis@feugiatplacerat.co.uk', 1, '2012-04-03', 'www.ofgluxyywbt.aci'), (248, 'Juarez', 'Adele', 70, 1.41, 'eu', 'FR', 'vestibulum.neque@maurisipsum.co.uk', 0, '2012-03-15', 'www.tuhpwbqzkdk.doo'), (249, 'Mullen', 'Haley', 56, 1.02, 'eu', 'UK', 'risus@Nullatincidunt.net', 0, '2012-03-07', 'www.lljwpuzdjqt.xsb'), (250, 'Beck', 'Lev', 75, 1.17, 'na', 'US', 'in@parturientmontesnascetur.org', 0, '2012-03-24', 'www.llkubesugub.bxt'), (251, 'Whitney', 'Indigo', 42, 1.68, 'eu', 'UK', 'massa.Vestibulum@inconsectetueripsum.net', 0, '2012-04-04', 'www.clvifwjcqit.zyq'), (252, 'Oconnor', 'Moses', 86, 1.27, 'af', 'ZW', 'consequat.purus@tristiquepharetra.org', 1, '2012-04-08', 'www.fwxwfrwehnl.gtg'), (253, 'Palmer', 'Mollie', 26, 1.33, 'eu', 'FR', 'nec@sit.co.uk', 0, '2012-03-26', 'www.wuoeiakcgcx.kmf'), (254, 'Acevedo', 'Baxter', 15, 1.06, 'eu', 'FR', 'amet.consectetuer@lectus.co.uk', 1, '2012-04-15', 'www.xjrdlooyuoz.upq'), (255, 'Petty', 'Griffin', 24, 1.16, 'af', 'ZA', 'nisl.elementum@egestasrhoncusProin.edu', 0, '2012-02-17', 'www.vshpggkwxdb.ahr'), (256, 'Walton', 'Fulton', 81, 1.89, 'na', 'US', 'Vivamus@Praesentinterdumligula.net', 0, '2012-04-04', 'www.vddsgetowss.snr'), (257, 'Estes', 'Christen', 32, 1.76, 'af', 'NG', 'pede@tellus.net', 0, '2012-04-16', 'www.qnzmfsesjlg.pgy'), (258, 'Wade', 'Dane', 72, 1.22, 'af', 'ZW', 'magnis@lectusjusto.net', 1, '2012-01-27', 'www.azjjlqzrpxu.idc'), (259, 'Conley', 'Allistair', 68, 1.10, 'af', 'ZA', 'velit@id.com', 1, '2012-03-29', 'www.fehvccegejg.wmj'), (260, 'Dejesus', 'Patience', 59, 1.49, 'na', 'US', 'molestie.orci@velitAliquamnisl.edu', 0, '2012-02-05', 'www.ughypoubxax.nmw'), (261, 'Daniel', 'Alexandra', 32, 1.42, 'eu', 'UK', 'odio.vel@interdumNuncsollicitudin.org', 0, '2012-04-01', 'www.neikfgyscdd.iqj'), (262, 'Carson', 'Gretchen', 30, 1.76, 'eu', 'FR', 'nibh.sit@quamCurabitur.co.uk', 1, '2012-05-03', 'www.xviazmjpvnf.bgw'), (263, 'Snyder', 'Willow', 80, 1.23, 'eu', 'BE', 'tincidunt.adipiscing@orciconsectetuer.com', 0, '2012-04-27', 'www.eraafgbmdxl.aeu'), (264, 'Figueroa', 'Amber', 89, 1.67, 'af', 'ZA', 'sem@elementumategestas.org', 0, '2012-04-02', 'www.hmrlkcloxta.wjt'), (265, 'Downs', 'Judith', 30, 1.33, 'na', 'US', 'Cras.lorem.lorem@orciUt.net', 1, '2012-03-28', 'www.pdlmxljgepz.kai'), (266, 'Pena', 'Tanisha', 68, 1.61, 'eu', 'FR', 'Aliquam@sagittislobortis.org', 0, '2012-02-04', 'www.xsscirmiafg.svj'), (267, 'Blackwell', 'Ray', 20, 1.08, 'eu', 'FR', 'sed.leo.Cras@Donec.ca', 0, '2012-03-28', 'www.jaqkfxdbhek.jgf'), (268, 'Burns', 'Channing', 72, 1.02, 'eu', 'BE', 'Phasellus.ornare.Fusce@sedest.ca', 1, '2012-04-16', 'www.itupyeyekbg.edl'), (269, 'Stanley', 'Joel', 62, 1.08, 'af', 'NG', 'Nam.consequat@Vivamusmolestiedapibus.net', 1, '2012-02-15', 'www.oqwzscdwozc.fcx'), (270, 'Ford', 'Ronan', 68, 1.85, 'af', 'NG', 'erat@cursusa.org', 0, '2012-03-24', 'www.gmdvmfaochx.uek'), (271, 'Savage', 'Alisa', 37, 1.65, 'na', 'CA', 'In.ornare@id.com', 1, '2012-02-27', 'www.shevpbqumlg.udt'), (272, 'Watts', 'Joseph', 49, 1.71, 'af', 'ZW', 'lacus.Quisque.imperdiet@gravida.ca', 1, '2012-04-22', 'www.cgporwiuqhb.cbf'), (273, 'Butler', 'Rinah', 66, 1.39, 'eu', 'FR', 'risus.Nulla@aliquetnec.ca', 0, '2012-03-04', 'www.vydlgenhjre.bzd'), (274, 'Small', 'Odessa', 66, 1.97, 'eu', 'FR', 'Aliquam.fringilla.cursus@massarutrum.com', 1, '2012-02-28', 'www.evxomcpmflh.xjc'), (275, 'Wise', 'Jerry', 65, 1.60, 'eu', 'FR', 'auctor@Maurisvelturpis.co.uk', 0, '2012-03-16', 'www.hmrmyzkhcjn.tao'), (276, 'Guy', 'Kimberley', 46, 1.54, 'af', 'NG', 'Donec.est.mauris@vestibulumMauris.ca', 0, '2012-03-18', 'www.oarqkekktud.djp'), (277, 'Sims', 'Allen', 62, 1.28, 'na', 'US', 'tempor.augue@necdiam.co.uk', 1, '2012-02-08', 'www.mgjgankjcgk.tlf'), (278, 'Fischer', 'Phillip', 22, 1.40, 'af', 'NG', 'Donec.vitae.erat@arcuiaculis.co.uk', 1, '2012-02-04', 'www.ujxxphqbmyk.pkm'), (279, 'Marquez', 'Wynter', 46, 1.81, 'na', 'CA', 'accumsan.laoreet.ipsum@ornare.net', 1, '2012-01-31', 'www.yltljdauppu.aly'), (280, 'Thornton', 'Hakeem', 53, 1.71, 'eu', 'FR', 'pharetra.ut@Proinegetodio.org', 0, '2012-01-28', 'www.glawauxlsuq.gou'), (281, 'Lindsey', 'Elmo', 68, 1.18, 'eu', 'BE', 'scelerisque.scelerisque.dui@Proin.ca', 0, '2012-04-29', 'www.nnsgiinxdbb.wdv'), (282, 'Clark', 'Erin', 31, 1.10, 'eu', 'NL', 'non.enim.commodo@vehiculaetrutrum.co.uk', 0, '2012-04-01', 'www.widzjewnaac.ffd'), (283, 'Clarke', 'Lara', 61, 1.67, 'af', 'ZW', 'malesuada@Integervitaenibh.ca', 0, '2012-03-14', 'www.hkqhltnqxsj.nkd'), (284, 'Hensley', 'Ray', 65, 1.83, 'af', 'ZA', 'nonummy@ipsum.edu', 1, '2012-03-09', 'www.oqimiszswkb.nfk'), (285, 'Brewer', 'Kyle', 38, 1.40, 'af', 'ZW', 'placerat@tempusscelerisquelorem.net', 0, '2012-04-07', 'www.fsxbdypjjsp.req'), (286, 'Foley', 'Yvonne', 84, 1.93, 'eu', 'UK', 'auctor.ullamcorper.nisl@nascetur.org', 0, '2012-02-26', 'www.qzsarirwyzw.wye'), (287, 'Vazquez', 'McKenzie', 63, 1.43, 'eu', 'BE', 'rutrum@laoreetipsumCurabitur.edu', 0, '2012-03-07', 'www.fsiereaqiyl.zjt'), (288, 'Gates', 'Tarik', 79, 1.25, 'af', 'NG', 'ante.bibendum.ullamcorper@risus.net', 1, '2012-02-09', 'www.lumusxtbrcl.njy'), (289, 'Williams', 'Randall', 82, 1.27, 'eu', 'NL', 'erat.vitae@est.ca', 0, '2012-03-13', 'www.aicrlneumed.jlw'), (290, 'Wilson', 'Jacob', 16, 1.03, 'na', 'CA', 'Suspendisse@vel.net', 1, '2012-04-30', 'www.sameepnpmnv.mpf'), (291, 'Bullock', 'Macy', 43, 1.52, 'eu', 'BE', 'vitae.dolor@aultricies.com', 1, '2012-02-29', 'www.mvkziflxkor.ucz'), (292, 'Thornton', 'Hanna', 60, 1.03, 'eu', 'FR', 'mauris@etmagnaPraesent.ca', 0, '2012-04-21', 'www.ubffpxaswxi.mzq'), (293, 'Martinez', 'Mannix', 71, 1.40, 'eu', 'FR', 'sagittis@enim.net', 1, '2012-02-23', 'www.kskhpttojiw.ctx'), (294, 'Mendoza', 'William', 75, 1.52, 'af', 'ZW', 'eu.nulla@libero.org', 1, '2012-04-18', 'www.sfiboeehbus.wiy'), (295, 'Pennington', 'Summer', 63, 1.62, 'eu', 'FR', 'tellus.eu@turpisIn.ca', 1, '2012-02-28', 'www.xsfymyvvwnt.ndz'), (296, 'Terry', 'Wanda', 89, 1.15, 'na', 'US', 'odio.Aliquam.vulputate@rutrum.edu', 1, '2012-02-10', 'www.yxqvlkiojgo.ijb'), (297, 'Rutledge', 'Lee', 40, 1.99, 'af', 'ZW', 'faucibus.lectus.a@arcuCurabiturut.com', 0, '2012-04-12', 'www.vpsevgneiil.rgj'), (298, 'Howard', 'Hollee', 44, 1.02, 'eu', 'FR', 'metus.In@lorem.com', 1, '2012-03-09', 'www.pueydqpjzba.jdh'), (299, 'Hogan', 'Hedy', 36, 1.45, 'eu', 'BE', 'interdum.Curabitur.dictum@nequeetnunc.edu', 1, '2012-04-20', 'www.nsgntgxxoin.vud'), (300, 'Trujillo', 'Cameron', 20, 1.46, 'af', 'NG', 'eget.nisi.dictum@adipiscingelit.edu', 0, '2012-05-02', 'www.gzavinqdrof.tbv'), (301, 'Guerrero', 'Lydia', 21, 1.70, 'eu', 'BE', 'non.lorem@liberoDonec.co.uk', 1, '2012-02-27', 'www.eoyvdeoezyx.brz'), (302, 'Freeman', 'Camille', 57, 1.43, 'eu', 'UK', 'neque.pellentesque@tellusfaucibusleo.ca', 1, '2012-04-03', 'www.tbdtabvrade.poo'), (303, 'Gilmore', 'Savannah', 43, 1.61, 'eu', 'FR', 'rutrum.urna@justo.com', 0, '2012-03-12', 'www.qbzreehttqr.dgt'), (304, 'Rosario', 'Lael', 29, 1.27, 'af', 'ZW', 'augue.id@loremauctorquis.co.uk', 0, '2012-02-21', 'www.odxhtokaift.nmn'), (305, 'Heath', 'Sacha', 15, 1.80, 'af', 'NG', 'a.odio@Donecnibh.org', 0, '2012-04-30', 'www.bufjzzxmmhj.mdk'), (306, 'Daniel', 'Rhiannon', 20, 1.01, 'na', 'US', 'sit.amet@variusultricesmauris.net', 1, '2012-05-02', 'www.upkhxttaezx.gzb'), (307, 'Snow', 'Forrest', 65, 1.98, 'eu', 'BE', 'eu.eleifend@Nuncpulvinar.org', 0, '2012-01-28', 'www.vfkzeifejbi.bae'), (308, 'Middleton', 'Kirby', 77, 1.56, 'na', 'US', 'cursus.purus.Nullam@vitaeodio.net', 1, '2012-02-13', 'www.lbsvcawdfmw.acn'), (309, 'Moss', 'Jonas', 46, 1.07, 'eu', 'FR', 'neque.non@adipiscingligulaAenean.net', 1, '2012-04-20', 'www.joaoaxpdkgj.vgd'), (310, 'Blackwell', 'Keegan', 61, 1.63, 'af', 'ZA', 'eu.tellus@magnisdis.com', 0, '2012-04-09', 'www.otmzavugywm.pnu'), (311, 'Stanton', 'Troy', 15, 1.26, 'eu', 'NL', 'Suspendisse@fringilla.org', 0, '2012-02-10', 'www.qhhpeuerobb.pgt'), (312, 'Lowe', 'Abra', 56, 1.28, 'eu', 'UK', 'adipiscing@duilectusrutrum.org', 1, '2012-03-20', 'www.grovtqkajzl.xfi'), (313, 'Best', 'Leilani', 34, 1.12, 'af', 'ZW', 'tellus.Phasellus@Suspendissenonleo.org', 1, '2012-02-21', 'www.oxqywbvbjxv.qcb'), (314, 'Bennett', 'Jena', 40, 1.75, 'eu', 'FR', 'varius.orci.in@Sedeunibh.org', 1, '2012-04-05', 'www.pfuydpofrqx.aik'), (315, 'Blair', 'Scarlet', 62, 1.68, 'na', 'US', 'Nullam@Pellentesquehabitant.org', 1, '2012-04-06', 'www.lxudordwcfu.swp'), (316, 'Reeves', 'Timon', 89, 1.18, 'eu', 'BE', 'arcu.imperdiet.ullamcorper@nonantebibendum.edu', 0, '2012-03-14', 'www.hhfjnzbjpvu.pyo'), (317, 'Wilcox', 'Nigel', 32, 1.64, 'eu', 'NL', 'pellentesque@arcuNunc.org', 1, '2012-02-24', 'www.hohwjbmiqlq.wbc'), (318, 'Washington', 'Wyatt', 26, 1.33, 'eu', 'FR', 'quis.massa@habitantmorbi.com', 1, '2012-01-28', 'www.xueofukhxjs.bra'), (319, 'Cameron', 'Hu', 34, 1.95, 'af', 'ZW', 'Donec.nibh@placeratCras.edu', 1, '2012-02-16', 'www.ilzgusimtlr.zkg'), (320, 'Lewis', 'Hiram', 36, 1.71, 'af', 'ZW', 'velit.eget@leo.com', 1, '2012-01-28', 'www.dokwabwkikp.pdt'), (321, 'Stokes', 'Germane', 37, 1.67, 'eu', 'NL', 'primis.in.faucibus@Nulla.edu', 0, '2012-03-14', 'www.lyptiejlygb.gwu'), (322, 'Robles', 'Heidi', 21, 1.00, 'na', 'CA', 'interdum.Nunc@risus.net', 0, '2012-03-01', 'www.hbxfhzletgv.vhw'), (323, 'Stephenson', 'Basil', 37, 1.98, 'eu', 'NL', 'ligula.elit.pretium@eu.net', 1, '2012-02-25', 'www.oguhnpdulav.tzs'), (324, 'Carney', 'Dalton', 67, 1.87, 'af', 'ZA', 'in.consectetuer@acipsumPhasellus.com', 0, '2012-03-15', 'www.uiggiczivdl.nze'), (325, 'Garrison', 'Zia', 46, 1.33, 'na', 'US', 'Aliquam@cursusetmagna.org', 0, '2012-03-23', 'www.riqmmbzlfil.qst'), (326, 'Lynn', 'Rhonda', 88, 1.23, 'eu', 'FR', 'dignissim.lacus@conubianostra.co.uk', 0, '2012-03-01', 'www.ivloewexptu.oae'), (327, 'House', 'Wylie', 88, 1.11, 'eu', 'NL', 'gravida.mauris.ut@maurissitamet.ca', 0, '2012-02-04', 'www.bsbrlwflarw.zwa'), (328, 'Gordon', 'Fritz', 18, 1.01, 'eu', 'NL', 'arcu.et.pede@lacinia.net', 1, '2012-03-04', 'www.qyerqbrmcaq.dct'), (329, 'Hensley', 'Dana', 29, 1.46, 'eu', 'NL', 'et.rutrum@sagittisplaceratCras.com', 1, '2012-03-31', 'www.pvarwrvylgn.qre'), (330, 'Hardin', 'Sharon', 82, 1.71, 'eu', 'FR', 'arcu.iaculis.enim@nulla.co.uk', 1, '2012-02-08', 'www.nvyzblpspzq.msu'), (331, 'Ortiz', 'Amber', 28, 1.50, 'eu', 'BE', 'egestas.a@Proinvel.edu', 1, '2012-04-05', 'www.ysgorwbkqtw.vgx'), (332, 'Heath', 'Shelley', 22, 1.22, 'na', 'CA', 'taciti.sociosqu@ornareelit.net', 0, '2012-02-08', 'www.rwnipjewhot.kwb'), (333, 'White', 'Olga', 15, 1.14, 'eu', 'FR', 'scelerisque.scelerisque@hendrerit.edu', 1, '2012-03-22', 'www.igqqvkarlzn.ldx'), (334, 'Bird', 'Brennan', 89, 1.72, 'af', 'NG', 'elit@et.org', 1, '2012-03-09', 'www.ampmmcypaar.zty'), (335, 'Rollins', 'Lila', 69, 1.88, 'eu', 'FR', 'Donec.at@nonegestasa.com', 0, '2012-03-12', 'www.fdufelexkzr.cwm'), (336, 'Strickland', 'Leo', 22, 1.91, 'eu', 'UK', 'consectetuer.adipiscing.elit@atortorNunc.com', 1, '2012-01-30', 'www.dkunjlqgymn.akr'), (337, 'Mckee', 'Raja', 56, 1.79, 'af', 'NG', 'Sed.dictum@nonduinec.ca', 0, '2012-04-19', 'www.rgmptzpdqfm.fzm'), (338, 'Serrano', 'Alexandra', 74, 1.27, 'eu', 'NL', 'interdum.ligula@Phasellusdapibus.com', 0, '2012-02-04', 'www.bukszwxzisl.dyd'), (339, 'Russo', 'Alyssa', 23, 1.09, 'eu', 'UK', 'non.magna@erat.com', 0, '2012-04-26', 'www.uefdxqgvubh.xdg'), (340, 'Humphrey', 'Sarah', 76, 1.36, 'eu', 'FR', 'nonummy.ipsum.non@eratSed.com', 0, '2012-02-25', 'www.tmconklrrxo.mge'), (341, 'Berger', 'Buckminster', 19, 1.94, 'na', 'CA', 'sodales@Maurisut.com', 1, '2012-04-14', 'www.rtqirfuxjwy.lvj'), (342, 'Sosa', 'Griffin', 68, 1.98, 'na', 'CA', 'egestas@nequeMorbiquis.ca', 0, '2012-01-31', 'www.xjihghsbrof.jmc'), (343, 'Mercado', 'Rahim', 68, 1.72, 'sa', 'BR', 'cursus@sitametdapibus.org', 0, '2012-04-26', 'www.vbbmqhwdkmm.cgs'), (344, 'Henson', 'Malcolm', 62, 1.88, 'eu', 'BE', 'imperdiet.erat.nonummy@aliquetmagnaa.com', 1, '2012-03-06', 'www.jertqewwwge.mbb'), (345, 'Black', 'Oren', 76, 1.37, 'af', 'ZW', 'Sed.malesuada@lorem.edu', 1, '2012-02-22', 'www.kaphhutjvvr.qfk'), (346, 'Miranda', 'Carlos', 63, 1.59, 'af', 'ZA', 'Suspendisse.non@imperdiet.com', 0, '2012-02-12', 'www.tzupvlgbwwd.nlb'), (347, 'Decker', 'Yen', 62, 1.95, 'na', 'CA', 'commodo@nuncullamcorpereu.org', 1, '2012-01-30', 'www.ksuhoxuayaa.ozo'), (348, 'Pennington', 'Ishmael', 18, 1.49, 'af', 'ZW', 'dui@aliquamarcuAliquam.com', 0, '2012-04-05', 'www.zakxakmayff.zsf'), (349, 'Molina', 'Perry', 84, 1.00, 'eu', 'FR', 'amet.orci.Ut@Maurisnulla.org', 0, '2012-03-04', 'www.twkscqruvhc.tif'), (350, 'Fletcher', 'Vivien', 84, 1.41, 'eu', 'NL', 'quis.accumsan@tristique.edu', 0, '2012-04-16', 'www.kvyfdbylggl.eqo'), (351, 'Travis', 'Aurora', 76, 1.28, 'eu', 'BE', 'nunc@euaccumsansed.edu', 1, '2012-04-28', 'www.dbhkhsoygml.csg'), (352, 'Kerr', 'Murphy', 80, 1.85, 'eu', 'UK', 'tincidunt.nibh.Phasellus@arcu.com', 1, '2012-02-16', 'www.swmziybbeoj.aly'), (353, 'Pearson', 'Carlos', 33, 1.32, 'af', 'NG', 'at@ipsumSuspendissesagittis.net', 0, '2012-02-23', 'www.rwdwknxwlpy.rxe'), (354, 'Calderon', 'Sierra', 49, 1.46, 'af', 'NG', 'velit@Mauris.com', 1, '2012-04-11', 'www.sckeriwpmzn.ymf'), (355, 'Stevens', 'Aquila', 54, 1.56, 'eu', 'FR', 'blandit@leoCrasvehicula.co.uk', 0, '2012-01-26', 'www.ttaftoeftag.gox'), (356, 'Adams', 'Xena', 18, 1.70, 'na', 'CA', 'Sed@nectellusNunc.com', 1, '2012-04-07', 'www.wmxpndwcawb.bpd'), (357, 'Kirk', 'Daquan', 63, 1.46, 'sa', 'BR', 'arcu.Aliquam.ultrices@facilisismagnatellus.net', 0, '2012-03-29', 'www.sojtklvzoic.ftt'), (358, 'Wolf', 'Fuller', 67, 1.69, 'na', 'CA', 'blandit@placerat.ca', 0, '2012-05-03', 'www.vlmjtppnjor.bep'), (359, 'Sharp', 'Lacey', 48, 1.65, 'af', 'ZW', 'luctus.felis@feugiat.co.uk', 1, '2012-01-30', 'www.plmyadaftvy.fml'), (360, 'Osborn', 'Jescie', 78, 1.90, 'eu', 'NL', 'tellus@estNuncullamcorper.net', 1, '2012-02-19', 'www.wuapqyvcknu.gmv'), (361, 'Zamora', 'Kyla', 16, 1.76, 'eu', 'NL', 'rutrum@Uttincidunt.ca', 0, '2012-02-05', 'www.zmkjzeqlaqe.ajw'), (362, 'Berg', 'Upton', 89, 1.36, 'eu', 'NL', 'semper.pretium@auctor.edu', 0, '2012-04-14', 'www.esoeitespgc.opu'), (363, 'Alford', 'Zahir', 56, 1.64, 'na', 'CA', 'lobortis.risus@enimnon.org', 1, '2012-03-31', 'www.vorkvuzkozv.crh'), (364, 'Ferguson', 'Brennan', 75, 1.71, 'sa', 'BR', 'ultricies.ornare@massa.com', 1, '2012-04-23', 'www.xfgmfcowjwy.eqc'), (365, 'Christian', 'Alma', 22, 1.53, 'af', 'ZA', 'elementum.at.egestas@adipiscingfringilla.ca', 1, '2012-03-15', 'www.abtkxronutz.whi'), (366, 'Spears', 'Kylynn', 71, 1.31, 'sa', 'BR', 'consequat.dolor@Cras.ca', 0, '2012-04-18', 'www.ucpovolcxhv.qra'), (367, 'Deleon', 'Berk', 45, 1.75, 'na', 'CA', 'a@liberoMorbiaccumsan.ca', 1, '2012-03-31', 'www.maqjhmazmga.wyo'), (368, 'Buchanan', 'Morgan', 64, 1.87, 'eu', 'NL', 'donec@ornarefacilisiseget.edu', 0, '2012-04-15', 'www.uccgicchrfc.icx'), (369, 'Buckley', 'Chandler', 74, 1.13, 'eu', 'FR', 'molestie.Sed@nullaCraseu.ca', 0, '2012-02-01', 'www.oqjgwmoyjra.ewi'), (370, 'Holland', 'Stuart', 82, 1.81, 'sa', 'BR', 'sem@velnislQuisque.edu', 1, '2012-04-25', 'www.arrjisoebzo.ywt'), (371, 'Craig', 'Signe', 49, 1.74, 'eu', 'NL', 'Cras@scelerisqueneque.co.uk', 1, '2012-02-27', 'www.omzplooiitf.tlr'), (372, 'Love', 'Abel', 83, 1.38, 'sa', 'BR', 'non.bibendum@acfacilisisfacilisis.edu', 0, '2012-04-27', 'www.eppmivgunuu.keq'), (373, 'Santiago', 'Emma', 28, 1.65, 'na', 'US', 'mus.Donec@nonarcu.com', 1, '2012-04-01', 'www.xkrkfmvkdqz.ihm'), (374, 'Sears', 'Stacey', 51, 1.14, 'eu', 'UK', 'magna.Nam.ligula@aliquetliberoInteger.co.uk', 0, '2012-03-19', 'www.xvlalkjtxer.kic'), (375, 'Dennis', 'Simon', 48, 1.29, 'eu', 'FR', 'parturient.montes@ornaretortorat.net', 0, '2012-04-02', 'www.iacgfuqowwx.iew'), (376, 'Blanchard', 'Andrew', 18, 1.65, 'na', 'US', 'eu.sem.Pellentesque@tincidunt.edu', 0, '2012-04-13', 'www.wswtouctqet.rvh'), (377, 'Gallagher', 'Nelle', 84, 1.45, 'af', 'NG', 'Donec.est@vel.co.uk', 1, '2012-04-24', 'www.czjtddkyktu.idi'), (378, 'Watts', 'Drew', 36, 1.15, 'na', 'CA', 'lorem.ac.risus@inceptoshymenaeos.edu', 1, '2012-02-10', 'www.knsvgmdkvco.chd'), (379, 'Hatfield', 'Heidi', 17, 1.82, 'eu', 'FR', 'dictum@Inatpede.co.uk', 0, '2012-02-01', 'www.hbqceeelhpb.ilj'), (380, 'Mcguire', 'Garrison', 45, 1.11, 'af', 'ZA', 'lobortis@massalobortis.net', 1, '2012-04-23', 'www.wzaeocmzlce.wgi'), (381, 'Wilkerson', 'Nomlanga', 75, 1.41, 'na', 'CA', 'Curabitur.dictum.Phasellus@vestibulumneceuismod.org', 0, '2012-02-16', 'www.cwmnyqjezja.tue'), (382, 'Humphrey', 'Odessa', 71, 1.02, 'af', 'ZW', 'diam.Pellentesque.habitant@Fuscefermentum.ca', 0, '2012-03-09', 'www.wznvinpdsbz.lbg'), (383, 'Byers', 'Kylee', 65, 1.17, 'af', 'ZA', 'risus@Donectempuslorem.co.uk', 0, '2012-03-21', 'www.fngxofiqlmj.cqc'), (384, 'Bullock', 'Meghan', 15, 1.39, 'na', 'US', 'imperdiet.ornare.In@morbi.edu', 1, '2012-03-11', 'www.gmjsytvpwyk.wii'), (385, 'French', 'Jocelyn', 52, 1.52, 'na', 'CA', 'natoque.penatibus@tincidunt.edu', 1, '2012-03-29', 'www.rwoouykchsu.uic'), (386, 'Crosby', 'Mufutau', 21, 1.33, 'af', 'ZA', 'vel@nuncnulla.com', 0, '2012-04-13', 'www.sqozjitrkzz.mjj'), (387, 'Daniel', 'Kirestin', 20, 1.71, 'eu', 'BE', 'eu.nulla.at@Nullamnisl.edu', 1, '2012-01-29', 'www.sxkdwjqfsvy.upd'), (388, 'Blevins', 'Vincent', 19, 1.52, 'af', 'ZW', 'consequat.purus@magnamalesuadavel.com', 1, '2012-04-18', 'www.gxcytbtievt.fkz'), (389, 'Baldwin', 'Kylan', 66, 1.25, 'eu', 'NL', 'leo.Cras@lobortis.org', 1, '2012-01-31', 'www.ncgryzxjzyc.qep'), (390, 'Pope', 'Belle', 17, 1.52, 'na', 'US', 'sagittis.felis@necanteblandit.com', 1, '2012-04-14', 'www.qcgqaigfxzr.yoy'), (391, 'Langley', 'Aretha', 23, 1.65, 'af', 'NG', 'luctus.aliquet.odio@ideratEtiam.org', 1, '2012-04-16', 'www.jqagqsffqsr.tig'), (392, 'Duffy', 'Alea', 36, 1.25, 'sa', 'BR', 'dui.nec@Sedauctorodio.org', 0, '2012-04-03', 'www.esovlgotmvf.tcs'), (393, 'Wells', 'Petra', 75, 1.07, 'af', 'ZA', 'diam.luctus@vitae.edu', 1, '2012-05-02', 'www.fqirlolohkk.bld'), (394, 'Nieves', 'Orlando', 52, 1.80, 'af', 'ZA', 'bibendum@pretiumet.com', 1, '2012-04-19', 'www.dtokdympbex.oaz'), (395, 'Johnston', 'Chiquita', 18, 1.41, 'eu', 'FR', 'sodales.Mauris@massarutrummagna.ca', 0, '2012-02-23', 'www.zbsbfppgpcu.qpy'), (396, 'Cooke', 'Bianca', 85, 1.48, 'eu', 'NL', 'nunc@feugiatSednec.co.uk', 1, '2012-04-24', 'www.jmezozqdxvq.vgl'), (397, 'Odonnell', 'Declan', 29, 1.00, 'eu', 'FR', 'lectus.justo@elitpretiumet.com', 0, '2012-03-30', 'www.oxnltehzqyc.uzd'), (398, 'Weiss', 'Myra', 32, 1.05, 'af', 'ZA', 'sed.hendrerit@nuncest.org', 0, '2012-03-18', 'www.hrixqksporl.usy'), (399, 'Reese', 'Serena', 85, 1.10, 'na', 'US', 'leo@justofaucibus.com', 0, '2012-04-04', 'www.vatjreejdxh.bch'), (400, 'Gilliam', 'Eric', 71, 1.85, 'na', 'CA', 'feugiat.non@Duissitamet.com', 0, '2012-04-25', 'www.lmtokbpnjyr.ctg'), (401, 'Wise', 'Emerald', 35, 1.65, 'na', 'CA', 'id.ante.Nunc@lorem.edu', 1, '2012-03-11', 'www.ntdwruylaya.hoo'), (402, 'Haynes', 'Rama', 53, 1.83, 'eu', 'BE', 'Phasellus@vitaesodales.edu', 0, '2012-03-20', 'www.dzmdymlmbwi.osq'), (403, 'Pearson', 'Amanda', 41, 1.13, 'af', 'NG', 'Vivamus.sit.amet@Maecenas.com', 0, '2012-03-02', 'www.xsqyozngqgs.zlc'), (404, 'Randall', 'Nadine', 87, 1.18, 'eu', 'FR', 'luctus.felis.purus@nequeNullamnisl.org', 0, '2012-02-16', 'www.jzqzgizrksn.jwj'), (405, 'Ryan', 'Idola', 49, 1.13, 'af', 'ZA', 'facilisis.Suspendisse@mollisneccursus.co.uk', 0, '2012-05-03', 'www.mvvwoigksbb.del'), (406, 'Wade', 'Bianca', 68, 1.34, 'eu', 'BE', 'lobortis.quam.a@cursusdiam.com', 0, '2012-02-22', 'www.ymmqnnurzse.sap'), (407, 'Reed', 'Adena', 51, 1.93, 'eu', 'FR', 'consequat.nec@facilisisSuspendissecommodo.co.uk', 0, '2012-03-08', 'www.krxkjcckrvv.evf'), (408, 'Heath', 'Charity', 43, 1.21, 'af', 'ZW', 'ornare@Proin.ca', 0, '2012-02-23', 'www.ftwworbkxlx.gtb'), (409, 'Key', 'Kirestin', 27, 1.00, 'eu', 'FR', 'sit.amet@Duismi.co.uk', 0, '2012-02-12', 'www.zyoxjmddoqw.stw'), (410, 'Cooper', 'Minerva', 45, 1.67, 'af', 'ZA', 'eu.eros@mollis.edu', 0, '2012-01-29', 'www.senhukangfj.qxc'), (411, 'Woodward', 'Leonard', 20, 1.34, 'af', 'NG', 'vestibulum@tristiqueneque.com', 0, '2012-03-29', 'www.bhwhnfykiyr.kgd'), (412, 'Gilbert', 'Victor', 74, 1.76, 'sa', 'BR', 'morbi@risusInmi.org', 0, '2012-02-04', 'www.lhqtghenlnx.fgp'), (413, 'Pennington', 'Basil', 63, 1.91, 'af', 'ZA', 'Curabitur.sed@Cras.net', 0, '2012-03-23', 'www.oyvzltfsixt.yww'), (414, 'Baker', 'Hiram', 22, 1.05, 'eu', 'UK', 'Proin@auctorvitaealiquet.ca', 0, '2012-03-23', 'www.ssxaqqznmas.pcg'), (415, 'Gould', 'Colette', 32, 1.45, 'af', 'ZA', 'ridiculus@in.net', 1, '2012-02-12', 'www.vreisxyudhj.jux'), (416, 'Graham', 'Alvin', 53, 1.12, 'eu', 'NL', 'Nam@porttitor.net', 1, '2012-02-09', 'www.fqpiyysswbs.jgz'), (417, 'Estes', 'Solomon', 17, 1.24, 'af', 'ZA', 'convallis.ante@ideratEtiam.net', 1, '2012-02-13', 'www.znovphfvhmf.iuq'), (418, 'Pitts', 'Victor', 76, 1.55, 'eu', 'NL', 'orci@temporerat.com', 0, '2012-03-19', 'www.dmakyfsswld.sas'), (419, 'Blake', 'Denise', 82, 1.13, 'af', 'ZA', 'lacus.Quisque@Proin.org', 0, '2012-02-04', 'www.tdwqpaiqske.pno'); INSERT INTO `demo` (`id`, `name`, `firstname`, `age`, `height`, `id_continent`, `id_country`, `email`, `freelance`, `lastvisit`, `website`) VALUES (420, 'Wilder', 'Chadwick', 31, 1.71, 'sa', 'BR', 'et.pede.Nunc@placerat.net', 1, '2012-04-21', 'www.ralklqzyfza.lsd'), (421, 'Hardin', 'Audrey', 73, 1.61, 'sa', 'BR', 'commodo.tincidunt.nibh@seddictum.com', 1, '2012-02-02', 'www.cgvhfwtyadk.uuo'), (422, 'Vaughn', 'Harlan', 41, 1.68, 'af', 'ZW', 'tempor.lorem@egestasDuisac.com', 0, '2012-04-11', 'www.dxadakxuyvz.inx'), (423, 'Mathis', 'Lareina', 56, 1.91, 'na', 'US', 'ac.turpis.egestas@Proin.com', 0, '2012-03-28', 'www.jdziyyqmwff.kfk'), (424, 'Barrera', 'Chiquita', 81, 1.26, 'sa', 'BR', 'ipsum@tempus.org', 0, '2012-04-18', 'www.edrajxkohlc.esu'), (425, 'Burgess', 'Freya', 54, 1.94, 'sa', 'BR', 'gravida.Praesent.eu@et.com', 1, '2012-02-23', 'www.mpguaiytdbi.qau'), (426, 'Buck', 'Martena', 24, 1.63, 'eu', 'BE', 'Mauris@malesuadafringilla.edu', 0, '2012-04-28', 'www.sadwclndgpy.jhg'), (427, 'Wheeler', 'Keelie', 33, 1.21, 'eu', 'NL', 'non@euturpis.edu', 1, '2012-04-17', 'www.wnxcdvlkbkc.hrg'), (428, 'Patel', 'Ferris', 15, 1.54, 'af', 'ZA', 'lacus@pharetrasedhendrerit.edu', 1, '2012-02-28', 'www.umgwxjdoqws.qld'), (429, 'Clark', 'Calvin', 26, 1.51, 'eu', 'UK', 'euismod@eratVivamusnisi.net', 1, '2012-02-14', 'www.txgjtzzfdeh.htk'), (430, 'Bennett', 'Boris', 70, 1.14, 'af', 'ZA', 'nunc.interdum@loremutaliquam.edu', 1, '2012-05-02', 'www.vcxyhefbohc.hln'), (431, 'Martin', 'Keiko', 33, 1.11, 'eu', 'BE', 'sed@justonecante.org', 0, '2012-02-23', 'www.cpdrwfyhsna.zqd'), (432, 'Fleming', 'Tiger', 55, 1.41, 'eu', 'NL', 'fringilla@libero.edu', 0, '2012-03-17', 'www.qaljnlieoqo.cct'), (433, 'Beard', 'Simon', 51, 1.32, 'eu', 'FR', 'sagittis.lobortis@dolorsit.co.uk', 0, '2012-04-07', 'www.leezutcxmdh.ynn'), (434, 'Stephenson', 'Kevin', 19, 1.02, 'af', 'NG', 'sit.amet.ultricies@lectussitamet.ca', 1, '2012-02-05', 'www.qtncxubkiyr.kyy'), (435, 'Morin', 'Trevor', 65, 1.36, 'af', 'ZA', 'fringilla.purus@necleoMorbi.co.uk', 1, '2012-02-29', 'www.uzfcywmwvdh.mmz'), (436, 'Gordon', 'Callum', 47, 1.99, 'sa', 'BR', 'urna@Etiam.net', 0, '2012-03-05', 'www.kfwfjdsvcbx.ozv'), (437, 'Bernard', 'Galvin', 33, 1.45, 'na', 'CA', 'consectetuer.cursus.et@elitsedconsequat.net', 0, '2012-05-01', 'www.xnyapwoorqs.ycg'), (438, 'Rich', 'William', 87, 1.15, 'sa', 'BR', 'Vivamus.non.lorem@penatibusetmagnis.edu', 0, '2012-03-27', 'www.osafitekzyv.yal'), (439, 'Ortega', 'Maya', 75, 1.37, 'eu', 'FR', 'ornare.In.faucibus@fermentumvelmauris.ca', 0, '2012-02-17', 'www.srtrpoqpaik.uqe'), (440, 'Kent', 'Walter', 48, 1.84, 'na', 'CA', 'sodales@mollis.co.uk', 1, '2012-02-19', 'www.lmglvqglutw.goh'), (441, 'Frank', 'Alexa', 80, 1.80, 'eu', 'NL', 'Nunc.pulvinar.arcu@Phasellusin.ca', 0, '2012-03-24', 'www.vuqqnnwcueo.rbp'), (442, 'Gutierrez', 'Zeph', 54, 1.92, 'eu', 'FR', 'Nam.tempor.diam@Seddiam.net', 0, '2012-02-13', 'www.wqervsiwhsh.vqo'), (443, 'Montoya', 'Justin', 81, 1.74, 'na', 'CA', 'vulputate@idantedictum.com', 1, '2012-02-12', 'www.wnkegrzwgqc.dkn'), (444, 'Christensen', 'Noble', 31, 1.75, 'af', 'NG', 'at@pretiumaliquetmetus.co.uk', 0, '2012-02-26', 'www.ixbondsyrwg.xqt'), (445, 'Mason', 'Ivory', 61, 1.23, 'sa', 'BR', 'Mauris@arcu.co.uk', 1, '2012-02-03', 'www.lqrcnyaerpv.huf'), (446, 'Silva', 'Iola', 77, 1.03, 'eu', 'NL', 'enim@egetvarius.co.uk', 0, '2012-03-12', 'www.taglpbtjgoa.cqk'), (447, 'Weeks', 'Galvin', 32, 1.87, 'af', 'ZW', 'blandit@convallisante.co.uk', 1, '2012-02-01', 'www.nriugiwxtvb.zrv'), (448, 'Harper', 'Kameko', 53, 1.11, 'af', 'NG', 'purus@Cras.com', 0, '2012-04-29', 'www.ucfoyhopcyi.pdm'), (449, 'Patel', 'Joshua', 90, 1.91, 'na', 'US', 'in@malesuada.co.uk', 0, '2012-03-21', 'www.rnstmajpnbv.nay'), (450, 'Golden', 'Aline', 49, 1.38, 'eu', 'BE', 'eu.augue.porttitor@nec.com', 1, '2012-04-26', 'www.sogfqbsrzbc.lly'), (451, 'Reyes', 'Barrett', 57, 1.92, 'eu', 'NL', 'dui.quis@natoquepenatibus.net', 0, '2012-04-25', 'www.sjrsluextxy.hwe'), (452, 'Lynn', 'Kasimir', 23, 1.63, 'af', 'ZA', 'Curabitur@luctus.co.uk', 0, '2012-04-16', 'www.sbjlzhtvlhc.oym'), (453, 'Donaldson', 'Kelsie', 50, 1.62, 'af', 'ZW', 'arcu.Nunc@neque.net', 0, '2012-02-29', 'www.zlyltaarngk.zyq'), (454, 'Doyle', 'Ainsley', 81, 1.74, 'af', 'ZA', 'in.aliquet.lobortis@velconvallis.edu', 0, '2012-02-26', 'www.xdvkkgjixqt.tif'), (455, 'Kline', 'Kiona', 78, 1.16, 'af', 'NG', 'libero.mauris@risusDonecegestas.org', 0, '2012-03-17', 'www.nvpkljeuorn.kvf'), (456, 'Walter', 'Zena', 25, 1.38, 'na', 'US', 'arcu@vulputate.co.uk', 1, '2012-03-30', 'www.gdjvvxfrceq.gmn'), (457, 'Emerson', 'Clark', 89, 1.58, 'eu', 'NL', 'ridiculus.mus@vestibulum.ca', 1, '2012-04-05', 'www.xtpaxggjunm.tdi'), (458, 'Valenzuela', 'Basia', 17, 1.18, 'sa', 'BR', 'auctor.velit.Aliquam@velarcuCurabitur.net', 1, '2012-03-22', 'www.rzhlntfqcdd.dga'), (459, 'Calhoun', 'Rose', 82, 1.29, 'sa', 'BR', 'imperdiet.dictum.magna@Suspendisse.edu', 1, '2012-04-06', 'www.xggzjkdpkgn.hmm'), (460, 'Wolfe', 'Althea', 28, 1.61, 'af', 'NG', 'imperdiet.ullamcorper@Duisami.edu', 0, '2012-04-24', 'www.edwpjjwwvwi.aln'), (461, 'Carey', 'Cherokee', 26, 1.25, 'af', 'NG', 'dui.semper.et@scelerisquescelerisque.co.uk', 1, '2012-02-26', 'www.cusyqbycocq.sie'), (462, 'Moon', 'Constance', 36, 1.48, 'af', 'NG', 'volutpat.Nulla.dignissim@aliquet.com', 1, '2012-04-24', 'www.rhufjkysoog.wad'), (463, 'Stewart', 'Pearl', 40, 1.58, 'na', 'US', 'mollis@leo.com', 1, '2012-03-20', 'www.jgjyvpuvtqr.ben'), (464, 'Wilcox', 'Kane', 68, 1.95, 'eu', 'BE', 'netus@egettinciduntdui.co.uk', 1, '2012-01-29', 'www.fumykeapszv.kxk'), (465, 'Lloyd', 'Heidi', 67, 1.18, 'af', 'ZW', 'pharetra@Vestibulumante.net', 1, '2012-03-21', 'www.xsmqsiaptog.lsb'), (466, 'Hodge', 'Hayfa', 27, 1.02, 'eu', 'NL', 'enim.sit.amet@enimdiam.co.uk', 0, '2012-04-02', 'www.tyumnbygcjw.hjd'), (467, 'Cannon', 'Lionel', 20, 1.56, 'na', 'CA', 'vulputate@tortorIntegeraliquam.org', 0, '2012-04-04', 'www.bjoesllcooj.qda'), (468, 'Gaines', 'Tanek', 74, 1.10, 'eu', 'UK', 'enim.Etiam.imperdiet@asollicitudinorci.net', 0, '2012-03-14', 'www.vfokuyaxzih.tlh'), (469, 'Bishop', 'Lee', 32, 1.32, 'eu', 'UK', 'convallis.erat.eget@Sed.edu', 1, '2012-02-28', 'www.iasiizbthda.noi'), (470, 'Lane', 'Anastasia', 56, 1.09, 'eu', 'BE', 'nibh.Quisque@dictumplacerataugue.org', 0, '2012-02-17', 'www.gmyoqzcehpq.wro'), (471, 'Allison', 'Carson', 54, 1.52, 'af', 'ZW', 'ut.cursus.luctus@pedeSuspendisse.net', 0, '2012-02-09', 'www.yukgkbcbpcd.cql'), (472, 'Henson', 'Chloe', 56, 1.41, 'eu', 'FR', 'malesuada.ut.sem@liberonecligula.org', 0, '2012-01-29', 'www.joezqibhtmv.hza'), (473, 'Rollins', 'Dennis', 86, 1.01, 'af', 'ZA', 'sociis@felisNullatempor.com', 0, '2012-04-11', 'www.njtgwpovpiy.okd'), (474, 'Lynn', 'Melinda', 49, 1.24, 'af', 'ZA', 'mi.enim.condimentum@risusvariusorci.ca', 1, '2012-04-05', 'www.acmqllewosr.zyc'), (475, 'Oconnor', 'McKenzie', 39, 1.25, 'na', 'CA', 'Mauris.vel@hendreritaarcu.net', 0, '2012-02-18', 'www.kazytryrtqm.bxb'), (476, 'Steele', 'Martha', 72, 1.94, 'na', 'CA', 'et.rutrum.non@idenimCurabitur.ca', 1, '2012-02-01', 'www.oliicukzwht.qfg'), (477, 'Kaufman', 'Rachel', 72, 1.27, 'eu', 'UK', 'id@tortor.org', 0, '2012-03-27', 'www.htfdazufggb.amu'), (478, 'Sosa', 'Sheila', 58, 1.45, 'eu', 'BE', 'pellentesque.massa.lobortis@adui.co.uk', 1, '2012-04-26', 'www.cqvjxxjjrfh.gsv'), (479, 'Keller', 'Lara', 56, 1.22, 'na', 'CA', 'tincidunt.congue.turpis@tellusnonmagna.edu', 1, '2012-04-05', 'www.mladrikjdxc.rei'), (480, 'Noel', 'Sean', 19, 1.29, 'sa', 'BR', 'Nam.ligula.elit@nuncac.net', 0, '2012-04-13', 'www.gdrjauafdso.ezo'), (481, 'Sampson', 'Meredith', 80, 1.52, 'eu', 'BE', 'sit.amet@utpellentesqueeget.co.uk', 1, '2012-04-16', 'www.bzxerljraem.wus'), (482, 'Collier', 'Savannah', 22, 1.71, 'sa', 'BR', 'at.pede.Cras@placerat.edu', 1, '2012-04-09', 'www.gjngoadishg.vbk'), (483, 'Lawson', 'Keegan', 41, 1.48, 'eu', 'UK', 'ut@magnatellusfaucibus.com', 1, '2012-02-20', 'www.phwipceqmrx.ves'), (484, 'Nunez', 'Elmo', 69, 1.78, 'af', 'ZW', 'dictum.eleifend@rhoncusNullam.net', 0, '2012-01-31', 'www.lxxyputtnlx.fdu'), (485, 'Blankenship', 'Lacy', 33, 1.20, 'eu', 'NL', 'sit.amet@lectusa.org', 1, '2012-03-16', 'www.fftsqqytlan.rfn'), (486, 'Ware', 'Ila', 72, 1.19, 'af', 'ZA', 'ultrices.posuere@sem.org', 1, '2012-03-05', 'www.ujnfjawpovf.iad'), (487, 'Noel', 'Skyler', 71, 1.29, 'af', 'ZW', 'non@ligulatortor.net', 1, '2012-03-10', 'www.vrkjmqrmujk.nqi'), (488, 'Freeman', 'Brody', 70, 1.50, 'af', 'ZW', 'aliquet@Donecnibhenim.net', 0, '2012-01-30', 'www.dlzxvjlmstn.lhn'), (489, 'Knapp', 'Belle', 30, 1.04, 'af', 'ZW', 'Quisque.purus.sapien@nonummy.co.uk', 1, '2012-04-23', 'www.ejjwdxhkkvx.qwj'), (490, 'Mitchell', 'Lillian', 46, 1.82, 'af', 'ZA', 'vitae.aliquet.nec@aliquetmagna.co.uk', 1, '2012-02-23', 'www.zdzkyxavhqp.snv'), (491, 'Kelley', 'Mariko', 84, 1.69, 'sa', 'BR', 'blandit@vitaenibh.ca', 0, '2012-04-13', 'www.bofifubtqon.nel'), (492, 'Carrillo', 'Mona', 51, 1.52, 'af', 'NG', 'amet.orci.Ut@eros.net', 0, '2012-02-01', 'www.rwehksupdyk.pnr'), (493, 'Cooper', 'Joshua', 38, 1.31, 'eu', 'UK', 'Ut.semper@non.co.uk', 1, '2012-05-02', 'www.hugltrbhign.qpq'), (494, 'Shepard', 'Kelly', 81, 1.33, 'na', 'US', 'nec@laoreet.ca', 1, '2012-04-05', 'www.cqclwpbmgxt.cgb'), (495, 'Shannon', 'Maile', 86, 1.63, 'sa', 'BR', 'turpis.Nulla.aliquet@et.net', 1, '2012-03-24', 'www.lwkruduaequ.dgd'), (496, 'Garrison', 'Burke', 75, 1.07, 'af', 'NG', 'tristique.pellentesque.tellus@dolor.org', 0, '2012-04-15', 'www.jhcoxxrdbaf.vby'), (497, 'Long', 'Tatiana', 50, 1.21, 'na', 'CA', 'lacus.Quisque@Donecnon.org', 0, '2012-02-24', 'www.maqnbvjctxb.gde'), (498, 'Moore', 'Olga', 85, 1.98, 'eu', 'NL', 'est@arcuVestibulumante.net', 1, '2012-02-01', 'www.obyizaodefz.dfv'), (499, 'Crosby', 'Sylvester', 57, 1.70, 'eu', 'NL', 'augue.malesuada.malesuada@malesuadavel.co.uk', 0, '2012-03-09', 'www.wlobrnewjjg.ydg'), (500, 'Kinney', 'Veronica', 66, 1.64, 'af', 'ZW', 'blandit.mattis@nonleoVivamus.ca', 1, '2012-01-26', 'www.mujveqthwgg.oys'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
829ebf0ae8032e862cb5f1f5186dcdc0ebdf22de
SQL
psotou/sql-datagovuc
/actualizacion-tablas/actualizacionFechaSTGTablasdeVistasTBL.sql
UTF-8
7,759
2.984375
3
[]
no_license
-- ADMISION -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'ADMISION' AND NOMBRE_TABLA IN ( 'ANTECED_ADMIS' , 'CASO_ADMIS' , 'COLEGIO_ADMISION' -- no está en el mcp catálogo , 'ETNIA' , 'HIST_CARRERA' , 'INDICE_VULNER_ESCOLAR' , 'PERS_ADMIS' , 'PERSONA_ADMISION' -- no está en el mcp catálogo , 'POSTUL' , 'POSTULACION_EFECT' , 'PTJE_ADMISION' -- no está en el mcp catálogo , 'SIT_POSTULACION' , 'SOLIC_INGR' , 'VAC_CASO_CURRICULUM' , 'VAC_VIA_CURRICULUM' , 'VIA_ADMIS' ) ORDER BY NOMBRE_TABLA ASC -- actualizamos la fecha UPDATE MCP.MCP_FECHA_PROCESO SET FCH_ULT_ACTUALIZACION_ADL = '1900-01-01' , FCH_PROX_ACTUALIZACION_ADL = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga , FCH_ULT_ACTUALIZACION_STG = '1900-01-01' , FCH_PROX_ACTUALIZACION_STG = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'ANTECED_ADMIS' , 'CASO_ADMIS' , 'COLEGIO_ADMISION' -- no está en el mcp catálogo , 'ETNIA' , 'HIST_CARRERA' , 'INDICE_VULNER_ESCOLAR' , 'PERS_ADMIS' , 'PERSONA_ADMISION' , 'POSTUL' , 'POSTULACION_EFECT' , 'PTJE_ADMISION' -- no está en el mcp catálogo , 'SIT_POSTULACION' , 'SOLIC_INGR' , 'VAC_CASO_CURRICULUM' , 'VAC_VIA_CURRICULUM' , 'VIA_ADMIS' ) AND NOMBRE_OWNER = 'ADMISION' ) -- verificamos fecha SELECT * FROM MCP.MCP_FECHA_PROCESO WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'ANTECED_ADMIS' , 'CASO_ADMIS' , 'COLEGIO_ADMISION' -- no está en el mcp catálogo , 'ETNIA' , 'HIST_CARRERA' , 'INDICE_VULNER_ESCOLAR' , 'PERS_ADMIS' , 'PERSONA_ADMISION' , 'POSTUL' , 'POSTULACION_EFECT' , 'PTJE_ADMISION' -- no está en el mcp catálogo , 'SIT_POSTULACION' , 'SOLIC_INGR' , 'VAC_CASO_CURRICULUM' , 'VAC_VIA_CURRICULUM' , 'VIA_ADMIS' ) AND NOMBRE_OWNER = 'ADMISION' ) /* BDGI */ -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'BDGI' AND NOMBRE_TABLA IN ( 'DIM_CONTACTO' , 'DIM_CURRICULO' , 'FT_EXE_ROL_EXALUMNO' ) ORDER BY NOMBRE_TABLA ASC -- LAS TABLAS NO ESTÁN EN EL MCP.MCP_CATALOGO /* GOBDI */ -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'GOBDI' AND NOMBRE_TABLA IN ( 'DIM_PERIODO' , 'SEXO' , 'UNIDAD_ACADEMICA' ) ORDER BY NOMBRE_TABLA ASC -- LAS TABLAS NO ESTÁN EN EL MCP.MCP_CATALOGO /* OA */ -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'OA' AND NOMBRE_TABLA IN ( 'aranceles' , 'oferta_academica' ) ORDER BY NOMBRE_TABLA ASC -- LAS TABLAS NO ESTÁN EN EL MCP.MCP_CATALOGO /* PLA */ -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'PLA' AND NOMBRE_TABLA = 'PLANTA_ACADEMICA_NORM' ORDER BY NOMBRE_TABLA ASC -- LAS TABLAS NO ESTÁN EN EL MCP.MCP_CATALOGO /* RAI */ -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'RAI' AND NOMBRE_TABLA IN ( 'CONVENIO' -- no está en mcp catalogo , 'CONVENIO_HISTORICO' -- no está en mcp catalogo , 'CONVENIO_INTERCAMBIO' , 'CONVENIO_INTERCAMBIO_UC' , 'ESTADO_POSTULACION_EXTRJ' , 'ESTADO_POSTULACION_UC' , 'INSTITUCION_POSTULACION_UC' , 'POSTULACION_EXTRJ' , 'POSTULACION_UC' , 'RAI_INSTITUCION' , 'TIPO_INTERCAMBIO' ) ORDER BY NOMBRE_TABLA ASC -- actualizamos la fecha UPDATE MCP.MCP_FECHA_PROCESO SET FCH_ULT_ACTUALIZACION_ADL = '1900-01-01' , FCH_PROX_ACTUALIZACION_ADL = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga , FCH_ULT_ACTUALIZACION_STG = '1900-01-01' , FCH_PROX_ACTUALIZACION_STG = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'CONVENIO' -- no está en mcp catalogo , 'CONVENIO_HISTORICO' -- no está en mcp catalogo , 'CONVENIO_INTERCAMBIO' , 'CONVENIO_INTERCAMBIO_UC' , 'ESTADO_POSTULACION_EXTRJ' , 'ESTADO_POSTULACION_UC' , 'INSTITUCION_POSTULACION_UC' , 'POSTULACION_EXTRJ' , 'POSTULACION_UC' , 'RAI_INSTITUCION' , 'TIPO_INTERCAMBIO' ) AND NOMBRE_OWNER = 'RAI' ) -- verificamos fecha SELECT * FROM MCP.MCP_FECHA_PROCESO WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'CONVENIO' -- no está en mcp catalogo , 'CONVENIO_HISTORICO' -- no está en mcp catalogo , 'CONVENIO_INTERCAMBIO' , 'CONVENIO_INTERCAMBIO_UC' , 'ESTADO_POSTULACION_EXTRJ' , 'ESTADO_POSTULACION_UC' , 'INSTITUCION_POSTULACION_UC' , 'POSTULACION_EXTRJ' , 'POSTULACION_UC' , 'RAI_INSTITUCION' , 'TIPO_INTERCAMBIO' ) AND NOMBRE_OWNER = 'RAI' ) /* UC_BANNER */ -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'UC_BANNER' AND NOMBRE_TABLA IN ( 'ALUMNO' , 'ASIGN' , 'CARRERA' , 'CURRICULUM' , 'FACULTAD' , 'HIST_ALUMNO_CURSO_VIG' , 'PAIS' , 'PARAM' , 'PERS' , 'UNIDAD_ACADEM' ) ORDER BY NOMBRE_TABLA ASC -- actualizamos la fecha UPDATE MCP.MCP_FECHA_PROCESO SET FCH_ULT_ACTUALIZACION_ADL = '1900-01-01' , FCH_PROX_ACTUALIZACION_ADL = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga , FCH_ULT_ACTUALIZACION_STG = '1900-01-01' , FCH_PROX_ACTUALIZACION_STG = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'ALUMNO' , 'ASIGN' , 'CARRERA' , 'CURRICULUM' , 'FACULTAD' , 'HIST_ALUMNO_CURSO_VIG' , 'PAIS' , 'PARAM' , 'PERS' , 'UNIDAD_ACADEM' ) AND NOMBRE_OWNER = 'UC_BANNER' ) -- verificamos fecha SELECT * FROM MCP.MCP_FECHA_PROCESO WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'ALUMNO' , 'ASIGN' , 'CARRERA' , 'CURRICULUM' , 'FACULTAD' , 'HIST_ALUMNO_CURSO_VIG' , 'PAIS' , 'PARAM' , 'PERS' , 'UNIDAD_ACADEM' ) AND NOMBRE_OWNER = 'UC_BANNER' ) /* DASE */ -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'DASE' AND NOMBRE_TABLA IN ( 'TIPO_BENEF' , 'BENEF' , 'FINANC_BENEF' , 'CATEGORIA_BENEF' ) ORDER BY NOMBRE_TABLA ASC -- actualizamos la fecha UPDATE MCP.MCP_FECHA_PROCESO SET FCH_ULT_ACTUALIZACION_ADL = '1900-01-01' , FCH_PROX_ACTUALIZACION_ADL = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga , FCH_ULT_ACTUALIZACION_STG = '1900-01-01' , FCH_PROX_ACTUALIZACION_STG = (SELECT CAST(GETDATE() AS DATE)) -- Fecha del día en que hacemos la carga WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'TIPO_BENEF' , 'BENEF' , 'FINANC_BENEF' , 'CATEGORIA_BENEF' ) AND NOMBRE_OWNER = 'DASE' ) -- verificamos fecha SELECT * FROM MCP.MCP_FECHA_PROCESO WHERE ID_CATALOGO IN ( SELECT ID_CATALOGO FROM MCP.MCP_CATALOGO WHERE NOMBRE_TABLA IN ( 'TIPO_BENEF' , 'BENEF' , 'FINANC_BENEF' , 'CATEGORIA_BENEF' ) AND NOMBRE_OWNER = 'DASE' ) SELECT TOP 50 * FROM [MCP].[MCP_LOG_PROCESO_BULK] ORDER BY ID_LOG_PROCESO DESC select * from sys.objects where type = 'V'
true
89b4d95acb52897edcb8c660bd655ca318e045a3
SQL
C-H-I-L-L/MySQL-University-Project
/BryceCox-University-MySQL-Proj.sql
UTF-8
10,534
2.90625
3
[]
no_license
USE university_project_schema; SELECT * FROM professors; SELECT * FROM grades; SELECT * FROM students; SELECT * FROM courses; INSERT INTO students (students_id, students_name, students_email) VALUES(1, 'Alan Watts', 'old_dried_turd@middleway.com'); INSERT INTO students (students_id, students_name, students_email) VALUES(2, 'Simon', 'igottafartandbarf@fakemail.com'); INSERT INTO students (students_id, students_name, students_email) VALUES(8, 'Dude Man', 'thedudeabides@fakemail.com'); INSERT INTO students (students_id, students_name, students_email) VALUES(9, 'Lydia Lastname', 'sworntocarryyourburdens@fakemail.com'); INSERT INTO students (students_id, students_name, students_email) VALUES(10, 'Stephany Lastname', 'doingstephanystuff@fakemail.com'); INSERT INTO students (students_id, students_name, students_email) VALUES(11, 'Ram Dass', 'thereisnowheretostand@fakemail.com'); INSERT INTO students (students_id, students_name, students_email) VALUES(12, 'Terence Mckenna', 'fivedriedgrams@fakemail.com'); INSERT INTO professors (professors_id, professors_names) VALUES(1, 'Albert Cohol'); INSERT INTO professors (professors_id, professors_names) VALUES(2, 'Chris P. Bacon'); INSERT INTO professors (professors_id, professors_names) VALUES(3, 'P.I. Staker'); INSERT INTO professors (professors_id, professors_names) VALUES(4, 'Turd Ferguson'); INSERT INTO professors (professors_id, professors_names) VALUES(5, 'Timothy Leary'); INSERT INTO professors (professors_id, professors_names) VALUES(6, 'Richard Alpert'); INSERT INTO courses (courses_id, courses_name) VALUES(8, 'How To Even'); INSERT INTO courses (courses_id, courses_name) VALUES(9, 'Dropping A Fart'); INSERT INTO courses (courses_id, courses_name) VALUES(10, 'Thats My Purse, I Dont Know You'); INSERT INTO courses (courses_id, courses_name) VALUES(11, 'Boring Old Math'); INSERT INTO courses (courses_id, courses_name) VALUES(12, 'Boring Old Reading'); INSERT INTO courses (courses_id, courses_name) VALUES(13, 'Kick-Ass Guitar Class'); INSERT INTO courses (courses_id, courses_name) VALUES(14, 'How To Not Even'); INSERT INTO courses (courses_id, courses_name) VALUES(15, 'DIWHY'); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (1, 1, 8, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (1, 2, 9, 67.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (1, 2, 10, 92.69); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (1, 3, 11, 72.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (1, 3, 12, 33.33); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 4, 13, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (1, 5, 14, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (1, 6, 15, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 1, 8, 12.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 2, 9, 34.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 2, 10, 80.69); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 3, 11, 72.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 3, 12, 99.33); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 4, 13, 54.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 5, 14, 38.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (2, 6, 15, 79.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 1, 8, 12.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 2, 9, 34.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 2, 10, 80.69); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 3, 11, 72.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 3, 12, 99.33); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 4, 13, 54.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 5, 14, 38.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (8, 6, 15, 79.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 1, 8, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 2, 9, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 2, 10, 99.69); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 3, 11, 98.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 3, 12, 97.33); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 4, 13, 96.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 5, 14, 95.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (9, 6, 15, 94.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 1, 8, 80.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 2, 9, 80.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 2, 10, 80.69); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 3, 11, 72.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 3, 12, 99.33); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 4, 13, 80.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 5, 14, 60.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (10, 6, 15, 29.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 1, 8, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 2, 9, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 2, 10, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 3, 11, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 3, 12, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 4, 13, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 5, 14, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (11, 6, 15, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 1, 8, 00.00); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 2, 9, 12.17); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 2, 10, 13.18); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 3, 11, 70.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 3, 12, 40.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 4, 13, 30.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 5, 14, 99.99); INSERT INTO grades (grades_students_id, grades_professors_id, grades_courses_id, grades_percentages) VALUES (12, 6, 15, 70.72); -- average grade/professor SELECT professors_names AS 'Professor', grades_professors_id AS 'Professor ID', AVG(grades_percentages) AS 'Grade(%)' FROM grades g JOIN professors p ON grades_professors_id = professors_id GROUP BY grades_professors_id HAVING AVG(grades_percentages); -- highest grade/student SELECT students_name AS 'Student', grades_students_id AS 'Student I.D.', MAX(grades_percentages) AS 'Highest Grade' FROM grades g JOIN students s ON grades_students_id = students_id GROUP BY grades_students_id HAVING MAX(grades_percentages); -- students by courses that they're enrolled in SELECT courses_name AS 'Courses', grades_courses_id AS 'Course I.D.', GROUP_CONCAT(grades_students_id) AS 'Students Enrolled(by I.D.)' FROM grades g JOIN courses c ON g.grades_courses_id = c.courses_id GROUP BY c.courses_name; -- highest grade/course SELECT courses_name AS 'Course', grades_students_id AS 'Student I.D.', MAX(grades_percentages) AS 'Highest Grade' FROM grades g JOIN courses c ON grades_courses_id = courses_id GROUP BY grades_courses_id HAVING MAX(grades_percentages); -- Which student/professor has the most classes in common? Couldn't bloody figure it out. SELECT courses_name AS 'Courses', grades_courses_id AS 'Course I.D.', GROUP_CONCAT(grades_students_id) AS 'Students Enrolled(by I.D.)' FROM grades g JOIN courses c ON g.grades_courses_id = c.courses_id GROUP BY c.courses_name;
true
12d93e8d6a137a839e1640d98cd7210228e38990
SQL
Ca-moes/BDAD
/BDAD-Proj/criar.sql
UTF-8
5,998
3.40625
3
[]
no_license
DROP TABLE IF EXISTS Document; DROP TABLE IF EXISTS Stated; DROP TABLE IF EXISTS DocPossesses; DROP TABLE IF EXISTS RevPossesses; DROP TABLE IF EXISTS Modified; DROP TABLE IF EXISTS Belongs; DROP TABLE IF EXISTS Request; DROP TABLE IF EXISTS Company; DROP TABLE IF EXISTS Language; DROP TABLE IF EXISTS File; DROP TABLE IF EXISTS DocAttribute; DROP TABLE IF EXISTS CompanyRole; DROP TABLE IF EXISTS Revision; DROP TABLE IF EXISTS RevisionAttribute; DROP TABLE IF EXISTS DocumentRoleWorker; DROP TABLE IF EXISTS ProjectRole; DROP TABLE IF EXISTS CheckOut; DROP TABLE IF EXISTS Type; DROP TABLE IF EXISTS Status; DROP TABLE IF EXISTS Worker; CREATE TABLE Company ( CID INTEGER, Cname TEXT NOT NULL, NIF INTEGER UNIQUE NOT NULL, address TEXT NOT NULL, CONSTRAINT company_pk PRIMARY KEY (CID) ); CREATE TABLE Document ( docID INTEGER PRIMARY KEY, dNAME TEXT, date_ini DATE, date_fin DATE, type TEXT, ownerID INTEGER, CONSTRAINT document_type_fk FOREIGN KEY (type) REFERENCES Type(TID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT document_owner_fk FOREIGN KEY (ownerID) REFERENCES Worker(WID) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT checkDiDf CHECK (date_ini<date_fin OR date_fin=NULL) ); CREATE TABLE Language ( LID INTEGER, Lname TEXT UNIQUE NOT NULL, CONSTRAINT language_pk PRIMARY KEY (LID) ); CREATE TABLE File ( FID INTEGER, docID INTEGER NOT NULL, Fname TEXT UNIQUE NOT NULL, size INTEGER NOT NULL, extension TEXT, CONSTRAINT file_pk PRIMARY KEY (FID), CONSTRAINT file_doc_fk FOREIGN KEY (docID) REFERENCES Document(docID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT checkFSize CHECK (size >=0) ); CREATE TABLE DocAttribute ( DAID INTEGER, DAname TEXT UNIQUE NOT NULL, DAvalue TEXT UNIQUE NOT NULL, CONSTRAINT docAttribute_pk PRIMARY KEY (DAID) ); CREATE TABLE Type ( TID INTEGER, Tname TEXT NOT NULL, last_mod_date DATE, status INTEGER NOT NULL, remarks TEXT UNIQUE NOT NULL, CONSTRAINT type_pk PRIMARY KEY (TID), CONSTRAINT status_bool CHECK (status=0 OR status=1) ); CREATE TABLE Worker ( WID INTEGER PRIMARY KEY, Wname TEXT NOT NULL ); CREATE TABLE CompanyRole ( CRID INTEGER, CRname TEXT UNIQUE NOT NULL, CONSTRAINT companyRole_pk PRIMARY KEY (CRID) ); CREATE TABLE Revision ( docID INTEGER NOT NULL, revID INTEGER PRIMARY KEY, authorID INTEGER NOT NULL, version TEXT, date DATE NOT NULL, CONSTRAINT revision_author_fk FOREIGN KEY (authorID) REFERENCES Worker(WID) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT revision_doc_fk FOREIGN KEY (docID) REFERENCES Document(docID) ON DELETE CASCADE ON UPDATE CASCADE ); CREATE TABLE RevisionAttribute ( RAID INTEGER, RAname TEXT UNIQUE NOT NULL, RAvalue TEXT UNIQUE NOT NULL, CONSTRAINT revisionAttribute_pk PRIMARY KEY (RAID) ); CREATE TABLE Stated ( LID INTEGER, docID INTEGER, CONSTRAINT stated_fk1 FOREIGN KEY (LID) REFERENCES Language(LID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT stated_fk2 FOREIGN KEY (docID) REFERENCES Document(docID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT stated_pk PRIMARY KEY(LID,docID) ); CREATE TABLE DocPossesses ( DAID INTEGER, docID INTEGER, CONSTRAINT docPossesses_fk1 FOREIGN KEY (DAID) REFERENCES DocAttribute(DAID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT docPossesses_fk2 FOREIGN KEY (docID) REFERENCES Document(docID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT docPossesses_pk PRIMARY KEY(DAID,docID) ); CREATE TABLE RevPossesses ( RAID INTEGER, revID INTEGER, CONSTRAINT revPossesses_fk1 FOREIGN KEY (RAID) REFERENCES RevisionAttribute(RAID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT revPossesses_fk2 FOREIGN KEY (revID) REFERENCES Revision(revID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT revPossesses_pk PRIMARY KEY(revID,RAID) ); CREATE TABLE Belongs ( WID INTEGER, CRID INTEGER, CONSTRAINT belongs_fk1 FOREIGN KEY (WID) REFERENCES Worker(WID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT belongs_fk2 FOREIGN KEY (CRID) REFERENCES CompanyRole(CRID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT belongs_pk PRIMARY KEY(WID,CRID) ); CREATE TABLE Modified ( TID INTEGER, WID INTEGER, CONSTRAINT modified_fk1 FOREIGN KEY (TID) REFERENCES Type(TID) ON DELETE RESTRICT ON UPDATE CASCADE ON UPDATE CASCADE, CONSTRAINT modified_fk2 FOREIGN KEY (WID) REFERENCES Worker(WID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT modified_pk PRIMARY KEY(TID,WID) ); CREATE TABLE Request ( requestID INTEGER, docID INTEGER UNIQUE, CID INTEGER NOT NULL, SID INTEGER NOT NULL, propose_date DATE NOT NULL, CONSTRAINT request_fk1 FOREIGN KEY (docID) REFERENCES Document(docID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT request_fk2 FOREIGN KEY (CID) REFERENCES Company(CID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT request_fk3 FOREIGN KEY (SID) REFERENCES Status(SID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT request_pk PRIMARY KEY(requestID) ); CREATE TABLE ProjectRole ( PRID INTEGER, PRname TEXT UNIQUE NOT NULL, CONSTRAINT projectRole_pk PRIMARY KEY(PRID) ); CREATE TABLE DocumentRoleWorker ( docID INTEGER, WID INTEGER, PRID INTEGER, CONSTRAINT drw_document_fk FOREIGN KEY (docID) REFERENCES Document(docID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT drw_role_fk FOREIGN KEY (WID) REFERENCES Worker(WID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT drw_worker_fk FOREIGN KEY (PRID) REFERENCES ProjectRole(PRID) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT drw_pk PRIMARY KEY (docID, WID, PRID) ); CREATE TABLE CheckOut ( revID INTEGER, WID INTEGER, COdate DATE NOT NULL, CONSTRAINT checkOut_fk1 FOREIGN KEY (revID) REFERENCES Revision(revID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT checkOut_fk2 FOREIGN KEY (WID) REFERENCES Worker(WID) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT checkOut_pk PRIMARY KEY(revID) ); CREATE TABLE Status ( SID INTEGER, sDescription TEXT UNIQUE NOT NULL, CONSTRAINT status_pk PRIMARY KEY (SID) );
true
4ee0bb735c8f42d3dc334f2887433af0342b58dc
SQL
hyderabad18/team-6
/yfs/databasefiles/yfs.sql
UTF-8
4,037
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 14, 2018 at 01:37 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 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: `yfs` -- -- -------------------------------------------------------- -- -- Table structure for table `event` -- CREATE TABLE `event` ( `Event_ID` int(10) NOT NULL, `Event_Name` varchar(20) NOT NULL, `Event_Desc` varchar(30) NOT NULL, `Type` varchar(20) NOT NULL, `Vol_Count` int(10) NOT NULL, `Benefit` int(10) NOT NULL, `Loc_Name` varchar(30) NOT NULL, `Loc_Lat` varchar(30) NOT NULL, `Loc_Long` varchar(30) NOT NULL, `Start_Date` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `End_Date` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `event` -- INSERT INTO `event` (`Event_ID`, `Event_Name`, `Event_Desc`, `Type`, `Vol_Count`, `Benefit`, `Loc_Name`, `Loc_Lat`, `Loc_Long`, `Start_Date`, `End_Date`) VALUES (1, 'chiguru', 'event', 'educational', 5, 10, 'jubliehills', '23', '34', '0000-00-00 00:00:00.000000', '0000-00-00 00:00:00.000000'); -- -------------------------------------------------------- -- -- Table structure for table `temp_enrollment` -- CREATE TABLE `temp_enrollment` ( `User_ID` varchar(20) NOT NULL, `Event_ID` int(10) NOT NULL, `Time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `volunteer` -- CREATE TABLE `volunteer` ( `Volunteer_Name` varchar(20) NOT NULL, `Phone_no` int(10) NOT NULL, `Email` varchar(30) NOT NULL, `User_ID` varchar(30) NOT NULL, `Loc_Name` varchar(100) NOT NULL, `Loc_Lat` varchar(100) NOT NULL, `Loc_Long` varchar(100) NOT NULL, `Password` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `volunteer` -- INSERT INTO `volunteer` (`Volunteer_Name`, `Phone_no`, `Email`, `User_ID`, `Loc_Name`, `Loc_Lat`, `Loc_Long`, `Password`) VALUES ('0', 88888888, '0', '0', 'Jubileehills', 'sajdas', 'awws', 'amulya'), ('0', 55548888, '0', '0', 'Banjarahills', 'sajdas', 'awws', 'sahithi'), ('amulya', 88888888, 'devi.amulya72@gmail.com', 'amulya', '', '', '', 'amulya'), ('siddharth', 764647844, 'jnklgll@gmail.com', 'siddharth', '', '', '', 'siddharth'); -- -------------------------------------------------------- -- -- Table structure for table `v_checkin` -- CREATE TABLE `v_checkin` ( `User_ID` varchar(30) NOT NULL, `Event_ID` int(10) NOT NULL, `Date` date NOT NULL, `Check_IN` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `Check_out` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `v_checkin` -- INSERT INTO `v_checkin` (`User_ID`, `Event_ID`, `Date`, `Check_IN`, `Check_out`) VALUES ('amulya', 1, '2018-07-09', '2018-07-08 15:00:13.000000', '2018-07-30 01:00:00.000000'), ('amulya', 1, '2018-07-09', '2018-07-08 15:00:13.000000', '2018-07-30 01:00:00.000000'); -- -- Indexes for dumped tables -- -- -- Indexes for table `event` -- ALTER TABLE `event` ADD PRIMARY KEY (`Event_ID`); -- -- Indexes for table `temp_enrollment` -- ALTER TABLE `temp_enrollment` ADD UNIQUE KEY `user_ID` (`User_ID`), ADD UNIQUE KEY `event_ID` (`Event_ID`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
31ef159c2f0192eed10583013e32e500593839b0
SQL
gyanz/qgis-flo-2d-plugin
/flo2d/db_triggers.sql
UTF-8
16,902
3.578125
4
[]
no_license
-- Create GeoPackage triggers -- Inflow - INFLOW.DAT CREATE TRIGGER IF NOT EXISTS "find_inflow_cells_insert" AFTER INSERT ON "inflow" WHEN (new."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "inflow_cells" WHERE inflow_fid = NEW."fid"; INSERT INTO "inflow_cells" (inflow_fid, grid_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_inflow_cells_update" AFTER UPDATE ON "inflow" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "inflow_cells" WHERE inflow_fid = OLD."fid"; INSERT INTO "inflow_cells" (inflow_fid, grid_fid) SELECT OLD.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_inflow_cells_delete" AFTER DELETE ON "inflow" -- WHEN (OLD."geom" NOT NULL AND NOT ST_IsEmpty(OLD."geom")) BEGIN DELETE FROM "inflow_cells" WHERE inflow_fid = OLD."fid"; END; -- Outflows CREATE TRIGGER IF NOT EXISTS "find_outflow_cells_insert" AFTER INSERT ON "outflow" WHEN (new."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom") AND NEW."ident" = 'N') BEGIN DELETE FROM "outflow_cells" WHERE outflow_fid = NEW."fid"; INSERT INTO "outflow_cells" (outflow_fid, grid_fid, area_factor) SELECT NEW.fid, g.fid, ST_Area(ST_Intersection(CastAutomagic(g.geom), CastAutomagic(NEW.geom)))/ST_Area(NEW.geom) FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_outflow_chan_elems_insert" AFTER INSERT ON "outflow" WHEN (new."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom") AND NEW."ident" = 'K') BEGIN DELETE FROM "outflow_chan_elems" WHERE outflow_fid = NEW."fid"; INSERT INTO "outflow_chan_elems" (outflow_fid, elem_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_outflow_cells_update" AFTER UPDATE ON "outflow" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom") AND NOT NULL) BEGIN DELETE FROM "outflow_cells" WHERE outflow_fid = OLD."fid" AND NEW."ident" = 'N'; INSERT INTO "outflow_cells" (outflow_fid, grid_fid) SELECT OLD.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)) AND NEW."ident" = 'N'; END; CREATE TRIGGER IF NOT EXISTS "find_outflow_chan_elems_update" AFTER UPDATE ON "outflow" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom") AND NOT NULL) BEGIN DELETE FROM "outflow_chan_elems" WHERE outflow_fid = OLD."fid" AND NEW."ident" = 'K'; INSERT INTO "outflow_chan_elems" (outflow_fid, elem_fid) SELECT OLD.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)) AND NEW."ident" = 'K'; END; CREATE TRIGGER IF NOT EXISTS "find_outflow_cells_delete" AFTER DELETE ON "outflow" WHEN (OLD."ident" = 'N') BEGIN DELETE FROM "outflow_cells" WHERE outflow_fid = OLD."fid"; END; CREATE TRIGGER IF NOT EXISTS "find_outflow_chan_elems_delete" AFTER DELETE ON "outflow" WHEN (OLD."ident" = 'K') BEGIN DELETE FROM "outflow_chan_elems" WHERE outflow_fid = OLD."fid"; END; -- RAIN.DAT CREATE TRIGGER IF NOT EXISTS "find_rain_arf_cells_insert" AFTER INSERT ON "rain_arf_areas" WHEN (new."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "rain_arf_cells" WHERE rain_arf_area_fid = NEW."fid"; INSERT INTO "rain_arf_cells" (rain_arf_area_fid, grid_fid, arf) SELECT NEW.fid, g.fid, NEW.arf FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_rain_arf_cells_update" AFTER UPDATE ON "rain_arf_areas" WHEN (new."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "rain_arf_cells" WHERE rain_arf_area_fid = NEW."fid"; INSERT INTO "rain_arf_cells" (rain_arf_area_fid, grid_fid, arf) SELECT NEW.fid, g.fid, NEW.arf FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_rain_arf_cells_delete" AFTER DELETE ON "rain_arf_areas" BEGIN DELETE FROM "rain_arf_cells" WHERE rain_arf_area_fid = OLD."fid"; END; -- CHAN.DAT CREATE TRIGGER IF NOT EXISTS "find_user_chan_n_delete" AFTER DELETE ON "user_xsections" BEGIN DELETE FROM "user_chan_n" WHERE user_xs_fid = OLD."fid"; END; -- TODO: create triggers for geometry INSERT and UPDATE -- use notes column to flag features created by user! -- -- create geometry when rightbank and leftbank are given -- CREATE TRIGGER IF NOT EXISTS "chan_n_geom_insert" -- AFTER INSERT ON "chan_n" -- WHEN (NEW."ichangrid" NOT NULL AND NEW."rbankgrid" NOT NULL) -- BEGIN -- UPDATE "chan_n" -- SET geom = ( -- SELECT -- AsGPB(MakeLine((ST_Centroid(CastAutomagic(g1.geom))), -- (ST_Centroid(CastAutomagic(g2.geom))))) -- FROM grid AS g1, grid AS g2 -- WHERE g1.fid = ichangrid AND g2.fid = rbankgrid); -- END; --update left and right bank fids when geometry changed -- CREATE TRIGGER IF NOT EXISTS "chan_n_banks_update_geom_changed" -- AFTER UPDATE ON "chan_n" -- WHEN ( NEW.notes IS NULL ) -- BEGIN -- UPDATE "chan_n" SET ichangrid = (SELECT g.fid FROM grid AS g -- WHERE ST_Intersects(g.geom,StartPoint(CastAutomagic(geom)))) -- WHERE fid = NEW.fid; -- UPDATE "chan_n" SET rbankgrid = (SELECT g.fid FROM grid AS g -- WHERE ST_Intersects(g.geom,EndPoint(CastAutomagic(geom)))) -- WHERE fid = NEW.fid; -- END; -- -- CREATE TRIGGER IF NOT EXISTS "chan_n_geom_update_banks_changed" -- AFTER UPDATE OF ichangrid, rbankgrid ON "chan_n" -- -- WHEN (NEW."ichangrid" NOT NULL AND NEW."rbankgrid" NOT NULL) -- BEGIN -- UPDATE "chan_n" -- SET geom = ( -- SELECT -- AsGPB(MakeLine((ST_Centroid(CastAutomagic(g1.geom))), -- (ST_Centroid(CastAutomagic(g2.geom))))) -- FROM grid AS g1, grid AS g2 -- WHERE g1.fid = ichangrid AND g2.fid = rbankgrid); -- END; -- RIGHTBANKS -- CREATE TRIGGER IF NOT EXISTS "find_rbank_n_insert" -- AFTER INSERT ON "chan_n" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "rightbanks" WHERE seg_fid = NEW."seg_fid"; -- INSERT INTO "rightbanks" (seg_fid, geom) -- SELECT -- NEW.seg_fid, AsGPB(MakeLine(Centroid(CastAutomagic(g.geom)))) AS geom FROM chan_n AS ch, grid AS g -- WHERE -- NEW.rbankgrid = g.fid AND seg_fid = NEW.seg_fid -- GROUP BY seg_fid; -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_rbank_n_update" -- AFTER UPDATE ON "chan_n" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "rightbanks" WHERE seg_fid = NEW."seg_fid"; -- INSERT INTO "rightbanks" (seg_fid, geom) -- SELECT -- NEW.seg_fid, AsGPB(MakeLine(Centroid(CastAutomagic(g.geom)))) AS geom FROM chan_n AS ch, grid AS g -- WHERE -- NEW.rbankgrid = g.fid AND seg_fid = NEW.seg_fid -- GROUP BY seg_fid; -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_rbank_n_delete" -- AFTER DELETE ON "chan_n" -- BEGIN -- DELETE FROM "rightbanks" WHERE seg_fid = OLD."seg_fid"; -- END; -- automatically create/modify geometry of confluences on iconflo1/2 insert/update CREATE TRIGGER IF NOT EXISTS "confluence_geom_insert" AFTER INSERT ON "chan_confluences" WHEN (NEW."chan_elem_fid" NOT NULL) BEGIN UPDATE "chan_confluences" SET geom = (SELECT AsGPB(ST_Centroid(CastAutomagic(g.geom))) FROM grid AS g WHERE g.fid = chan_elem_fid); -- TODO: set also seg_fid END; CREATE TRIGGER IF NOT EXISTS "confluence_geom_update" AFTER UPDATE ON "chan_confluences" WHEN (NEW."chan_elem_fid" NOT NULL) BEGIN UPDATE "chan_confluences" SET geom = (SELECT AsGPB(ST_Centroid(CastAutomagic(g.geom))) FROM grid AS g WHERE g.fid = chan_elem_fid); -- TODO: set also seg_fid END; CREATE TRIGGER IF NOT EXISTS "find_noexchange_cells_insert" AFTER INSERT ON "user_noexchange_chan_areas" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "noexchange_chan_cells" WHERE noex_fid = NEW."fid"; INSERT INTO "noexchange_chan_cells" (noex_fid, grid_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_noexchange_cells_update" AFTER UPDATE ON "user_noexchange_chan_areas" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "noexchange_chan_cells" WHERE noex_fid = NEW."fid"; INSERT INTO "noexchange_chan_cells" (noex_fid, grid_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_noexchange_cells_delete" AFTER DELETE ON "user_noexchange_chan_areas" BEGIN DELETE FROM "noexchange_chan_cells" WHERE noex_fid = OLD."fid"; END; -- INFIL.DAT -- Green Ampt -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_green_insert" -- AFTER INSERT ON "infil_areas_green" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_cells_green" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_cells_green" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_green_update" -- AFTER UPDATE ON "infil_areas_green" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_cells_green" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_cells_green" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_green_delete" -- AFTER DELETE ON "infil_areas_green" -- BEGIN -- DELETE FROM "infil_cells_green" WHERE infil_area_fid = OLD."fid"; -- END; -- -- -- SCS -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_scs_insert" -- AFTER INSERT ON "infil_areas_scs" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_cells_scs" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_cells_scs" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_scs_update" -- AFTER UPDATE ON "infil_areas_scs" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_cells_scs" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_cells_scs" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_scs_delete" -- AFTER DELETE ON "infil_areas_scs" -- BEGIN -- DELETE FROM "infil_cells_scs" WHERE infil_area_fid = OLD."fid"; -- END; -- -- -- HORTON -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_horton_insert" -- AFTER INSERT ON "infil_areas_horton" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_cells_horton" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_cells_horton" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_horton_update" -- AFTER UPDATE ON "infil_areas_horton" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_cells_horton" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_cells_horton" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_cells_horton_delete" -- AFTER DELETE ON "infil_areas_horton" -- BEGIN -- DELETE FROM "infil_cells_horton" WHERE infil_area_fid = OLD."fid"; -- END; -- -- -- CHANNELS -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_chan_elems_insert" -- AFTER INSERT ON "infil_areas_chan" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_chan_elems" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_chan_elems" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_chan_elems_update" -- AFTER UPDATE ON "infil_areas_chan" -- WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) -- BEGIN -- DELETE FROM "infil_chan_elems" WHERE infil_area_fid = NEW."fid"; -- INSERT INTO "infil_chan_elems" (infil_area_fid, grid_fid) -- SELECT NEW.fid, g.fid FROM grid as g -- WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); -- END; -- -- CREATE TRIGGER IF NOT EXISTS "find_infil_chan_elems_delete" -- AFTER DELETE ON "infil_areas_chan" -- BEGIN -- DELETE FROM "infil_chan_elems" WHERE infil_area_fid = OLD."fid"; -- END; -- HYSTRUC.DAT -- TODO: triggers for creating the struct geom based on in- and outflonod -- STREET.DAT -- TODO: geometry triggers for streets -- ARF.DAT CREATE TRIGGER IF NOT EXISTS "find_cells_arf_tot_insert" AFTER INSERT ON "blocked_areas_tot" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "blocked_cells_tot" WHERE area_fid = NEW."fid"; INSERT INTO "blocked_cells_tot" (area_fid, grid_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_cells_arf_tot_update" AFTER UPDATE ON "blocked_areas_tot" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "blocked_cells_tot" WHERE area_fid = NEW."fid"; INSERT INTO "blocked_cells_tot" (area_fid, grid_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_cells_arf_tot_delete" AFTER DELETE ON "blocked_areas_tot" BEGIN DELETE FROM "blocked_cells_tot" WHERE area_fid = OLD."fid"; END; CREATE TRIGGER IF NOT EXISTS "find_cells_arf_insert" AFTER INSERT ON "user_blocked_areas" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "blocked_cells" WHERE area_fid = NEW."fid"; INSERT INTO "blocked_cells" (area_fid, grid_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_cells_arf_update" AFTER UPDATE ON "user_blocked_areas" WHEN (NEW."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "blocked_cells" WHERE area_fid = NEW."fid"; INSERT INTO "blocked_cells" (area_fid, grid_fid) SELECT NEW.fid, g.fid FROM grid as g WHERE ST_Intersects(CastAutomagic(g.geom), CastAutomagic(NEW.geom)); END; CREATE TRIGGER IF NOT EXISTS "find_cells_arf_delete" AFTER DELETE ON "user_blocked_areas" BEGIN DELETE FROM "blocked_cells" WHERE area_fid = OLD."fid"; END; -- MULT.DAT -- LEVEE.DAT -- FPXSEC.DAT -- SWMMFLO.DAT -- SWMMOUTF.DAT -- TOLSPATIAL.DAT -- WSURF.DAT -- WSTIME.DAT
true
dd7d0360367c31024d280583604903754657fd6a
SQL
KiraFR/Life_Kira
/patch/notaire.sql
UTF-8
798
2.84375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50505 Source Host : localhost:3306 Source Database : arma3life Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-06-18 00:14:21 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for notaire -- ---------------------------- DROP TABLE IF EXISTS `notaire`; CREATE TABLE `notaire` ( `id` int(255) NOT NULL AUTO_INCREMENT, `uidPlayer` varchar(50) NOT NULL, `amount` int(32) NOT NULL, `realAmount` int(32) NOT NULL, `toPlayer` varchar(50) NOT NULL, `nomNotaire` varchar(255) NOT NULL, `description` text NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
true
929301de7a11a62bc7d1639a05d1fc6763bb4a99
SQL
Shariful-NomaD-Islam/sync-db
/sql/postgre-event-log-jsonb.sql
UTF-8
1,910
3.21875
3
[]
no_license
CREATE TABLE EVENT_LOG ( ID SERIAL NOT NULL PRIMARY KEY, ORIGINAL_TABLE_NAME VARCHAR(100), OPERATION VARCHAR(20), FILTER JSONB, NEW_DATA JSONB, OLD_DATA JSONB, CREATE_DATE_TIME TIMESTAMP, STATUS VARCHAR(20) ); INSERT INTO EVENT_LOG (ORIGINAL_TABLE_NAME, OPERATION, FILTER, NEW_DATA, OLD_DATA, CREATE_DATE_TIME, STATUS) VALUES('worker', 'update', '{ "uuid": "no-uuid"}', '{ "name": "nomad"}', '{ "name": "tulip"}', '2019-01-20 01:01:01', 'active'); INSERT INTO EVENT_LOG (ORIGINAL_TABLE_NAME, OPERATION, FILTER, NEW_DATA, OLD_DATA, CREATE_DATE_TIME, STATUS) VALUES('worker', 'update', '{ "uuid": "12345"}', '{ "name": "nomad", "id": "XYZ"}', '{ "name": "tulip", "id": "ABC"}', '2019-01-20 01:01:01', 'active'); INSERT INTO EVENT_LOG (ORIGINAL_TABLE_NAME, OPERATION, FILTER, NEW_DATA, OLD_DATA, CREATE_DATE_TIME, STATUS) VALUES('worker', 'update', '{ "uuid": "123"}', '{ "name": "tulip", "id": "XYZASD"}', '{ "name": "tulip", "id": "ABCQW"}', '2019-01-20 01:01:01', 'active'); INSERT INTO EVENT_LOG (ORIGINAL_TABLE_NAME, OPERATION, FILTER, NEW_DATA, OLD_DATA, CREATE_DATE_TIME, STATUS) VALUES('worker', 'update', '{ "uuid": "123"}', '{ "name": "tulip", "id": "XYZASD", "role": ["Neta", "Chamcha"]}', '{ "name": "tulip", "id": "ABCQW"}', '2019-01-20 01:01:01', 'active'); INSERT INTO EVENT_LOG (ORIGINAL_TABLE_NAME, OPERATION, FILTER, NEW_DATA, OLD_DATA, CREATE_DATE_TIME, STATUS) VALUES('worker', 'update', '{ "uuid": "5"}', '{ "name": "tulip", "id": "XYZASD", "role": ["Boro-Neta", "Choto-Chamcha"]}', '{ "name": "tulip", "id": "ABCQW"}', '2019-01-20 01:01:01', 'active'); SELECT * FROM EVENT_LOG; SELECT * FROM EVENT_LOG WHERE NEW_DATA->>'name' = 'nomad'; SELECT NEW_DATA -> 'id' AS ID FROM EVENT_LOG; SELECT NEW_DATA ->> 'id' AS ID FROM EVENT_LOG; SELECT count(*) FROM EVENT_LOG WHERE NEW_DATA?'name'; SELECT jsonb_array_elements_text(NEW_DATA->'role') as DT FROM EVENT_LOG;
true
61392f2d28eaa9a03ff1625691e69d6b2cd8bc0e
SQL
Isaac00rz/Creative
/public/consultas de prueba.sql
UTF-8
2,325
3.5625
4
[ "MIT" ]
permissive
use creative; select * from clientes; select rfc, concat(nombre,' ', apellidoP,' ',apellidoP) as nombreC, cp, direccion, correo, telefonoPersonal from clientes; select * from sucursal; select * from users; SET FOREIGN_KEY_CHECKS=0; truncate table users; SET FOREIGN_KEY_CHECKS=1; insert into users(id,name,email,password) values(null,'Admin','admin@hotmail.com','123123'); insert into sucursal values(null,'Leon I','Lomas #4445','Los altos',3554,4772596655,'creative@hotmail.com',NOW(),true,1); insert into clientes values(374414,'Roberto','Rodriguez','Martinez','Valle de los tacos $425','Valle Alca',37544,4771234745,4442255,'Sapal@sapal.com',NOW(),true,1,1); update clientes set Activo = 1 where rfc = 374414; alter table users add ( username varchar(15) not null ); select * from roles; insert into roles values (1,'Administrador',0); select * from provedores; select * from empleados; SET FOREIGN_KEY_CHECKS=0; drop table finman; SET FOREIGN_KEY_CHECKS=1; select * from mantenimiento; insert into mantenimiento values(null,'Mantenimiento de impresora de sapal','2018/12/02',1,now(),1,1); insert into mantenimiento values(null,'Mantenimiento de impresora de Bodega','2018/12/20',2,now(),1,1); insert into mantenimiento values(null,'Mantenimiento de impresora de Creativos','2018/12/15',2,now(),1,1); insert into mantenimiento values(null,'Mantenimiento de impresora de Aeoros','2018/11/01',3,now(),1,1); select mantenimiento.id_Mantenimiento,mantenimiento.descripcion,fechaMan,mantenimiento.id_impresora,fecha, modelo,CONCAT(empleados.nombre, ' ',empleados.apellidoP,' ',empleados.apellidoM) as nombreC from mantenimiento left join FinMan on mantenimiento.id_Mantenimiento = FinMan.id_Mantenimiento left join empleados on FinMan.id_empleado = FinMan.id_empleado inner join impresoras on mantenimiento.id_impresora = impresoras.id_impresora; select mantenimiento.id_Mantenimiento,mantenimiento.descripcion,fechaMan,mantenimiento.id_impresora,fecha, modelo from mantenimiento left join FinMan on mantenimiento.id_Mantenimiento = FinMan.id_Mantenimiento inner join impresoras on mantenimiento.id_impresora = impresoras.id_impresora where mantenimiento.id_Mantenimiento not in ( select id_mantenimiento from finman ); select * from FinMan; insert into FinMan values (null,'Finalizacion normal','2018/11/02','Ninguno',5,1,now(),1);
true
a563791a217044bc379d0576193f145e38c13cb9
SQL
star-centauri/Movie-DB
/TrabBd_BombaPatch.sql
UTF-8
3,179
3.546875
4
[]
no_license
CREATE TABLE Filme ( Id VARCHAR(6) PRIMARY KEY, Nome VARCHAR(10), Ano DATE, Orcamento INTEGER, Bileteria INTEGER, Sinopse VARCHAR(300), Rank FLOAT ); CREATE TABLE Diretor ( Id VARCHAR(6) PRIMARY KEY, Primeiro_Nome VARCHAR(30), Segundo_Nome VARCHAR(30), Sexo CHAR, Data_Nascimento DATE, Pais VARCHAR(10) ); CREATE TABLE Ator ( Id VARCHAR(6) PRIMARY KEY, Primeiro_Nome VARCHAR(30), Segundo_Nome VARCHAR(30), Sexo CHAR, Data_Nascimento DATE, Pais VARCHAR(10) ); CREATE TABLE Categoria ( Nome VARCHAR(10) PRIMARY KEY ); CREATE TABLE Comentario ( Id INTEGER PRIMARY KEY, Data DATE ); CREATE TABLE Produtora ( Nome VARCHAR(10) PRIMARY KEY, Pais VARCHAR(10) ); CREATE TABLE Usuario ( Id VARCHAR(6) PRIMARY KEY, Primeiro_Nome VARCHAR(30), Segundo_Nome VARCHAR(30), Sexo CHAR, Data_Nascimento DATE, Pais VARCHAR(10) ); CREATE TABLE Possui ( FK_Categoria_Nome VARCHAR(10), FK_Filme_Id VARCHAR(6) ); CREATE TABLE Produz ( FK_Produtora_Nome VARCHAR(10), FK_Filme_Id VARCHAR(6) ); CREATE TABLE comentar_Usuario_Filme_Comentario ( FK_Usuario_Id VARCHAR(6), FK_Filme_Id VARCHAR(6), FK_Comentario_Id INTEGER ); CREATE TABLE Elenco_Diretor_Ator_Filme ( FK_Diretor_Id VARCHAR(6), FK_Ator_Id VARCHAR(6), FK_Filme_Id VARCHAR(6) ); ALTER TABLE Possui ADD CONSTRAINT FK_Possui_0 FOREIGN KEY (FK_Categoria_Nome) REFERENCES Categoria (Nome) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE Possui ADD CONSTRAINT FK_Possui_1 FOREIGN KEY (FK_Filme_Id) REFERENCES Filme (Id) ON DELETE SET NULL ON UPDATE CASCADE; ALTER TABLE Produz ADD CONSTRAINT FK_Produz_0 FOREIGN KEY (FK_Produtora_Nome) REFERENCES Produtora (Nome) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE Produz ADD CONSTRAINT FK_Produz_1 FOREIGN KEY (FK_Filme_Id) REFERENCES Filme (Id) ON DELETE SET NULL ON UPDATE CASCADE; ALTER TABLE comentar_Usuario_Filme_Comentario ADD CONSTRAINT FK_comentar_Usuario_Filme_Comentario_0 FOREIGN KEY (FK_Usuario_Id) REFERENCES Usuario (Id) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE comentar_Usuario_Filme_Comentario ADD CONSTRAINT FK_comentar_Usuario_Filme_Comentario_1 FOREIGN KEY (FK_Filme_Id) REFERENCES Filme (Id) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE comentar_Usuario_Filme_Comentario ADD CONSTRAINT FK_comentar_Usuario_Filme_Comentario_2 FOREIGN KEY (FK_Comentario_Id) REFERENCES Comentario (Id) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE Elenco_Diretor_Ator_Filme ADD CONSTRAINT FK_Elenco_Diretor_Ator_Filme_0 FOREIGN KEY (FK_Diretor_Id) REFERENCES Diretor (Id) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE Elenco_Diretor_Ator_Filme ADD CONSTRAINT FK_Elenco_Diretor_Ator_Filme_1 FOREIGN KEY (FK_Ator_Id) REFERENCES Ator (Id) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE Elenco_Diretor_Ator_Filme ADD CONSTRAINT FK_Elenco_Diretor_Ator_Filme_2 FOREIGN KEY (FK_Filme_Id) REFERENCES Filme (Id) ON DELETE NO ACTION ON UPDATE NO ACTION;
true
116e9468a80c17f3a3248793b4746fc91eb9ecde
SQL
Sersergei/test_blog
/blog.sql
UTF-8
2,465
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Июл 03 2015 г., 00:30 -- Версия сервера: 5.6.22-log -- Версия PHP: 5.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- База данных: `blog` -- -- -------------------------------------------------------- -- -- Структура таблицы `tbl_post` -- CREATE TABLE IF NOT EXISTS `tbl_post` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, `content` text NOT NULL, `status` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Дамп данных таблицы `tbl_post` -- INSERT INTO `tbl_post` (`id`, `title`, `content`, `status`) VALUES (1, 'test1', 'content test1', 1), (2, 'test2', 'test2', 2), (3, 'test3', 'test3', 3); -- -------------------------------------------------------- -- -- Структура таблицы `tbl_status` -- CREATE TABLE IF NOT EXISTS `tbl_status` ( `id` int(2) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Дамп данных таблицы `tbl_status` -- INSERT INTO `tbl_status` (`id`, `title`) VALUES (1, 'Не опубликован'), (2, 'Опубликован'), (3, 'Устаревшая запись'); -- -------------------------------------------------------- -- -- Структура таблицы `tbl_user` -- CREATE TABLE IF NOT EXISTS `tbl_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(128) NOT NULL, `password` varchar(128) NOT NULL, `email` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=24 ; -- -- Дамп данных таблицы `tbl_user` -- INSERT INTO `tbl_user` (`id`, `username`, `password`, `email`) VALUES (22, 'admin', 'admin', 'admin@admin.net'), (23, 'demo', 'demo', 'demo@demo.net'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
0ffcdf952e1cb6c25abaa419a2cc476f33a0d485
SQL
JJJJJJH/New-but-Fantastic-
/Leetcode DB/183.sql
UTF-8
211
3.359375
3
[]
no_license
#183. Customers Who Never Order # Write your MySQL query statement below select Customers.Name as 'Customers' from Customers left join Orders on Customers.ID = Orders.CustomerID where Orders.CustomerId is null
true
ebc102b163fb30dc4096210cbc9460091c16008c
SQL
zj-dreamly/love-sharing-service
/sql/love-sharing.sql
UTF-8
5,587
3.5
4
[]
no_license
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for bonus_event_log -- ---------------------------- DROP TABLE IF EXISTS `bonus_event_log`; CREATE TABLE `bonus_event_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id', `user_id` int(11) DEFAULT NULL COMMENT 'user.id', `value` int(11) DEFAULT NULL COMMENT '积分操作值', `event` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '发生的事件', `create_time` datetime(0) DEFAULT NULL COMMENT '创建时间', `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '描述', PRIMARY KEY (`id`) USING BTREE, INDEX `fk_bonus_event_log_user1_idx`(`user_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '积分变更记录表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for mid_user_share -- ---------------------------- DROP TABLE IF EXISTS `mid_user_share`; CREATE TABLE `mid_user_share` ( `id` int(11) NOT NULL AUTO_INCREMENT, `share_id` int(11) NOT NULL COMMENT 'share.id', `user_id` int(11) NOT NULL COMMENT 'user.id', PRIMARY KEY (`id`) USING BTREE, INDEX `fk_mid_user_share_share1_idx`(`share_id`) USING BTREE, INDEX `fk_mid_user_share_user1_idx`(`user_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户-分享中间表【描述用户购买的分享】' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for notice -- ---------------------------- DROP TABLE IF EXISTS `notice`; CREATE TABLE `notice` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '内容', `show_flag` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否显示 0:否 1:是', `create_time` datetime(0) NOT NULL COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for rocketmq_transaction_log -- ---------------------------- DROP TABLE IF EXISTS `rocketmq_transaction_log`; CREATE TABLE `rocketmq_transaction_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `transaction_Id` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事务id', `log` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '日志', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'RocketMQ事务日志表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for share -- ---------------------------- DROP TABLE IF EXISTS `share`; CREATE TABLE `share` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `user_id` int(11) NOT NULL DEFAULT 0 COMMENT '发布人id', `title` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题', `create_time` datetime(0) NOT NULL COMMENT '创建时间', `update_time` datetime(0) NOT NULL COMMENT '修改时间', `is_original` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否原创 0:否 1:是', `author` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '作者', `cover` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面', `summary` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '概要信息', `price` int(11) NOT NULL DEFAULT 0 COMMENT '价格(需要的积分)', `download_url` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '下载地址', `buy_count` int(11) NOT NULL DEFAULT 0 COMMENT '下载数 ', `show_flag` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否显示 0:否 1:是', `audit_status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '审核状态 NOT_YET: 待审核 PASSED:审核通过 REJECTED:审核不通过', `reason` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '审核不通过原因', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分享表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id', `wx_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信id', `wx_nickname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信昵称', `roles` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '角色', `avatar_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '头像地址', `create_time` datetime(0) NOT NULL COMMENT '创建时间', `update_time` datetime(0) NOT NULL COMMENT '修改时间', `bonus` int(11) NOT NULL DEFAULT 300 COMMENT '积分', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分享' ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;
true
9c6bf43043925d3db8c1d196f44882a15311f746
SQL
reyhane-goli/DB_CA
/Company.sql
UTF-8
21,291
3.875
4
[]
no_license
create database Company; use Company; CREATE TABLE employee (number INTEGER PRIMARY KEY, name VARCHAR(20), salary INTEGER, manager INTEGER, birthyear INTEGER, startyear INTEGER); CREATE TABLE dept (number INTEGER PRIMARY KEY, name VARCHAR(20), store INTEGER NOT NULL, floor INTEGER, manager INTEGER); CREATE TABLE item (number INTEGER PRIMARY KEY, name VARCHAR(20), dept INTEGER NOT NULL, price INTEGER, qoh INTEGER, CONSTRAINT ck_item_qoh CHECK (qoh >= 0), supplier INTEGER NOT NULL); CREATE TABLE parts (number INTEGER PRIMARY KEY, name VARCHAR(20), color VARCHAR(8), weight INTEGER, qoh INTEGER); CREATE TABLE supply (supplier INTEGER NOT NULL, part INTEGER NOT NULL, shipdate DATE NOT NULL, quan INTEGER, CONSTRAINT pk_supply PRIMARY KEY (supplier, part, shipdate)); CREATE TABLE sale (debit INTEGER NOT NULL, item INTEGER NOT NULL, quantity INTEGER, CONSTRAINT pk_sale PRIMARY KEY (debit, item)); CREATE TABLE debit (number INTEGER PRIMARY KEY, sdate DATE DEFAULT '2020-10-10' NOT NULL, employee INTEGER NOT NULL, account INTEGER NOT NULL); CREATE TABLE city (name VARCHAR(15) PRIMARY KEY, state VARCHAR(6)); CREATE TABLE store (number INTEGER PRIMARY KEY, city VARCHAR(15) NOT NULL); CREATE TABLE supplier (number INTEGER PRIMARY KEY, name VARCHAR(20), city VARCHAR(15) NOT NULL); -- Add foreign keys ALTER TABLE dept ADD CONSTRAINT fk_dept_store FOREIGN KEY (store) REFERENCES store (number); ALTER TABLE dept ADD CONSTRAINT fk_dept_employee FOREIGN KEY (manager) REFERENCES employee (number) ON DELETE SET NULL; ALTER TABLE item ADD CONSTRAINT fk_item_dept FOREIGN KEY (dept) REFERENCES dept (number); ALTER TABLE item ADD CONSTRAINT fk_item_supplier FOREIGN KEY (supplier) REFERENCES supplier (number); ALTER TABLE supply ADD CONSTRAINT fk_supply_supplier FOREIGN KEY (supplier) REFERENCES supplier (number); ALTER TABLE supply ADD CONSTRAINT fk_supply_parts FOREIGN KEY (part) REFERENCES parts (number); ALTER TABLE sale ADD CONSTRAINT fk_sale_item FOREIGN KEY (item) REFERENCES item (number); ALTER TABLE sale ADD CONSTRAINT fk_sale_debit FOREIGN KEY (debit) REFERENCES debit(number); -- implies that a debit/transaction must be created before a sale record. ALTER TABLE debit ADD CONSTRAINT fk_debit_employee FOREIGN KEY (employee) REFERENCES employee (number); ALTER TABLE store ADD CONSTRAINT fk_store_city FOREIGN KEY (city) REFERENCES city (name); ALTER TABLE supplier ADD CONSTRAINT fk_supplier_city FOREIGN KEY (city) REFERENCES city (name); -- Create the view that has to be modified in lab 2, question 17 -- CREATE VIEW sale_supply(supplier, item, quantity) as SELECT supplier.name, item.name, sale.quantity FROM supplier, item, sale -- WHERE supplier.number = item.supplier AND -- sale.item = item.number; INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (157, 'Jones, Tim', 12000, 199, 1940, 1960); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (1110, 'Smith, Paul', 6000, 33, 1952, 1973); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (35, 'Evans, Michael', 5000, 32, 1952, 1974); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (129, 'Thomas, Tom', 10000, 199, 1941, 1962); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (13, 'Edwards, Peter', 9000, 199, 1928, 1958); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (215, 'Collins, Joanne', 7000, 10, 1950, 1971); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (55, 'James, Mary', 12000, 199, 1920, 1969); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (26, 'Thompson, Bob', 13000, 199, 1930, 1970); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (98, 'Williams, Judy', 9000, 199, 1935, 1969); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (32, 'Smythe, Carol', 9050, 199, 1929, 1967); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (33, 'Hayes, Evelyn', 10100, 199, 1931, 1963); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (199, 'Bullock, J.D.', 27000, null, 1920, 1920); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (4901, 'Bailey, Chas M.', 8377, 32, 1956, 1975); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (843, 'Schmidt, Herman', 11204, 26, 1936, 1956); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (2398, 'Wallace, Maggie J.', 7880, 26, 1940, 1959); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (1639, 'Choy, Wanda', 11160, 55, 1947, 1970); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (5119, 'Bono, Sonny', 13621, 55, 1939, 1963); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (37, 'Raveen, Lemont', 11985, 26, 1950, 1974); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (5219, 'Schwarz, Jason B.', 13374, 33, 1944, 1959); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (1523, 'Zugnoni, Arthur A.', 19868, 129, 1928, 1949); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (430, 'Brunet, Paul C.', 17674, 129, 1938, 1959); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (994, 'Iwano, Masahiro', 15641, 129, 1944, 1970); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (1330, 'Onstad, Richard', 8779, 13, 1952, 1971); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (10, 'Stanley, Ross', 15908, 199, 1927, 1945); INSERT INTO employee (number, name, salary, manager, birthyear, startyear) VALUES (11, 'Stuart, Ross', 12067, null, 1931, 1932); ALTER TABLE employee ADD CONSTRAINT fk_emp_mgr FOREIGN KEY (manager) REFERENCES employee(number) ON DELETE SET NULL; INSERT INTO city (name, state) VALUES ('Los Angeles', 'Calif'); INSERT INTO city (name, state) VALUES ('Oakland', 'Calif'); INSERT INTO city (name, state) VALUES ('El Cerrito', 'Calif'); INSERT INTO city (name, state) VALUES ('Atlanta', 'Ga'); INSERT INTO city (name, state) VALUES ('San Francisco', 'Calif'); INSERT INTO city (name, state) VALUES ('Boston', 'Mass'); INSERT INTO city (name, state) VALUES ('Dallas', 'Tex'); INSERT INTO city (name, state) VALUES ('Denver', 'Colo'); INSERT INTO city (name, state) VALUES ('White Plains', 'Neb'); INSERT INTO city (name, state) VALUES ('Amherst', 'Mass'); INSERT INTO city (name, state) VALUES ('Seattle', 'Wash'); INSERT INTO city (name, state) VALUES ('Paxton', 'Ill'); INSERT INTO city (name, state) VALUES ('New York', 'NY'); INSERT INTO city (name, state) VALUES ('San Diego', 'Calif'); INSERT INTO city (name, state) VALUES ('Hickville', 'Okla'); INSERT INTO city (name, state) VALUES ('Salt Lake City', 'Utah'); INSERT INTO city (name, state) VALUES ('Madison', 'Wisc'); INSERT INTO store (number, city) VALUES (5, 'San Francisco'); INSERT INTO store (number, city) VALUES (7, 'Oakland'); INSERT INTO store (number, city) VALUES (8, 'El Cerrito'); INSERT INTO dept (number, name, store, floor, manager) VALUES (35, 'Book', 5, 1, 55); INSERT INTO dept (number, name, store, floor, manager) VALUES (10, 'Candy', 5, 1, 13); INSERT INTO dept (number, name, store, floor, manager) VALUES (19, 'Furniture', 7, 4, 26); INSERT INTO dept (number, name, store, floor, manager) VALUES (20, 'Major Appliances', 7, 4, 26); INSERT INTO dept (number, name, store, floor, manager) VALUES (14, 'Jewelry', 8, 1, 33); INSERT INTO dept (number, name, store, floor, manager) VALUES (43, 'Children''s', 8, 2, 32); INSERT INTO dept (number, name, store, floor, manager) VALUES (65, 'Junior''s', 7, 3, 37); INSERT INTO dept (number, name, store, floor, manager) VALUES (58, 'Men''s', 7, 2, 129); INSERT INTO dept (number, name, store, floor, manager) VALUES (60, 'Sportswear', 5, 1, 10); INSERT INTO dept (number, name, store, floor, manager) VALUES (99, 'Giftwrap', 5, 1, 98); INSERT INTO dept (number, name, store, floor, manager) VALUES (1, 'Bargain', 5, 0, 37); INSERT INTO dept (number, name, store, floor, manager) VALUES (26, 'Linens', 7, 3, 157); INSERT INTO dept (number, name, store, floor, manager) VALUES (63, 'Women''s', 7, 3, 32); INSERT INTO dept (number, name, store, floor, manager) VALUES (49, 'Toys', 8, 2, 35); INSERT INTO dept (number, name, store, floor, manager) VALUES (70, 'Women''s', 5, 1, 10); INSERT INTO dept (number, name, store, floor, manager) VALUES (73, 'Children''s', 5, 1, 10); INSERT INTO dept (number, name, store, floor, manager) VALUES (34, 'Stationary', 5, 1, 33); INSERT INTO dept (number, name, store, floor, manager) VALUES (47, 'Junior Miss', 7, 2, 129); INSERT INTO dept (number, name, store, floor, manager) VALUES (28, 'Women''s', 8, 2, 32); INSERT INTO supplier (number, name, city) VALUES (199, 'Koret', 'Los Angeles'); INSERT INTO supplier (number, name, city) VALUES (213,'Cannon', 'Atlanta'); INSERT INTO supplier (number, name, city) VALUES (33, 'Levi-Strauss', 'San Francisco'); INSERT INTO supplier (number, name, city) VALUES (89, 'Fisher-Price', 'Boston'); INSERT INTO supplier (number, name, city) VALUES (125, 'Playskool', 'Dallas'); INSERT INTO supplier (number, name, city) VALUES (42, 'Whitman''s', 'Denver'); INSERT INTO supplier (number, name, city) VALUES (15, 'White Stag', 'White Plains'); INSERT INTO supplier (number, name, city) VALUES (475, 'DEC', 'Amherst'); INSERT INTO supplier (number, name, city) VALUES (122, 'White Paper', 'Seattle'); INSERT INTO supplier (number, name, city) VALUES (440, 'Spooley', 'Paxton'); INSERT INTO supplier (number, name, city) VALUES (241, 'IBM', 'New York'); INSERT INTO supplier (number, name, city) VALUES (62, 'Data General', 'Atlanta'); INSERT INTO supplier (number, name, city) VALUES (5, 'Amdahl', 'San Diego'); INSERT INTO supplier (number, name, city) VALUES (20, 'Wormley', 'Hickville'); INSERT INTO supplier (number, name, city) VALUES (67, 'Edger', 'Salt Lake City'); INSERT INTO supplier (number, name, city) VALUES (999, 'A E Neumann', 'Madison'); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (26, 'Earrings', 14, 1000, 20, 199); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (118, 'Towels, Bath', 26, 250, 1000, 213); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (43, 'Maze', 49, 325, 200, 89); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (106, 'Clock Book', 49, 198, 150, 125); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (23, '1 lb Box', 10, 215, 100, 42); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (52, 'Jacket', 60, 3295, 300, 15); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (165, 'Jean', 65, 825, 500, 33); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (258, 'Shirt', 58, 650, 1200, 33); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (120, 'Twin Sheet',26, 800, 750, 213); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (301, 'Boy''s Jean Suit', 43, 1250, 500, 33); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (121, 'Queen Sheet', 26, 1375, 600, 213); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (101, 'Slacks', 63, 1600, 325, 15); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (115, 'Gold Ring', 14, 4995, 10, 199); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (25, '2 lb Box, Mix', 10, 450, 75, 42); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (119, 'Squeeze Ball', 49, 250, 400, 89); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (11, 'Wash Cloth', 1, 75, 575, 213); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (19, 'Bellbottoms', 43, 450, 600, 33); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES ( 21, 'ABC Blocks', 1, 198, 405, 125); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (107, 'The ''Feel'' Book', 35, 225, 225, 89); INSERT INTO item (number, name, dept, price, qoh, supplier) VALUES (127, 'Ski Jumpsuit', 65, 4350, 125, 15); INSERT INTO parts (number, name, color, weight, qoh) VALUES (1, 'central processor', 'pink', 10, 1); INSERT INTO parts (number, name, color, weight, qoh) VALUES (2, 'memory', 'gray', 20, 32); INSERT INTO parts (number, name, color, weight, qoh) VALUES (3, 'disk drive', 'black', 685, 2); INSERT INTO parts (number, name, color, weight, qoh) VALUES (4, 'tape drive', 'black', 450, 4); INSERT INTO parts (number, name, color, weight, qoh) VALUES (5, 'tapes', 'gray', 1, 250); INSERT INTO parts (number, name, color, weight, qoh) VALUES (6, 'line printer', 'yellow', 578, 3); INSERT INTO parts (number, name, color, weight, qoh) VALUES (7, 'l-p paper', 'white', 15, 95); INSERT INTO parts (number, name, color, weight, qoh) VALUES (8, 'terminals', 'blue', 19, 15); INSERT INTO parts (number, name, color, weight, qoh) VALUES (13, 'paper tape reader', 'black', 107, 0); INSERT INTO parts (number, name, color, weight, qoh) VALUES (14, 'paper tape punch', 'black', 147, 0); INSERT INTO parts (number, name, color, weight, qoh) VALUES (9, 'terminal paper', 'white', 2, 350); INSERT INTO parts (number, name, color, weight, qoh) VALUES (10, 'byte-soap', 'clear', 0, 143); INSERT INTO parts (number, name, color, weight, qoh) VALUES (11, 'card reader', 'gray', 327, 0); INSERT INTO parts (number, name, color, weight, qoh) VALUES (12, 'card punch', 'gray', 427, 0); INSERT INTO parts (number, name, color, weight, qoh) VALUES (114, 'card punch', 'white', 350, 0); -- heree INSERT INTO supply (supplier, part, shipdate, quan) VALUES (475, 1, '1993-12-31', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (475, 2, '1994-03-31', 32); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (475, 3, '1993-12-31', 2); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (475, 4, '1994-03-31', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (122, 7, '1995-02-01', 144); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (122, 7, '1995-02-02', 48); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (122, 9, '1995-02-01', 144); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (440, 6, '1994-10-10', 2); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (241, 4, '1993-12-31', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (62, 3, '1994-06-18', 3); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (475, 2, '1993-12-31', 32); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (475, 1, '1994-07-01', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (5, 4, '1994-11-15', 3); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (5, 4, '1995-01-22', 6); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (20, 5, '1995-01-10', 20); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (20, 5, '1995-01-11', 75); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (241, 1, '1995-06-01', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (241, 2, '1995-06-01', 32); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (241, 3, '1995-06-01', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (67, 4, '1995-07-01', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (999, 10, '1996-01-01', 144); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (241, 8, '1995-07-01', 1); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (241, 9, '1995-07-01', 144); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (89, 3, '1995-07-04', 1000); INSERT INTO supply (supplier, part, shipdate, quan) VALUES (89, 4, '1995-07-04', 1000); INSERT INTO debit (number, sdate, employee, account) VALUES (100581, '1995-01-15', 157, 10000000); INSERT INTO debit (number, sdate, employee, account) VALUES (100582, '1995-01-15', 1110, 14356540); INSERT INTO debit (number, sdate, employee, account) VALUES (100586, '1995-01-16', 35, 14096831); INSERT INTO debit (number, sdate, employee, account) VALUES (100592, '1995-01-17', 129, 10000000); INSERT INTO debit (number, sdate, employee, account) VALUES (100593, '1995-01-18', 13, 11652133); INSERT INTO debit (number, sdate, employee, account) VALUES (100594, '1995-01-18', 215, 12591815); INSERT INTO sale (debit, item, quantity) VALUES (100581, 118, 5); INSERT INTO sale (debit, item, quantity) VALUES (100581, 120, 1); INSERT INTO sale (debit, item, quantity) VALUES (100582, 26, 1); INSERT INTO sale (debit, item, quantity) VALUES (100586, 127, 3); INSERT INTO sale (debit, item, quantity) VALUES (100586, 106, 2); INSERT INTO sale (debit, item, quantity) VALUES (100592, 258, 1); INSERT INTO sale (debit, item, quantity) VALUES (100593, 23, 2); INSERT INTO sale (debit, item, quantity) VALUES (100594, 52, 1); --1 select * from parts p where p.qoh=0 --2 select E.name from employee E where 10000<=E.salary<=12000 --3 select E.name from employee E where E.birthyear > ANY (select E2.birthyear from employee E2) --4 select D.name,sum(I.qoh) from dept D , item I where I.price>800 and I.dept=D.number group by I.dept,D.name having 100<(select sum(qoh) from item I2 where I2.dept=I.dept and I2.price>800) --5 select E.name from employee E where SUBSTRING_INDEX(E.name,',',2) LIKE 'J%' and E.number in (select d.employee from debit d,sale s,item i where s.debit=d.number and s.item=i.number and i.name='Twin Sheet') --6 select p.name,p.weight from parts p , supplier s1, supply s2 where s1.name='IBM' and s1.number=s2.supplier and p.number=s2.part --7 select p.name,p.color from parts p where p.weight>all(select p2.weight from parts p2 where p2.name='card punch' and p2.color='gray') --8 select * from parts p where p.weight>=all(select p2.weight from parts p2) --9 select E2.name , avg(E1.salary) as average from employee E1 , employee E2 where E1.manager=E2.number group by E1.manager , E2.name having 0<(select count(*) from employee E3 where E3.manager=E1.manager and E3.salary>13000) --10 select s1.name,sum(s2.quan)as sum from supplier s1,supply s2,parts p where s1.number=s2.supplier and p.number=s2.part group by s1.number , s1.name --11 select s1.number , sum(s2.quan*p.weight)as total_sum from supplier s1,supply s2,parts p,city c where s1.number=s2.supplier and p.number=s2.part and s1.city=c.name and c.state='Mass' group by s1.number , s1.name --12 select s.name from supplier s,supply s1,supply s2,parts p1 ,parts p2 where s.number=s1.supplier and s.number=s2.supplier and p1.number=s1.part and p2.number=s2.part and (p1.name='tape drive' and p2.name='disk drive') --13 delimiter $$ CREATE TRIGGER after_manager_update after UPDATE ON dept FOR EACH ROW BEGIN IF OLD.manager <> NEW.manager THEN update employee SET employee.salary=employee.salary * (110/100) where employee.number=NEW.manager; END IF; END;$$ delimiter ; --14 delimiter $$ CREATE TRIGGER after_sale before insert ON sale FOR EACH row BEGIN IF new.quantity>(select i.qoh from item i where i.number=new.item) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT ='Invalid sale: then qoh of item is less than sale’s quantity'; END IF; END;$$ delimiter ; --15 delimiter $$ CREATE TRIGGER saletwo after insert ON sale FOR EACH row BEGIN update item SET item.qoh=item.qoh-NEW.quantity where NEW.item=item.number; END;$$ delimiter ; --16 CREATE VIEW viewone AS select s1.number,sum(s2.quan) from supplier s1, supply s2,parts p where s1.number=s2.supplier and s2.part=p.number and s2.shipdate<'1995-02-01' group by s1.number; select * from viewone --17 CREATE VIEW viewtwo AS select c.name,count(*) from dept d, store s, city c where d.store=s.number and s.city=c.name group by c.name; select * from viewtwo --18 CREATE VIEW viewthree AS select d.sdate,count(*) from debit d group by d.sdate; select * from viewthree
true
cea990127b8c77b5c89b9691d7fb4938390157d5
SQL
MichaelLiKwan/Alzheimer-Detection-Application
/sql/init.sql
UTF-8
4,495
3.328125
3
[]
no_license
CREATE DATABASE alzheimersDetectionProject; USE alzheimersDetectionProject; -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 27, 2020 at 05:53 AM -- Server version: 5.7.30 -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `alzheimersDetectionProject` -- -- -------------------------------------------------------- -- -- Table structure for table `caretakers` -- CREATE TABLE `caretakers` ( `caretaker_user` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `caretakers` -- INSERT INTO `caretakers` (`caretaker_user`) VALUES ('dorime'), ('michael'); -- -------------------------------------------------------- -- -- Table structure for table `caretaker_patient` -- CREATE TABLE `caretaker_patient` ( `caretaker_user` varchar(255) NOT NULL, `patient_user` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `patients` -- CREATE TABLE `patients` ( `patient_user` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `patients` -- INSERT INTO `patients` (`patient_user`) VALUES ('abc'), ('ladygaga'); -- -------------------------------------------------------- -- -- Table structure for table `reports` -- CREATE TABLE `reports` ( `caretaker_user` varchar(255) NOT NULL, `patient_user` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `alerts` -- CREATE TABLE `alerts` ( `caretaker_user` varchar(255) NOT NULL, `patient_user` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `trackers` -- CREATE TABLE `trackers` ( `patient_user` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `username` varchar(255) NOT NULL, `password` varchar(255) DEFAULT NULL, `firstName` varchar(255) DEFAULT NULL, `lastName` varchar(255) DEFAULT NULL, `phoneNumber` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `role` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `users` -- INSERT INTO `users` (`username`, `password`, `firstName`, `lastName`, `phoneNumber`, `email`, `role`) VALUES ('abc', '123', 'jin', 'loh', '012507850', 'abc.com', 'patient'), ('dorime', 'interimo', 'ameno', 'lantire', '666', 'adapare.com', 'caretaker'), ('ladygaga', 'ladygaga', 'lady', 'gaga', '12345', 'gaga.com', 'patient'), ('michael', 'angelo', 'satan', 'satan', '666', 'hellskitchen.com', 'caretaker'); -- -- Indexes for dumped tables -- -- -- Indexes for table `caretakers` -- ALTER TABLE `caretakers` ADD PRIMARY KEY (`caretaker_user`); -- -- Indexes for table `caretaker_patient` -- ALTER TABLE `caretaker_patient` ADD PRIMARY KEY (`caretaker_user`,`patient_user`), ADD KEY `patient_user` (`patient_user`); -- -- Indexes for table `patients` -- ALTER TABLE `patients` ADD PRIMARY KEY (`patient_user`); -- -- Indexes for table `reports` -- ALTER TABLE `reports` ADD PRIMARY KEY (`caretaker_user`,`patient_user`,`report_name`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`username`); -- -- Constraints for dumped tables -- -- -- Constraints for table `caretakers` -- ALTER TABLE `caretakers` ADD CONSTRAINT `caretakers_ibfk_1` FOREIGN KEY (`caretaker_user`) REFERENCES `users` (`username`); -- -- Constraints for table `caretaker_patient` -- ALTER TABLE `caretaker_patient` ADD CONSTRAINT `caretaker_patient_ibfk_1` FOREIGN KEY (`caretaker_user`) REFERENCES `caretakers` (`caretaker_user`), ADD CONSTRAINT `caretaker_patient_ibfk_2` FOREIGN KEY (`patient_user`) REFERENCES `patients` (`patient_user`); -- -- Constraints for table `patients` -- ALTER TABLE `patients` ADD CONSTRAINT `patients_ibfk_1` FOREIGN KEY (`patient_user`) REFERENCES `users` (`username`); -- -- Constraints for table `reports` -- ALTER TABLE `reports` ADD CONSTRAINT `reports_ibfk_1` FOREIGN KEY (`caretaker_user`,`patient_user`) REFERENCES `caretaker_patient` (`caretaker_user`, `patient_user`);
true
802dc0f2730695faebe5b615e4329b293ed532d8
SQL
ashikdinesh10/sql-bootcamp
/Instagram Clone/solutions/solution_7.sql
UTF-8
288
4.15625
4
[]
no_license
# find users who have liked every single photo on the site SELECT username, Count(*) AS num_likes FROM users INNER JOIN likes ON users.id = likes.user_id GROUP BY likes.user_id HAVING num_likes = (SELECT Count(*) FROM photos);
true
e9d629bab42f6adbbcae44ee5ef85440d050c379
SQL
antonibx/ITAcademy-Vue-M9-2
/BBDDmysql.sql
UTF-8
941
4.15625
4
[]
no_license
## EXERCICI 1 SELECT count(flightID) FROM flights; ## EXERCICI 2 SELECT origin, avg(ArrDelay) as "sortida", avg(DepDelay) as "arribada" FROM flights GROUP BY origin; ## EXERCICI 3 SELECT origin, colYear, colMonth, AVG(ArrDelay) FROM flights GROUP BY origin, colYear, colMonth ORDER BY origin, colYear, colMonth; ## EXERCICI 4 SELECT a.city, f.colYear, f.colMonth, AVG(f.ArrDelay) FROM usairports a, flights f WHERE f.origin = a.IATA GROUP BY origin, colYear, colMonth ORDER BY origin, colYear, colMonth; ## EXERCICI 5 SELECT UniqueCarrier, colYear, colMonth, SUM(cancelled) FROM flights GROUP BY UniqueCarrier, colYear, colMonth ORDER BY sum(cancelled) DESC; ## EXERCICI 6 SELECT TailNum, SUM(distance) FROM flights WHERE TailNum != "Null" GROUP BY TailNum ORDER BY SUM(distance) DESC LIMIT 10; ## EXERCICI 7 SELECT UniqueCarrier, AVG(ArrDelay) FROM flights GROUP BY UniqueCarrier HAVING AVG(ArrDelay) > 10 ORDER BY AVG(ArrDelay) DESC;
true
4a3632947b392341fe5b3fc3725b65fa284da28b
SQL
imsocxld/homework4
/table.sql
UTF-8
1,475
3.578125
4
[]
no_license
create table users( id serial primary key, name varchar(255), surname varchar(255), email varchar(255), work_id int ); create table works( id serial primary key , work_name varchar(255), status bool ); create table timings( id serial primary key, code varchar(255), track int, user_id int, work_id int ); insert into users (name, surname, email) values ('Yaroslav', 'Coldov', 'yaroslavcoldov@gmail.com'), ('Pavel','Skutin','pavelskutin@gmail.com'), ('Yuri','Rozental','yurirozental@gmail.com'), ('Anton','Sobolev','antonsobolev@gmail.com'), ('Kirill','Raze','kirillraze@gmail.com'), ('Kir','Cursedov','kircursedov@gmail.com'), ('Evan','Wheel','evanwheel@gmail.com'), ('Ken','Kaneki','kenkaneki@gmail.com'), ('Naruto','Uzumaki','narutouzumaki@gmail.com'), ('Yagami','Light','yagamilight@gmail.com'); select id, name, surname from users where name = 'Yaroslav' and id >= 5 limit 1; update users set name = 'Akashi' and surname = 'Seijuro' and email = 'akashiseijuro@gmail.com' where id = 6; select email from users where id in (1,3,5,7,9); delete from users where id = 7; insert into users (name, surname, email) values ('Kuroko', 'Tetsuya', 'kurokotetsuya@gmail.cru'); select name, surname where (id <= 2 or id >= 6) and name = 'Akashi';
true
d73a1919fc8fbe3d9265367b5557f3c8eeb586a3
SQL
shruti-goswami/ekartApp
/ekart/src/main/resources/sql/schema.sql
UTF-8
285
2.59375
3
[]
no_license
DROP TABLE IF EXISTS account; DROP TABLE IF EXISTS wishlist; create table account( name varchar(20), password varchar(20), email varchar(30) primary key ); create table wishlist( product_id varchar(5), user_email varchar(30) , primary key(product_id,user_email) );
true
9b79663783f93c83adb56e14f936065e093a3001
SQL
carlosrmfernandes/SIARVE-Sistema-de-Agendamento-de-Renova-o-de-Visto-de-Estrangeiros
/db/comandos_sql.sql
ISO-8859-1
788
3
3
[]
no_license
CREATE TABLE produtos( codigo integer not null, descricao varchar(30) not null ) CREATE TABLE cadastroestrangeiro ( numpassaporte varchar(30) not null primary key, celular varchar(60) not null, nome varchar(60) not null, endereco varchar(60) not null, email varchar(60) not null, data date, estadocivil varchar(60) not null, funcao varchar(60) not null, cpf varchar(60) not null, localfuncao varchar(60) not null, estado varchar(60) not null, sexo varchar(60) not null ); insert into produtos(codigo, descricao) values(1,'arroz') ; insert into produtos(codigo, descricao) values(2,'feijo') ; insert into produtos(codigo, descricao) values(3,'macarro') ; commit ; select * from produtos ; update produtos set descricao = 'Arroz pr-cozido' where codigo = 1 commit
true
7ecdfd97e0f1043e3a87c7442b3cd675a50def29
SQL
zohaibalvi/Mp3-Cloud
/db/sql.sql
UTF-8
2,713
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 21, 2020 at 06:53 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 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: `mp3` -- -- -------------------------------------------------------- -- -- Table structure for table `upload_songs` -- CREATE TABLE `upload_songs` ( `id` int(11) NOT NULL, `song_title` varchar(100) NOT NULL, `file_name` varchar(100) NOT NULL, `file_format` varchar(100) NOT NULL, `is_active` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `upload_songs` -- INSERT INTO `upload_songs` (`id`, `song_title`, `file_name`, `file_format`, `is_active`, `created_at`) VALUES (1, 'sas', 'sasa', 'sasa', 0, '2020-09-21 16:52:12'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `email` varchar(100) NOT NULL, `name` varchar(100) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `phone_number` varchar(100) NOT NULL, `gender` varchar(100) NOT NULL, `is_active` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `email`, `name`, `username`, `password`, `phone_number`, `gender`, `is_active`, `created_at`) VALUES (1, 'admin@admin.com', '', 'fdai6506', 'd8578edf8458ce06fbc5bb76a58c5ca4', '', '', 0, '2020-09-21 16:13:02'); -- -- Indexes for dumped tables -- -- -- Indexes for table `upload_songs` -- ALTER TABLE `upload_songs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `upload_songs` -- ALTER TABLE `upload_songs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
3baaeca3d0cb51f9a41d59dfc9873012891bf049
SQL
iankressin/aplicacao_db
/12-05/atividade_3.sql
UTF-8
4,806
3.65625
4
[]
no_license
-- Questão 1 create table cliente ( cpf integer primary key, nome varchar(60), nascimento date ) create table modelo ( codigo serial primary key, descricao varchar(40) ) create table veiculo ( placa varchar(8) primary key, modelo_codigo integer, cliente_cpf integer, cor varchar(20), constraint fk_modelo foreign key (modelo_codigo) references modelo(codigo), constraint fk_cpf foreign key (cliente_cpf) references cliente(cpf) ) create table patio ( numero serial primary key, endereco varchar(40), capacidade integer ) create table estaciona ( codigo serial primary key, patio_numero integer, veiculo_placa varchar(8), dataEntrada varchar(10), dataSaida varchar(10), horaEntrada varchar(10), horaSaida varchar(10), constraint fk_veiculo_placa foreign key (veiculo_placa) veiculo (placa), constraint fk_patio_numero foreign key (patio_numero) veiculo (numero) ) -- Questão 2 insert into cliente (cpf, nome, nascimento) values(010101, 'Jose', '1995-12-24') insert into cliente (cpf, nome, nascimento) values(010102, 'Maria', '1996-11-23') insert into cliente (cpf, nome, nascimento) values(010103, 'Joao', '1997-10-25') insert into cliente (cpf, nome, nascimento) values(010104, 'Marta', '1998-09-26') insert into cliente (cpf, nome, nascimento) values(010105, 'Ricardo', '1999-08-27') insert into modelo (modelo, descricao) values ('d3' 'pelicula') insert into modelo (modelo, descricao) values ('gol', 'completo') insert into modelo (modelo, descricao) values ('500', '2 portas') insert into modelo (modelo, descricao) values ('palio', '4 portas') insert into modelo (modelo, descricao) values ('lancer', 'adesivos') insert into veiculo (placa, modelo_codigo, cliente_cpf, cor) values ('mak-1516', 1, 010101, 'vermelho') insert into veiculo (placa, modelo_codigo, cliente_cpf, cor) values ('abc-1222', 2, 010102, 'branco') insert into veiculo (placa, modelo_codigo, cliente_cpf, cor) values ('cad-1213', 3, 010103, 'azul') insert into veiculo (placa, modelo_codigo, cliente_cpf, cor) values ('pic-4000', 4, 010104, 'prata') insert into veiculo (placa, modelo_codigo, cliente_cpf, cor) values ('knc-1231', 5, 010105, 'preto') insert into patio (endereco, capacidade) values ('Rua Rio Branco, 23', 40) insert into patio (endereco, capacidade) values ('Avenida Santo Amaro, 935', 44) insert into patio (endereco, capacidade) values ('Rua Bosque, 1274', 200) insert into patio (endereco, capacidade) values ('Avenida Correio Sul, 56', 140) insert into patio (endereco, capacidade) values ('Rua Marcio Americo, 157', 50) insert into estaciona (patio_numero, veiculo_placa, dataEntrada, dataSaida, horaEntrada, horaSaida) values (1, 'mak-1517', '2020-01-10', '2020-01-10', '20:00', '21:30') insert into estaciona (patio_numero, veiculo_placa, dataEntrada, dataSaida, horaEntrada, horaSaida) values(2, 'abc-1222', '2020-04-11', '2020-04-12', '12:00', '14:30') insert into estaciona (patio_numero, veiculo_placa, dataEntrada, dataSaida, horaEntrada, horaSaida) values (3, 'cad-1213', '2020-03-04', '2020-03-04', '09:00', '21:30') insert into estaciona (patio_numero, veiculo_placa, dataEntrada, dataSaida, horaEntrada, horaSaida) values (4, 'pic-4000', '2020-05-12', '2020-05-12', '20:00', '21:30') insert into estaciona (patio_numero, veiculo_placa, dataEntrada, dataSaida, horaEntrada, horaSaida) values (5, 'knc-1231', '2020-01-10', '2020-01-10', '20:00', '21:30') -- Questão 3 -- A select placa, cliente_cpf from veiculo ve inner join cliente cl on ve.cliente_cpf = cl.cpf -- B select cl.cpf cliente, cl.nome cliente, v.placa veiculo from veiculo v join cliente cl on v.cliente_cpf = cl.cpf where placa='mak-1517' -- C select v.placa veiculo, v.cor veiculo from estaciona e inner join veiculo v on e.veiculo_placa = v.placa where codigo=1 -- D select pa.endereco patio, e.dataEntrada estaciona, e.dataSaida estaciona, e.veiculo_placa estaciona from estaciona e join patio pa on e.patio_numero = pa.numero where veiculo_placa = 'abc-1222' order by dataEntrada -- E select cl.nome cliente from modelo mo join veiculo v on v.modelo_codigo = mo.codigo join cliente cl on v.cliente_cpf = cl.cpf where modelo = 'palio' order by cl.nome -- F select v.placa veiculo, e.horaEntrada estaciona, e.horaSaida estaciona from veiculo v join estaciona e on v.placa = e.veiculo_placa where cor = 'azul' -- G select * from estaciona e join veiculo v on e.veiculo_placa = v.placa where dataentrada like '2020%' and veiculo_placa = 'mak-1517' -- H select cl.nome cliente, cl.cpf from estaciona e join veiculo v on v.placa = e.veiculo_placa join cliente cl on v.cliente_cpf = cl.cpf where codigo = 3 -- I select v.placa, cl.nome, mo.descricao, mo.modelo from veiculo v join cliente cl on v.cliente_cpf = cl.cpf join modelo mo on v.modelo_codigo = mo.codigo
true
afbde1ffce75fb5d7d92184d806fca1f0836bea7
SQL
bhushan-patil-12/UMS
/assets/database/ums.sql
UTF-8
8,155
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 20, 2021 at 10:12 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 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: `ums` -- -- -------------------------------------------------------- -- -- Table structure for table `college` -- CREATE TABLE `college` ( `college_id` int(11) NOT NULL, `college_name` varchar(50) NOT NULL, `college_location` varchar(30) NOT NULL, `college_phone` bigint(20) NOT NULL, `college_univ_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `course` -- CREATE TABLE `course` ( `course_id` int(11) NOT NULL, `course_name` varchar(20) NOT NULL, `course_dept_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `course_faculty` -- CREATE TABLE `course_faculty` ( `faculty_id` int(11) DEFAULT NULL, `course_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `department` -- CREATE TABLE `department` ( `dept_id` int(11) NOT NULL, `dept_name` varchar(50) NOT NULL, `dept_college_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `department_faculty` -- CREATE TABLE `department_faculty` ( `department_id` int(11) DEFAULT NULL, `faculty_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `faculty` -- CREATE TABLE `faculty` ( `faculty_id` int(11) NOT NULL, `faculty_fname` varchar(30) NOT NULL, `faculty_lname` varchar(30) NOT NULL, `faculty_phone` bigint(20) NOT NULL, `faculty_gender` varchar(10) NOT NULL, `faculty_email` varchar(50) NOT NULL, `faculty_salary` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `research` -- CREATE TABLE `research` ( `project_id` int(11) NOT NULL, `project_name` varchar(30) NOT NULL, `project_area` varchar(30) NOT NULL, `project_faculty_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `student` -- CREATE TABLE `student` ( `stud_id` int(11) NOT NULL, `stud_fname` varchar(20) NOT NULL, `stud_lname` varchar(20) NOT NULL, `stud_gender` varchar(20) NOT NULL, `stud_address` varchar(30) DEFAULT NULL, `stud_phone` bigint(20) NOT NULL, `stud_email` varchar(50) NOT NULL, `stud_dob` date NOT NULL, `stud_dept_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `student_course` -- CREATE TABLE `student_course` ( `stud_id` int(11) DEFAULT NULL, `course_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `university` -- CREATE TABLE `university` ( `univ_id` int(11) NOT NULL, `univ_name` varchar(50) NOT NULL, `univ_rank` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `university` -- INSERT INTO `university` (`univ_id`, `univ_name`, `univ_rank`) VALUES (1001, 'UVW University', 20); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `name` varchar(20) NOT NULL, `dob` date NOT NULL, `phone` bigint(20) NOT NULL, `email` varchar(30) NOT NULL, `username` varchar(30) NOT NULL, `password` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users` -- INSERT INTO `users` (`name`, `dob`, `phone`, `email`, `username`, `password`) VALUES ('Admin', '2000-01-01', 98876757, 'admin@admin.com', 'Admin', 'Admin'); -- -- Indexes for dumped tables -- -- -- Indexes for table `college` -- ALTER TABLE `college` ADD PRIMARY KEY (`college_id`), ADD KEY `college_univ_id` (`college_univ_id`); -- -- Indexes for table `course` -- ALTER TABLE `course` ADD PRIMARY KEY (`course_id`), ADD KEY `course_dept_id` (`course_dept_id`); -- -- Indexes for table `course_faculty` -- ALTER TABLE `course_faculty` ADD KEY `faculty_id` (`faculty_id`), ADD KEY `course_id` (`course_id`); -- -- Indexes for table `department` -- ALTER TABLE `department` ADD PRIMARY KEY (`dept_id`), ADD KEY `dept_college_id` (`dept_college_id`); -- -- Indexes for table `department_faculty` -- ALTER TABLE `department_faculty` ADD KEY `department_id` (`department_id`), ADD KEY `faculty_id` (`faculty_id`); -- -- Indexes for table `faculty` -- ALTER TABLE `faculty` ADD PRIMARY KEY (`faculty_id`); -- -- Indexes for table `research` -- ALTER TABLE `research` ADD PRIMARY KEY (`project_id`), ADD KEY `project_faculty_id` (`project_faculty_id`); -- -- Indexes for table `student` -- ALTER TABLE `student` ADD PRIMARY KEY (`stud_id`), ADD KEY `stud_dept_id` (`stud_dept_id`); -- -- Indexes for table `student_course` -- ALTER TABLE `student_course` ADD KEY `stud_id` (`stud_id`), ADD KEY `course_id` (`course_id`); -- -- Indexes for table `university` -- ALTER TABLE `university` ADD PRIMARY KEY (`univ_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`email`); -- -- Constraints for dumped tables -- -- -- Constraints for table `college` -- ALTER TABLE `college` ADD CONSTRAINT `college_ibfk_1` FOREIGN KEY (`college_univ_id`) REFERENCES `university` (`univ_id`) ON DELETE CASCADE; -- -- Constraints for table `course` -- ALTER TABLE `course` ADD CONSTRAINT `course_ibfk_1` FOREIGN KEY (`course_dept_id`) REFERENCES `department` (`dept_id`) ON DELETE CASCADE; -- -- Constraints for table `course_faculty` -- ALTER TABLE `course_faculty` ADD CONSTRAINT `course_faculty_ibfk_1` FOREIGN KEY (`faculty_id`) REFERENCES `faculty` (`faculty_id`) ON DELETE CASCADE, ADD CONSTRAINT `course_faculty_ibfk_2` FOREIGN KEY (`course_id`) REFERENCES `course` (`course_id`) ON DELETE CASCADE; -- -- Constraints for table `department` -- ALTER TABLE `department` ADD CONSTRAINT `department_ibfk_1` FOREIGN KEY (`dept_college_id`) REFERENCES `college` (`college_id`) ON DELETE CASCADE; -- -- Constraints for table `department_faculty` -- ALTER TABLE `department_faculty` ADD CONSTRAINT `department_faculty_ibfk_1` FOREIGN KEY (`department_id`) REFERENCES `department` (`dept_id`) ON DELETE CASCADE, ADD CONSTRAINT `department_faculty_ibfk_2` FOREIGN KEY (`faculty_id`) REFERENCES `faculty` (`faculty_id`) ON DELETE CASCADE; -- -- Constraints for table `research` -- ALTER TABLE `research` ADD CONSTRAINT `research_ibfk_1` FOREIGN KEY (`project_faculty_id`) REFERENCES `faculty` (`faculty_id`) ON DELETE CASCADE; -- -- Constraints for table `student` -- ALTER TABLE `student` ADD CONSTRAINT `student_ibfk_1` FOREIGN KEY (`stud_dept_id`) REFERENCES `department` (`dept_id`) ON DELETE CASCADE; -- -- Constraints for table `student_course` -- ALTER TABLE `student_course` ADD CONSTRAINT `student_course_ibfk_1` FOREIGN KEY (`stud_id`) REFERENCES `student` (`stud_id`) ON DELETE CASCADE, ADD CONSTRAINT `student_course_ibfk_2` FOREIGN KEY (`course_id`) REFERENCES `course` (`course_id`) 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 */;
true
a77509763e34d4dbf625db445906a89118f6ef9c
SQL
SynisterWallace/Final-Project-PBO-Liga-Sepak-Bola
/Database/Per Tabel/t_pemain.sql
UTF-8
1,575
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2018 at 03:57 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 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: `db_liga` -- -- -------------------------------------------------------- -- -- Table structure for table `t_pemain` -- CREATE TABLE `t_pemain` ( `idpemain` int(10) NOT NULL, `name` varchar(50) NOT NULL, `age` int(11) NOT NULL, `idclub` int(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `t_pemain` -- INSERT INTO `t_pemain` (`idpemain`, `name`, `age`, `idclub`) VALUES (1, 'M Natshir', 30, 1), (2, 'Igbonefo', 33, 1), (3, 'Ardi Idrus', 26, 1), (4, 'Atep', 34, 1), (5, 'Ezechiel', 29, 1), (6, 'Bauman', 27, 1), (7, 'Hariono', 35, 1), (8, 'Supardi Natsir', 35, 1), (9, 'Kim Jeffrey', 30, 1), (10, 'Wildan', 30, 1), (11, 'Febri Hariadi', 23, 1), (12, 'Toni Sucipto', 36, 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `t_pemain` -- ALTER TABLE `t_pemain` ADD PRIMARY KEY (`idpemain`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
8f180168a708d233c19f091373ac0535599e56f3
SQL
neen-chanissara/SQL
/President Practice 51-60.sql
UTF-8
1,661
4.0625
4
[]
no_license
-- 51. Shows the number of administrative periods and the number of vice-presidents of the period in which there are more than 1 vice president. select admin_nr,count(pres_name) from admin_pr_vp group by admin_nr having count(vice_pres_name) > 1 -- 52. Show the governing era with more than 1 president. select admin_nr ,count(pres_name) from administration group by admin_nr having count(pres_name) > 1 -- 53. Lists the names of the presidents and the year they were presidents for the first time. select pres_name,min(year_inaugurated) from administration group by pres_name -- 54. Shows the number of hobbies of each type, and shows the number of presidents how are interested in. select hobby , count(hobby) from pres_hobby group by hobby -- 55. Show details of which president has worked in the White House for more than 6 years. select * from president where yrs_serv > 6   -- 56. Shows the number of participating states as a member of the United States each year. select year_entered , count(year_entered) from state group by year_entered -- 57. How many new states joined the United States in 1776? select count(year_entered) from state where year_entered = 1776 -- 58. Shows the average number of hobbies of the president. SELECT AVG(c.hob) FROM ( SELECT COUNT(HOBBY)as hob FROM PRES_HOBBY GROUP BY HOBBY ) as c -- 59. Show names of any president who has more than 2 children. select pres_name,sum(nr_children) from pres_marriage where nr_children > 2 group by pres_name -- 60. Show details of the marriage of any president who have more than 2 children select * from pres_marriage where nr_children > 2
true
c0687081d5540b9cbd146c94184c6fb4207d9ac6
SQL
ajeet85/larvel_5
/lara.sql
UTF-8
4,878
2.734375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 04, 2016 at 10:24 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `lara` -- -- -------------------------------------------------------- -- -- Table structure for table `books` -- CREATE TABLE IF NOT EXISTS `books` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `cat_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `author` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `image` varchar(50) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=10 ; -- -- Dumping data for table `books` -- INSERT INTO `books` (`id`, `created_at`, `updated_at`, `name`, `cat_id`, `author`, `image`) VALUES (1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'sdsdsd', '1', 'test', 'sdsdsd'), (2, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'sdsdsd', '2', 'sdsdsdA', 'sdsdsd'), (3, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'sdsdsd', '3', 'sdsdsd', 'sdsdsd'), (5, '2016-02-19 04:45:44', '2016-02-19 04:47:56', 'ajeet', '', 'jaiswal', ''), (8, '2016-02-19 05:35:26', '2016-02-19 05:35:26', 'ajeet', '', 'author', ''); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE IF NOT EXISTS `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`migration`, `batch`) VALUES ('2014_10_12_000000_create_users_table', 1), ('2014_10_12_100000_create_password_resets_table', 1), ('2016_02_11_073016_add_votes_to_users_table', 2), ('2016_02_18_115422_create_books_table', 3), ('2016_02_18_115425_create_books_table', 4); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `vote` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `type`, `vote`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'R', NULL, 'test', 'a@gmail.com', 'pass@123', 'test', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (2, 'R', NULL, 'ajeet', 'jeet.super@gmail.com', '$2y$10$RDfQ02x1O4bQsbjAgHbNAOm85/j9mnuaBkgKukM5BpNP8FqMoOXoC', '2dxnHnTCd3jFC4Mw8UJ9BfLTSpSqjK0mnl7iAw2CRWe9f1lpPIKqh9Zw5h7s', '2016-02-11 04:21:17', '2016-02-11 04:22:04'), (3, 'A', NULL, 'ajeet jaiswal', 'jeet.super1@gmail.com', '$2y$10$21.Fr6wogIUYKPkPVcSn7uNSTJVB1IPIUFDE851b9XFebgksJoHWS', 'pBcRVs6CsmmxZ9geyfQvGIQZB7Z56wXCNBetN9QQXFmWlErDzFfoIzMyhcfY', '2016-02-15 02:17:32', '2016-02-22 05:30:57'), (4, '', NULL, 'ajeet85', 'jeet.super11@gmail.com', '$2y$10$MVXutSGPI2AmLcWG8dqfR.pQFn7imcVzDonKtmAwe53mecib4MkNK', 'iQo3DsSYR8p8UWEDuhWE0D2RTwGs7mCrVbRLLsrRrWxioHDnlqhY2FNqcY0V', '2016-02-22 04:32:10', '2016-02-22 05:40:32'), (5, '', NULL, 'sds', 'aj@gmail.com', '$2y$10$nBzBt9y9Z3cbYfRF1BGeoucMH3XI0Y.4ZZhsvUl9N0N6/J3xsOuVC', 'nQciTGFkqOJT5OAe9VjMXmT54qK6wjUd15WTEudmgLairW15oWJ1P3FwMO3x', '2016-03-04 01:41:37', '2016-03-04 01:51:11'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
0c776349d115eae6cc76003791c2d0a87f49ed9e
SQL
TasniaHeya/course-machine-learning-chikonguniya
/Data from Paho/sql/2017/chikonguniya.sql
UTF-8
213,189
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 01, 2018 at 09:46 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 5.6.33 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: `chikonguniya` -- -- -------------------------------------------------------- -- -- Table structure for table `filteredmaster2017` -- CREATE TABLE `filteredmaster2017` ( `Country/Territory` varchar(33) DEFAULT NULL, `Epidemiological Weeks` int(2) DEFAULT NULL, `Suspected` varchar(7) DEFAULT NULL, `Confirmed` varchar(7) DEFAULT NULL, `Imported cases` int(3) DEFAULT NULL, `Incidence Ratec` decimal(5,2) DEFAULT NULL, `Deaths` int(3) DEFAULT NULL, `Populatione X 1000` varchar(9) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `filteredmaster2017` -- INSERT INTO `filteredmaster2017` (`Country/Territory`, `Epidemiological Weeks`, `Suspected`, `Confirmed`, `Imported cases`, `Incidence Ratec`, `Deaths`, `Populatione X 1000`) VALUES ('El Salvador', 37, '449', '0', 0, '7.28', 0, '6167'), ('Colombia', 37, '883', '23', 0, '1.85', 0, '49067'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31925'), ('El Salvador', 36, '437', '0', 0, '7.09', 0, '6167'), ('Colombia', 36, '867', '23', 0, '1.81', 0, '49067'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31925'), ('El Salvador', 35, '424', '0', 0, '6.88', 0, '6167'), ('Colombia', 35, '849', '23', 0, '1.78', 0, '49067'), ('Venezuela', 31, '215', '26', 0, '0.75', 0, '31925'), ('El Salvador', 34, '407', '0', 0, '6.60', 0, '6167'), ('Colombia', 34, '852', '6', 0, '1.75', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 33, '392', '0', 0, '6.36', 0, '6167'), ('Colombia', 32, '791', '6', 0, '1.62', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 41, '497', '0', 0, '8.06', 0, '6167'), ('Colombia', 41, '952', '29', 0, '2.00', 0, '49067'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31925'), ('El Salvador', 40, '486', '0', 0, '7.88', 0, '6167'), ('Colombia', 40, '940', '26', 0, '1.97', 0, '49067'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31925'), ('El Salvador', 39, '473', '0', 0, '7.67', 0, '6167'), ('Colombia', 39, '923', '26', 0, '1.93', 0, '49067'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31925'), ('El Salvador', 38, '461', '0', 0, '7.48', 0, '6167'), ('Colombia', 38, '900', '25', 0, '1.89', 0, '49067'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31925'), ('El Salvador', 44, '528', '0', 0, '8.56', 0, '6167'), ('Colombia', 44, '986', '39', 0, '2.09', 0, '49067'), ('Venezuela', 43, '297', '39', 0, '1.05', 0, '31925'), ('El Salvador', 43, '517', '0', 0, '8.38', 0, '6167'), ('Colombia', 43, '976', '29', 0, '2.05', 0, '49067'), ('Venezuela', 41, '280', '32', 0, '0.98', 0, '31925'), ('El Salvador', 42, '511', '0', 0, '8.29', 0, '6167'), ('Colombia', 42, '966', '29', 0, '2.03', 0, '49067'), ('Venezuela', 41, '280', '32', 0, '0.98', 0, '31925'), ('El Salvador', 19, '223', '0', 0, '3.62', 0, '6167'), ('Colombia', 19, '545', '8', 0, '1.13', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 17, '202', '0', 0, '3.28', 0, '6167'), ('Colombia', 17, '498', '6', 0, '1.03', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 18, '215', '0', 0, '3.49', 0, '6167'), ('Colombia', 18, '522', '7', 0, '1.08', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 16, '193', '0', 0, '3.13', 0, '6167'), ('Colombia', 16, '462', '7', 0, '0.96', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 11, '139', '0', 0, '2.25', 0, '6167'), ('Colombia', 11, '353', '5', 0, '0.73', 0, '49067'), ('Venezuela', 11, '64', '4', 0, '0.21', 0, '31925'), ('El Salvador', 29, '365', '0', 0, '5.92', 0, '6167'), ('Colombia', 29, '743', '4', 0, '1.52', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 29, '365', '0', 0, '5.92', 0, '6167'), ('Colombia', 30, '755', '4', 0, '1.55', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 31, '381', '0', 0, '6.18', 0, '6167'), ('Colombia', 31, '773', '4', 0, '1.58', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 12, '149', '0', 0, '2.42', 0, '6167'), ('Colombia', 12, '365', '5', 0, '0.75', 0, '49067'), ('Venezuela', 12, '73', '6', 0, '0.25', 0, '31925'), ('El Salvador', 13, '163', '0', 0, '2.64', 0, '6167'), ('Colombia', 13, '390', '6', 0, '0.81', 0, '49067'), ('Venezuela', 12, '73', '6', 0, '0.25', 0, '31925'), ('El Salvador', 13, '163', '0', 0, '2.64', 0, '6167'), ('Colombia', 14, '417', '6', 0, '0.86', 0, '49067'), ('Venezuela', 12, '73', '6', 0, '0.25', 0, '31925'), ('El Salvador', 49, '561', '0', 0, '9.10', 0, '6167'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31925'), ('El Salvador', 28, '356', '0', 0, '5.77', 0, '6167'), ('Colombia', 28, '728', '5', 0, '1.49', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 24, '308', '0', 0, '4.99', 0, '6167'), ('Colombia', 24, '637', '7', 0, '1.31', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 15, '184', '0', 0, '2.98', 0, '6167'), ('Colombia', 14, '431', '7', 0, '0.89', 0, '49067'), ('Venezuela', 13, '74', '6', 0, '0.25', 0, '31925'), ('El Salvador', 32, '386', '0', 0, '6.26', 0, '6167'), ('Colombia', 32, '791', '6', 0, '1.62', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 46, '542', '0', 0, '8.79', 0, '6167'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31925'), ('El Salvador', 48, '554', '0', 0, '8.98', 0, '6167'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31925'), ('El Salvador', 6, '59', '0', 0, '0.96', 0, '6167'), ('Colombia', 6, '203', '2', 0, '0.42', 0, '49067'), ('Venezuela', 5, '29', '0', 0, '0.09', 0, '31925'), ('El Salvador', 47, '548', '0', 0, '8.89', 0, '6167'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31925'), ('El Salvador', 3, '26', '0', 0, '0.42', 0, '6167'), ('Colombia', 3, '104', '2', 0, '0.22', 0, '49067'), ('Venezuela', 2, '11', '0', 0, '0.03', 0, '31925'), ('Bermudag', 24, '3', '0', 0, '4.20', 0, '71'), ('Dominican Republic', 30, '112', '0', 0, '1.05', 0, '10649'), ('French Guiana', 23, '805', '18', 0, '298.19', 0, '276'), ('Guadaloupe#', 16, '32', '2', 0, '7.22', 0, '471'), ('Haitig', 16, '2', '1', 0, '0.03', 0, '10848'), ('Puerto Ricof', 50, '0', '177', 0, '4.81', 0, '3681'), ('Saint Barthelemy#', 16, '0', '0', 0, '0.00', 0, '9'), ('Peru', 50, '133', '124', 1, '0.82', 0, '31374'), ('Chile', 50, '0', '0', 4, '0.00', 0, '18132'), ('Paraguay', 50, '880', '38', 0, '13.65', 0, '6725'), ('Anguilla g', 24, '9', '1', 0, '58.82', 0, '17'), ('Antigua and Barbuda g', 24, '38', '2', 0, '42.55', 0, '94'), ('Aruba g', 47, '929', '8', 0, '821.93', 0, '114'), ('Bahamas g', 20, '75', '1', 0, '19.34', 0, '393'), ('Barbados g', 20, '86', '0', 0, '29.55', 0, '291'), ('Cayman Islandsg', 24, '48', '0', 0, '84.21', 0, '57'), ('Dominicag', 24, '269', '2', 0, '366.22', 0, '74'), ('Grenadag', 20, '103', '0', 0, '92.79', 0, '111'), ('Guyanag', 16, '149', '0', 0, '19.33', 0, '771'), ('Jamaicag', 24, '204', '1', 0, '7.31', 0, '2803'), ('Montserrat g', 24, '5', '0', 0, '100.00', 0, '5'), ('Saint Luciag', 24, '114', '0', 0, '69.51', 0, '164'), ('Saint Vincent and the Grenadinesg', 24, '154', '1', 0, '151.96', 0, '102'), ('Sint Maarten (Dutch part)g', 8, '12', '0', 0, '29.27', 0, '41'), ('Turks and Caicos Islandsg', 24, '22', '0', 0, '43.14', 0, '51'), ('Virgin Islands (UK)g', 24, '2', '9', 0, '32.35', 0, '34'), ('El Salvador', 3, '26', '0', 0, '0.42', 0, '6146'), ('Colombia', 2, '65', '2', 0, '0.14', 0, '48654'), ('Venezuela', 2, '11', '0', 0, '0.03', 0, '31519'), ('El Salvador', 27, '345', '0', 0, '5.59', 0, '6167'), ('Colombia', 27, '705', '5', 0, '1.45', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 7, '77', '0', 0, '1.25', 0, '6167'), ('Colombia', 7, '247', '2', 0, '0.51', 0, '49067'), ('Venezuela', 5, '29', '0', 0, '0.09', 0, '31925'), ('El Salvador', 4, '39', '0', 0, '0.63', 0, '6167'), ('Colombia', 4, '135', '2', 0, '0.28', 0, '49067'), ('Venezuela', 4, '23', '0', 0, '0.07', 0, '31925'), ('El Salvador', 5, '47', '0', 0, '0.76', 0, '6167'), ('Colombia', 5, '169', '2', 0, '0.35', 0, '49067'), ('Venezuela', 5, '29', '0', 0, '0.09', 0, '31925'), ('Bermudag', 24, '3', '0', 0, '4.20', 0, '71'), ('Dominican Republic', 30, '112', '0', 0, '1.05', 0, '10649'), ('French Guiana', 23, '805', '18', 0, '298.19', 0, '276'), ('Guadaloupe#', 16, '32', '2', 0, '7.22', 0, '471'), ('Haitig', 16, '2', '1', 0, '0.03', 0, '10848'), ('Puerto Ricof', 52, '0', '178', 0, '4.84', 0, '3681'), ('Saint Barthelemy#', 16, '0', '0', 0, '0.00', 0, '9'), ('Peru', 52, '141', '131', 1, '0.87', 0, '31374'), ('Chile', 50, '0', '0', 4, '0.00', 0, '18132'), ('Paraguay', 51, '881', '38', 0, '13.67', 0, '6725'), ('Anguilla g', 24, '9', '1', 0, '58.82', 0, '17'), ('Antigua and Barbuda g', 24, '38', '2', 0, '42.55', 0, '94'), ('Aruba g', 47, '929', '8', 0, '821.93', 0, '114'), ('Bahamas g', 20, '75', '1', 0, '19.34', 0, '393'), ('Barbados g', 20, '86', '0', 0, '29.55', 0, '291'), ('Cayman Islandsg', 24, '48', '0', 0, '84.21', 0, '57'), ('Dominicag', 24, '269', '2', 0, '366.22', 0, '74'), ('Grenadag', 20, '103', '0', 0, '92.79', 0, '111'), ('Guyanag', 16, '149', '0', 0, '19.33', 0, '771'), ('Jamaicag', 24, '204', '1', 0, '7.31', 0, '2803'), ('Montserrat g', 24, '5', '0', 0, '100.00', 0, '5'), ('Saint Luciag', 24, '114', '0', 0, '69.51', 0, '164'), ('Saint Vincent and the Grenadinesg', 24, '154', '1', 0, '151.96', 0, '102'), ('Sint Maarten (Dutch part)h', 52, '12', '2', 0, '34.15', 0, '41'), ('Turks and Caicos Islandsg', 24, '22', '0', 0, '43.14', 0, '51'), ('Virgin Islands (UK)g', 24, '2', '9', 0, '32.35', 0, '34'), ('El Salvador', 1, '5', '0', 0, '0.08', 0, '6146'), ('Colombia', 1, '20', '0', 0, '0.04', 0, '48654'), ('El Salvador', 25, '322', '0', 0, '5.22', 0, '6167'), ('Colombia', 25, '651', '7', 0, '1.34', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 26, '330', '0', 0, '5.35', 0, '6167'), ('Colombia', 26, '674', '6', 0, '1.39', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 11, '139', '0', 0, '2.25', 0, '6167'), ('Colombia', 11, '353', '5', 0, '0.73', 0, '49067'), ('Venezuela', 11, '64', '4', 0, '0.21', 0, '31925'), ('El Salvador', 10, '123', '0', 0, '1.99', 0, '6167'), ('Colombia', 10, '323', '5', 0, '0.67', 0, '49067'), ('Venezuela', 8, '39', '4', 0, '0.13', 0, '31925'), ('El Salvador', 20, '238', '0', 0, '3.86', 0, '6167'), ('Colombia', 20, '570', '8', 0, '1.18', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 8, '88', '0', 0, '1.43', 0, '6167'), ('Colombia', 8, '275', '4', 0, '0.57', 0, '49067'), ('Venezuela', 8, '39', '4', 0, '0.13', 0, '31925'), ('El Salvador', 21, '253', '0', 0, '4.10', 0, '6167'), ('Colombia', 21, '586', '8', 0, '1.21', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 21, '253', '0', 0, '4.10', 0, '6167'), ('Colombia', 22, '598', '8', 0, '1.24', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 23, '292', '0', 0, '4.73', 0, '6167'), ('Colombia', 23, '612', '7', 0, '1.26', 0, '49067'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31925'), ('El Salvador', 9, '104', '0', 0, '1.69', 0, '6167'), ('Colombia', 9, '295', '4', 0, '0.61', 0, '49067'), ('Venezuela', 8, '39', '4', 0, '0.13', 0, '31925'); -- -------------------------------------------------------- -- -- Table structure for table `master2017` -- CREATE TABLE `master2017` ( `Country/Territory` varchar(33) DEFAULT NULL, `Epidemiological Weeks` int(2) DEFAULT NULL, `Suspected` varchar(7) DEFAULT NULL, `Confirmed` varchar(7) DEFAULT NULL, `Imported cases` int(3) DEFAULT NULL, `Incidence Ratec` decimal(5,2) DEFAULT NULL, `Deaths` int(3) DEFAULT NULL, `Populatione X 1000` varchar(9) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `master2017` -- INSERT INTO `master2017` (`Country/Territory`, `Epidemiological Weeks`, `Suspected`, `Confirmed`, `Imported cases`, `Incidence Ratec`, `Deaths`, `Populatione X 1000`) VALUES ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 37, NULL, '25', 0, '0.02', 0, '130,223'), ('United States of America >', 38, NULL, NULL, 52, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '25', 52, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 35, '309', '6', NULL, '6.42', NULL, '4,905'), ('El Salvador', 37, '449', '0', 0, '7.28', 0, '6,167'), ('Guatemala', 33, '292', '0', NULL, '1.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 38, '657', '22', NULL, '10.92', 0, '6,217'), ('Panama******', 35, '1,996', '24', 1, '49.86', NULL, '4,051'), ('Subtotal', NULL, '3,703', '52', 1, '7.99', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 35, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 37, '3,222', '22', 0, '29.35', NULL, '11,052'), ('Colombia*****', 37, '883', '23', 0, '1.85', 0, '49,067'), ('Ecuador', 36, NULL, '185', NULL, '1.11', 2, '16,625'), ('Peru**', 37, '854', '687', NULL, '4.79', NULL, '32,166'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31,925'), ('Subtotal', NULL, '5,186', '945', 0, '4.35', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 38, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 36, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 2, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,039', '122,856', 55, '18.10', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 36, NULL, '24', 0, '0.02', 0, '130,223'), ('United States of America >', 37, NULL, NULL, 49, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '24', 49, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 35, '309', '6', NULL, '6.42', NULL, '4,905'), ('El Salvador', 36, '437', '0', 0, '7.09', 0, '6,167'), ('Guatemala', 33, '292', '0', NULL, '1.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 36, '652', '20', NULL, '10.81', 0, '6,217'), ('Panama******', 35, '1,996', '24', 1, '49.86', NULL, '4,051'), ('Subtotal', NULL, '3,686', '50', 1, '7.95', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 35, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '86', 0, '0.58', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 36, '3,212', '22', 0, '29.26', NULL, '11,052'), ('Colombia*****', 36, '867', '23', 0, '1.81', 0, '49,067'), ('Ecuador', 36, NULL, '185', NULL, '1.11', 2, '16,625'), ('Peru**', 36, '839', '617', NULL, '4.53', NULL, '32,166'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31,925'), ('Subtotal', NULL, '5,145', '875', 0, '4.27', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 37, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 35, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 2, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '59,901', '122,774', 52, '18.07', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 35, NULL, '24', 0, '0.02', 0, '130,223'), ('United States of America >', 36, NULL, NULL, 46, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '24', 46, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 34, '300', '6', NULL, '6.24', NULL, '4,905'), ('El Salvador', 35, '424', '0', 0, '6.88', 0, '6,167'), ('Guatemala', 33, '292', '0', NULL, '1.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 36, '652', '20', NULL, '10.81', 0, '6,217'), ('Panama******', 35, '1,996', '24', 1, '49.86', NULL, '4,051'), ('Subtotal', NULL, '3,664', '50', 1, '7.90', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 33, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '86', 0, '0.58', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 36, '3,212', '22', 0, '29.26', NULL, '11,052'), ('Colombia*****', 35, '849', '23', 0, '1.78', 0, '49,067'), ('Ecuador', 35, NULL, '180', NULL, '1.08', 2, '16,625'), ('Peru**', 35, '835', '612', NULL, '4.50', NULL, '32,166'), ('Venezuela', 31, '215', '26', 0, '0.75', 0, '31,925'), ('Subtotal', NULL, '5,111', '863', 0, '4.24', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 36, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 33, '21,784', '112,963', NULL, '63.79', 86, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 34, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '22,523', '112,968', 2, '47.69', 86, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '31,433', '113,991', 49, '14.39', 88, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 34, NULL, '24', 0, '0.02', 0, '130,223'), ('United States of America >', 35, NULL, NULL, 38, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '24', 38, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 34, '300', '6', NULL, '6.24', NULL, '4,905'), ('El Salvador', 34, '407', '0', 0, '6.60', 0, '6,167'), ('Guatemala', 25, '216', '0', NULL, '1.27', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 35, '640', '18', NULL, '10.58', 0, '6,217'), ('Panama******', 35, '1,996', '24', 1, '49.86', NULL, '4,051'), ('Subtotal', NULL, '3,559', '48', 1, '7.67', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 33, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '86', 0, '0.58', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 34, '3,192', '22', 0, '29.08', NULL, '11,052'), ('Colombia*****', 34, '852', '6', 0, '1.75', 0, '49,067'), ('Ecuador', 32, NULL, '180', NULL, '1.08', 2, '16,625'), ('Peru**', 34, '833', '601', NULL, '4.46', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,968', '816', 0, '4.11', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 35, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 33, '21,784', '112,963', NULL, '63.79', 86, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 32, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '22,523', '112,968', 2, '47.69', 86, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '31,185', '113,942', 41, '14.36', 88, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 33, NULL, '23', 0, '0.02', 0, '130,223'), ('United States of America >', 34, NULL, NULL, 30, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '23', 30, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 30, '256', '6', NULL, '5.34', NULL, '4,905'), ('El Salvador', 33, '392', '0', 0, '6.36', 0, '6,167'), ('Guatemala', 25, '216', '0', NULL, '1.27', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 33, '620', '21', NULL, '10.31', NULL, '6,217'), ('Panama******', 30, '1,570', '19', 1, '39.22', NULL, '4,051'), ('Subtotal', NULL, '3,054', '46', 1, '6.59', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 32, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '86', 0, '0.58', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 34, '3,192', '22', 0, '29.08', NULL, '11,052'), ('Colombia*****', 32, '791', '6', 0, '1.62', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 33, '822', '597', NULL, '4.41', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,896', '787', 0, '4.04', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 34, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 33, '21,784', '112,963', NULL, '63.79', 86, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 31, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '22,523', '112,968', 2, '47.69', 86, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '30,608', '113,910', 33, '14.30', 86, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 41, NULL, '29', 0, '0.02', 0, '130,223'), ('United States of America >', 42, NULL, NULL, 69, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '29', 69, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 39, '323', '42', NULL, '7.44', NULL, '4,905'), ('El Salvador', 41, '497', '0', 0, '8.06', 0, '6,167'), ('Guatemala', 37, '321', '0', NULL, '1.89', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 42, '684', '23', NULL, '11.37', 0, '6,217'), ('Panama******', 39, '1,996', '45', 1, '50.38', NULL, '4,051'), ('Subtotal', NULL, '3,821', '110', 1, '8.36', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 35, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 41, '3,259', '22', 0, '29.69', NULL, '11,052'), ('Colombia*****', 41, '952', '29', 0, '2.00', 0, '49,067'), ('Ecuador', 41, NULL, '190', NULL, '1.14', 2, '16,625'), ('Peru**', 41, '953', '715', NULL, '5.19', NULL, '32,166'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31,925'), ('Subtotal', NULL, '5,391', '984', 0, '4.53', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 42, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 39, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,362', '122,957', 73, '18.14', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 40, NULL, '27', 0, '0.02', 0, '130,223'), ('United States of America >', 41, NULL, NULL, 64, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '27', 64, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 39, '323', '42', NULL, '7.44', NULL, '4,905'), ('El Salvador', 40, '486', '0', 0, '7.88', 0, '6,167'), ('Guatemala', 37, '321', '0', NULL, '1.89', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 41, '678', '22', NULL, '11.26', 0, '6,217'), ('Panama******', 39, '1,996', '45', 1, '50.38', NULL, '4,051'), ('Subtotal', NULL, '3,804', '109', 1, '8.32', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 35, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 41, '3,259', '22', 0, '29.69', NULL, '11,052'), ('Colombia*****', 40, '940', '26', 0, '1.97', 0, '49,067'), ('Ecuador', 39, NULL, '190', NULL, '1.14', 2, '16,625'), ('Peru**', 40, '928', '715', NULL, '5.11', NULL, '32,166'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31,925'), ('Subtotal', NULL, '5,354', '981', 0, '4.50', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 41, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 39, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 2, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,308', '122,951', 67, '18.13', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 39, NULL, '25', 0, '0.02', 0, '130,223'), ('United States of America >', 40, NULL, NULL, 59, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '25', 59, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 37, '322', '6', NULL, '6.69', NULL, '4,905'), ('El Salvador', 39, '473', '0', 0, '7.67', 0, '6,167'), ('Guatemala', 37, '321', '0', NULL, '1.89', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 40, '660', '22', NULL, '10.97', 0, '6,217'), ('Panama******', 39, '1,996', '45', 1, '50.38', NULL, '4,051'), ('Subtotal', NULL, '3,772', '73', 1, '8.18', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 35, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 39, '3,246', '22', 0, '29.57', NULL, '11,052'), ('Colombia*****', 39, '923', '26', 0, '1.93', 0, '49,067'), ('Ecuador', 38, NULL, '187', NULL, '1.12', 2, '16,625'), ('Peru**', 39, '895', '689', NULL, '4.92', NULL, '32,166'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31,925'), ('Subtotal', NULL, '5,291', '952', 0, '4.43', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 40, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 37, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 2, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,213', '122,884', 62, '18.12', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 38, NULL, '25', 0, '0.02', 0, '130,223'), ('United States of America >', 39, NULL, NULL, 55, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '25', 55, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 37, '322', '6', NULL, '6.69', NULL, '4,905'), ('El Salvador', 38, '461', '0', 0, '7.48', 0, '6,167'), ('Guatemala', 33, '292', '0', NULL, '1.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 38, '657', '22', NULL, '10.92', 0, '6,217'), ('Panama******', 39, '1,996', '45', 1, '50.38', NULL, '4,051'), ('Subtotal', NULL, '3,728', '73', 1, '8.08', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 35, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 39, '3,246', '22', 0, '29.57', NULL, '11,052'), ('Colombia*****', 38, '900', '25', 0, '1.89', 0, '49,067'), ('Ecuador', 38, NULL, '187', NULL, '1.12', 2, '16,625'), ('Peru**', 37, '854', '687', NULL, '4.79', NULL, '32,166'), ('Venezuela', 34, '227', '28', 0, '0.80', 0, '31,925'), ('Subtotal', NULL, '5,227', '949', 0, '4.39', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 39, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 36, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 2, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,105', '122,881', 58, '18.10', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 44, NULL, '37', 0, '0.03', 0, '130,223'), ('United States of America >', 45, NULL, NULL, 89, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '37', 89, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 40, '338', '42', NULL, '7.75', NULL, '4,905'), ('El Salvador', 44, '528', '0', 0, '8.56', 0, '6,167'), ('Guatemala', 39, '333', '0', NULL, '1.96', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 45, '709', '24', NULL, '11.79', 0, '6,217'), ('Panama******', 43, '1,996', '50', 1, '50.51', NULL, '4,051'), ('Subtotal', NULL, '3,904', '116', 1, '8.55', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 42, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 43, '3,273', '22', 0, '29.81', NULL, '11,052'), ('Colombia*****', 44, '986', '39', 0, '2.09', 0, '49,067'), ('Ecuador', 42, NULL, '192', NULL, '1.15', 2, '16,625'), ('Peru**', 42, '966', '717', NULL, '5.23', NULL, '32,166'), ('Venezuela', 43, '297', '39', 0, '1.05', 0, '31,925'), ('Subtotal', NULL, '5,522', '1,009', 0, '4.64', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 45, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 42, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 42, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,576', '122,996', 93, '18.16', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 43, NULL, '34', 0, '0.03', 0, '130,223'), ('United States of America >', 44, NULL, NULL, 86, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '34', 86, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 40, '338', '42', NULL, '7.75', NULL, '4,905'), ('El Salvador', 43, '517', '0', 0, '8.38', 0, '6,167'), ('Guatemala', 39, '333', '0', NULL, '1.96', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 44, '703', '24', NULL, '11.69', 0, '6,217'), ('Panama******', 39, '1,996', '45', 1, '50.38', NULL, '4,051'), ('Subtotal', NULL, '3,887', '111', 1, '8.50', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 41, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 43, '3,273', '22', 0, '29.81', NULL, '11,052'), ('Colombia*****', 43, '976', '29', 0, '2.05', 0, '49,067'), ('Ecuador', 41, NULL, '190', NULL, '1.14', 2, '16,625'), ('Peru**', 42, '966', '717', NULL, '5.23', NULL, '32,166'), ('Venezuela', 41, '280', '32', 0, '0.98', 0, '31,925'), ('Subtotal', NULL, '5,495', '990', 0, '4.60', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 44, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 42, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 42, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,532', '122,969', 90, '18.16', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 42, NULL, '32', 0, '0.02', 0, '130,223'), ('United States of America >', 43, NULL, NULL, 80, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '32', 80, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 40, '338', '42', NULL, '7.75', NULL, '4,905'), ('El Salvador', 42, '511', '0', 0, '8.29', 0, '6,167'), ('Guatemala', 39, '333', '0', NULL, '1.96', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 43, '692', '27', NULL, '11.57', 0, '6,217'), ('Panama******', 39, '1,996', '45', 1, '50.38', NULL, '4,051'), ('Subtotal', NULL, '3,870', '114', 1, '8.47', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 40, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '95', 0, '0.82', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 41, '3,259', '22', 0, '29.69', NULL, '11,052'), ('Colombia*****', 42, '966', '29', 0, '2.03', 0, '49,067'), ('Ecuador', 41, NULL, '190', NULL, '1.14', 2, '16,625'), ('Peru**', 41, '953', '715', NULL, '5.19', NULL, '32,166'), ('Venezuela', 41, '280', '32', 0, '0.98', 0, '31,925'), ('Subtotal', NULL, '5,458', '988', 0, '4.58', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 43, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 40, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,478', '122,968', 84, '18.15', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 19, NULL, '15', 0, '0.01', 0, '130,223'), ('United States of America >', 20, NULL, NULL, 8, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '15', 8, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 19, '139', NULL, NULL, '2.83', NULL, '4,905'), ('El Salvador', 19, '223', '0', 0, '3.62', 0, '6,167'), ('Guatemala', 14, '123', NULL, NULL, '0.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 19, '366', '8', NULL, '6.02', NULL, '6,217'), ('Panama', 16, '716', '8', 1, '17.87', NULL, '4,051'), ('Subtotal', NULL, '1,567', '16', 1, '3.37', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 17, '65', '19', NULL, '29.79', NULL, '282'), ('Guadaloupe (2)', 12, NULL, '5', NULL, '1.06', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 14, NULL, '9', NULL, NULL, NULL, '396'), ('Puerto Rico', 18, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 10, '0', '2', NULL, '28.57', NULL, '7'), ('Saint Martin (French part) (2)', 9, '0', '2', NULL, '6.25', NULL, '32'), ('Subtotal', NULL, '65', '45', 0, '0.29', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 13, '1,289', '0', 0, '11.66', NULL, '11,052'), ('Colombia*****', 19, '545', '8', 0, '1.13', 0, '49,067'), ('Ecuador', 17, NULL, '85', NULL, '0.51', NULL, '16,625'), ('Peru**', 20, '806', '191', NULL, '3.10', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '2,731', '291', 0, '2.15', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 20, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 16, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,229', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'); INSERT INTO `master2017` (`Country/Territory`, `Epidemiological Weeks`, `Suspected`, `Confirmed`, `Imported cases`, `Incidence Ratec`, `Deaths`, `Populatione X 1000`) VALUES ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '57,826', '28,596', 11, '8.55', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 17, NULL, '12', 0, '0.01', 0, '130,223'), ('United States of America >', 18, NULL, NULL, 7, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '12', 7, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 16, '133', NULL, NULL, '2.71', NULL, '4,905'), ('El Salvador', 17, '202', '0', 0, '3.28', 0, '6,167'), ('Guatemala', 14, '123', NULL, NULL, '0.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 16, '309', '8', NULL, '5.10', NULL, '6,217'), ('Panama', 16, '716', '8', 1, '17.87', NULL, '4,051'), ('Subtotal', NULL, '1,483', '16', 1, '3.19', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 16, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '8', 0, '0.02', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 13, '1,289', '0', 0, '11.66', NULL, '11,052'), ('Colombia*****', 17, '498', '6', 0, '1.03', 0, '49,067'), ('Ecuador', 17, NULL, '85', NULL, '0.51', NULL, '16,625'), ('Peru**', 17, '594', '157', NULL, '2.33', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '2,472', '255', 0, '1.94', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 18, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 15, '29,771', '13,239', NULL, '20.36', 9, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 12, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '30,510', '13,243', 2, '15.40', 9, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '34,465', '13,534', 10, '4.75', 9, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 18, NULL, '13', 0, '0.01', 0, '130,223'), ('United States of America >', 18, NULL, NULL, 7, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '13', 7, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 16, '133', NULL, NULL, '2.71', NULL, '4,905'), ('El Salvador', 18, '215', '0', 0, '3.49', 0, '6,167'), ('Guatemala', 14, '123', NULL, NULL, '0.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 19, '366', '8', NULL, '6.02', NULL, '6,217'), ('Panama', 16, '716', '8', 1, '17.87', NULL, '4,051'), ('Subtotal', NULL, '1,553', '16', 1, '3.34', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 17, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '8', 0, '0.02', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 13, '1,289', '0', 0, '11.66', NULL, '11,052'), ('Colombia*****', 18, '522', '7', 0, '1.08', 0, '49,067'), ('Ecuador', 17, NULL, '85', NULL, '0.51', NULL, '16,625'), ('Peru**', 18, '636', '161', NULL, '2.48', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '2,538', '260', 0, '1.99', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 19, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 15, '29,771', '13,239', NULL, '20.36', 9, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 15, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '30,510', '13,243', 2, '15.40', 9, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '34,601', '13,540', 10, '4.76', 9, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 16, NULL, '11', 0, '0.01', 0, '130,223'), ('United States of America >', 17, NULL, NULL, 5, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '11', 5, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 12, '119', NULL, NULL, '2.43', NULL, '4,905'), ('El Salvador', 16, '193', '0', 0, '3.13', 0, '6,167'), ('Guatemala', 14, '123', NULL, NULL, '0.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 16, '309', '8', NULL, '5.10', NULL, '6,217'), ('Panama', 13, '619', '3', 1, '15.35', NULL, '4,051'), ('Subtotal', NULL, '1,363', '11', 1, '2.92', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 15, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '8', 0, '0.02', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 13, '1,289', '0', 0, '11.66', NULL, '11,052'), ('Colombia', 16, '462', '7', 0, '0.96', 0, '49,067'), ('Ecuador', 15, NULL, '66', NULL, '0.40', NULL, '16,625'), ('Peru**', 16, '556', '99', NULL, '2.04', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '2,398', '179', 0, '1.83', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 17, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 12, '19,634', '7,220', NULL, '12.71', 7, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 11, '739', '2', NULL, '10.88', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '20,373', '7,222', 2, '9.71', 7, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '24,134', '7,431', 8, '3.12', 7, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 11, NULL, '8', 0, '0.01', 0, '130,223'), ('United States of America >', 12, NULL, NULL, 5, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '8', 5, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 9, '99', NULL, NULL, '2.02', NULL, '4,905'), ('El Salvador', 11, '139', '0', 0, '2.25', 0, '6,167'), ('Guatemala***', 9, '83', NULL, NULL, '0.49', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 11, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 8, '317', NULL, 1, '7.83', NULL, '4,051'), ('Subtotal', NULL, '638', '8', 1, '1.37', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 10, NULL, '5', NULL, '0.14', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '5', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia****', 9, '539', '0', 0, '4.88', NULL, '11,052'), ('Colombia', 11, '353', '5', 0, '0.73', 0, '49,067'), ('Ecuador', 10, NULL, '29', NULL, '0.17', NULL, '16,625'), ('Peru**', 11, '312', '38', NULL, '1.09', NULL, '32,166'), ('Venezuela', 11, '64', '4', 0, '0.21', 0, '31,925'), ('Subtotal', NULL, '1,268', '76', 0, '0.95', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 11, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 7, '8,116', '2,178', NULL, '4.87', 1, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 9, '672', '0', NULL, '9.87', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '8,788', '2,178', 2, '3.86', 1, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '10,694', '2,275', 8, '1.28', 1, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 29, NULL, '20', 0, '0.02', 0, '130,223'), ('United States of America >', 30, NULL, NULL, 21, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '20', 21, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 28, '229', '6', NULL, '4.79', NULL, '4,905'), ('El Salvador', 29, '365', '0', 0, '5.92', 0, '6,167'), ('Guatemala', 22, '200', NULL, NULL, '1.18', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 30, '548', '13', NULL, '9.02', NULL, '6,217'), ('Panama******', 30, '1,570', '19', 1, '39.22', NULL, '4,051'), ('Subtotal', NULL, '2,912', '38', 1, '6.27', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 28, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '74', 0, '0.55', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 28, '3,119', '22', 0, '28.42', NULL, '11,052'), ('Colombia*****', 29, '743', '4', 0, '1.52', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 29, '884', '545', NULL, '4.44', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,837', '733', 0, '3.95', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 30, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 25, '65,173', '66,576', NULL, '62.37', 51, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 27, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '65,912', '66,581', 2, '46.64', 51, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '73,796', '67,446', 24, '13.97', 51, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 30, NULL, '20', 0, '0.02', 0, '130,223'), ('United States of America >', 31, NULL, NULL, 28, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '20', 28, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 30, '256', '6', NULL, '5.34', NULL, '4,905'), ('El Salvador', 29, '365', '0', 0, '5.92', 0, '6,167'), ('Guatemala', 25, '216', '0', NULL, '1.27', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 31, '570', '13', NULL, '9.38', NULL, '6,217'), ('Panama******', 30, '1,570', '19', 1, '39.22', NULL, '4,051'), ('Subtotal', NULL, '2,977', '38', 1, '6.41', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 29, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '86', 0, '0.58', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 31, '3,164', '22', 0, '28.83', NULL, '11,052'), ('Colombia*****', 30, '755', '4', 0, '1.55', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 30, '894', '547', NULL, '4.48', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,904', '735', 0, '4.00', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 31, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 25, '65,173', '66,576', NULL, '62.37', 51, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 27, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '65,912', '66,581', 2, '46.64', 51, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '73,928', '67,460', 31, '13.99', 51, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 31, NULL, '21', 0, '0.02', 0, '130,223'), ('United States of America >', 32, NULL, NULL, 29, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '21', 29, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 30, '256', '6', NULL, '5.34', NULL, '4,905'), ('El Salvador', 31, '381', '0', 0, '6.18', 0, '6,167'), ('Guatemala', 25, '216', '0', NULL, '1.27', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 32, '579', '13', NULL, '9.52', NULL, '6,217'), ('Panama******', 30, '1,570', '19', 1, '39.22', NULL, '4,051'), ('Subtotal', NULL, '3,002', '38', 1, '6.46', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 30, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '86', 0, '0.58', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 32, '3,177', '22', 0, '28.94', NULL, '11,052'), ('Colombia*****', 31, '773', '4', 0, '1.58', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 31, '853', '569', NULL, '4.42', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,894', '757', 0, '4.01', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 31, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 25, '65,173', '66,576', NULL, '62.37', 51, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 30, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '65,912', '66,581', 2, '46.64', 51, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '73,943', '67,483', 32, '13.99', 51, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 12, NULL, '9', 0, '0.01', 0, '130,223'), ('United States of America >', 13, NULL, NULL, 5, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '9', 5, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 11, '111', NULL, NULL, '2.26', NULL, '4,905'), ('El Salvador', 12, '149', '0', 0, '2.42', 0, '6,167'), ('Guatemala', 9, '83', NULL, NULL, '0.49', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 12, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 8, '317', NULL, 1, '7.83', NULL, '4,051'), ('Subtotal', NULL, '660', '8', 1, '1.42', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 11, NULL, '5', NULL, '0.14', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '5', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 9, '539', '0', 0, '4.88', NULL, '11,052'), ('Colombia', 12, '365', '5', 0, '0.75', 0, '49,067'), ('Ecuador', 11, NULL, '33', NULL, '0.20', NULL, '16,625'), ('Peru**', 12, '372', '39', NULL, '1.28', NULL, '32,166'), ('Venezuela', 12, '73', '6', 0, '0.25', 0, '31,925'), ('Subtotal', NULL, '1,349', '83', 0, '1.02', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 11, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 10, '13,192', '4,333', NULL, '8.30', 6, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 9, '672', '0', NULL, '9.87', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '13,864', '4,333', 2, '6.41', 6, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '15,873', '4,438', 8, '2.01', 6, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 13, NULL, '9', 0, '0.01', 0, '130,223'), ('United States of America >', 13, NULL, NULL, 5, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '9', 5, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 12, '119', NULL, NULL, '2.43', NULL, '4,905'), ('El Salvador', 13, '163', '0', 0, '2.64', 0, '6,167'), ('Guatemala', 9, '83', NULL, NULL, '0.49', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 14, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 8, '317', NULL, 1, '7.83', NULL, '4,051'), ('Subtotal', NULL, '682', '8', 1, '1.47', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 12, NULL, '5', NULL, '0.14', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '5', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 9, '539', '0', 0, '4.88', NULL, '11,052'), ('Colombia', 13, '390', '6', 0, '0.81', 0, '49,067'), ('Ecuador', 11, NULL, '33', NULL, '0.20', NULL, '16,625'), ('Peru**', 13, '434', '55', NULL, '1.52', NULL, '32,166'), ('Venezuela', 12, '73', '6', 0, '0.25', 0, '31,925'), ('Subtotal', NULL, '1,436', '100', 0, '1.09', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 13, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 12, '19,634', '7,220', NULL, '12.71', 7, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 10, '739', '0', NULL, '10.85', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '20,373', '7,220', 2, '9.71', 7, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '22,491', '7,342', 8, '2.95', 7, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 14, NULL, '10', 0, '0.01', 0, '130,223'), ('United States of America >', 15, NULL, NULL, 5, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '10', 5, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 12, '119', NULL, NULL, '2.43', NULL, '4,905'), ('El Salvador', 13, '163', '0', 0, '2.64', 0, '6,167'), ('Guatemala', 9, '83', NULL, NULL, '0.49', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 14, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 8, '317', NULL, 1, '7.83', NULL, '4,051'), ('Subtotal', NULL, '682', '8', 1, '1.47', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 13, NULL, '6', NULL, '0.16', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '6', 0, '0.02', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 9, '539', '0', 0, '4.88', NULL, '11,052'), ('Colombia', 14, '417', '6', 0, '0.86', 0, '49,067'), ('Ecuador', 11, NULL, '33', NULL, '0.20', NULL, '16,625'), ('Peru**', 14, '396', '75', NULL, '1.46', NULL, '32,166'), ('Venezuela', 12, '73', '6', 0, '0.25', 0, '31,925'), ('Subtotal', NULL, '1,425', '120', 0, '1.10', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 13, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 12, '19,634', '7,220', NULL, '12.71', 7, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 11, '739', '2', NULL, '10.88', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '20,373', '7,222', 2, '9.71', 7, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '22,480', '7,366', 8, '2.95', 7, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 49, NULL, '57', 0, '0.04', 0, '130,223'), ('United States of America >', 49, NULL, NULL, 103, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '57', 103, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 48, '389', '42', NULL, '8.79', NULL, '4,905'), ('El Salvador', 49, '561', '0', 0, '9.10', 0, '6,167'), ('Guatemala', 41, '349', '0', NULL, '2.05', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 50, '736', '24', NULL, '12.22', 0, '6,217'), ('Panama******', 43, '1,996', '50', 1, '50.51', NULL, '4,051'), ('Subtotal', NULL, '4,031', '116', 1, '8.82', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 46, NULL, '56', NULL, '11.86', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 45, NULL, '54', NULL, NULL, NULL, '396'), ('Puerto Rico', 47, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 45, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 45, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '170', 0, '1.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 49, '3,345', '22', 0, '30.47', NULL, '11,052'), ('Colombia*****', 48, '1,052', '28', 0, '2.20', 0, '49,067'), ('Ecuador', 48, NULL, '196', NULL, '1.18', 2, '16,625'), ('Peru**', 43, '1,733', '717', NULL, '7.62', NULL, '32,166'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31,925'), ('Subtotal', NULL, '6,432', '1,002', 0, '5.28', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 50, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 48, '739', '8', NULL, '10.97', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,742', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 45, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '61,613', '123,087', 107, '18.27', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 28, NULL, '19', 0, '0.01', 0, '130,223'), ('United States of America >', 29, NULL, NULL, 16, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '19', 16, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 28, '229', '6', NULL, '4.79', NULL, '4,905'), ('El Salvador', 28, '356', '0', 0, '5.77', 0, '6,167'), ('Guatemala', 22, '200', NULL, NULL, '1.18', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 29, '539', '10', NULL, '8.83', NULL, '6,217'), ('Panama******', 26, '970', '12', 1, '24.24', NULL, '4,051'), ('Subtotal', NULL, '2,294', '28', 1, '4.94', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 27, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '74', 0, '0.55', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 28, '3,119', '22', 0, '28.42', NULL, '11,052'), ('Colombia*****', 28, '728', '5', 0, '1.49', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 28, '873', '507', NULL, '4.29', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,811', '696', 0, '3.91', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 29, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 25, '65,173', '66,576', NULL, '62.37', 51, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 26, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '65,912', '66,581', 2, '46.64', 51, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '73,152', '67,398', 19, '13.91', 51, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 24, NULL, '17', 0, '0.01', 0, '130,223'), ('United States of America >', 25, NULL, NULL, 13, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '17', 13, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 23, '172', NULL, NULL, '3.51', NULL, '4,905'), ('El Salvador', 24, '308', '0', 0, '4.99', 0, '6,167'), ('Guatemala', 22, '200', NULL, NULL, '1.18', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 25, '462', '8', NULL, '7.56', NULL, '6,217'), ('Panama', 22, '774', '8', 1, '19.30', NULL, '4,051'), ('Subtotal', NULL, '1,916', '16', 1, '4.11', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 17, '65', '19', NULL, '29.79', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 23, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '65', '56', 0, '0.32', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 25, '3,056', '22', 0, '27.85', NULL, '11,052'), ('Colombia*****', 24, '637', '7', 0, '1.31', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 23, '821', '361', NULL, '3.67', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,605', '552', 0, '3.66', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 25, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 22, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,229', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'); INSERT INTO `master2017` (`Country/Territory`, `Epidemiological Weeks`, `Suspected`, `Confirmed`, `Imported cases`, `Incidence Ratec`, `Deaths`, `Populatione X 1000`) VALUES ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,049', '28,870', 16, '8.80', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 15, NULL, '10', 0, '0.01', 0, '130,223'), ('United States of America >', 16, NULL, NULL, 5, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '10', 5, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 12, '119', NULL, NULL, '2.43', NULL, '4,905'), ('El Salvador', 15, '184', '0', 0, '2.98', 0, '6,167'), ('Guatemala', 14, '123', NULL, NULL, '0.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 16, '309', '8', NULL, '5.10', NULL, '6,217'), ('Panama', 13, '619', '3', 1, '15.35', NULL, '4,051'), ('Subtotal', NULL, '1,354', '11', 1, '2.90', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 14, NULL, '7', NULL, '0.19', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '7', 0, '0.02', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 9, '539', '0', 0, '4.88', NULL, '11,052'), ('Colombia', 14, '431', '7', 0, '0.89', 0, '49,067'), ('Ecuador', 15, NULL, '66', NULL, '0.40', NULL, '16,625'), ('Peru**', 15, '482', '76', NULL, '1.73', NULL, '32,166'), ('Venezuela', 13, '74', '6', 0, '0.25', 0, '31,925'), ('Subtotal', NULL, '1,526', '155', 0, '1.19', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 16, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 12, '19,634', '7,220', NULL, '12.71', 7, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 11, '739', '2', NULL, '10.88', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '20,373', '7,222', 2, '9.71', 7, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '23,253', '7,405', 8, '3.03', 7, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 32, NULL, '22', 0, '0.02', 0, '130,223'), ('United States of America >', 33, NULL, NULL, 29, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '22', 29, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 30, '256', '6', NULL, '5.34', NULL, '4,905'), ('El Salvador', 32, '386', '0', 0, '6.26', 0, '6,167'), ('Guatemala', 25, '216', '0', NULL, '1.27', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 33, '600', '14', NULL, '9.88', NULL, '6,217'), ('Panama******', 30, '1,570', '19', 1, '39.22', NULL, '4,051'), ('Subtotal', NULL, '3,028', '39', 1, '6.52', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 30, NULL, '11', NULL, '2.33', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 30, NULL, '24', NULL, NULL, NULL, '396'), ('Puerto Rico', 31, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 30, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 30, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '86', 0, '0.58', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 33, '3,183', '22', 0, '29.00', NULL, '11,052'), ('Colombia*****', 32, '791', '6', 0, '1.62', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 32, '849', '587', NULL, '4.46', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,914', '777', 0, '4.04', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 33, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil*******', 31, '58,837', '104,298', NULL, '77.23', 75, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 31, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '59,576', '104,303', 2, '57.68', 75, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '67,653', '105,227', 32, '17.10', 75, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 46, NULL, '39', 0, '0.03', 0, '130,223'), ('United States of America >', 47, NULL, NULL, 93, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '39', 93, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 44, '364', '42', NULL, '8.28', NULL, '4,905'), ('El Salvador', 46, '542', '0', 0, '8.79', 0, '6,167'), ('Guatemala', 41, '349', '0', NULL, '2.05', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 46, '716', '24', NULL, '11.90', 0, '6,217'), ('Panama******', 43, '1,996', '50', 1, '50.51', NULL, '4,051'), ('Subtotal', NULL, '3,967', '116', 1, '8.68', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 46, NULL, '56', NULL, '11.86', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 45, NULL, '54', NULL, NULL, NULL, '396'), ('Puerto Rico', 43, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 45, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 45, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '170', 0, '1.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 46, '3,304', '22', 0, '30.09', NULL, '11,052'), ('Colombia*****', 46, '1,018', '29', 0, '2.13', 0, '49,067'), ('Ecuador', 45, NULL, '194', NULL, '1.17', 2, '16,625'), ('Peru**', 43, '1,733', '717', NULL, '7.62', NULL, '32,166'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31,925'), ('Subtotal', NULL, '6,357', '1,001', 0, '5.22', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 47, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 44, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 45, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '61,474', '123,065', 97, '18.26', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 48, NULL, '54', 0, '0.04', 0, '130,223'), ('United States of America >', 48, NULL, NULL, 97, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '54', 97, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 47, '386', '42', NULL, '8.73', NULL, '4,905'), ('El Salvador', 48, '554', '0', 0, '8.98', 0, '6,167'), ('Guatemala', 41, '349', '0', NULL, '2.05', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 49, '731', '24', NULL, '12.14', 0, '6,217'), ('Panama******', 43, '1,996', '50', 1, '50.51', NULL, '4,051'), ('Subtotal', NULL, '4,016', '116', 1, '8.79', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 46, NULL, '56', NULL, '11.86', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 45, NULL, '54', NULL, NULL, NULL, '396'), ('Puerto Rico', 46, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 45, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 45, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '170', 0, '1.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 48, '3,332', '22', 0, '30.35', NULL, '11,052'), ('Colombia*****', 48, '1,052', '28', 0, '2.20', 0, '49,067'), ('Ecuador', 47, NULL, '196', NULL, '1.18', 2, '16,625'), ('Peru**', 43, '1,733', '717', NULL, '7.62', NULL, '32,166'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31,925'), ('Subtotal', NULL, '6,419', '1,002', 0, '5.27', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 48, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 46, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 45, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '61,585', '123,081', 101, '18.27', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 6, NULL, '6', 0, '0.00', 0, '130,223'), ('United States of America >', 7, NULL, NULL, 1, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '6', 1, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 6, '75', NULL, NULL, '1.53', NULL, '4,905'), ('El Salvador', 6, '59', '0', 0, '0.96', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 6, NULL, '6', NULL, '0.10', NULL, '6,217'), ('Panama', 4, '207', NULL, NULL, '5.11', NULL, '4,051'), ('Subtotal', NULL, '341', '6', 0, '0.74', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 6, NULL, '3', NULL, '0.08', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '3', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '11,052'), ('Colombia', 6, '203', '2', 0, '0.42', 0, '49,067'), ('Ecuador', 5, NULL, '9', NULL, '0.05', NULL, '16,625'), ('Peru', 6, '175', '15', NULL, '0.59', NULL, '32,166'), ('Venezuela*', 5, '29', '0', 0, '0.09', 0, '31,925'), ('Subtotal', NULL, '407', '26', 0, '0.31', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 6, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 4, '3,190', '564', NULL, '1.78', 1, '211,243'), ('Chile', NULL, NULL, NULL, NULL, '0.00', NULL, '18,313'), ('Paraguay', 4, '2', NULL, NULL, '0.03', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '3,192', '564', 1, '1.32', 1, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 4, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '3,940', '605', 2, '0.45', 1, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 47, NULL, '47', 0, '0.04', 0, '130,223'), ('United States of America >', 47, NULL, NULL, 93, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '47', 93, '0.01', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 46, '371', '42', NULL, '8.42', NULL, '4,905'), ('El Salvador', 47, '548', '0', 0, '8.89', 0, '6,167'), ('Guatemala', 41, '349', '0', NULL, '2.05', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua (^)', 48, '729', '24', NULL, '12.11', 0, '6,217'), ('Panama******', 43, '1,996', '50', 1, '50.51', NULL, '4,051'), ('Subtotal', NULL, '3,993', '116', 1, '8.74', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 37, '215', '46', NULL, '92.55', NULL, '282'), ('Guadaloupe (2)', 46, NULL, '56', NULL, '11.86', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 45, NULL, '54', NULL, NULL, NULL, '396'), ('Puerto Rico', 45, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 45, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 45, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '215', '170', 0, '1.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 48, '3,332', '22', 0, '30.35', NULL, '11,052'), ('Colombia*****', 47, '1,039', '29', 0, '2.18', 0, '49,067'), ('Ecuador', 45, NULL, '194', NULL, '1.17', 2, '16,625'), ('Peru**', 43, '1,733', '717', NULL, '7.62', NULL, '32,166'), ('Venezuela', 45, '302', '39', 0, '1.07', 0, '31,925'), ('Subtotal', NULL, '6,406', '1,001', 0, '5.26', 2, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 48, '0', '0', 1, '0.00', NULL, '44,272'), ('Brazil*******', 35, '50,196', '121,734', NULL, '81.39', 99, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 44, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '50,935', '121,739', 3, '60.78', 99, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 45, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '61,549', '123,073', 97, '18.27', 101, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, NULL, NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 3, NULL, '1', 0, '0.00', 0, '130,223'), ('United States of America >', 4, NULL, NULL, 0, NULL, 0, '326,474'), ('Subtotal', NULL, '0', '1', 0, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 3, '48', NULL, NULL, '0.98', NULL, '4,905'), ('El Salvador', 3, '26', '0', 0, '0.42', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 4, NULL, '6', NULL, '0.10', NULL, '6,217'), ('Panama', NULL, NULL, NULL, NULL, '0.00', NULL, '4,051'), ('Subtotal', NULL, '74', '6', 0, '0.17', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 2, NULL, '0', NULL, '0.00', NULL, '3,679'), ('Saint Barthelemy', NULL, NULL, NULL, NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', NULL, NULL, NULL, NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '11,052'), ('Colombia', 3, '104', '2', 0, '0.22', 0, '49,067'), ('Ecuador', 4, NULL, '9', NULL, '0.05', NULL, '16,625'), ('Peru', 3, '96', '2', NULL, '0.30', NULL, '32,166'), ('Venezuela', 2, '11', '0', 0, '0.03', 0, '31,925'), ('Subtotal', NULL, '211', '13', 0, '0.16', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 2, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', NULL, NULL, NULL, NULL, '0.00', NULL, '211,243'), ('Chile', NULL, NULL, NULL, NULL, '0.00', NULL, '18,313'), ('Paraguay', NULL, NULL, NULL, NULL, '0.00', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '0', '0', 1, '0.00', 0, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', NULL, NULL, NULL, NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '285', '20', 1, '0.03', 0, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermudag', 24, '3', '0', 0, '4.20', 0, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,286'), ('Mexico', 51, NULL, '757', 0, '0.59', 0, '128,632'), ('United States of America >', 52, NULL, NULL, 164, '0.00', 0, '324,119'), (NULL, NULL, '3', '757', 164, '0.16', 0, '489,108'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize g', NULL, '58', '1', 0, '16.10', 0, '367'), ('Costa Rica', 50, '3,361', '0', 0, '69.20', 0, '4,857'), ('El Salvador', 52, '6,071', '0', 0, '98.78', 0, '6,146'), ('Guatemala', 47, '5,074', '177', 0, '31.49', 0, '16,673'), ('Honduras', 32, '14,325', '0', 0, '174.91', 0, '8,190'), ('Nicaragua', 26, '4,675', '453', 0, '83.38', 1, '6,150'), ('Panama', 43, NULL, '6', 5, '0.15', 0, '3,990'), (NULL, NULL, '33,564', '637', 5, '73.75', 1, '46,373'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,393'), ('Dominican Republic', 30, '112', '0', 0, '1.05', 0, '10,649'), ('French Guiana', 23, '805', '18', 0, '298.19', 0, '276'), ('Guadaloupe#', 16, '32', '2', 0, '7.22', 0, '471'), ('Haitig', 16, '2', '1', 0, '0.03', 0, '10,848'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Ricof', 50, '0', '177', 0, '4.81', 0, '3,681'), ('Saint Barthelemy#', 16, '0', '0', 0, '0.00', 0, '9'), ('Saint Martin (French part) #', 16, '17', '1', 0, '50.43', NULL, '36'), (NULL, NULL, '968', '199', 0, '3.09', 0, '37,759'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 47, '19,805', '1,190', 2, '192.83', 0, '10,888'), ('Colombia', 51, '19,319', '206', 0, '40.13', 12, '48,654'), ('Ecuador&', 37, '280', '1,745', 3, '12.36', 0, '16,385'), ('Peru', 50, '133', '124', 1, '0.82', 0, '31,374'), ('Venezuela', 32, '3,107', '68', 0, '10.07', 0, '31,519'), (NULL, NULL, '42,644', '3,333', 6, '33.12', 12, '138,820'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina*', 51, '3,394', '322', 91, '8.47', 0, '43,847'), ('Brazil^', 49, '263,598', '145,059', 0, '195.00', 159, '209,568'), ('Chile', 50, '0', '0', 4, '0.00', 0, '18,132'), ('Paraguay', 50, '880', '38', 0, '13.65', 0, '6,725'), ('Uruguay', NULL, NULL, NULL, NULL, NULL, NULL, '344'), (NULL, NULL, '267,872', '145,419', 95, '148.34', 159, '278,616'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla g', 24, '9', '1', 0, '58.82', 0, '17'), ('Antigua and Barbuda g', 24, '38', '2', 0, '42.55', 0, '94'), ('Aruba g', 47, '929', '8', 0, '821.93', 0, '114'), ('Bahamas g', 20, '75', '1', 0, '19.34', 0, '393'), ('Barbados g', 20, '86', '0', 0, '29.55', 0, '291'), ('Cayman Islandsg', 24, '48', '0', 0, '84.21', 0, '57'), ('Curacaog', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominicag', 24, '269', '2', 0, '366.22', 0, '74'), ('Grenadag', 20, '103', '0', 0, '92.79', 0, '111'), ('Guyanag', 16, '149', '0', 0, '19.33', 0, '771'), ('Jamaicag', 24, '204', '1', 0, '7.31', 0, '2,803'), ('Montserrat g', 24, '5', '0', 0, '100.00', 0, '5'), ('Saint Kitts and Nevisg', NULL, '28', '0', 0, '53.85', 0, '52'), ('Saint Luciag', 24, '114', '0', 0, '69.51', 0, '164'), ('Saint Vincent and the Grenadinesg', 24, '154', '1', 0, '151.96', 0, '102'), ('Sint Maarten (Dutch part)g', 8, '12', '0', 0, '29.27', 0, '41'), ('Surinameg', NULL, '3', '0', 0, '0.55', 0, '548'), ('Trinidad and Tobagog', NULL, '575', '15', 0, '43.22', 0, '1,365'), ('Turks and Caicos Islandsg', 24, '22', '0', 0, '43.14', 0, '51'), ('Virgin Islands (UK)g', 24, '2', '9', 0, '32.35', 0, '34'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '103'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,286'), ('Mexico', 2, NULL, '0', 0, '0.00', 0, '128,632'), ('United States of America >', 3, NULL, NULL, NULL, '0.00', 0, '324,119'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '489,108'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '367'), ('Costa Rica', 2, '27', NULL, NULL, '0.56', NULL, '4,857'), ('El Salvador', 3, '26', '0', 0, '0.42', 0, '6,146'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '16,673'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,190'), ('Nicaragua', 1, NULL, '0', NULL, '0.00', NULL, '6,150'), ('Panama', NULL, NULL, NULL, NULL, '0.00', NULL, '3,990'), ('Subtotal', NULL, '53', '0', 0, '0.11', 0, '46,373'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,393'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,649'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '276'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '471'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,848'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 2, NULL, '0', NULL, '0.00', NULL, '3,681'), ('Saint Barthelemy', NULL, NULL, NULL, NULL, '0.00', NULL, '9'), ('Saint Martin (French part)', NULL, NULL, NULL, NULL, '0.00', NULL, '36'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '37,759'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '10,888'), ('Colombia', 2, '65', '2', 0, '0.14', 0, '48,654'), ('Ecuador', NULL, NULL, NULL, NULL, '0.00', NULL, '16,385'), ('Peru', 2, '49', '2', NULL, '0.16', NULL, '31,374'), ('Venezuela', 2, '11', '0', 0, '0.03', 0, '31,519'), ('Subtotal', NULL, '125', '4', 0, '0.09', 0, '138,820'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 2, NULL, '0', NULL, '0.00', NULL, '43,847'), ('Brazil', NULL, NULL, NULL, NULL, '0.00', NULL, '209,568'), ('Chile', NULL, NULL, NULL, NULL, '0.00', NULL, '18,132'), ('Paraguay', NULL, NULL, NULL, NULL, '0.00', NULL, '6,725'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '344'), ('Subtotal', NULL, NULL, '0', 1, '0.00', 0, '278,616'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '94'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '114'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '393'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '291'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '57'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '771'), ('Jamaica', NULL, NULL, NULL, NULL, '0.00', NULL, '2,803'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '41'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '548'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,365'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '51'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '34'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '103'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,339'), ('TOTAL', NULL, '178', '4', 1, '0.02', 0, '998,015'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 27, NULL, '18', 0, '0.01', 0, '130,223'), ('United States of America >', 28, NULL, NULL, 15, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '18', 15, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 27, '215', '6', NULL, '4.51', NULL, '4,905'), ('El Salvador', 27, '345', '0', 0, '5.59', 0, '6,167'), ('Guatemala', 22, '200', NULL, NULL, '1.18', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 28, '533', '8', NULL, '8.70', NULL, '6,217'), ('Panama******', 26, '970', '12', 1, '24.24', NULL, '4,051'), ('Subtotal', NULL, '2,263', '26', 1, '4.87', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 26, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '74', 0, '0.55', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 28, '3,119', '22', 0, '28.42', NULL, '11,052'), ('Colombia*****', 27, '705', '5', 0, '1.45', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 27, '883', '495', NULL, '4.28', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,798', '684', 0, '3.89', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 28, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 25, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,230', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,659', '29,032', 18, '8.87', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 7, NULL, '6', 0, '0.00', 0, '130,223'), ('United States of America >', 8, NULL, NULL, 3, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '6', 3, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 7, '86', NULL, NULL, '1.75', NULL, '4,905'), ('El Salvador', 7, '77', '0', 0, '1.25', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 8, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 4, '207', NULL, NULL, '5.11', NULL, '4,051'), ('Subtotal', NULL, '370', '8', 0, '0.80', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 7, NULL, '3', NULL, '0.08', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '3', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '11,052'), ('Colombia', 7, '247', '2', 0, '0.51', 0, '49,067'), ('Ecuador', 5, NULL, '9', NULL, '0.05', NULL, '16,625'), ('Peru**', 7, '170', '24', NULL, '0.60', NULL, '32,166'), ('Venezuela*', 5, '29', '0', 0, '0.09', 0, '31,925'), ('Subtotal', NULL, '446', '35', 0, '0.34', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 7, '0', '0', 2, '0.00', NULL, '44,272'), ('Brazil', 4, '3,190', '564', NULL, '1.78', 1, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay', 4, '2', NULL, NULL, '0.03', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '3,192', '564', 4, '1.32', 1, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 4, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '4,008', '616', 7, '0.46', 1, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 4, NULL, '3', 0, NULL, 0, '130,223'), ('United States of America >', 5, NULL, NULL, 0, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '3', 0, NULL, 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 4, '66', NULL, NULL, '1.35', NULL, '4,905'), ('El Salvador', 4, '39', '0', 0, '0.63', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 4, NULL, '6', NULL, '0.10', NULL, '6,217'), ('Panama', NULL, NULL, NULL, NULL, '0.00', NULL, '4,051'), ('Subtotal', NULL, '105', '6', 0, '0.24', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 3, NULL, '1', NULL, '0.03', NULL, '3,679'), ('Saint Barthelemy', NULL, NULL, NULL, NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', NULL, NULL, NULL, NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '1', 0, '0.00', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '11,052'), ('Colombia', 4, '135', '2', 0, '0.28', 0, '49,067'), ('Ecuador', 4, NULL, '9', NULL, '0.05', NULL, '16,625'), ('Peru', 4, '143', '5', NULL, '0.46', NULL, '32,166'), ('Venezuela*', 4, '23', '0', 0, '0.07', 0, '31,925'), ('Subtotal', NULL, '301', '16', 0, '0.23', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 4, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', NULL, NULL, NULL, NULL, '0.00', NULL, '211,243'), ('Chile', NULL, NULL, NULL, NULL, '0.00', NULL, '18,313'), ('Paraguay', NULL, NULL, NULL, NULL, '0.00', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '0', '0', 1, '0.00', 0, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', NULL, NULL, NULL, NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '406', '26', 1, '0.04', 0, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 5, NULL, '4', 0, '0.00', 0, '130,223'), ('United States of America >', 6, NULL, NULL, 0, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '4', 0, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 5, '72', NULL, NULL, '1.47', NULL, '4,905'), ('El Salvador', 5, '47', '0', 0, '0.76', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 5, NULL, '6', NULL, '0.10', NULL, '6,217'), ('Panama', NULL, NULL, NULL, NULL, '0.00', NULL, '4,051'), ('Subtotal', NULL, '119', '6', 0, '0.27', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 4, NULL, '1', NULL, '0.03', NULL, '3,679'), ('Saint Barthelemy', NULL, NULL, NULL, NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', NULL, NULL, NULL, NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '1', 0, '0.00', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '11,052'), ('Colombia', 5, '169', '2', 0, '0.35', 0, '49,067'), ('Ecuador', 5, NULL, '9', NULL, '0.05', NULL, '16,625'), ('Peru', 5, '163', '5', NULL, '0.52', NULL, '32,166'), ('Venezuela*', 5, '29', '0', 0, '0.09', 0, '31,925'), ('Subtotal', NULL, '361', '16', 0, '0.27', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 5, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', NULL, NULL, NULL, NULL, '0.00', NULL, '211,243'), ('Chile', NULL, NULL, NULL, NULL, '0.00', NULL, '18,313'), ('Paraguay', NULL, NULL, NULL, NULL, '0.00', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '0', '0', 1, '0.00', 0, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', NULL, NULL, NULL, NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '480', '27', 1, '0.05', 0, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermudag', 24, '3', '0', 0, '4.20', 0, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,286'), ('Mexico', 52, NULL, '757', 0, '0.59', 0, '128,632'); INSERT INTO `master2017` (`Country/Territory`, `Epidemiological Weeks`, `Suspected`, `Confirmed`, `Imported cases`, `Incidence Ratec`, `Deaths`, `Populatione X 1000`) VALUES ('United States of America >', 52, NULL, NULL, 164, '0.00', 0, '324,119'), ('Subtotal', NULL, '3', '757', 164, '0.16', 0, '489,108'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize g', NULL, '58', '1', 0, '16.10', 0, '367'), ('Costa Rica', 52, '3,421', '0', 0, '70.43', 0, '4,857'), ('El Salvador', 52, '6,071', '0', 0, '98.78', 0, '6,146'), ('Guatemala', 52, '5,125', '177', 0, '31.80', 0, '16,673'), ('Honduras', 32, '14,325', '0', 0, '174.91', 0, '8,190'), ('Nicaragua', 26, '4,675', '682', 0, '87.11', 1, '6,150'), ('Panama', 43, NULL, '6', 5, '0.15', 0, '3,990'), ('Subtotal', NULL, '33,675', '866', 5, '74.49', 1, '46,373'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', 52, NULL, '0', 0, '0.00', 0, '11,393'), ('Dominican Republic', 30, '112', '0', 0, '1.05', 0, '10,649'), ('French Guiana', 23, '805', '18', 0, '298.19', 0, '276'), ('Guadaloupe#', 16, '32', '2', 0, '7.22', 0, '471'), ('Haitig', 16, '2', '1', 0, '0.03', 0, '10,848'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Ricof', 52, '0', '178', 0, '4.84', 0, '3,681'), ('Saint Barthelemy#', 16, '0', '0', 0, '0.00', 0, '9'), ('Saint Martin (French part) #', 16, '17', '1', 0, '50.43', NULL, '36'), ('Subtotal', NULL, '968', '200', 0, '3.09', 0, '37,759'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 47, '19,805', '1,190', 2, '192.83', 0, '10,888'), ('Colombia', 52, '19,357', '209', 0, '40.21', 12, '48,654'), ('Ecuador&', 37, '280', '1,745', 3, '12.36', 0, '16,385'), ('Peru', 52, '141', '131', 1, '0.87', 0, '31,374'), ('Venezuela', 52, '3,471', '355', 0, '12.14', 0, '31,519'), ('Subtotal', NULL, '43,054', '3,630', 6, '33.63', 12, '138,820'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina*', 52, '3,394', '322', 91, '8.47', 0, '43,847'), ('Brazil^', 50, '265,554', '146,914', 0, '196.82', 159, '209,568'), ('Chile', 50, '0', '0', 4, '0.00', 0, '18,132'), ('Paraguay', 51, '881', '38', 0, '13.67', 0, '6,725'), ('Uruguay', NULL, NULL, NULL, NULL, NULL, NULL, '344'), ('Subtotal', NULL, '269,829', '147,274', 95, '149.71', 159, '278,616'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla g', 24, '9', '1', 0, '58.82', 0, '17'), ('Antigua and Barbuda g', 24, '38', '2', 0, '42.55', 0, '94'), ('Aruba g', 47, '929', '8', 0, '821.93', 0, '114'), ('Bahamas g', 20, '75', '1', 0, '19.34', 0, '393'), ('Barbados g', 20, '86', '0', 0, '29.55', 0, '291'), ('Cayman Islandsg', 24, '48', '0', 0, '84.21', 0, '57'), ('Curacaog', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominicag', 24, '269', '2', 0, '366.22', 0, '74'), ('Grenadag', 20, '103', '0', 0, '92.79', 0, '111'), ('Guyanag', 16, '149', '0', 0, '19.33', 0, '771'), ('Jamaicag', 24, '204', '1', 0, '7.31', 0, '2,803'), ('Montserrat g', 24, '5', '0', 0, '100.00', 0, '5'), ('Saint Kitts and Nevisg', NULL, '28', '0', 0, '53.85', 0, '52'), ('Saint Luciag', 24, '114', '0', 0, '69.51', 0, '164'), ('Saint Vincent and the Grenadinesg', 24, '154', '1', 0, '151.96', 0, '102'), ('Sint Maarten (Dutch part)h', 52, '12', '2', 0, '34.15', 0, '41'), ('Surinameg', NULL, '3', '0', 0, '0.55', 0, '548'), ('Trinidad and Tobagog', NULL, '575', '15', 0, '43.22', 0, '1,365'), ('Turks and Caicos Islandsg', 24, '22', '0', 0, '43.14', 0, '51'), ('Virgin Islands (UK)g', 24, '2', '9', 0, '32.35', 0, '34'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '103'), ('Subtotal', NULL, '2,825', '42', 0, '39.10', 0, '7,339'), ('TOTAL', NULL, '350,354', '152,769', 270, '50.41', 172, '998,015'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,286'), ('Mexico', 1, NULL, '0', 0, '0.00', 0, '128,632'), ('United States of America >', 1, NULL, NULL, NULL, '0.00', 0, '324,119'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '489,108'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '367'), ('Costa Rica', NULL, NULL, NULL, NULL, '0.00', NULL, '4,857'), ('El Salvador', 1, '5', '0', 0, '0.08', 0, '6,146'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '16,673'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,190'), ('Nicaragua', 1, NULL, '0', NULL, '0.00', NULL, '6,150'), ('Panama', NULL, NULL, NULL, NULL, '0.00', NULL, '3,990'), ('Subtotal', NULL, '5', '0', 0, '0.01', 0, '46,373'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,393'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,649'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '276'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '471'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,848'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', NULL, NULL, NULL, NULL, '0.00', NULL, '3,681'), ('Saint Barthelemy', NULL, NULL, NULL, NULL, '0.00', NULL, '9'), ('Saint Martin (French part)', NULL, NULL, NULL, NULL, '0.00', NULL, '36'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '37,759'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '10,888'), ('Colombia', 1, '20', '0', 0, '0.04', 0, '48,654'), ('Ecuador', NULL, NULL, NULL, NULL, '0.00', NULL, '16,385'), ('Peru', NULL, NULL, NULL, NULL, '0.00', NULL, '31,374'), ('Venezuela', 1, '8', NULL, NULL, '0.03', 0, '31,519'), ('Subtotal', NULL, '28', '0', 0, '0.02', 0, '138,820'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', NULL, NULL, NULL, NULL, '0.00', NULL, '43,847'), ('Brazil', NULL, NULL, NULL, NULL, '0.00', NULL, '209,568'), ('Chile', NULL, NULL, NULL, NULL, '0.00', NULL, '18,132'), ('Paraguay', NULL, NULL, NULL, NULL, '0.00', NULL, '6,725'), ('Uruguay', NULL, NULL, NULL, NULL, NULL, NULL, '344'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '278,616'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '94'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '114'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '393'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '291'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '57'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '771'), ('Jamaica', NULL, NULL, NULL, NULL, '0.00', NULL, '2,803'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '41'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '548'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,365'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '51'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '34'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '103'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,339'), ('TOTAL', NULL, '33', '0', 0, '0.00', 0, '998,015'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 25, NULL, '17', 0, '0.01', 0, '130,223'), ('United States of America >', 26, NULL, NULL, 14, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '17', 14, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 25, '188', NULL, NULL, '3.83', NULL, '4,905'), ('El Salvador', 25, '322', '0', 0, '5.22', 0, '6,167'), ('Guatemala', 22, '200', NULL, NULL, '1.18', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 25, '462', '8', NULL, '7.56', NULL, '6,217'), ('Panama', 26, '774', '13', 1, '19.43', NULL, '4,051'), ('Subtotal', NULL, '1,946', '21', 1, '4.18', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 24, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '74', 0, '0.55', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 26, '3,074', '22', 0, '28.01', NULL, '11,052'), ('Colombia*****', 25, '651', '7', 0, '1.34', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 25, '892', '444', NULL, '4.15', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,708', '635', 0, '3.79', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 26, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 23, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,230', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,252', '28,977', 17, '8.83', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 26, NULL, '17', 0, '0.01', 0, '130,223'), ('United States of America >', 27, NULL, NULL, 14, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '17', 14, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 26, '204', NULL, NULL, '4.16', NULL, '4,905'), ('El Salvador', 26, '330', '0', 0, '5.35', 0, '6,167'), ('Guatemala', 22, '200', NULL, NULL, '1.18', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 26, '495', '8', NULL, '8.09', NULL, '6,217'), ('Panama******', 26, '970', '12', 1, '24.24', NULL, '4,051'), ('Subtotal', NULL, '2,199', '20', 1, '4.72', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 26, '135', '37', NULL, '60.99', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 25, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '135', '74', 0, '0.55', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 26, '3,074', '22', 0, '28.01', NULL, '11,052'), ('Colombia*****', 26, '674', '6', 0, '1.39', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 26, '903', '476', NULL, '4.29', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,742', '666', 0, '3.84', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 27, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 24, '739', '5', NULL, '10.92', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, '0.00', NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,230', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '60,539', '29,007', 17, '8.86', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 11, NULL, '8', 0, '0.01', 0, '130,223'), ('United States of America >', 12, NULL, NULL, 5, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '8', 5, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 9, '99', NULL, NULL, '2.02', NULL, '4,905'), ('El Salvador', 11, '139', '0', 0, '2.25', 0, '6,167'), ('Guatemala***', 9, '83', NULL, NULL, '0.49', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 11, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 8, '317', NULL, 1, '7.83', NULL, '4,051'), ('Subtotal', NULL, '638', '8', 1, '1.37', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 10, NULL, '5', NULL, '0.14', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '5', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia****', 9, '539', '0', 0, '4.88', NULL, '11,052'), ('Colombia', 11, '353', '5', 0, '0.73', 0, '49,067'), ('Ecuador', 10, NULL, '29', NULL, '0.17', NULL, '16,625'), ('Peru**', 11, '312', '38', NULL, '1.09', NULL, '32,166'), ('Venezuela', 11, '64', '4', 0, '0.21', 0, '31,925'), ('Subtotal', NULL, '1,268', '76', 0, '0.95', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 11, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 7, '8,116', '2,178', NULL, '4.87', 1, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 9, '672', '0', NULL, '9.87', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '8,788', '2,178', 2, '3.86', 1, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '10,694', '2,275', 8, '1.28', 1, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 10, NULL, '8', 0, '0.01', 0, '130,223'), ('United States of America >', 11, NULL, NULL, 3, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '8', 3, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 9, '99', NULL, NULL, '2.02', NULL, '4,905'), ('El Salvador', 10, '123', '0', 0, '1.99', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 8, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 8, '317', NULL, 1, '7.83', NULL, '4,051'), ('Subtotal', NULL, '539', '8', 1, '1.16', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 9, NULL, '5', NULL, '0.14', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '5', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 8, '242', '0', 0, '2.19', NULL, '11,052'), ('Colombia', 10, '323', '5', 0, '0.67', 0, '49,067'), ('Ecuador', 10, NULL, '29', NULL, '0.17', NULL, '16,625'), ('Peru**', 10, '289', '28', NULL, '0.99', NULL, '32,166'), ('Venezuela', 8, '39', '4', 0, '0.13', 0, '31,925'), ('Subtotal', NULL, '893', '66', 0, '0.68', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 10, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 7, '8,116', '2,178', NULL, '4.87', 1, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 8, '632', '0', NULL, '9.28', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '8,748', '2,178', 2, '3.85', 1, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '10,180', '2,265', 6, '1.23', 1, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 20, NULL, '15', 0, '0.01', 0, '130,223'), ('United States of America >', 21, NULL, NULL, 9, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '15', 9, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 20, '148', NULL, NULL, '3.02', NULL, '4,905'), ('El Salvador', 20, '238', '0', 0, '3.86', 0, '6,167'), ('Guatemala', 14, '123', NULL, NULL, '0.72', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 20, '377', '8', NULL, '6.19', NULL, '6,217'), ('Panama', 17, '716', '8', 1, '17.87', NULL, '4,051'), ('Subtotal', NULL, '1,602', '16', 1, '3.44', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 17, '65', '19', NULL, '29.79', NULL, '282'), ('Guadaloupe (2)', 12, NULL, '5', NULL, '1.06', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 14, NULL, '9', NULL, NULL, NULL, '396'), ('Puerto Rico', 19, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 10, '0', '2', NULL, '28.57', NULL, '7'), ('Saint Martin (French part) (2)', 9, '0', '2', NULL, '6.25', NULL, '32'), ('Subtotal', NULL, '65', '45', 0, '0.29', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 19, '2,144', '0', 0, '19.40', NULL, '11,052'), ('Colombia*****', 20, '570', '8', 0, '1.18', 0, '49,067'), ('Ecuador', 17, NULL, '85', NULL, '0.51', NULL, '16,625'), ('Peru**', 21, '871', '249', NULL, '3.48', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '3,676', '349', 0, '2.86', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 21, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 18, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,229', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 9, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '58,806', '28,654', 12, '8.65', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 8, NULL, '7', 0, '0.01', 0, '130,223'), ('United States of America >', 9, NULL, NULL, 3, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '7', 3, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 7, '86', NULL, NULL, '1.75', NULL, '4,905'), ('El Salvador', 8, '88', '0', 0, '1.43', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 8, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 4, '207', NULL, NULL, '5.11', NULL, '4,051'), ('Subtotal', NULL, '381', '8', 0, '0.83', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 8, NULL, '5', NULL, '0.14', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '5', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', NULL, NULL, NULL, NULL, '0.00', NULL, '11,052'), ('Colombia', 8, '275', '4', 0, '0.57', 0, '49,067'), ('Ecuador', 5, NULL, '9', NULL, '0.05', NULL, '16,625'), ('Peru**', 8, '211', '28', NULL, '0.74', NULL, '32,166'), ('Venezuela', 8, '39', '4', 0, '0.13', 0, '31,925'), ('Subtotal', NULL, '525', '45', 0, '0.40', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 8, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 4, '3,190', '564', NULL, '1.78', 1, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 5, '423', NULL, NULL, '6.21', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '3,613', '564', 2, '1.47', 1, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 4, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '4,519', '629', 5, '0.51', 1, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 21, NULL, '15', 0, '0.01', 0, '130,223'), ('United States of America >', 22, NULL, NULL, 9, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '15', 9, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 20, '148', NULL, NULL, '3.02', NULL, '4,905'), ('El Salvador', 21, '253', '0', 0, '4.10', 0, '6,167'), ('Guatemala', 17, '154', NULL, NULL, '0.91', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 20, '377', '8', NULL, '6.19', NULL, '6,217'), ('Panama', 22, '774', '8', 1, '19.30', NULL, '4,051'), ('Subtotal', NULL, '1,706', '16', 1, '3.66', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 17, '65', '19', NULL, '29.79', NULL, '282'), ('Guadaloupe (2)', 12, NULL, '5', NULL, '1.06', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 14, NULL, '9', NULL, NULL, NULL, '396'), ('Puerto Rico', 20, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 10, '0', '2', NULL, '28.57', NULL, '7'), ('Saint Martin (French part) (2)', 9, '0', '2', NULL, '6.25', NULL, '32'), ('Subtotal', NULL, '65', '45', 0, '0.29', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 19, '2,144', '0', 0, '19.40', NULL, '11,052'), ('Colombia*****', 21, '586', '8', 0, '1.21', 0, '49,067'), ('Ecuador', 21, NULL, '130', NULL, '0.78', NULL, '16,625'), ('Peru**', 21, '871', '249', NULL, '3.48', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '3,692', '394', 0, '2.90', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 22, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 19, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,229', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 13, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '58,926', '28,699', 12, '8.67', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 22, NULL, '15', 0, '0.01', 0, '130,223'), ('United States of America >', 23, NULL, NULL, 10, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '15', 10, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 22, '163', NULL, NULL, '3.32', NULL, '4,905'), ('El Salvador', 21, '253', '0', 0, '4.10', 0, '6,167'), ('Guatemala', 17, '154', NULL, NULL, '0.91', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 20, '377', '8', NULL, '6.19', NULL, '6,217'), ('Panama', 22, '774', '8', 1, '19.30', NULL, '4,051'), ('Subtotal', NULL, '1,721', '16', 1, '3.69', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 17, '65', '19', NULL, '29.79', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 21, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '65', '56', 0, '0.32', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 19, '2,664', '22', 0, '24.30', NULL, '11,052'), ('Colombia*****', 22, '598', '8', 0, '1.24', 0, '49,067'), ('Ecuador', 22, NULL, '146', NULL, '0.88', NULL, '16,625'), ('Peru**', 22, '841', '281', NULL, '3.49', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,194', '464', 0, '3.31', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 23, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 19, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,229', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '59,443', '28,780', 13, '8.73', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, '0.00', NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 23, NULL, '15', 0, '0.01', 0, '130,223'), ('United States of America >', 24, NULL, NULL, 11, '0.00', 0, '326,474'), ('Subtotal', NULL, '0', '15', 11, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 22, '163', NULL, NULL, '3.32', NULL, '4,905'), ('El Salvador', 23, '292', '0', 0, '4.73', 0, '6,167'), ('Guatemala', 20, '172', NULL, NULL, '1.01', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 24, '448', '8', NULL, '7.33', NULL, '6,217'), ('Panama', 22, '774', '8', 1, '19.30', NULL, '4,051'), ('Subtotal', NULL, '1,849', '16', 1, '3.97', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana (1)', 17, '65', '19', NULL, '29.79', NULL, '282'), ('Guadaloupe (2)', 22, NULL, '9', NULL, '1.91', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique (2)', 22, NULL, '14', NULL, NULL, NULL, '396'), ('Puerto Rico', 22, NULL, '8', NULL, '0.22', NULL, '3,679'), ('Saint Barthelemy (2)', 20, '0', '3', NULL, '42.86', NULL, '7'), ('Saint Martin (French part) (2)', 22, '0', '3', NULL, '9.38', NULL, '32'), ('Subtotal', NULL, '65', '56', 0, '0.32', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia ****', 19, '2,664', '22', 0, '24.30', NULL, '11,052'), ('Colombia*****', 23, '612', '7', 0, '1.26', 0, '49,067'), ('Ecuador', 23, NULL, '155', NULL, '0.93', NULL, '16,625'), ('Peru**', 23, '821', '361', NULL, '3.67', NULL, '32,166'), ('Venezuela', 16, '91', '7', 0, '0.31', 0, '31,925'), ('Subtotal', NULL, '4,188', '552', 0, '3.37', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 24, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 19, '52,724', '28,225', NULL, '38.32', 13, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 21, '739', '4', NULL, '10.91', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '53,463', '28,229', 2, '28.76', 13, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, '0.00', NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, '0.00', NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, '0.00', NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, '0.00', NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, '0.00', NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, '0.00', NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, '0.00', NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, '0.00', NULL, '774'), ('Jamaica', 21, NULL, '0', NULL, '0.00', NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, '0.00', NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, '0.00', NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, '0.00', NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, '0.00', NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, '0.00', NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, '0.00', NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, '0.00', NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, '0.00', NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, '0.00', 0, '7,370'), ('TOTAL', NULL, '59,565', '28,868', 14, '8.75', 13, '1,010,724'), ('North America', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bermuda', NULL, NULL, NULL, NULL, NULL, NULL, '71'), ('Canada', NULL, NULL, NULL, NULL, NULL, NULL, '36,626'), ('Mexico', 9, NULL, '8', 0, '0.01', 0, '130,223'), ('United States of America >', 10, NULL, NULL, 3, NULL, 0, '326,474'), ('Subtotal', NULL, '0', '8', 3, '0.00', 0, '493,394'), ('Central American Isthmus', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Belize', NULL, NULL, NULL, NULL, '0.00', NULL, '374'), ('Costa Rica', 9, '99', NULL, NULL, '2.02', NULL, '4,905'), ('El Salvador', 9, '104', '0', 0, '1.69', 0, '6,167'), ('Guatemala', NULL, NULL, NULL, NULL, '0.00', NULL, '17,005'), ('Honduras', NULL, NULL, NULL, NULL, '0.00', NULL, '8,304'), ('Nicaragua', 8, NULL, '8', NULL, '0.13', NULL, '6,217'), ('Panama', 8, '317', NULL, 1, '7.83', NULL, '4,051'), ('Subtotal', NULL, '520', '8', 1, '1.12', 0, '47,023'), ('Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Cuba', NULL, NULL, NULL, NULL, NULL, NULL, '11,390'), ('Dominican Republic', NULL, NULL, NULL, NULL, '0.00', NULL, '10,766'), ('French Guiana', NULL, NULL, NULL, NULL, '0.00', NULL, '282'), ('Guadaloupe', NULL, NULL, NULL, NULL, '0.00', NULL, '472'), ('Haiti', NULL, NULL, NULL, NULL, '0.00', NULL, '10,983'), ('Martinique', NULL, NULL, NULL, NULL, NULL, NULL, '396'), ('Puerto Rico', 9, NULL, '5', NULL, '0.14', NULL, '3,679'), ('Saint Barthelemy', 5, '0', '0', NULL, '0.00', NULL, '7'), ('Saint Martin (French part)', 5, '0', '0', NULL, '0.00', NULL, '32'), ('Subtotal', NULL, '0', '5', 0, '0.01', 0, '38,007'), ('Andean Area', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Bolivia', 8, '242', '0', 0, '2.19', NULL, '11,052'), ('Colombia', 9, '295', '4', 0, '0.61', 0, '49,067'), ('Ecuador', 9, NULL, '26', NULL, '0.16', NULL, '16,625'), ('Peru**', 9, '258', '27', NULL, '0.89', NULL, '32,166'), ('Venezuela', 8, '39', '4', 0, '0.13', 0, '31,925'), ('Subtotal', NULL, '834', '61', 0, '0.64', 0, '140,835'), ('Southern Cone', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Argentina', 9, '0', '0', NULL, '0.00', NULL, '44,272'), ('Brazil', 7, '8,116', '2,178', NULL, '4.87', 1, '211,243'), ('Chile', 3, NULL, NULL, 1, '0.00', NULL, '18,313'), ('Paraguay*', 6, '508', NULL, NULL, '7.46', NULL, '6,811'), ('Uruguay', 2, NULL, NULL, 1, NULL, NULL, '3,456'), ('Subtotal', NULL, '8,624', '2,178', 2, '3.80', 1, '284,095'), ('Non-Latin Caribbean', NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Anguilla', NULL, NULL, NULL, NULL, NULL, NULL, '17'), ('Antigua and Barbuda', NULL, NULL, NULL, NULL, NULL, NULL, '95'), ('Aruba', NULL, NULL, NULL, NULL, NULL, NULL, '115'), ('Bahamas', NULL, NULL, NULL, NULL, NULL, NULL, '397'), ('Barbados', NULL, NULL, NULL, NULL, NULL, NULL, '292'), ('Cayman Islands', NULL, NULL, NULL, NULL, NULL, NULL, '58'), ('Curacao', NULL, NULL, NULL, NULL, NULL, NULL, '149'), ('Dominica', NULL, NULL, NULL, NULL, NULL, NULL, '74'), ('Grenada', NULL, NULL, NULL, NULL, NULL, NULL, '111'), ('Guyana', NULL, NULL, NULL, NULL, NULL, NULL, '774'), ('Jamaica', 4, NULL, '0', NULL, NULL, NULL, '2,813'), ('Montserrat', NULL, NULL, NULL, NULL, NULL, NULL, '5'), ('Saint Kitts and Nevis', NULL, NULL, NULL, NULL, NULL, NULL, '52'), ('Saint Lucia', NULL, NULL, NULL, NULL, NULL, NULL, '164'), ('Saint Vincent and the Grenadines', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Sint Maarten (Dutch part)', NULL, NULL, NULL, NULL, NULL, NULL, '42'), ('Suriname', NULL, NULL, NULL, NULL, NULL, NULL, '552'), ('Trinidad and Tobago', NULL, NULL, NULL, NULL, NULL, NULL, '1,369'), ('Turks and Caicos Islands', NULL, NULL, NULL, NULL, NULL, NULL, '52'), ('Virgin Islands (UK)', NULL, NULL, NULL, NULL, NULL, NULL, '35'), ('Virgin Islands (US)', NULL, NULL, NULL, NULL, NULL, NULL, '102'), ('Subtotal', NULL, '0', '0', 0, NULL, 0, '7,370'), ('TOTAL', NULL, '9,978', '2,260', 6, '1.21', 1, '1,010,724'); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
5102762b3e92080d51336848c30c0d3b31b7b98a
SQL
erezrubinstein/aa
/retail_queries/matching/address_matching.sql
UTF-8
5,711
3.578125
4
[]
no_license
--exact match by full address select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retaildb_test_oct2012.dbo.stores s1 with (nolock) on s1.company_id = s0.company_id inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where a1.fulladdress = a0.fulladdress --24293 of 30337 --exact match by 4 digit long lat select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retaildb_test_oct2012.dbo.stores s1 with (nolock) on s1.company_id = s0.company_id inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where round(a1.longitude,4) = round(a0.longitude,4) and round(a1.latitude,4) = round(a0.latitude,4) --22484 of 30337 select 30337 - 22484 --7853 mismatch --exact match by 3 digit long lat select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retaildb_test_oct2012.dbo.stores s1 with (nolock) on s1.company_id = s0.company_id inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where round(a1.longitude,3) = round(a0.longitude,3) and round(a1.latitude,3) = round(a0.latitude,3) --23953 of 30337 select 30337 - 23953 --6384 mismatch --exact match by 2 digit long lat select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retaildb_test_oct2012.dbo.stores s1 with (nolock) on s1.company_id = s0.company_id inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where round(a1.longitude,2) = round(a0.longitude,2) and round(a1.latitude,2) = round(a0.latitude,2) --27864 of 30337 select 30337 - 27864 --2473 mismatch --exact match by 2 digit long lat select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retaildb_test_oct2012.dbo.stores s1 with (nolock) on s1.company_id = s0.company_id inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where round(a1.longitude,2) = round(a0.longitude,2) and round(a1.latitude,2) = round(a0.latitude,2) --27864 of 30337 --exact match by phone number select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retaildb_test_oct2012.dbo.stores s1 with (nolock) on s1.company_id = s0.company_id inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where s0.phone_number = s1.phone_number --13031 of 303377 --2 digit long lat OR phone number select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retaildb_test_oct2012.dbo.stores s1 with (nolock) on s1.company_id = s0.company_id inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where ( round(a1.longitude,2) = round(a0.longitude,2) and round(a1.latitude,2) = round(a0.latitude,2) --27864 of 30337 ) or s0.phone_number = s1.phone_number --13031 of 303377 --full address matches + 4 digits of long/lat matches (i.e. precise to 11.1m at the equator) select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id where exists ( select 1 from retaildb_test_oct2012.dbo.stores s1 with (nolock) inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where s1.company_id = s0.company_id and a1.fulladdress = a0.fulladdress and round(a1.longitude,4) = round(a0.longitude,4) and round(a1.latitude,4) = round(a0.latitude,4) ) --18959 total --full address matches + full long/lat matches (i.e. very precise) select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id where exists ( select 1 from retaildb_test_oct2012.dbo.stores s1 with (nolock) inner join retaildb_test_oct2012.dbo.addresses_vw a1 with (nolock) on a1.store_id = s1.id where s1.company_id = s0.company_id and a1.fulladdress = a0.fulladdress and a1.longitude = a0.longitude and a1.latitude = a0.latitude ) --11236 total
true
040e279f3f2afe72bf794003dafb4ed01575bd34
SQL
lordnynex/CLEANUP
/FORKS/Shell/uber-scripts/tree/postgresql/sql/c1_01_database_common_stat.sql
UTF-8
575
3.125
3
[ "WTFPL", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
-- Database structure checklist. -- Show databases common view SELECT datname, numbackends, xact_commit, (tup_returned + tup_fetched) as reads, (tup_inserted + tup_updated + tup_deleted) as writes, round(((100 * tup_inserted + tup_updated + tup_deleted) / (tup_inserted + tup_updated + tup_deleted + tup_returned + tup_fetched)::numeric),3) as write_ratio, pg_size_pretty(pg_database_size(datname)), stats_reset FROM pg_stat_database WHERE (tup_inserted + tup_updated + tup_deleted + tup_returned + tup_fetched) > 0 ORDER BY pg_database_size(datname) DESC;
true
9de978c24179527f2970640d101e4f661197ac25
SQL
alexnec37/tsql-scripts
/diagnostics/execution-stats/last-hour-query-stats.sql
UTF-8
1,626
3.3125
3
[ "MIT" ]
permissive
----------------------------------------------------------------- -- -- rudi@babaluga.com, go ahead license ----------------------------------------------------------------- SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; SELECT qs.execution_count ,qs.last_rows ,SUBSTRING(st.text, (qs.statement_start_offset / 2) + 1, ((CASE qs.statement_end_offset WHEN - 1 THEN DATALENGTH(st.text) ELSE QS.statement_end_offset END - QS.statement_start_offset) / 2) + 1) AS stmt ,qp.query_plan ,CAST(qs.creation_time as datetime2(0)) as creation_time ,CAST(qs.last_worker_time / 1000.0 as numeric(18, 2)) as last_w_t_ms ,CAST(qs.last_execution_time as datetime2(0)) as last_exec_time ,CAST(qs.min_worker_time / 1000.0 as numeric(18, 2)) as min_w_t_ms ,CAST(qs.max_worker_time / 1000.0 as numeric(18, 2)) as max_w_t_ms ,CAST(qs.last_elapsed_time / 1000.0 as numeric(18, 2)) as last_elapsed_t_ms ,CAST(qs.min_elapsed_time / 1000.0 as numeric(18, 2)) as min_elapsed_t_ms ,CAST(qs.max_elapsed_time / 1000.0 as numeric(18, 2)) as max_elapsed_t_ms ,qs.last_logical_reads ,qs.last_rows ,qs.last_clr_time --,qs.statement_sql_handle --,qs.statement_context_id ,qs.last_dop ,qs.max_dop ,qs.last_grant_kb ,qs.last_used_grant_kb ,qs.total_spills ,qs.last_spills FROM sys.dm_exec_query_stats qs CROSS APPLY sys.dm_exec_sql_text(qs.plan_handle) st CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp WHERE qs.execution_count > 1 AND qs.last_execution_time >= DATEADD(hour, -1, CURRENT_TIMESTAMP) AND st.dbid = DB_ID() ORDER BY last_elapsed_t_ms DESC OPTION (RECOMPILE, MAXDOP 1);
true
9f3bec5cd982e2759f874986429a6a2af41ac799
SQL
mason-ge/worknotes
/报表/成长路径/PC/按老师/数据引擎/原sql.sql
UTF-8
1,187
3.953125
4
[]
no_license
SELECT TBL.* FROM ( SELECT t2.path_name AS path_name, t3. NAME AS checkpoint_name, su1.user_code AS student_code, su1. NAME AS student_name, su2.user_code AS teacher_code, su2. NAME AS teacher_name, IF ( t6.student_assess_detail_id IS NULL, '未评估', '已评估' ) AS is_assess, t5.total_score, t5.score, t6.create_time AS evaluate_time FROM growup_checkpoint_detail t1 LEFT JOIN growup_path t2 ON ( t1.growup_path_id = t2.growup_path_id AND t2.app_id = 'csb' ) LEFT JOIN growup_checkpoint t3 ON ( t1.checkpoint_id = t3.checkpoint_id AND t3.app_id = 'csb' ) LEFT JOIN growup_checkpoint_man_detail t4 ON ( t1.user_id = t4.user_id AND t4.app_id = 'csb' ) LEFT JOIN growup_student_assess_star t5 ON ( t1.user_id = t5.create_user AND t1.checkpoint_id = t5.checkpoint_id AND t5.app_id = 'csb' ) LEFT JOIN growup_student_assess_result t6 ON ( t1.user_id = t6.create_user AND t6.app_id = 'csb' ) LEFT JOIN sys_user su1 ON ( t1.user_id = su1.sys_user_id AND su1.app_id = 'csb' ) LEFT JOIN sys_user su2 ON ( t4.teaching_user_id = su2.sys_user_id AND su2.app_id = 'csb' ) WHERE t1.app_id = 'csb' ) TBL
true
cec26bdb361ccbe44c70f0e4f856023987cbb232
SQL
rohini-raja/leetcode
/problems/article-views-i/mysql_schemas.sql
UTF-8
833
2.859375
3
[ "MIT" ]
permissive
Create table If Not Exists Views (article_id int, author_id int, viewer_id int, view_date date); Truncate table Views; insert into Views (article_id, author_id, viewer_id, view_date) values ('1', '3', '5', '2019-08-01'); insert into Views (article_id, author_id, viewer_id, view_date) values ('1', '3', '6', '2019-08-02'); insert into Views (article_id, author_id, viewer_id, view_date) values ('2', '7', '7', '2019-08-01'); insert into Views (article_id, author_id, viewer_id, view_date) values ('2', '7', '6', '2019-08-02'); insert into Views (article_id, author_id, viewer_id, view_date) values ('4', '7', '1', '2019-07-22'); insert into Views (article_id, author_id, viewer_id, view_date) values ('3', '4', '4', '2019-07-21'); insert into Views (article_id, author_id, viewer_id, view_date) values ('3', '4', '4', '2019-07-21');
true
1e8ee573f9b9554c818f277380909af567d4e722
SQL
paoloap/blogads
/sql/1.0.0/init_datatables.sql
UTF-8
1,966
3.765625
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema blogads -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `blog` DEFAULT CHARACTER SET utf8 ; USE `blog` ; -- ----------------------------------------------------- -- Table `bglogin`.`Article` -- ----------------------------------------------------- CREATE table Article ( ARTICLE_ID int NOT NULL AUTO_INCREMENT primary key, A_TITLE varchar(50), A_BODY varchar(500), A_DATA DATE, A_AUTHOR varchar(30) ) -- ----------------------------------------------------- -- Table `bglogin`.`Comment` -- ----------------------------------------------------- CREATE table Comment ( COMMENT_ID int NOT NULL AUTO_INCREMENT primary key, C_BODY varchar(300), C_AUTHOR varchar(30), C_EMAIL varchar(30), C_ARTICLE_ID int, CONSTRAINT C_ARTICLE_ID FOREIGN KEY (C_ARTICLE_ID) REFERENCES Article(ARTICLE_ID) ON DELETE CASCADE ON UPDATE CASCADE ) -- ----------------------------------------------------- -- Table `bglogin`.`Tag` -- ----------------------------------------------------- CREATE table Tag ( TAG_ID int NOT NULL AUTO_INCREMENT primary key, T_NAME varchar(30) NOT NULL UNIQUE ) -- ----------------------------------------------------- -- Table `bglogin`.`Article_Tag` -- ----------------------------------------------------- CREATE table Article_Tag ( ID int NOT NULL AUTO_INCREMENT primary key, ARTICLE_ID int NOT NULL, TAG_ID int NOT NULL, CONSTRAINT `FK_ARTICLE_ID` FOREIGN KEY (`ARTICLE_ID`) REFERENCES `Article` (`ARTICLE_ID`), CONSTRAINT `FK_TAG_ID` FOREIGN KEY (`TAG_ID`) REFERENCES `Tag` (`TAG_ID`) ) SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
true
03c02323dd97d00cbd6700b3ce0d3e667293f22c
SQL
scchess/LabKey
/server/modules/study/resources/schemas/dbscripts/postgresql/obsolete/study-14.10-14.20.sql
UTF-8
3,353
3.0625
3
[]
no_license
/* * Copyright (c) 2014-2016 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* study-14.10-14.11.sql */ ALTER TABLE study.StudyDesignAssays ADD Target VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD Methodology VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD Category VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD TargetFunction VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD LeadContributor VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD Contact VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD Summary TEXT; ALTER TABLE study.StudyDesignAssays ADD Keywords TEXT; ALTER TABLE study.StudyDesignLabs ADD PI VARCHAR(200); ALTER TABLE study.StudyDesignLabs ADD Description TEXT; ALTER TABLE study.StudyDesignLabs ADD Summary TEXT; ALTER TABLE study.StudyDesignLabs ADD Institution VARCHAR(200); /* study-14.11-14.12.sql */ ALTER TABLE study.visit ALTER COLUMN protocolday DROP NOT NULL; ALTER TABLE study.visit ALTER COLUMN protocolday SET DEFAULT NULL; /* study-14.12-14.13.sql */ DROP TABLE study.VisitTag; CREATE TABLE study.VisitTag ( Name VARCHAR(200) NOT NULL, Caption VARCHAR(200) NOT NULL, Description TEXT, SingleUse BOOLEAN NOT NULL DEFAULT false, CreatedBy USERID, Created TIMESTAMP, ModifiedBy USERID, Modified TIMESTAMP, Container ENTITYID NOT NULL, CONSTRAINT PK_Name_Container PRIMARY KEY (Name, Container) ); /* study-14.13-14.14.sql */ ALTER TABLE study.StudySnapshot ADD ModifiedBy USERID; ALTER TABLE study.StudySnapshot ADD Modified TIMESTAMP; UPDATE study.StudySnapshot SET ModifiedBy = CreatedBy; UPDATE study.StudySnapshot SET Modified = Created; /* study-14.14-14.15.sql */ CREATE TABLE study.VisitTagMap ( RowId SERIAL NOT NULL, VisitTag CHARACTER VARYING(200) NOT NULL, VisitId INTEGER NOT NULL, CohortId INTEGER, Container ENTITYID NOT NULL, CONSTRAINT PK_VisitTagMap PRIMARY KEY (Container, RowId), CONSTRAINT VisitTagMap_Container_VisitTag_Key UNIQUE (Container, VisitTag, VisitId, CohortId) ); /* study-14.15-14.16.sql */ CREATE UNIQUE INDEX VisitTagMap_container_tag_visit_idx ON study.VisitTagMap (Container, VisitTag, VisitId) WHERE CohortId IS NULL; /* study-14.16-14.17.sql */ ALTER TABLE study.StudyDesignAssays ADD TargetType VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD TargetSubtype VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD Editorial TEXT; /* study-14.17-14.18.sql */ ALTER TABLE study.StudyDesignAssays RENAME COLUMN Target TO Type; ALTER TABLE study.StudyDesignAssays RENAME COLUMN Methodology TO Platform; ALTER TABLE study.StudyDesignAssays ADD AlternateName VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD Lab VARCHAR(200); ALTER TABLE study.StudyDesignAssays ADD LabPI VARCHAR(200);
true
791ada3144cb21b6ef39f9d764411d769a5668fc
SQL
Mzhussiyev/fastapi
/reporting/routes/sql/bpm/bpm.sql
UTF-8
214
2.640625
3
[]
no_license
select * from stage_performance.v_bpm_reporting vbr where start_date between :since and :until and ((:name = 'All' and process_definition_name is not null) or (:name != 'All' and process_definition_name = :name))
true
f79ee23557008e50f39908668a50bf933898ea07
SQL
saqibnizami/dat-dashboard
/app/queries/order_state_count.sql
UTF-8
153
2.96875
3
[]
no_license
SELECT DATE_TRUNC({}, created_at)::date AS created, state, count(DISTINCT id) FROM orders.orders_view GROUP BY state, created ORDER BY created DESC
true
b7b497624f806ed48852f08bdc77ddff17ee4873
SQL
clementgalidie/api-cinema
/database/tables/movies.sql
UTF-8
377
2.6875
3
[]
no_license
-- -- Database: `cinema-api` -- -- -------------------------------------------------------- -- -- `movies` table structure -- CREATE TABLE IF NOT EXISTS `movies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, `cover` varchar(128) NOT NULL, `genre` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
true
a0a13ea21accbad9142d90a1aea240946befd15a
SQL
maji94/ci-workshop
/database/db_workshop.sql
UTF-8
9,842
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 03, 2019 at 06:58 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 5.6.32 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: `db_workshop` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_absen` -- CREATE TABLE `tb_absen` ( `id` int(11) NOT NULL, `id_workshop` int(11) NOT NULL, `id_peserta` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tb_galeri` -- CREATE TABLE `tb_galeri` ( `id` int(11) NOT NULL, `judul` varchar(200) NOT NULL, `konten` text NOT NULL, `tanggal` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_galeri` -- INSERT INTO `tb_galeri` (`id`, `judul`, `konten`, `tanggal`) VALUES (16, '#TablighAkbarHUT51Bkl', 'a:3:{i:0;s:14:\"1572734859.jpg\";i:1;s:14:\"1572800784.jpg\";i:2;s:15:\"15728007841.jpg\";}', '2019-11-02'); -- -------------------------------------------------------- -- -- Table structure for table `tb_narasumber` -- CREATE TABLE `tb_narasumber` ( `id` int(11) NOT NULL, `foto` varchar(80) NOT NULL, `nama` varchar(80) NOT NULL, `jns_kelamin` varchar(20) NOT NULL, `keterangan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_narasumber` -- INSERT INTO `tb_narasumber` (`id`, `foto`, `nama`, `jns_kelamin`, `keterangan`) VALUES (2, '1570328784.jpg', 'Suparmaji, S.Kom', 'laki', 'Holisticly benchmark best-of-breed value and business niches. Dynamically evolve vertical catalysts for change via global meta-services. Authoritatively innovate high-payoff internal or \"organic\" sources and synergistic leadership skills. Continually transition tactical meta-services before robust content. Appropriately exploit high-payoff models and global schemas.\r\n\r\nProgressively procrastinate high-quality internal or \"organic\" sources after 24/7 outsourcing. Efficiently drive tactical manufactured products through interoperable human capital. Interactively disintermediate adaptive strategic theme areas for ethical niche markets. Completely recaptiualize plug-and-play collaboration.'), (3, '1570331904.jpeg', 'suparmaji2', 'laki', 'Conveniently engage business relationships and low-risk high-yield channels. Dramatically foster adaptive processes and frictionless platforms. Energistically seize customer directed leadership skills rather than extensive solutions. Authoritatively expedite ubiquitous e-services after bricks-and-clicks potentialities. Compellingly utilize standards compliant portals for intuitive e-tailers.\r\n\r\nMonotonectally engineer client-focused functionalities vis-a-vis holistic e-services. Uniquely monetize timely manufactured products via equity invested methodologies. Seamlessly drive orthogonal communities whereas inexpensive interfaces. Energistically streamline user-centric methods of empowerment for superior best practices. Uniquely.'), (17, '1570344659.jpg', 'mamang', 'laki', 'Intrinsicly embrace enterprise-wide systems before quality e-markets. Interactively deliver next-generation potentialities through cross-unit \"outside the box\" thinking. Seamlessly pontificate reliable potentialities for resource-leveling convergence. Uniquely whiteboard frictionless catalysts for change without extensive strategic theme areas. Compellingly utilize flexible materials through out-of-the-box leadership.\r\n\r\nCompetently administrate interoperable internal or \"organic\" sources via emerging models. Rapidiously recaptiualize just in time services rather than high standards in solutions. Interactively pontificate standardized web-readiness with client-based e-business. Conveniently impact pandemic.'); -- -------------------------------------------------------- -- -- Table structure for table `tb_pembina` -- CREATE TABLE `tb_pembina` ( `id` int(11) NOT NULL, `foto` text NOT NULL, `nip` varchar(32) NOT NULL, `nama` varchar(32) NOT NULL, `bidang` varchar(80) NOT NULL, `email` varchar(50) NOT NULL, `nohp` varchar(50) NOT NULL, `alamat` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_pembina` -- INSERT INTO `tb_pembina` (`id`, `foto`, `nip`, `nama`, `bidang`, `email`, `nohp`, `alamat`) VALUES (3, '1571672463.jpeg', '1771022407940007', 'Kozuki Oden', 'Bidang 2', 'suparmaji09@gmail.com', '082178556004', 'jl. serayu no 58'), (4, '1571991348.jpg', '1771022407940011', 'SAPUTRA BHAKTI WIJAYA', 'Bidang Urais', 'suparmaji09@gmail.com', '082178556004', 'jl. serayu'); -- -------------------------------------------------------- -- -- Table structure for table `tb_peserta` -- CREATE TABLE `tb_peserta` ( `id` int(11) NOT NULL, `foto` varchar(24) NOT NULL, `nip` varchar(32) NOT NULL, `nama` varchar(32) NOT NULL, `ktp` varchar(19) NOT NULL, `tmp_lahir` varchar(32) NOT NULL, `tgl_lahir` date NOT NULL, `jns_kelamin` varchar(20) NOT NULL, `agama` varchar(15) NOT NULL, `pendidikan` varchar(15) NOT NULL, `alamat_rm` text NOT NULL, `email` varchar(32) NOT NULL, `nohp` varchar(13) NOT NULL, `golongan` varchar(20) NOT NULL, `jabatan` varchar(20) NOT NULL, `unker` text NOT NULL, `kab` varchar(32) NOT NULL, `alamat_kt` text NOT NULL, `npwp` varchar(32) NOT NULL, `norek` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_peserta` -- INSERT INTO `tb_peserta` (`id`, `foto`, `nip`, `nama`, `ktp`, `tmp_lahir`, `tgl_lahir`, `jns_kelamin`, `agama`, `pendidikan`, `alamat_rm`, `email`, `nohp`, `golongan`, `jabatan`, `unker`, `kab`, `alamat_kt`, `npwp`, `norek`) VALUES (1, '1571481522.png', '1771022407940004', 'suparmaji', '1771022407940004', 'Bengkulu', '1994-07-24', 'laki', 'ISLAM', 'Sarjana 1', 'Jl. Serayu No. 48 Kelurahan Padang Harapan, Kecamatan Gading Cempaka', 'suparmaji09@gmail.com', '082178556004', 'IV.B', 'Pembina', 'Biro Pemerintahan dan Kesra', 'Provinsi Bengkulu', 'Jl. Pembangunan No. 01 Kota Bengkulu', '123456789101112', '12345678910 (Bank Bengkulu)'), (4, '1569948517.jpg', '1771022407940006', 'suparmaji4', '1771022407940004', 'Bengkulu', '2019-10-01', 'laki', 'ISLAM', 'Sarjana 1', 'jl. bengawan solo', 'suparmaji09@gmail.com', '082178556004', 'IV/B', 'Pembina', 'Biro Hukum', 'Provinsi Bengkulu', 'Jl. Pembangunan No. 1', '12345678910', '123456789 (Bank Mandiri)'); -- -------------------------------------------------------- -- -- Table structure for table `tb_user` -- CREATE TABLE `tb_user` ( `id` int(11) NOT NULL, `username` varchar(24) NOT NULL, `password` varchar(32) NOT NULL, `hak_akses` enum('admin','pembina','peserta') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_user` -- INSERT INTO `tb_user` (`id`, `username`, `password`, `hak_akses`) VALUES (1, '1771022407940004', 'af15d5fdacd5fdfea300e88a8e253e82', 'peserta'), (5, '1771022407940006', 'af15d5fdacd5fdfea300e88a8e253e82', 'peserta'), (8, '1771022407940007', 'af15d5fdacd5fdfea300e88a8e253e82', 'pembina'), (9, 'admins', 'af15d5fdacd5fdfea300e88a8e253e82', 'admin'), (12, '1771022407940011', '0b4e7a0e5fe84ad35fb5f95b9ceeac79', 'pembina'); -- -------------------------------------------------------- -- -- Table structure for table `tb_workshop` -- CREATE TABLE `tb_workshop` ( `id` int(11) NOT NULL, `narasumber` text NOT NULL, `nm_kegiatan` varchar(200) NOT NULL, `status` enum('open','ongoing','close') NOT NULL, `tgl_buka` date NOT NULL, `tgl_tutup` date NOT NULL, `lokasi` varchar(80) NOT NULL, `kuota` int(11) NOT NULL, `judul_materi` varchar(200) NOT NULL, `file_materi` text NOT NULL, `keterangan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_absen` -- ALTER TABLE `tb_absen` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_galeri` -- ALTER TABLE `tb_galeri` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_narasumber` -- ALTER TABLE `tb_narasumber` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_pembina` -- ALTER TABLE `tb_pembina` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_peserta` -- ALTER TABLE `tb_peserta` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_user` -- ALTER TABLE `tb_user` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_workshop` -- ALTER TABLE `tb_workshop` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_absen` -- ALTER TABLE `tb_absen` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tb_galeri` -- ALTER TABLE `tb_galeri` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `tb_narasumber` -- ALTER TABLE `tb_narasumber` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `tb_pembina` -- ALTER TABLE `tb_pembina` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_peserta` -- ALTER TABLE `tb_peserta` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_user` -- ALTER TABLE `tb_user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `tb_workshop` -- ALTER TABLE `tb_workshop` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
bf95bb7830df1a9a154e915771e494175de3d145
SQL
bcgov/mds
/migrations/sql/V2020.06.01.10.10__add_new_bond_document_types.sql
UTF-8
1,532
3.1875
3
[ "Apache-2.0" ]
permissive
ALTER TABLE bond_document_type ADD COLUMN IF NOT EXISTS display_order integer NOT NULL DEFAULT 0; UPDATE bond_document_type SET description = 'Acknowledgement of Security Letter' WHERE bond_document_type_code = 'AKL'; UPDATE bond_document_type SET description = 'Scan of Reclamation Security Document' WHERE bond_document_type_code = 'SRB'; UPDATE bond_document_type SET active_ind = false WHERE bond_document_type_code = 'REL'; UPDATE bond_document_type SET display_order = 10 WHERE bond_document_type_code = 'AKL'; UPDATE bond_document_type SET display_order = 40 WHERE bond_document_type_code = 'CSF'; UPDATE bond_document_type SET display_order = 50 WHERE bond_document_type_code = 'CSL'; UPDATE bond_document_type SET display_order = 70 WHERE bond_document_type_code = 'RSF'; UPDATE bond_document_type SET display_order = 80 WHERE bond_document_type_code = 'RSL'; UPDATE bond_document_type SET display_order = 90 WHERE bond_document_type_code = 'REL'; UPDATE bond_document_type SET display_order = 100 WHERE bond_document_type_code = 'SRB'; INSERT INTO bond_document_type ( bond_document_type_code, description, create_user, update_user, display_order ) VALUES ('CNC', 'Change of Name Certificate', 'system-mds', 'system-mds', 30), ('BSR', 'Bond Status Request Letter', 'system-mds', 'system-mds', 20), ('NIA', 'No Interest Acknowledgement Form', 'system-mds', 'system-mds', 60), ('SIB', 'Security Instructions for Bank', 'system-mds', 'system-mds', 110) ON CONFLICT DO NOTHING;
true
77583d09b6cf6f559adfbfb76a32bee062ad380e
SQL
Arctruzeh/thumbstopper
/question_2.sql
UTF-8
124
3.625
4
[]
no_license
SELECT u.id, u.name, c.name FROM users u LEFT JOIN clients c ON u.client_id = c.id ORDER BY u.id ASC
true
e67c6cb60d42b9adad5d6e2daa8f87eb490710de
SQL
soatok/headless-lounge-bot
/sql/00-telegram.sql
UTF-8
1,688
3.78125
4
[]
no_license
CREATE TABLE IF NOT EXISTS headless_users ( userid BIGSERIAL PRIMARY KEY, telegram_user BIGINT UNIQUE, twitch_user BIGINT NULL UNIQUE, patreon_user BIGINT NULL UNIQUE, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE TABLE IF NOT EXISTS headless_users_oauth ( oauthid BIGSERIAL PRIMARY KEY, userid BIGINT REFERENCES headless_users (userid), service TEXT, -- Twitch, Patreon, etc. serviceid TEXT, -- Twitch broadcaster ID, Patreon page ID, etc. url_token TEXT UNIQUE, refresh_token TEXT, access_token TEXT, access_expires TIMESTAMP, scope TEXT, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE UNIQUE INDEX ON headless_users_oauth (userid, service); CREATE TABLE IF NOT EXISTS headless_channels ( channelid BIGSERIAL PRIMARY KEY, channel_user_id BIGINT NULL REFERENCES headless_users(userid), telegram_chat_id TEXT, twitch_sub_only BOOLEAN DEFAULT FALSE, twitch_sub_minimum INTEGER DEFAULT 0, patreon_supporters_only BOOLEAN DEFAULT FALSE, patreon_rank_minimum INTEGER DEFAULT 0, exceptions TEXT, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE TABLE IF NOT EXISTS headless_user_private ( privateid BIGSERIAL PRIMARY KEY, telegram_user_id BIGINT, status TEXT, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE TABLE IF NOT EXISTS headless_channel_users ( userid BIGINT REFERENCES headless_users (userid), channelid BIGINT REFERENCES headless_channels (channelid), created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() );
true
b6c611238faf2e4a68d3eeff2f78299d746f4e13
SQL
jalvaran/tss_eps
/migrationsOld/2019_07_11_01_ts_eps_ips.sql
UTF-8
15,047
2.90625
3
[]
no_license
CREATE TABLE `copagos_pendientes` ( `ID` int(20) NOT NULL AUTO_INCREMENT, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor registrado', `NumeroRegistros` int(6) DEFAULT NULL COMMENT 'numero de registros', `Aplicados` int(6) DEFAULT NULL COMMENT 'aplicados', `Errores` int(6) DEFAULT NULL COMMENT 'errores', `NoEnviados` int(6) DEFAULT NULL COMMENT 'no enviados', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` varchar(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`ID`), KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de copagos'; CREATE TABLE `devoluciones_pendientes` ( `ID` int(20) NOT NULL AUTO_INCREMENT, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor registrado', `NumeroRegistros` int(6) DEFAULT NULL COMMENT 'numero de registros', `Aplicados` int(6) DEFAULT NULL COMMENT 'aplicados', `Errores` int(6) DEFAULT NULL COMMENT 'errores', `NoEnviados` int(6) DEFAULT NULL COMMENT 'no enviados', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` varchar(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`ID`), KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de devoluciones'; CREATE TABLE `notas_pendientes` ( `ID` int(20) NOT NULL AUTO_INCREMENT, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor registrado', `NumeroRegistros` int(6) DEFAULT NULL COMMENT 'numero de registros', `Aplicados` int(6) DEFAULT NULL COMMENT 'aplicados', `Errores` int(6) DEFAULT NULL COMMENT 'errores', `NoEnviados` int(6) DEFAULT NULL COMMENT 'no enviados', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` varchar(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`ID`), KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de nota credito'; CREATE TABLE `radicadospendientes` ( `ID` int(20) NOT NULL AUTO_INCREMENT, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `ModalidadContratacion` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Modalidad de la Contratacion', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor de la factura menos impuestos de ley', `EstadoAuditoria` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Estado de auditoria', `EstadoRadicacion` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Estado del radicado', `FechaAprobacion` date NOT NULL COMMENT 'Fecha de Aprobacion', `UsuarioAprobacion` int(20) DEFAULT NULL COMMENT 'usuario de aprobacion', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` varchar(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`ID`), KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`), KEY `EstadoRadicacion` (`EstadoRadicacion`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de radicado'; CREATE TABLE `temp_copagos_pendientes` ( `ID` varchar(1) COLLATE utf8_spanish_ci NOT NULL, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor registrado', `NumeroRegistros` int(6) DEFAULT NULL COMMENT 'numero de registros', `Aplicados` int(6) DEFAULT NULL COMMENT 'aplicados', `Errores` int(6) DEFAULT NULL COMMENT 'errores', `NoEnviados` int(6) DEFAULT NULL COMMENT 'no enviados', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` char(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de copagos'; CREATE TABLE `temp_devoluciones_pendientes` ( `ID` varchar(1) COLLATE utf8_spanish_ci NOT NULL, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor registrado', `NumeroRegistros` int(6) DEFAULT NULL COMMENT 'numero de registros', `Aplicados` int(6) DEFAULT NULL COMMENT 'aplicados', `Errores` int(6) DEFAULT NULL COMMENT 'errores', `NoEnviados` int(6) DEFAULT NULL COMMENT 'no enviados', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` varchar(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de devoluciones'; CREATE TABLE `temp_notas_pendientes` ( `ID` varchar(1) COLLATE utf8_spanish_ci NOT NULL, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor registrado', `NumeroRegistros` int(6) DEFAULT NULL COMMENT 'numero de registros', `Aplicados` int(6) DEFAULT NULL COMMENT 'aplicados', `Errores` int(6) DEFAULT NULL COMMENT 'errores', `NoEnviados` int(6) DEFAULT NULL COMMENT 'no enviados', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` varchar(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de nota credito'; CREATE TABLE `temp_radicadospendientes` ( `ID` varchar(1) COLLATE utf8_spanish_ci NOT NULL, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Departamento donde se radica la cuenta', `FechaRadicacion` date NOT NULL COMMENT 'Fecha de Radicacion', `Nit_IPS` bigint(20) NOT NULL COMMENT 'Número de identificación del prestador de servicios de salud', `RazonSocial` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Razón social o apellidos y nombre del prestador', `TipoContrato` varchar(30) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Tipo del contrato', `ModalidadContratacion` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Modalidad de la Contratacion', `NumeroContrato` varchar(40) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Numero de contrato al que esta sujeto la factura', `Valor` double(15,2) NOT NULL COMMENT 'Valor de la factura menos impuestos de ley', `EstadoAuditoria` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Estado de auditoria', `EstadoRadicacion` varchar(60) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Estado del radicado', `FechaAprobacion` date NOT NULL COMMENT 'Fecha de Aprobacion', `UsuarioAprobacion` int(20) DEFAULT NULL COMMENT 'usuario de aprobacion', `Soporte` varchar(200) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Documento que soporta el cargue ', `idUser` int(11) NOT NULL, `FechaRegistro` datetime NOT NULL COMMENT 'Fecha que se hace el registro', `keyFile` varchar(90) COLLATE utf8_spanish_ci NOT NULL, `Sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `NumeroRadicado` (`NumeroRadicado`), KEY `Nit_IPS` (`Nit_IPS`), KEY `TipoContrato` (`TipoContrato`), KEY `NumeroContrato` (`NumeroContrato`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci COMMENT='Tabla Envios de radicado';
true
77fc7bca96e0ba72bf4d9bb792b8d917bf5739d5
SQL
arifbedor/Pemrograman3
/JavaDesktopUTS/Java Desktop UTS/javadesktop.sql
UTF-8
3,251
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 29, 2015 at 07:57 PM -- Server version: 5.5.32 -- PHP Version: 5.4.19 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: `javadesktop` -- -- -------------------------------------------------------- -- -- Table structure for table `tabelgaji` -- CREATE TABLE IF NOT EXISTS `tabelgaji` ( `IdGaji` int(12) NOT NULL, `IdKaryawan` int(12) NOT NULL, `NamaKaryawan` varchar(30) NOT NULL, `Jabatan` varchar(30) NOT NULL, `Bulan` varchar(20) NOT NULL, `Tahun` int(15) NOT NULL, `GajiLembur` int(15) NOT NULL, `GajiPokok` int(15) NOT NULL, `Total` int(15) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tabelgajilembur` -- CREATE TABLE IF NOT EXISTS `tabelgajilembur` ( `IdLembur` int(12) NOT NULL, `IdKaryawan` int(12) NOT NULL, `JamLembur` varchar(20) NOT NULL, `GajiLembur` int(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabelgajilembur` -- INSERT INTO `tabelgajilembur` (`IdLembur`, `IdKaryawan`, `JamLembur`, `GajiLembur`) VALUES (456, 123, '12', 600000); -- -------------------------------------------------------- -- -- Table structure for table `tabeljabatan` -- CREATE TABLE IF NOT EXISTS `tabeljabatan` ( `IdJabatan` int(10) NOT NULL, `Jabatan` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabeljabatan` -- INSERT INTO `tabeljabatan` (`IdJabatan`, `Jabatan`) VALUES (121, 'IT Support'), (123, 'Web Programming'), (124, 'Web Developer'), (125, 'Web Designer'); -- -------------------------------------------------------- -- -- Table structure for table `tabelkaryawan` -- CREATE TABLE IF NOT EXISTS `tabelkaryawan` ( `IdKaryawan` int(12) NOT NULL, `NamaKaryawan` varchar(50) NOT NULL, `Jabatan` varchar(30) NOT NULL, `JenisKelamin` varchar(15) NOT NULL, `Alamat` varchar(50) NOT NULL, `GajiPokok` int(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tabelkaryawan` -- INSERT INTO `tabelkaryawan` (`IdKaryawan`, `NamaKaryawan`, `Jabatan`, `JenisKelamin`, `Alamat`, `GajiPokok`) VALUES (123, 'Arief Rachman', 'Manager', 'Laki-laki', 'Ciracas, Jaktim', 7000000); -- -- Indexes for dumped tables -- -- -- Indexes for table `tabelgaji` -- ALTER TABLE `tabelgaji` ADD PRIMARY KEY (`IdGaji`); -- -- Indexes for table `tabelgajilembur` -- ALTER TABLE `tabelgajilembur` ADD PRIMARY KEY (`IdLembur`); -- -- Indexes for table `tabeljabatan` -- ALTER TABLE `tabeljabatan` ADD PRIMARY KEY (`IdJabatan`); -- -- Indexes for table `tabelkaryawan` -- ALTER TABLE `tabelkaryawan` ADD PRIMARY KEY (`IdKaryawan`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
3d9b4e5b9725c93c768ccec2fef516960f30cd71
SQL
Thodei/Maplan
/maplan_avant.sql
UTF-8
5,035
2.65625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : jeu. 24 jan. 2019 à 09:37 -- Version du serveur : 10.1.37-MariaDB -- Version de PHP : 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `maplan` -- -- -------------------------------------------------------- -- -- Structure de la table `local` -- CREATE TABLE `local` ( `id` int(255) NOT NULL, `nom` varchar(255) NOT NULL, `posx` float NOT NULL, `posy` float NOT NULL, `nomfichier` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Déchargement des données de la table `local` -- INSERT INTO `local` (`id`, `nom`, `posx`, `posy`, `nomfichier`) VALUES (7, 'LC0301', 246, 114, 'image_test_complete.png'), (10, 'LC0304', 515, 301, 'image_test_complete.png'), (13, 'LD0303', 1054, 300, 'image_test_complete.png'), (14, 'LD0302', 795, 305, 'image_test_complete.png'), (15, 'LD0305', 811, 353, 'image_test_complete.png'), (16, 'ld0306', 996, 359, 'image_test_complete.png'), (17, 'LD0307', 1075, 435, 'image_test_complete.png'), (18, 'LD0308', 1173, 432, 'image_test_complete.png'), (19, 'LD0313', 1121, 514, 'image_test_complete.png'), (20, 'LD0312', 1036, 640, 'image_test_complete.png'), (21, 'LD0311', 821, 567, 'image_test_complete.png'), (22, 'LD0315', 1202, 746, 'image_test_complete.png'), (23, 'LD0314', 1206, 629, 'image_test_complete.png'), (24, 'LD0317', 1209, 880, 'image_test_complete.png'), (25, 'LD0316', 1165, 820, 'image_test_complete.png'), (26, 'LD0318', 1054, 882, 'image_test_complete.png'), (27, 'LC0312', 475, 555, 'image_test_complete.png'), (28, 'LC0311', 288, 625, 'image_test_complete.png'), (29, 'LC0310', 182, 518, 'image_test_complete.png'), (30, 'LC0314', 104, 630, 'image_test_complete.png'), (31, 'LC0315', 102, 749, 'image_test_complete.png'), (32, 'LC0317', 126, 860, 'image_test_complete.png'), (33, 'LC0316', 152, 822, 'image_test_complete.png'), (34, 'LC0303', 297, 302, 'image_test_complete.png'), (35, 'LC0308', 329, 351, 'image_test_complete.png'), (36, 'LC0306', 153, 437, 'image_test_complete.png'), (37, 'LC0307', 244, 437, 'image_test_complete.png'), (38, 'LC0309', 503, 352, 'image_test_complete.png'), (39, 'RE0903', 474, 506, 'reacteur.png'), (43, 'RD0905', 719, 852, 'reacteur.png'), (66, 'RB0903', 477, 281, 'reacteur.png'), (68, 'RE0904', 454, 692, 'reacteur.png'), (69, 'RE0901', 560, 699, 'reacteur.png'), (84, 'RC0904', 962, 287, 'reacteur.png'), (86, 'RC0905', 969, 189, 'reacteur.png'), (87, 'RE0902', 602, 554, 'reacteur.png'), (88, 'RB0901', 587, 445, 'reacteur.png'), (89, 'RC0902', 826, 442, 'reacteur.png'), (90, 'RD0901', 819, 555, 'reacteur.png'), (91, 'RD0902', 862, 695, 'reacteur.png'), (93, 'RE0905', 409, 782, 'reacteur.png'), (98, 'RC0901', 868, 312, 'reacteur.png'), (99, 'RE0906', 391, 500, 'reacteur.png'), (100, 'RA0903', 710, 777, 'reacteur.png'), (102, 'RB0906', 540, 225, 'reacteur.png'), (105, 'RD0903', 980, 688, 'reacteur.png'), (106, 'RC0903', 1023, 550, 'reacteur.png'), (112, 'LC0301', 1027, 104, 'image_test_complete.png'), (114, 'LC0305', 16, 526, 'image_test_complete.png'), (115, 'LC0302', 73, 224, 'image_test_complete.png'), (116, 'RD0904', 1020, 772, 'reacteur.png'), (117, 'RA0901', 708, 493, 'reacteur.png'), (118, 'RA0902', 714, 369, 'reacteur.png'), (119, 'RB0905', 707, 293, 'reacteur.png'), (121, 'RB0902', 561, 309, 'reacteur.png'), (122, 'RB0904', 467, 177, 'reacteur.png'); -- -------------------------------------------------------- -- -- Structure de la table `membres` -- CREATE TABLE `membres` ( `id` int(11) NOT NULL, `pseudo` varchar(255) NOT NULL, `pass` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `id_groupe` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Déchargement des données de la table `membres` -- INSERT INTO `membres` (`id`, `pseudo`, `pass`, `id_groupe`) VALUES (1, 'Thomas', 'Azerty$1', 2), (2, 'admin', 'admin', 2), (6, 'Utilisateur', 'motdepasse', 1); -- -- Index pour les tables déchargées -- -- -- Index pour la table `local` -- ALTER TABLE `local` ADD PRIMARY KEY (`id`); -- -- Index pour la table `membres` -- ALTER TABLE `membres` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables déchargées -- -- -- AUTO_INCREMENT pour la table `local` -- ALTER TABLE `local` MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=123; -- -- AUTO_INCREMENT pour la table `membres` -- ALTER TABLE `membres` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
ef205047c8399c20e6f516ee3e32d213d9fb7a3a
SQL
ogabeezle/SIAKAD-Penilaian
/penilaian.sql
UTF-8
8,885
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 15, 2019 at 04:02 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `penilaian` -- CREATE DATABASE IF NOT EXISTS `penilaian`; USE `penilaian`; -- -------------------------------------------------------- -- -- Table structure for table `aktivitas_mengajar` -- CREATE TABLE `aktivitas_mengajar` ( `dosen_id` varchar(50) NOT NULL, `kelas_id` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `aktivitas_mengajar` -- INSERT INTO `aktivitas_mengajar` (`dosen_id`, `kelas_id`) VALUES ('dosen1', 'kelas1'); INSERT INTO `aktivitas_mengajar` (`dosen_id`, `kelas_id`) VALUES ('dosen1', 'kelas2'); -- -------------------------------------------------------- -- -- Table structure for table `dosen` -- CREATE TABLE `dosen` ( `id` varchar(50) NOT NULL, `nama` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `dosen` -- INSERT INTO `dosen` (`id`, `nama`) VALUES ('dosen1', 'bapak dosen1'); -- -------------------------------------------------------- -- -- Table structure for table `evaluasi_pembelajaran` -- CREATE TABLE `evaluasi_pembelajaran` ( `kelas_id` varchar(50) NOT NULL, `dosen_id` varchar(50) NOT NULL, `jumlah_penilaian` int(11) NOT NULL, `nama_evaluasi_1` varchar(20) NOT NULL, `persentase_1` decimal(10,2) NOT NULL, `nama_evaluasi_2` varchar(20) NOT NULL, `persentase_2` decimal(10,2) NOT NULL, `nama_evaluasi_3` varchar(20) NOT NULL, `persentase_3` decimal(10,2) NOT NULL, `nama_evaluasi_4` varchar(20) NOT NULL, `persentase_4` decimal(10,2) NOT NULL, `nama_evaluasi_5` varchar(20) NOT NULL, `persentase_5` decimal(10,2) NOT NULL, `nama_evaluasi_6` varchar(20) NOT NULL, `persentase_6` decimal(10,2) NOT NULL, `nama_evaluasi_7` varchar(20) NOT NULL, `persentase_7` decimal(10,2) NOT NULL, `nama_evaluasi_8` varchar(20) NOT NULL, `persentase_8` decimal(10,2) NOT NULL, `is_fixed` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `evaluasi_pembelajaran` -- INSERT INTO `evaluasi_pembelajaran` (`kelas_id`, `dosen_id`, `jumlah_penilaian`, `nama_evaluasi_1`, `persentase_1`, `nama_evaluasi_2`, `persentase_2`, `nama_evaluasi_3`, `persentase_3`, `nama_evaluasi_4`, `persentase_4`, `nama_evaluasi_5`, `persentase_5`, `nama_evaluasi_6`, `persentase_6`, `nama_evaluasi_7`, `persentase_7`, `nama_evaluasi_8`, `persentase_8`, `is_fixed`) VALUES ('kelas1', 'dosen1', 107, 'UTS', '14.00', 'EAS', '14.00', 'eval3', '14.00', 'eval4', '13.00', 'eval5', '13.00', 'eval6', '13.00', 'eval7', '13.00', 'eval8', '13.00', 1), ('kelas2', 'dosen1', 107, 'eval1', '14.00', 'eval2', '14.00', 'eval3', '14.00', 'eval4', '13.00', 'eval5', '13.00', 'eval6', '13.00', 'eval7', '13.00', 'eval8', '13.00', 1); -- -------------------------------------------------------- -- -- Table structure for table `kelas` -- CREATE TABLE `kelas` ( `id` varchar(50) NOT NULL, `semester_id` varchar(50) NOT NULL, `mata_kuliah_id` varchar(50) NOT NULL, `nama` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `kelas` -- INSERT INTO `kelas` (`id`, `semester_id`, `mata_kuliah_id`, `nama`) VALUES ('kelas1', 'semester1', 'matakuliah1', 'kelas 1'); INSERT INTO `kelas` (`id`, `semester_id`, `mata_kuliah_id`, `nama`) VALUES ('kelas2', 'semester1', 'matakuliah2', 'kelas 2'); -- -------------------------------------------------------- -- -- Table structure for table `kuliah` -- CREATE TABLE `kuliah` ( `nrp` varchar(20) NOT NULL, `kelas_id` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `mahasiswa` -- CREATE TABLE `mahasiswa` ( `nrp` varchar(20) NOT NULL, `nama` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `mahasiswa` -- INSERT INTO `mahasiswa` (`nrp`, `nama`) VALUES ('5116100097', 'michael'), ('5116100006', 'rahadian'), ('5116100016', 'taufiq'); -- -------------------------------------------------------- -- -- Table structure for table `mata_kuliah` -- CREATE TABLE `mata_kuliah` ( `id` varchar(50) NOT NULL, `nama` varchar(50) NOT NULL, `kode_matkul` varchar(10) NOT NULL, `sks` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `mata_kuliah` -- INSERT INTO `mata_kuliah` (`id`, `nama`, `kode_matkul`, `sks`) VALUES ('matakuliah1', 'matakuliah 1', 'mk1', 4); INSERT INTO `mata_kuliah` (`id`, `nama`, `kode_matkul`, `sks`) VALUES ('matakuliah2', 'matakuliah 2', 'mk2', 4); -- -------------------------------------------------------- -- -- Table structure for table `nilai` -- CREATE TABLE `nilai` ( `id` varchar(50) NOT NULL, `nilai_numerik` decimal(4,2) NOT NULL, `nilai_huruf` varchar(5) NOT NULL, `batas_atas` decimal(5,2) NOT NULL, `batas_bawah` decimal(5,2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; insert into `nilai`(`id`,`nilai_numerik`,`nilai_huruf`,`batas_atas`,`batas_bawah`) values(1,4,'A',100,86); insert into `nilai`(`id`,`nilai_numerik`,`nilai_huruf`,`batas_atas`,`batas_bawah`) values(2,3.5,'AB',86,80); insert into `nilai`(`id`,`nilai_numerik`,`nilai_huruf`,`batas_atas`,`batas_bawah`) values(3,3,'B',80,75); insert into `nilai`(`id`,`nilai_numerik`,`nilai_huruf`,`batas_atas`,`batas_bawah`) values(4,2.5,'BC',75,61); insert into `nilai`(`id`,`nilai_numerik`,`nilai_huruf`,`batas_atas`,`batas_bawah`) values(5,2,'C',61,55); insert into `nilai`(`id`,`nilai_numerik`,`nilai_huruf`,`batas_atas`,`batas_bawah`) values(6,1,'D',55,50); insert into `nilai`(`id`,`nilai_numerik`,`nilai_huruf`,`batas_atas`,`batas_bawah`) values(7,0,'E',50,0); -- -------------------------------------------------------- -- -- Table structure for table `nilai_evaluasi_pembelajaran` -- CREATE TABLE `nilai_evaluasi_pembelajaran` ( `mahasiswa_id` varchar(50) NOT NULL, `kelas_id` varchar(50) NOT NULL, `nilai_1` decimal(10,0) NOT NULL, `nilai_2` decimal(10,0) NOT NULL, `nilai_3` decimal(10,0) NOT NULL, `nilai_4` decimal(10,0) NOT NULL, `nilai_5` decimal(10,0) NOT NULL, `nilai_6` decimal(10,0) NOT NULL, `nilai_7` decimal(10,0) NOT NULL, `nilai_8` decimal(10,0) NOT NULL, `nilai_angka` decimal(10,0) NOT NULL, `nilai_huruf` varchar(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `nilai_evaluasi_pembelajaran` -- INSERT INTO `nilai_evaluasi_pembelajaran` (`mahasiswa_id`, `kelas_id`, `nilai_1`, `nilai_2`, `nilai_3`, `nilai_4`, `nilai_5`, `nilai_6`, `nilai_7`, `nilai_8`, `nilai_angka`, `nilai_huruf`) VALUES ('5116100097', 'kelas1', '90', '80', '80', '80', '80', '80', '80', '80', '0', 'AB'), ('5116100006', 'kelas1', '80', '80', '80', '80', '80', '80', '80', '80', '80', 'AB'); INSERT INTO `nilai_evaluasi_pembelajaran` (`mahasiswa_id`, `kelas_id`, `nilai_1`, `nilai_2`, `nilai_3`, `nilai_4`, `nilai_5`, `nilai_6`, `nilai_7`, `nilai_8`, `nilai_angka`, `nilai_huruf`) VALUES ('5116100097', 'kelas2', '90', '80', '80', '80', '80', '80', '80', '80', '0', 'AB'), ('5116100016', 'kelas2', '80', '80', '80', '80', '80', '80', '80', '80', '80', 'AB'); -- -------------------------------------------------------- -- -- Table structure for table `semester` -- CREATE TABLE `semester` ( `id` varchar(50) NOT NULL, `tahun_ajaran` int(11) NOT NULL, `semester` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `semester` -- INSERT INTO `semester` (`id`, `tahun_ajaran`, `semester`) VALUES ('semester1', 2019, 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `dosen` -- ALTER TABLE `dosen` ADD PRIMARY KEY (`id`); -- -- Indexes for table `evaluasi_pembelajaran` -- ALTER TABLE `evaluasi_pembelajaran` ADD PRIMARY KEY (`kelas_id`); -- -- Indexes for table `kelas` -- ALTER TABLE `kelas` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mahasiswa` -- ALTER TABLE `mahasiswa` ADD PRIMARY KEY (`nrp`); -- -- Indexes for table `mata_kuliah` -- ALTER TABLE `mata_kuliah` ADD PRIMARY KEY (`id`); -- -- Indexes for table `nilai` -- ALTER TABLE `nilai` ADD PRIMARY KEY (`id`); -- -- Indexes for table `semester` -- ALTER TABLE `semester` ADD PRIMARY KEY (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
ee503ebbf4c784e17229ad3c120892afc70ace1f
SQL
PhirePhly/blackflower
/data/updates/update-to-1_12_0.sql
UTF-8
970
3.5625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
SET @provides_database_version = '1.12.0.0'; SET @requires_code_version = '1.12.0'; SET @upgrade_from_database_version = '1.10.*'; INSERT INTO status_options VALUES ('Staged At Location'); -- Magic string ALTER TABLE channels ADD COLUMN staging_id INTEGER after incident_id; ALTER TABLE channels ADD INDEX(staging_id); CREATE TABLE staging_locations ( staging_id int not null auto_increment, location varchar(80), created_by varchar(80), time_created datetime not null, time_released datetime, staging_notes TEXT, PRIMARY KEY (staging_id) ); CREATE TABLE unit_staging_assignments ( staging_assignment_id int not null auto_increment , staged_at_location_id int not null, unit_name varchar(20), time_staged datetime not null, time_reassigned datetime, PRIMARY KEY (staging_assignment_id), INDEX(staged_at_location_id), INDEX(unit_name) );
true
6b4cda928ae9fb236d392e13b0648ad76e18b431
SQL
PolyCash/polycash
/src/sql/126.sql
UTF-8
664
3.5
4
[ "MIT" ]
permissive
ALTER TABLE `addresses` ADD `address_set_id` INT NULL DEFAULT NULL AFTER `primary_blockchain_id`; ALTER TABLE `addresses` ADD UNIQUE (`address_set_id`, `option_index`); ALTER TABLE `addresses` ADD INDEX (`address_set_id`); CREATE TABLE `address_sets` ( `address_set_id` int(11) NOT NULL, `game_id` int(11) DEFAULT NULL, `applied` tinyint(1) NOT NULL DEFAULT '0', `has_option_indices_until` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `address_sets` ADD PRIMARY KEY (`address_set_id`), ADD KEY `game_id` (`game_id`,`applied`); ALTER TABLE `address_sets` MODIFY `address_set_id` int(11) NOT NULL AUTO_INCREMENT; COMMIT;
true
b92a332177f2689643cf86abe3f57bf76ec49d6e
SQL
jdfenlason/c0321-code-solutions
/sql-aggregates/profit-margin.sql
UTF-8
828
3.734375
4
[]
no_license
with "cte_revenue" as ( select "films"."title" as "film", "films"."filmId", sum("payments"."amount") as "revenue" from "films" join "inventory" using ("filmId") join "rentals" using ("inventoryId") join "payments" using ("rentalId") group by "films"."filmId" ), "cte_cost" as ( select "films"."title" as "film", "films"."filmId", sum("films"."replacementCost") as "cost" from "films" join "inventory" using ("filmId") group by "films"."filmId" ) select "cte_revenue"."film", "cte_revenue"."filmId", "cte_revenue"."revenue" as "revenue", "cte_cost"."cost" as "replacementCost", "cte_revenue"."revenue" - "cte_cost"."cost" as "profit" from "cte_revenue" join "cte_cost" using ("filmId") order by "profit" desc limit 5;
true
a752a2857fb73eeb99f84bfd840a3fa782bf863b
SQL
sgeorge-cb/turbo-potato
/database/create_tables.sql
UTF-8
1,460
2.671875
3
[]
no_license
CREATE SCHEMA oauth; CREATE TABLE users ( username varchar(256), password varchar(256), enabled tinyint(1) ); CREATE TABLE authorities ( username varchar(256), authority varchar(256) ); CREATE TABLE oauth_client_details ( client_id varchar(256), resource_ids varchar(256), client_secret varchar(256), scope varchar(256), authorized_grant_types varchar(256), web_server_redirect_uri varchar(256), authorities varchar(256), access_token_validity int(11), refresh_token_validity int(11), additional_information varchar(4096), autoapprove varchar(256) ); CREATE TABLE oauth_client_token ( token_id varchar(256), token mediumblob, authentication_id varchar(256), user_name varchar(256), client_id varchar(256) ); CREATE TABLE oauth_code ( code varchar(256), authentication mediumblob ); CREATE TABLE oauth_access_token ( token_id varchar(256), token mediumblob, authentication_id varchar(256), user_name varchar(256), client_id varchar(256), authentication mediumblob, refresh_token varchar(256) ); CREATE TABLE oauth_refresh_token ( token_id varchar(256), token mediumblob, authentication mediumblob );
true
9390b3de802db3eb480b0c7679ca4c045809835e
SQL
pipo6280/onda_fit
/bd_onda_fit_29_10_2017.sql
UTF-8
12,982
3.453125
3
[]
no_license
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.7.14-log : Database - onda_fit ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`onda_fit` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `onda_fit`; /*Table structure for table `cliente_ingresos` */ DROP TABLE IF EXISTS `cliente_ingresos`; CREATE TABLE `cliente_ingresos` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id del ingreso del cliente', `cliente_paquete_id` bigint(20) unsigned NOT NULL COMMENT 'Id del cliente relacionado con el paquete', `cliente_id` bigint(20) unsigned NOT NULL COMMENT 'Id del cliente', `fecha_ingreso` datetime NOT NULL COMMENT 'Fecha de ingreso', `usuario_id` bigint(20) unsigned NOT NULL COMMENT 'Id del usuario que registra', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `cliente_ingresos` */ /*Table structure for table `cliente_paquete` */ DROP TABLE IF EXISTS `cliente_paquete`; CREATE TABLE `cliente_paquete` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id principal', `cliente_id` bigint(20) unsigned NOT NULL COMMENT 'Id del cliente', `paquete_id` int(10) unsigned NOT NULL COMMENT 'Id del paquete', `descuento_id` int(10) unsigned DEFAULT NULL COMMENT 'Id del descuento', `numero_dias_tiquetera` smallint(2) unsigned DEFAULT NULL COMMENT 'Número de dias cuando es tiquetera', `dias_usados_tiquetera` smallint(2) unsigned DEFAULT NULL COMMENT 'Cada vez que ponga el dedo el cliente de tiquetera', `precio_base` decimal(12,2) NOT NULL COMMENT 'Precio base', `valor_total` decimal(12,2) NOT NULL COMMENT 'Valor total del paquete con descuento', `estado` smallint(1) unsigned NOT NULL DEFAULT '1' COMMENT 'Estado (1: Activo; 2: Vencido)', `fecha_inicia_paquete` date NOT NULL COMMENT 'Fecha de inicio paquete', `fecha_finaliza_paquete` date DEFAULT NULL COMMENT 'Fecha de finalizacion del paquete', `usuario_id` bigint(20) unsigned NOT NULL COMMENT 'Id del usuario registra', `fecha_registro` datetime NOT NULL COMMENT 'Fecha registro', `fecha_modificacion` datetime NOT NULL COMMENT 'Fecha modificación', `tipo_pago` smallint(1) unsigned NOT NULL COMMENT 'ETipoPago(1:Efectivo; 2:Tarjeta)', PRIMARY KEY (`id`), KEY `cliente_paquete_cliente_id_idx` (`paquete_id`), KEY `cliente_paquete_paquete_id_idx` (`cliente_id`), KEY `cliente_paquete_descuento_id_idx` (`descuento_id`), KEY `cliente_paquete_usuario_id_idx` (`usuario_id`), CONSTRAINT `cliente_paquete_cliente_id_fk` FOREIGN KEY (`paquete_id`) REFERENCES `paquetes` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `cliente_paquete_descuento_id_fk` FOREIGN KEY (`descuento_id`) REFERENCES `descuentos` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `cliente_paquete_paquete_id_fk` FOREIGN KEY (`cliente_id`) REFERENCES `clientes` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `cliente_paquete_usuario_id_fk` FOREIGN KEY (`usuario_id`) REFERENCES `usuarios` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `cliente_paquete` */ /*Table structure for table `clientes` */ DROP TABLE IF EXISTS `clientes`; CREATE TABLE `clientes` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `persona_id` bigint(20) unsigned NOT NULL, `peso` decimal(10,2) unsigned DEFAULT NULL, `talla` decimal(10,2) DEFAULT NULL, `muslo_ant` decimal(10,2) DEFAULT NULL, `triceps` decimal(10,2) DEFAULT NULL, `pectoral` decimal(10,2) DEFAULT NULL, `siliaco` decimal(10,2) DEFAULT NULL, `abdomen` decimal(10,2) DEFAULT NULL, `test_mmss` decimal(10,2) DEFAULT NULL, `test_mmii` decimal(10,2) DEFAULT NULL, `test_uno` decimal(10,2) DEFAULT NULL, `test_dos` decimal(10,2) DEFAULT NULL, `test_tres` decimal(10,2) DEFAULT NULL, `frecuencia_cardiaca` decimal(10,0) DEFAULT NULL, `tension_arterial` decimal(10,0) DEFAULT NULL, `peak_air` decimal(10,0) DEFAULT NULL, `observaciones` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `clientes_persona_id_idx` (`persona_id`), CONSTRAINT `clientes_persona_id_fk` FOREIGN KEY (`persona_id`) REFERENCES `personas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `clientes` */ insert into `clientes`(`id`,`persona_id`,`peso`,`talla`,`muslo_ant`,`triceps`,`pectoral`,`siliaco`,`abdomen`,`test_mmss`,`test_mmii`,`test_uno`,`test_dos`,`test_tres`,`frecuencia_cardiaca`,`tension_arterial`,`peak_air`,`observaciones`) values (1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); /*Table structure for table `descuentos` */ DROP TABLE IF EXISTS `descuentos`; CREATE TABLE `descuentos` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id del descuento', `nombre` varchar(45) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Nombre del descuento', `porcentaje` decimal(10,2) NOT NULL COMMENT 'Porcentaje del descuento', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `descuentos` */ /*Table structure for table `gastos` */ DROP TABLE IF EXISTS `gastos`; CREATE TABLE `gastos` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `descripcion` varchar(128) NOT NULL, `valor` decimal(10,0) unsigned NOT NULL, `fecha_registro` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `usuario_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gastos` */ /*Table structure for table `paquetes` */ DROP TABLE IF EXISTS `paquetes`; CREATE TABLE `paquetes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id del paquete', `nombre` varchar(45) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Nombre del paquete', `tipo` smallint(1) unsigned NOT NULL COMMENT 'ETipoPlan(1: Dia; 2: Mes; 3: Bimestre; 4: Trimestre; 5: Cuatrimestre; 6: Semestre; 7: Año)', `precio_base` decimal(10,0) unsigned NOT NULL COMMENT 'Precio base del paquete', `yn_tiquetera` smallint(1) unsigned NOT NULL DEFAULT '2' COMMENT 'Tiquetera(1: Si; 2: No)', `dias_aplazamiento` smallint(2) unsigned NOT NULL COMMENT 'Días de aplazamiento', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `paquetes` */ insert into `paquetes`(`id`,`nombre`,`tipo`,`precio_base`,`yn_tiquetera`,`dias_aplazamiento`) values (1,'mensualidad',2,100000,2,5); /*Table structure for table `personas` */ DROP TABLE IF EXISTS `personas`; CREATE TABLE `personas` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id de la persona', `primer_nombre` varchar(45) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Primer nombre', `segundo_nombre` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Segundo Nombre', `primer_apellido` varchar(45) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Primer apellido', `segundo_apellido` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Segundo apellido', `tipo_identificacion` smallint(1) unsigned NOT NULL COMMENT 'Tipo identificación (1. Tarjeta Identidad; 2: Cédula de ciudadanía; 3: Cédula de extranjería)', `numero_identificacion` varchar(12) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Número de identificacion', `lugar_expedicion` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Ciudad de expedición', `genero` smallint(1) unsigned NOT NULL COMMENT 'Genero (1: Masculino; 2: Femenino)', `estado_civil` smallint(1) unsigned DEFAULT NULL COMMENT 'Estado civil (1: Soltero; 2: Casado; 3: Unión Libre; 4: Viudo; 5: Separado; 6: Divorciado)', `fecha_nacimiento` date NOT NULL COMMENT 'Fecha de nacimiento', `direccion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Direción domicilio', `barrio` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Barrio domicilio', `telefono` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Teléfono domicilio', `movil` varchar(15) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Numero móvil o celular', `email` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Correo electrónico', `url_huella` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'ruta donde se encuentra el archivo de la huella guardada', `huella_dactilar` longblob COMMENT 'Huella dactilar', `foto_perfil` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Foto del perfil', `fecha_registro` datetime NOT NULL COMMENT 'Fecha registro', `fecha_modificacion` datetime NOT NULL COMMENT 'Fecha modificación', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tabla que representa las personas que intervienen en el sistema'; /*Data for the table `personas` */ insert into `personas`(`id`,`primer_nombre`,`segundo_nombre`,`primer_apellido`,`segundo_apellido`,`tipo_identificacion`,`numero_identificacion`,`lugar_expedicion`,`genero`,`estado_civil`,`fecha_nacimiento`,`direccion`,`barrio`,`telefono`,`movil`,`email`,`url_huella`,`huella_dactilar`,`foto_perfil`,`fecha_registro`,`fecha_modificacion`) values (1,'admin',NULL,'admin',NULL,1,'1234',NULL,1,1,'2016-08-13',NULL,NULL,NULL,'304334455',NULL,NULL,NULL,'cshsdhdgsd.php','2016-08-13 16:29:51','2016-08-20 16:29:43'); /*Table structure for table `producto_ventas` */ DROP TABLE IF EXISTS `producto_ventas`; CREATE TABLE `producto_ventas` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `productos_id` bigint(20) NOT NULL, `cantidad` double unsigned NOT NULL, `valor_total` double unsigned NOT NULL, `usuario_id` bigint(20) unsigned NOT NULL, `fecha_registro` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `cafeteria_usuario_id_fk_idx` (`usuario_id`), KEY `cafeteria_producto_id_fk_idx` (`productos_id`), CONSTRAINT `cafeteria_producto_id_fk` FOREIGN KEY (`productos_id`) REFERENCES `productos` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `cafeteria_usuario_id_fk` FOREIGN KEY (`usuario_id`) REFERENCES `usuarios` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `producto_ventas` */ /*Table structure for table `productos` */ DROP TABLE IF EXISTS `productos`; CREATE TABLE `productos` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Id del producto', `nombre` varchar(45) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Nombre del producto', `precio` decimal(10,2) NOT NULL COMMENT 'Precio del producto', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `productos` */ /*Table structure for table `usuarios` */ DROP TABLE IF EXISTS `usuarios`; CREATE TABLE `usuarios` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Id del usuario', `tipo_usuario` smallint(1) unsigned NOT NULL COMMENT 'Tipo de usuario(1: Admin; 2: Fisioterapeuta)', `persona_id` bigint(20) unsigned NOT NULL COMMENT 'Id de la persona', `loggin` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Loggin del usuario', `password` varchar(120) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Contrasena del usuario', `yn_activo` smallint(1) unsigned NOT NULL DEFAULT '1' COMMENT 'Activo(1: Si; 2: No)', `fecha_registro` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Fecha de registro', `fecha_modificacion` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Fecha modificación', PRIMARY KEY (`id`), UNIQUE KEY `loggin_UNIQUE` (`loggin`), KEY `usuarios_persona_id_idx` (`persona_id`), CONSTRAINT `usuarios_persona_id_fk` FOREIGN KEY (`persona_id`) REFERENCES `personas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*Data for the table `usuarios` */ insert into `usuarios`(`id`,`tipo_usuario`,`persona_id`,`loggin`,`password`,`yn_activo`,`fecha_registro`,`fecha_modificacion`) values (1,1,1,'root','81dc9bdb52d04dc20036dbd8313ed055',1,'2016-08-13 09:30:10','2016-08-13 09:30:10'); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
true
a3ed911ca5e1e0f9184a4f58e1ad29f88ac4cce0
SQL
greenplum-db/gpdb
/src/test/regress/sql/bitmapscan.sql
UTF-8
16,120
3.796875
4
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "OpenSSL", "LicenseRef-scancode-stream-benchmark", "ISC", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-ssleay-windows", "BSD-2-Clause", "Python-2.0" ]
permissive
create table bitmapscan_bug as select '2008-02-01'::DATE AS DT, case when j <= 96 then 0 when j<= 98 then 2 when j<= 99 then 3 when i % 1000 < 900 then 4 when i % 1000 < 800 then 5 when i % 1000 <= 998 then 5 else 6 end as ind, (i*117-j)::bigint as s from generate_series(1,100) i, generate_series(1,100) j distributed randomly; create table bitmapscan_bug2 as select * from bitmapscan_bug; insert into bitmapscan_bug select DT + 1, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 2, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 3, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 4, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 5, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 6, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 7, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 8, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 9, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 10, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 11, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 12, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 13, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 14, ind, s from bitmapscan_bug2; insert into bitmapscan_bug select DT + 15, ind, s from bitmapscan_bug2; create index bitmapscan_bug_idx on bitmapscan_bug using bitmap (ind, dt); vacuum analyze bitmapscan_bug; create table mpp4593_bmbug (dt date, ind int, s bigint); create index bmbug_idx on mpp4593_bmbug using bitmap(ind, dt); -- Test Bitmap Indexscan create table bm_test (a integer, b integer) distributed by (a); insert into bm_test select a, a%25 from generate_series(1,100) a; create index bm_test_a on bm_test (a); set enable_seqscan=off; set enable_indexscan=off; set enable_bitmapscan=on; -- returns one or more tuples select * from bm_test where a<10; -- returns no tuples select * from bm_test where a>100; -- Test Bitmap Heapscan + Bitmap OR + Bitmap Indexscan drop table if exists bm_test; create table bm_test (a integer, b integer) distributed by (a); insert into bm_test select a, a%25 from generate_series(1,100) a; -- Test on 2 btrees create index bm_test_a on bm_test (a); create index bm_test_b on bm_test (b); set enable_seqscan=off; set enable_indexscan=off; set enable_bitmapscan=on; select * from bm_test where a<100 or b>10; -- Returns no tuples from one branch select * from bm_test where a<100 or b>30; -- Returns no tuples from both branch select * from bm_test where a<1 or b>30; -- Test on 2 bitmaps drop index bm_test_a; drop index bm_test_b; create index bm_test_bm_a on bm_test using bitmap(a); create index bm_test_bm_b on bm_test using bitmap(b); select * from bm_test where a<100 or b>10; -- Returns no tuples from one branch select * from bm_test where a<100 or b>30; -- Returns no tuples from both branch select * from bm_test where a<1 or b>30; -- Test on 1 btree, 1 bitmap drop index bm_test_bm_a; drop index bm_test_bm_b; create index bm_test_a on bm_test (a); create index bm_test_bm_b on bm_test using bitmap(b); select * from bm_test where a<100 or b>10; -- Returns no tuples from one branch select * from bm_test where a<100 or b>30; -- Returns no tuples from both branch select * from bm_test where a<1 or b>30; -- Test ArrayKeys drop table if exists bm_test; create table bm_test (a integer, b integer) distributed by (a); insert into bm_test select a, a%25 from generate_series(1,100) a; create index bm_test_a on bm_test (a); set enable_seqscan=off; set enable_indexscan=off; set enable_bitmapscan=on; select * from bm_test where a in (1,3,5); drop table if exists bm_test; -- Create a heap table. CREATE TABLE card_heap_table_w_bitmap (id INTEGER, v VARCHAR) DISTRIBUTED BY (id); -- Insert a few rows. INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (1, 'Water molecules cling because their electrostatic charge is polarized.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (2, 'The first law of thermodynamics is that matter and energy can neither be created nor destroyed.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (3, 'The second law of thermodynamics essentially says that you cannot recycle energy.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (4, 'The mass of the universe is finite and static.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (5, 'Population is growing exponentially.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (6, 'What happens next?'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (7, 'Fusion works by fusing 4 hydrogen atoms into 1 helium atom, or by fusing 2 deuterium atoms (deuterium is an isotope of hydrogen in which the nucleus contains a neutron).'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (8, 'Give a man a fish, and he will eat for a day. Teach a man to fission, and he will blow up the planet for all eternity.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (9, 'Mercury, lead, and cadmium -- a day ago I had me some. Now I feel really dense.'); -- Now force the values in the "v" column to use up more space. UPDATE card_heap_table_w_bitmap SET v = v || v; UPDATE card_heap_table_w_bitmap SET v = v || v; UPDATE card_heap_table_w_bitmap SET v = v || v; UPDATE card_heap_table_w_bitmap SET v = v || v; UPDATE card_heap_table_w_bitmap SET v = v || v; UPDATE card_heap_table_w_bitmap SET v = v || v; UPDATE card_heap_table_w_bitmap SET v = v || v; UPDATE card_heap_table_w_bitmap SET v = v || v; -- Create a bitmap index. CREATE INDEX card_heap_bitmap_idx1 ON card_heap_table_w_bitmap USING BITMAP (v); -- Insert some more rows. INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (10, 'Rare earth metals are not the only rare metals in the earth.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (11, 'Who needs cinnabar when you have tuna?'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (12, 'This drunk walk cinnabar...'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (13, 'Hydrogen, helium, lithium.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (14, 'Hydrosphere, heliopause, lithosphere.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (15, 'Spelunking is not for the claustrophobic.'); INSERT INTO card_heap_table_w_bitmap (id, v) VALUES (16, 'Beam me up Spock. There is NO intelligent life on this planet.'); -- Add column to the table. -- The first column will have a low cardinality but a large domain. There -- will be only a few distinct values in this column, but the values will -- cover a wide range (from -2147483548 to +2147483647. Note that the 16 -- existing rows will get a value of NULL for this column. ALTER TABLE card_heap_table_w_bitmap ADD COLUMN lowCardinalityHighDomain INTEGER DEFAULT NULL; INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES ( 17, 'Can we stop malaria by breeding a mosquito that cannot host malaria?', -2147483647); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES ( 18, 'Andes, Butte, Cascades, Denali, Everest', 0); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES ( 19, 'Sawtooth, Sierras, Sangre de Cristos', 2147483647); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES ( 20, 'Ganges, Brahmaputra, Indus', -2147483648); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES ( 21, NULL, -2147483648); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES ( 22, 'Amazon, Mad, Mississipi, Ohio, Sacramento, Merced', -2147483647); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES ( 23, 'Yellow, Red, Green, Blue Nile, White Nile, denial', -2147483647); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES (24, 'Earthquake supplies: water, sleeping bag, hand sanitizer', 0); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES (25, 'radio, batteries, flashlight, camp stove', 2147483646); INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) VALUES (26, 'books, first aid equipment, axe, water purifier', 2147483647); -- Insert enough rows to get us up to 10,000 rows. INSERT INTO card_heap_table_w_bitmap (id, v, lowCardinalityHighDomain) SELECT i, CAST(i AS VARCHAR), i % 100 FROM generate_series(27, 10000) i; -- The following CREATE INDEX statements helps us test all of the following -- conditions: -- a multi-column index. -- an index that contains columns that are also in another index. -- a bitmap index on a column with a large domain but a small cardinality. CREATE INDEX index2 ON card_heap_table_w_bitmap USING BITMAP (lowCardinalityHighDomain, v); -- analyze the table ANALYZE card_heap_table_w_bitmap; -- Although we have 10,000 rows or more, the lowCardinalityHighDomain column -- has only about 104 distinct values: 0-99, -2147483648, -2147483647, -- 2147483647 and 2147483646. SELECT COUNT(DISTINCT lowCardinalityHighDomain) FROM card_heap_table_w_bitmap; -- There should be 99 rows with this value. SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain = 5; -- Each of these tests a "single-sided range". SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain < 0; SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain > 100; -- Select an individual row. SELECT * FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain = 2147483646; UPDATE card_heap_table_w_bitmap SET lowCardinalityHighDomain = NULL WHERE lowCardinalityHighDomain = 4; SELECT COUNT(DISTINCT lowCardinalityHighDomain) FROM card_heap_table_w_bitmap; -- There should be approximately 115 NULL values (99 that we just updated, -- and 16 original rows that got NULL when we added the column). SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain IS NULL; -- There should no longer be any rows with value 4. SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain = 4; -- We should have 10,000 rows now. SELECT COUNT(*) FROM card_heap_table_w_bitmap; -- This should delete 99 rows. DELETE FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain = 3; -- There should be 99 records like this. SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain = 22; -- Now reduce the cardinality DELETE FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain > 30 AND lowCardinalityHighDomain <= 50 AND lowCardinalityHighDomain % 2 = 0; SELECT COUNT(*) FROM card_heap_table_w_bitmap; SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain < 10; SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain > 100; SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain IS NULL; -- The number of rows updated here should be equal to the total number of rows -- minus the number that have lowCardinalityHighDomain less than 10 -- minus the number that have lowCardinalityHighDomain greater than 100 -- minus the number that are NULL (if any). UPDATE card_heap_table_w_bitmap SET lowCardinalityHighDomain = 200 WHERE lowCardinalityHighDomain >= 10 and lowCardinalityHighDomain <= 100; -- Should be around 14 rows. SELECT DISTINCT lowCardinalityHighDomain FROM card_heap_table_w_bitmap; REINDEX INDEX card_heap_bitmap_idx1; -- Should still be around 14 rows. SELECT DISTINCT lowCardinalityHighDomain FROM card_heap_table_w_bitmap; -- There should be 99 records like this. SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain = 7; -- There should be 7983 rows like this. SELECT COUNT(*) FROM card_heap_table_w_bitmap WHERE lowCardinalityHighDomain = 200; ALTER TABLE card_heap_table_w_bitmap RENAME COLUMN lowCardinalityHighDomain TO highCardinalityHighDomain; -- Now add a lot more rows with few repeated values so that the -- cardinality becomes quite high (around 50,000 distinct values) INSERT INTO card_heap_table_w_bitmap (id, v, highCardinalityHighDomain) SELECT i, CAST(i AS VARCHAR), i % 50000 FROM generate_series(1000001, 1050000) i; SELECT COUNT(DISTINCT(highCardinalityHighDomain)) AS distinct_hchd FROM card_heap_table_w_bitmap ORDER BY distinct_hchd; drop table if exists bm_test; -- Test if StreamNodes and StreamBitmaps are freed correctly. create table bm_table_foo (c int, d int) distributed by (c); create index ie_bm_table_foo on bm_table_foo using bitmap(d); insert into bm_table_foo values (1, 1); insert into bm_table_foo values (3, 3); -- Next queries will create additional StreamNodes. In particular, -- d in (1, 2) will be transformed into an OR with two BMS_INDEX input streams. select * from bm_table_foo where d in (1, 3) and (d = 1 or d = 3); select * from bm_table_foo where (d = 1 or d = 3) and d in (1, 3); -- This query will eliminate StreamNodes since there is no tuple where d =2. select * from bm_table_foo where d = 2 and (d = 1 or d = 3); -- If a segment contains tuples with d in (1, 3), then it will create the whole StreamNode tree, -- otherwise segments will eliminate nodes. select * from bm_table_foo where d = 3 and (d = 1 or d = 3); -- double free mixed bitmap indexes (StreamBitmap with TIDBitmap) CREATE TABLE bmheapcrash ( btree_col2 date DEFAULT now(), bitmap_col text NOT NULL, btree_col1 character varying(50) NOT NULL, dist_col serial ) DISTRIBUTED BY (dist_col); CREATE INDEX bm_heap_idx ON bmheapcrash USING bitmap (bitmap_col); CREATE INDEX bt_heap_idx ON bmheapcrash USING btree (btree_col1); CREATE INDEX bt_heap_idx_2 ON bmheapcrash USING btree (btree_col2); INSERT INTO bmheapcrash (btree_col2, bitmap_col, btree_col1) SELECT date '2015-01-01' + (i % (365 * 2)), i % 1000, 'abcdefg' || (i% 1000) from generate_series(1,10000) as i; select count(1) from bmheapcrash where bitmap_col = '999' AND btree_col1 = 'abcdefg999'; select count(1) from bmheapcrash where bitmap_col = '999' OR btree_col1 = 'abcdefg999'; select count(1) from bmheapcrash where bitmap_col = '999' OR btree_col1 = 'abcdefg999' AND btree_col2 = '2015-01-01'; select count(1) from bmheapcrash where bitmap_col = '999' AND btree_col1 = 'abcdefg999' OR btree_col2 = '2015-01-01'; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' AND bitmap_col = '999'; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' OR bitmap_col = '999' AND btree_col2 = '2015-01-01'; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' AND bitmap_col = '999' OR btree_col2 = '2015-01-01'; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' AND btree_col2 = '2015-01-01' OR bitmap_col = '999'; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' AND btree_col2 = '2015-01-01' AND bitmap_col = '999'; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' OR btree_col2 = '2015-01-01' AND bitmap_col = '999'; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' OR btree_col2 = '2015-01-01' OR bitmap_col = '999'; set enable_bitmapscan=on; set enable_hashjoin=off; set enable_indexscan=on; set enable_nestloop=on; set enable_seqscan=off; select count(1) from bmheapcrash where btree_col1 = 'abcdefg999' AND bitmap_col = '999' OR bitmap_col = '888' OR btree_col2 = '2015-01-01'; select count(1) from bmheapcrash b1, bmheapcrash b2 where b1.bitmap_col = b2.bitmap_col or b1.bitmap_col = '999' and b1.btree_col1 = 'abcdefg999'; set optimizer_enable_hashjoin = off; with bm as (select * from bmheapcrash where btree_col1 = 'abcdefg999' AND bitmap_col = '999' OR bitmap_col = '888' OR btree_col2 = '2015-01-01') select count(1) from bm b1, bm b2 where b1.dist_col = b2.dist_col; -- qual with like, any. with bm as (select * from bmheapcrash where (btree_col1 like 'abcde%') AND bitmap_col in ('999', '888')) select count(1) from bm b1, bm b2 where b1.dist_col = b2.dist_col;
true
1dfdf310291530763b70846c36984e928f0e9245
SQL
abirdatta/spring-boot-rest-api-user-management
/init-mysql.sql
UTF-8
1,059
4.0625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS mydb; GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'%' IDENTIFIED BY 'mysql'; GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'localhost' IDENTIFIED BY 'mysql'; USE mydb; CREATE TABLE IF NOT EXISTS user_type (user_type_id INT NOT NULL AUTO_INCREMENT, type VARCHAR(100), description VARCHAR(100), PRIMARY KEY (user_type_id)); CREATE TABLE IF NOT EXISTS user (user_id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(100), middle_name VARCHAR(100), last_name VARCHAR(100), email_id VARCHAR(100), password VARCHAR(100), city VARCHAR(100), country VARCHAR(100), user_type_id INT, PRIMARY KEY (user_id), CONSTRAINT FK_user_type FOREIGN KEY (user_type_id) REFERENCES user_type(user_type_id)); INSERT INTO user_type (type, description) SELECT 'broker', 'This is a broker type of user' FROM DUAL WHERE NOT EXISTS (SELECT type FROM user_type WHERE type = 'broker'); INSERT INTO user_type (type, description) SELECT 'owner', 'This is a owner type of user' FROM DUAL WHERE NOT EXISTS (SELECT type FROM user_type WHERE type = 'owner');
true
1812f20372390124fe0be41e0c689743356a7808
SQL
RedFirebreak/HBO-ICTMemes
/src/sql/old/overtredingen.sql
UTF-8
1,407
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 25, 2019 at 04:07 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.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: `hbo-ictmemes` -- -- -------------------------------------------------------- -- -- Table structure for table `overtredingen` -- CREATE TABLE if not exists`overtredingen` ( `overtreding` varchar(20) COLLATE utf8_general_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- -- Dumping data for table `overtredingen` -- INSERT INTO `overtredingen` (`overtreding`) VALUES ('dt-fout'), ('racisme'), ('slechte muzieksmaak'), ('stom gezicht'), ('verkeerde huidskleur'); -- -- Indexes for dumped tables -- -- -- Indexes for table `overtredingen` -- ALTER TABLE `overtredingen` ADD PRIMARY KEY if not exists (`overtreding`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
cb37b5e0058020416d9be18c44fa4619c13a0a43
SQL
umchooh/task-management
/sql/6_create_table_faq.sql
UTF-8
824
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Mar 08, 2021 at 06:40 PM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `task_management` -- -- -------------------------------------------------------- -- -- Table structure for table `faq` -- CREATE TABLE `faq` ( `id` int(11) NOT NULL, `question` varchar(255) DEFAULT NULL, `answer` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `faq` -- ALTER TABLE `faq` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `faq` -- ALTER TABLE `faq` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
true
72a66b05b421ea65952c745dad8c0a28d1eeeedf
SQL
sygns13/sistemafarmaciafacturaelectronica
/Sistema-Farma-PagoElectronico/para instalacion/Script.sql
UTF-8
3,669
3.453125
3
[]
no_license
-- ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- DELIMITER $$ DROP PROCEDURE IF EXISTS `pagoProveedor` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `pagoProveedor`(in id int,in fecha date,in montoPago decimal(9,2), montoReal decimal(9,2), esSoles boolean, in tipoPago varchar(45), in idBancoEmisor int, idBancoProveedor int ,in idCuenta int,in numeroCheque varchar(20),in idFactura int, in evt int) BEGIN IF evt = 0 then IF (tipoPago='Efectivo') THEN INSERT INTO pagoproveedor VALUES(null,fecha,montoPago,montoReal,0,null,null,null,null,idFactura,esSoles); ELSE IF (tipoPago='Cheque') then INSERT INTO pagoproveedor values(null,fecha,montoPago,montoReal,1,idBancoEmisor,null,null,numeroCheque,idFactura, esSoles); ELSE INSERT INTO pagoproveedor values(null,fecha,montoPago,montoReal,2,idBancoEmisor,idBancoProveedor,idCuenta,null,idFactura,esSoles); END IF; END IF; END IF; IF evt = 1 then IF (tipoPago='Efectivo') THEN UPDATE pagoproveedor p SET p.`tipoPago`=0, p.`fechapago`=fecha, p.`montoPago`=montoPago, p.`montoReal`=montoReal, p.`esSoles`=esSoles WHERE p.`idPagoProveedor`=id; ELSE IF (tipoPago='Cheque') then UPDATE pagoproveedor p SET p.`tipoPago`=1, p.`fechapago`=fecha, p.`montoPago`=montoPago, p.`montoReal`=montoReal, p.`esSoles`=esSoles, p.`idBancoEmisor`=idBancoEmisor, p.`numeroCheque`=numeroCheque WHERE p.`idPagoProveedor`=id; ELSE UPDATE pagoproveedor p SET p.`tipoPago`=2, p.`fechapago`=fecha, p.`montoPago`=montoPago, p.`montoReal`=montoReal, p.`esSoles`=esSoles, p.`idBancoEmisor`=idBancoEmisor, p.`idBancoProveedor`=idBancoProveedor, p.`idCuentaProveedor`=idCuenta WHERE p.`idPagoProveedor` = id; END IF; END IF; END IF; IF evt=2 THEN DELETE FROM pagoproveedor WHERE idPagoProveedor=id; END IF; END $$ DELIMITER ; -- ------------------------------------------------------------------------------- ALTER TABLE `bdabarrotes`.`facturaproveedor` ADD COLUMN `totalSoles` DECIMAL(9,2) NOT NULL DEFAULT 0 AFTER `idTipoComprobante`, ADD COLUMN `enSoles` BOOLEAN NOT NULL DEFAULT 1 AFTER `totalSoles`; -- ------------------------------------------------------------------------------- ALTER TABLE `bdabarrotes`.`pagoproveedor` CHANGE COLUMN `enSoles` `esSoles` TINYINT(1) NOT NULL DEFAULT 1; -- --------------------------------------------------------------------------------- ALTER TABLE `bdabarrotes`.`pagoproveedor` CHANGE COLUMN `monto` `montoPago` DECIMAL(9,2) NOT NULL DEFAULT '0.00', CHANGE COLUMN `montoSoles` `montoReal` DECIMAL(9,2) NOT NULL DEFAULT '0.00'; -- ------------------------------------------------------------------------------ DROP VIEW IF EXISTS `vta_catalogo`; CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vta_catalogo` AS select `p`.`idProduto` AS `ID`,concat(`tp`.`nomtip`,' ',`m`.`nommarc`,' ',`p`.`nomproducto`) AS `Descripcion`,`u`.`nomuniddes` AS `Unidad`,`p`.`StockMinimo` AS `StockMinimo`,`p`.`precxmayo` AS `Precxmayor`,`p`.`precxmeno` AS `Precxmenor`,`p`.`precioCompra` AS `precioCompra`,`p`.`grabado` AS `grabado`,`m`.`nommarc` AS `marca`,`tp`.`nomtip` AS `tipo`,date_format(`p`.`fechaCaducidad`,'%d/%m/%Y') AS `fechaCaducidad`,`p`.`idUnidades`,u.pormayor from (((`produto` `p` join `marca` `m`) join `tipoproducto` `tp`) join `unidades` `u`) where ((`p`.`idMarca` = `m`.`idMarca`) and (`p`.`idUnidades` = `u`.`idUnidades`) and (`p`.`idTipoProducto` = `tp`.`idTipoProducto`));
true
fdd0693b33ba91596061bbaf0977610d028e6b31
SQL
giannifontanot/employee-management-system
/db/seeds.sql
UTF-8
3,204
2.78125
3
[ "MIT" ]
permissive
insert into company_db.department (name) # 1 values('None'); insert into company_db.department (name) # 2 values('Production'); insert into company_db.department (name) # 3 values('Sales'); insert into company_db.department (name) # 4 values('R&D'); insert into company_db.department (name) # 5 values('HR'); insert into company_db.department (name) # 6 values('Finance'); insert into company_db.department (name) # 7 values('Marketing'); # ................................................................ insert into company_db.role (title, salary, department_id) values('None', 0,1); insert into company_db.role (title, salary, department_id) values('Production Manager', 200000,1); insert into company_db.role (title, salary, department_id) values('Sales Manager', 220000,2); insert into company_db.role (title, salary, department_id) values('R&D Manager', 250000,3); insert into company_db.role (title, salary, department_id) values('HR Manager', 200000,4); insert into company_db.role (title, salary, department_id) values('Finance Manager', 220000,5); insert into company_db.role (title, salary, department_id) values('Marketing Manager', 210000,6); # ................................................................ insert into company_db.role (title, salary, department_id) values('Manufacturing Engineer', 120000,1); insert into company_db.role (title, salary, department_id) values('Sales Representative', 80000,2); insert into company_db.role (title, salary, department_id) values('R&D Engineer', 120000,3); insert into company_db.role (title, salary, department_id) values('HR Coordinator', 100000,4); insert into company_db.role (title, salary, department_id) values('Accountant', 80000,5); insert into company_db.role (title, salary, department_id) values('Marketing Analyst', 650000,6); # ................................................................ insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Iona', 'Mccabe', 1, 1); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Amina', 'Hancock', 2, 2); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Braiden', 'Reyna', 3, 3); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Jagdeep', 'Rodrigues', 4, 4); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Duane', 'Sinclair', 5, 5); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Ethan', 'Barron', 6, 6); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Dannielle', 'Neal', 7, 1); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Amit', 'Nichols', 8, 2); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Bret', 'Person', 9, 3); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Nevaeh', 'Davison', 10, 4); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Enid', 'Cannon', 9, 5); insert into company_db.employee (first_name, last_name, role_id, manager_id) values('Bailey', 'Connors', 10, 6);
true
2e22fbbed966ee7ba37b79128e7803383bc1d78c
SQL
dingGator/C2540-Database-Management
/C4_SSC_1.sql
UTF-8
378
3.03125
3
[]
no_license
use schoolschedulingexample; select subjectName from subjects ; /* CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `schoolschedulingexample`.`ch04_subject_list` AS SELECT `schoolschedulingexample`.`subjects`.`SubjectName` AS `SubjectName` FROM `schoolschedulingexample`.`subjects`; */
true
cb76814c45f8bf3ebdd4c265ed43f47479b8650a
SQL
lttr/esch-webapp
/src/main/resources/esch-setup-mysql.ddl
UTF-8
3,193
3.875
4
[]
no_license
DROP DATABASE IF EXISTS esch; CREATE DATABASE IF NOT EXISTS esch; USE esch; DROP TABLE IF EXISTS event ; DROP TABLE IF EXISTS event_configuration ; DROP TABLE IF EXISTS event_instructors ; DROP TABLE IF EXISTS instructor ; DROP TABLE IF EXISTS program_block ; DROP TABLE IF EXISTS program_day ; DROP TABLE IF EXISTS program_category ; DROP TABLE IF EXISTS esch_user ; CREATE TABLE event ( id INT NOT NULL AUTO_INCREMENT , name VARCHAR (40) UNIQUE , start_date DATE , end_date DATE , created DATETIME NOT NULL , esch_user_id INT , event_configuration INT NOT NULL , PRIMARY KEY ( id ) ) ENGINE=INNODB ; CREATE TABLE event_configuration ( id INT NOT NULL , base_time_interval INT , layout VARCHAR (10) , PRIMARY KEY ( id ) ) ENGINE=INNODB ; CREATE TABLE event_instructors ( event_id INT NOT NULL , instructor_id INT NOT NULL , PRIMARY KEY ( event_id, instructor_id ) ) ENGINE=INNODB ; CREATE TABLE instructor ( id INT NOT NULL , first_name VARCHAR (30) , last_name VARCHAR (30) , nickname VARCHAR (30) , PRIMARY KEY ( id ) ) ENGINE=INNODB ; CREATE TABLE program_block ( id INT NOT NULL , name VARCHAR (30) , start_time TIME , end_time TIME , event_id INT NOT NULL , instructor_id INT , program_category_id INT , program_day_id INT , PRIMARY KEY ( id ) ) ENGINE=INNODB ; CREATE TABLE program_day ( id INT NOT NULL , event_id INT NOT NULL , ordinal_number INT NOT NULL , PRIMARY KEY ( id ) ) ENGINE=INNODB ; CREATE TABLE program_category ( id INT NOT NULL , name VARCHAR (30) , PRIMARY KEY ( id ) ) ENGINE=INNODB ; CREATE TABLE esch_user ( id INT NOT NULL , login VARCHAR (30) NOT NULL UNIQUE , password VARCHAR (50) , first_name VARCHAR (30) , last_name VARCHAR (30) , email VARCHAR (50) NOT NULL UNIQUE , registration_date DATETIME , lastactivity_date DATETIME , locked BOOLEAN NOT NULL DEFAULT 0, instructor_id INT , PRIMARY KEY ( id ) ) ENGINE=INNODB ; ALTER TABLE event ADD FOREIGN KEY (esch_user_id) REFERENCES esch_user(id); ALTER TABLE event ADD FOREIGN KEY (event_configuration) REFERENCES event_configuration(id); ALTER TABLE event_instructors ADD FOREIGN KEY (event_id) REFERENCES event(id); ALTER TABLE event_instructors ADD FOREIGN KEY (instructor_id) REFERENCES instructor(id); ALTER TABLE program_block ADD FOREIGN KEY (instructor_id) REFERENCES instructor(id); ALTER TABLE program_block ADD FOREIGN KEY (program_category_id) REFERENCES program_category(id); ALTER TABLE program_block ADD FOREIGN KEY (program_day_id) REFERENCES program_day(id); ALTER TABLE program_day ADD FOREIGN KEY (event_id) REFERENCES event(id); ALTER TABLE esch_user ADD FOREIGN KEY (instructor_id) REFERENCES instructor(id);
true
5929f3f08c672197e45ef9f44a5187f1c209f163
SQL
muthukumars/IS-607-Week5
/Week5Assignment/Week5Assignment.sql
UTF-8
2,950
3.46875
3
[]
no_license
select * from flights where (origin='EWR' or origin='JFK' or origin='LGA') and dest='LAX' select to_date((to_char(month,'99')||'/'||to_char(day,'99')||'/'||to_char(year,'9999')),'mm/dd/yyyy') from flights select TO_CHAR((air_time || ' second')::interval, 'HH24:MI:SS') from flights select * from planes where tailnum='N10156' select t1.origin, t1.dest,t1.carrier,t1.flight,t1.dep_delay,t1.arr_delay,to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy'), TO_CHAR((t1.air_time || ' second')::interval, 'HH24:MI:SS'),t2.tailnum,t2.seats from flights t1, planes t2 where (t1.origin='EWR' or t1.origin='JFK' or t1.origin='LGA') and t1.dest='LAX' and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy') >='02/23/2013' and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy') <='03/01/2013' and t1.tailnum=t2.tailnum select TO_CHAR((air_time || ' second')::interval, 'HH24:MI') from flights select t1.origin as "Origin", t1.dest,t1.carrier,t1.flight,t1.dep_delay,t1.arr_delay,to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy'), TO_CHAR((t1.air_time || ' second')::interval, 'HH24:MI:SS') as "AirTime in Minutes" ,t2.tailnum,t2.seats,t3.temp from flights t1, planes t2, weather t3 where (t1.origin='EWR' or t1.origin='JFK' or t1.origin='LGA') and t1.dest='LAX' and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy') >='02/23/2013' and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy') <='03/01/2013' and t1.tailnum=t2.tailnum and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy')=to_date((to_char(t3.month,'99')||'/'||to_char(t3.day,'99')||'/'||to_char(t3.year,'9999')),'mm/dd/yyyy') and t1.hour=t3.hour copy(select t1.origin, t1.dest,t1.carrier ,t1.flight,t1.dep_delay,t1.arr_delay,to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy'), TO_CHAR((t1.air_time || ' second')::interval, 'HH24:MI:SS') as "AirTime in Minutes" ,t2.tailnum,t2.seats,t3.temp from flights t1, planes t2, weather t3 where (t1.origin='EWR' or t1.origin='JFK' or t1.origin='LGA') and t1.dest='LAX' and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy') >='02/23/2013' and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy') <='03/01/2013' and t1.tailnum=t2.tailnum and to_date((to_char(t1.month,'99')||'/'||to_char(t1.day,'99')||'/'||to_char(t1.year,'9999')),'mm/dd/yyyy')=to_date((to_char(t3.month,'99')||'/'||to_char(t3.day,'99')||'/'||to_char(t3.year,'9999')),'mm/dd/yyyy') and t1.hour=t3.hour) to 'c:\temp\week5Assignment.csv' with CSV
true
0fdb632d2531301171bc76a767e250855c8895d9
SQL
nishitshrestha/Moveez
/MovieCrud.sql
UTF-8
1,088
2.96875
3
[]
no_license
/* SQLyog Community v11.0 Beta1 (32 bit) MySQL - 5.0.91-community-nt : Database - moviecrud ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`moviecrud` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `moviecrud`; /*Table structure for table `movie_details` */ CREATE TABLE `movie_details` ( `movie_id` int(11) NOT NULL auto_increment, `movie_name` varchar(500) default NULL, `actor_name` varchar(500) default NULL, `actress_name` varchar(500) default NULL, `director_name` varchar(500) default NULL, PRIMARY KEY (`movie_id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
true
2eeac385935be6e75a43ca605559c0931d269be6
SQL
MDD659/-
/hrdb.sql
UTF-8
16,895
3.328125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : root Source Server Type : MySQL Source Server Version : 50623 Source Host : localhost:3306 Source Schema : hrdb Target Server Type : MySQL Target Server Version : 50623 File Encoding : 65001 Date: 16/09/2019 09:30:32 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for dept_inf -- ---------------------------- DROP TABLE IF EXISTS `dept_inf`; CREATE TABLE `dept_inf` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`ID`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of dept_inf -- ---------------------------- INSERT INTO `dept_inf` VALUES (1, '财务部', '无'); INSERT INTO `dept_inf` VALUES (2, '学术部', '无'); INSERT INTO `dept_inf` VALUES (3, '公关部', '无'); INSERT INTO `dept_inf` VALUES (4, '教学部', '无'); INSERT INTO `dept_inf` VALUES (5, '技术部', '无'); INSERT INTO `dept_inf` VALUES (6, '人事部', ''); -- ---------------------------- -- Table structure for employee_inf -- ---------------------------- DROP TABLE IF EXISTS `employee_inf`; CREATE TABLE `employee_inf` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `DEPT_ID` int(11) NOT NULL, `JOB_ID` int(11) NOT NULL, `NAME` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `CARD_ID` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `ADDRESS` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `POST_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `TEL` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `PHONE` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `QQ_NUM` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `EMAIL` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `SEX` int(11) NOT NULL DEFAULT 1, `PARTY` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `BIRTHDAY` datetime NULL DEFAULT NULL, `RACE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `EDUCATION` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `SPECIALITY` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `HOBBY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `REMARK` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `CREATE_DATE` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`ID`) USING BTREE, INDEX `FK_EMP_DEPT`(`DEPT_ID`) USING BTREE, INDEX `FK_EMP_JOB`(`JOB_ID`) USING BTREE, CONSTRAINT `FK_EMP_DEPT` FOREIGN KEY (`DEPT_ID`) REFERENCES `dept_inf` (`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_EMP_JOB` FOREIGN KEY (`JOB_ID`) REFERENCES `job_inf` (`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of employee_inf -- ---------------------------- INSERT INTO `employee_inf` VALUES (2, 2, 1, '小明', '123456789012345678', '广东省深圳', '234242', '23424333', '13610561160', '324234', '54555@qq.cn', 1, '群众', '1980-07-07 00:00:00', '汉', '本科', '计算机', '无', '无', '2019-02-19 15:32:44'); INSERT INTO `employee_inf` VALUES (3, 1, 1, '旺财', '123456789012345670', '广东省深圳', '23424', '23424333', '13610561161', '324234', 'dsafasfd@dsa.com', 1, '群众', '1980-07-07 00:00:00', '汉', '本科', '计算机', '无', '无', '2019-02-19 15:37:20'); -- ---------------------------- -- Table structure for job_inf -- ---------------------------- DROP TABLE IF EXISTS `job_inf`; CREATE TABLE `job_inf` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `NAME` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`ID`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of job_inf -- ---------------------------- INSERT INTO `job_inf` VALUES (1, '工程师', '无'); INSERT INTO `job_inf` VALUES (2, '会计师', '无'); INSERT INTO `job_inf` VALUES (3, '普通职员', '无'); INSERT INTO `job_inf` VALUES (4, 'Java程序员', ''); -- ---------------------------- -- Table structure for user_inf -- ---------------------------- DROP TABLE IF EXISTS `user_inf`; CREATE TABLE `user_inf` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `loginname` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `PASSWORD` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `STATUS` int(11) NOT NULL DEFAULT 1, `createdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `username` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, PRIMARY KEY (`ID`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 120 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of user_inf -- ---------------------------- INSERT INTO `user_inf` VALUES (1, 'mike', '888888', 1, '2019-05-09 11:19:49', '乔峰‰'); INSERT INTO `user_inf` VALUES (2, 'zhang', '999', 0, '2019-04-27 17:01:05', '段誉'); INSERT INTO `user_inf` VALUES (3, 'jackk', '999', 1, '2019-05-09 11:19:59', '王语嫣‰'); INSERT INTO `user_inf` VALUES (4, 'jason', '000000', 1, '2019-05-09 11:19:55', '草地僧'); INSERT INTO `user_inf` VALUES (5, 'lishi', '000000', 1, '2018-12-05 21:20:22', '李四'); INSERT INTO `user_inf` VALUES (6, 'aaa', '111', 0, '2019-04-27 17:13:15', '东方不败'); INSERT INTO `user_inf` VALUES (7, 'jack', '111', 0, '2019-04-28 11:35:14', '令狐冲'); INSERT INTO `user_inf` VALUES (8, 'ss', '123', 1, '2019-05-06 14:21:53', '王'); INSERT INTO `user_inf` VALUES (9, 'test', '123', 1, '2019-05-25 08:42:22', '张三'); INSERT INTO `user_inf` VALUES (10, 'test1', '111', 1, '2019-05-25 08:47:21', '慕容复'); INSERT INTO `user_inf` VALUES (11, 'test2', '123', 1, '2019-05-25 10:24:51', '张三2'); INSERT INTO `user_inf` VALUES (12, 'test3', '123', 1, '2019-05-25 10:29:33', '李四'); INSERT INTO `user_inf` VALUES (13, 'zhenghongwu', '111111', 2, '2019-06-01 09:38:54', '吴正洪'); INSERT INTO `user_inf` VALUES (14, 'wuzhenghong', 'aaaaaa', 0, '2019-06-01 09:42:17', '吴正洪'); INSERT INTO `user_inf` VALUES (15, 'fanbb', 'aaaaaa', 0, '2019-06-01 09:46:49', '范冰冰'); INSERT INTO `user_inf` VALUES (16, 'yangyin', 'aaaaaa', 0, '2019-06-01 09:48:46', '杨颖'); INSERT INTO `user_inf` VALUES (17, 'zhangzhiyi', 'aaaaaa', 0, '2019-06-01 11:30:13', '章子怡'); INSERT INTO `user_inf` VALUES (18, 'zly', 'aaaaaa', 0, '2019-06-01 11:36:35', '赵丽颖'); INSERT INTO `user_inf` VALUES (19, 'wwwwww', 'wwwwww', 0, '2019-06-01 11:39:06', 'wwww'); INSERT INTO `user_inf` VALUES (20, 'hxm', 'wwwwww', 0, '2019-06-01 11:39:45', '黄小明'); INSERT INTO `user_inf` VALUES (21, 'laoqigai', 'aaaaaa', 2, '2019-06-01 11:41:10', '洪七公'); INSERT INTO `user_inf` VALUES (22, 'aaaaaaaaaa', '111111', 0, '2019-06-13 14:54:43', 'aaaaaa'); INSERT INTO `user_inf` VALUES (23, 'aaaaaaaaaa', '111111', 0, '2019-06-13 14:54:50', 'aaaaaa'); INSERT INTO `user_inf` VALUES (24, 'aaaaaaaaaa', '111111', 0, '2019-06-13 14:54:57', 'aaaaaaq'); INSERT INTO `user_inf` VALUES (25, 'bbbbbb', 'bbbbbb', 0, '2019-06-13 14:55:46', 'bbbbbb'); INSERT INTO `user_inf` VALUES (26, 'cccccc', 'cccccc', 0, '2019-06-13 14:57:07', 'cccccc'); INSERT INTO `user_inf` VALUES (27, 'cccccc', 'cccccc', 0, '2019-06-13 14:57:27', 'dddddd'); INSERT INTO `user_inf` VALUES (28, 'mmmmmm', 'mmmmmm', 0, '2019-06-13 17:14:47', 'mmmmm'); INSERT INTO `user_inf` VALUES (29, 'xiaozhou', '123456', 0, '2019-06-15 09:27:41', 'xiaozhou'); INSERT INTO `user_inf` VALUES (30, '小洪洪', '123456', 2, '2019-06-15 09:28:33', '洪老师'); INSERT INTO `user_inf` VALUES (31, '小洪洪', '123456', 0, '2019-06-15 09:28:43', '洪老师'); INSERT INTO `user_inf` VALUES (32, 'zzh', '666666', 1, '2019-06-15 09:28:46', '渣渣辉'); INSERT INTO `user_inf` VALUES (33, '小洪洪', '123456', 1, '2019-06-15 09:28:48', '洪老师'); INSERT INTO `user_inf` VALUES (34, '小洪洪', '123456', 2, '2019-06-15 09:28:52', '洪老师'); INSERT INTO `user_inf` VALUES (35, '小洪洪', '123456', 2, '2019-06-15 09:28:54', '洪老师'); INSERT INTO `user_inf` VALUES (36, '小洪洪', '123456', 2, '2019-06-15 09:28:56', '洪老师'); INSERT INTO `user_inf` VALUES (37, '小洪洪', '123456', 2, '2019-06-15 09:29:05', '洪老师'); INSERT INTO `user_inf` VALUES (38, '小洪洪', '123456', 2, '2019-06-15 09:29:06', '洪老师'); INSERT INTO `user_inf` VALUES (39, '小洪洪', '123456', 2, '2019-06-15 09:29:09', '洪老师'); INSERT INTO `user_inf` VALUES (40, '小洪洪', '123456', 2, '2019-06-15 09:29:15', '洪老师'); INSERT INTO `user_inf` VALUES (41, '小洪洪', '123456', 2, '2019-06-15 09:29:17', '洪老师'); INSERT INTO `user_inf` VALUES (42, '小洪洪', '123456', 2, '2019-06-15 09:29:21', '洪老师'); INSERT INTO `user_inf` VALUES (43, '小洪洪', '123456', 2, '2019-06-15 09:29:23', '洪老师'); INSERT INTO `user_inf` VALUES (44, '小洪洪', '123456', 2, '2019-06-15 09:29:25', '洪老师'); INSERT INTO `user_inf` VALUES (45, '小洪洪', '123456', 2, '2019-06-15 09:29:27', '洪老师'); INSERT INTO `user_inf` VALUES (46, '小洪洪', '123456', 2, '2019-06-15 09:29:28', '洪老师'); INSERT INTO `user_inf` VALUES (47, '小洪洪', '123456', 2, '2019-06-15 09:29:43', '洪老师'); INSERT INTO `user_inf` VALUES (48, '小洪洪', '123456', 2, '2019-06-15 09:29:46', '洪老师'); INSERT INTO `user_inf` VALUES (49, '小洪洪', '123456', 2, '2019-06-15 09:29:47', '洪老师'); INSERT INTO `user_inf` VALUES (50, '小洪洪', '123456', 2, '2019-06-15 09:29:47', '洪老师'); INSERT INTO `user_inf` VALUES (51, '小洪洪', '123456', 2, '2019-06-15 09:29:48', '洪老师'); INSERT INTO `user_inf` VALUES (52, '小洪洪', '123456', 2, '2019-06-15 09:29:49', '洪老师'); INSERT INTO `user_inf` VALUES (53, '小洪洪', '123456', 2, '2019-06-15 09:29:49', '洪老师'); INSERT INTO `user_inf` VALUES (54, '小洪洪', '123456', 2, '2019-06-15 09:29:50', '洪老师'); INSERT INTO `user_inf` VALUES (55, '小洪洪', '123456', 2, '2019-06-15 09:29:50', '洪老师'); INSERT INTO `user_inf` VALUES (56, '小洪洪', '123456', 2, '2019-06-15 09:29:51', '洪老师'); INSERT INTO `user_inf` VALUES (57, '小洪洪', '123456', 2, '2019-06-15 09:29:51', '洪老师'); INSERT INTO `user_inf` VALUES (58, '小洪洪', '123456', 2, '2019-06-15 09:29:52', '洪老师'); INSERT INTO `user_inf` VALUES (59, 'EeeNnn', '123456', 2, '2019-06-15 09:30:25', 'EeeNnn'); INSERT INTO `user_inf` VALUES (60, '砍我一刀', '123456', 2, '2019-06-15 09:31:15', '渣渣辉'); INSERT INTO `user_inf` VALUES (61, '砍我一刀', '123456', 2, '2019-06-15 09:31:16', '渣渣辉'); INSERT INTO `user_inf` VALUES (62, '砍我一刀', '123456', 2, '2019-06-15 09:31:17', '渣渣辉'); INSERT INTO `user_inf` VALUES (63, '砍我一刀', '123456', 2, '2019-06-15 09:31:17', '渣渣辉'); INSERT INTO `user_inf` VALUES (64, '砍我一刀', '123456', 2, '2019-06-15 09:31:18', '渣渣辉'); INSERT INTO `user_inf` VALUES (65, '砍我一刀', '123456', 2, '2019-06-15 09:31:18', '渣渣辉'); INSERT INTO `user_inf` VALUES (66, '砍我一刀', '123456', 2, '2019-06-15 09:31:19', '渣渣辉'); INSERT INTO `user_inf` VALUES (67, '砍我一刀', '123456', 2, '2019-06-15 09:31:19', '渣渣辉'); INSERT INTO `user_inf` VALUES (68, '砍我一刀', '123456', 2, '2019-06-15 09:31:20', '渣渣辉'); INSERT INTO `user_inf` VALUES (69, '砍我一刀', '123456', 2, '2019-06-15 09:31:20', '渣渣辉'); INSERT INTO `user_inf` VALUES (70, '砍我一刀', '123456', 2, '2019-06-15 09:31:21', '渣渣辉'); INSERT INTO `user_inf` VALUES (71, '砍我一刀', '123456', 2, '2019-06-15 09:31:21', '渣渣辉'); INSERT INTO `user_inf` VALUES (72, '砍我一刀', '123456', 2, '2019-06-15 09:31:22', '渣渣辉'); INSERT INTO `user_inf` VALUES (73, '砍我一刀', '123456', 2, '2019-06-15 09:31:23', '渣渣辉'); INSERT INTO `user_inf` VALUES (74, '砍我一刀', '123456', 2, '2019-06-15 09:31:23', '渣渣辉'); INSERT INTO `user_inf` VALUES (75, '砍我一刀', '123456', 2, '2019-06-15 09:31:24', '渣渣辉'); INSERT INTO `user_inf` VALUES (76, '砍我一刀', '123456', 2, '2019-06-15 09:31:24', '渣渣辉'); INSERT INTO `user_inf` VALUES (77, '砍我一刀', '123456', 2, '2019-06-15 09:31:25', '渣渣辉'); INSERT INTO `user_inf` VALUES (78, '砍我一刀', '123456', 2, '2019-06-15 09:31:25', '渣渣辉'); INSERT INTO `user_inf` VALUES (79, '砍我一刀', '123456', 2, '2019-06-15 09:31:26', '渣渣辉'); INSERT INTO `user_inf` VALUES (80, '砍我一刀', '123456', 2, '2019-06-15 09:31:26', '渣渣辉'); INSERT INTO `user_inf` VALUES (81, '砍我一刀', '123456', 2, '2019-06-15 09:31:27', '渣渣辉'); INSERT INTO `user_inf` VALUES (82, '砍我一刀', '123456', 2, '2019-06-15 09:31:27', '渣渣辉'); INSERT INTO `user_inf` VALUES (83, '砍我一刀', '123456', 0, '2019-06-15 09:31:31', '渣渣辉'); INSERT INTO `user_inf` VALUES (84, '砍我一刀', '123456', 0, '2019-06-15 09:31:31', '渣渣辉'); INSERT INTO `user_inf` VALUES (85, '砍我一刀', '123456', 0, '2019-06-15 09:31:32', '渣渣辉'); INSERT INTO `user_inf` VALUES (86, '砍我一刀', '123456', 0, '2019-06-15 09:31:32', '渣渣辉'); INSERT INTO `user_inf` VALUES (87, '砍我一刀', '123456', 0, '2019-06-15 09:31:33', '渣渣辉'); INSERT INTO `user_inf` VALUES (88, '砍我一刀', '123456', 0, '2019-06-15 09:31:33', '渣渣辉'); INSERT INTO `user_inf` VALUES (89, '砍我一刀', '123456', 0, '2019-06-15 09:31:33', '渣渣辉'); INSERT INTO `user_inf` VALUES (90, '砍我一刀', '123456', 0, '2019-06-15 09:31:34', '渣渣辉'); INSERT INTO `user_inf` VALUES (91, '砍我一刀', '123456', 0, '2019-06-15 09:31:34', '渣渣辉'); INSERT INTO `user_inf` VALUES (92, '砍我一刀', '123456', 0, '2019-06-15 09:31:35', '渣渣辉'); INSERT INTO `user_inf` VALUES (93, '砍我一刀', '123456', 0, '2019-06-15 09:31:35', '渣渣辉'); INSERT INTO `user_inf` VALUES (94, '砍我一刀', '123456', 0, '2019-06-15 09:31:36', '渣渣辉'); INSERT INTO `user_inf` VALUES (95, '全新版本', '666666', 0, '2019-06-15 09:39:31', '贪玩蓝月'); INSERT INTO `user_inf` VALUES (96, '李大仁', '123456789', 2, '2019-06-15 15:49:00', '李大仁'); INSERT INTO `user_inf` VALUES (97, 'add', '123456', 1, '2019-06-15 17:34:33', 'ujsj'); INSERT INTO `user_inf` VALUES (98, 'aas', '9999', 1, '2019-06-20 15:48:57', 'nn'); INSERT INTO `user_inf` VALUES (99, 'mybatis', 'admin', 1, '2019-06-20 15:56:09', '小李'); INSERT INTO `user_inf` VALUES (100, 'aaaaa', 'aaaaaa', 0, '2019-06-22 23:59:49', 'aaaaa'); INSERT INTO `user_inf` VALUES (101, 'aaaaaaa', 'aaaaaaa', 0, '2019-06-24 17:23:47', 'aaaaaaa'); INSERT INTO `user_inf` VALUES (102, 'aaaaaaa', 'aaaaaaa', 0, '2019-06-24 17:23:52', 'aaaaaaa'); INSERT INTO `user_inf` VALUES (103, 'aaaaaaa', 'aaaaaaa', 0, '2019-06-24 17:23:55', 'aaaaaaa'); INSERT INTO `user_inf` VALUES (104, 'aaaaaaaaaaa', 'aaaaaa', 0, '2019-06-24 17:25:17', 'aaaaaaaaaaa'); INSERT INTO `user_inf` VALUES (105, 'aaaaaa', 'aaaaaa', 0, '2019-06-24 17:26:53', 'aaaaaa'); INSERT INTO `user_inf` VALUES (106, 'aaaaaa', 'aaaaaa', 0, '2019-06-24 17:34:37', 'aaaaaa'); INSERT INTO `user_inf` VALUES (107, 'yisen', 'xiaopi666', 2, '2019-07-08 11:05:43', 'yisen'); INSERT INTO `user_inf` VALUES (108, 'ERIC', '111111', 2, '2019-07-08 11:06:42', '丽桑卓'); INSERT INTO `user_inf` VALUES (109, 'caicai', '111111', 0, '2019-07-08 11:06:43', '蔡徐坤'); INSERT INTO `user_inf` VALUES (110, '123', '123456', 0, '2019-07-08 11:06:43', '蔡徐坤'); INSERT INTO `user_inf` VALUES (111, 'GANGWA', 'GANGWA', 0, '2019-07-08 11:07:39', '刚娃'); INSERT INTO `user_inf` VALUES (112, 'GANGWA', 'GANGWA', 0, '2019-07-08 11:07:40', '刚娃'); INSERT INTO `user_inf` VALUES (113, 'GANGWA', 'GANGWA', 0, '2019-07-08 11:07:42', '刚娃'); INSERT INTO `user_inf` VALUES (114, 'make', '12345678', 2, '2019-07-08 11:08:16', '深白'); INSERT INTO `user_inf` VALUES (115, 'make', '12345678', 2, '2019-07-08 11:08:22', '深白'); INSERT INTO `user_inf` VALUES (116, 'liurui', '111111', 2, '2019-07-08 11:19:45', '刘瑞'); INSERT INTO `user_inf` VALUES (118, '王五', '111', 1, '2019-09-09 15:48:39', '小王'); INSERT INTO `user_inf` VALUES (119, '麻溜', '8888888', 1, '2019-09-09 15:50:24', '麻溜'); SET FOREIGN_KEY_CHECKS = 1;
true
65f6498a94eb25ea8ff2f4dd9f2d873a0e7ce148
SQL
bernatfornescarbonell/banco
/src/main/resources/sql/squema.sql
UTF-8
8,370
2.921875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.1.9 -- Dumped by pg_dump version 9.1.9 -- Started on 2013-08-16 03:12:03 COT SET statement_timeout = 0; SET client_encoding = 'SQL_ASCII'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- TOC entry 169 (class 3079 OID 11681) -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- -- TOC entry 1936 (class 0 OID 0) -- Dependencies: 169 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- TOC entry 161 (class 1259 OID 17822) -- Dependencies: 5 -- Name: cliente; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE cliente ( id bigint NOT NULL, direccion character varying(50) NOT NULL, nombre character varying(30), password character varying(70) NOT NULL, telefone character varying(255) NOT NULL, usuario character varying(70) NOT NULL, version integer ); ALTER TABLE public.cliente OWNER TO postgres; -- -- TOC entry 165 (class 1259 OID 17861) -- Dependencies: 5 -- Name: cliente_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE cliente_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.cliente_seq OWNER TO postgres; -- -- TOC entry 162 (class 1259 OID 17827) -- Dependencies: 1906 5 -- Name: cuenta; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE cuenta ( id bigint NOT NULL, numero character varying(255), saldo numeric(19,2) NOT NULL, version integer, cliente bigint, CONSTRAINT cuenta_saldo_check CHECK ((saldo >= (0)::numeric)) ); ALTER TABLE public.cuenta OWNER TO postgres; -- -- TOC entry 166 (class 1259 OID 17863) -- Dependencies: 5 -- Name: cuenta_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE cuenta_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.cuenta_seq OWNER TO postgres; -- -- TOC entry 167 (class 1259 OID 17865) -- Dependencies: 5 -- Name: mov_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE mov_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.mov_seq OWNER TO postgres; -- -- TOC entry 163 (class 1259 OID 17833) -- Dependencies: 1907 5 -- Name: movimiento; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE movimiento ( id bigint NOT NULL, fecha timestamp without time zone NOT NULL, tipo integer NOT NULL, valor numeric(19,2) NOT NULL, version integer, cuenta bigint, CONSTRAINT movimiento_valor_check CHECK ((valor >= (0)::numeric)) ); ALTER TABLE public.movimiento OWNER TO postgres; -- -- TOC entry 164 (class 1259 OID 17839) -- Dependencies: 5 -- Name: usuario_rol; Type: TABLE; Schema: public; Owner: postgres; Tablespace: -- CREATE TABLE usuario_rol ( id bigint NOT NULL, authority character varying(255), version integer, cliente bigint ); ALTER TABLE public.usuario_rol OWNER TO postgres; -- -- TOC entry 168 (class 1259 OID 17867) -- Dependencies: 5 -- Name: usuario_rol_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE usuario_rol_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.usuario_rol_seq OWNER TO postgres; -- -- TOC entry 1921 (class 0 OID 17822) -- Dependencies: 161 1929 -- Data for Name: cliente; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY cliente (id, direccion, nombre, password, telefone, usuario, version) FROM stdin; 1 - admin 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 123456 admin \N 2 - user1 0a041b9462caa4a31bac3567e0b6e6fd9100787db2ab433d96f6d178cabfce90 123456 user1 \N 3 - user2 6025d18fe48abd45168528f18a82e265dd98d421a7084aa09f61b341703901a3 123456 user2 \N \. -- -- TOC entry 1937 (class 0 OID 0) -- Dependencies: 165 -- Name: cliente_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('cliente_seq', 1, false); -- -- TOC entry 1922 (class 0 OID 17827) -- Dependencies: 162 1929 -- Data for Name: cuenta; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY cuenta (id, numero, saldo, version, cliente) FROM stdin; 4 1341234 1231.00 0 2 5 54634646 134.00 0 2 6 234 23.00 0 2 1 1234 0.00 2 2 2 24 1236.00 2 3 \. -- -- TOC entry 1938 (class 0 OID 0) -- Dependencies: 166 -- Name: cuenta_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('cuenta_seq', 6, true); -- -- TOC entry 1939 (class 0 OID 0) -- Dependencies: 167 -- Name: mov_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('mov_seq', 4, true); -- -- TOC entry 1923 (class 0 OID 17833) -- Dependencies: 163 1929 -- Data for Name: movimiento; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY movimiento (id, fecha, tipo, valor, version, cuenta) FROM stdin; 1 2013-08-13 00:00:00 0 2.00 0 1 2 2013-08-20 00:00:00 1 1.00 0 1 3 2013-08-22 00:00:00 0 12.00 0 1 4 2013-08-22 00:00:00 1 1234.00 0 2 \. -- -- TOC entry 1924 (class 0 OID 17839) -- Dependencies: 164 1929 -- Data for Name: usuario_rol; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY usuario_rol (id, authority, version, cliente) FROM stdin; 1 ROLE_ADMIN \N 1 2 ROLE_USER \N 2 3 ROLE_USER \N 3 \. -- -- TOC entry 1940 (class 0 OID 0) -- Dependencies: 168 -- Name: usuario_rol_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('usuario_rol_seq', 1, false); -- -- TOC entry 1909 (class 2606 OID 17826) -- Dependencies: 161 161 1930 -- Name: cliente_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY cliente ADD CONSTRAINT cliente_pkey PRIMARY KEY (id); -- -- TOC entry 1911 (class 2606 OID 17832) -- Dependencies: 162 162 1930 -- Name: cuenta_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY cuenta ADD CONSTRAINT cuenta_pkey PRIMARY KEY (id); -- -- TOC entry 1915 (class 2606 OID 17838) -- Dependencies: 163 163 1930 -- Name: movimiento_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY movimiento ADD CONSTRAINT movimiento_pkey PRIMARY KEY (id); -- -- TOC entry 1913 (class 2606 OID 17845) -- Dependencies: 162 162 1930 -- Name: uk_hsp0g5b3ckv9kgikc6e85l1jb; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY cuenta ADD CONSTRAINT uk_hsp0g5b3ckv9kgikc6e85l1jb UNIQUE (numero); -- -- TOC entry 1917 (class 2606 OID 17843) -- Dependencies: 164 164 1930 -- Name: usuario_rol_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY usuario_rol ADD CONSTRAINT usuario_rol_pkey PRIMARY KEY (id); -- -- TOC entry 1918 (class 2606 OID 17846) -- Dependencies: 1908 161 162 1930 -- Name: fk_2rroqx1jsp17a3x46shjtotqo; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY cuenta ADD CONSTRAINT fk_2rroqx1jsp17a3x46shjtotqo FOREIGN KEY (cliente) REFERENCES cliente(id); -- -- TOC entry 1920 (class 2606 OID 17856) -- Dependencies: 161 1908 164 1930 -- Name: fk_anov4t0xy9nbli64yvk3cuy7g; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY usuario_rol ADD CONSTRAINT fk_anov4t0xy9nbli64yvk3cuy7g FOREIGN KEY (cliente) REFERENCES cliente(id); -- -- TOC entry 1919 (class 2606 OID 17851) -- Dependencies: 162 1910 163 1930 -- Name: fk_b0xw4jnhl6mv3slxxvrllpqad; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY movimiento ADD CONSTRAINT fk_b0xw4jnhl6mv3slxxvrllpqad FOREIGN KEY (cuenta) REFERENCES cuenta(id); -- -- TOC entry 1935 (class 0 OID 0) -- Dependencies: 5 -- Name: public; Type: ACL; Schema: -; Owner: postgres -- REVOKE ALL ON SCHEMA public FROM PUBLIC; REVOKE ALL ON SCHEMA public FROM postgres; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO PUBLIC; -- Completed on 2013-08-16 03:12:04 COT -- -- PostgreSQL database dump complete --
true
ad3ad316491f842a5eb0d6207ceb73179fc8011b
SQL
Inant/sehatin
/sehatin_db.sql
UTF-8
23,722
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 16, 2019 at 12:58 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sehatin_db` -- -- -------------------------------------------------------- -- -- Table structure for table `antrian` -- CREATE TABLE `antrian` ( `id_antrian` int(11) NOT NULL, `id_pasien` int(11) NOT NULL, `waktu` datetime NOT NULL, `status` varchar(30) NOT NULL, `id_poli` tinyint(3) NOT NULL, `keluhan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `antrian` -- INSERT INTO `antrian` (`id_antrian`, `id_pasien`, `waktu`, `status`, `id_poli`, `keluhan`) VALUES (1, 4, '2019-01-03 11:46:24', 'Selesai', 1, 'Pusing'), (2, 7, '2019-01-03 11:47:56', 'Selesai', 2, 'Gusi bengkak'), (3, 6, '2019-01-03 11:48:30', 'Selesai', 5, 'Imunisasi'), (4, 11, '2019-01-13 06:59:00', 'Selesai', 1, 'Panas 2 hari'), (5, 8, '2019-01-13 07:05:40', 'Selesai', 1, 'Batuk'), (6, 11, '2019-01-13 22:17:58', 'Selesai', 1, 'panas 2 hari'), (7, 11, '2019-01-14 11:26:42', 'Selesai', 1, 'panas'), (8, 13, '2019-01-16 16:47:56', 'Selesai', 1, 'Pilek'); -- -------------------------------------------------------- -- -- Table structure for table `detail_resep` -- CREATE TABLE `detail_resep` ( `id_detail` int(11) NOT NULL, `id_resep` int(7) NOT NULL, `id_obat` int(7) NOT NULL, `dosis1` tinyint(1) NOT NULL, `dosis2` tinyint(1) NOT NULL, `jml` tinyint(3) NOT NULL, `subtotal` int(7) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `detail_resep` -- INSERT INTO `detail_resep` (`id_detail`, `id_resep`, `id_obat`, `dosis1`, `dosis2`, `jml`, `subtotal`) VALUES (1, 1, 2, 2, 1, 2, 0), (2, 2, 10, 3, 1, 2, 0), (3, 2, 3, 2, 1, 3, 0), (4, 3, 6, 3, 1, 2, 0), (5, 4, 12, 2, 1, 2, 11000), (6, 4, 13, 2, 1, 2, 18000), (7, 5, 13, 2, 1, 1, 9000), (8, 5, 12, 2, 1, 1, 5500), (9, 6, 8, 2, 1, 2, 10000), (10, 6, 2, 3, 1, 2, 18000), (11, 7, 2, 2, 1, 1, 9000), (12, 7, 6, 2, 1, 1, 13500), (13, 8, 14, 2, 1, 2, 0), (14, 8, 11, 3, 1, 2, 0), (15, 8, 8, 1, 1, 1, 0); -- -------------------------------------------------------- -- -- Table structure for table `diagnosa` -- CREATE TABLE `diagnosa` ( `id_diagnosa` tinyint(3) NOT NULL, `diagnosa` varchar(30) NOT NULL, `status` enum('Aktif','Non Aktif') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `diagnosa` -- INSERT INTO `diagnosa` (`id_diagnosa`, `diagnosa`, `status`) VALUES (1, 'Demam', 'Aktif'), (2, 'Flu Ringan', 'Aktif'), (3, 'Flu Berat', 'Aktif'), (5, 'Hipertermi', 'Aktif'), (6, 'Infeksi', 'Aktif'), (7, 'Neusea', 'Aktif'), (8, 'Diare', 'Aktif'), (9, 'Gigi berlubang', 'Aktif'), (10, 'Gingivitis', 'Aktif'), (11, 'Glositis', 'Aktif'), (12, 'Gigi Hipersensitif', 'Aktif'), (13, 'Batuk', 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `dokter` -- CREATE TABLE `dokter` ( `id_dokter` tinyint(3) NOT NULL, `nm_dokter` varchar(50) NOT NULL, `gender` enum('Laki-laki','Perempuan') NOT NULL, `alamat` varchar(50) NOT NULL, `no_hp` varchar(13) NOT NULL, `no_ijin_praktek` varchar(50) NOT NULL, `id_poli` tinyint(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `dokter` -- INSERT INTO `dokter` (`id_dokter`, `nm_dokter`, `gender`, `alamat`, `no_hp`, `no_ijin_praktek`, `id_poli`) VALUES (11, 'dr. Strange', 'Laki-laki', 'Cataluna', '0852587411478', 'SIP.KP.01.01.I.1.01.0872', 1), (12, 'dr. Rose', 'Perempuan', 'London, UK', '089987799987', 'SIP.KP.01.01.I.1.01.0875', 2), (13, 'dr. The Doctor', 'Laki-laki', 'Tavulia, Italia', '085258888785', 'SIP.KP.01.01.I.1.01.0871', 2), (14, 'dr. Sapii', 'Laki-laki', 'Jl Kaliurang', '0852587411477', 'SIP.KP.01.01.I.1.01.0899', 1), (15, 'dr. Sandra', 'Perempuan', 'Jember', '0852587411476', 'SIP.KP.01.01.I.1.01.0874', 1), (16, 'dr. Master', 'Laki-laki', 'Barcelona, Spain', '0852587411477', 'SIP.KP.01.01.I.1.01.0875', 5); -- -------------------------------------------------------- -- -- Table structure for table `kategori_obat` -- CREATE TABLE `kategori_obat` ( `id_kategori` tinyint(3) NOT NULL, `kategori` varchar(30) NOT NULL, `status` enum('Aktif','Non Aktif') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `kategori_obat` -- INSERT INTO `kategori_obat` (`id_kategori`, `kategori`, `status`) VALUES (1, 'Sirup', 'Aktif'), (2, 'Tablet', 'Aktif'), (3, 'Obat Luar', 'Aktif'), (4, 'Alat Kesehatan', 'Non Aktif'), (5, 'Salep', 'Aktif'), (6, 'Kapsul', 'Aktif'), (7, 'Obat Tetes', 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `login` -- CREATE TABLE `login` ( `id_login` tinyint(3) NOT NULL, `id_user` tinyint(3) NOT NULL, `username` varchar(20) NOT NULL, `password` varchar(32) NOT NULL, `level` enum('Admin','Apoteker','Resepsionis','Kasir','Dokter') NOT NULL, `status` enum('Aktif','Non Aktif') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `login` -- INSERT INTO `login` (`id_login`, `id_user`, `username`, `password`, `level`, `status`) VALUES (1, 15, 'jakfar', '16a4c4e9b7c54d1d4f726f58ad30c53b', 'Admin', 'Aktif'), (2, 11, 'strange', '73a6fcb016535503154cecf09b787015', 'Dokter', 'Aktif'), (4, 19, 'elsa', '783833680e6da5cf6cd7481a44d8fa4c', 'Resepsionis', 'Aktif'), (5, 12, 'rose', 'fcdc7b4207660a1372d0cd5491ad856e', 'Dokter', 'Aktif'), (6, 20, 'meta', 'e9a23cbc455158951716b440c3d165e0', 'Apoteker', 'Aktif'), (7, 13, 'doctor', 'f9f16d97c90d8c6f2cab37bb6d1f1992', 'Dokter', 'Aktif'), (8, 14, 'sapii', '69594d8d985d25651dbccf36802d151e', 'Dokter', 'Non Aktif'), (9, 21, 'fachri', '481600ee22793ea5a8024be139b7c2d6', 'Kasir', 'Aktif'), (10, 15, 'sandra', 'f40a37048732da05928c3d374549c832', 'Dokter', 'Aktif'), (11, 16, 'master', 'eb0a191797624dd3a48fa681d3061212', 'Dokter', 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `obat` -- CREATE TABLE `obat` ( `id_obat` int(7) NOT NULL, `nm_obat` varchar(50) NOT NULL, `id_kategori` tinyint(3) NOT NULL, `id_satuan` tinyint(3) NOT NULL, `harga_beli` int(7) NOT NULL, `harga_jual` int(7) NOT NULL, `stok` smallint(5) NOT NULL, `tgl_kadaluarsa` date NOT NULL, `id_petugas` tinyint(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `obat` -- INSERT INTO `obat` (`id_obat`, `nm_obat`, `id_kategori`, `id_satuan`, `harga_beli`, `harga_jual`, `stok`, `tgl_kadaluarsa`, `id_petugas`) VALUES (1, 'Acyclovir', 5, 3, 3000, 4000, 23, '2019-09-19', 11), (2, 'Abdelyn', 7, 3, 7000, 9000, 9, '2020-06-16', 11), (3, 'A-D Plex Oral Drops', 7, 3, 8000, 10000, 27, '2019-04-11', 11), (4, 'Acelaxon', 5, 3, 12500, 14500, 15, '2020-06-16', 11), (5, 'Sangobion', 4, 2, 6000, 8000, 3, '2018-12-18', 11), (6, 'Acatal', 2, 1, 12000, 13500, 4, '2019-09-20', 11), (7, 'Bioplacenton', 5, 3, 15500, 17500, 7, '2023-02-07', 20), (8, 'Acetaminophen', 2, 1, 4000, 5000, 17, '2020-06-16', 20), (9, 'Benacol', 1, 2, 10000, 12000, 15, '2021-06-10', 20), (10, 'Betason', 2, 1, 10000, 11500, 28, '2021-07-15', 20), (11, 'Garamycin', 3, 3, 35000, 37000, 10, '2023-12-19', 20), (12, 'Amoxicilin', 1, 2, 4000, 5500, 11, '2021-05-02', 20), (13, 'Palmicol', 1, 2, 8000, 9000, 10, '2023-08-18', 20), (14, 'Ulcucsan', 6, 4, 45000, 47000, 18, '2024-02-06', 20); -- -------------------------------------------------------- -- -- Table structure for table `pasien` -- CREATE TABLE `pasien` ( `id_pasien` int(11) NOT NULL, `no_identitas` varchar(16) NOT NULL, `nama` varchar(50) NOT NULL, `tmpt_lahir` varchar(30) NOT NULL, `tgl_lahir` date NOT NULL, `gender` enum('Laki-laki','Perempuan') NOT NULL, `alamat` varchar(60) NOT NULL, `no_hp` varchar(13) NOT NULL, `pendidikan` varchar(5) NOT NULL, `status_perkawinan` enum('Belum Kawin','Kawin') NOT NULL, `kategori` enum('Umum','Karyawan','Keluarga Karyawan','Mahasiswa') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pasien` -- INSERT INTO `pasien` (`id_pasien`, `no_identitas`, `nama`, `tmpt_lahir`, `tgl_lahir`, `gender`, `alamat`, `no_hp`, `pendidikan`, `status_perkawinan`, `kategori`) VALUES (3, 'E41170241', 'Inant Kharisma', 'Banyuwangi', '1999-04-05', 'Laki-laki', 'Jl Mastrip 7, Kos Putra', '082359382266', 'SMA', 'Belum Kawin', 'Mahasiswa'), (4, 'E41170241', 'Aan Hermawan', 'Banyuwangi', '1998-01-28', 'Laki-laki', 'Jl Kalimantan 10', '082359385041', 'SMA', 'Belum Kawin', 'Mahasiswa'), (5, 'E41171254', 'Anwar', 'Kediri', '1999-02-04', 'Laki-laki', 'Jl Kaliurang', '085254123365', 'SMA', 'Belum Kawin', 'Keluarga Karyawan'), (6, '4561233699874561', 'Wati', 'Situbondo', '1979-08-09', 'Perempuan', 'California, US', '085256365214', 'S1', 'Kawin', 'Keluarga Karyawan'), (7, 'E41170234', 'Amrul', 'Bondowoso', '1998-06-17', 'Laki-laki', 'Jl. Mastrip 7', '081325458745', 'SMA', 'Belum Kawin', 'Mahasiswa'), (8, '3371025812880001', 'Sunarti', 'Jember', '1995-06-14', 'Perempuan', 'Jl Kaliurang', '085236658789', 'SMA', 'Kawin', 'Umum'), (9, '3371025812880002', 'Bahrain', 'Mojokerto', '1975-06-21', 'Laki-laki', 'Jl Kaliurang', '085231254412', 'SMA', 'Kawin', 'Umum'), (10, 'E41171203', 'Kevin', 'Situbondo', '1999-02-10', 'Laki-laki', 'Jl Mastrip 7', '085236658777', 'SMA', 'Belum Kawin', 'Mahasiswa'), (11, '3371025812880009', 'Fandi Eko', 'Surabaya', '1985-05-03', 'Laki-laki', 'Jl Kaliurang', '085235888766', 'SMA', 'Kawin', 'Umum'), (12, '3371025812880011', 'Firmansyah', 'Lamongan', '1985-06-12', 'Laki-laki', 'Perumahan Taman Kampus', '085235888765', 'S1', 'Kawin', 'Umum'), (13, 'E31174231', 'Mario Balotelli', 'Balikpapan', '1999-09-08', 'Laki-laki', 'Jl. Kalimantan 10', '085236658788', 'SMA', 'Belum Kawin', 'Mahasiswa'); -- -------------------------------------------------------- -- -- Table structure for table `pelayanan` -- CREATE TABLE `pelayanan` ( `id_pelayanan` tinyint(3) NOT NULL, `pelayanan` varchar(50) NOT NULL, `harga_umum` int(7) NOT NULL, `harga_karyawan` int(7) NOT NULL, `harga_kel_karyawan` int(7) NOT NULL, `harga_mahasiswa` int(7) NOT NULL, `status` enum('Aktif','Non Aktif') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pelayanan` -- INSERT INTO `pelayanan` (`id_pelayanan`, `pelayanan`, `harga_umum`, `harga_karyawan`, `harga_kel_karyawan`, `harga_mahasiswa`, `status`) VALUES (1, 'Loket Rawat Jalan', 7000, 0, 0, 0, 'Aktif'), (2, 'Pemeriksaan dokter', 20000, 0, 10000, 0, 'Aktif'), (3, 'Jahitan', 20000, 10000, 15000, 5000, 'Aktif'), (4, 'Pasang Oksigen', 25000, 15000, 15000, 0, 'Aktif'), (5, 'Cek Tensi Darah', 5000, 0, 0, 0, 'Aktif'), (6, 'Cabut gigi susu', 20000, 0, 15000, 0, 'Aktif'), (7, 'Cabut gigi tetap', 20000, 10000, 15000, 5000, 'Aktif'), (8, 'Angkat drainage', 25000, 15000, 20000, 15000, 'Aktif'), (9, 'Angkat Jahitan', 25000, 15000, 20000, 15000, 'Aktif'), (10, 'Ganti verban', 25000, 15000, 20000, 15000, 'Aktif'), (11, 'Observasi > 1jam', 25000, 15000, 20000, 15000, 'Aktif'), (12, 'Irigasi Telinga', 25000, 15000, 20000, 15000, 'Aktif'), (13, 'Rawat luka kecil (<5cm)', 25000, 15000, 20000, 15000, 'Aktif'), (14, 'Buka kateter', 25000, 15000, 20000, 15000, 'Aktif'), (15, 'Injeksi Intravena/Intramuskuler/Intrakutan', 30000, 20000, 25000, 17500, 'Aktif'), (16, 'Injeksi keloid', 35000, 25000, 30000, 20000, 'Aktif'), (17, 'Pasang Infus (IV karakter)', 35000, 25000, 30000, 20000, 'Aktif'), (18, 'Imunisasi', 35000, 25000, 30000, 20000, 'Aktif'), (19, 'Ambil darah vena', 35000, 25000, 30000, 20000, 'Aktif'), (20, 'Rectal toucher', 35000, 25000, 30000, 20000, 'Aktif'), (21, 'Balutan tensocrep/perban elastis', 35000, 25000, 30000, 20000, 'Aktif'), (22, 'Pasang spalk', 35000, 25000, 30000, 20000, 'Aktif'), (23, 'Tindik telinga', 35000, 25000, 30000, 20000, 'Aktif'), (24, 'Tambal gigi', 80000, 75000, 75000, 70000, 'Aktif'), (25, 'Pembersihan karang gigi', 50000, 40000, 45000, 40000, 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `pembayaran` -- CREATE TABLE `pembayaran` ( `id_pembayaran` int(7) NOT NULL, `id_antrian` int(11) NOT NULL, `waktu` datetime NOT NULL, `grand_total` int(7) NOT NULL, `total_bayar` int(7) NOT NULL, `kembalian` int(7) NOT NULL, `id_user` tinyint(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pembayaran` -- INSERT INTO `pembayaran` (`id_pembayaran`, `id_antrian`, `waktu`, `grand_total`, `total_bayar`, `kembalian`, `id_user`) VALUES (1, 1, '2019-01-03 13:13:10', 0, 0, 0, 21), (2, 2, '2019-01-03 13:13:40', 5000, 10000, 5000, 21), (3, 3, '2019-01-03 13:14:07', 10000, 20000, 10000, 21), (4, 4, '2019-01-13 07:01:01', 56000, 56000, 0, 21), (5, 5, '2019-01-13 07:07:27', 41500, 42000, 500, 21), (6, 6, '2019-01-13 22:27:13', 55000, 60000, 5000, 21), (7, 7, '2019-01-14 11:31:53', 49500, 50000, 500, 21), (8, 8, '2019-01-16 16:57:14', 0, 0, 0, 21); -- -------------------------------------------------------- -- -- Table structure for table `pemeriksaan` -- CREATE TABLE `pemeriksaan` ( `id_pemeriksaan` int(7) NOT NULL, `id_antrian` int(11) NOT NULL, `id_dokter` tinyint(3) NOT NULL, `pemeriksaan_fisik` text NOT NULL, `tensi` varchar(10) NOT NULL, `suhu` tinyint(2) NOT NULL, `id_diagnosa` tinyint(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pemeriksaan` -- INSERT INTO `pemeriksaan` (`id_pemeriksaan`, `id_antrian`, `id_dokter`, `pemeriksaan_fisik`, `tensi`, `suhu`, `id_diagnosa`) VALUES (1, 1, 11, 'Check Up', '110 / 90', 35, 1), (2, 2, 12, 'Periksa gusi', '110 / 90', 35, 10), (3, 3, 16, 'Imunisasi', '110 / 90', 35, 7), (4, 4, 11, 'Check Up', '110 / 90', 37, 1), (5, 5, 11, 'Check', '110 / 90', 35, 2), (6, 6, 11, 'Chek Up', '110 / 90', 37, 1), (7, 7, 11, 'cek up', '110 / 90', 37, 1), (8, 8, 11, 'Chek Up', '110 / 90', 36, 2); -- -------------------------------------------------------- -- -- Table structure for table `petugas` -- CREATE TABLE `petugas` ( `id_petugas` tinyint(3) NOT NULL, `nama_petugas` varchar(50) NOT NULL, `gender` enum('Laki-laki','Perempuan') NOT NULL, `alamat` varchar(255) NOT NULL, `no_hp` varchar(13) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `petugas` -- INSERT INTO `petugas` (`id_petugas`, `nama_petugas`, `gender`, `alamat`, `no_hp`) VALUES (15, 'Jakfar Shodiq', 'Laki-laki', 'Jl. Kauman, Bondowoso', '083836541215'), (19, 'Elsa Manora', 'Perempuan', 'Jl Mastrip Timur', '085258888785'), (20, 'Meta Gadiecha', 'Perempuan', 'Jl. Mastrip Timur', '085825587478'), (21, 'fachri', 'Laki-laki', 'Jl Batu Raden', '089987799988'); -- -------------------------------------------------------- -- -- Table structure for table `poli` -- CREATE TABLE `poli` ( `id_poli` tinyint(3) NOT NULL, `poli` varchar(30) NOT NULL, `status` enum('Aktif','Non Aktif') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `poli` -- INSERT INTO `poli` (`id_poli`, `poli`, `status`) VALUES (1, 'Umum', 'Aktif'), (2, 'Gigi', 'Aktif'), (5, 'KIA', 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `resep` -- CREATE TABLE `resep` ( `id_resep` int(11) NOT NULL, `id_pemeriksaan` int(7) NOT NULL, `tanggal` datetime NOT NULL, `harga_resep` int(7) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `resep` -- INSERT INTO `resep` (`id_resep`, `id_pemeriksaan`, `tanggal`, `harga_resep`) VALUES (1, 1, '2019-01-03 12:27:40', 0), (2, 2, '2019-01-03 12:35:23', 0), (3, 3, '2019-01-03 13:07:25', 0), (4, 4, '2019-01-13 07:00:01', 29000), (5, 5, '2019-01-13 07:06:32', 14500), (6, 6, '2019-01-13 22:24:23', 28000), (7, 7, '2019-01-14 11:28:51', 22500), (8, 8, '2019-01-16 16:54:00', 0); -- -------------------------------------------------------- -- -- Table structure for table `satuan_obat` -- CREATE TABLE `satuan_obat` ( `id_satuan` tinyint(3) NOT NULL, `satuan` varchar(30) NOT NULL, `status` enum('Aktif','Non Aktif') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `satuan_obat` -- INSERT INTO `satuan_obat` (`id_satuan`, `satuan`, `status`) VALUES (1, 'Tablet', 'Aktif'), (2, 'Botol', 'Aktif'), (3, 'pcs', 'Aktif'), (4, 'Strip', 'Aktif'), (5, 'Pack', 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `tindakan` -- CREATE TABLE `tindakan` ( `id_tindakan` int(7) NOT NULL, `id_pemeriksaan` int(7) NOT NULL, `id_pelayanan` tinyint(3) NOT NULL, `subtotal` int(7) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tindakan` -- INSERT INTO `tindakan` (`id_tindakan`, `id_pemeriksaan`, `id_pelayanan`, `subtotal`) VALUES (59, 1, 1, 0), (60, 1, 2, 0), (61, 2, 1, 0), (62, 2, 7, 5000), (63, 3, 1, 0), (64, 3, 2, 10000), (65, 4, 1, 7000), (66, 4, 2, 20000), (67, 5, 1, 7000), (68, 5, 2, 20000), (69, 6, 1, 7000), (70, 6, 2, 20000), (71, 7, 1, 7000), (72, 7, 2, 20000), (73, 8, 1, 0), (74, 8, 2, 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `antrian` -- ALTER TABLE `antrian` ADD PRIMARY KEY (`id_antrian`), ADD KEY `id_pasien` (`id_pasien`,`id_poli`), ADD KEY `id_poli` (`id_poli`); -- -- Indexes for table `detail_resep` -- ALTER TABLE `detail_resep` ADD PRIMARY KEY (`id_detail`), ADD KEY `id_resep` (`id_resep`,`id_obat`), ADD KEY `id_obat` (`id_obat`); -- -- Indexes for table `diagnosa` -- ALTER TABLE `diagnosa` ADD PRIMARY KEY (`id_diagnosa`); -- -- Indexes for table `dokter` -- ALTER TABLE `dokter` ADD PRIMARY KEY (`id_dokter`), ADD KEY `id_poli` (`id_poli`); -- -- Indexes for table `kategori_obat` -- ALTER TABLE `kategori_obat` ADD PRIMARY KEY (`id_kategori`); -- -- Indexes for table `login` -- ALTER TABLE `login` ADD PRIMARY KEY (`id_login`), ADD KEY `id_user` (`id_user`); -- -- Indexes for table `obat` -- ALTER TABLE `obat` ADD PRIMARY KEY (`id_obat`), ADD KEY `id_kategori` (`id_kategori`,`id_satuan`,`id_petugas`), ADD KEY `id_satuan` (`id_satuan`); -- -- Indexes for table `pasien` -- ALTER TABLE `pasien` ADD PRIMARY KEY (`id_pasien`), ADD KEY `id_kategori_pasien` (`kategori`); -- -- Indexes for table `pelayanan` -- ALTER TABLE `pelayanan` ADD PRIMARY KEY (`id_pelayanan`); -- -- Indexes for table `pembayaran` -- ALTER TABLE `pembayaran` ADD PRIMARY KEY (`id_pembayaran`), ADD KEY `id_antrian` (`id_antrian`), ADD KEY `id_user` (`id_user`); -- -- Indexes for table `pemeriksaan` -- ALTER TABLE `pemeriksaan` ADD PRIMARY KEY (`id_pemeriksaan`), ADD KEY `id_antrian` (`id_antrian`), ADD KEY `id_dokter` (`id_dokter`), ADD KEY `id_diagnosa` (`id_diagnosa`); -- -- Indexes for table `petugas` -- ALTER TABLE `petugas` ADD PRIMARY KEY (`id_petugas`); -- -- Indexes for table `poli` -- ALTER TABLE `poli` ADD PRIMARY KEY (`id_poli`); -- -- Indexes for table `resep` -- ALTER TABLE `resep` ADD PRIMARY KEY (`id_resep`), ADD KEY `no_rm` (`id_pemeriksaan`); -- -- Indexes for table `satuan_obat` -- ALTER TABLE `satuan_obat` ADD PRIMARY KEY (`id_satuan`); -- -- Indexes for table `tindakan` -- ALTER TABLE `tindakan` ADD PRIMARY KEY (`id_tindakan`), ADD KEY `no_rm` (`id_pemeriksaan`,`id_pelayanan`), ADD KEY `id_pelayanan` (`id_pelayanan`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `antrian` -- ALTER TABLE `antrian` MODIFY `id_antrian` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `detail_resep` -- ALTER TABLE `detail_resep` MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `diagnosa` -- ALTER TABLE `diagnosa` MODIFY `id_diagnosa` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `dokter` -- ALTER TABLE `dokter` MODIFY `id_dokter` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `kategori_obat` -- ALTER TABLE `kategori_obat` MODIFY `id_kategori` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `login` -- ALTER TABLE `login` MODIFY `id_login` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `obat` -- ALTER TABLE `obat` MODIFY `id_obat` int(7) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `pasien` -- ALTER TABLE `pasien` MODIFY `id_pasien` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `pelayanan` -- ALTER TABLE `pelayanan` MODIFY `id_pelayanan` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `pembayaran` -- ALTER TABLE `pembayaran` MODIFY `id_pembayaran` int(7) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `pemeriksaan` -- ALTER TABLE `pemeriksaan` MODIFY `id_pemeriksaan` int(7) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `petugas` -- ALTER TABLE `petugas` MODIFY `id_petugas` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `poli` -- ALTER TABLE `poli` MODIFY `id_poli` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `resep` -- ALTER TABLE `resep` MODIFY `id_resep` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `satuan_obat` -- ALTER TABLE `satuan_obat` MODIFY `id_satuan` tinyint(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tindakan` -- ALTER TABLE `tindakan` MODIFY `id_tindakan` int(7) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75; -- -- Constraints for dumped tables -- -- -- Constraints for table `antrian` -- ALTER TABLE `antrian` ADD CONSTRAINT `antrian_ibfk_1` FOREIGN KEY (`id_poli`) REFERENCES `poli` (`id_poli`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `antrian_ibfk_2` FOREIGN KEY (`id_pasien`) REFERENCES `pasien` (`id_pasien`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `detail_resep` -- ALTER TABLE `detail_resep` ADD CONSTRAINT `detail_resep_ibfk_1` FOREIGN KEY (`id_obat`) REFERENCES `obat` (`id_obat`); -- -- Constraints for table `dokter` -- ALTER TABLE `dokter` ADD CONSTRAINT `dokter_ibfk_1` FOREIGN KEY (`id_poli`) REFERENCES `poli` (`id_poli`); -- -- Constraints for table `obat` -- ALTER TABLE `obat` ADD CONSTRAINT `obat_ibfk_1` FOREIGN KEY (`id_kategori`) REFERENCES `kategori_obat` (`id_kategori`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `obat_ibfk_2` FOREIGN KEY (`id_satuan`) REFERENCES `satuan_obat` (`id_satuan`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `pembayaran` -- ALTER TABLE `pembayaran` ADD CONSTRAINT `pembayaran_ibfk_1` FOREIGN KEY (`id_antrian`) REFERENCES `antrian` (`id_antrian`); -- -- Constraints for table `pemeriksaan` -- ALTER TABLE `pemeriksaan` ADD CONSTRAINT `pemeriksaan_ibfk_1` FOREIGN KEY (`id_antrian`) REFERENCES `antrian` (`id_antrian`), ADD CONSTRAINT `pemeriksaan_ibfk_2` FOREIGN KEY (`id_dokter`) REFERENCES `dokter` (`id_dokter`), ADD CONSTRAINT `pemeriksaan_ibfk_3` FOREIGN KEY (`id_diagnosa`) REFERENCES `diagnosa` (`id_diagnosa`); -- -- Constraints for table `resep` -- ALTER TABLE `resep` ADD CONSTRAINT `resep_ibfk_1` FOREIGN KEY (`id_pemeriksaan`) REFERENCES `pemeriksaan` (`id_pemeriksaan`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
5eac54d4da993cadec356593f154ec3adbe53e62
SQL
ynsingh/repos
/brihaspati/trunk/brihCI/database/createtablesis-20180802.sql
UTF-8
1,452
2.875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- ------------------------------------------------------------------- -- -- Table structure for table `staff_academic_qualification` -- CREATE TABLE `staff_academic_qualification` ( `saq_id` int(11) PRIMARY KEY AUTO_INCREMENT, `saq_empid` int(11) NOT NULL, `saq_dgree` varchar(255) DEFAULT NULL, `saq_board_univ` varchar(255) DEFAULT NULL, `saq_result` varchar(255) DEFAULT NULL, `saq_yopass` varchar(255) DEFAULT NULL, `saq_discipline` varchar(255) DEFAULT NULL, `saq_creatorid` varchar(255) DEFAULT NULL, `saq_creatordate` DATETIME DEFAULT CURRENT_TIMESTAMP, `saq_modifierid` varchar(255) NOT NULL, `saq_modifydate` DATETIME DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- ------------------------------------------------------------------- -- -- Table structure for table `staff_technical_qualification` -- CREATE TABLE `staff_technical_qualification` ( `stq_id` int(11) PRIMARY KEY AUTO_INCREMENT, `stq_empid` int(11) NOT NULL, `stq_dgree` varchar(255) DEFAULT NULL, `stq_board_univ` varchar(255) DEFAULT NULL, `stq_result` varchar(255) DEFAULT NULL, `stq_dopass` varchar(255) DEFAULT NULL, `stq_discipline` varchar(255) DEFAULT NULL, `stq_creatorid` varchar(255) DEFAULT NULL, `stq_creatordate` DATETIME DEFAULT CURRENT_TIMESTAMP, `stq_modifierid` varchar(255) NOT NULL, `stq_modifydate` DATETIME DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
true
9bb370e9d8f0af056704b44c7803cc000c10a603
SQL
jccode/guestbook
/sql/guestbook.sql
UTF-8
1,579
2.953125
3
[]
no_license
DROP TABLE IF EXISTS ex_guestbook; CREATE TABLE ex_guestbook ( id mediumint(8) unsigned NOT NULL auto_increment, nickname char(15) NOT NULL default '', email varchar(100) NOT NULL default '', content text NOT NULL, createtime int(10) unsigned NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; insert into ex_guestbook values ( 1, 'admin', 'admin@163.com', '留言测试', 1353575532 ); insert into ex_guestbook values ( 2, 'user', 'user@163.com', '留言测试', 1353575332 ); insert into ex_guestbook values ( 3, 'tom', 'tom@163.com', '留言测试', 1353575522 ); insert into ex_guestbook values ( 4, 'cat', 'cat@163.com', '留言测试', 1353575132 ); insert into ex_guestbook values ( 5, 'kitty', 'kitty@163.com', '留言测试', 1353574532 ); insert into ex_guestbook values ( 6, 'zhangshang', 'zhangshang@163.com', '留言测试', 1353573432 ); insert into ex_guestbook values ( 7, 'lishi', 'lishi@163.com', '留言测试', 1353572332 ); insert into ex_guestbook values ( 8, 'hello', 'hello@163.com', '留言测试', 1353574332 ); insert into ex_guestbook values ( 9, 'jack', 'jack@163.com', '留言测试', 1353574312 ); insert into ex_guestbook values ( 10, 'lily', 'lily@163.com', '留言测试', 1353574212 ); DROP TABLE IF EXISTS ex_user; CREATE TABLE ex_user ( uid mediumint(8) unsigned NOT NULL auto_increment, username char(15) NOT NULL default '', password char(32) NOT NULL default '', email varchar(40) NOT NULL default '', regdate int(10) unsigned NOT NULL default '0', PRIMARY KEY (uid) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
true
bcc51c75e9a52f7ec85b452b7b23f39b3b7010a1
SQL
yardcrane/demo-mybatis
/src/test/java/com/example/mybatis/users.sql
UTF-8
267
3.015625
3
[]
no_license
CREATE SEQUENCE users_seq; create table users ( user_id integer not null DEFAULT nextval('users_seq'), user_nickname varchar(20) not null, user_name varchar(32) not null, primary key(user_id) ); insert into users(user_nickname, user_name) values ('1', 'my name');
true